From 4de7fe5b7a516d9bb1e6dd0031d7cfe3a00de56f Mon Sep 17 00:00:00 2001 From: Branimir Georgiev <66906831+braboj@users.noreply.github.com> Date: Wed, 28 Oct 2026 10:13:38 +0200 Subject: [PATCH] docs(arc42): run a template change's baseline head to head in its round (#18) - Ch. 4.2: the baseline and the candidate run in the candidate's round, one contrast, candidate - baseline, no none arm; round 3 stays a reference without a verdict - Ch. 8.7.1, ch. 1, ch. 10 Q5-4 and the decision log follow - The journeys settle the findings #6, #14, #17 and #18 closed Closes #18 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX --- docs/architecture/01-introduction-and-goals.md | 2 +- docs/architecture/04-solution-strategy.md | 12 ++++++++++-- docs/architecture/08-crosscutting-concepts.md | 4 ++++ docs/architecture/09-architecture-decisions.md | 1 + docs/architecture/10-quality-requirements.md | 2 +- docs/journeys/check/archive-and-report.md | 2 +- docs/journeys/check/check-the-judge.md | 2 +- docs/journeys/index.md | 7 +------ docs/journeys/read/measure-a-template-change.md | 6 +++--- docs/journeys/read/read-a-report.md | 2 +- 10 files changed, 24 insertions(+), 16 deletions(-) diff --git a/docs/architecture/01-introduction-and-goals.md b/docs/architecture/01-introduction-and-goals.md index ceaed21..3ddb7ac 100644 --- a/docs/architecture/01-introduction-and-goals.md +++ b/docs/architecture/01-introduction-and-goals.md @@ -68,7 +68,7 @@ gives each its scenarios. | Role | Wants from the benchmark | | ---- | ------------------------ | | Owner of the templates | Evidence for or against each design choice, such as ADR-052 and ADR-058 in `solid-ai-templates` | -| Maintainer of a fork | A way to measure a trimmed or rewritten chain against the upstream baseline ([ch. 4.2](04-solution-strategy.md)) | +| Maintainer of a fork | A way to measure a trimmed or rewritten chain against the upstream baseline, head to head in one round ([ch. 4.2](04-solution-strategy.md)) | | Adopter of the templates | A plain answer: will a generated file make my agent's code better, and what will it cost | | Operator of a round | Commands that refuse a bad run before it costs money, and resume after an interruption | | Reader of a report | Verdicts that say what they rest on, with their caveats beside them | diff --git a/docs/architecture/04-solution-strategy.md b/docs/architecture/04-solution-strategy.md index d12310f..31fe69b 100644 --- a/docs/architecture/04-solution-strategy.md +++ b/docs/architecture/04-solution-strategy.md @@ -33,8 +33,16 @@ The same harness measures a template change. The **baseline** is the current templates; the **candidate** is the trimmed or rewritten version. Same paired design, same rules. -Round 3 is that baseline for v3.0: v3.0's evidence phase re-runs this -harness with the fork's chain and compares against it. +**Both run in the candidate's own round, head to head.** The round holds two +arms, the baseline's and the candidate's, each generated from its own chain +and interleaved by block. It registers one contrast, +`candidate − baseline`, and no `none` arm, since the question is the +candidate against the baseline, not either against no file. + +Why: a contrast pairing trials from different rounds gets no verdict ([ch. +8.7.1](08-crosscutting-concepts.md)), so a baseline from an earlier round +could only describe. Paired by block, the two arms meet the same model on +the same day. Round 3 stays a reference for v3.0, read without a verdict. **A trim is a free win only where every quality metric held ([ch. 8.1.2](08-crosscutting-concepts.md)) and tokens fell.** diff --git a/docs/architecture/08-crosscutting-concepts.md b/docs/architecture/08-crosscutting-concepts.md index ccce6be..878bcd9 100644 --- a/docs/architecture/08-crosscutting-concepts.md +++ b/docs/architecture/08-crosscutting-concepts.md @@ -577,6 +577,10 @@ registers. Round 5's: | `reference − hybrid` | H3: does naming the templates alone deliver less | | `skills − inline` | the same rules, with and without the split into skills | +A round that measures a template change registers one contrast, +`candidate − baseline`, with both arms run in that round +([ch. 4.2](04-solution-strategy.md)). + Earlier rounds' contrasts stay declared in `report.py`, so an earlier round re-reads as it was reported. diff --git a/docs/architecture/09-architecture-decisions.md b/docs/architecture/09-architecture-decisions.md index ce0e3d0..65c5514 100644 --- a/docs/architecture/09-architecture-decisions.md +++ b/docs/architecture/09-architecture-decisions.md @@ -61,6 +61,7 @@ that mentions the design means the document these chapters replaced. | 2026-10-27 | Round 5 is judged by `gpt-6-astra` through `codex exec` at effort `high` alone, three times per trial, with no cross-check | The owner's OpenAI plan is raised to cover a round's judgings. With a judge from another vendor than every round-5 builder, the same-vendor concern the cross-check answered is gone, and a second judge could only withhold verdicts | — | | 2026-10-27 | Each round names its builder models in its registration, and none comes from the vendor of the rounds' judge | The models are a knob a round sets, not a fixed list. A builder from the judge's vendor would bring back the self-preference the cross-check once answered, which no longer runs | — | | 2026-10-27 | Round 5 runs block A alone, at K = 15 with no escalation, each block starting one arm later; adherence is held within 8 pp, and H2 reads the mean over pairs of trials. Blocks B and C wait for a later round | The report's rules, run on round 3's per-trial noise, decide almost nothing at K = 3: H1 is supported in 29 % of rounds when true, and a chance "worse" turns up in 36 %. At K = 15 those are 73 % and 12 %. On round 4's noise, B and C would contradict block A by chance at any affordable K | — | +| 2026-10-28 | A template change runs the baseline and the candidate head to head in the candidate's round, with one contrast, `candidate − baseline`, and no `none` arm; round 3 stays a reference without a verdict | A contrast pairing trials from different rounds gets no verdict, so round 3 as the baseline could decide nothing. Two arms answer "is the trim free" at the least cost | — | ¹ This agrees with Anthropic's guidance on context engineering, which asks for the smallest set of high-signal tokens: [Effective context engineering for AI diff --git a/docs/architecture/10-quality-requirements.md b/docs/architecture/10-quality-requirements.md index 75ce370..3e1efed 100644 --- a/docs/architecture/10-quality-requirements.md +++ b/docs/architecture/10-quality-requirements.md @@ -49,7 +49,7 @@ checks it. | Q5-1 | The run root is deleted after a round | The archive restores it, and scoring and judging run on the restored root | `archive.py --restore` | | Q5-2 | A reading changes after the archive was verified | The report refuses to write under `docs/audits/` | `archive.py`, `report.py` | | Q5-3 | A run stops part way | The run record holds every trial it finished, and `--from` resumes at the next | `harness.py` | -| Q5-4 | A later template revision is to be measured | The same harness runs it as a candidate against the recorded baseline | Design [ch. 4.2](04-solution-strategy.md) | +| Q5-4 | A later template revision is to be measured | The same harness runs it as a candidate against the baseline, both in one round | Design [ch. 4.2](04-solution-strategy.md) | | Q5-5 | A report is aimed at any `docs/audits/` before the round is archived | Refused, in the templates source as anywhere else | `report.py --self-test` | ## 10.6 The numbers behind the rules diff --git a/docs/journeys/check/archive-and-report.md b/docs/journeys/check/archive-and-report.md index 6a23c14..f68042a 100644 --- a/docs/journeys/check/archive-and-report.md +++ b/docs/journeys/check/archive-and-report.md @@ -41,4 +41,4 @@ py tests/efficacy/report.py --root --templates | - | ------- | ------ | | 1 | Round 3's run root and scoring area were deleted with nothing kept, so none of its readings can be re-run. Rounds are now archived before they are reported | Settled in [chapter 9](../../architecture/09-architecture-decisions.md), 2026-10-15 | | 2 | A file over 50 MB is refused, because a push would be | Settled in [ch. 6.4.2](../../architecture/06-runtime-view.md) | -| 3 | The report lands in another repository, so this one holds no results | Open, #17, see [Read a report](../read/read-a-report.md) | +| 3 | The report lands in another repository, so this one holds no results | Settled: [the rounds index](../../rounds/README.md#reports) links every report | diff --git a/docs/journeys/check/check-the-judge.md b/docs/journeys/check/check-the-judge.md index 87f7dd7..b11a250 100644 --- a/docs/journeys/check/check-the-judge.md +++ b/docs/journeys/check/check-the-judge.md @@ -39,7 +39,7 @@ py tests/efficacy/judge.py --root C:/efficacy/control- --repeat 3 | # | Finding | Status | | - | ------- | ------ | -| 1 | No CI runs the control's self test. This repository has had no CI since the split from the templates | Open, #6 | +| 1 | No CI ran the control's self test after the split from the templates. The self-tests workflow now runs it on every push and pull request | Settled in `.github/workflows/self-tests.yml` | | 2 | A mutation that silently did nothing would read as the judge holding. The builder refuses any mutation that did not land | Settled in [ch. 8.6.7](../../architecture/08-crosscutting-concepts.md) | | 3 | The cross-check judge reads the same trees in a root of its own, never averaged with the rounds' judge | Settled in [ch. 8.6.7](../../architecture/08-crosscutting-concepts.md) | | 4 | The security and data-protection rows cannot move on the first base, which has no sign-in. Their trees come from a second base, one uncounted calibration trial | Settled in [ch. 8.6.7](../../architecture/08-crosscutting-concepts.md) | diff --git a/docs/journeys/index.md b/docs/journeys/index.md index afd9122..273de21 100644 --- a/docs/journeys/index.md +++ b/docs/journeys/index.md @@ -43,12 +43,7 @@ from, or estimated. ## Open findings -| Finding | Journey | Issue | -| ------- | ------- | ----- | -| Nothing checks that a hypothesis was committed before its round's first trial | [Register a hypothesis](prepare/register-a-hypothesis.md) | #14 | -| No CI runs the self tests | [Check the judge](check/check-the-judge.md) | #6 | -| No index of reports in this repository | [Read a report](read/read-a-report.md) | #17 | -| A candidate compared with an earlier round's baseline gets no verdict | [Measure a template change](read/measure-a-template-change.md) | #18 | +None. A finding that needs work gets an issue and a row here. ## Adding a journey diff --git a/docs/journeys/read/measure-a-template-change.md b/docs/journeys/read/measure-a-template-change.md index 9086a0e..4c0904b 100644 --- a/docs/journeys/read/measure-a-template-change.md +++ b/docs/journeys/read/measure-a-template-change.md @@ -20,8 +20,8 @@ Assumptions: | # | Who | Step | Time | Notes | | - | --- | ---- | ---- | ----- | -| 1 | Maintainer | Registers the comparison: the upstream chain as baseline, the fork's as candidate | 30 min | [Ch. 4.2](../../architecture/04-solution-strategy.md) | -| 2 | Maintainer | Generates the candidate's arms from the fork's chain | 40 min | [Generate the arms](../prepare/generate-the-arms.md) | +| 1 | Maintainer | Registers the round: the upstream chain's arm as baseline, the fork's as candidate, both run in it, and the contrast `candidate − baseline` | 30 min | [Ch. 4.2](../../architecture/04-solution-strategy.md) | +| 2 | Maintainer | Generates the baseline's arm from the upstream chain and the candidate's from the fork's | 40 min | [Generate the arms](../prepare/generate-the-arms.md) | | 3 | Maintainer | Runs, scores, judges and archives, same K, model and spec | 9 to 14 hours | About $325 | | 4 | Maintainer | Reads each quality meter: free only if every one held and tokens fell | 15 min | Undecided is not enough | | | | Total | about 1.5 working days | | @@ -30,7 +30,7 @@ Assumptions: | # | Finding | Status | | - | ------- | ------ | -| 1 | Design [ch. 4.2](../../architecture/04-solution-strategy.md) names round 3 as the baseline, but [ch. 8.7.1](../../architecture/08-crosscutting-concepts.md) gives a contrast pairing trials from different rounds no verdict. A candidate therefore needs its baseline arms in the same round, which doubles the trials | Open, #18 | +| 1 | Design [ch. 4.2](../../architecture/04-solution-strategy.md) names round 3 as the baseline, but [ch. 8.7.1](../../architecture/08-crosscutting-concepts.md) gives a contrast pairing trials from different rounds no verdict. The baseline and the candidate now run head to head in the candidate's round, with no `none` arm | Settled in [ch. 4.2](../../architecture/04-solution-strategy.md) | | 2 | At K = 3 a metric's interval is often too wide to read held, and the trim is then unproven, not safe | Settled in [ch. 4.2](../../architecture/04-solution-strategy.md) | | 3 | A trim that turns any primary dimension worse is rejected | Settled in [ch. 4.2](../../architecture/04-solution-strategy.md) | | 4 | Tuning against one app overfits to it. `ledger` stays sealed for the final claim | Settled in [ch. 4.2](../../architecture/04-solution-strategy.md) | diff --git a/docs/journeys/read/read-a-report.md b/docs/journeys/read/read-a-report.md index b83589c..400e832 100644 --- a/docs/journeys/read/read-a-report.md +++ b/docs/journeys/read/read-a-report.md @@ -35,6 +35,6 @@ better. With a weaker model, every template file lowered the tests passed. | # | Finding | Status | | - | ------- | ------ | -| 1 | No index of reports in this repository, so a reader must know to look in the templates source | Open, #17 | +| 1 | No index of reports in this repository, so a reader must know to look in the templates source | Settled: [the rounds index](../../rounds/README.md#reports) lists every report | | 2 | Round 4 has a one-page plain summary beside its generated reports. Earlier rounds do not | Open | | 3 | Reports use terms such as "verdict vector" and "no improvement shown" without defining them | Settled in the [glossary](../../architecture/12-glossary.md) and the primer |