| index 0778775c6..a05ffc701 100644 |
| --- a/docs/superpowers/notes/media-conversion-copy-deck.md |
| +++ b/docs/superpowers/notes/media-conversion-copy-deck.md |
| @@ -158,7 +158,7 @@ because its plan values reach `12,000`. |
| | `system_media.forbidden` (403) | `media status needs a deployment operator (CARLOS_SYSTEM_OPERATORS or CARLOS_STORE_OPERATORS)` (approved, Luna pass 2) | |
| | `cli.system_media.check_error` | `check %-17s could not be read (%s), so these jobs wait` (approved, Luna pass 2) | |
| |
| -The two `email.` rows (added in Task 6 fix round 1, pending a Luna pass) |
| +The two `email.` rows (added in Task 6 fix round 1, approved in Luna pass 2) |
| are the owners' notice email lines for the same two states. Without them |
| the email fell back to the generic `email.over`, "Nothing changes until", |
| while the door already refuses at twice the allowance. They are the |
| @@ -524,6 +524,21 @@ carries them yet (plan 3 writes it); the pack's price is left out. |
| |
| ## The engine binary (plan 3) |
| |
| +**Approved 2026-11-19** by Luna pass 5, every row from here to the end of |
| +this file (briefs `LUNA-COPY-BRIEF-media-conversion-5.md` and |
| +`LUNA-DOCS-BRIEF-media-conversion-5.md`, results |
| +`LUNA-COPY-RESULT-media-conversion-5.md` and |
| +`LUNA-DOCS-RESULT-media-conversion-5.md`). Changed and applied verbatim: |
| +`engine.encode.failed_unlogged`, `engine.selftest.reason.tls`, |
| +`image.base.refused` and `engine.aws.rejected` (which now lists the |
| +retryable form the code already printed); in the docs, the media-engine |
| +and modules READMEs, the image README, the region-host fleet move section |
| +and the two region-host `description`s. Three flags were facts, settled |
| +against the code in the rows: `image.http`'s `GET %s`, |
| +`engine.aws.cause.no_credentials` (a follow-up) and |
| +`console.media.retry_refused`'s `%v`. One paragraph of `image.readme` |
| +waits for Paul. |
| + |
| Operator-facing text from `cmd/carlos-media`, the engine image's one |
| binary. The usage line reaches a task's log only when the binary is |
| started wrongly; the `codec` lines are the task's log, and never carry a |
| @@ -532,68 +547,68 @@ prints nothing. |
| |
| | Key | Text | |
| |---|---| |
| -| `engine.usage` | `usage: carlos-media <deadline\|codec\|selftest\|drill\|version>` (pending Luna pass; plan 3 Task 1) | |
| -| `engine.codec.payload_refused` | `codec: payload refused: %s` (pending Luna pass; plan 3 Task 2). `%s` is one of `engine.codec.payload.*`, never a value from the payload | |
| -| `engine.codec.payload.none` | `no payload` (pending Luna pass; plan 3 Task 2) | |
| -| `engine.codec.payload.too_long` | `payload is over the override limit` (pending Luna pass; plan 3 Task 2) | |
| -| `engine.codec.payload.undecodable` | `payload does not decode as a payload` (pending Luna pass; plan 3 Task 2) | |
| -| `engine.codec.payload.trailing` | `payload has data after the object` (pending Luna pass; plan 3 Task 2) | |
| -| `engine.codec.payload.no_cap` | `payload has no source byte cap` (pending Luna pass; plan 3 Task 2) | |
| -| `engine.codec.payload.no_expiry` | `payload has no grant expiry` (pending Luna pass; plan 3 Task 2) | |
| -| `engine.codec.payload.shape` | `payload does not have the payload's shape` (pending Luna pass; plan 3 Task 2 fix 1). Any refusal by `Payload.Validate`, whose own reason is not logged | |
| -| `engine.codec.scratch` | `codec: scratch directory unusable: %s` (pending Luna pass; plan 3 Task 2). `%s` is the system's error for a path under the scratch directory | |
| -| `engine.codec.grant_expired` | `codec: the grant has expired; no result is written` (pending Luna pass; plan 3 Task 2) | |
| -| `engine.codec.failed` | `codec: failed: %s` (pending Luna pass; plan 3 Task 2). `%s` is the job error code | |
| -| `engine.codec.stopped` | `codec: stopped: %s` (pending Luna pass; plan 3 Task 2). `%s` is Go's context error. Since Task 6, the line of a SIGTERM (ECS stopping the task): the codec exits 143 and writes no result | |
| -| `engine.download.resume` | `source download: broke after %d bytes; resume %d of %d` (pending Luna pass; plan 3 Task 2) | |
| -| `engine.download.gave_up` | `source download: broke %d times; giving up` (pending Luna pass; plan 3 Task 2) | |
| -| `engine.codec.source_unopenable` | `codec: the downloaded source cannot be read: %s` (pending Luna pass; plan 3 Task 3). `%s` is the system's error for the scratch source path | |
| -| `engine.probe.failed` | `codec: ffprobe failed: %q` (pending Luna pass; plan 3 Task 3). `%q` is the last 4 KiB of ffprobe's stderr at `-loglevel error`, quoted so it stays one line | |
| -| `engine.probe.timeout` | `codec: ffprobe did not finish in time` (pending Luna pass; plan 3 Task 3) | |
| -| `engine.probe.unusable` | `codec: ffprobe's answer is over %d bytes` (pending Luna pass; plan 3 Task 3). `%d` is 1048576 | |
| -| `engine.probe.unparsable` | `codec: ffprobe's answer is unusable: %s` (pending Luna pass; plan 3 Task 3). `%s` is one of `engine.probe.reason.*` | |
| -| `engine.probe.reason.not_json` | `not ffprobe's JSON` (pending Luna pass; plan 3 Task 3) | |
| -| `engine.probe.reason.trailing` | `data after ffprobe's JSON` (pending Luna pass; plan 3 Task 3) | |
| -| `engine.probe.reason.negative` | `stream %d has a negative field` (pending Luna pass; plan 3 Task 3). `%d` is the stream's index | |
| -| `engine.probe.reason.preset` | `unknown preset` (pending Luna pass; plan 3 Task 3 fix 1). Never reached through `Run`: sniff refuses an unknown preset first | |
| -| `engine.probe.reason.rate` | `stream %d avg_frame_rate: not a rational of non-negative integers`, and the same with `r_frame_rate` (pending Luna pass; plan 3 Task 3) | |
| -| `engine.probe.reason.rotate` | `stream %d rotate tag is not an integer` (pending Luna pass; plan 3 Task 3) | |
| -| `engine.probe.reason.duration` | `format duration: not a duration`, `stream %d duration: not a duration` (pending Luna pass; plan 3 Task 3) | |
| -| `engine.probe.no_duration` | `codec: the source has no duration in its header or its packets` (pending Luna pass; plan 3 Task 3) | |
| -| `engine.child.failed` | `codec: child process: %s: %s`, or without the second `%s` (pending Luna pass; plan 3 Task 3). The first `%s` is one of `cannot become a subreaper`, `no pipe`, `cannot start <binary path>`, `the child outlived SIGKILL`, `descendants outlived the cleanup`, `a pipe stayed open`, `wait failed`; the second is the system's error | |
| -| `engine.child.unsupported` | `codec: child processes need Linux` (pending Luna pass; plan 3 Task 3). Only off Linux, where the handler never runs | |
| -| `engine.encode.failed` | `codec: ffmpeg (%s) failed: %q` (pending Luna pass; plan 3 Task 4). `%s` is one of `video`, `poster`, `poster from the first frame`, `audio`, `peaks` (Task 5); `%q` is the last 4 KiB of ffmpeg's stderr at `-loglevel error`, quoted so it stays one line | |
| -| `engine.encode.failed_unlogged` | `codec: ffmpeg (%s) failed; its output is not logged` (pending Luna pass; plan 3 Task 5). `%s` is `loudness` or `output meter` (fix 1): those passes run at `-loglevel info`, where ffmpeg prints the input's tags, so none of their stderr is logged (preflight F19) | |
| -| `engine.encode.killed` | `codec: ffmpeg (%s) was killed by SIGKILL, likely out of memory` (pending Luna pass; plan 3 Task 4). `%s` as `engine.encode.failed`, or `loudness` or `output meter` (Task 5) | |
| -| `engine.encode.empty` | `codec: ffmpeg wrote no sample to %s` (pending Luna pass; plan 3 Task 4). `%s` is `video.mp4`, `audio.mp4` or `peaks.raw` (Task 5) | |
| -| `engine.encode.unusable` | `codec: %s: %s` (pending Luna pass; plan 3 Task 4). The first `%s` is an output's name, `the output directory`, or (Task 5) `peaks.raw` or `the scratch tmp directory`; the second is the system's error, one of readFMP4's fixed reasons (a box type and a byte offset, never the file's bytes), or (Task 5) `not a regular file`, `fewer samples than the file's size`, `negative sample count`, `negative duration` | |
| -| `engine.loudness.unmeasured` | `codec: ffmpeg (%s) gave no measurement: %s` (pending Luna pass; plan 3 Task 5, fix 1). The first `%s` is `loudness` or `output meter`; the second is one of `engine.loudness.reason.*`, never the stderr | |
| -| `engine.loudness.reason.none` | `no ebur128 summary` (pending Luna pass; plan 3 Task 5, fix 1) | |
| -| `engine.loudness.reason.fields` | `the ebur128 summary has no I or no true peak` (pending Luna pass; plan 3 Task 5, fix 1) | |
| -| `engine.loudness.reason.number` | `the ebur128 summary's I is not a number`, `the ebur128 summary's true peak is not a number` (pending Luna pass; plan 3 Task 5, fix 1) | |
| -| `engine.loudness.gain` | `codec: loudness %.1f LUFS, true peak %.1f dBTP, measurable %t; gain %.2f dB` (pending Luna pass; plan 3 Task 5, fix 1: one decimal, the meter's). Numbers only: the measurement and the gain the first encode uses | |
| -| `engine.loudness.over_ceiling` | `codec: audio.mp4 peaks %.2f dB over the %.1f dBTP ceiling; encoding again at %.2f dB` (pending Luna pass; plan 3 Task 5, fix 1). The excess (true peak plus 0.05 over -1.5), the ceiling, and the second encode's gain | |
| -| `engine.loudness.still_over` | `codec: audio.mp4 still peaks %.2f dB over the ceiling after the second encode; kept` (pending Luna pass; plan 3 Task 5, fix 1). Never a third encode | |
| -| `engine.encode.scratch_full` | `codec: ffmpeg (%s) failed with the scratch disk full` (pending Luna pass; plan 3 Task 6). `%s` as `engine.encode.failed`; the job fails `engine_failed`, not `unreadable` | |
| -| `engine.encode.no_frame` | `codec: ffmpeg wrote no frame to %s` (pending Luna pass; plan 3 Task 6). `%s` is `poster.jpg` | |
| -| `engine.version.unknown` | `codec: ffmpeg's version cannot be read; the result names none` (pending Luna pass; plan 3 Task 6) | |
| -| `engine.collect.refused` | `codec: output %s refused: %s` (pending Luna pass; plan 3 Task 6). The first `%s` is an output's name or `the output directory`; the second one of `a symlink`, `not a regular file`, `not a regular file when opened`, `not a directory`, `not the file checked before the open`, `not the directory checked before the open`, `has %d links`, `empty`, `over its %d-byte bound`, `not an output name`, `no file status`, `cannot be read: %s`, `cannot be opened: %s` (the system's error number's text), `collecting outputs needs Linux` | |
| -| `engine.upload.retry` | `codec: the upload of %s broke; retry %d of %d` (pending Luna pass; plan 3 Task 6). `%s` is an output's name or `the result` | |
| -| `engine.upload.gave_up` | `codec: the upload of %s broke %d times; giving up` (pending Luna pass; plan 3 Task 6) | |
| -| `engine.upload.exists` | `codec: the store already holds %s` (pending Luna pass; plan 3 Task 6). A 412 on the first attempt | |
| -| `engine.upload.exists_after_retry` | `codec: the store holds %s after a broken attempt; reported with this upload's MD5` (pending Luna pass; plan 3 Task 6, fix 1). The console then requires the object's ETag to equal that MD5 | |
| -| `engine.upload.denied` | `codec: the store refused %s (403) before the grant's expiry` (pending Luna pass; plan 3 Task 6, fix 1). More than a minute before it: the job fails `engine_failed` and the failure result is still written | |
| -| `engine.upload.expired` | `codec: the store refused %s (403) at the grant's expiry` (pending Luna pass; plan 3 Task 6, fix 1). Within a minute of it: exit 75, no result | |
| -| `engine.upload.other_bytes` | `codec: the store's ETag for %s is not the MD5 of the bytes sent` (pending Luna pass; plan 3 Task 6, fix 1) | |
| -| `engine.upload.unhashable` | `codec: %s cannot be read to hash it: %s` (pending Luna pass; plan 3 Task 6, fix 1). An output's name or `the result`, and the system's error number's text | |
| -| `engine.upload.status` | `codec: the store answered %d to %s` (pending Luna pass; plan 3 Task 6). The HTTP status and an output's name or `the result` | |
| -| `engine.upload.mismatch` | `codec: the upload of %s does not match its transfer` (pending Luna pass; plan 3 Task 6) | |
| -| `engine.upload.unbuildable` | `codec: a request for the store cannot be built` (pending Luna pass; plan 3 Task 6) | |
| -| `engine.result.unmarshalable` | `codec: the result cannot be written as at most %d bytes of JSON` (pending Luna pass; plan 3 Task 6). `%d` is 65536 | |
| -| `engine.codec.done` | `codec: done; outputs and result written` (pending Luna pass; plan 3 Task 6) | |
| -| `engine.codec.result_unwritten` | `codec: converted, but the result could not be written` (pending Luna pass; plan 3 Task 6) | |
| -| `engine.codec.error_unwritten` | `codec: the result naming %s could not be written` (pending Luna pass; plan 3 Task 6). `%s` is the job error code | |
| -| `engine.codec.unexpected` | `codec: an unexpected %T ends the job` (pending Luna pass; plan 3 Task 6). `%T` is a Go error type, never its text | |
| +| `engine.usage` | `usage: carlos-media <deadline\|codec\|selftest\|drill\|version>` (approved, Luna pass 5; plan 3 Task 1) | |
| +| `engine.codec.payload_refused` | `codec: payload refused: %s` (approved, Luna pass 5; plan 3 Task 2). `%s` is one of `engine.codec.payload.*`, never a value from the payload | |
| +| `engine.codec.payload.none` | `no payload` (approved, Luna pass 5; plan 3 Task 2) | |
| +| `engine.codec.payload.too_long` | `payload is over the override limit` (approved, Luna pass 5; plan 3 Task 2) | |
| +| `engine.codec.payload.undecodable` | `payload does not decode as a payload` (approved, Luna pass 5; plan 3 Task 2) | |
| +| `engine.codec.payload.trailing` | `payload has data after the object` (approved, Luna pass 5; plan 3 Task 2) | |
| +| `engine.codec.payload.no_cap` | `payload has no source byte cap` (approved, Luna pass 5; plan 3 Task 2) | |
| +| `engine.codec.payload.no_expiry` | `payload has no grant expiry` (approved, Luna pass 5; plan 3 Task 2) | |
| +| `engine.codec.payload.shape` | `payload does not have the payload's shape` (approved, Luna pass 5; plan 3 Task 2 fix 1). Any refusal by `Payload.Validate`, whose own reason is not logged | |
| +| `engine.codec.scratch` | `codec: scratch directory unusable: %s` (approved, Luna pass 5; plan 3 Task 2). `%s` is the system's error for a path under the scratch directory | |
| +| `engine.codec.grant_expired` | `codec: the grant has expired; no result is written` (approved, Luna pass 5; plan 3 Task 2) | |
| +| `engine.codec.failed` | `codec: failed: %s` (approved, Luna pass 5; plan 3 Task 2). `%s` is the job error code | |
| +| `engine.codec.stopped` | `codec: stopped: %s` (approved, Luna pass 5; plan 3 Task 2). `%s` is Go's context error. Since Task 6, the line of a SIGTERM (ECS stopping the task): the codec exits 143 and writes no result | |
| +| `engine.download.resume` | `source download: broke after %d bytes; resume %d of %d` (approved, Luna pass 5; plan 3 Task 2) | |
| +| `engine.download.gave_up` | `source download: broke %d times; giving up` (approved, Luna pass 5; plan 3 Task 2) | |
| +| `engine.codec.source_unopenable` | `codec: the downloaded source cannot be read: %s` (approved, Luna pass 5; plan 3 Task 3). `%s` is the system's error for the scratch source path | |
| +| `engine.probe.failed` | `codec: ffprobe failed: %q` (approved, Luna pass 5; plan 3 Task 3). `%q` is the last 4 KiB of ffprobe's stderr at `-loglevel error`, quoted so it stays one line | |
| +| `engine.probe.timeout` | `codec: ffprobe did not finish in time` (approved, Luna pass 5; plan 3 Task 3) | |
| +| `engine.probe.unusable` | `codec: ffprobe's answer is over %d bytes` (approved, Luna pass 5; plan 3 Task 3). `%d` is 1048576 | |
| +| `engine.probe.unparsable` | `codec: ffprobe's answer is unusable: %s` (approved, Luna pass 5; plan 3 Task 3). `%s` is one of `engine.probe.reason.*` | |
| +| `engine.probe.reason.not_json` | `not ffprobe's JSON` (approved, Luna pass 5; plan 3 Task 3) | |
| +| `engine.probe.reason.trailing` | `data after ffprobe's JSON` (approved, Luna pass 5; plan 3 Task 3) | |
| +| `engine.probe.reason.negative` | `stream %d has a negative field` (approved, Luna pass 5; plan 3 Task 3). `%d` is the stream's index | |
| +| `engine.probe.reason.preset` | `unknown preset` (approved, Luna pass 5; plan 3 Task 3 fix 1). Never reached through `Run`: sniff refuses an unknown preset first | |
| +| `engine.probe.reason.rate` | `stream %d avg_frame_rate: not a rational of non-negative integers`, and the same with `r_frame_rate` (approved, Luna pass 5; plan 3 Task 3) | |
| +| `engine.probe.reason.rotate` | `stream %d rotate tag is not an integer` (approved, Luna pass 5; plan 3 Task 3) | |
| +| `engine.probe.reason.duration` | `format duration: not a duration`, `stream %d duration: not a duration` (approved, Luna pass 5; plan 3 Task 3) | |
| +| `engine.probe.no_duration` | `codec: the source has no duration in its header or its packets` (approved, Luna pass 5; plan 3 Task 3) | |
| +| `engine.child.failed` | `codec: child process: %s: %s`, or without the second `%s` (approved, Luna pass 5; plan 3 Task 3). The first `%s` is one of `cannot become a subreaper`, `no pipe`, `cannot start <binary path>`, `the child outlived SIGKILL`, `descendants outlived the cleanup`, `a pipe stayed open`, `wait failed`; the second is the system's error | |
| +| `engine.child.unsupported` | `codec: child processes need Linux` (approved, Luna pass 5; plan 3 Task 3). Only off Linux, where the handler never runs | |
| +| `engine.encode.failed` | `codec: ffmpeg (%s) failed: %q` (approved, Luna pass 5; plan 3 Task 4). `%s` is one of `video`, `poster`, `poster from the first frame`, `audio`, `peaks` (Task 5); `%q` is the last 4 KiB of ffmpeg's stderr at `-loglevel error`, quoted so it stays one line | |
| +| `engine.encode.failed_unlogged` | `codec: ffmpeg (%s) failed; its diagnostics are not logged` (approved, Luna pass 5; plan 3 Task 5). `%s` is `loudness` or `output meter` (fix 1): those passes run at `-loglevel info`, where ffmpeg prints the input's tags, so none of their stderr is logged (preflight F19) | |
| +| `engine.encode.killed` | `codec: ffmpeg (%s) was killed by SIGKILL, likely out of memory` (approved, Luna pass 5; plan 3 Task 4). `%s` as `engine.encode.failed`, or `loudness` or `output meter` (Task 5) | |
| +| `engine.encode.empty` | `codec: ffmpeg wrote no sample to %s` (approved, Luna pass 5; plan 3 Task 4). `%s` is `video.mp4`, `audio.mp4` or `peaks.raw` (Task 5) | |
| +| `engine.encode.unusable` | `codec: %s: %s` (approved, Luna pass 5; plan 3 Task 4). The first `%s` is an output's name, `the output directory`, or (Task 5) `peaks.raw` or `the scratch tmp directory`; the second is the system's error, one of readFMP4's fixed reasons (a box type and a byte offset, never the file's bytes), or (Task 5) `not a regular file`, `fewer samples than the file's size`, `negative sample count`, `negative duration` | |
| +| `engine.loudness.unmeasured` | `codec: ffmpeg (%s) gave no measurement: %s` (approved, Luna pass 5; plan 3 Task 5, fix 1). The first `%s` is `loudness` or `output meter`; the second is one of `engine.loudness.reason.*`, never the stderr | |
| +| `engine.loudness.reason.none` | `no ebur128 summary` (approved, Luna pass 5; plan 3 Task 5, fix 1) | |
| +| `engine.loudness.reason.fields` | `the ebur128 summary has no I or no true peak` (approved, Luna pass 5; plan 3 Task 5, fix 1) | |
| +| `engine.loudness.reason.number` | `the ebur128 summary's I is not a number`, `the ebur128 summary's true peak is not a number` (approved, Luna pass 5; plan 3 Task 5, fix 1) | |
| +| `engine.loudness.gain` | `codec: loudness %.1f LUFS, true peak %.1f dBTP, measurable %t; gain %.2f dB` (approved, Luna pass 5; plan 3 Task 5, fix 1: one decimal, the meter's). Numbers only: the measurement and the gain the first encode uses | |
| +| `engine.loudness.over_ceiling` | `codec: audio.mp4 peaks %.2f dB over the %.1f dBTP ceiling; encoding again at %.2f dB` (approved, Luna pass 5; plan 3 Task 5, fix 1). The excess (true peak plus 0.05 over -1.5), the ceiling, and the second encode's gain | |
| +| `engine.loudness.still_over` | `codec: audio.mp4 still peaks %.2f dB over the ceiling after the second encode; kept` (approved, Luna pass 5; plan 3 Task 5, fix 1). Never a third encode | |
| +| `engine.encode.scratch_full` | `codec: ffmpeg (%s) failed with the scratch disk full` (approved, Luna pass 5; plan 3 Task 6). `%s` as `engine.encode.failed`; the job fails `engine_failed`, not `unreadable` | |
| +| `engine.encode.no_frame` | `codec: ffmpeg wrote no frame to %s` (approved, Luna pass 5; plan 3 Task 6). `%s` is `poster.jpg` | |
| +| `engine.version.unknown` | `codec: ffmpeg's version cannot be read; the result names none` (approved, Luna pass 5; plan 3 Task 6) | |
| +| `engine.collect.refused` | `codec: output %s refused: %s` (approved, Luna pass 5; plan 3 Task 6). The first `%s` is an output's name or `the output directory`; the second one of `a symlink`, `not a regular file`, `not a regular file when opened`, `not a directory`, `not the file checked before the open`, `not the directory checked before the open`, `has %d links`, `empty`, `over its %d-byte bound`, `not an output name`, `no file status`, `cannot be read: %s`, `cannot be opened: %s` (the system's error number's text), `collecting outputs needs Linux` | |
| +| `engine.upload.retry` | `codec: the upload of %s broke; retry %d of %d` (approved, Luna pass 5; plan 3 Task 6). `%s` is an output's name or `the result` | |
| +| `engine.upload.gave_up` | `codec: the upload of %s broke %d times; giving up` (approved, Luna pass 5; plan 3 Task 6) | |
| +| `engine.upload.exists` | `codec: the store already holds %s` (approved, Luna pass 5; plan 3 Task 6). A 412 on the first attempt | |
| +| `engine.upload.exists_after_retry` | `codec: the store holds %s after a broken attempt; reported with this upload's MD5` (approved, Luna pass 5; plan 3 Task 6, fix 1). The console then requires the object's ETag to equal that MD5 | |
| +| `engine.upload.denied` | `codec: the store refused %s (403) before the grant's expiry` (approved, Luna pass 5; plan 3 Task 6, fix 1). More than a minute before it: the job fails `engine_failed` and the failure result is still written | |
| +| `engine.upload.expired` | `codec: the store refused %s (403) at the grant's expiry` (approved, Luna pass 5; plan 3 Task 6, fix 1). Within a minute of it: exit 75, no result | |
| +| `engine.upload.other_bytes` | `codec: the store's ETag for %s is not the MD5 of the bytes sent` (approved, Luna pass 5; plan 3 Task 6, fix 1) | |
| +| `engine.upload.unhashable` | `codec: %s cannot be read to hash it: %s` (approved, Luna pass 5; plan 3 Task 6, fix 1). An output's name or `the result`, and the system's error number's text | |
| +| `engine.upload.status` | `codec: the store answered %d to %s` (approved, Luna pass 5; plan 3 Task 6). The HTTP status and an output's name or `the result` | |
| +| `engine.upload.mismatch` | `codec: the upload of %s does not match its transfer` (approved, Luna pass 5; plan 3 Task 6) | |
| +| `engine.upload.unbuildable` | `codec: a request for the store cannot be built` (approved, Luna pass 5; plan 3 Task 6) | |
| +| `engine.result.unmarshalable` | `codec: the result cannot be written as at most %d bytes of JSON` (approved, Luna pass 5; plan 3 Task 6). `%d` is 65536 | |
| +| `engine.codec.done` | `codec: done; outputs and result written` (approved, Luna pass 5; plan 3 Task 6) | |
| +| `engine.codec.result_unwritten` | `codec: converted, but the result could not be written` (approved, Luna pass 5; plan 3 Task 6) | |
| +| `engine.codec.error_unwritten` | `codec: the result naming %s could not be written` (approved, Luna pass 5; plan 3 Task 6). `%s` is the job error code | |
| +| `engine.codec.unexpected` | `codec: an unexpected %T ends the job` (approved, Luna pass 5; plan 3 Task 6). `%T` is a Go error type, never its text | |
| |
| ### Image tool: `mediaimage` (plan 3 Task 8) |
| |
| @@ -601,31 +616,31 @@ Operator-facing text from `cmd/mediaimage`, which builds and pushes the engine i |
| |
| | Key | Text | |
| |---|---| |
| -| `image.usage` | `usage: mediaimage <lock\|build\|push> [flags]` (pending Luna pass; plan 3 Task 8) | |
| -| `image.error` | `mediaimage: %s`, the prefix of every failure on stderr (pending Luna pass; plan 3 Task 8) | |
| -| `image.flags` | `snapshot.debian.org timestamp, YYYYMMDDTHHMMSSZ`; `base image, docker.io/library/debian@sha256:<digest>`; `lock file to write`; `Debian archive keyring that authenticates the snapshot`; `directory that keeps downloads between runs`; `lock file`; `carlos-media built for linux/arm64`; `image creation time, RFC 3339`; `directory to write the OCI layout to`; `OCI layout written by build`; `image repository, <registry>/<repo>`; `release tag; each release has its own, never reused` (pending Luna pass; plan 3 Task 8) | |
| -| `image.lock.refused` | `bad lock file: line %d: %s`, the reason one of `the snapshot is not YYYYMMDDTHHMMSSZ`, `the base is not pinned by digest`, `the lock starts with # snapshot and # base`, `packages are not sorted`, `a package line has five columns`, `the size is not a positive number`, `the sha256 is not 64 hex digits`, `the url is not https`, `the package or version is empty`; `bad lock file: no packages`; `bad lock file: no ffmpeg package`; `bad lock file: --snapshot is not YYYYMMDDTHHMMSSZ`; `bad lock file: --out is required`; `bad lock file: --keyring must name a keyring file: %s` (pending Luna pass; plan 3 Task 8) | |
| -| `image.lock.unresolved` | `unresolved dependency: no package %s in the snapshot`; `unresolved dependency: %s depends on %s` (pending Luna pass; plan 3 Task 8) | |
| -| `image.base.refused` | `bad base image: %q is not <registry>/<repo>@sha256:<digest>`; `bad base image: no linux/arm64 image`; `bad base image: the image is %s/%s`; `bad base image: %d layers and %d diff ids`; `bad base image: layer type %s`; `bad base image: the base image has no var/lib/dpkg/status`; `bad base image: the registry asked for %q sign-in`; `bad base image: the registry's token address is not https` (pending Luna pass; plan 3 Task 8) | |
| -| `image.hash` | `sha256 mismatch: %s holds %s, want %s`; `sha256 mismatch: downloaded %s, want %s` (pending Luna pass; plan 3 Task 8) | |
| -| `image.deb.refused` | `bad deb: not an ar archive`; `bad deb: no %s member`; `bad deb: no control file`; `bad deb: the control file of %s says %s %s for %s`; `bad deb: a member header is damaged`; `bad deb: a member size is damaged`; `bad deb: a member is cut short`; `bad deb: %s is not a compression this tool reads` (pending Luna pass; plan 3 Task 8) | |
| -| `image.entry.refused` | `refused package entry: %s leaves the root`; `refused package entry: %s would delete files from a lower layer`; `refused package entry: hard link %s has no target in its package`; `refused package entry: %s is not a file, directory or link` (pending Luna pass; plan 3 Task 8) | |
| -| `image.conflict` | `conflicting paths: two packages ship different %s`; `conflicting paths: a package directory %s covers a base file`; `conflicting paths: a package entry %s covers a base directory` (pending Luna pass; plan 3 Task 8) | |
| -| `image.library` | `unresolved library: /%s needs %s`, joined by `; ` when there are several; `unresolved library: %s no longer ships %s` (pending Luna pass; plan 3 Task 8) | |
| -| `image.executable` | `missing executable: /%s is not an arm64 program` (pending Luna pass; plan 3 Task 8) | |
| -| `image.build.refused` | `--out, --binary and --cache are required`; `--created: %s`; `%s exists and is not an image layout` (pending Luna pass; plan 3 Task 8) | |
| -| `image.release.gpgv` | `gpgv is required to verify Debian's signatures: %s` (pending Luna pass; plan 3 Task 8) | |
| -| `image.release.refused` | `unauthenticated release: ` then one of `not one clearsigned message`, `text after the signature`, `a signature does not match`, `no good signature from a Debian archive key`, `gpgv wrote no signed content`, `not one release stanza`, `the SHA256 list is damaged`, `Date: %s`, `Valid-Until: %s`, `the release is %q, want %q`, `%s is dated after the snapshot`, `%s had expired at the snapshot`, `%s does not list %s` (pending Luna pass; plan 3 Task 8) | |
| -| `image.release.index` | `sha256 mismatch: %s %s is not the file its release names` (pending Luna pass; plan 3 Task 8) | |
| -| `image.privileged` | `setuid or setgid path in the image: %s`, the paths joined by `, ` (pending Luna pass; plan 3 Task 8) | |
| -| `image.tls_roots` | `carlos-media embeds no TLS roots: %s does not link golang.org/x/crypto/x509roots/fallback, and the image has no CA bundle, so no transfer to S3 would verify`; `carlos-media embeds no TLS roots: %s names no Go build record: %s` (pending Luna pass; branch review round 1) | |
| -| `image.toolchain` | `wrong Go toolchain: mediaimage runs on %s, releases use %s`; `wrong Go toolchain: %s was built with %s, releases use %s`; `wrong Go toolchain: %s names no Go version: %s` (pending Luna pass; plan 3 Task 8) | |
| -| `image.location` | `the registry pointed outside itself: %s://%s`; `the registry pointed outside itself: an upload answer has no Location`; `the registry pointed outside itself: an upload Location does not parse`; `the registry pointed outside itself: more than %d redirects` (pending Luna pass; plan 3 Task 8) | |
| -| `image.push.refused` | `push refused: CARLOS_REGISTRY_PASSWORD is not set`; `push refused: --tag must be a release tag`; `push refused: --repo must be <registry>/<repo>`; `push refused: the layout holds %d manifests` (pending Luna pass; plan 3 Task 8) | |
| -| `image.push.tag` | `tag already holds another image: %s is %s, this image is %s` (pending Luna pass; plan 3 Task 8) | |
| -| `image.push.digest` | `the registry holds a different image: %s after the push, want %s` (pending Luna pass; plan 3 Task 8) | |
| -| `image.http` | `%s: HTTP %d`, the operation one of `GET %s`, `read manifest %s`, `check blob`, `start upload`, `upload`, `finish upload`, `write manifest`. The registry's own answer is never repeated (pending Luna pass; plan 3 Task 8) | |
| -| `image.readme` | The whole of `deploy/media-image/README.md` (pending Luna pass; plan 3 Task 8) | |
| +| `image.usage` | `usage: mediaimage <lock\|build\|push> [flags]` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.error` | `mediaimage: %s`, the prefix of every failure on stderr (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.flags` | `snapshot.debian.org timestamp, YYYYMMDDTHHMMSSZ`; `base image, docker.io/library/debian@sha256:<digest>`; `lock file to write`; `Debian archive keyring that authenticates the snapshot`; `directory that keeps downloads between runs`; `lock file`; `carlos-media built for linux/arm64`; `image creation time, RFC 3339`; `directory to write the OCI layout to`; `OCI layout written by build`; `image repository, <registry>/<repo>`; `release tag; each release has its own, never reused` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.lock.refused` | `bad lock file: line %d: %s`, the reason one of `the snapshot is not YYYYMMDDTHHMMSSZ`, `the base is not pinned by digest`, `the lock starts with # snapshot and # base`, `packages are not sorted`, `a package line has five columns`, `the size is not a positive number`, `the sha256 is not 64 hex digits`, `the url is not https`, `the package or version is empty`; `bad lock file: no packages`; `bad lock file: no ffmpeg package`; `bad lock file: --snapshot is not YYYYMMDDTHHMMSSZ`; `bad lock file: --out is required`; `bad lock file: --keyring must name a keyring file: %s` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.lock.unresolved` | `unresolved dependency: no package %s in the snapshot`; `unresolved dependency: %s depends on %s` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.base.refused` | `bad base image: %q is not <registry>/<repo>@sha256:<digest>`; `bad base image: no linux/arm64 image`; `bad base image: the image is %s/%s, want linux/arm64`; `bad base image: %d layers and %d diff ids`; `bad base image: layer type %s`; `bad base image: the base image has no var/lib/dpkg/status`; `bad base image: the registry asked for %q sign-in`; `bad base image: the registry's token address is not https` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.hash` | `sha256 mismatch: %s holds %s, want %s`; `sha256 mismatch: downloaded %s, want %s` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.deb.refused` | `bad deb: not an ar archive`; `bad deb: no %s member`; `bad deb: no control file`; `bad deb: the control file of %s says %s %s for %s`; `bad deb: a member header is damaged`; `bad deb: a member size is damaged`; `bad deb: a member is cut short`; `bad deb: %s is not a compression this tool reads` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.entry.refused` | `refused package entry: %s leaves the root`; `refused package entry: %s would delete files from a lower layer`; `refused package entry: hard link %s has no target in its package`; `refused package entry: %s is not a file, directory or link` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.conflict` | `conflicting paths: two packages ship different %s`; `conflicting paths: a package directory %s covers a base file`; `conflicting paths: a package entry %s covers a base directory` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.library` | `unresolved library: /%s needs %s`, joined by `; ` when there are several; `unresolved library: %s no longer ships %s` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.executable` | `missing executable: /%s is not an arm64 program` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.build.refused` | `--out, --binary and --cache are required`; `--created: %s`; `%s exists and is not an image layout` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.release.gpgv` | `gpgv is required to verify Debian's signatures: %s` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.release.refused` | `unauthenticated release: ` then one of `not one clearsigned message`, `text after the signature`, `a signature does not match`, `no good signature from a Debian archive key`, `gpgv wrote no signed content`, `not one release stanza`, `the SHA256 list is damaged`, `Date: %s`, `Valid-Until: %s`, `the release is %q, want %q`, `%s is dated after the snapshot`, `%s had expired at the snapshot`, `%s does not list %s` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.release.index` | `sha256 mismatch: %s %s is not the file its release names` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.privileged` | `setuid or setgid path in the image: %s`, the paths joined by `, ` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.tls_roots` | `carlos-media embeds no TLS roots: %s does not link golang.org/x/crypto/x509roots/fallback, and the image has no CA bundle, so no transfer to S3 would verify`; `carlos-media embeds no TLS roots: %s names no Go build record: %s` (approved, Luna pass 5; branch review round 1) | |
| +| `image.toolchain` | `wrong Go toolchain: mediaimage runs on %s, releases use %s`; `wrong Go toolchain: %s was built with %s, releases use %s`; `wrong Go toolchain: %s names no Go version: %s` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.location` | `the registry pointed outside itself: %s://%s`; `the registry pointed outside itself: an upload answer has no Location`; `the registry pointed outside itself: an upload Location does not parse`; `the registry pointed outside itself: more than %d redirects` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.push.refused` | `push refused: CARLOS_REGISTRY_PASSWORD is not set`; `push refused: --tag must be a release tag`; `push refused: --repo must be <registry>/<repo>`; `push refused: the layout holds %d manifests` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.push.tag` | `tag already holds another image: %s is %s, this image is %s` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.push.digest` | `the registry holds a different image: %s after the push, want %s` (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.http` | `%s: HTTP %d`, the operation one of `GET %s` (a public package URL from the lock or the snapshot, or a registry path; never a credential), `read manifest %s`, `check blob`, `start upload`, `upload`, `finish upload`, `write manifest`. The registry's own answer is never repeated (approved, Luna pass 5; plan 3 Task 8) | |
| +| `image.readme` | The whole of `deploy/media-image/README.md` (approved, Luna pass 5; plan 3 Task 8), except the paragraph on who runs the weekly lock (“The weekly run belongs to…”), still pending: Paul picks an amadan or a Paseo schedule | |
| |
| ### Rollout checks: `selftest`, `drill` and the endpoint drill script (plan 3 Task 7) |
| |
| @@ -633,35 +648,35 @@ Operator-facing text the rollout reads (R2-R4): one-off tasks' logs and |
| the drill script's terminal. Every line is fixed words, numbers, an |
| environment variable's name, a host name, an address the operator typed |
| or an output's name: never a credential, a URL or a header. `%s` and |
| -`%d` are what each row says. All rows are pending a Luna pass. |
| +`%d` are what each row says. All rows are approved, Luna pass 5. |
| |
| | Key | Text | |
| |---|---| |
| -| `engine.selftest.usage` | `usage: carlos-media selftest <video\|audio>` (pending Luna pass; plan 3 Task 7) | |
| -| `engine.selftest.pass` | `PASS %s` (pending Luna pass; plan 3 Task 7). `%s` is a case: `tls-roots` (first in both selftests; branch review round 1), `video-1080p`, `video-portrait-rotated`, `video-pq-4k`, `video-location-tag`, `audio-voice-webm-live`, `audio-silent-wav`, `audio-mp3-cover-art` | |
| -| `engine.selftest.fail` | `FAIL %s: %s` (pending Luna pass; plan 3 Task 7). A case and one of `engine.selftest.reason.*` | |
| -| `engine.selftest.no_scratch` | `FAIL selftest: no directory in the scratch: %s`, `FAIL selftest: no local store: %s` (pending Luna pass; plan 3 Task 7). The system's error number's text | |
| -| `engine.selftest.reason.*` | `no case directory: %s`; `ffmpeg could not make the source: %s`; `the source cannot be read: %s`; `the source does not sniff: %s`; `the source does not probe: %s`; `no payload: %s`; `the conversion exited %d`; `the handler broke the presigned contract: %s` (`a request the store did not sign` or `a signed header missing or changed`); `the result is not a success result`; `converted %d ms of a %d ms source`; `%s: stored %d bytes, the result says %d`; `%s does not read as a fragmented MP4: %s`; `%s: no playlist: %s`; `%s is not the playlist of %s`; `the result gives %s as %dx%d, want %dx%d`; `poster.jpg is not a JPEG`; `poster.jpg is %dx%d, want %dx%d`; `video.mp4 does not probe: %s`; `video.mp4 is %s %dx%d (rotation %d, SAR %d:%d), want h264 %dx%d` (fix 1: as encoded, never scaled first); `peaks.json does not hold %d peaks`; `peaks.json has a peak outside 0 to 255`; `a silent source has a peak of %d`; `every peak is 0`; `the source does not measure: %s`; `audio.mp4 does not measure: %s`; `audio.mp4's true peak is %.1f dBTP, over %.1f`; `audio.mp4 is %.1f LUFS, louder than %.0f LUFS`; `audio.mp4's loudness range is %.1f LU, the source's %.1f`; `a log line carries the source's metadata`; `%s carries the source's metadata` (pending Luna pass; plan 3 Task 7). Each `%s` after a colon is a job code, a system error number's text or one of the meter's fixed reasons | |
| -| `engine.selftest.reason.tls` | `tls-roots`'s reasons: `no root this binary trusts signs S3's certificate`; `S3's certificate does not verify`; `the embedded S3 chain does not parse` (pending Luna pass; branch review round 1) | |
| -| `engine.selftest.measured` | `%s: source %.1f LUFS, %.1f dBTP, LRA %.1f LU; audio.mp4 %.1f LUFS, %.1f dBTP, LRA %.1f LU` (pending Luna pass; plan 3 Task 7). On stderr, the voice case only | |
| -| `engine.loudness.reason.lra` | `the ebur128 summary's LRA is not a number`, `the ebur128 summary has no LRA` (pending Luna pass; plan 3 Task 7) | |
| -| `engine.drill.usage` | `usage: carlos-media drill <creds\|dns\|net <address>…\|endpoints\|endpoints-verdict <A> <B> <C>\|hostile-timer\|fill-scratch\|many-files\|bad-outputs>` (pending Luna pass; plan 3 Task 7) | |
| -| `engine.drill.creds` | `PASS creds env: no credential variable; AWS variables set: %s` (names, or `none`); `FAIL creds env: %s is set` (a variable's name); `PASS creds 169.254.170.2: unreachable`, `PASS creds 169.254.170.2: answered with no credential`, `FAIL creds 169.254.170.2: answered with a credential`; `PASS creds 169.254.169.254: unreachable`, `FAIL creds 169.254.169.254: reachable`; `PASS creds task metadata: %s is not set`, `PASS creds task metadata: no answer holds a credential`, `FAIL creds task metadata: an answer holds a credential` (pending Luna pass; plan 3 Task 7) | |
| -| `engine.drill.dns` | `PASS dns %s: resolves`, `FAIL dns %s: does not resolve` (an allowed name); `PASS dns %s: does not resolve`, `FAIL dns %s: resolves` (a blocked one); `FAIL dns: no region in AWS_REGION or AWS_DEFAULT_REGION` (pending Luna pass; plan 3 Task 7) | |
| -| `engine.drill.net` | `PASS net %s: no connection`, `FAIL net %s: connected` (an address and port); `FAIL net: an argument is not an IP address with an optional port` (pending Luna pass; plan 3 Task 7) | |
| -| `engine.drill.endpoints` | `%s ok`, `%s refused %s` (an endpoint: `s3`, `ecr-api`, `ecr-docker`, `logs`; a status code or `conn`), the only stdout of a pass; `drill endpoints: CARLOS_MEDIA_DRILL does not hold the drill's input` on stderr (pending Luna pass; plan 3 Task 7) | |
| -| `engine.drill.verdict` | the table head `endpoint A (saved) B (open) C (restored)`, then one row per endpoint of cells (`ok`, `refused %s`, `missing`, `malformed`); `FAIL %s phase %s: %s, want %s` (an endpoint, A/B/C, a cell, `refused` or `ok`); `PASS endpoints: refused under the saved and restored policies, ok under the open one, at all four endpoints` (pending Luna pass; plan 3 Task 7) | |
| -| `engine.drill.hostile_timer` | `FAIL hostile-timer: not PID 1 of its own PID namespace; refusing to signal every process`; `hostile-timer: ignoring SIGTERM and SIGINT; sent SIGKILL to %d other processes and to -1; repeating until the deadline ends the task` (pending Luna pass; plan 3 Task 7) | |
| -| `engine.drill.child_job` | `PASS %s: the job failed %s in %s; %s; no child left; outputs reset` (the evidence: `the child met %s and the scratch read full`, ENOSPC or EDQUOT, or `%d files were made`); `FAIL %s: %s (job %s, in %s)`, the reason one of `the child never met a full file system`, `the scratch did not read full`, `the job did not end %s`, `the child made %d files, not 100000`, `a child outlived the cleanup`, `the outputs were not reset: %s`, `the scratch is unusable: %s`; `FAIL %s: the binary's own path is unknown` (`fill-scratch` or `many-files`; a job code or `no error`; a duration) (pending Luna pass; plan 3 Task 7, fix 1) | |
| -| `engine.harden.failed` | `carlos-media: cannot make the process non-dumpable: %s` (pending Luna pass; plan 3 Task 7 fix 1). The system's error; codec, selftest and the drills then exit 1 having read nothing | |
| -| `engine.drill.bad_outputs` | `PASS bad-outputs %s %s: refused (%s)` (an output's name, a kind: `symlink`, `hardlink`, `fifo`, `directory`, `empty`, `oversize`; `engine.collect.refused`'s text), `FAIL bad-outputs %s %s: not refused`, `FAIL bad-outputs: the drill could not run: %s`, `FAIL bad-outputs: %d PUTs attempted, want 0`, `PASS bad-outputs: 0 PUTs attempted` (pending Luna pass; plan 3 Task 7) | |
| -| `engine.drill.unsupported` | `FAIL %s: unsupported on this system` (pending Luna pass; plan 3 Task 7). Off Linux only | |
| -| `engine.drill.child` | `hostile child: exhausted: ENOSPC` or `EDQUOT` (on the child's stdout: the drill's evidence, fix 1), `hostile child: unknown kind`, `hostile child: no file system status: %s`, `hostile child: refusing to fill a %d-byte file system`, `hostile child: %s` (on the hostile child's stderr; it reaches the task's log only as `engine.encode.failed`'s tail) (pending Luna pass; plan 3 Task 7) | |
| -| `script.endpoint_drill.usage` | `usage: media-endpoint-drill.sh run --profile <p> --foreign-profile <p> --cluster <arn> --task-definition <arn> --repository <name> --bucket <name> --subnets <id,...> --security-group <id> --engine-root <dir> \| restore <run dir>` (pending Luna pass; plan 3 Task 7 fix 2) | |
| -| `script.endpoint_drill.progress` | `media-endpoint-drill: run directory %s`; `media-endpoint-drill: applying the fixture`; `media-endpoint-drill: phase A: the endpoints' real policies`; `media-endpoint-drill: phase B: the endpoints opened to full access`; `media-endpoint-drill: phase C: the endpoints' real policies again`; `media-endpoint-drill: phase A was not refused at every endpoint; the endpoints are not opened`; `media-endpoint-drill: kept %s; finish with: %s restore %s` (pending Luna pass; plan 3 Task 7 fix 2). On stderr | |
| -| `script.endpoint_drill.restore` | `cleaned %s`, `NOT CLEANED %s` (an item: `engine-policies`, `fixture`, `input`) (pending Luna pass; plan 3 Task 7 fix 2). On stdout | |
| -| `script.endpoint_drill.refused` | `media-endpoint-drill: refusing to run with xtrace on: it would print the drill's secrets`; `media-endpoint-drill: refusing to run with BASH_XTRACEFD set: it would print the drill's secrets`; `media-endpoint-drill: %s/drill.conf is damaged; nothing was changed. Restore the engine root and destroy the fixture by hand.`; `media-endpoint-drill: the engine root's normal media_engine_drill input is not null: its next ordinary apply would reopen the drill`; `media-endpoint-drill: the fixture's first apply did not finish, so a resource may exist that tofu never saved.`; `media-endpoint-drill: look for the user carlos-media-drill-%s and the log group carlos-media-endpoint-drill-%s in the foreign account, and the bucket %s in dev`; `media-endpoint-drill: delete what you find, then remove %s` (pending Luna pass; plan 3 Task 7 fixes 2 and 3). On stderr | |
| -| `script.endpoint_drill.error` | `media-endpoint-drill: ` then one of: `--engine-root is not a directory`; `--engine-root has characters the drill cannot record`; `--cluster is not a cluster ARN`; `the dev profile does not answer`; `the dev profile is not the cluster's account`; `the foreign profile does not answer`; `the foreign profile has no account`; `the foreign profile is the dev account: the drill needs an unrelated account`; `the task definition cannot be read`; `the codec image is not pinned by digest`; `the codec image is not from --repository`; `the codec container has no awslogs group and prefix`; `no run directory`; `no run id`; `the run directory cannot be written`; `the engine root declares no media_engine_drill variable`; `the engine root does not initialise`; `TF_VAR_media_engine_drill is set; unset it first`; `the engine root's normal media_engine_drill input is not null; set it back first`; `the engine root's policies have changes pending; apply or revert them first`; `the engine root's variables cannot be written`; `the engine root was not applied`; `the fixture cannot be copied`; `the fixture's variables cannot be written`; `the fixture does not initialise`; `the fixture was not applied`; `the fixture has no user`; `the fixture's user is not the expected one`; `the user's key was not created`; `the GET was not presigned`; `the registry token was not minted`; `the log stream was not created`; `a minted value cannot be written as JSON`; `the drill's input cannot be written`; `a drill task did not start`; `the drill task did not stop in time`; `the drill task's output is incomplete` (pending Luna pass; plan 3 Task 7 fix 2). On stderr | |
| +| `engine.selftest.usage` | `usage: carlos-media selftest <video\|audio>` (approved, Luna pass 5; plan 3 Task 7) | |
| +| `engine.selftest.pass` | `PASS %s` (approved, Luna pass 5; plan 3 Task 7). `%s` is a case: `tls-roots` (first in both selftests; branch review round 1), `video-1080p`, `video-portrait-rotated`, `video-pq-4k`, `video-location-tag`, `audio-voice-webm-live`, `audio-silent-wav`, `audio-mp3-cover-art` | |
| +| `engine.selftest.fail` | `FAIL %s: %s` (approved, Luna pass 5; plan 3 Task 7). A case and one of `engine.selftest.reason.*` | |
| +| `engine.selftest.no_scratch` | `FAIL selftest: no directory in the scratch: %s`, `FAIL selftest: no local store: %s` (approved, Luna pass 5; plan 3 Task 7). The system's error number's text | |
| +| `engine.selftest.reason.*` | `no case directory: %s`; `ffmpeg could not make the source: %s`; `the source cannot be read: %s`; `the source does not sniff: %s`; `the source does not probe: %s`; `no payload: %s`; `the conversion exited %d`; `the handler broke the presigned contract: %s` (`a request the store did not sign` or `a signed header missing or changed`); `the result is not a success result`; `converted %d ms of a %d ms source`; `%s: stored %d bytes, the result says %d`; `%s does not read as a fragmented MP4: %s`; `%s: no playlist: %s`; `%s is not the playlist of %s`; `the result gives %s as %dx%d, want %dx%d`; `poster.jpg is not a JPEG`; `poster.jpg is %dx%d, want %dx%d`; `video.mp4 does not probe: %s`; `video.mp4 is %s %dx%d (rotation %d, SAR %d:%d), want h264 %dx%d` (fix 1: as encoded, never scaled first); `peaks.json does not hold %d peaks`; `peaks.json has a peak outside 0 to 255`; `a silent source has a peak of %d`; `every peak is 0`; `the source does not measure: %s`; `audio.mp4 does not measure: %s`; `audio.mp4's true peak is %.1f dBTP, over %.1f`; `audio.mp4 is %.1f LUFS, louder than %.0f LUFS`; `audio.mp4's loudness range is %.1f LU, the source's %.1f`; `a log line carries the source's metadata`; `%s carries the source's metadata` (approved, Luna pass 5; plan 3 Task 7). Each `%s` after a colon is a job code, a system error number's text or one of the meter's fixed reasons | |
| +| `engine.selftest.reason.tls` | `tls-roots`'s reasons: `no root trusted by this binary can verify S3's certificate`; `S3's certificate does not verify`; `the embedded S3 chain does not parse` (approved, Luna pass 5; branch review round 1) | |
| +| `engine.selftest.measured` | `%s: source %.1f LUFS, %.1f dBTP, LRA %.1f LU; audio.mp4 %.1f LUFS, %.1f dBTP, LRA %.1f LU` (approved, Luna pass 5; plan 3 Task 7). On stderr, the voice case only | |
| +| `engine.loudness.reason.lra` | `the ebur128 summary's LRA is not a number`, `the ebur128 summary has no LRA` (approved, Luna pass 5; plan 3 Task 7) | |
| +| `engine.drill.usage` | `usage: carlos-media drill <creds\|dns\|net <address>…\|endpoints\|endpoints-verdict <A> <B> <C>\|hostile-timer\|fill-scratch\|many-files\|bad-outputs>` (approved, Luna pass 5; plan 3 Task 7) | |
| +| `engine.drill.creds` | `PASS creds env: no credential variable; AWS variables set: %s` (names, or `none`); `FAIL creds env: %s is set` (a variable's name); `PASS creds 169.254.170.2: unreachable`, `PASS creds 169.254.170.2: answered with no credential`, `FAIL creds 169.254.170.2: answered with a credential`; `PASS creds 169.254.169.254: unreachable`, `FAIL creds 169.254.169.254: reachable`; `PASS creds task metadata: %s is not set`, `PASS creds task metadata: no answer holds a credential`, `FAIL creds task metadata: an answer holds a credential` (approved, Luna pass 5; plan 3 Task 7) | |
| +| `engine.drill.dns` | `PASS dns %s: resolves`, `FAIL dns %s: does not resolve` (an allowed name); `PASS dns %s: does not resolve`, `FAIL dns %s: resolves` (a blocked one); `FAIL dns: no region in AWS_REGION or AWS_DEFAULT_REGION` (approved, Luna pass 5; plan 3 Task 7) | |
| +| `engine.drill.net` | `PASS net %s: no connection`, `FAIL net %s: connected` (an address and port); `FAIL net: an argument is not an IP address with an optional port` (approved, Luna pass 5; plan 3 Task 7) | |
| +| `engine.drill.endpoints` | `%s ok`, `%s refused %s` (an endpoint: `s3`, `ecr-api`, `ecr-docker`, `logs`; a status code or `conn`), the only stdout of a pass; `drill endpoints: CARLOS_MEDIA_DRILL does not hold the drill's input` on stderr (approved, Luna pass 5; plan 3 Task 7) | |
| +| `engine.drill.verdict` | the table head `endpoint A (saved) B (open) C (restored)`, then one row per endpoint of cells (`ok`, `refused %s`, `missing`, `malformed`); `FAIL %s phase %s: %s, want %s` (an endpoint, A/B/C, a cell, `refused` or `ok`); `PASS endpoints: refused under the saved and restored policies, ok under the open one, at all four endpoints` (approved, Luna pass 5; plan 3 Task 7) | |
| +| `engine.drill.hostile_timer` | `FAIL hostile-timer: not PID 1 of its own PID namespace; refusing to signal every process`; `hostile-timer: ignoring SIGTERM and SIGINT; sent SIGKILL to %d other processes and to -1; repeating until the deadline ends the task` (approved, Luna pass 5; plan 3 Task 7) | |
| +| `engine.drill.child_job` | `PASS %s: the job failed %s in %s; %s; no child left; outputs reset` (the evidence: `the child met %s and the scratch read full`, ENOSPC or EDQUOT, or `%d files were made`); `FAIL %s: %s (job %s, in %s)`, the reason one of `the child never met a full file system`, `the scratch did not read full`, `the job did not end %s`, `the child made %d files, not 100000`, `a child outlived the cleanup`, `the outputs were not reset: %s`, `the scratch is unusable: %s`; `FAIL %s: the binary's own path is unknown` (`fill-scratch` or `many-files`; a job code or `no error`; a duration) (approved, Luna pass 5; plan 3 Task 7, fix 1) | |
| +| `engine.harden.failed` | `carlos-media: cannot make the process non-dumpable: %s` (approved, Luna pass 5; plan 3 Task 7 fix 1). The system's error; codec, selftest and the drills then exit 1 having read nothing | |
| +| `engine.drill.bad_outputs` | `PASS bad-outputs %s %s: refused (%s)` (an output's name, a kind: `symlink`, `hardlink`, `fifo`, `directory`, `empty`, `oversize`; `engine.collect.refused`'s text), `FAIL bad-outputs %s %s: not refused`, `FAIL bad-outputs: the drill could not run: %s`, `FAIL bad-outputs: %d PUTs attempted, want 0`, `PASS bad-outputs: 0 PUTs attempted` (approved, Luna pass 5; plan 3 Task 7) | |
| +| `engine.drill.unsupported` | `FAIL %s: unsupported on this system` (approved, Luna pass 5; plan 3 Task 7). Off Linux only | |
| +| `engine.drill.child` | `hostile child: exhausted: ENOSPC` or `EDQUOT` (on the child's stdout: the drill's evidence, fix 1), `hostile child: unknown kind`, `hostile child: no file system status: %s`, `hostile child: refusing to fill a %d-byte file system`, `hostile child: %s` (on the hostile child's stderr; it reaches the task's log only as `engine.encode.failed`'s tail) (approved, Luna pass 5; plan 3 Task 7) | |
| +| `script.endpoint_drill.usage` | `usage: media-endpoint-drill.sh run --profile <p> --foreign-profile <p> --cluster <arn> --task-definition <arn> --repository <name> --bucket <name> --subnets <id,...> --security-group <id> --engine-root <dir> \| restore <run dir>` (approved, Luna pass 5; plan 3 Task 7 fix 2) | |
| +| `script.endpoint_drill.progress` | `media-endpoint-drill: run directory %s`; `media-endpoint-drill: applying the fixture`; `media-endpoint-drill: phase A: the endpoints' real policies`; `media-endpoint-drill: phase B: the endpoints opened to full access`; `media-endpoint-drill: phase C: the endpoints' real policies again`; `media-endpoint-drill: phase A was not refused at every endpoint; the endpoints are not opened`; `media-endpoint-drill: kept %s; finish with: %s restore %s` (approved, Luna pass 5; plan 3 Task 7 fix 2). On stderr | |
| +| `script.endpoint_drill.restore` | `cleaned %s`, `NOT CLEANED %s` (an item: `engine-policies`, `fixture`, `input`) (approved, Luna pass 5; plan 3 Task 7 fix 2). On stdout | |
| +| `script.endpoint_drill.refused` | `media-endpoint-drill: refusing to run with xtrace on: it would print the drill's secrets`; `media-endpoint-drill: refusing to run with BASH_XTRACEFD set: it would print the drill's secrets`; `media-endpoint-drill: %s/drill.conf is damaged; nothing was changed. Restore the engine root and destroy the fixture by hand.`; `media-endpoint-drill: the engine root's normal media_engine_drill input is not null: its next ordinary apply would reopen the drill`; `media-endpoint-drill: the fixture's first apply did not finish, so a resource may exist that tofu never saved.`; `media-endpoint-drill: look for the user carlos-media-drill-%s and the log group carlos-media-endpoint-drill-%s in the foreign account, and the bucket %s in dev`; `media-endpoint-drill: delete what you find, then remove %s` (approved, Luna pass 5; plan 3 Task 7 fixes 2 and 3). On stderr | |
| +| `script.endpoint_drill.error` | `media-endpoint-drill: ` then one of: `--engine-root is not a directory`; `--engine-root has characters the drill cannot record`; `--cluster is not a cluster ARN`; `the dev profile does not answer`; `the dev profile is not the cluster's account`; `the foreign profile does not answer`; `the foreign profile has no account`; `the foreign profile is the dev account: the drill needs an unrelated account`; `the task definition cannot be read`; `the codec image is not pinned by digest`; `the codec image is not from --repository`; `the codec container has no awslogs group and prefix`; `no run directory`; `no run id`; `the run directory cannot be written`; `the engine root declares no media_engine_drill variable`; `the engine root does not initialise`; `TF_VAR_media_engine_drill is set; unset it first`; `the engine root's normal media_engine_drill input is not null; set it back first`; `the engine root's policies have changes pending; apply or revert them first`; `the engine root's variables cannot be written`; `the engine root was not applied`; `the fixture cannot be copied`; `the fixture's variables cannot be written`; `the fixture does not initialise`; `the fixture was not applied`; `the fixture has no user`; `the fixture's user is not the expected one`; `the user's key was not created`; `the GET was not presigned`; `the registry token was not minted`; `the log stream was not created`; `a minted value cannot be written as JSON`; `the drill's input cannot be written`; `a drill task did not start`; `the drill task did not stop in time`; `the drill task's output is incomplete` (approved, Luna pass 5; plan 3 Task 7 fix 2). On stderr | |
| |
| ### AWS adapter diagnostics: `internal/mediaaws` (plan 3 Task 9) |
| |
| @@ -673,30 +688,31 @@ for whoever deploys the console and are not listed here. |
| |
| | Key | Text | |
| |---|---| |
| -| `engine.aws.error` | `media: %s: %s`, an operation (`ecs RunTask`, `ecs DescribeTasks`, `ecs ListTasks`, `ecs StopTask`, `ecs DescribeTaskDefinition`, `sts AssumeRole`, `assume the conversion role`, `presign a transfer`, `grant`, `store bucket`, `bucket settings`, `load AWS configuration`, or `s3 ` and the S3 call) and one of the `engine.aws.cause.*` or `engine.aws.grant.*` texts (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.canceled` | `canceled` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.timeout` | `timed out` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.api` | `%s (HTTP %d)` or `%s` (an AWS error code), or `HTTP %d` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.transport` | `the request failed before an answer came back` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.task_unreadable` | `a task could not be read: %s`, `%s` one of the `engine.aws.failure.*` words, never the reason ECS gave (pending Luna pass; plan 3 Task 9, branch review round 1) | |
| -| `engine.aws.failure.known` | The words shown for a failure reason ECS gave that this console recognises: `MISSING`, `RESOURCE:CPU`, `RESOURCE:MEMORY`, `RESOURCE:PORTS`, `RESOURCE:PORTS_TCP`, `RESOURCE:PORTS_UDP`, `RESOURCE:ENI`, `RESOURCE:GPU`, `RESOURCE (a resource this console does not name)`, `Capacity is unavailable`, `AGENT`, `ATTRIBUTE`, `LOCATION` (pending Luna pass; branch review round 1) | |
| -| `engine.aws.failure.unrepeated` | `the engine gave a reason this console does not repeat`, for any other reason; `no reason reported` for an empty one (pending Luna pass; branch review round 1) | |
| -| `engine.aws.cause.other_revision` | `the answer is not about the revision asked for` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.no_etag` | `the answer holds no ETag` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.listed_key` | `a listed key is not URL encoded` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.outside_derived` | `refused a key outside derived/` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.canonical_rule` | `the canonical rule cannot be read` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.no_credentials` | `media: sts AssumeRole: the answer holds no complete credentials` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.no_expiry` | `the session has no expiry` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.policy` | `the session policy cannot be built` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.cause.store_bucket` | `the bucket is not a bucket name`, `the bucket is outside this deployment's store prefix` (pending Luna pass; plan 3 Task 9 fix 1) | |
| -| `engine.aws.cause.no_account` | `no account to expect as the bucket's owner` (pending Luna pass; plan 3 Task 9 fix 1) | |
| -| `engine.aws.grant.request` | `the execution is not 32 hex characters`, `the source key is not valid`, `the source ETag is not valid`, `the output prefix is not a directory under derived/`, `the grant does not name %d outputs`, `an output's name or content type is not one the engine writes` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.grant.presign` | `the presigned transfers do not share one credential`, `an output's URL is not under the output prefix`, `a presigned URL does not have the expected shape`, `a presigned URL does not sign the expected headers` (pending Luna pass; plan 3 Task 9) | |
| -| `engine.aws.rejected` | The reason in `engine rejected the launch: %s`: an AWS error code, `HTTP 429`, one of the `engine.aws.failure.*` words, `no task definition for this class`, `no task and no failure reported`, or `the API refused the request` (pending Luna pass; plan 3 Task 9, branch review round 1) | |
| -| `console.media.off_at_boot` | `console: media conversion is off until the cloud answers; trying again in the background: %v`, logged once at boot when the cloud account cannot be read or a client cannot be built (changed in branch review round 1: the console retries the wiring instead of waiting for the next start). `%v` is `the cloud account could not be reached: <step>: <cause>`. The step is `sts GetCallerIdentity`, `build the S3 client` or `build the conversion engine`; the cause is one of the `engine.aws.cause.*` texts, never the error's own message (pending Luna pass; plan 3 Task 10 fix 2) | |
| -| `console.media.on_after_retry` | `console: media conversion is on: the cloud answered`, logged once when the background retry wires media after `console.media.off_at_boot` (pending Luna pass; branch review round 1) | |
| -| `console.media.retry_refused` | `console: media conversion stays off: %v`, logged once when the background retry finds a setting that is wrong (the engine's account is not the console's, or its limits are refused); `%v` names the setting, never its value (pending Luna pass; branch review round 1) | |
| +| `engine.aws.error` | `media: %s: %s`, an operation (`ecs RunTask`, `ecs DescribeTasks`, `ecs ListTasks`, `ecs StopTask`, `ecs DescribeTaskDefinition`, `sts AssumeRole`, `assume the conversion role`, `presign a transfer`, `grant`, `store bucket`, `bucket settings`, `load AWS configuration`, or `s3 ` and the S3 call) and one of the `engine.aws.cause.*` or `engine.aws.grant.*` texts (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.cause.canceled` | `canceled` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.cause.timeout` | `timed out` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.cause.api` | `%s (HTTP %d)` or `%s` (an AWS error code), or `HTTP %d` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.cause.transport` | `the request failed before an answer came back` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.cause.task_unreadable` | `a task could not be read: %s`, `%s` one of the `engine.aws.failure.*` words, never the reason ECS gave (approved, Luna pass 5; plan 3 Task 9, branch review round 1) | |
| +| `engine.aws.failure.known` | The words shown for a failure reason ECS gave that this console recognises: `MISSING`, `RESOURCE:CPU`, `RESOURCE:MEMORY`, `RESOURCE:PORTS`, `RESOURCE:PORTS_TCP`, `RESOURCE:PORTS_UDP`, `RESOURCE:ENI`, `RESOURCE:GPU`, `RESOURCE (a resource this console does not name)`, `Capacity is unavailable`, `AGENT`, `ATTRIBUTE`, `LOCATION` (approved, Luna pass 5; branch review round 1) | |
| +| `engine.aws.failure.unrepeated` | `the engine gave a reason this console does not repeat`, for any other reason; `no reason reported` for an empty one (approved, Luna pass 5; branch review round 1) | |
| +| `engine.aws.cause.other_revision` | `the answer is not about the revision asked for` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.cause.no_etag` | `the answer holds no ETag` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.cause.listed_key` | `a listed key is not URL encoded` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.cause.outside_derived` | `refused a key outside derived/` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.cause.canonical_rule` | `the canonical rule cannot be read` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.cause.no_credentials` | `media: sts AssumeRole: the answer holds no complete credentials` (approved, Luna pass 5; plan 3 Task 9). Not logged as written today: the grant replaces any error that is not the adapter's own, so this case reaches the log as `media: assume the conversion role: the request failed before an answer came back` (a follow-up in `media-conversion-followups.md`) | |
| +| `engine.aws.cause.no_expiry` | `the session has no expiry` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.cause.policy` | `the session policy cannot be built` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.cause.store_bucket` | `the bucket is not a bucket name`, `the bucket is outside this deployment's store prefix` (approved, Luna pass 5; plan 3 Task 9 fix 1) | |
| +| `engine.aws.cause.no_account` | `no account to expect as the bucket's owner` (approved, Luna pass 5; plan 3 Task 9 fix 1) | |
| +| `engine.aws.grant.request` | `the execution is not 32 hex characters`, `the source key is not valid`, `the source ETag is not valid`, `the output prefix is not a directory under derived/`, `the grant does not name %d outputs`, `an output's name or content type is not one the engine writes` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.grant.presign` | `the presigned transfers do not share one credential`, `an output's URL is not under the output prefix`, `a presigned URL does not have the expected shape`, `a presigned URL does not sign the expected headers` (approved, Luna pass 5; plan 3 Task 9) | |
| +| `engine.aws.rejected` | `engine rejected the launch: %s`; `engine rejected the launch (retryable): %s`. The reason: an AWS error code, `HTTP 429`, one of the `engine.aws.failure.*` words, `no task definition for this class`, `no task and no failure reported`, or `the API refused the request` (approved, Luna pass 5; plan 3 Task 9, branch review round 1) | |
| +| `console.media.off_at_boot` | `console: media conversion is off until the cloud answers; trying again in the background: %v`, logged once at boot when the cloud account cannot be read or a client cannot be built (changed in branch review round 1: the console retries the wiring instead of waiting for the next start). `%v` is `the cloud account could not be reached: <step>: <cause>`. The step is `sts GetCallerIdentity`, `build the S3 client` or `build the conversion engine`; the cause is one of the `engine.aws.cause.*` texts, never the error's own message (approved, Luna pass 5; plan 3 Task 10 fix 2) | |
| +| `console.media.on_after_retry` | `console: media conversion is on: the cloud answered`, logged once when the background retry wires media after `console.media.off_at_boot` (approved, Luna pass 5; branch review round 1) | |
| +| `console.media.retry_refused` | `console: media conversion stays off: %v`, logged once when the background retry finds a setting that is wrong (the engine's account is not the console's, or its limits are refused); `%v` is the refusal the boot would have stopped on: it names the setting, and an account mismatch quotes both account IDs; never a credential (approved, Luna pass 5; branch review round 1) | |
| +| `console.media.launch_cancelled` | `media jobs: launch %s: grant: %v; the launch was cancelled, back to queued`, `media jobs: launch %s: %v before RunTask; the launch was cancelled, back to queued`, logged when the console stops during a launch (spec A5): the row goes back to `queued`, uncharged, without using its one retry. `%s` is the job (account/app/id); `%v` is the grant's `engine.aws.error` text in the first, Go's context error in the second (approved, Luna pass 5; A5) | |
| |
| ### The media-engine module (plan 3 Task 11) |
| |
| @@ -705,17 +721,17 @@ reaper's lines reach only the task's stop reason and the function's own log. |
| |
| | Key | Text | |
| |---|---| |
| -| `infra.media_engine.readme` | The whole of `infra/modules/media-engine/README.md` (pending Luna pass; plan 3 Task 11) | |
| -| `infra.modules_readme.media_engine` | The `media-engine` section of `infra/modules/README.md` (pending Luna pass; plan 3 Task 11) | |
| -| `infra.media_engine.readme.rollout` | The `Change the image` and `Roll back` sections of `infra/modules/media-engine/README.md`, and the sentence on deregistering revisions under `Removing the module` (pending Luna pass; plan 3 Task 11 fix 1) | |
| -| `infra.media_engine.readme.transfers_gate` | The last activation check in `infra/modules/media-engine/README.md`, on transfers resolving and the ECR image pull (pending Luna pass; plan 3 Task 11 fix 1) | |
| -| `infra.media_engine.descriptions` | Every variable and output `description` in `infra/modules/media-engine/variables.tf` and `outputs.tf` (pending Luna pass; plan 3 Task 11) | |
| -| `infra.media_engine.refused.variables` | Every `error_message` in `infra/modules/media-engine/variables.tf` (pending Luna pass; plan 3 Task 11) | |
| -| `infra.media_engine.refused.region` | `The media engine must run in the store region: region and store_region differ.` (pending Luna pass; plan 3 Task 11) | |
| -| `infra.media_engine.refused.drill_account` | `The drill's foreign principal must be in another account.` (pending Luna pass; plan 3 Task 11) | |
| -| `engine.reaper.stop_reason` | `carlos media reaper: older than %d minutes`, the stop reason ECS records. `%d` is `MAX_AGE_MINUTES` (pending Luna pass; plan 3 Task 11) | |
| -| `engine.reaper.undescribed` | `carlos media reaper: a task could not be described` (pending Luna pass; plan 3 Task 11) | |
| -| `engine.reaper.not_stopped` | `carlos media reaper: %d of %d tasks were not stopped` (pending Luna pass; plan 3 Task 11) | |
| +| `infra.media_engine.readme` | The whole of `infra/modules/media-engine/README.md` (approved, Luna pass 5; plan 3 Task 11) | |
| +| `infra.modules_readme.media_engine` | The `media-engine` section of `infra/modules/README.md` (approved, Luna pass 5; plan 3 Task 11) | |
| +| `infra.media_engine.readme.rollout` | The `Change the image` and `Roll back` sections of `infra/modules/media-engine/README.md`, and the sentence on deregistering revisions under `Removing the module` (approved, Luna pass 5; plan 3 Task 11 fix 1) | |
| +| `infra.media_engine.readme.transfers_gate` | The last activation check in `infra/modules/media-engine/README.md`, on transfers resolving and the ECR image pull (approved, Luna pass 5; plan 3 Task 11 fix 1) | |
| +| `infra.media_engine.descriptions` | Every variable and output `description` in `infra/modules/media-engine/variables.tf` and `outputs.tf` (approved, Luna pass 5; plan 3 Task 11) | |
| +| `infra.media_engine.refused.variables` | Every `error_message` in `infra/modules/media-engine/variables.tf` (approved, Luna pass 5; plan 3 Task 11) | |
| +| `infra.media_engine.refused.region` | `The media engine must run in the store region: region and store_region differ.` (approved, Luna pass 5; plan 3 Task 11) | |
| +| `infra.media_engine.refused.drill_account` | `The drill's foreign principal must be in another account.` (approved, Luna pass 5; plan 3 Task 11) | |
| +| `engine.reaper.stop_reason` | `carlos media reaper: older than %d minutes`, the stop reason ECS records. `%d` is `MAX_AGE_MINUTES` (approved, Luna pass 5; plan 3 Task 11) | |
| +| `engine.reaper.undescribed` | `carlos media reaper: a task could not be described` (approved, Luna pass 5; plan 3 Task 11) | |
| +| `engine.reaper.not_stopped` | `carlos media reaper: %d of %d tasks were not stopped` (approved, Luna pass 5; plan 3 Task 11) | |
| |
| ### The region-host store_conversion switch (plan 3 Task 12) |
| |
| @@ -724,15 +740,15 @@ refusal, for whoever deploys it. |
| |
| | Key | Text | |
| |---|---| |
| -| `infra.region_host.readme.store_conversion` | The `Media conversion and browser uploads` section of `infra/modules/region-host/README.md`, including the prefix rule and the customer-managed policy paragraphs (pending Luna pass; plan 3 Task 12, fix 1) | |
| -| `infra.region_host.store_conversion.description` | The `description` of `variable "store_conversion"` in `infra/modules/region-host/variables.tf` (pending Luna pass; plan 3 Task 12) | |
| -| `infra.region_host.store_conversion.refused` | `store_conversion needs store_bucket_prefix: with no prefix there are no object stores on this deployment to convert, and the grant would name every bucket in the account.` (pending Luna pass; plan 3 Task 12) | |
| -| `infra.region_host.store_conversion.refused_prefix` | `store_conversion needs a dedicated store_bucket_prefix: lower-case letters, digits and hyphens, ending in -store-, such as carlos-store-. A broader prefix such as carlos- can match the platform's own buckets, and this grant can replace the CORS, lifecycle and tag settings of every bucket it matches.` (pending Luna pass; plan 3 Task 12 fix 1) | |
| -| `infra.region_host.store_conversion.refused_overlap` | `store_conversion refuses a store_bucket_prefix that matches the deployment, data or sibling staging buckets, because this grant can replace the CORS, lifecycle and tag settings of every bucket it matches. Choose a prefix none of those bucket names start with.` (pending Luna pass; plan 3 Task 12 fix 1) | |
| -| `infra.region_host.store_conversion.refused_fleet_overlap` | `store_conversion refuses a store_bucket_prefix that overlaps managed_fleet_bucket_prefix, even with managed fleets off, because fleet buckets outlive the switch and this grant can replace the CORS, lifecycle and tag settings of every bucket it matches. Choose prefixes where neither starts with the other.` (pending Luna pass; plan 3 Task 12 fix 2) | |
| -| `infra.region_host.store_conversion.refused_inline_fleets` | `store_conversion with managed fleets on needs managed_fleets_inline_retired = true, so the inline copy of the managed fleet grant stops taking up the console role's limited inline policy space. Apply once with it false to attach the managed copy, then set it true and apply again.` (pending Luna pass; plan 3 Task 12 fix 2) | |
| -| `infra.region_host.managed_fleets.refused_size` | `The managed fleet grant has too many regions for a customer-managed policy (6,144 characters), so its inline copy cannot be retired yet. Set managed_fleets_inline_retired back to false, or name fewer managed fleet regions, subnets or security groups.` (pending Luna pass; plan 3 Task 12 fix 3) | |
| -| `infra.region_host.managed_fleets.refused_inline_total` | Once the inline copy is retired: `This host role's inline policies exceed IAM's 10,240-character total. Turn off a grant this host does not need.` Before: `With the managed fleet grant this host role's inline policies exceed IAM's 10,240-character total. Name fewer managed fleet regions, subnets or security groups, turn off a grant this host does not need, or retire the inline copy (managed_fleets_inline_retired).` (pending Luna pass; plan 3 Task 12 fix 3) | |
| -| `infra.region_host.managed_fleets_inline_retired.description` | The `description` of `variable "managed_fleets_inline_retired"` in `infra/modules/region-host/variables.tf` (pending Luna pass; plan 3 Task 12 fix 2) | |
| -| `infra.region_host.readme.managed_fleets_move` | The `Moving the managed fleet grant` section of `infra/modules/region-host/README.md`, and the fleet prefix sentences in `Media conversion and browser uploads` (pending Luna pass; plan 3 Task 12 fix 2) | |
| -| `infra.media_engine.readme.console_policy` | The paragraph on the customer-managed console policy in `infra/modules/media-engine/README.md`, before `Region` (pending Luna pass; plan 3 Task 12 fix 1) | |
| +| `infra.region_host.readme.store_conversion` | The `Media conversion and browser uploads` section of `infra/modules/region-host/README.md`, including the prefix rule and the customer-managed policy paragraphs (approved, Luna pass 5; plan 3 Task 12, fix 1) | |
| +| `infra.region_host.store_conversion.description` | The `description` of `variable "store_conversion"` in `infra/modules/region-host/variables.tf` (approved, Luna pass 5; plan 3 Task 12) | |
| +| `infra.region_host.store_conversion.refused` | `store_conversion needs store_bucket_prefix: with no prefix there are no object stores on this deployment to convert, and the grant would name every bucket in the account.` (approved, Luna pass 5; plan 3 Task 12) | |
| +| `infra.region_host.store_conversion.refused_prefix` | `store_conversion needs a dedicated store_bucket_prefix: lower-case letters, digits and hyphens, ending in -store-, such as carlos-store-. A broader prefix such as carlos- can match the platform's own buckets, and this grant can replace the CORS, lifecycle and tag settings of every bucket it matches.` (approved, Luna pass 5; plan 3 Task 12 fix 1) | |
| +| `infra.region_host.store_conversion.refused_overlap` | `store_conversion refuses a store_bucket_prefix that matches the deployment, data or sibling staging buckets, because this grant can replace the CORS, lifecycle and tag settings of every bucket it matches. Choose a prefix none of those bucket names start with.` (approved, Luna pass 5; plan 3 Task 12 fix 1) | |
| +| `infra.region_host.store_conversion.refused_fleet_overlap` | `store_conversion refuses a store_bucket_prefix that overlaps managed_fleet_bucket_prefix, even with managed fleets off, because fleet buckets outlive the switch and this grant can replace the CORS, lifecycle and tag settings of every bucket it matches. Choose prefixes where neither starts with the other.` (approved, Luna pass 5; plan 3 Task 12 fix 2) | |
| +| `infra.region_host.store_conversion.refused_inline_fleets` | `store_conversion with managed fleets on needs managed_fleets_inline_retired = true, so the inline copy of the managed fleet grant stops taking up the console role's limited inline policy space. Apply once with it false to attach the managed copy, then set it true and apply again.` (approved, Luna pass 5; plan 3 Task 12 fix 2) | |
| +| `infra.region_host.managed_fleets.refused_size` | `The managed fleet grant has too many regions for a customer-managed policy (6,144 characters), so its inline copy cannot be retired yet. Set managed_fleets_inline_retired back to false, or name fewer managed fleet regions, subnets or security groups.` (approved, Luna pass 5; plan 3 Task 12 fix 3) | |
| +| `infra.region_host.managed_fleets.refused_inline_total` | Once the inline copy is retired: `This host role's inline policies exceed IAM's 10,240-character total. Turn off a grant this host does not need.` Before: `With the managed fleet grant this host role's inline policies exceed IAM's 10,240-character total. Name fewer managed fleet regions, subnets or security groups, turn off a grant this host does not need, or retire the inline copy (managed_fleets_inline_retired).` (approved, Luna pass 5; plan 3 Task 12 fix 3) | |
| +| `infra.region_host.managed_fleets_inline_retired.description` | The `description` of `variable "managed_fleets_inline_retired"` in `infra/modules/region-host/variables.tf` (approved, Luna pass 5; plan 3 Task 12 fix 2) | |
| +| `infra.region_host.readme.managed_fleets_move` | The `Moving the managed fleet grant` section of `infra/modules/region-host/README.md`, and the fleet prefix sentences in `Media conversion and browser uploads` (approved, Luna pass 5; plan 3 Task 12 fix 2) | |
| +| `infra.media_engine.readme.console_policy` | The paragraph on the customer-managed console policy in `infra/modules/media-engine/README.md`, before `Region` (approved, Luna pass 5; plan 3 Task 12 fix 1) | |