Skip to content

feat(efficacy): every arm is built by a script, inline by the emitter - #172

Merged
braboj merged 3 commits into
mainfrom
feat/scripted-arms
Nov 15, 2026
Merged

braboj merged 3 commits into
mainfrom
feat/scripted-arms

Conversation

@braboj

@braboj braboj commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

From round 6 every arm is built by a script, with no model call, so the same ref gives the same file. inline becomes the templates' own emitter output, and hybrid, short and hand run no more (ADR-026).

What changes

Where Change
generate_arm.py No model path. inline = resolve_chain.py --emit --inline-skills; hybrid and short no longer built
generate_arm.py Emitted roots carry the brief whole (the description slot takes it)
generate_arm.py self-test Rebuilds every committed arm at its recorded ref, fails on any byte of difference, builds one twice
arms/inline/ Rebuilt by the emitter at 9abed019: 1,778 lines (5e's model-written file: 552)
arms/skills/ Rebuilt: its root gains the brief's personal-data and boundaries paragraphs, which it lacked
harness.py inline's label; the vendoring check reads lazyref's record
report.py self-test The longest-file check works out which fresh file is longer, instead of assuming skills
Docs ADR-026; FR-13-07, FR-13-08 reworded, FR-13-10 new; coverage; building block; the journey

Before and after

before: inline, hybrid, short = one claude-sonnet-5 call each  -> a new file every run
after:  inline = emitter --inline-skills                       -> same bytes every run
        hybrid, short, hand  -> kept as files for pilot reports only (#171), never built

Why hybrid is dropped, not rebuilt

  • The emitter has no hybrid mode
  • The templates forbid emitted files naming template files (their FR-06-07), and leaving rules to references (their ADR-058)
  • In 5e hybrid read 0.1 of its 13 references: in effect a shorter inline

Checks

  • All self-tests pass; trace PASS; pyflakes clean
  • The new rebuild check fails on the old skills file (brief missing)
  • Codex review rounds

Closes #167. Its last two items, the round 6 arm list and the screen, move to round 6's registration (#169).

🤖 Generated with Claude Code

https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3

The generator loses its model path: inline is resolve_chain.py --emit
--inline-skills, skills the emitter as before, and hybrid and short are
no longer built. Every emitted root now carries the brief whole. The
self-test rebuilds every committed arm at its recorded ref and fails on
any byte of difference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
@braboj

braboj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 1 (gpt-6-astra, high): one finding.

Severity Finding Outcome
P2 Dropping hybrid and short from the generator's table also dropped their records from pilot reports: provenance rows and hybrid's template-use rows Fixed

The fix:

  • New RECORDED table: every arm with a record, the built ones plus the pilot's hybrid and short
  • The report reads records through it; the generator still builds only GENERATED
  • New check: "a pilot arm no script builds keeps its record for the report, and its vendored templates"; it fails with RECORDED limited to the built arms

@braboj

braboj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 2 (gpt-6-astra, high): no findings. Ready to merge on the owner's OK.

# Conflicts:
#	docs/coverage.md
#	docs/requirements.md
@braboj

braboj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Merged main (#173, reports under docs/reports/). It took ADR-025 and FR-13-09, so this PR's are now ADR-026 and FR-13-10. Self-tests, trace and pyflakes pass after the merge; Codex round 3 follows.

@braboj

braboj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 3 (gpt-6-astra, high), after merging main: no findings. Ready to merge on the owner's OK.

@braboj
braboj merged commit a437870 into main Nov 15, 2026
2 checks passed
@braboj
braboj deleted the feat/scripted-arms branch November 15, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Round 6: every arm's file is built by a script, not written by a model

1 participant