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
7 changes: 5 additions & 2 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
// The rules live in .markdownlint.json. The arm files are the generator's
// verbatim output, measured as they came out, and the specifications are
// registered by the hash of their text, so neither is linted or reflowed.
// registered by the hash of their text, so neither is linted or reflowed. A
// round's report is its record as the report script wrote it, so it is kept
// unchanged too.
"ignores": [
"tests/efficacy/arms/**",
"tests/efficacy/SPEC*.md"
"tests/efficacy/SPEC*.md",
"docs/reports/**"
],
// What git ignores, such as the self-test reports, is not the repository's.
"gitignore": true
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ does and how to read its results, with no programming needed.
| `docs/journeys/` | A person walked through each task, with its findings |
| `docs/diagrams/` | Every diagram, as draw.io source beside its PNG |
| `docs/rounds/` | Each round's registration, fixed before its first trial, and [every round's report](docs/rounds/README.md#reports) |
| [The assessment](https://github.com/solid-ai-dev/solid-ai-templates/blob/main/docs/audits/2026-09-27-efficacy-assessment.md) | What rounds 1 to 3 showed, beside the reports in `solid-ai-templates` |
| `docs/reports/` | Every round's dated report, with its appendix, record and radars |
| [The assessment](docs/reports/2026-09-27-efficacy-assessment.md) | What rounds 1 to 3 showed, beside their reports |
| `tests/efficacy/` | The harness, scorer, judge and report |
| `tests/lib.py` | Shared helpers the harness imports |

Expand Down Expand Up @@ -56,8 +57,7 @@ Moved here with its history from `Imbra-Ltd/imbra-ai-templates`
- Build the arms with the templates' generation tool, not the interview
- Run every arm fresh, and report the spread beside the mean

Results are reported in the templates repository, under `docs/audits/`,
and [listed here by round](docs/rounds/README.md#reports).
Results are reported in this repository, under `docs/reports/`, and [listed here by round](docs/rounds/README.md#reports).

## License

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 @@ -26,7 +26,7 @@ setting, not a choice the benchmark made. Chapter 9 records the choices.
| 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, 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/` |
| 5 | The templates live in another repository | Every run names a templates source with `--templates` or `BENCHMARK_TEMPLATES`. Reports stay in this repository, under `docs/reports/` |

## 2.3 Conventions

Expand Down
6 changes: 3 additions & 3 deletions docs/architecture/03-context-and-scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ side, what crosses it, and over which channel.

## 3.1 Business context

![The benchmark as one box with its neighbours. The owner gives it settings, and report readers get reports from it. It exchanges builds with Claude Code and judgings with the Codex CLI, and exchanges packages with the Python package index. Templates come in from the templates source and reports go back to it. The hidden suite gives it acceptance tests, and it sends archived rounds to the runs archive](../diagrams/context.png)
![The benchmark as one box with its neighbours. The owner gives it settings, and report readers get reports from it. It exchanges builds with Claude Code and judgings with the Codex CLI, and exchanges packages with the Python package index. Templates come in from the templates source. The hidden suite gives it acceptance tests, and it sends archived rounds to the runs archive](../diagrams/context.png)

| Neighbour | Gives the benchmark | Gets from the benchmark |
| --------- | ------------------- | ----------------------- |
Expand All @@ -15,7 +15,7 @@ side, what crosses it, and over which channel.
| Claude Code | Builds and generated files | Workspaces and prompts |
| Codex CLI | Judgings, from round 5 | Blind bundles to judge |
| Python package index | The packages every app and every tool installs | Nothing |
| Templates source | The templates, the chain and the release an arm is built from | Reports under its `docs/audits/` |
| Templates source | The templates, the chain and the release an arm is built from | Nothing |
| Hidden suite | Acceptance tests and the change suite, at scoring only | Nothing |
| Runs archive | A restored round, for a re-read | Each round's raw data |

Expand All @@ -41,7 +41,7 @@ The channel to each neighbour, and who opens it.
| Package installs | Trials, scoring, tools and PyPI | `pip` over HTTPS, the tools from `tool-lock.txt` | The trial or the scorer |
| Templates | Every script and the templates source | A local git clone, named by `--templates` | The operator |
| Archive | `archive.py` and `braboj/tariff-runs` | Files written into a local clone, pushed by the operator | The operator |
| Report | `report.py` and the templates source | A Markdown file under `docs/audits/` | The report script |
| Report | `report.py` and this repository | A Markdown file under `docs/reports/` | The report script |

## 3.3 The app under test

Expand Down
4 changes: 2 additions & 2 deletions docs/architecture/05-building-block-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependency with its keyword.

## 5.1 Overview

![The benchmark's building blocks. The running group, generate_arm.py, harness.py and reuse.py, reads the inputs: the specs, the brief, the change prompt, the arms' files, the scoring requirements, the tool configuration and the withdrawn list. It writes the run root, which holds workspaces, tarballs and run records. The scoring group, score.py with probes.py, security.py and judge.py, reads the run root and writes the scoring area. control.py builds damaged and improved trees for the judge. report.py reads the scoring area, checks the archive's stamp and writes the dated report to docs/audits in the templates source. archive.py copies the scoring area and the run root and pushes them to braboj/tariff-runs](../diagrams/building-blocks.png)
![The benchmark's building blocks. The running group, generate_arm.py, harness.py and reuse.py, reads the inputs: the specs, the brief, the change prompt, the arms' files, the scoring requirements, the tool configuration and the withdrawn list. It writes the run root, which holds workspaces, tarballs and run records. The scoring group, score.py with probes.py, security.py and judge.py, reads the run root and writes the scoring area. control.py builds damaged and improved trees for the judge. report.py reads the scoring area, checks the archive's stamp and writes the dated report to docs/reports in this repository. archive.py copies the scoring area and the run root and pushes them to braboj/tariff-runs](../diagrams/building-blocks.png)

| Block | Responsibility | Reads | Writes |
| ----- | -------------- | ----- | ------ |
Expand All @@ -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 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 |
| `report.py` | Pairs trials, computes intervals and verdicts, applies withdrawals, prints the report | The run root, the scoring area, `withdrawn.json` | `docs/reports/YYYY-MM-DD-efficacy.md` in this repository |
| `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 Down
4 changes: 2 additions & 2 deletions docs/architecture/06-runtime-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ the scoring area.
Three blind readings per trial, then an archive that is verified by
restoring it, then the report.

![Judging, archiving and reporting. For each trial, until it holds three readings, judge.py builds a blind bundle by stripping the context file, masking markers and shuffling, sends the rubric schema and the bundle to the judge CLI, gets scores from 1 to 5 with quoted lines, and looks up every quote. Then archive.py writes the records, tarballs and readings to tariff-runs, restores them, recomputes and compares the figures, and writes the archived.json stamp. report.py computes pairs, intervals and verdicts, checks the stamp and writes the dated report to docs/audits](../diagrams/runtime-report.png)
![Judging, archiving and reporting. For each trial, until it holds three readings, judge.py builds a blind bundle by stripping the context file, masking markers and shuffling, sends the rubric schema and the bundle to the judge CLI, gets scores from 1 to 5 with quoted lines, and looks up every quote. Then archive.py writes the records, tarballs and readings to tariff-runs, restores them, recomputes and compares the figures, and writes the archived.json stamp. report.py computes pairs, intervals and verdicts, checks the stamp and writes the dated report to docs/reports](../diagrams/runtime-report.png)

| Step | What happens | See |
| ---- | ------------ | ------ |
Expand All @@ -209,7 +209,7 @@ restoring it, then the report.
| 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, 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) |
| 9 | Without the stamp, or once any reading changed since it was written, the report refuses to write under `docs/reports/` | [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) |

### 6.4.1 Judging notes
Expand Down
4 changes: 2 additions & 2 deletions docs/architecture/07-deployment-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ with its protocol.
| Playwright browser | The browser scoring installs | The suite's browser flows and the accessibility probe | Scoring installs one, and refuses the trial where it cannot |
| Run root | A directory outside this repository, such as `C:/efficacy/2026-10-27-round-5` | Every trial | The harness refuses a root inside the repository |
| Scoring area | `<run root>-scoring`, beside the root | Every score, reading and judging | |
| Templates clone | A git working copy of `solid-ai-templates` or a fork, named by `--templates` | Generating arms, vendoring templates, writing reports | Every run refuses |
| Archive clone | A working copy of `braboj/tariff-runs` | Archiving a round before its report | The report refuses to write under `docs/audits/` |
| Templates clone | A git working copy of `solid-ai-templates` or a fork, named by `--templates` | Generating arms, vendoring templates | Every run refuses |
| Archive clone | A working copy of `braboj/tariff-runs` | Archiving a round before its report | The report refuses to write under `docs/reports/` |

A missing piece shows up as a refusal or a missing metric, not a crash.
`score.py --no-web` skips both browser-side probes and installs no browser.
Expand Down
4 changes: 2 additions & 2 deletions docs/architecture/08-crosscutting-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ The decision is ADR-015.

### 8.7.3 Report documents

A round writes three documents to `docs/audits/`, one per reader, plus the
A round writes three documents to `docs/reports/`, one per reader, plus the
radar's two images (FR-12-05):

| File | Reader | Holds |
Expand Down Expand Up @@ -691,7 +691,7 @@ traced to its inputs and re-run.
| Judge | Each judging with its model, effort and seed |
| Archive | All of the above, in the private archive with a hash per file (FR-13-03) |

The report refuses to write under `docs/audits/` once any reading changed
The report refuses to write under `docs/reports/` once any reading changed
since the archive was verified (FR-13-04). The decision is ADR-019.

## 8.9 Concurrent runs
Expand Down
1 change: 1 addition & 0 deletions docs/architecture/09-architecture-decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ kept.
| [ADR-020](../decisions/020-trial-isolation.md) | A trial is fenced by deny rules and excluded by its transcript, in a pen of its own; a reach voids it | Accepted |
| [ADR-021](../decisions/021-rescore-after-an-instrument-fault.md) | An instrument fault is fixed, validated and every reading round re-scored in full, its report replaced with a dated note keeping the old verdicts | Accepted |
| [ADR-022](../decisions/022-round-names.md) | From round 6 a round is named by the knob it turns, `C`, `S`, `M` or `T`, and the count of rounds of that knob, as `C1`; trials keep their names | Accepted |
| [ADR-025](../decisions/025-where-a-report-is-kept.md) | A round's report is kept in this repository, under `docs/reports/`, and the stamp guard protects that folder | Accepted |

## 9.6 Decisions about the templates

Expand Down
4 changes: 2 additions & 2 deletions docs/architecture/12-glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ under [`docs/rounds/`](../rounds/).
| Reach | A tool call in a trial's transcript that names this repository, the hidden suite, the scoring area or another trial. A reached trial is voided and re-run once |
| Reference model | A context file that only names the templates to read. Round 5's `reference` arm tests it |
| Registered | Committed to a round's registration before the first trial it governs. Only a registered check can decide |
| Round | One run of the experiment under one set of rules, reported once under `docs/audits/` |
| Round | One run of the experiment under one set of rules, reported once under `docs/reports/` |
| Rubric | The judge's rows: SRP, OCP, LSP, ISP, DIP, naming and abstraction, error design, readability, maintainability, test quality, security and data protection. The primaries are anchored at 1, 3 and 5 |
| Run record | `run-*.json` in the run root: every trial an invocation ran, with its outcome, cost, revisions and the environment names removed |
| Run root | The directory a round's trials live in, outside this repository |
Expand All @@ -53,7 +53,7 @@ under [`docs/rounds/`](../rounds/).
| Skills | Round 5's arm: a root file of facts and every-turn rules, a trigger table, and one skill per kind of task, loaded when the task needs it |
| Smallest change that matters | The size of effect a metric must show to count as a real change, such as 0.5 judge points |
| Spec | `SPEC.md`: what the app must do, never how it is engineered. The thin spec keeps the contract and drops the practices |
| Templates source | A git clone of `solid-ai-templates` or a fork, named by `--templates`. The arms are built from it and the reports land in it |
| Templates source | A git clone of `solid-ai-templates` or a fork, named by `--templates`. The arms are built from it |
| Tool lock | `tool-lock.txt`: the scoring tools' versions, frozen from the first trial scored and installed for every other |
| Trial | One agent session on one arm in one block, named `<arm>-<block>`, such as `short-2` |
| Undecided | The primer's word for no improvement shown: the likely range covers zero, so neither better nor worse can be claimed |
Expand Down
5 changes: 3 additions & 2 deletions docs/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ when:
| FR-12-15 | Self-test | `report.py` "the screen drops an arm worse than none on a deciding row, ranks the rest by rows better and then by cost, and keeps four"<br>`report.py` "the screen names the arms round 6 runs"<br>`report.py` "the screen names no arm for round 6 while the run is short of its K"<br>`report.py` "a reused arm short of its K holds the screen as a fresh one does"<br>`report.py` "a deciding row not computed yet holds the screen"<br>`report.py` "a candidate out on a row read worse holds the screen for no unread row"<br>`report.py` "the screen ranks what it holds and names no arm for round 6 while a candidate is missing" |
| FR-12-16 | Self-test | `report.py` "an ISO-read arm's verdict is worse on an axis worse, better on one better with none worse, and no clear gain otherwise"<br>`report.py` "the plain words name the axes behind an ISO-read verdict"<br>`report.py` "the summary's axis table of an ISO-read run is the ISO radar's, marked as the chart is" |
| FR-12-17 | Self-test | `report.py` "the ISO screen drops an arm worse on an axis, ranks the rest by axes better and then by cost, and keeps four"<br>`report.py` "an axis no target measures neither holds nor moves the ISO screen"<br>`report.py` "an axis that lists targets but has no reading yet holds the ISO screen"<br>`report.py` "the ISO screen names the arms round 6 runs and the axis that put one out" |
| FR-12-18 | Self-test | `report.py` "a pilot round read by the ISO radar is only a draft, never in or under docs/audits/, and keeps its aggregate beside the registered one"<br>`report.py` "a pilot round read by the ISO radar says it is post hoc and that its axes decide"<br>`report.py` "a run read by the ISO radar refuses a cross-check, whose withheld rows its markers would still count" |
| FR-12-18 | Self-test | `report.py` "a pilot round read by the ISO radar is only a draft, never in or under docs/reports/, and keeps its aggregate beside the registered one"<br>`report.py` "a pilot round read by the ISO radar says it is post hoc and that its axes decide"<br>`report.py` "a run read by the ISO radar refuses a cross-check, whose withheld rows its markers would still count" |

## 13 Records and archive

Expand All @@ -187,11 +187,12 @@ when:
| FR-13-01 | Self-test | `harness.py` "the record is written as every trial starts and ends"<br>`harness.py` "every trial records the CLI's version, read as it starts" |
| FR-13-02 | Self-test | `generate_arm.py` "every generated arm's file has its generation record beside it" |
| FR-13-03 | Self-test | `archive.py` "readings, judgings, map and lock come; bundles do not"<br>`archive.py` "the original tarball's hash is recorded"<br>`archive.py` "the revisions are recorded"<br>`archive.py` "a reading changed in the archive fails the verify" |
| FR-13-04 | Self-test | `archive.py` "a reading changed after the stamp is a problem"<br>`archive.py` "the report refuses docs/audits/ without a current stamp"<br>`report.py` "a report into a templates source's docs/audits needs the stamp" |
| FR-13-04 | Self-test | `archive.py` "a reading changed after the stamp is a problem"<br>`archive.py` "the report refuses docs/reports/ without a current stamp"<br>`report.py` "a report into any docs/reports needs the stamp" |
| FR-13-05 | Self-test | `archive.py` "the restored root reads as the original does"<br>`archive.py` "a restored record points at the restored tarball and void"<br>`archive.py` "a restored transcript keeps its time" |
| FR-13-06 | Self-test | `generate_arm.py` "the two map arms name the same moments in the chain's order"<br>`generate_arm.py` "the reading map names every template of the chain once, under docs/solid-ai-templates/"<br>`generate_arm.py` "each template skill is its template verbatim, named by the manifest"<br>`generate_arm.py` "a chain file the manifest does not describe is refused" |
| FR-13-07 | Self-test | `generate_arm.py` "every fixed-text root opens with the brief, verbatim"<br>`generate_arm.py` "the brief and the facts name the stack and no tooling" |
| FR-13-08 | Self-test | `generate_arm.py` "a generated file naming a tool is refused, and the prompt forbids one" |
| 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" |

## 14 One run at a time

Expand Down
Loading
Loading