Skip to content

Instantly share code, notes, and snippets.

@pascalandy
Last active October 27, 2026 07:40
Show Gist options
  • Select an option

  • Save pascalandy/b4f9c99a2452d1c3c4183b444aed7427 to your computer and use it in GitHub Desktop.

Select an option

Save pascalandy/b4f9c99a2452d1c3c4183b444aed7427 to your computer and use it in GitHub Desktop.
Epic54 named postfix 5a57ae20; native proof and explicit review exception
diff --git a/authoring/andy/transcript/README.md b/authoring/andy/transcript/README.md
index 3fd1add0..2886d65a 100644
--- a/authoring/andy/transcript/README.md
+++ b/authoring/andy/transcript/README.md
@@ -171,7 +171,7 @@ The Zoom files use the folder name as their base:
Zoom files appear in the same order. Name collisions receive `-2`, `-3`, and later suffixes.
-A local file run creates `<timestamp>-<filename-without-extension>` under the output parent, with `-2`, `-3`, and later suffixes for collisions. It uses the generic `meta.txt` and `raw_*` names. Its metadata records the absolute source path. An enabled summary uses the selected bundled prompt, as for YouTube.
+A local file run creates `<timestamp>-<filename-without-extension>` under the output parent, with `-2`, `-3`, and later suffixes for collisions. Long stems are shortened at a UTF8 character boundary to fit a 255-byte directory component, reserving room for `-999`. It uses the generic `meta.txt` and `raw_*` names. Its metadata keeps the complete absolute source path. An enabled summary uses the selected bundled prompt, as for YouTube.
The metadata holds the title, date, and source from the moment the folder appears. Each stage rewrites it, so it always shows how far the run got:
@@ -241,6 +241,7 @@ uv run <skill_dir>/scripts/transcript.py --help
uv run <skill_dir>/scripts/transcript.py run youtube --help
uv run <skill_dir>/scripts/transcript.py run zoom --help
uv run <skill_dir>/scripts/transcript.py list prompts
+uv run <skill_dir>/scripts/transcript.py run file --help
uv run <skill_dir>/scripts/transcript.py list profiles
uv run <skill_dir>/scripts/transcript.py list models --provider claude
uv run <skill_dir>/scripts/transcript.py list models --provider codex
diff --git a/authoring/andy/transcript/SKILL.md b/authoring/andy/transcript/SKILL.md
index cc0d7dd3..33e2349f 100644
--- a/authoring/andy/transcript/SKILL.md
+++ b/authoring/andy/transcript/SKILL.md
@@ -55,7 +55,7 @@ For Zoom, `--path` names the meeting folder, not its `audio*.m4a` file. A plain
## Change a prompt
-Each YouTube prompt is a Markdown file in `references/prompts/`, and its file name without `.md` is the `--prompt` value. Edit a file there to change a prompt, or add a `.md` file to create one; `list prompts` shows it. In a managed installation, edit the source package, because the next install overwrites installed copies.
+Each bundled prompt is a Markdown file in `references/prompts/`, and its file name without `.md` is the `--prompt` value. Edit a file there to change a prompt, or add a `.md` file to create one; `list prompts` shows it. In a managed installation, edit the source package, because the next install overwrites installed copies.
Only `summary_with_quotes` receives the timestamped transcript; every other prompt receives plain text. Zoom summaries use the `synthese-rencontre` prompt from andy-mode's `distill-prompt` route.
diff --git a/authoring/andy/transcript/scripts/tests/test_cli.py b/authoring/andy/transcript/scripts/tests/test_cli.py
index 72b89812..a6ce4627 100644
--- a/authoring/andy/transcript/scripts/tests/test_cli.py
+++ b/authoring/andy/transcript/scripts/tests/test_cli.py
@@ -217,7 +217,16 @@ class TestDryRun:
assert audio.read_bytes() == b"audio"
@pytest.mark.parametrize(
- "kind", ["missing", "directory", "empty", "blank", "omitted"]
+ "kind",
+ [
+ "missing",
+ "directory",
+ "empty",
+ "blank",
+ "omitted",
+ "unknown-home",
+ "symlink-loop",
+ ],
)
def test_invalid_local_audio_fails_before_preflight(
self, kind, monkeypatch, tmp_path, capsys
@@ -229,10 +238,17 @@ class TestDryRun:
audio.mkdir()
elif kind == "empty":
audio.touch()
+ elif kind == "symlink-loop":
+ audio.symlink_to(audio)
+ path_text = (
+ "~__transcript_missing_user_efc1__/audio.m4a"
+ if kind == "unknown-home"
+ else str(audio)
+ )
selection = (
[]
if kind == "omitted"
- else ["--path", "" if kind == "blank" else str(audio)]
+ else ["--path", "" if kind == "blank" else path_text]
)
monkeypatch.setattr(
transcript,
@@ -240,17 +256,17 @@ class TestDryRun:
lambda *_args: pytest.fail("invalid source read a secret"),
)
- assert (
- transcript.main(["run", "file", *selection, "--no-summary", "--dry-run"])
- == 2
- )
+ assert transcript.main(["run", "file", *selection, "--no-summary"]) == 2
out, err = capsys.readouterr()
assert out == ""
result = json.loads(err)
assert result["ok"] is False
assert result["help"] == "transcript run file --help"
- assert "--path" in result["errors"][0]
+ if kind == "omitted":
+ assert result["errors"] == ["the following arguments are required: --path"]
+ else:
+ assert result["errors"][0].startswith("run file ")
def test_a_dry_run_answers_its_plan_without_preflight(
self, monkeypatch, capsys
diff --git a/authoring/andy/transcript/scripts/tests/test_contract.py b/authoring/andy/transcript/scripts/tests/test_contract.py
index cdf75fd0..f9741395 100644
--- a/authoring/andy/transcript/scripts/tests/test_contract.py
+++ b/authoring/andy/transcript/scripts/tests/test_contract.py
@@ -45,6 +45,7 @@ COMMANDS: dict[tuple[str, ...], dict[int, str]] = {
("run",): transcript.EXIT_CODES,
("run", "youtube"): transcript.EXIT_CODES,
("run", "zoom"): transcript.EXIT_CODES,
+ ("run", "file"): transcript.EXIT_CODES,
("list",): transcript.LIST_EXIT_CODES,
("list", "prompts"): transcript.LIST_EXIT_CODES,
("list", "profiles"): transcript.LIST_EXIT_CODES,
diff --git a/authoring/andy/transcript/scripts/tests/test_transcript.py b/authoring/andy/transcript/scripts/tests/test_transcript.py
index fd38e388..c76e2108 100644
--- a/authoring/andy/transcript/scripts/tests/test_transcript.py
+++ b/authoring/andy/transcript/scripts/tests/test_transcript.py
@@ -2213,9 +2213,23 @@ class TestYouTubeAuthenticationOrder:
class TestFilePipeline:
- @pytest.mark.parametrize("http_status", [200, 500])
+ @pytest.mark.parametrize(
+ "http_status,file_name",
+ [
+ (200, "Entrevue à Montréal.m4a"),
+ (500, "Entrevue à Montréal.m4a"),
+ (200, "é" * 117 + "a.m4a"),
+ (200, "é" * 119 + ".m4a"),
+ ],
+ ids=[
+ "normal-success",
+ "http-failure",
+ "collision-239-bytes",
+ "first-run-242-bytes",
+ ],
+ )
def test_successful_file_pipeline(
- self, http_status, tmp_path, monkeypatch, capsys
+ self, http_status, file_name, tmp_path, monkeypatch, capsys
) -> None:
from datetime import UTC, datetime
@@ -2234,7 +2248,7 @@ class TestFilePipeline:
monkeypatch.setattr(
transcript, "get_api_key_from_keyring", lambda *_args: "dummy-key"
)
- audio = tmp_path / "Entrevue à Montréal.m4a"
+ audio = tmp_path / file_name
payload = b"local-audio" * 20_000
audio.write_bytes(payload)
exports = tmp_path / "exports"
@@ -2256,6 +2270,7 @@ class TestFilePipeline:
)
monkeypatch.setattr(transcript.httpx, "post", post)
+ base_name = ""
for suffix in ("", "-2", "-3"):
code = transcript.main(
[
@@ -2269,7 +2284,22 @@ class TestFilePipeline:
]
)
out, err = capsys.readouterr()
- folder = exports / f"2026_10_27_12h34_56-Entrevue à Montréal{suffix}"
+ assert code == (0 if http_status == 200 else 1), err
+ result = json.loads(out if http_status == 200 else err.splitlines()[-1])
+ folder = Path(result["files"][0]).parent
+ assert folder.parent == exports
+ if not suffix:
+ base_name = folder.name
+ prefix = "2026_10_27_12h34_56-"
+ assert base_name.startswith(prefix)
+ output_stem = base_name[len(prefix) :]
+ assert output_stem and audio.stem.startswith(output_stem)
+ if file_name == "Entrevue à Montréal.m4a":
+ assert output_stem == "Entrevue à Montréal"
+ else:
+ assert len(audio.name.encode("utf-8")) in {239, 242}
+ assert folder.name == f"{base_name}{suffix}"
+ assert len(folder.name.encode("utf-8")) <= 255
assert folder.is_dir()
assert audio.read_bytes() == payload
meta = (folder / "meta.txt").read_text(encoding="utf-8")
@@ -2278,7 +2308,6 @@ class TestFilePipeline:
if http_status == 200:
assert code == 0
assert err == f"{folder}\n"
- result = json.loads(out)
assert result["ok"] is True
assert {Path(path).name for path in result["files"]} == {
"meta.txt",
@@ -2305,7 +2334,6 @@ class TestFilePipeline:
else:
assert code == 1
assert out == ""
- result = json.loads(err.splitlines()[-1])
assert result["ok"] is False
assert result["files"] == [str(folder / "meta.txt")]
assert "500" in result["errors"][0]
@@ -2314,6 +2342,7 @@ class TestFilePipeline:
Path(path).name for path in result["files"]
}
assert uploads == [4, 4, 4]
+ assert len(base_name.encode("utf-8")) <= 255 - len("-999")
class TestPipelines:
diff --git a/authoring/andy/transcript/scripts/transcript.py b/authoring/andy/transcript/scripts/transcript.py
index 76e192e8..53d19aba 100644
--- a/authoring/andy/transcript/scripts/transcript.py
+++ b/authoring/andy/transcript/scripts/transcript.py
@@ -7,7 +7,7 @@
# "rich",
# ]
# ///
-"""Transcribe YouTube or Zoom audio with Deepgram and optionally summarize it."""
+"""Transcribe YouTube, Zoom, or local audio with Deepgram and optionally summarize it."""
# >>> cli-block: canonical copy in scripts/_cli.py; do not edit a pasted copy
import argparse
@@ -2253,7 +2253,7 @@ def build_parser() -> TranscriptParser:
prompts = _command_parser(
resources,
"prompts",
- help_text="List bundled YouTube prompts",
+ help_text="List bundled transcript prompts",
description="List bundled prompt names and their transcript input type.",
epilog="""examples:
transcript list prompts
@@ -2779,7 +2779,7 @@ def _validate_source_selection(plan: RunPlan, args: argparse.Namespace) -> None:
f"run file requires a non-empty audio file: {audio_path}",
replacement,
)
- except OSError as error:
+ except (OSError, RuntimeError) as error:
raise SourceCLIError(
f"run file could not read the audio path: {error}", replacement
) from error
@@ -2857,7 +2857,13 @@ def _create_result_folder(
base_name = f"{date_formatted}_{clean_title(asset.title)}_{asset.video_id}"
elif plan.source_kind == "file":
output_root = (args.output_dir or OUTPUT_DIR).expanduser()
- base_name = f"{started.strftime('%Y_%m_%d_%Hh%M_%S')}-{asset.audio_path.stem}"
+ prefix = f"{started.strftime('%Y_%m_%d_%Hh%M_%S')}-"
+ # Leave room for make_unique_dir's largest suffix within a 255-byte component.
+ stem_budget = 255 - len(prefix.encode("utf-8")) - len("-999")
+ stem = asset.audio_path.stem.encode("utf-8")[:stem_budget].decode(
+ "utf-8", errors="ignore"
+ )
+ base_name = f"{prefix}{stem}"
else:
if asset.meeting_dir is None:
raise RuntimeError("Zoom source is missing its meeting directory")

Story452 named postfix evidence

Frozen final top 5a57ae202839eaf91d5d41c0d4d383c687629cc4, tree 975632e829f48f25a9efd49c5e9c228435f9295a, base 3f42f3c8981a8a0795812d10f29bc270c0fb5b9b. Story465/471 own hunks remain unchanged, as range-diff and stable patch IDs show. The full old-top→new-top delta contains exactly six authorized authored transcript files and their six generated mirrors. No catalog/count/verifier/peer delta.

The named repair bounds UTF8 output components with room for -999, converts file-path RuntimeError into usage exit2 before preflight, strengthens real invalid-input guards, and updates only direct docs/help inventory consequences. Existing real-transcriber/dummy-HTTP/frozen-clock coverage includes both239-byte collision and242-byte first-run boundaries, normal short names, bytes/content type/timestamps, source preservation after success/HTTP500, and generic artifact names.

Native RED lists four intended failures against old production: unknown-user, symlink-loop,239-byte collision and242-byte first-run. GREEN records11 passed and168 deselected. The full transcript recipe, required plain check, final-top transcript recipe and all three exact-head signoff recipes pass. Raw logs are included. The first red test-authoring iteration is retained alongside the corrected case-owner red receipt.

Head EXPLICITLY accepted NO NEW MODEL REVIEW for this named changed production delta. Original independent Sol+Pi review evidence applies ONLY to f687abadd0d580ce9fcb46fa00fb2164f8c013e9; see the unchanged pre-repair artifact. New code is covered by native controls/checks and actual Chef plus Head postfix diff/proof readback. Chef and Head actual postfix diff/proof readbacks are complete with no additional ActOn. The actual Head receipt is included as head-static-native-readback.json. No Ready/merge/apply opening follows from this publication.

The one original Mini check is HISTORICAL at f687/base3f42. Final repaired macOS runtime is UNOBSERVED under the explicit lot10 proportionate-policy exception. No new OS/model/paid/native-eval/codec check was run or implied. The real yt-dlp error receipt covers its unchanged wrapper; no second tool failure run occurred.

Original Pi metric definitions, as independently read by Head:8220 raw events,72 unique assistant identities, final assistant message_end index8216 then settled8219(aborted:false),99 tool ends and zero errors. Final event TEXT is18816 bytes; saved report.md is18817 bytes including LF, SHA2568a9bf0662366e38addc2cbcbbf3f3825ca1232d76430e07c17ebbfa220532d92. The original route was exact NONBATCH openrouter/anthropic/claude-opus-5.5, stop, emitted xhigh+xhigh, process0. No provider-internal effort claim follows.

No raw thinking, signatures or authentication receipts are included. These public files contain source diffs, native check logs, identities and the explicit coverage disposition.

[
{
"baseRefName": "main",
"headRefOid": "f84417ccd946f5005938afa993b024fc9ec65e8f",
"state": "OPEN",
"statusCheckRollup": [
{
"__typename": "StatusContext",
"context": "signoff",
"startedAt": "2026-10-27T07:28:20Z",
"state": "SUCCESS",
"targetUrl": ""
}
],
"url": "https://github.com/pascalandy/skills/pull/1107"
},
{
"baseRefName": "efc1-transcript-10-1-file",
"headRefOid": "3d682ab54745d14a27c40cae4fe9f110fa623bb1",
"state": "OPEN",
"statusCheckRollup": [
{
"__typename": "StatusContext",
"context": "signoff",
"startedAt": "2026-10-27T07:30:06Z",
"state": "SUCCESS",
"targetUrl": ""
}
],
"url": "https://github.com/pascalandy/skills/pull/1108"
},
{
"baseRefName": "efc1-transcript-10-1-ytdlp",
"headRefOid": "5a57ae202839eaf91d5d41c0d4d383c687629cc4",
"state": "OPEN",
"statusCheckRollup": [
{
"__typename": "StatusContext",
"context": "signoff",
"startedAt": "2026-10-27T07:33:11Z",
"state": "SUCCESS",
"targetUrl": ""
}
],
"url": "https://github.com/pascalandy/skills/pull/1110"
}
]
diff --git a/authoring/andy/transcript/README.md b/authoring/andy/transcript/README.md
index 3fd1add0..2886d65a 100644
--- a/authoring/andy/transcript/README.md
+++ b/authoring/andy/transcript/README.md
@@ -171,7 +171,7 @@ The Zoom files use the folder name as their base:
Zoom files appear in the same order. Name collisions receive `-2`, `-3`, and later suffixes.
-A local file run creates `<timestamp>-<filename-without-extension>` under the output parent, with `-2`, `-3`, and later suffixes for collisions. It uses the generic `meta.txt` and `raw_*` names. Its metadata records the absolute source path. An enabled summary uses the selected bundled prompt, as for YouTube.
+A local file run creates `<timestamp>-<filename-without-extension>` under the output parent, with `-2`, `-3`, and later suffixes for collisions. Long stems are shortened at a UTF8 character boundary to fit a 255-byte directory component, reserving room for `-999`. It uses the generic `meta.txt` and `raw_*` names. Its metadata keeps the complete absolute source path. An enabled summary uses the selected bundled prompt, as for YouTube.
The metadata holds the title, date, and source from the moment the folder appears. Each stage rewrites it, so it always shows how far the run got:
@@ -241,6 +241,7 @@ uv run <skill_dir>/scripts/transcript.py --help
uv run <skill_dir>/scripts/transcript.py run youtube --help
uv run <skill_dir>/scripts/transcript.py run zoom --help
uv run <skill_dir>/scripts/transcript.py list prompts
+uv run <skill_dir>/scripts/transcript.py run file --help
uv run <skill_dir>/scripts/transcript.py list profiles
uv run <skill_dir>/scripts/transcript.py list models --provider claude
uv run <skill_dir>/scripts/transcript.py list models --provider codex
diff --git a/authoring/andy/transcript/SKILL.md b/authoring/andy/transcript/SKILL.md
index cc0d7dd3..33e2349f 100644
--- a/authoring/andy/transcript/SKILL.md
+++ b/authoring/andy/transcript/SKILL.md
@@ -55,7 +55,7 @@ For Zoom, `--path` names the meeting folder, not its `audio*.m4a` file. A plain
## Change a prompt
-Each YouTube prompt is a Markdown file in `references/prompts/`, and its file name without `.md` is the `--prompt` value. Edit a file there to change a prompt, or add a `.md` file to create one; `list prompts` shows it. In a managed installation, edit the source package, because the next install overwrites installed copies.
+Each bundled prompt is a Markdown file in `references/prompts/`, and its file name without `.md` is the `--prompt` value. Edit a file there to change a prompt, or add a `.md` file to create one; `list prompts` shows it. In a managed installation, edit the source package, because the next install overwrites installed copies.
Only `summary_with_quotes` receives the timestamped transcript; every other prompt receives plain text. Zoom summaries use the `synthese-rencontre` prompt from andy-mode's `distill-prompt` route.
diff --git a/authoring/andy/transcript/scripts/tests/test_cli.py b/authoring/andy/transcript/scripts/tests/test_cli.py
index 72b89812..a6ce4627 100644
--- a/authoring/andy/transcript/scripts/tests/test_cli.py
+++ b/authoring/andy/transcript/scripts/tests/test_cli.py
@@ -217,7 +217,16 @@ class TestDryRun:
assert audio.read_bytes() == b"audio"
@pytest.mark.parametrize(
- "kind", ["missing", "directory", "empty", "blank", "omitted"]
+ "kind",
+ [
+ "missing",
+ "directory",
+ "empty",
+ "blank",
+ "omitted",
+ "unknown-home",
+ "symlink-loop",
+ ],
)
def test_invalid_local_audio_fails_before_preflight(
self, kind, monkeypatch, tmp_path, capsys
@@ -229,10 +238,17 @@ class TestDryRun:
audio.mkdir()
elif kind == "empty":
audio.touch()
+ elif kind == "symlink-loop":
+ audio.symlink_to(audio)
+ path_text = (
+ "~__transcript_missing_user_efc1__/audio.m4a"
+ if kind == "unknown-home"
+ else str(audio)
+ )
selection = (
[]
if kind == "omitted"
- else ["--path", "" if kind == "blank" else str(audio)]
+ else ["--path", "" if kind == "blank" else path_text]
)
monkeypatch.setattr(
transcript,
@@ -240,17 +256,17 @@ class TestDryRun:
lambda *_args: pytest.fail("invalid source read a secret"),
)
- assert (
- transcript.main(["run", "file", *selection, "--no-summary", "--dry-run"])
- == 2
- )
+ assert transcript.main(["run", "file", *selection, "--no-summary"]) == 2
out, err = capsys.readouterr()
assert out == ""
result = json.loads(err)
assert result["ok"] is False
assert result["help"] == "transcript run file --help"
- assert "--path" in result["errors"][0]
+ if kind == "omitted":
+ assert result["errors"] == ["the following arguments are required: --path"]
+ else:
+ assert result["errors"][0].startswith("run file ")
def test_a_dry_run_answers_its_plan_without_preflight(
self, monkeypatch, capsys
diff --git a/authoring/andy/transcript/scripts/tests/test_contract.py b/authoring/andy/transcript/scripts/tests/test_contract.py
index cdf75fd0..f9741395 100644
--- a/authoring/andy/transcript/scripts/tests/test_contract.py
+++ b/authoring/andy/transcript/scripts/tests/test_contract.py
@@ -45,6 +45,7 @@ COMMANDS: dict[tuple[str, ...], dict[int, str]] = {
("run",): transcript.EXIT_CODES,
("run", "youtube"): transcript.EXIT_CODES,
("run", "zoom"): transcript.EXIT_CODES,
+ ("run", "file"): transcript.EXIT_CODES,
("list",): transcript.LIST_EXIT_CODES,
("list", "prompts"): transcript.LIST_EXIT_CODES,
("list", "profiles"): transcript.LIST_EXIT_CODES,
diff --git a/authoring/andy/transcript/scripts/tests/test_transcript.py b/authoring/andy/transcript/scripts/tests/test_transcript.py
index fd38e388..c76e2108 100644
--- a/authoring/andy/transcript/scripts/tests/test_transcript.py
+++ b/authoring/andy/transcript/scripts/tests/test_transcript.py
@@ -2213,9 +2213,23 @@ class TestYouTubeAuthenticationOrder:
class TestFilePipeline:
- @pytest.mark.parametrize("http_status", [200, 500])
+ @pytest.mark.parametrize(
+ "http_status,file_name",
+ [
+ (200, "Entrevue à Montréal.m4a"),
+ (500, "Entrevue à Montréal.m4a"),
+ (200, "é" * 117 + "a.m4a"),
+ (200, "é" * 119 + ".m4a"),
+ ],
+ ids=[
+ "normal-success",
+ "http-failure",
+ "collision-239-bytes",
+ "first-run-242-bytes",
+ ],
+ )
def test_successful_file_pipeline(
- self, http_status, tmp_path, monkeypatch, capsys
+ self, http_status, file_name, tmp_path, monkeypatch, capsys
) -> None:
from datetime import UTC, datetime
@@ -2234,7 +2248,7 @@ class TestFilePipeline:
monkeypatch.setattr(
transcript, "get_api_key_from_keyring", lambda *_args: "dummy-key"
)
- audio = tmp_path / "Entrevue à Montréal.m4a"
+ audio = tmp_path / file_name
payload = b"local-audio" * 20_000
audio.write_bytes(payload)
exports = tmp_path / "exports"
@@ -2256,6 +2270,7 @@ class TestFilePipeline:
)
monkeypatch.setattr(transcript.httpx, "post", post)
+ base_name = ""
for suffix in ("", "-2", "-3"):
code = transcript.main(
[
@@ -2269,7 +2284,22 @@ class TestFilePipeline:
]
)
out, err = capsys.readouterr()
- folder = exports / f"2026_10_27_12h34_56-Entrevue à Montréal{suffix}"
+ assert code == (0 if http_status == 200 else 1), err
+ result = json.loads(out if http_status == 200 else err.splitlines()[-1])
+ folder = Path(result["files"][0]).parent
+ assert folder.parent == exports
+ if not suffix:
+ base_name = folder.name
+ prefix = "2026_10_27_12h34_56-"
+ assert base_name.startswith(prefix)
+ output_stem = base_name[len(prefix) :]
+ assert output_stem and audio.stem.startswith(output_stem)
+ if file_name == "Entrevue à Montréal.m4a":
+ assert output_stem == "Entrevue à Montréal"
+ else:
+ assert len(audio.name.encode("utf-8")) in {239, 242}
+ assert folder.name == f"{base_name}{suffix}"
+ assert len(folder.name.encode("utf-8")) <= 255
assert folder.is_dir()
assert audio.read_bytes() == payload
meta = (folder / "meta.txt").read_text(encoding="utf-8")
@@ -2278,7 +2308,6 @@ class TestFilePipeline:
if http_status == 200:
assert code == 0
assert err == f"{folder}\n"
- result = json.loads(out)
assert result["ok"] is True
assert {Path(path).name for path in result["files"]} == {
"meta.txt",
@@ -2305,7 +2334,6 @@ class TestFilePipeline:
else:
assert code == 1
assert out == ""
- result = json.loads(err.splitlines()[-1])
assert result["ok"] is False
assert result["files"] == [str(folder / "meta.txt")]
assert "500" in result["errors"][0]
@@ -2314,6 +2342,7 @@ class TestFilePipeline:
Path(path).name for path in result["files"]
}
assert uploads == [4, 4, 4]
+ assert len(base_name.encode("utf-8")) <= 255 - len("-999")
class TestPipelines:
diff --git a/authoring/andy/transcript/scripts/transcript.py b/authoring/andy/transcript/scripts/transcript.py
index 76e192e8..53d19aba 100644
--- a/authoring/andy/transcript/scripts/transcript.py
+++ b/authoring/andy/transcript/scripts/transcript.py
@@ -7,7 +7,7 @@
# "rich",
# ]
# ///
-"""Transcribe YouTube or Zoom audio with Deepgram and optionally summarize it."""
+"""Transcribe YouTube, Zoom, or local audio with Deepgram and optionally summarize it."""
# >>> cli-block: canonical copy in scripts/_cli.py; do not edit a pasted copy
import argparse
@@ -2253,7 +2253,7 @@ def build_parser() -> TranscriptParser:
prompts = _command_parser(
resources,
"prompts",
- help_text="List bundled YouTube prompts",
+ help_text="List bundled transcript prompts",
description="List bundled prompt names and their transcript input type.",
epilog="""examples:
transcript list prompts
@@ -2779,7 +2779,7 @@ def _validate_source_selection(plan: RunPlan, args: argparse.Namespace) -> None:
f"run file requires a non-empty audio file: {audio_path}",
replacement,
)
- except OSError as error:
+ except (OSError, RuntimeError) as error:
raise SourceCLIError(
f"run file could not read the audio path: {error}", replacement
) from error
@@ -2857,7 +2857,13 @@ def _create_result_folder(
base_name = f"{date_formatted}_{clean_title(asset.title)}_{asset.video_id}"
elif plan.source_kind == "file":
output_root = (args.output_dir or OUTPUT_DIR).expanduser()
- base_name = f"{started.strftime('%Y_%m_%d_%Hh%M_%S')}-{asset.audio_path.stem}"
+ prefix = f"{started.strftime('%Y_%m_%d_%Hh%M_%S')}-"
+ # Leave room for make_unique_dir's largest suffix within a 255-byte component.
+ stem_budget = 255 - len(prefix.encode("utf-8")) - len("-999")
+ stem = asset.audio_path.stem.encode("utf-8")[:stem_budget].decode(
+ "utf-8", errors="ignore"
+ )
+ base_name = f"{prefix}{stem}"
else:
if asset.meeting_dir is None:
raise RuntimeError("Zoom source is missing its meeting directory")
diff --git a/skills/transcript/README.md b/skills/transcript/README.md
index 3fd1add0..2886d65a 100644
--- a/skills/transcript/README.md
+++ b/skills/transcript/README.md
@@ -171,7 +171,7 @@ The Zoom files use the folder name as their base:
Zoom files appear in the same order. Name collisions receive `-2`, `-3`, and later suffixes.
-A local file run creates `<timestamp>-<filename-without-extension>` under the output parent, with `-2`, `-3`, and later suffixes for collisions. It uses the generic `meta.txt` and `raw_*` names. Its metadata records the absolute source path. An enabled summary uses the selected bundled prompt, as for YouTube.
+A local file run creates `<timestamp>-<filename-without-extension>` under the output parent, with `-2`, `-3`, and later suffixes for collisions. Long stems are shortened at a UTF8 character boundary to fit a 255-byte directory component, reserving room for `-999`. It uses the generic `meta.txt` and `raw_*` names. Its metadata keeps the complete absolute source path. An enabled summary uses the selected bundled prompt, as for YouTube.
The metadata holds the title, date, and source from the moment the folder appears. Each stage rewrites it, so it always shows how far the run got:
@@ -241,6 +241,7 @@ uv run <skill_dir>/scripts/transcript.py --help
uv run <skill_dir>/scripts/transcript.py run youtube --help
uv run <skill_dir>/scripts/transcript.py run zoom --help
uv run <skill_dir>/scripts/transcript.py list prompts
+uv run <skill_dir>/scripts/transcript.py run file --help
uv run <skill_dir>/scripts/transcript.py list profiles
uv run <skill_dir>/scripts/transcript.py list models --provider claude
uv run <skill_dir>/scripts/transcript.py list models --provider codex
diff --git a/skills/transcript/SKILL.md b/skills/transcript/SKILL.md
index cc0d7dd3..33e2349f 100644
--- a/skills/transcript/SKILL.md
+++ b/skills/transcript/SKILL.md
@@ -55,7 +55,7 @@ For Zoom, `--path` names the meeting folder, not its `audio*.m4a` file. A plain
## Change a prompt
-Each YouTube prompt is a Markdown file in `references/prompts/`, and its file name without `.md` is the `--prompt` value. Edit a file there to change a prompt, or add a `.md` file to create one; `list prompts` shows it. In a managed installation, edit the source package, because the next install overwrites installed copies.
+Each bundled prompt is a Markdown file in `references/prompts/`, and its file name without `.md` is the `--prompt` value. Edit a file there to change a prompt, or add a `.md` file to create one; `list prompts` shows it. In a managed installation, edit the source package, because the next install overwrites installed copies.
Only `summary_with_quotes` receives the timestamped transcript; every other prompt receives plain text. Zoom summaries use the `synthese-rencontre` prompt from andy-mode's `distill-prompt` route.
diff --git a/skills/transcript/scripts/tests/test_cli.py b/skills/transcript/scripts/tests/test_cli.py
index 72b89812..a6ce4627 100644
--- a/skills/transcript/scripts/tests/test_cli.py
+++ b/skills/transcript/scripts/tests/test_cli.py
@@ -217,7 +217,16 @@ class TestDryRun:
assert audio.read_bytes() == b"audio"
@pytest.mark.parametrize(
- "kind", ["missing", "directory", "empty", "blank", "omitted"]
+ "kind",
+ [
+ "missing",
+ "directory",
+ "empty",
+ "blank",
+ "omitted",
+ "unknown-home",
+ "symlink-loop",
+ ],
)
def test_invalid_local_audio_fails_before_preflight(
self, kind, monkeypatch, tmp_path, capsys
@@ -229,10 +238,17 @@ class TestDryRun:
audio.mkdir()
elif kind == "empty":
audio.touch()
+ elif kind == "symlink-loop":
+ audio.symlink_to(audio)
+ path_text = (
+ "~__transcript_missing_user_efc1__/audio.m4a"
+ if kind == "unknown-home"
+ else str(audio)
+ )
selection = (
[]
if kind == "omitted"
- else ["--path", "" if kind == "blank" else str(audio)]
+ else ["--path", "" if kind == "blank" else path_text]
)
monkeypatch.setattr(
transcript,
@@ -240,17 +256,17 @@ class TestDryRun:
lambda *_args: pytest.fail("invalid source read a secret"),
)
- assert (
- transcript.main(["run", "file", *selection, "--no-summary", "--dry-run"])
- == 2
- )
+ assert transcript.main(["run", "file", *selection, "--no-summary"]) == 2
out, err = capsys.readouterr()
assert out == ""
result = json.loads(err)
assert result["ok"] is False
assert result["help"] == "transcript run file --help"
- assert "--path" in result["errors"][0]
+ if kind == "omitted":
+ assert result["errors"] == ["the following arguments are required: --path"]
+ else:
+ assert result["errors"][0].startswith("run file ")
def test_a_dry_run_answers_its_plan_without_preflight(
self, monkeypatch, capsys
diff --git a/skills/transcript/scripts/tests/test_contract.py b/skills/transcript/scripts/tests/test_contract.py
index cdf75fd0..f9741395 100644
--- a/skills/transcript/scripts/tests/test_contract.py
+++ b/skills/transcript/scripts/tests/test_contract.py
@@ -45,6 +45,7 @@ COMMANDS: dict[tuple[str, ...], dict[int, str]] = {
("run",): transcript.EXIT_CODES,
("run", "youtube"): transcript.EXIT_CODES,
("run", "zoom"): transcript.EXIT_CODES,
+ ("run", "file"): transcript.EXIT_CODES,
("list",): transcript.LIST_EXIT_CODES,
("list", "prompts"): transcript.LIST_EXIT_CODES,
("list", "profiles"): transcript.LIST_EXIT_CODES,
diff --git a/skills/transcript/scripts/tests/test_transcript.py b/skills/transcript/scripts/tests/test_transcript.py
index fd38e388..c76e2108 100644
--- a/skills/transcript/scripts/tests/test_transcript.py
+++ b/skills/transcript/scripts/tests/test_transcript.py
@@ -2213,9 +2213,23 @@ class TestYouTubeAuthenticationOrder:
class TestFilePipeline:
- @pytest.mark.parametrize("http_status", [200, 500])
+ @pytest.mark.parametrize(
+ "http_status,file_name",
+ [
+ (200, "Entrevue à Montréal.m4a"),
+ (500, "Entrevue à Montréal.m4a"),
+ (200, "é" * 117 + "a.m4a"),
+ (200, "é" * 119 + ".m4a"),
+ ],
+ ids=[
+ "normal-success",
+ "http-failure",
+ "collision-239-bytes",
+ "first-run-242-bytes",
+ ],
+ )
def test_successful_file_pipeline(
- self, http_status, tmp_path, monkeypatch, capsys
+ self, http_status, file_name, tmp_path, monkeypatch, capsys
) -> None:
from datetime import UTC, datetime
@@ -2234,7 +2248,7 @@ class TestFilePipeline:
monkeypatch.setattr(
transcript, "get_api_key_from_keyring", lambda *_args: "dummy-key"
)
- audio = tmp_path / "Entrevue à Montréal.m4a"
+ audio = tmp_path / file_name
payload = b"local-audio" * 20_000
audio.write_bytes(payload)
exports = tmp_path / "exports"
@@ -2256,6 +2270,7 @@ class TestFilePipeline:
)
monkeypatch.setattr(transcript.httpx, "post", post)
+ base_name = ""
for suffix in ("", "-2", "-3"):
code = transcript.main(
[
@@ -2269,7 +2284,22 @@ class TestFilePipeline:
]
)
out, err = capsys.readouterr()
- folder = exports / f"2026_10_27_12h34_56-Entrevue à Montréal{suffix}"
+ assert code == (0 if http_status == 200 else 1), err
+ result = json.loads(out if http_status == 200 else err.splitlines()[-1])
+ folder = Path(result["files"][0]).parent
+ assert folder.parent == exports
+ if not suffix:
+ base_name = folder.name
+ prefix = "2026_10_27_12h34_56-"
+ assert base_name.startswith(prefix)
+ output_stem = base_name[len(prefix) :]
+ assert output_stem and audio.stem.startswith(output_stem)
+ if file_name == "Entrevue à Montréal.m4a":
+ assert output_stem == "Entrevue à Montréal"
+ else:
+ assert len(audio.name.encode("utf-8")) in {239, 242}
+ assert folder.name == f"{base_name}{suffix}"
+ assert len(folder.name.encode("utf-8")) <= 255
assert folder.is_dir()
assert audio.read_bytes() == payload
meta = (folder / "meta.txt").read_text(encoding="utf-8")
@@ -2278,7 +2308,6 @@ class TestFilePipeline:
if http_status == 200:
assert code == 0
assert err == f"{folder}\n"
- result = json.loads(out)
assert result["ok"] is True
assert {Path(path).name for path in result["files"]} == {
"meta.txt",
@@ -2305,7 +2334,6 @@ class TestFilePipeline:
else:
assert code == 1
assert out == ""
- result = json.loads(err.splitlines()[-1])
assert result["ok"] is False
assert result["files"] == [str(folder / "meta.txt")]
assert "500" in result["errors"][0]
@@ -2314,6 +2342,7 @@ class TestFilePipeline:
Path(path).name for path in result["files"]
}
assert uploads == [4, 4, 4]
+ assert len(base_name.encode("utf-8")) <= 255 - len("-999")
class TestPipelines:
diff --git a/skills/transcript/scripts/transcript.py b/skills/transcript/scripts/transcript.py
index 76e192e8..53d19aba 100644
--- a/skills/transcript/scripts/transcript.py
+++ b/skills/transcript/scripts/transcript.py
@@ -7,7 +7,7 @@
# "rich",
# ]
# ///
-"""Transcribe YouTube or Zoom audio with Deepgram and optionally summarize it."""
+"""Transcribe YouTube, Zoom, or local audio with Deepgram and optionally summarize it."""
# >>> cli-block: canonical copy in scripts/_cli.py; do not edit a pasted copy
import argparse
@@ -2253,7 +2253,7 @@ def build_parser() -> TranscriptParser:
prompts = _command_parser(
resources,
"prompts",
- help_text="List bundled YouTube prompts",
+ help_text="List bundled transcript prompts",
description="List bundled prompt names and their transcript input type.",
epilog="""examples:
transcript list prompts
@@ -2779,7 +2779,7 @@ def _validate_source_selection(plan: RunPlan, args: argparse.Namespace) -> None:
f"run file requires a non-empty audio file: {audio_path}",
replacement,
)
- except OSError as error:
+ except (OSError, RuntimeError) as error:
raise SourceCLIError(
f"run file could not read the audio path: {error}", replacement
) from error
@@ -2857,7 +2857,13 @@ def _create_result_folder(
base_name = f"{date_formatted}_{clean_title(asset.title)}_{asset.video_id}"
elif plan.source_kind == "file":
output_root = (args.output_dir or OUTPUT_DIR).expanduser()
- base_name = f"{started.strftime('%Y_%m_%d_%Hh%M_%S')}-{asset.audio_path.stem}"
+ prefix = f"{started.strftime('%Y_%m_%d_%Hh%M_%S')}-"
+ # Leave room for make_unique_dir's largest suffix within a 255-byte component.
+ stem_budget = 255 - len(prefix.encode("utf-8")) - len("-999")
+ stem = asset.audio_path.stem.encode("utf-8")[:stem_budget].decode(
+ "utf-8", errors="ignore"
+ )
+ base_name = f"{prefix}{stem}"
else:
if asset.meeting_dir is None:
raise RuntimeError("Zoom source is missing its meeting directory")
{
"atMontreal": "2026-10-27T03:37:52.584811-04:00",
"explicitDisposition": "chef10-explicit452-material-fix-static-coverage-disposition.json",
"oldReviewedHead": "f687abadd0d580ce9fcb46fa00fb2164f8c013e9",
"newHeads": {
"1107": "f84417ccd946f5005938afa993b024fc9ec65e8f",
"1108": "3d682ab54745d14a27c40cae4fe9f110fa623bb1",
"1110": "5a57ae202839eaf91d5d41c0d4d383c687629cc4"
},
"newTree": "975632e829f48f25a9efd49c5e9c228435f9295a",
"base": "3f42f3c8981a8a0795812d10f29bc270c0fb5b9b",
"fullAuthoredPostfixDeltaActuallyRead": true,
"all12PathsAnd6MirrorIdentitiesIndependentlyVerified": true,
"pathsSHA256": {
"authoring/andy/transcript/README.md": "7c86bce6b0320a4c2c419439cd1661ba98ec03e9baf82b14cf02b9004ebf5e1c",
"authoring/andy/transcript/SKILL.md": "420379efcd29ef232dbb2833e06162e89a1c357195154d36ed2a51e4f22be04a",
"authoring/andy/transcript/scripts/tests/test_cli.py": "de04f8c3996fee0dcda70ebfc05eecdc3c92215a52c6e6b317bf423c9da08ffa",
"authoring/andy/transcript/scripts/tests/test_contract.py": "5eb1c5a8949810c17b85cd02d22d0f82ab4a550018f03a2d7447b8659943ada5",
"authoring/andy/transcript/scripts/tests/test_transcript.py": "d13d6ef55b629da57435d90ce509f1e0972259c3a7e6afe8e3b0867c799b4c2a",
"authoring/andy/transcript/scripts/transcript.py": "ef297acc80377669e364b7e35015c8ec85de5555348c301d536b8826639f7db7",
"skills/transcript/README.md": "7c86bce6b0320a4c2c419439cd1661ba98ec03e9baf82b14cf02b9004ebf5e1c",
"skills/transcript/SKILL.md": "420379efcd29ef232dbb2833e06162e89a1c357195154d36ed2a51e4f22be04a",
"skills/transcript/scripts/tests/test_cli.py": "de04f8c3996fee0dcda70ebfc05eecdc3c92215a52c6e6b317bf423c9da08ffa",
"skills/transcript/scripts/tests/test_contract.py": "5eb1c5a8949810c17b85cd02d22d0f82ab4a550018f03a2d7447b8659943ada5",
"skills/transcript/scripts/tests/test_transcript.py": "d13d6ef55b629da57435d90ce509f1e0972259c3a7e6afe8e3b0867c799b4c2a",
"skills/transcript/scripts/transcript.py": "ef297acc80377669e364b7e35015c8ec85de5555348c301d536b8826639f7db7"
},
"reviewedProductionDelta": "OnlyFILEUTF8stem231bytebudget/timestampmaxsuffix999preserved +RuntimeErrorwithinnewFILEtry; generichelper/Zoom/YouTube/transporterunchanged; docsintro/promptwordingdirect",
"testDeltaRead": "7NONdryinvalidcases/actualkeyHTTPguards+leadingerrors; existingrealtranscriberHTTPpipeline normal-success/HTTP500+239-242B/frozen3runs/sourcebytes-fullmetadata/prefix/collision-2-3/255B+4Breserved; ONEfilehelpinventoryrow",
"nativeRedLogsFullActuallyRead": [
"postfix-native-red.log",
"postfix-native-red-cases.log"
],
"redVariants": "Initialreservationassertversion and subsequentactualcollisioncase version bothretained; samefourtargetedfailures/othercontrolsPASS",
"nativeGreenActualRead": "........... [100%]\n11 passed, 168 deselected in 0.22s\n",
"nativeGreenCounts": {
"passed": 11,
"deselected": 168,
"seconds": 0.22
},
"focusedAndPlainCheckActualRead": {
"postfix-transcript-check.log": "{\"ok\":true}\n",
"postfix-plain-check.log": "{\"ok\":true}\n"
},
"signoffLogsActualRead": {
"postfix-1107-signoff.log": {
"text": "{\"ok\":true,\"changes\":[[\"signoff\",\"f84417c\"]]}\n",
"sha256": "86786804d67af651280b354821b8058da3148226251b8cf70cb671070406a45a"
},
"postfix-1108-signoff.log": {
"text": "{\"ok\":true,\"changes\":[[\"signoff\",\"3d682ab\"]]}\n",
"sha256": "ed958a6f0c516c611a46262b0e30787fda9095f7ad00cb16949e551512f119e5"
},
"postfix-1110-signoff.log": {
"text": "{\"ok\":true,\"changes\":[[\"signoff\",\"5a57ae2\"]]}\n",
"sha256": "a0a39bd3c924f759803bb40a254c2d8a2eeaf709135a7ffa829558e436edf01b"
}
},
"all3ExactGitHubHeadsOpenSuccessHeadRead": true,
"upperLayersStablePatchIdsHeadIndependentlyVerified": {
"465": "f85771971376b502917dba856fa1fb954868837d",
"471": "d1715f85b239e6882c22a7ce0abc4be88e35a4cf"
},
"postfixAnd452RepairLayerStablePatchIdHeadVerified": "85bc566f63815d52fb20537cf01568c932aee483",
"providedFullDeltaBytes": 24132,
"providedFullDeltaSHA256": "0cc21faba68c75e9313dedfda65b36e4cab2a7315e60d868696735fe088ba9b6",
"noImpossibleFullIndexIdentityClaim": true,
"sourceActOnFromNamedRepair": "NONE atHeadstaticread",
"coverage": "ChangedproductionChef+HeadSTATIC/nativeproof +3newheadrecipes; NOindependentnewmodelreview. OriginalSolPi+MiniONLYf687, no newMacobservation",
"newTestsModelsOsRunsByHead": 0,
"normalChefReadyMergeGateAndWindow": "stillseparate/owed; thisisnotReadyorwindow"
}
{
"authored-oldtop-to-newtop.patch": {
"bytes": 12162,
"sha256": "81f38016e74de9b5ac00d8aae84e313f00f84c4a243f72ba28cf90144889ac34"
},
"evidence.md": {
"bytes": 2984,
"sha256": "8d339f68e0e571d4279764898facff9c4c2bf0957053fd76bf64077cfdff0da2"
},
"exact-pr-heads-signoffs.json": {
"bytes": 1231,
"sha256": "28b12804d26e0eed40342326a294fb558e5c87d89dba1374d2934ab7be286e76"
},
"full-oldtop-to-newtop.patch": {
"bytes": 24132,
"sha256": "0cc21faba68c75e9313dedfda65b36e4cab2a7315e60d868696735fe088ba9b6"
},
"head-static-native-readback.json": {
"bytes": 4622,
"sha256": "97cdf8810dad28e18207e7c7eca2391167b8592af587d46f466bdce3c2da8213"
},
"plan.md": {
"bytes": 4503,
"sha256": "8d12ca9c80126663349cd5b8d89c09bdf36f8ac751987e40c976f3994d7d53ed"
},
"postfix-1107-signoff.log": {
"bytes": 46,
"sha256": "86786804d67af651280b354821b8058da3148226251b8cf70cb671070406a45a"
},
"postfix-1108-signoff.log": {
"bytes": 46,
"sha256": "ed958a6f0c516c611a46262b0e30787fda9095f7ad00cb16949e551512f119e5"
},
"postfix-1110-signoff.log": {
"bytes": 46,
"sha256": "a0a39bd3c924f759803bb40a254c2d8a2eeaf709135a7ffa829558e436edf01b"
},
"postfix-finaltop-transcript.log": {
"bytes": 12,
"sha256": "e5f1eb4d806641698a35efe20e098efd20d7d57a9b90ee69079d5bb650920726"
},
"postfix-native-green.log": {
"bytes": 115,
"sha256": "d2cff2aaf8d4bce77a9296fa5feec2a47a4a7111d9a8ca8c6d0e6b545b90a164"
},
"postfix-native-red-cases.log": {
"bytes": 15707,
"sha256": "cea9ae7a5c981291282796b1e88412755f0b7582805f385fac56331c6a4d2774"
},
"postfix-native-red.log": {
"bytes": 15680,
"sha256": "0a03b923a693c61b02ef5eca645c326b5f31a3ea7e3ffb4b865ca9c21d35e5f2"
},
"postfix-plain-check.log": {
"bytes": 12,
"sha256": "e5f1eb4d806641698a35efe20e098efd20d7d57a9b90ee69079d5bb650920726"
},
"postfix-transcript-check.log": {
"bytes": 12,
"sha256": "e5f1eb4d806641698a35efe20e098efd20d7d57a9b90ee69079d5bb650920726"
},
"push-guards.json": {
"bytes": 599,
"sha256": "558361d5af715e693e4faafa6af6390e200de1cfd128cca8ac29814f5c0055ec"
},
"range-diff.txt": {
"bytes": 169,
"sha256": "fc42bade54749b9916b67a7ced7184c9d3660771248bb102e6d943b8cdeb790e"
},
"restack-proof.json": {
"bytes": 1976,
"sha256": "9b29004ec00a4deb5a12296e290939fb89cfd0db87e866f00d51fb1cfb741e7c"
}
}

Epic54 named repair and evidence disposition

Head explicitly authorized this exact Story452 repair after reading both original reports, raw final events, joint triage and native reproductions. No broader source or review exception follows.

Code boundary

  • File-only output component budget reserves the timestamp and existing maximum -999 suffix within255 UTF8 bytes. Normal short stems and full absolute metadata source remain intact. Generic naming, Zoom, YouTube and transport stay unchanged
  • The new file-validation try catches RuntimeError alongside OSError. Existing invalid-input tests now invoke the real non-dry path, guard credentials/network and assert leading run-file errors. Unknown-user and symlink-loop cases cover the observed Python3.12 behavior
  • Existing real-transcriber/dummy-HTTP/frozen-clock tests include239-byte collision and242-byte first-run boundaries plus normal-name/source-preservation controls
  • Direct consequences only: module introduction, neutral bundled-prompt wording, README long-stem/full-metadata explanation and file-help Checks line, and one existing COMMANDS inventory row
  • Exactly six authored transcript files and their six generated mirrors changed. Compile then remote produced no catalog/count delta. No verifier or peer-global file changed

Frozen heads

Base 3f42f3c8981a8a0795812d10f29bc270c0fb5b9b.

  • Story452 / PR1107 f84417ccd946f5005938afa993b024fc9ec65e8f, tree 2d0719a9fdf5795f4ed153919a84baabfc196b9e
  • Story465 / PR1108 3d682ab54745d14a27c40cae4fe9f110fa623bb1, tree f0331d8b4b5c9d6e6f283fb3eb6e670dd817184e
  • Story471 / PR1110 5a57ae202839eaf91d5d41c0d4d383c687629cc4, tree 975632e829f48f25a9efd49c5e9c228435f9295a

Range-diff marks both upper commits equal. Stable patch identities of their own hunks remain465 f85771971376b502917dba856fa1fb954868837d and471 d1715f85b239e6882c22a7ce0abc4be88e35a4cf. The full old-top to new-top delta has stable patch ID 85bc566f63815d52fb20537cf01568c932aee483, equal to the lower repair delta. Its full patch SHA256 is 0cc21faba68c75e9313dedfda65b36e4cab2a7315e60d868696735fe088ba9b6. Index blob IDs and hunk offsets can change after a same-file lower-layer repair; no full-index byte-identity claim is made.

Explicit review and checks exception

The original Sol and Pi reviews cover ONLY old top f687abadd0d580ce9fcb46fa00fb2164f8c013e9 and the immutable pre-repair packet. The original evidence artifact remains pre-repair.

The named changed production code gets NO new model review. Its evidence is meaningful native RED→GREEN and controls, required plain just check, each changed exact-head just signoff, and actual Chef plus Head postfix diff/proof readback. No new Sol, Pi, delegate, paid review, native skill evaluation, codec probe or OS rerun is authorized. The original one-time Mini proof at f687/base3f42 is HISTORICAL; final repaired macOS runtime is UNOBSERVED. Under Head's explicit proportionate-policy exception that limitation creates no new hold. Do not call the fixed code independently model-reviewed again.

The original real yt-dlp failure remains valid evidence for its unchanged wrapper. No replacement failure run occurs. No merge or deploy is authorized by this repair disposition; Chef still obtains the distinct effective cross-run opening.

Original pair metric definitions

Head's raw-event readback records8220 events,72 unique assistant identities, final assistant message_end at index8216 and settled at8219 with abortedfalse,99 tool ends and zero errors. Final event TEXT is18816 bytes; saved report.md is18817 bytes including its final LF, SHA256 8a9bf0662366e38addc2cbcbbf3f3825ca1232d76430e07c17ebbfa220532d92. These are distinct measures. Pi process exit0, exactNONBATCH OpenRouter model, stop and both emitted xhigh fields were observed; no provider-internal effort claim is made.

Validation and remaining lifecycle

All three new-head recipe signoffs, final-top focused check and actual Chef/Head postfix diff/proof readbacks are complete. Head recorded its actual readback at2026-10-27 03:37:52.584811 America/Montreal with no additional ActOn. Complete durable postfix publication/readback and formal Ready, then freeze and wait for Chef's merged notice. Both ordinary retros, actual reviewer settlement, guarded owned worktree/ref cleanup and recoverable cache cleanup remain owed after merge. Never self-settle at Stack ready.

{"ok":true,"changes":[["signoff","f84417c"]]}
{"ok":true,"changes":[["signoff","3d682ab"]]}
{"ok":true,"changes":[["signoff","5a57ae2"]]}
........... [100%]
11 passed, 168 deselected in 0.22s
.....FF..FF [100%]
=================================== FAILURES ===================================
___ TestDryRun.test_invalid_local_audio_fails_before_preflight[unknown-home] ___
self = <test_cli.TestDryRun object at 0x7f841b0f7c50>, kind = 'unknown-home'
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f841a519bb0>
tmp_path = PosixPath('/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-14/test_invalid_local_audio_fails5')
capsys = <_pytest.capture.CaptureFixture object at 0x7f841a546c60>
@pytest.mark.parametrize(
"kind", ["missing", "directory", "empty", "blank", "omitted", "unknown-home", "symlink-loop"]
)
def test_invalid_local_audio_fails_before_preflight(
self, kind, monkeypatch, tmp_path, capsys
) -> None:
import transcript
audio = tmp_path / "audio.m4a"
if kind == "directory":
audio.mkdir()
elif kind == "empty":
audio.touch()
elif kind == "symlink-loop":
audio.symlink_to(audio)
path_text = (
"~__transcript_missing_user_efc1__/audio.m4a"
if kind == "unknown-home"
else str(audio)
)
selection = (
[]
if kind == "omitted"
else ["--path", "" if kind == "blank" else path_text]
)
monkeypatch.setattr(
transcript,
"get_api_key_from_keyring",
lambda *_args: pytest.fail("invalid source read a secret"),
)
> assert (
transcript.main(["run", "file", *selection, "--no-summary"])
== 2
)
E AssertionError: assert 1 == 2
E + where 1 = <function main at 0x7f841a50d940>(['run', 'file', '--path', '~__transcript_missing_user_efc1__/audio.m4a', '--no-summary'])
E + where <function main at 0x7f841a50d940> = <module 'transcript' from '/home/pascal/projects/.worktrees/skills-efc1-transcript-10-1/authoring/andy/transcript/scripts/transcript.py'>.main
authoring/andy/transcript/scripts/tests/test_cli.py:250: AssertionError
----------------------------- Captured stderr call -----------------------------
{"ok":false,"errors":["RuntimeError: Could not determine home directory."],"rerun":"transcript run file --path '~__transcript_missing_user_efc1__/audio.m4a' --no-summary --debug"}
___ TestDryRun.test_invalid_local_audio_fails_before_preflight[symlink-loop] ___
self = <test_cli.TestDryRun object at 0x7f841b0f7d10>, kind = 'symlink-loop'
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f841af52b40>
tmp_path = PosixPath('/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-14/test_invalid_local_audio_fails6')
capsys = <_pytest.capture.CaptureFixture object at 0x7f841a53d040>
@pytest.mark.parametrize(
"kind", ["missing", "directory", "empty", "blank", "omitted", "unknown-home", "symlink-loop"]
)
def test_invalid_local_audio_fails_before_preflight(
self, kind, monkeypatch, tmp_path, capsys
) -> None:
import transcript
audio = tmp_path / "audio.m4a"
if kind == "directory":
audio.mkdir()
elif kind == "empty":
audio.touch()
elif kind == "symlink-loop":
audio.symlink_to(audio)
path_text = (
"~__transcript_missing_user_efc1__/audio.m4a"
if kind == "unknown-home"
else str(audio)
)
selection = (
[]
if kind == "omitted"
else ["--path", "" if kind == "blank" else path_text]
)
monkeypatch.setattr(
transcript,
"get_api_key_from_keyring",
lambda *_args: pytest.fail("invalid source read a secret"),
)
> assert (
transcript.main(["run", "file", *selection, "--no-summary"])
== 2
)
E AssertionError: assert 1 == 2
E + where 1 = <function main at 0x7f841a50d940>(['run', 'file', '--path', '/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-14/test_invalid_local_audio_fails6/audio.m4a', '--no-summary'])
E + where <function main at 0x7f841a50d940> = <module 'transcript' from '/home/pascal/projects/.worktrees/skills-efc1-transcript-10-1/authoring/andy/transcript/scripts/transcript.py'>.main
authoring/andy/transcript/scripts/tests/test_cli.py:250: AssertionError
----------------------------- Captured stderr call -----------------------------
{"ok":false,"errors":["RuntimeError: Symlink loop from '/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-14/test_invalid_local_audio_fails6/audio.m4a'"],"rerun":"transcript run file --path /home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-14/test_invalid_local_audio_fails6/audio.m4a --no-summary --debug"}
_____ TestFilePipeline.test_successful_file_pipeline[collision-239-bytes] ______
self = <test_transcript.TestFilePipeline object at 0x7f841af23410>
http_status = 200
file_name = 'éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééa.m4a'
tmp_path = PosixPath('/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-14/test_successful_file_pipeline_2')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f841a525160>
capsys = <_pytest.capture.CaptureFixture object at 0x7f841a526360>
@pytest.mark.parametrize(
"http_status,file_name",
[
(200, "Entrevue à Montréal.m4a"),
(500, "Entrevue à Montréal.m4a"),
(200, "é" * 117 + "a.m4a"),
(200, "é" * 119 + ".m4a"),
],
ids=["normal-success", "http-failure", "collision-239-bytes", "first-run-242-bytes"],
)
def test_successful_file_pipeline(
self, http_status, file_name, tmp_path, monkeypatch, capsys
) -> None:
from datetime import UTC, datetime
import httpx
import transcript
class FrozenClock(datetime):
@classmethod
def now(cls, tz=None):
return cls(2026, 10, 27, 12, 34, 56, tzinfo=UTC)
def astimezone(self, tz=None):
return self
monkeypatch.setattr(transcript, "datetime", FrozenClock)
monkeypatch.setattr(
transcript, "get_api_key_from_keyring", lambda *_args: "dummy-key"
)
audio = tmp_path / file_name
payload = b"local-audio" * 20_000
audio.write_bytes(payload)
exports = tmp_path / "exports"
uploads = []
def post(url, *, params, headers, content, timeout):
assert not isinstance(content, bytes)
chunks = list(content)
assert max(map(len, chunks)) <= 64 * 1024
assert b"".join(chunks) == payload
assert headers["Content-Type"] == "audio/mp4"
assert headers["Content-Length"] == str(len(payload))
assert headers["Authorization"] == "Token dummy-key"
uploads.append(len(chunks))
return httpx.Response(
http_status,
json=deepgram_response("Bonjour Montréal"),
request=httpx.Request("POST", url),
)
monkeypatch.setattr(transcript.httpx, "post", post)
base_name = None
for suffix in ("", "-2", "-3"):
code = transcript.main(
[
"run",
"file",
"--path",
str(audio),
"--no-summary",
"--output-dir",
str(exports),
]
)
out, err = capsys.readouterr()
> assert code == (0 if http_status == 200 else 1), err
E AssertionError: {"ok":false,"errors":["Could not create the result folder: [Errno 36] File name too long: '/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-14/test_successful_file_pipeline_2/exports/2026_10_27_12h34_56-\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9a-2'; fix: transcript run file --path '/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-14/test_successful_file_pipeline_2/\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9a.m4a' --no-summary --output-dir WRITABLE_DIR"]}
E
E assert 1 == 0
authoring/andy/transcript/scripts/tests/test_transcript.py:2228: AssertionError
_____ TestFilePipeline.test_successful_file_pipeline[first-run-242-bytes] ______
self = <test_transcript.TestFilePipeline object at 0x7f841af230e0>
http_status = 200
file_name = 'ééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé.m4a'
tmp_path = PosixPath('/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-14/test_successful_file_pipeline_3')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f841a5301d0>
capsys = <_pytest.capture.CaptureFixture object at 0x7f841a532630>
@pytest.mark.parametrize(
"http_status,file_name",
[
(200, "Entrevue à Montréal.m4a"),
(500, "Entrevue à Montréal.m4a"),
(200, "é" * 117 + "a.m4a"),
(200, "é" * 119 + ".m4a"),
],
ids=["normal-success", "http-failure", "collision-239-bytes", "first-run-242-bytes"],
)
def test_successful_file_pipeline(
self, http_status, file_name, tmp_path, monkeypatch, capsys
) -> None:
from datetime import UTC, datetime
import httpx
import transcript
class FrozenClock(datetime):
@classmethod
def now(cls, tz=None):
return cls(2026, 10, 27, 12, 34, 56, tzinfo=UTC)
def astimezone(self, tz=None):
return self
monkeypatch.setattr(transcript, "datetime", FrozenClock)
monkeypatch.setattr(
transcript, "get_api_key_from_keyring", lambda *_args: "dummy-key"
)
audio = tmp_path / file_name
payload = b"local-audio" * 20_000
audio.write_bytes(payload)
exports = tmp_path / "exports"
uploads = []
def post(url, *, params, headers, content, timeout):
assert not isinstance(content, bytes)
chunks = list(content)
assert max(map(len, chunks)) <= 64 * 1024
assert b"".join(chunks) == payload
assert headers["Content-Type"] == "audio/mp4"
assert headers["Content-Length"] == str(len(payload))
assert headers["Authorization"] == "Token dummy-key"
uploads.append(len(chunks))
return httpx.Response(
http_status,
json=deepgram_response("Bonjour Montréal"),
request=httpx.Request("POST", url),
)
monkeypatch.setattr(transcript.httpx, "post", post)
base_name = None
for suffix in ("", "-2", "-3"):
code = transcript.main(
[
"run",
"file",
"--path",
str(audio),
"--no-summary",
"--output-dir",
str(exports),
]
)
out, err = capsys.readouterr()
> assert code == (0 if http_status == 200 else 1), err
E AssertionError: {"ok":false,"errors":["Could not create the result folder: [Errno 36] File name too long: '/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-14/test_successful_file_pipeline_3/exports/2026_10_27_12h34_56-\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9'; fix: transcript run file --path '/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-14/test_successful_file_pipeline_3/\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9.m4a' --no-summary --output-dir WRITABLE_DIR"]}
E
E assert 1 == 0
authoring/andy/transcript/scripts/tests/test_transcript.py:2228: AssertionError
=========================== short test summary info ============================
FAILED authoring/andy/transcript/scripts/tests/test_cli.py::TestDryRun::test_invalid_local_audio_fails_before_preflight[unknown-home]
FAILED authoring/andy/transcript/scripts/tests/test_cli.py::TestDryRun::test_invalid_local_audio_fails_before_preflight[symlink-loop]
FAILED authoring/andy/transcript/scripts/tests/test_transcript.py::TestFilePipeline::test_successful_file_pipeline[collision-239-bytes]
FAILED authoring/andy/transcript/scripts/tests/test_transcript.py::TestFilePipeline::test_successful_file_pipeline[first-run-242-bytes]
.....FF..FF [100%]
=================================== FAILURES ===================================
___ TestDryRun.test_invalid_local_audio_fails_before_preflight[unknown-home] ___
self = <test_cli.TestDryRun object at 0x7ff843d88ef0>, kind = 'unknown-home'
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff84318aba0>
tmp_path = PosixPath('/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-13/test_invalid_local_audio_fails5')
capsys = <_pytest.capture.CaptureFixture object at 0x7ff843cfeed0>
@pytest.mark.parametrize(
"kind", ["missing", "directory", "empty", "blank", "omitted", "unknown-home", "symlink-loop"]
)
def test_invalid_local_audio_fails_before_preflight(
self, kind, monkeypatch, tmp_path, capsys
) -> None:
import transcript
audio = tmp_path / "audio.m4a"
if kind == "directory":
audio.mkdir()
elif kind == "empty":
audio.touch()
elif kind == "symlink-loop":
audio.symlink_to(audio)
path_text = (
"~__transcript_missing_user_efc1__/audio.m4a"
if kind == "unknown-home"
else str(audio)
)
selection = (
[]
if kind == "omitted"
else ["--path", "" if kind == "blank" else path_text]
)
monkeypatch.setattr(
transcript,
"get_api_key_from_keyring",
lambda *_args: pytest.fail("invalid source read a secret"),
)
> assert (
transcript.main(["run", "file", *selection, "--no-summary"])
== 2
)
E AssertionError: assert 1 == 2
E + where 1 = <function main at 0x7ff843d25c60>(['run', 'file', '--path', '~__transcript_missing_user_efc1__/audio.m4a', '--no-summary'])
E + where <function main at 0x7ff843d25c60> = <module 'transcript' from '/home/pascal/projects/.worktrees/skills-efc1-transcript-10-1/authoring/andy/transcript/scripts/transcript.py'>.main
authoring/andy/transcript/scripts/tests/test_cli.py:250: AssertionError
----------------------------- Captured stderr call -----------------------------
{"ok":false,"errors":["RuntimeError: Could not determine home directory."],"rerun":"transcript run file --path '~__transcript_missing_user_efc1__/audio.m4a' --no-summary --debug"}
___ TestDryRun.test_invalid_local_audio_fails_before_preflight[symlink-loop] ___
self = <test_cli.TestDryRun object at 0x7ff843d88d10>, kind = 'symlink-loop'
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff843cfec60>
tmp_path = PosixPath('/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-13/test_invalid_local_audio_fails6')
capsys = <_pytest.capture.CaptureFixture object at 0x7ff843c9ea20>
@pytest.mark.parametrize(
"kind", ["missing", "directory", "empty", "blank", "omitted", "unknown-home", "symlink-loop"]
)
def test_invalid_local_audio_fails_before_preflight(
self, kind, monkeypatch, tmp_path, capsys
) -> None:
import transcript
audio = tmp_path / "audio.m4a"
if kind == "directory":
audio.mkdir()
elif kind == "empty":
audio.touch()
elif kind == "symlink-loop":
audio.symlink_to(audio)
path_text = (
"~__transcript_missing_user_efc1__/audio.m4a"
if kind == "unknown-home"
else str(audio)
)
selection = (
[]
if kind == "omitted"
else ["--path", "" if kind == "blank" else path_text]
)
monkeypatch.setattr(
transcript,
"get_api_key_from_keyring",
lambda *_args: pytest.fail("invalid source read a secret"),
)
> assert (
transcript.main(["run", "file", *selection, "--no-summary"])
== 2
)
E AssertionError: assert 1 == 2
E + where 1 = <function main at 0x7ff843d25c60>(['run', 'file', '--path', '/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-13/test_invalid_local_audio_fails6/audio.m4a', '--no-summary'])
E + where <function main at 0x7ff843d25c60> = <module 'transcript' from '/home/pascal/projects/.worktrees/skills-efc1-transcript-10-1/authoring/andy/transcript/scripts/transcript.py'>.main
authoring/andy/transcript/scripts/tests/test_cli.py:250: AssertionError
----------------------------- Captured stderr call -----------------------------
{"ok":false,"errors":["RuntimeError: Symlink loop from '/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-13/test_invalid_local_audio_fails6/audio.m4a'"],"rerun":"transcript run file --path /home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-13/test_invalid_local_audio_fails6/audio.m4a --no-summary --debug"}
_____ TestFilePipeline.test_successful_file_pipeline[collision-239-bytes] ______
self = <test_transcript.TestFilePipeline object at 0x7ff843d9d910>
http_status = 200
file_name = 'éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééa.m4a'
tmp_path = PosixPath('/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-13/test_successful_file_pipeline_2')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff8433854c0>
capsys = <_pytest.capture.CaptureFixture object at 0x7ff843387d70>
@pytest.mark.parametrize(
"http_status,file_name",
[
(200, "Entrevue à Montréal.m4a"),
(500, "Entrevue à Montréal.m4a"),
(200, "é" * 117 + "a.m4a"),
(200, "é" * 119 + ".m4a"),
],
ids=["normal-success", "http-failure", "collision-239-bytes", "first-run-242-bytes"],
)
def test_successful_file_pipeline(
self, http_status, file_name, tmp_path, monkeypatch, capsys
) -> None:
from datetime import UTC, datetime
import httpx
import transcript
class FrozenClock(datetime):
@classmethod
def now(cls, tz=None):
return cls(2026, 10, 27, 12, 34, 56, tzinfo=UTC)
def astimezone(self, tz=None):
return self
monkeypatch.setattr(transcript, "datetime", FrozenClock)
monkeypatch.setattr(
transcript, "get_api_key_from_keyring", lambda *_args: "dummy-key"
)
audio = tmp_path / file_name
payload = b"local-audio" * 20_000
audio.write_bytes(payload)
exports = tmp_path / "exports"
uploads = []
def post(url, *, params, headers, content, timeout):
assert not isinstance(content, bytes)
chunks = list(content)
assert max(map(len, chunks)) <= 64 * 1024
assert b"".join(chunks) == payload
assert headers["Content-Type"] == "audio/mp4"
assert headers["Content-Length"] == str(len(payload))
assert headers["Authorization"] == "Token dummy-key"
uploads.append(len(chunks))
return httpx.Response(
http_status,
json=deepgram_response("Bonjour Montréal"),
request=httpx.Request("POST", url),
)
monkeypatch.setattr(transcript.httpx, "post", post)
base_name = None
for suffix in ("", "-2", "-3"):
code = transcript.main(
[
"run",
"file",
"--path",
str(audio),
"--no-summary",
"--output-dir",
str(exports),
]
)
out, err = capsys.readouterr()
assert code == (0 if http_status == 200 else 1), err
result = json.loads(out if http_status == 200 else err.splitlines()[-1])
folder = Path(result["files"][0]).parent
assert folder.parent == exports
if not suffix:
base_name = folder.name
prefix = "2026_10_27_12h34_56-"
assert base_name.startswith(prefix)
output_stem = base_name[len(prefix):]
assert output_stem and audio.stem.startswith(output_stem)
if file_name == "Entrevue à Montréal.m4a":
assert output_stem == "Entrevue à Montréal"
else:
assert len(audio.name.encode("utf-8")) in {239, 242}
> assert len(base_name.encode("utf-8")) <= 255 - len("-999")
E AssertionError: assert 255 <= (255 - 4)
E + where 255 = len(b'2026_10_27_12h34_56-\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9...3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9a')
E + where b'2026_10_27_12h34_56-\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9...3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9\xc3\xa9a' = <built-in method encode of str object at 0x7ff8430928d0>('utf-8')
E + where <built-in method encode of str object at 0x7ff8430928d0> = '2026_10_27_12h34_56-éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééa'.encode
E + and 4 = len('-999')
authoring/andy/transcript/scripts/tests/test_transcript.py:2242: AssertionError
_____ TestFilePipeline.test_successful_file_pipeline[first-run-242-bytes] ______
self = <test_transcript.TestFilePipeline object at 0x7ff843d9d790>
http_status = 200
file_name = 'ééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé.m4a'
tmp_path = PosixPath('/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-13/test_successful_file_pipeline_3')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff843384740>
capsys = <_pytest.capture.CaptureFixture object at 0x7ff84331e960>
@pytest.mark.parametrize(
"http_status,file_name",
[
(200, "Entrevue à Montréal.m4a"),
(500, "Entrevue à Montréal.m4a"),
(200, "é" * 117 + "a.m4a"),
(200, "é" * 119 + ".m4a"),
],
ids=["normal-success", "http-failure", "collision-239-bytes", "first-run-242-bytes"],
)
def test_successful_file_pipeline(
self, http_status, file_name, tmp_path, monkeypatch, capsys
) -> None:
from datetime import UTC, datetime
import httpx
import transcript
class FrozenClock(datetime):
@classmethod
def now(cls, tz=None):
return cls(2026, 10, 27, 12, 34, 56, tzinfo=UTC)
def astimezone(self, tz=None):
return self
monkeypatch.setattr(transcript, "datetime", FrozenClock)
monkeypatch.setattr(
transcript, "get_api_key_from_keyring", lambda *_args: "dummy-key"
)
audio = tmp_path / file_name
payload = b"local-audio" * 20_000
audio.write_bytes(payload)
exports = tmp_path / "exports"
uploads = []
def post(url, *, params, headers, content, timeout):
assert not isinstance(content, bytes)
chunks = list(content)
assert max(map(len, chunks)) <= 64 * 1024
assert b"".join(chunks) == payload
assert headers["Content-Type"] == "audio/mp4"
assert headers["Content-Length"] == str(len(payload))
assert headers["Authorization"] == "Token dummy-key"
uploads.append(len(chunks))
return httpx.Response(
http_status,
json=deepgram_response("Bonjour Montréal"),
request=httpx.Request("POST", url),
)
monkeypatch.setattr(transcript.httpx, "post", post)
base_name = None
for suffix in ("", "-2", "-3"):
code = transcript.main(
[
"run",
"file",
"--path",
str(audio),
"--no-summary",
"--output-dir",
str(exports),
]
)
out, err = capsys.readouterr()
> assert code == (0 if http_status == 200 else 1), err
E AssertionError: {"ok":false,"errors":["Could not create the result folder: [Errno 36] File name too long: '/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-13/test_successful_file_pipeline_3/exports/2026_10_27_12h34_56-\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9'; fix: transcript run file --path '/home/pascal/.cache/brigade-efc1/cook-10.1/tmp/pytest-of-pascal/pytest-13/test_successful_file_pipeline_3/\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9.m4a' --no-summary --output-dir WRITABLE_DIR"]}
E
E assert 1 == 0
authoring/andy/transcript/scripts/tests/test_transcript.py:2228: AssertionError
=========================== short test summary info ============================
FAILED authoring/andy/transcript/scripts/tests/test_cli.py::TestDryRun::test_invalid_local_audio_fails_before_preflight[unknown-home]
FAILED authoring/andy/transcript/scripts/tests/test_cli.py::TestDryRun::test_invalid_local_audio_fails_before_preflight[symlink-loop]
FAILED authoring/andy/transcript/scripts/tests/test_transcript.py::TestFilePipeline::test_successful_file_pipeline[collision-239-bytes]
FAILED authoring/andy/transcript/scripts/tests/test_transcript.py::TestFilePipeline::test_successful_file_pipeline[first-run-242-bytes]
[
{
"pr": 1107,
"remote_branch": "efc1-transcript-10-1-file",
"baseRefName": "main",
"headRefOid": "77e43c71e07eb1a55187a706d82e9b1c688e467b",
"state": "OPEN"
},
{
"pr": 1108,
"remote_branch": "efc1-transcript-10-1-ytdlp",
"baseRefName": "efc1-transcript-10-1-file",
"headRefOid": "fd4f32cb9af1057a1aa98743c226f764206b1851",
"state": "OPEN"
},
{
"pr": 1110,
"remote_branch": "efc1-transcript-10-1-help",
"baseRefName": "efc1-transcript-10-1-ytdlp",
"headRefOid": "f687abadd0d580ce9fcb46fa00fb2164f8c013e9",
"state": "OPEN"
}
]
1: fd4f32cb = 1: 3d682ab5 🧰 skill: transcript: suppress yt-dlp update warnings
2: f687abad = 2: 5a57ae20 🧰 skill: transcript: tolerate wrapped Zoom help paths
{
"ok": true,
"base": "3f42f3c8981a8a0795812d10f29bc270c0fb5b9b",
"old_heads": [
"77e43c71e07eb1a55187a706d82e9b1c688e467b",
"fd4f32cb9af1057a1aa98743c226f764206b1851",
"f687abadd0d580ce9fcb46fa00fb2164f8c013e9"
],
"new_heads": [
{
"sha": "f84417ccd946f5005938afa993b024fc9ec65e8f",
"tree": "2d0719a9fdf5795f4ed153919a84baabfc196b9e"
},
{
"sha": "3d682ab54745d14a27c40cae4fe9f110fa623bb1",
"tree": "f0331d8b4b5c9d6e6f283fb3eb6e670dd817184e"
},
{
"sha": "5a57ae202839eaf91d5d41c0d4d383c687629cc4",
"tree": "975632e829f48f25a9efd49c5e9c228435f9295a"
}
],
"changed_paths": [
"authoring/andy/transcript/README.md",
"authoring/andy/transcript/SKILL.md",
"authoring/andy/transcript/scripts/tests/test_cli.py",
"authoring/andy/transcript/scripts/tests/test_contract.py",
"authoring/andy/transcript/scripts/tests/test_transcript.py",
"authoring/andy/transcript/scripts/transcript.py",
"skills/transcript/README.md",
"skills/transcript/SKILL.md",
"skills/transcript/scripts/tests/test_cli.py",
"skills/transcript/scripts/tests/test_contract.py",
"skills/transcript/scripts/tests/test_transcript.py",
"skills/transcript/scripts/transcript.py"
],
"upper_layers_stable_patch_ids": [
{
"story": 465,
"old_patch_id": "f85771971376b502917dba856fa1fb954868837d",
"new_patch_id": "f85771971376b502917dba856fa1fb954868837d",
"same": true
},
{
"story": 471,
"old_patch_id": "d1715f85b239e6882c22a7ce0abc4be88e35a4cf",
"new_patch_id": "d1715f85b239e6882c22a7ce0abc4be88e35a4cf",
"same": true
}
],
"postfix_patch_id": "85bc566f63815d52fb20537cf01568c932aee483",
"repair_layer_patch_id": "85bc566f63815d52fb20537cf01568c932aee483",
"full_delta_sha256": "0cc21faba68c75e9313dedfda65b36e4cab2a7315e60d868696735fe088ba9b6",
"mirror_equal": true,
"no_catalog_count_or_peer_delta": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment