notes: Luna copy pass 6 result, applied
Eight rows for spec A7: five changed and applied, three approved as written, no flags. One controller override in docs.media.allowance.3: a failed job whose picture was never read is charged at weight 1, so "at the same weights" gains that clause. The deck marks all eight approved; media_copy.go and the media and plans pages carry the text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 files changed,
+36
−14
docs/site/media-conversion.md+4 −4docs/site/plans.md+1 −1docs/superpowers/notes/LUNA-COPY-RESULT-media-conversion-6.md+11 −0docs/superpowers/notes/media-conversion-copy-deck.md+19 −8internal/console/media_copy.go+1 −1
diff --git a/docs/site/media-conversion.md b/docs/site/media-conversion.md| index 37234987d..8ddb806e5 100644 |
| --- a/docs/site/media-conversion.md |
| +++ b/docs/site/media-conversion.md |
| @@ -134,7 +134,7 @@ A job is `queued` while it waits for a place, `running` while the engine works o |
| | `source_too_long` | `the file is longer than %s, the maximum for this preset` | |
| | `source_too_long` | `the HDR video is longer than %s, the maximum for HDR video up to 1080p` | |
| | `needs_long_class` | `the file is longer than %s, the most the short class converts. submit it again in the long class` | |
| -| `needs_long_class` | `the video is larger than 1080p, which only the long class converts. submit it again in the long class` | |
| +| `needs_long_class` | `the video is above 1080p, which only the long class converts. submit the same request again with "class": "long"` | |
| | `allowance_exceeded` | `this account's media allowance for the month does not cover this file. buy a media pack or move to a larger plan to convert it` | |
| | `unreadable` | `the file could not be read. it may be damaged or cut short` | |
| | `output_too_large` | `a converted file would be over 5 GB, the maximum for one output` | |
| @@ -196,7 +196,7 @@ Each job runs in a class. By default the source's size picks it, and you can ask |
| | Preset | Short class is used for | Short class converts up to | Stops a short job after | Stops a long job after | |
| | --- | --- | --- | --- | --- | |
| -| `video-720p` | sources up to 1 GiB | 10 minutes, up to 1080p | 15 minutes | 50 minutes | |
| +| `video-720p` | sources up to 1 GiB | 10 minutes at or below 1080p | 15 minutes | 50 minutes | |
| | `audio-aac` | sources up to 256 MiB | 2 hours | 10 minutes | 50 minutes | |
| A video above 1080p converts only in the long class. The short class refuses it with `needs_long_class`, however short it is. A long job converts up to the preset's maximum: |
| @@ -215,9 +215,9 @@ Fair use applies on every deployment. By default an account can have 20 conversi |
| ### The allowance |
| -Your deployment can give your account a monthly allowance of media minutes, shared by its apps. Where billing is on, the account's Billing page shows the allowance and how much you've used. A minute of video counts as 1 media minute, a minute of video above 1080p as 2, and a minute of audio as 0.1, so 10 minutes of audio is 1 media minute. |
| +Your deployment can give your account a monthly allowance of media minutes, shared by its apps. Where billing is on, the account's Billing page shows the allowance and how much you've used. A minute of video up to 1080p counts as 1 media minute, a minute of video above 1080p counts as 2, and a minute of audio counts as 0.1, so 10 minutes of audio is 1 media minute. |
| -A done job is charged for the length of its source. A failed job is charged for the engine time it used, at 2 a minute if the video was above 1080p, or the full reserved time if the engine loses the task record. A job that never starts is uncharged. While a job runs, the most it could cost is held against the allowance. For a long video job that is counted at 2 a minute, since its source may be above 1080p. |
| +A done job is charged for the length of its source: 1 media minute per minute for video up to 1080p, 2 for video above 1080p, and 0.1 for audio. A failed job is charged for the engine time it used at the same weights; a video the engine never got to read counts as up to 1080p. If the engine loses the task record, it is charged the full reserved time. A job that never starts is uncharged. While a job runs, the most it could cost is held against the allowance. A long video job is held at 2 media minutes per minute because nothing is known of the picture until the engine reads the file. |
| As with other monthly limits, the account's owners get a warning at 80% of the limit. At twice the monthly limit, new conversions are refused with `402` until the 1st of the UTC month, or until the account buys a media pack or moves to a larger plan. A job can also fail `allowance_exceeded` when what's left of the allowance won't cover the file. See [Plans](/docs/plans). |
diff --git a/docs/site/plans.md b/docs/site/plans.md| index b4c6eec0e..381605158 100644 |
| --- a/docs/site/plans.md |
| +++ b/docs/site/plans.md |
| @@ -36,7 +36,7 @@ Every account without a plan of its own is on `default_plan`. Packs may only rai |
| Set `pdf_renders_month` in a plan's limits to give your account a monthly PDF allowance shared by its apps. A value of 0 means no monthly limit. The PDF service's fair-use limits still apply. |
| -Set `media_minutes_month` to give your account a monthly allowance of media minutes for [media conversion](/docs/media-conversion), shared by its apps. A minute of video counts as 1, a minute of video above 1080p as 2, and a minute of audio as 0.1. A value of 0 means no monthly limit. As a starting point: 30 on a free plan, 600 on a personal plan, 1,200 on a community plan and 12,000 on a business plan, with a pack that adds 1,000. With no catalog, `account_minutes` in `CARLOS_MEDIA_LIMITS` sets one allowance for every account. |
| +Set `media_minutes_month` to give your account a monthly allowance of media minutes for [media conversion](/docs/media-conversion), shared by its apps. A minute of video up to 1080p counts as 1, a minute of video above 1080p as 2, and a minute of audio as 0.1. A value of 0 means no monthly limit. As a starting point: 30 on a free plan, 600 on a personal plan, 1,200 on a community plan and 12,000 on a business plan, with a pack that adds 1,000. With no catalog, `account_minutes` in `CARLOS_MEDIA_LIMITS` sets one allowance for every account. |
| Set `email_per_hour` to cap how many emails an account can send in one UTC hour. 0 means no hourly limit. There's no grace: once the hour's sends reach the limit, every sender of every app is held back until the next UTC hour. |
diff --git a/docs/superpowers/notes/LUNA-COPY-RESULT-media-conversion-6.md b/docs/superpowers/notes/LUNA-COPY-RESULT-media-conversion-6.md| new file mode 100644 |
| index 000000000..31bf83ea5 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/LUNA-COPY-RESULT-media-conversion-6.md |
| @@ -0,0 +1,11 @@ |
| +| key | new | why | |
| +|---|---|---| |
| +| `media.job.needs_long_class_hi` | `the video is above 1080p, which only the long class converts. submit the same request again with "class": "long"` | “Larger” could describe file size. Gives the exact retry action. | |
| +| `docs.media.limits.4` | `\| \`video-720p\` \| sources up to 1 GiB \| 10 minutes at or below 1080p \| 15 minutes \| 50 minutes \|` | Matches the A7 condition precisely. | |
| +| `docs.media.allowance.2` | `Your deployment can give your account a monthly allowance of media minutes, shared by its apps. Where billing is on, the account's Billing page shows the allowance and how much you've used. A minute of video up to 1080p counts as 1 media minute, a minute of video above 1080p counts as 2, and a minute of audio counts as 0.1, so 10 minutes of audio is 1 media minute.` | Makes the 1-minute video weight's resolution boundary explicit. | |
| +| `docs.media.allowance.3` | `A done job is charged for the length of its source: 1 media minute per minute for video up to 1080p, 2 for video above 1080p, and 0.1 for audio. A failed job is charged for the engine time it used at the same weights. If the engine loses the task record, it is charged the full reserved time. A job that never starts is uncharged. While a job runs, the most it could cost is held against the allowance. A long video job is held at 2 media minutes per minute because nothing is known of the picture until the engine reads the file.` | Fixes the incomplete final sentence and states all charge weights and failure cases. | |
| +| `docs.plans.media.allowance` | `Set \`media_minutes_month\` to give your account a monthly allowance of media minutes for [media conversion](/docs/media-conversion), shared by its apps. A minute of video up to 1080p counts as 1, a minute of video above 1080p as 2, and a minute of audio as 0.1. A value of 0 means no monthly limit. As a starting point: 30 on a free plan, 600 on a personal plan, 1,200 on a community plan and 12,000 on a business plan, with a pack that adds 1,000. With no catalog, \`account_minutes\` in \`CARLOS_MEDIA_LIMITS\` sets one allowance for every account.` | Makes the resolution boundary explicit while preserving the operator-facing shorthand. | |
| + |
| +## Flags |
| + |
| +none |
| \ No newline at end of file |
diff --git a/docs/superpowers/notes/media-conversion-copy-deck.md b/docs/superpowers/notes/media-conversion-copy-deck.md| index 032e03c46..ce251659d 100644 |
| --- a/docs/superpowers/notes/media-conversion-copy-deck.md |
| +++ b/docs/superpowers/notes/media-conversion-copy-deck.md |
| @@ -97,9 +97,9 @@ video class refuses whatever the length (spec §11 A7). |
| | `media.job.source_dimensions` | `the video is larger than %s` | |
| | `media.job.source_frame_rate` | `the video has more than %d frames a second` | |
| | `media.job.source_too_long` | `the file is longer than %s, the maximum for this preset` | |
| -| `media.job.source_too_long_hdr` | `the HDR video is longer than %s, the maximum for HDR video up to 1080p` (pending Luna pass 6) | |
| +| `media.job.source_too_long_hdr` | `the HDR video is longer than %s, the maximum for HDR video up to 1080p` (approved, Luna pass 6) | |
| | `media.job.needs_long_class` | `the file is longer than %s, the most the short class converts. submit it again in the long class` | |
| -| `media.job.needs_long_class_hi` | `the video is larger than 1080p, which only the long class converts. submit it again in the long class` (pending Luna pass 6) | |
| +| `media.job.needs_long_class_hi` | `the video is above 1080p, which only the long class converts. submit the same request again with "class": "long"` (approved, Luna pass 6) | |
| | `media.job.allowance_exceeded` | `this account's media allowance for the month does not cover this file. buy a media pack or move to a larger plan to convert it` | |
| | `media.job.unreadable` | `the file could not be read. it may be damaged or cut short` | |
| | `media.job.output_too_large` | `a converted file would be over 5 GB, the maximum for one output` | |
| @@ -410,6 +410,17 @@ extra message. |
| ## Luna docs pass (Task 11), approved |
| +**Pass 6, 2026-11-21** (spec §11 A7, the spike's values): brief |
| +`LUNA-COPY-BRIEF-media-conversion-6.md`, result |
| +`LUNA-COPY-RESULT-media-conversion-6.md`. Eight rows reviewed, here and |
| +in "Job errors": five changed and applied, three approved unchanged |
| +(`media.job.source_too_long_hdr`, `docs.media.limits.6`, |
| +`docs.media.limits.8a`), no flags. One controller override: |
| +`docs.media.allowance.3` keeps Luna's text and adds "a video the engine |
| +never got to read counts as up to 1080p" after "at the same weights", |
| +since a failed job with no probe facts is charged at weight 1 (A7, |
| +"Charge"), and "the same weights" alone would say 2 for it. |
| + |
| **Approved 2026-11-17** by the Luna docs pass (brief |
| `LUNA-DOCS-BRIEF-media-conversion.md`, result |
| `LUNA-DOCS-RESULT-media-conversion.md`): nine rows changed and applied |
| @@ -492,20 +503,20 @@ row is applied to the page verbatim. |
| | `docs.media.limits.1` | ## Limits | |
| | `docs.media.limits.2` | Each job runs in a class. By default the source's size picks it, and you can ask for `"class": "long"`: | |
| | `docs.media.limits.3` | \| Preset \| Short class is used for \| Short class converts up to \| Stops a short job after \| Stops a long job after \| | |
| -| `docs.media.limits.4` | \| `video-720p` \| sources up to 1 GiB \| 10 minutes, up to 1080p \| 15 minutes \| 50 minutes \| | (pending Luna pass 6) |
| +| `docs.media.limits.4` | \| `video-720p` \| sources up to 1 GiB \| 10 minutes at or below 1080p \| 15 minutes \| 50 minutes \| | (approved, Luna pass 6) |
| | `docs.media.limits.5` | \| `audio-aac` \| sources up to 256 MiB \| 2 hours \| 10 minutes \| 50 minutes \| | |
| -| `docs.media.limits.6` | A video above 1080p converts only in the long class. The short class refuses it with `needs_long_class`, however short it is. A long job converts up to the preset's maximum: | (pending Luna pass 6) |
| +| `docs.media.limits.6` | A video above 1080p converts only in the long class. The short class refuses it with `needs_long_class`, however short it is. A long job converts up to the preset's maximum: | (approved, Luna pass 6) |
| | `docs.media.limits.7` | \| \| `video-720p` \| `audio-aac` \| | |
| | `docs.media.limits.8` | \| Length, sources up to 1080p \| 2 hours \| 8 hours \| | |
| -| `docs.media.limits.8a` | \| Length, HDR sources up to 1080p \| 75 minutes \| \| | (pending Luna pass 6) |
| +| `docs.media.limits.8a` | \| Length, HDR sources up to 1080p \| 75 minutes \| \| | (approved, Luna pass 6) |
| | `docs.media.limits.9` | \| Length, sources above 1080p \| 30 minutes \| \| | |
| | `docs.media.limits.10` | \| Source size \| 40 GiB \| 10 GiB \| | |
| | `docs.media.limits.11` | \| Largest picture, frame rate \| 3840x2160, 60 \| \| | |
| | `docs.media.limits.12` | Each converted file is at most 5 GB. | |
| | `docs.media.limits.13` | Fair use applies on every deployment. By default an account can have 20 conversions waiting or running, and send 30 a minute with bursts of 10. An account runs up to 2 short jobs and 1 long job at once, and the rest wait their turn. The deployment holds at most 200 waiting jobs. Your operator can change these numbers. | |
| | `docs.media.allowance.1` | ### The allowance | |
| -| `docs.media.allowance.2` | Your deployment can give your account a monthly allowance of media minutes, shared by its apps. Where billing is on, the account's Billing page shows the allowance and how much you've used. A minute of video counts as 1 media minute, a minute of video above 1080p as 2, and a minute of audio as 0.1, so 10 minutes of audio is 1 media minute. | (pending Luna pass 6) |
| -| `docs.media.allowance.3` | A done job is charged for the length of its source. A failed job is charged for the engine time it used, at 2 a minute if the video was above 1080p, or the full reserved time if the engine loses the task record. A job that never starts is uncharged. While a job runs, the most it could cost is held against the allowance. For a long video job that is counted at 2 a minute, since its source may be above 1080p. | (pending Luna pass 6) |
| +| `docs.media.allowance.2` | Your deployment can give your account a monthly allowance of media minutes, shared by its apps. Where billing is on, the account's Billing page shows the allowance and how much you've used. A minute of video up to 1080p counts as 1 media minute, a minute of video above 1080p counts as 2, and a minute of audio counts as 0.1, so 10 minutes of audio is 1 media minute. | (approved, Luna pass 6) |
| +| `docs.media.allowance.3` | A done job is charged for the length of its source: 1 media minute per minute for video up to 1080p, 2 for video above 1080p, and 0.1 for audio. A failed job is charged for the engine time it used at the same weights; a video the engine never got to read counts as up to 1080p. If the engine loses the task record, it is charged the full reserved time. A job that never starts is uncharged. While a job runs, the most it could cost is held against the allowance. A long video job is held at 2 media minutes per minute because nothing is known of the picture until the engine reads the file. | (approved, Luna pass 6) |
| | `docs.media.allowance.4` | As with other monthly limits, the account's owners get a warning at 80% of the limit. At twice the monthly limit, new conversions are refused with `402` until the 1st of the UTC month, or until the account buys a media pack or moves to a larger plan. A job can also fail `allowance_exceeded` when what's left of the allowance won't cover the file. See [Plans](/docs/plans). | |
| | `docs.media.residency.1` | ## Where conversion runs | |
| | `docs.media.residency.2` | Conversion runs in your store's region: the engine reads the source from your store and writes the outputs back to it there. A store in a region with no conversion engine is refused with `no_engine_in_region`. It is never converted somewhere else. | |
| @@ -521,7 +532,7 @@ carries them yet (plan 3 writes it); the pack's price is left out. |
| | Key | Text | |
| |---|---| |
| | `docs.plans.media.packs` | Every account without a plan of its own is on `default_plan`. Packs may only raise counts and sizes: apps and instances, disk, storage, email, bandwidth and media minutes. A ceiling is the most any plan with packs can reach. | |
| -| `docs.plans.media.allowance` | Set `media_minutes_month` to give your account a monthly allowance of media minutes for [media conversion](/docs/media-conversion), shared by its apps. A minute of video counts as 1, a minute of video above 1080p as 2, and a minute of audio as 0.1. A value of 0 means no monthly limit. As a starting point: 30 on a free plan, 600 on a personal plan, 1,200 on a community plan and 12,000 on a business plan, with a pack that adds 1,000. With no catalog, `account_minutes` in `CARLOS_MEDIA_LIMITS` sets one allowance for every account. | (pending Luna pass 6) |
| +| `docs.plans.media.allowance` | Set `media_minutes_month` to give your account a monthly allowance of media minutes for [media conversion](/docs/media-conversion), shared by its apps. A minute of video up to 1080p counts as 1, a minute of video above 1080p as 2, and a minute of audio as 0.1. A value of 0 means no monthly limit. As a starting point: 30 on a free plan, 600 on a personal plan, 1,200 on a community plan and 12,000 on a business plan, with a pack that adds 1,000. With no catalog, `account_minutes` in `CARLOS_MEDIA_LIMITS` sets one allowance for every account. | (approved, Luna pass 6) |
| | `docs.plans.media.caps_intro` | Once an hour the console compares each account's usage with its limits, for seven caps: (was "six caps") | |
| | `docs.plans.media.caps_item` | - media minutes this month. (the item before it, "PDFs rendered this month", now ends with a semicolon) | |
| | `docs.plans.media.caps_source` | The figures come from what the console already records: its own app list, the monthly usage statements, the daily storage sweep, the mail counts, completed PDF requests and media conversions. A cap whose limit is 0 is skipped. | |
diff --git a/internal/console/media_copy.go b/internal/console/media_copy.go| index 4bcf81f00..ee6c683fa 100644 |
| --- a/internal/console/media_copy.go |
| +++ b/internal/console/media_copy.go |
| @@ -68,7 +68,7 @@ var mediaCopy = map[string]string{ |
| "media.job.source_too_long": "the file is longer than %s, the maximum for this preset", |
| "media.job.source_too_long_hdr": "the HDR video is longer than %s, the maximum for HDR video up to 1080p", |
| "media.job.needs_long_class": "the file is longer than %s, the most the short class converts. submit it again in the long class", |
| - "media.job.needs_long_class_hi": "the video is larger than 1080p, which only the long class converts. submit it again in the long class", |
| + "media.job.needs_long_class_hi": `the video is above 1080p, which only the long class converts. submit the same request again with "class": "long"`, |
| "media.job.allowance_exceeded": "this account's media allowance for the month does not cover this file. buy a media pack or move to a larger plan to convert it", |
| "media.job.unreadable": "the file could not be read. it may be damaged or cut short", |
| "media.job.output_too_large": "a converted file would be over 5 GB, the maximum for one output", |