Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/architecture/05-building-block-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependency with its keyword.
| Block | Responsibility | Reads | Writes |
| ----- | -------------- | ----- | ------ |
| `generate_arm.py` | Builds one arm's file by script, with no model call: fixed text, the templates' emitter, its skills apart or inlined, or a map of the chain's topics. Scans the output for leaks and named tools; its self-test rebuilds every committed arm and fails on any difference | `brief.txt`, the templates source | `arms/<arm>/CLAUDE.md`, `generation.json` |
| `harness.py` | Prepares each workspace, runs the agent in isolation, catches reach, freezes the result, keeps the run record current | The specs, the arm files, the change prompt | The run root |
| `harness.py` | Prepares each workspace, runs the agent in isolation, catches reach, freezes the result, keeps the run record current. Holds a run naming a round to that round's registration, and starts its change tasks from one fixture per block | The specs, the arm files, the change prompt, the fixture manifest and its tarballs | The run root |
| `reuse.py` | Copies an earlier round's trials and readings into a new root, with their tool lock | An earlier root | The run root, the scoring area |
| `progress.py` | Watches a run: one bar per arm, its voided tries, its cost and the trial running; then its scoring: one bar per arm, the security readings and the trial being scored; then its judging: one bar per arm of judgings out of those owed, the failures still owed and the blind label in hand. Redrawn every 30 s. Read-only | The run records, the scoring area | The console |
| `score.py` | Installs each frozen trial cleanly, runs the hidden suite, the static tools and the adherence checklist, counts scope and cost | The run root, the hidden suite, `scoring-requirements.txt`, `toolconfig/` | `scores/`, `scores-change/` |
Expand All @@ -36,6 +36,7 @@ dependency with its keyword.
| `SPEC-thin.md` | The same contract without the practices, for `--spec thin` | harness |
| `brief.txt` | What an adopter would type: domain, stack, personal data, boundaries | `generate_arm.py` |
| `change-prompt.txt` | The change task's prompt, naming everything its grader drives | harness |
| `change-fixtures.json` | The builds a named round's change task starts from, one per block, each with its tarball's sha256 and the baseline readings that qualified it | harness |
| `arms/<arm>/CLAUDE.md` | Each arm's context file. `arms/<arm>/skills/` holds a skills arm's skills | harness |
| `arms/<arm>/generation.json` | How each generated file was made | `report.py` |
| `scoring-requirements.txt` | The scoring tools, resolved once into the tool lock | `score.py` |
Expand Down
3 changes: 2 additions & 1 deletion docs/architecture/08-crosscutting-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ The layers:
| Web tools disallowed | Fetching a page | `curl` or `git clone` in the shell |
| Git credential helpers cleared | An authenticated clone of the hidden suite | |
| Process-stop commands denied | Stopping the harness by name | Stopping by PID or port |
| Transcript scan | Any tool call naming a forbidden path or repository | A call the transcript does not record |
| Transcript scan | Any tool call naming a forbidden path or repository | A call the transcript does not record; a path the shell builds indirectly, through a variable, a wildcard or a climb past a name the scan knows |

**Rules**

Expand All @@ -159,6 +159,7 @@ The layers:
| 2 | The tools are fenced | File tools denied outside the workspace, web tools disallowed, no Git credentials, no stop by name | FR-05-03 to FR-05-06 |
| 3 | The transcript is the backstop | A hit voids the trial and re-runs it once; the report scans again under the current rule | FR-05-07, FR-05-08 |
| 4 | Nothing outlives the trial | Every process started from its directories is stopped before it is frozen | FR-05-09 |
| 5 | A change task's fixtures are fenced | Their directory is in the deny rules, and the scan flags a path naming it or one of its archives; a tripwire for named access, since no static scan of a shell command is complete | FR-13-16 |

The decision is ADR-020.

Expand Down
14 changes: 12 additions & 2 deletions docs/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ when:

| ID | Kind | Checked by |
| -- | ---- | ---------- |
| FR-01-01 | Self-test | `report.py` "one landed after the first trial is refused"<br>`report.py` "one merged after the first trial is read at the merge"<br>`report.py` "a registration landed before the first trial passes, across zones" |
| FR-01-01 | Self-test | `report.py` "one landed after the first trial is refused"<br>`report.py` "one merged after the first trial is read at the merge"<br>`report.py` "a registration landed before the first trial passes, across zones"<br>`report.py` "the main branch is read locally, else as origin's, and a clone with neither is refused, not crashed" |
| FR-01-02 | Self-test | `report.py` "one changed and not committed is refused"<br>`report.py` "an amendment on a branch of its own is refused" |
| FR-01-03 | Self-test | `report.py` "a trial on another spec is refused"<br>`report.py` "a trial on another prompt is refused"<br>`report.py` "every trial on the registered spec passes"<br>`report.py` "every trial on the one prompt passes" |
| FR-01-03 | Self-test | `report.py` "a trial on another spec is refused"<br>`report.py` "a trial on another prompt is refused"<br>`report.py` "every trial on the registered spec passes"<br>`report.py` "every trial on the one prompt passes"<br>`report.py` "a named round's trial on a spec or prompt its entry does not pin is refused, each task held to its own" |
| FR-01-04 | Self-test | `report.py` "a scorable trial recording no spec is refused"<br>`report.py` "a scorable trial recording no prompt is refused" |
| FR-01-05 | Self-test | `harness.py` "a spec edited mid-run refuses the next trial unbuilt"<br>`harness.py` "a spec changed as it is copied refuses the trial and frees its slot"<br>`harness.py` "a round-5 run on other content is refused"<br>`harness.py` "round 6's registered digest is SPEC.md's content, and round 5's is another" |
| FR-01-06 | Self-test | `report.py` "a trial start with no UTC offset is refused" |
Expand Down Expand Up @@ -199,6 +199,16 @@ when:
| FR-13-08 | Self-test | `generate_arm.py` "a built file naming a tool is refused" |
| FR-13-09 | Self-test | `report.py` "with no --out-dir it lands in this repository's docs/reports/, needing the stamp but no templates source" |
| FR-13-10 | Self-test | `generate_arm.py` "every committed arm is what the script builds at its recorded ref, byte for byte, the same twice" |
| FR-13-11 | Self-test | `harness.py` "C1 pins SPEC.md, both prompts and its fixtures by content"<br>`harness.py` "an unknown round is refused"<br>`harness.py` "an arm the round does not register is refused"<br>`harness.py` "a K past the round's registered K is refused"<br>`harness.py` "a C1 run reads its spec from its entry, not its arms' names"<br>`harness.py` "a build or change prompt the round does not pin is refused" |
| FR-13-12 | Self-test | `harness.py` "every trial record of a named round names its round, task, arm and block"<br>`harness.py` "a named round's run record names its round, registration and fixtures"<br>`harness.py` "a root holding another round's or registration's runs is refused"<br>`harness.py` "a named round and records naming none never share a root"<br>`harness.py` "a named round's trial record missing its identity is refused"<br>`harness.py` "a named round's run refuses a root whose records name none"<br>`harness.py` "recovery keeps a named round's identity in its run record"<br>`harness.py` "a run whose trials name a round under a header naming none is refused" |
| FR-13-13 | Self-test | `report.py` "a run its records name C1 does not read as a pilot round"<br>`report.py` "a root mixing a named round's records with others is refused"<br>`report.py` "a named round's record missing its identity is refused, not read as the pilot's"<br>`report.py` "a run whose trials name a round under a header naming none is refused, not read as the pilot's" |
| FR-13-14 | Self-test | `harness.py` "a round of two tasks is complete only with both at K for every arm"<br>`harness.py` "a change task counts though its arm's build trial failed"<br>`report.py` "a C1 round owes a block until both tasks are in for every arm"<br>`report.py` "a C1 block whose builds stand only as change tasks is still owed" |
| FR-13-15 | Self-test | `harness.py` "an empty fixture manifest refuses a named round's change task"<br>`harness.py` "a fixture listed without its baseline readings is refused"<br>`harness.py` "a fixture whose tarball differs from its listed hash is refused, at the start and at each trial"<br>`harness.py` "block b starts from the b-th qualifying build, ascending, cycling"<br>`harness.py` "a named round's change run records how many distinct fixtures its blocks take"<br>`harness.py` "a named round's change task needs no build trial of its arm"<br>`harness.py` "a change run whose manifest or block mapping differs from the root's earlier change runs is refused" |
| FR-13-16 | Self-test | `harness.py` "a change workspace keeps its fixture's code and tests"<br>`harness.py` "a change workspace drops the fixture's instructions, settings, databases, caches, environments and history"<br>`harness.py` "a change workspace carries the round's spec and only its arm's context"<br>`harness.py` "a change workspace starts from one commit, with nothing uncommitted"<br>`harness.py` "every arm's change workspace of a block holds the same code"<br>`harness.py` "a change trial may neither read nor name its fixtures' directory"<br>`harness.py` "a fixture's links stay where what they name stays"<br>`harness.py` "a fixture linking outside what its change tasks keep is unusable, at the start and at a trial"<br>`report.py` "a call into the fixtures' directory its record fences off is flagged on the re-scan" |
| FR-13-17 | Self-test | `report.py` "a named round's change task with no build score is read on its own"<br>`report.py` "a reached build of a named round keeps its change reading, and a reached change task goes alone"<br>`report.py` "a change task standing alone counts on its ISO axes, not as a broken build"<br>`report.py` "a change task standing alone reads no build Python"<br>`report.py` "a named round's change result reads the same whether its build is unscored, working or broken" |
| FR-13-18 | Self-test | `reuse.py` "a named round's trials copied on keep its round in the run record's header"<br>`reuse.py` "a reuse never mixes a named round's trials with others"<br>`reuse.py` "a trial copied within a named round names that round in its origin"<br>`report.py` "trials reused within one named round pair with those run there" |
| FR-13-19 | Self-test | `report.py` "a named round is refused until its registration document is on main before its first trial"<br>`report.py` "a trial reused within its named round counts toward when the round began" |
| FR-13-20 | Self-test | `archive.py` "a C1 change task's score changed in the archive fails the verify" |
| FR-13-21 | Self-test | `reuse.py` "the readings are filed under the word and name their origin"<br>`reuse.py` "a quality reading comes along with its trial"<br>`reuse.py` "the judgings keep their labels and the map is theirs alone" |

## 14 One run at a time
Expand Down
11 changes: 11 additions & 0 deletions docs/journeys/run/run-a-round.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,24 @@ round running overnight. A trial that was blocked is handled in
runs it after the build trials with `--task change`, and scores it with
`score.py --task change`.

From round 6 a run names its round, as `--round C1`, and the harness holds it
to that round's registration: its arms, its K, its spec and both prompts. Its
change task starts from the fixtures in `change-fixtures.json`, not from the
arm's own build, so it runs with `--fixtures <the directory of their
tarballs>` and needs no build trial first. The run prints what each task
still owes; the round is complete with both tasks at K for every arm.
Its registration, `docs/rounds/round-c1.md` for C1, lands on `main` before
the first trial, or the report refuses the round.

## Commands

```bash
py tests/efficacy/harness.py --self-test --templates <the templates clone>
py tests/efficacy/harness.py --root <run root> --arms none,inline,hybrid,reference,skills --k 15 --model claude-sonnet-5 --dry-run
py tests/efficacy/harness.py --root <run root> --arms none,inline,hybrid,reference,skills --k 15 --model claude-sonnet-5
py tests/efficacy/score.py --root <run root>
py tests/efficacy/harness.py --root <run root> --round C1 --k 15 --model claude-sonnet-5
py tests/efficacy/harness.py --root <run root> --round C1 --task change --fixtures <fixture tarballs> --k 15 --model claude-sonnet-5
```

## Findings
Expand Down
16 changes: 14 additions & 2 deletions docs/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,17 @@
- **Arm generator:** `generate_arm.py`, which writes a generated arm's file.
- **Control builder:** `control/control.py`, which builds the judge's
control trees.
- **Reuse:** `reuse.py`, which brings an earlier round's trials into a
run root.
- **Owner:** a working practice no script carries out.

### 01 Registration

| ID | Requirement | Delivered by |
| -- | ----------- | ------------ |
| FR-01-01 | The benchmark shall refuse, from round 5, a round whose registration landed on `main` after its first trial started, a merge counting at the merge. | Report |
| FR-01-01 | The benchmark shall refuse, from round 5, a round whose registration landed on `main` after its first trial started, a merge counting at the merge; `main` read as the local branch, else as `origin/main`, and a clone holding neither refused with its reason. | Report |
| FR-01-02 | The benchmark shall refuse a registration that differs from `main`'s copy or has changes not committed. | Report |
| FR-01-03 | The benchmark shall refuse a trial built from a spec or prompt other than the ones its round registers, compared by content. | Report |
| FR-01-03 | The benchmark shall refuse a trial built from a spec or prompt other than the ones its round registers, compared by content; a named round's trials each against its entry's spec and the prompt pinned for their task. | Report |
| FR-01-04 | The benchmark shall refuse a trial with something to score that records no spec or no prompt. | Report |
| FR-01-05 | The benchmark shall check the spec before every trial, and refuse unbuilt the trials after an edit made mid-run. | Harness |
| FR-01-06 | The benchmark shall record each trial's start with its UTC offset, and refuse a start with none. | Harness, Report |
Expand Down Expand Up @@ -210,6 +212,16 @@
| FR-13-08 | The benchmark shall refuse a built arm file that names a tool. | Arm generator |
| FR-13-09 | The benchmark shall write a round's report, by default, to its own `docs/reports/`, with no templates source named. | Report |
| FR-13-10 | The benchmark shall build every arm a round runs by script, with no model call, and fail its self-test where a committed arm differs from what the script builds at the arm's recorded ref. | Arm generator |
| FR-13-11 | From round 6 the benchmark shall run a round only as `--round` names it, under its registration: refusing a round not registered, an arm it does not register, a K past its K, and a spec, build prompt or change prompt other than the ones it pins by digest. | Harness |
| FR-13-12 | The benchmark shall write a named round and its registration's digest in the run record, and the round, task, arm and block in every trial record, keeping them when a recovery rewrites the record; and refuse a run in a root whose records name another round or digest, or where a named round and records naming none would meet, a header naming no round over trials that name one counting as a named round's record. | Harness |
| FR-13-13 | The benchmark shall read a round from its run records where they name one, refuse records of a named round missing its identity, in a trial or in the header, and infer the round from the arms only for records naming none. | Report |
| FR-13-14 | The benchmark shall call a round of two tasks complete only with both at K for every arm, a change task counting whatever its arm's build trial did. | Harness, Report |
| FR-13-15 | The benchmark shall start every arm's change task of block b of a named round from one fixture, the b-th qualifying build in ascending trial order, cycling when fewer qualify; record the manifest's sha256, each block's fixture and how many distinct fixtures the blocks take; refuse a change run whose manifest or block mapping differs from the root's earlier change runs; and refuse to run while the fixture manifest lists none, lists one without its baseline readings, or names a tarball whose sha256 differs, at the start and at each trial. | Harness |
| FR-13-16 | The benchmark shall derive each change workspace from its fixture's code and tests alone, without its instructions, settings, databases, caches, environments or history, with the round's spec and only the arm's context, in one commit; and fence the fixtures' directory off from the trial, in its deny rules and every scan of its transcripts, the report's re-scan included, a path into it named absolutely, by a fixture archive's name or by a climb to its own name, and refuse a run root inside it, paths compared resolved and, on Windows, in either case; the scan catches a named access only, not a path the shell builds indirectly. Each kept link shall name something the workspace keeps, a fixture holding any other read as unusable, before the run and at a trial. | Harness, Report |
| FR-13-17 | The benchmark shall read a named round's change task whether or not its build trial was scored or left out for a reach, as a trial of its own whose build rows read not measured; count its change targets on their ISO axes whether its build is unscored, working or broken, a broken build gating only the build's own targets; and keep a pilot round's change task with its build. | Report |
| FR-13-18 | The benchmark shall reuse a named round's trials under a run record naming that round and its registration's digest, and never reuse trials into a root of another round, a named round's into a root of none, or another round's into a named round's; name the round and its digest in each reused trial's origin, and pair a trial reused within one named round, under one digest, with the trials run there. | Reuse, Report |
| FR-13-19 | The benchmark shall refuse a named round's report unless the document its registration entry names exists and landed on `main` before the round's first trial, unchanged since, a trial reused within the round counting toward its start. | Report |
| FR-13-20 | The benchmark shall verify an archive by the report's own reading of its round, through one entry point, a named round's change tasks and its reach rule included. | Archive, Report |
| FR-13-21 | The benchmark shall bring a reused trial's score, security and quality readings and judgings into the later round, each naming the trial it came from. | Reuse |

### 14 One run at a time
Expand Down
Loading
Loading