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
2 changes: 1 addition & 1 deletion docs/architecture/01-introduction-and-goals.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ What it is not:
| 05 | Probe security | Reads each trial with 11 security and 3 data-protection probes | [ch. 8.6.8](08-crosscutting-concepts.md) |
| 06 | Judge | Scores each trial blind, three times, on an anchored rubric, and checks every quoted line | [ch. 8.6.6](08-crosscutting-concepts.md), [ch. 8.6.7](08-crosscutting-concepts.md) |
| 07 | Check the judge | Builds damaged and improved trees that a working judge must tell apart | [ch. 8.6.7](08-crosscutting-concepts.md) |
| 08 | Report | Pairs trials, computes intervals and verdicts, owes or refuses the escalation, and prints the report | section 1.4, [ch. 8.7](08-crosscutting-concepts.md) |
| 08 | Report | Pairs trials, computes intervals and verdicts, refuses a run past its registered K, and prints the report | section 1.4, [ch. 8.7](08-crosscutting-concepts.md) |
| 09 | Archive | Copies a round's raw data to a private store, restores it and checks the figures match | [ADR-019](../decisions/019-archive-before-the-report.md) |
| 10 | Reuse | Copies an earlier round's trials into a new run root, with their readings | [ch. 4.2](04-solution-strategy.md) |

Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/02-constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ setting, not a choice the benchmark made. Chapter 9 records the choices.
| - | ---------- | ----------- |
| 1 | One owner runs and reads every round | No step may wait for a person, and no person may score. A person in the loop would leak judgement into an arm |
| 2 | Rules are registered before the trials they govern | A new hypothesis is committed to its round's registration before its first trial. A check chosen afterwards describes and never decides |
| 3 | K is fixed before a round's first trial: at most 5 after one escalation from 3, or 15 in round 5 | Sampling until an interval clears zero is not possible |
| 3 | K is fixed before a round's first trial, 15 from round 5, and no run goes past it | Sampling until an interval clears zero is not possible |
| 4 | `ledger`, a second app, stays sealed | Every round so far measures `tariff`, the development app |
| 5 | The templates live in another repository | Every run names a templates source with `--templates` or `BENCHMARK_TEMPLATES`, and reports land in that source's `docs/audits/` |

Expand Down
5 changes: 2 additions & 3 deletions docs/architecture/05-building-block-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependency with its keyword.
| `security.py` | Seeds each app, signs in its administrator, runs the 11 security and 3 data-protection probes | The scored trees | `security-scores/` |
| `judge.py` | Builds a blind bundle per trial, runs the judge CLI against the rubric, checks every quoted line | The scored trees | `judge/` |
| `control/control.py` | Builds the rubric control: trees damaged or improved on one row each, from two pinned bases | `base.zip`, `base-2.zip`, `overlay/` | A control root for `judge.py` |
| `report.py` | Pairs trials, computes intervals, verdicts and the escalation, applies withdrawals, prints the report | The run root, the scoring area, `withdrawn.json` | `docs/audits/YYYY-MM-DD-efficacy.md` in the templates source |
| `report.py` | Pairs trials, computes intervals and verdicts, applies withdrawals, prints the report | The run root, the scoring area, `withdrawn.json` | `docs/audits/YYYY-MM-DD-efficacy.md` in the templates source |
| `archive.py` | Copies a round's raw data to the private archive, restores it, recomputes the report's figures from both | The run root, the scoring area | The archive clone, `archived.json` |

## 5.2 Inputs
Expand All @@ -48,7 +48,7 @@ harness and `reuse.py`.

| Path | Holds |
| ---- | ----- |
| `<arm>-<block>/` | A trial's pen, such as `full-2/`: everything the trial owns |
| `<arm>-<block>/` | A trial's pen, such as `skills-2/`: everything the trial owns |
| `<arm>-<block>/<arm>-<block>/` | The trial's workspace, inside its pen |
| `<arm>-<block>/tmp/<trial>/` | The trial's own temporary directory, inside its pen |
| `<arm>-<block>.tar` | The frozen workspace, the only copy scoring reads |
Expand Down Expand Up @@ -86,7 +86,6 @@ Every arm starts from an empty git repository holding `SPEC.md`. All but
| Arm | Adds | Budget | Asks |
|---|---|---|---|
| `none` | nothing: the bare agent | — | the baseline every file is compared with |
| `full` | the file the interview generates, inline | none | do the templates help as shipped |
| `short` | one generation from `agents.md`, inline, under a budget | ≤ 40 lines, ≤ 88 characters wide | does a short generated file help |
| `hybrid` | the file the interview generates in its hybrid model, with the templates vendored into the workspace | none | does the model the owner's projects use help |
| `hand` | a hand-written file | ≤ 40 lines | is the effect the templates, or merely having a file |
Expand Down
25 changes: 9 additions & 16 deletions docs/architecture/06-runtime-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ restoring it, then the report.
| 2-3 | The rubric is a JSON Schema, so a score is read by machine. Each primary row has anchors at 1, 3 and 5 in this domain's terms | [ch. 8.6.6](08-crosscutting-concepts.md) |
| 4 | Every quoted line is looked up in its bundle. A judge that never opened the code still returns plausible numbers | [ch. 8.6.7](08-crosscutting-concepts.md) |
| 5 | Run records, tarballs without their environments, transcripts and every reading go to a fresh directory of `braboj/tariff-runs` | [ADR-019](../decisions/019-archive-before-the-report.md) |
| 6-7 | The archive is restored into a temporary root and the report's table, contrasts, withdrawals, escalation, reach scan and lost trials are computed from both. Any difference fails | [ADR-019](../decisions/019-archive-before-the-report.md) |
| 8 | K paired differences per contrast, a 10,000-resample bootstrap interval at a recorded seed, the registered verdict rule, and whether the one escalation to K = 5 is owed | [ch. 8.1](08-crosscutting-concepts.md) |
| 6-7 | The archive is restored into a temporary root and the report's table, contrasts, withdrawals, blocks, reach scan and lost trials are computed from both. Any difference fails | [ADR-019](../decisions/019-archive-before-the-report.md) |
| 8 | K paired differences per contrast, a 10,000-resample bootstrap interval at a recorded seed, the registered verdict rule, and how many of the registered blocks are in | [ch. 8.1](08-crosscutting-concepts.md) |
| 9 | Without the stamp, or once any reading changed since it was written, the report refuses to write under `docs/audits/` | [ADR-019](../decisions/019-archive-before-the-report.md) |
| 10 | The finding table first, then the record behind every cell | [ch. 8.7.3](08-crosscutting-concepts.md) |

Expand Down Expand Up @@ -257,25 +257,18 @@ original time, which the report reads to tell a re-run's sessions from those
of the blocked attempt before it. Scoring and judging then run on it as on
any root, which is how a later round re-reads an earlier one.

### 6.4.3 The escalation in the report
### 6.4.3 The blocks in the report

The report computes the one escalation to K = 5 of a round registered at
K = 3, so nobody decides it by eye. At K = 3 it names the rows that owe it and
the `--k 5 --from` run that settles it, from the trial the rotated order puts
first in block 4. At K = 5 it reads the first three blocks alone, prints their
verdicts beside the K = 5 ones, and flags an escalation no row owed.

Round 5 registers K = 15 and no escalation. Its report says how many of the 15
blocks are in, and calls a run short of them part-run. The harness refuses
`--k` above 5, or above 15 for a run holding a round-5 arm, and the report
refuses a run past it.
A round registers K = 15 and adds no block once results are seen. The report
says how many of the 15 blocks are in, and calls a run short of them part-run,
with none of its verdicts the round's. The harness refuses `--k` above 15, and
the report refuses a run past it.

### 6.4.4 Reusing an earlier round's trials

`reuse.py` copies what the report reads for each trial from an earlier root:
its run record, tarball, transcripts, score, judgings and security reading,
marked with where they came from. The earlier round's tool lock comes along,
so both rounds are measured with one ruler. Nothing copied is measured again
unless a tool is given `--rescore`, `--rejudge` or `--reread`. Round 2 reused
round 1's `full` and `hand`. Later rounds reuse nothing, because the spec and
the judge changed.
unless a tool is given `--rescore`, `--rejudge` or `--reread`. Round 5d
reuses round 5c's trials, re-scored with it on one hidden suite.
22 changes: 11 additions & 11 deletions docs/architecture/08-crosscutting-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ The margins:
| 5 | Round 5 holds adherence to one item | 8 pp, one checklist item of 13, as [its registration](../rounds/round-5.md) states | FR-02-05 |
| 6 | Few blocks describe | Below K = 6, every interval is called descriptive | FR-02-09 |

### 8.1.3 Trial count and escalation
### 8.1.3 Trial count

A round fixes K, the number of blocks, before its first trial.

Expand All @@ -89,18 +89,15 @@ A round fixes K, the number of blocks, before its first trial.
arrangement of three reaches conventional significance. Three trials
describe; they do not prove.
- Sampling until an interval clears zero is the failure the bound on K
prevents.

![A round registered at K = 3 runs three blocks. If an escalation is owed it runs blocks 4 and 5 once and reports K = 3 and K = 5 side by side; otherwise it reports at K = 3. A round registered at a larger K, such as 15, runs K blocks and reports the round if all ran, and is part-run with no verdict of its own if not](../diagrams/escalation.png)
prevents. Rounds 1 to 4 were registered at K = 3 with one bounded
escalation to 5; they are retired, and their escalation with them.

**Rules**

| # | Rule | In practice | Requirement |
| - | ---- | ----------- | ----------- |
| 1 | One escalation, under fixed conditions | Owed where a primary's interval contains zero while its mean exceeds the smallest change that matters, in any contrast and either direction; the report computes it | FR-03-01 |
| 2 | Never past K = 5 by escalation | Two more blocks, once; a row still open is reported inconclusive | FR-03-02, FR-03-03 |
| 3 | Or a larger K, sized beforehand | From earlier rounds' per-trial noise; no block added once results are seen. Round 5 registers K = 15 ([13.5](../rounds/round-5.md)) | FR-03-04 |
| 4 | A short run decides nothing | A run short of its K is part-run, and none of its verdicts is the round's | FR-03-05 |
| 1 | K is sized beforehand | From earlier rounds' per-trial noise; no block added once results are seen. Round 5 registers K = 15 ([13.5](../rounds/round-5.md)) | FR-03-04 |
| 2 | A short run decides nothing | A run short of its K is part-run, and none of its verdicts is the round's | FR-03-05 |

### 8.1.4 Failed and lost trials

Expand Down Expand Up @@ -617,9 +614,12 @@ it, or the bar would move with the results.
| # | Rule | In practice | Requirement |
| - | ---- | ----------- | ----------- |
| 1 | Declared before it is read | In writing, with its direction, before any trial is read for it | — |
| 2 | Printed apart | Its own section, with means and intervals and no verdict | FR-12-08 |
| 3 | Never decides | Never in the verdict vector, a "nothing got worse" claim, or the escalation | FR-12-08 |
| 4 | Fixed for next time | A check worth deciding on is registered before the next run | — |
| 2 | Never decides | Never in the verdict vector or a "nothing got worse" claim | — |
| 3 | Fixed for next time | A check worth deciding on is registered before the next run | — |

Rounds 1 and 2 read their security checks this way, in a section of their own
with no verdict. From round 3 every check is a probe declared before the run,
so no report prints such a section.

### 8.7.5 Withdrawn metrics and re-scores

Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/09-architecture-decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ report shows first.

| Record | Decision | Status |
| ------ | -------- | ------ |
| [ADR-003](../decisions/003-k-blocks-and-escalation.md) | A round fixes K before its first trial, 15 from round 5 with no escalation; a round at K = 3 escalates at most to 5 | Accepted |
| [ADR-003](../decisions/003-k-blocks-and-escalation.md) | A round fixes K before its first trial, 15 from round 5, and no run goes past it; the escalation of rounds registered at K = 3 retired with them | Accepted |
| [ADR-013](../decisions/013-what-the-report-opens-with.md) | The report opens with the finding table, and keeps the score table only for contrasts between two files | Accepted |
| [ADR-015](../decisions/015-contrasts-and-verdicts.md) | A contrast gets a verdict only when both its arms run in the same round | Accepted |

Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/11-risks-and-technical-debt.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Each risk names what holds it today.

| # | Risk | Held by | Open |
| - | ---- | ------- | ---- |
| 1 | Three trials cannot reach significance: 27 distinct resamples, a minimum two-sided p of 0.25 | Below K = 6 every interval is printed as descriptive. Round 5 registers K = 15, sized from rounds 3 and 4's noise | Round 4's escalations are owed and not run. Round 3's cannot run, its raw data lost |
| 1 | Three trials cannot reach significance: 27 distinct resamples, a minimum two-sided p of 0.25 | Below K = 6 every interval is printed as descriptive. Round 5 registers K = 15, sized from rounds 3 and 4's noise | Rounds 1 to 4, registered at K = 3, are retired; the benchmark proper starts with round 6 |
| 2 | One app: every effect may be `tariff`'s | `ledger` stays sealed for the final claim | No second app has run |
| 3 | One builder agent | | Another agent reading `AGENTS.md` is untested |
| 4 | A judge that shares a vendor with the builder may favour the templates' own style | From round 5 the judge is `gpt-6-astra`, another vendor's model than every builder | |
Expand Down
5 changes: 2 additions & 3 deletions docs/architecture/12-glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ under [`docs/rounds/`](../rounds/).
| Churn | The files touched and lines changed by the change task, counted from the commit of the copy |
| Consistency | How alike an arm's runs come out: the spread of each meter across them, and conventions agreement, the share of checklist items on which every run gives the same verdict |
| Context file | A `CLAUDE.md` the agent reads at the start of a session: project facts and house rules |
| Contrast | Two arms compared within each block, such as `full − none`. K paired differences, one interval, one verdict per metric |
| Contrast | Two arms compared within each block, such as `skills − none`. K paired differences, one interval, one verdict per metric |
| Control fixture | Trees built from two pinned applications, each damaged or improved on one judge row and each passing the same tests. A primary row counts only if it falls on the damaged trees and rises on the improved |
| Cross-check judge | `gpt-6-astra` through `codex exec`, reading a sample of whole blocks. Its scores are never averaged with the rounds' judge. It withholds a verdict only where the two read opposite directions. Dropped from round 5 |
| Data-protection probes | Three checks on personal data: a customer's email in the logs, an erased customer still in the database file, one customer's export carrying another's data |
| Escalation | The one step from K = 3 to K = 5, owed when a primary's interval contains zero while its mean exceeds the smallest change that matters. Round 5, which registers K = 15, has none |
| Evidence check | Each line the judge quotes, looked up in the bundle it was quoted from. The report prints the share found |
| Freeze | Saving a workspace as a tarball and its commit hash, before anything reads it |
| Generator | The non-interactive invocation that turns the brief and a chain into an arm's file. Nobody answers its questions |
Expand All @@ -33,7 +32,7 @@ under [`docs/rounds/`](../rounds/).
| Hybrid model | A context file that copies in the rules whose breaking is silent and no tool enforces, and names the rest, with the templates vendored beside it |
| Inline model | A context file that copies every adopted rule in |
| Judge | The model that scores a blind bundle 1 to 5 per rubric row, with a quoted line as evidence. From round 5 it is `gpt-6-astra` through `codex exec` at effort `high`. Rounds 3 and 4 used `claude-opus-5-5` |
| K | The number of blocks, so the trials per arm, fixed by each round before its first trial: 15 in round 5. A round registered at K = 3 escalates at most to 5 |
| K | The number of blocks, so the trials per arm, fixed by each round before its first trial: 15 in round 5. No run goes past it |
| Likely range | The primer's plain name for the bootstrap interval: where the average difference would land if the runs were redone |
| Lost probe | A probe the trial kept from running, such as one that needs a sign-in the app refuses. It fails, never drops out of the rate |
| Lost trial | A trial the provider ended rather than the agent, recorded as blocked. Re-run once in its place. A second loss stops the run |
Expand Down
Loading
Loading