Skip to content

feat(efficacy): runs name their registration, and change tasks share one fixture - #182

Merged
braboj merged 11 commits into
mainfrom
feat/c1-registration-identity
Nov 17, 2026
Merged

braboj merged 11 commits into
mainfrom
feat/c1-registration-identity

Conversation

@braboj

@braboj braboj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

The harness and the report now know which round a run belongs to, so round 6 (C1) can start, and every arm's change task starts from the same code.

Before and after:

before: run with arm "reference"  -> refused: SPEC.md is not round 5's digest
after:  --round C1 --arms reference -> spec, prompts, arms and K read from REGISTRATIONS["C1"]
Rule What it does
FR-13-11 REGISTRATIONS["C1"] pins the spec, both prompt digests, the arms, K = 15 per task and the fixture rule; an unknown round, arm, K over 15, or mismatched digest is refused
FR-13-12 The run record stores round and registration digest; every trial its round, task, arm and block; a root mixing identities is refused
FR-13-13 The report reads the round from the run records; arm-name inference only for records that name none
FR-13-14 A round is complete only with both tasks at K for every arm
FR-13-15 Change fixtures: block b uses the b-th qualifying 5e none build (cycled); empty manifest, missing baseline or hash mismatch refuses the run
FR-13-16 A change workspace keeps only the fixture's code and tests, gets C1's spec and the arm's own context, one commit

Closes #177.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3

…on one fixture

- REGISTRATIONS in harness.py: C1's spec, arms, K and prompt digest per
  task, and its change-fixture rule; a run names it with --round
- Refuse an unknown round, an unregistered arm, a K past the round's,
  and a spec or prompt other than the pinned ones
- Run and trial records carry the round, registration digest, task, arm
  and block; a root never mixes rounds, digests or unnamed records
- C1's change task starts every arm of block b from the b-th qualifying
  round-5e none build, cycling, hash-checked from change-fixtures.json
  (empty for now, so the change run refuses), cleaned of instructions,
  settings, databases, caches, environments and history, one commit
- Completeness per task, a change task counting whatever its build did
- report.py reads the round from the run records and infers it from the
  arms only for records naming none
- FR-13-11 to FR-13-16 with their coverage rows

Refs #177.

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:

# Sev Finding Outcome
1 P1 Recovering an interrupted run drops its round and fixture identity Fixing: recovery keeps the identity
2 P1 A fixture manifest changed between partial runs is accepted Fixing: the manifest's content digest and block mapping join the identity
3 P2 A change result with no build score is dropped by the report Fixing: named rounds load and exclude per task

… its change tasks alone

- recover() rewrites a run record with its round, registration and
  fixtures, so an interrupted C1 run leaves its root readable
- A change run is refused when the manifest's sha256 or a block's fixture
  differs from the root's earlier change runs
- report.py, for a named round, loads a change score whose build has no
  score as a trial of its own, keeps a reached build's change reading,
  scores it on its ISO axes as unmeasured, not broken, and reads no build
  Python for it; pilot rounds unchanged
- FR-13-12, FR-13-15 reworded, FR-13-17 added, with coverage rows

Refs #177.

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 fixes pushed (291d3ac). Round 2:

# Sev Finding Outcome
1 P2 A broken build hides its change task's Maintainability targets Fixing: for a named round, the broken-build gate covers build targets only

… did

- For a named round, a broken build gates only the build's own ISO
  targets; the change targets, from a fixture, are read on their own, so
  one change result reads the same with its build unscored, working or
  broken
- Pilot rounds keep the whole-axis gate
- FR-13-17 reworded, its coverage row given the new check

Refs #177.

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

Round 2 fix pushed (5b70979). Codex round 3:

# Sev Finding Outcome
1 P2 A reused C1 trial lands in a root read as legacy, so pilot rules apply Fixing: trials naming a round need the header's identity; reuse carries it

…e included

- A run whose header names no round over trials that name one is refused,
  in the harness and in the report, rather than read as a pilot round
- reuse.py writes the copied trials' round and registration digest in the
  header, and refuses to mix a named round's trials with another round's
  or with trials of none
- FR-13-12 and FR-13-13 reworded, FR-13-18 added for reuse, with coverage

Refs #177.

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 4: three P2s, fixing — named rounds skipped the preregistration check; archive verification loaded without the round; same-round reused trials read as cross-round.

braboj and others added 2 commits November 15, 2026 20:23
… round-aware

- report.py refuses a named round unless its entry's document (C1:
  docs/rounds/round-c1.md, not yet written) landed on main before the
  first trial, a trial reused within the round counting toward its start
- One entry point, round_trials and leave_out_reached, reads a round for
  both the report and the archive's verify, so a C1 change task's score
  changed in the archive fails the verify
- reuse.py names the round and digest in a reused trial's origin, and the
  report pairs a trial reused within one named round with those run there
- FR-13-18 reworded, FR-13-19 and FR-13-20 added, with coverage

Refs #177.

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

- report.py refuses a named round whose scorable trial records another
  spec than its entry's, or a prompt other than the one pinned for its
  task, build or change, or records none
- The change-only self-test's records carry C1's spec and change prompt,
  so it reaches the check it is for
- FR-01-03 reworded, its coverage row given the new check

Refs #177.

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

Round 4 fixes pushed (8c1c991), plus c9ba32f: the report holds a named round's trials to the spec and prompts its registration pins, each task to its own. Round 5's finding (change-only test records without inputs) is fixed in it.

@braboj

braboj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 6: no findings. Ready for the owner's approval.

…ts on planted repos

- registration_problem() reads the main branch locally, else as
  origin/main, and refuses a clone with neither, with its reason, rather
  than crash, as a CI checkout of one branch did
- The self-test of a trial reused within a named round reads a git
  repository it plants, not this one's branches
- A check plants a clone with main, one with only origin/main and one with
  neither
- FR-01-01 reworded, its coverage row given the new check

Refs #177.

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

CI fix pushed (66c5e20: the self-tests plant their own repository; main read locally, else origin/main, else refused). Codex round 7: no findings. Ready for the owner's approval.

braboj and others added 2 commits November 17, 2026 07:56
…identity

Resolved as stack/c1-base (a643c29) resolved the same pairing:
- docs/requirements.md, docs/coverage.md: both sides kept, FR-13-11 to
  FR-13-20 from this branch, then FR-13-21 from main; no ID taken twice
- report.py load(): main's loop over security and quality readings, with
  this branch's rule that a change task standing alone takes none
- report.py iso_trial_scores(): both docstrings' sentences, the named
  round's change targets and main's `axes`
- change_only() also empties the quality reading, so a reached build's
  quality never stands on its change task

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

- A named round's change trial records its fixtures' directory as
  protected: its deny rules cover it, and the harness's scan and the
  report's re-scan flag any call naming a path into it
- A run root inside the fixtures' directory is refused
- The report reads a named round's registration from REPOSITORY, which
  its self-tests plant, so a real docs/rounds/round-c1.md changes nothing
- FR-13-16 extended, with coverage

Refs #177.

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, #184) into this branch as e677c21; conflicts resolved as stack/c1-base resolved them, plus change_only() empties quality.

Codex review after the merge (gpt-6-astra, high): two findings, both fixed in 41558c1.

Severity Finding Outcome
P2 Fixtures stored outside the run root were neither denied nor scanned, so a change trial could unpack one and recover the stripped history and databases Fixed: the fixtures' directory is protected in the deny rules, the harness scan and the report's re-scan; a run root inside it is refused
P2 The missing-registration self-test read the checkout, so adding docs/rounds/round-c1.md would break it Fixed: the report reads registrations from a repository the self-tests plant

All self-tests, trace (121 rules, 0 problems) and pyflakes pass. Next round running.

🤖 Generated with Claude Code

… roots in either case

- The scans flag a fixture archive's name as a path component wherever it
  stands, and the fixtures' directory's own name after a climb (`../`),
  so a relative read from the workspace is caught; a folder of that name
  inside the workspace is not
- The record names the run's archives; the report's re-scan reads them
- The nested-root refusal compares resolved, normcased paths, and the deny
  rules carry each protected path as given, resolved and, on Windows, in
  lower case
- FR-13-16 reworded

Refs #177.

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

Codex review after the merge, round 2 (gpt-6-astra, high): two findings, both fixed in 3342bb3.

Severity Finding Outcome
P2 A relative shell read such as tar xf ../../../fixtures/none-2.tar went unflagged Fixed: scans flag a fixture archive's file name as a whole path component, and the fixtures directory's name after a ../ climb
P2 On Windows, a run root inside the fixtures directory got past the refusal when its casing differed Fixed: both paths compared after normcase(realpath()); deny rules carry the lower-case form

harness 192/192, report 268/268, pyflakes clean. Next round running.

🤖 Generated with Claude Code

- A symbolic or hard link the build froze stays in the change workspace
  where what it names stays; a link naming anything else, out of the tree,
  absolute or into what the cleaning drops, makes the fixture unusable,
  refused before the run and at its trial rather than silently dropped
- FR-13-16 and chapter 8.2 state the scan's limit: it catches a named
  access, not a path the shell builds indirectly

Refs #177.

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

Codex review after the merge, round 3 (gpt-6-astra, high): two findings, handled in 2a3ec1b.

Severity Finding Outcome
P2 An indirect relative path (../../../data/fixtures plus a wildcard) reaches the fixtures unflagged By design: the scan is a tripwire for named access; no static scan of a shell command is complete. FR-13-16 and chapter 8.2 now state the limit (same stance as #183 on shell writes)
P2 Unpacking a fixture silently dropped symlinks and hard links, so a workspace could lack code Fixed: a link is kept when its target is kept; a link out of the tree makes the fixture unusable, refused at start and at its trial

harness 194/194, pyflakes clean. Round 4 running.

🤖 Generated with Claude Code

@braboj

braboj commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Codex review after the merge, round 4 (gpt-6-astra, high, at 2a3ec1b): no findings.

The loop is clean. Merging once CI passes (owner approved).

🤖 Generated with Claude Code

@braboj
braboj merged commit 0843b07 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.

Round 6: registration identity and one change fixture for every arm

1 participant