Skip to content

feat(efficacy): the lazysections and lazyrefold arms, built by script - #185

Merged
braboj merged 7 commits into
mainfrom
feat/c1-cost-arms
Nov 17, 2026
Merged

braboj merged 7 commits into
mainfrom
feat/c1-cost-arms

Conversation

@braboj

@braboj braboj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Two new scripted arms for round 6 (C1)'s cost questions (#169): lazysections and lazyrefold.

Arm What it is Against
lazysections the emitter's --sections output: a 12.8 KB map plus 125 section files (about 113 KB), read one topic at a time lazyref (whole files on demand), reference (all up front)
lazyrefold lazyref built by the same script at the parent of the check-loop commit lazyref at that commit
  • Named lazyrefold, not lazyref-old: trial names, voided workspaces and contrast labels split an arm's name on hyphens.
  • lazyref vs lazyrefold: 12 lines, all in quality.md's "Static checks" (2 removed, 10 added); the roots are identical.
  • The harness places the section files at .agents/sections/, where the map names them.

Checks, each proved by a planted fault:

  • lazyref and lazyrefold differ by the check-loop commit's lines alone, in its section
  • the section files hold every rule block the inline root does, and no other; the map names each once
  • no on-demand arm tells the agent to read everything at startup
  • both arms rebuild byte for byte at their recorded refs
  • harness, report, generate_arm self-tests, trace.py PASS, pyflakes clean

Not final yet:

  • The refs are the templates branches' (d6da8f33, 4e1de818). Every arm is re-pinned once templates #2495, #2496 and #2498 merge, and only then is lazyref vs lazyrefold the clean pair.
  • New IDs: FR-13-22 to FR-13-24.

Stacked on #182. Refs #169.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3

braboj and others added 2 commits November 15, 2026 20:46
- lazysections: the templates' emitter with --sections, same roots and
  declined list as the other emitted arms; the map is the root, the section
  files land at .agents/sections/ where it names them, out of the index
- lazyrefold: lazyref built at the parent of the check-loop commit
  (a8079352^ = 4e1de818); named without a hyphen, since trial names and
  hypothesis labels split an arm's word on one
- self-tests: lazyref and lazyrefold differ by that commit's quality.md
  lines alone, all in "Static checks", read from the templates' own diff;
  the section files hold exactly the inline root's rule blocks, each named
  once by the map; no on-demand arm tells the agent to read everything at
  the start; each check proven by a planted fault
- both arms added to harness.ARMS and to C1's registered arms, which
  changes C1's registration digest (no C1 trial has run)
- docs: journey, building block view, ADR-026's arm list, FR-13-22 to 24

The arms are pinned at the open templates branch refs (lazysections at
d6da8f33, feat/check-loop's tip; lazyrefold at 4e1de818). Every arm is
re-pinned at one ref once the templates PRs merge.

Refs #169.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
…ction files as map uses

- the check-loop pair check now reads each arm's committed root and the
  templates vendored at the ref its record names, the pair a trial gets,
  not a lazyref built for the check; a lazyref committed at another ref is
  planted and reported
- lazyref regenerated by the arm script at the check-loop commit
  (a8079352), so the committed pair differs by that rule alone; its map is
  unchanged, only its record's ref moves. Both arms are re-pinned once the
  templates PRs merge
- report: the lazysections arm's map is its section files, and a Read or a
  shell read of one (by path, wildcard or a directory moved into) counts
  as a use, so map_uses() measures its trials
- docs: FR-13-22 and FR-13-23 rows and coverage, the journey's ref note

Refs #169.

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

braboj commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 1 (gpt-6-astra, high): 2 findings, both fixed in a84b1e9.

Sev Finding Outcome
P2 Pair check compared a freshly built lazyref, not the committed arm Fixed: reads committed records; lazyref regenerated by script at the check-loop commit; pair now differs only by the rule
P2 lazysections section-file reads were not counted as map uses Fixed: map lists the section files; a Read or shell read counts

harness 193/193, report 259/259, trace 0 problems. Round 2 running.

🤖 Generated with Claude Code

- main() reads map uses wherever the run holds an arm whose file points
  at a map, named round or not, not only in a round-5e run
- a named round's report prints the existing use-of-the-map table, with
  no H7 note beside it
- self-test: a planted C1 run root whose lazysections trial reads two
  section files before its first write prints that arm's row and its
  per-trial reads in the report

Refs #169.

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

braboj commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 2 (gpt-6-astra, high): 1 finding, fixed in 7e83dba.

Sev Finding Outcome
P2 Section-read counting never reached a named round's report Fixed: report_uses collects for any mapped arm; C1 report prints "Use of the map"; end-to-end check

report 260/260, harness 193/193, trace 0 problems. Round 3 running.

🤖 Generated with Claude Code

@braboj

braboj commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 3 (gpt-6-astra, high): 2 findings.

Sev Finding Outcome
P2 lazysections and lazyrefold have no report contrasts Fixing in the next commit
P2 Named-round map use drops change-task transcripts By design here: change-task readings are #186's scope, where map use is task-aware (task_uses, one "Use of the map" per task)

🤖 Generated with Claude Code

- each new arm against none: lazysections - none, lazyrefold - none
- the check loop: lazyref - lazyrefold
- the section files against the arms whose rules they repackage, as the
  C1 reading registers them: lazysections - lazyref, lazysections -
  reference
- each new arm described in plain words for the report's "Each approach"
- self-test: a run of none, lazysections and lazyrefold alone has
  declared contrasts and an "Each approach" entry for each new arm

Refs #169.

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

braboj commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Round 3 finding 1 fixed in f138ba7: report.CONTRASTS gains the C1 pairs (lazysections/lazyrefold vs none, lazyref vs lazyrefold, lazysections vs lazyref and reference), plus plain-word entries. report 261/261. Round 4 running.

🤖 Generated with Claude Code

@braboj

braboj commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 4 (gpt-6-astra, high): no new findings.

🤖 Generated with Claude Code

@braboj
braboj changed the base branch from feat/c1-registration-identity to main November 17, 2026 13:53
Resolves the requirement and coverage tables, keeping both sides:

- FR-13-21 (main) before FR-13-22 to FR-13-24 (this branch), each ID once
- FR-12-02 takes main's added reuse label; FR-12-03 keeps this branch's
  round-6 contrast label

harness.py and report.py merged cleanly.

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

braboj commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Merged main (#180, #181, #182, #184) as b1b7cca; only requirements.md and coverage.md conflicted, both sides kept, IDs unique.

Codex review after the merge (gpt-6-astra, high): no new findings.

🤖 Generated with Claude Code

@braboj
braboj merged commit 4839e1a into main Nov 17, 2026
2 checks passed
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.

1 participant