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
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 @@ -15,7 +15,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` |
| `generate_arm.py` | Builds one arm's file by script, with no model call: fixed text, the templates' emitter, its skills apart, inlined or cut into section files, or a map of the chain's topics. Scans the output for leaks, named tools and, in an on-demand arm, a read of everything at the start; its self-test rebuilds every committed arm and fails on any difference, on section files that part from the inline root's rules, and on a `lazyrefold` that differs from `lazyref` by more than the check-loop commit | `brief.txt`, the templates source | `arms/<arm>/CLAUDE.md`, its skills or section files, `generation.json` |
| `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 |
Expand All @@ -37,7 +37,7 @@ dependency with its keyword.
| `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>/CLAUDE.md` | Each arm's context file. `arms/<arm>/skills/` holds a skills arm's skills, placed at `.claude/skills/`; `arms/lazysections/sections/` holds the section files, placed at `.agents/sections/`, where the map names them | 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` |
| `toolconfig/` | `ruff.toml` and `mypy.ini`, the one configuration every arm is measured under | `score.py` |
Expand Down
5 changes: 4 additions & 1 deletion docs/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ when:
| -- | ---- | ---------- |
| FR-12-01 | Self-test | `report.py` "a contrast crossing rounds carries no verdict and counts nowhere"<br>`report.py` "a comparison across rounds reads as not given, not too few runs" |
| FR-12-02 | Self-test | `report.py` "a contrast across rounds is unpaired, with a verdict"<br>`report.py` "a round-5d run reads H4 against a reused `none`, unpaired"<br>`report.py` "an unpaired contrast leaves out two trials, not blocks"<br>`report.py` "a contrast crosses rounds where its arms ran in different roots, reused or not"<br>`reuse.py` "a trial copied on keeps the root it ran in as its origin"<br>`reuse.py` "a quality reading comes along with its trial" |
| FR-12-03 | Self-test | `report.py` "it prints every declared contrast its arms ran"<br>`report.py` "a three-arm run prints only its own contrasts" |
| FR-12-03 | Self-test | `report.py` "it prints every declared contrast its arms ran"<br>`report.py` "a three-arm run prints only its own contrasts"<br>`report.py` "a run of round 6's new arms reads each against none, in plain words" |
| FR-12-04 | Self-test | `report.py` "round 5 reports the files it supersedes without a verdict" |
| FR-12-05 | Self-test | `report.py` "the report links its appendix, and the appendix the record"<br>`report.py` "the appendix holds what produced the results, the radar's axes and the verdict vector, and nothing else" |
| FR-12-06 | Self-test | `report.py` "the radar draws a panel per arm, with the bare ring, in both themes"<br>`report.py` "an axis is better minus worse over its rows with a verdict, None without one"<br>`report.py` "the summary is the radar, one image per theme" |
Expand Down Expand Up @@ -210,6 +210,9 @@ when:
| 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" |
| FR-13-22 | Self-test | `generate_arm.py` "the section files hold every rule block the inline root does, and no other"<br>`generate_arm.py` "the sections map names every section file once, under .agents/sections/"<br>`generate_arm.py` "a rule dropped from a section file, or a file the map does not name, is reported"<br>`harness.py` "the lazysections arm's files land where its map names them, out of the index"<br>`report.py` "the sections arm's map is its section files, and a Read or a shell read of one counts as a use"<br>`report.py` "a named round's report prints its sections arm's use of the map" |
| FR-13-23 | Self-test | `generate_arm.py` "lazyref and lazyrefold differ by the check-loop commit's lines alone, all in its section"<br>`generate_arm.py` "a line changed besides the commit's, one of its lines missing, or one outside its section is reported"<br>`generate_arm.py` "a lazyref committed at another ref than the check-loop commit is reported"<br>`harness.py` "round 6's lazyrefold vendors at its own recorded ref, lazysections vendors nothing" |
| FR-13-24 | Self-test | `generate_arm.py` "no on-demand arm tells the agent to read everything at startup"<br>`generate_arm.py` "a root telling the agent to read everything at the start is caught" |

## 14 One run at a time

Expand Down
2 changes: 1 addition & 1 deletion docs/decisions/026-every-arm-is-built-by-a-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ no more.
| ----------- | ------ |
| `inline` changes | The emitter's file is 1,778 lines at `9abed019`, against the 552 a model wrote for round 5e: a new arm, with no round-5e reading |
| `skills` changes | Its root now carries the brief's paragraphs on personal data and on boundaries, which it lacked; a new arm too |
| Round 6's arms | `none`, `reference`, `inline`, `skills`, `lazyref`, `lazyskills`, and those #169 adds |
| Round 6's arms | `none`, `reference`, `inline`, `skills`, `lazyref`, `lazyskills`, and the two #169 adds: `lazysections`, the emitter's section files, and `lazyrefold`, `lazyref` before the check-loop change |
| The report still reads arm files from the checkout | The pilot arms' files stay so a pilot report can count their lines, until #171 |

## History
Expand Down
10 changes: 8 additions & 2 deletions docs/journeys/prepare/generate-the-arms.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ Assumptions:
- The arms, all built with no model call
([ADR-026](../../decisions/026-every-arm-is-built-by-a-script.md)):
`reference`, `lazyref` and `lazyskills` as fixed text, `inline` and
`skills` from the templates' emitter
`skills` from the templates' emitter, `lazysections` from its sections
mode, and `lazyrefold` as `lazyref` at the parent of the templates commit
that cuts the check loop to one check command
- All times are estimates

## Steps

| # | Who | Step | Time | Notes |
| - | --- | ---- | ---- | ----- |
| 1 | Operator | Runs the generator's self test | 2 min | Proves the scans and the fact filling can fail, and rebuilds every committed arm |
| 1 | Operator | Runs the generator's self test | 2 min | Proves the scans and the fact filling can fail, rebuilds every committed arm, and checks the on-demand arms: no read of everything at the start, `lazyrefold` against `lazyref`, the section files against the inline root |
| 2 | Operator | Dry-runs each arm at the round's ref | 1 min each | Builds and scans the files, writes nothing under `arms/` |
| 3 | Generator | Builds each arm, at a root outside this repository | 1 min each | The same ref gives the same bytes |
| 4 | Operator | Reads each `generation.json`: ref, chain, commit, how the file was built, its size, both scans | 5 min | The report reads it from there |
Expand All @@ -36,6 +38,8 @@ Assumptions:
py tests/efficacy/generate_arm.py --self-test
py tests/efficacy/generate_arm.py --arm inline --ref <ref> --root <outside this repository> --dry-run
py tests/efficacy/generate_arm.py --arm inline --ref <ref> --root <outside this repository> --replace
py tests/efficacy/generate_arm.py --arm lazysections --ref <ref> --root <outside this repository>
py tests/efficacy/generate_arm.py --arm lazyrefold --ref <the check-loop commit>^ --root <outside this repository>
```

## Findings
Expand All @@ -45,3 +49,5 @@ py tests/efficacy/generate_arm.py --arm inline --ref <ref> --root <outside this
| 1 | A written arm changes with every writing: round 5e's `hybrid` was 511 lines, the one regenerated for round 6 was 221 | Settled in [ADR-026](../../decisions/026-every-arm-is-built-by-a-script.md), 2026-11-15 |
| 2 | The emitted `skills` root lacked the brief's paragraphs on personal data and on boundaries, and no check read an emitted root | Settled in [ADR-026](../../decisions/026-every-arm-is-built-by-a-script.md), rule 4 |
| 3 | The emitter builds no hybrid file, and the templates' rules forbid one that names template files | Settled in [ADR-026](../../decisions/026-every-arm-is-built-by-a-script.md); `hybrid` runs no more |
| 4 | #169 names the check-loop control `lazyref-old`, but an arm's word carries no hyphen: trial names, voided-workspace names and hypothesis labels split on it | Open, 2026-11-15: built as `lazyrefold`; rename only with those readers |
| 5 | `lazysections`, `lazyref` and `lazyrefold` are built at the open templates branch (`d6da8f33`; `a8079352`, the check-loop commit; `4e1de818`, its parent) while the other arms stay at `9abed019` | Open: every arm is re-pinned at one ref once templates #2495, #2496 and #2498 merge |
3 changes: 3 additions & 0 deletions docs/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@
| 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 |
| FR-13-22 | The benchmark shall build the `lazysections` arm with the templates' emitter in its sections mode, for the chain and declined list the other emitted arms take, place its section files where its map names them, out of the workspace's index, and fail its self-test where the section files' rule blocks differ from the inline root's, or the map names a section file other than once; and count a trial's Read or shell read of a section file as a use of its map, printed in a named round's report. | Arm generator, Harness, Report |
| FR-13-23 | The benchmark shall build the `lazyrefold` arm as `lazyref` at the parent of the templates commit that cuts the check loop to one check command, and fail its self-test where the two committed arms' workspace files, at the refs their records name, differ by other than that commit's lines, all within the section it changes. | Arm generator |
| FR-13-24 | The benchmark shall refuse an on-demand arm (`lazyref`, `lazyskills`, `lazysections`, `lazyrefold`) whose files tell the agent to read everything at the start. | Arm generator |

### 14 One run at a time

Expand Down
15 changes: 7 additions & 8 deletions tests/efficacy/arms/lazyref/generation.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"arm": "lazyref",
"kind": "map",
"output_model": null,
"ref": "9abed019",
"ref": "a8079352",
"source": {
"remote": "https://github.com/solid-ai-dev/solid-ai-templates.git",
"ref": "9abed019",
"commit": "9abed01916b941d9ed2f8daa8ff8c3b28f0718fd"
"ref": "a8079352",
"commit": "a8079352249dec0db5cdabc9f2e78d1c49362154"
},
"roots": [
"backend-api",
Expand All @@ -16,8 +15,8 @@
"base-security",
"base-data-governance"
],
"started_at": "2026-11-13T14:45:13",
"commit": "9abed01916b941d9ed2f8daa8ff8c3b28f0718fd",
"started_at": "2026-11-16T08:09:29",
"commit": "a8079352249dec0db5cdabc9f2e78d1c49362154",
"resolved_files": [
"templates/core/quality.md",
"templates/core/git.md",
Expand Down Expand Up @@ -101,10 +100,10 @@
"file": "templates/data/data-governance.md"
}
],
"budget": null,
"output_leak": null,
"named_tooling": [],
"outcome": "generated",
"output": "C:\\Work\\products\\solid-ai\\solid-ai-benchmark-regen\\tests\\efficacy\\arms\\lazyref\\CLAUDE.md",
"output": "C:\\Work\\products\\solid-ai\\solid-ai-benchmark-arms\\tests\\efficacy\\arms\\lazyref\\CLAUDE.md",
"output_lines": 40,
"output_words": 393
}
40 changes: 40 additions & 0 deletions tests/efficacy/arms/lazyrefold/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# tariff

`tariff` — Imbra Ltd — a pricing and invoicing web application:
a product catalog, discount rules of several kinds, tax jurisdictions,
customers, and invoices assembled from them — Python 3.12 / Flask 3 /
Jinja / HTMX / SQLite — runs locally, no deployment target

Personal data: customers are people, stored with their name, email and
postal address and named on the invoices billed to them. The business is
in the EU, so the GDPR applies: a customer may ask for their data to be
erased or for a copy of it. One administrator signs in to use the
application; nobody else has an account.

Boundaries and actors: two actors, the administrator working in a browser
and another program; the pricing engine is a library the program imports
without the web application present, and the web application is one
caller of it. The store is a local file. Nothing reaches the network.
The program's interfaces are the library's own API and the invoice
exports.

The project's rules are the templates below, one per topic. Do not read them
before the work starts. The first time the work touches a template's topics,
read that template, vendored at `docs/solid-ai-templates/` at the revision the
project adopted; then apply every rule it holds that fits this project.

| When the work first touches | Read first |
| --- | --- |
| Architecture, code style, calibration, tool trust, testing | `docs/solid-ai-templates/templates/core/quality.md` |
| Committer identity, branching, pull requests, CI evidence, regenerated artifacts, off-limits paths, .gitignore | `docs/solid-ai-templates/templates/core/git.md` |
| Rule language, standard documents, upkeep, line width, writing style, diagrams, generated files, agent output files | `docs/solid-ai-templates/templates/core/docs.md` |
| Test types, isolation, assertions, proving a change | `docs/solid-ai-templates/templates/core/testing.md` |
| Peer review priority, MUST/SHOULD checklists, deviation rules | `docs/solid-ai-templates/templates/core/review.md` |
| Port, lifecycle, admin tasks, handlers, headers, methods, payloads, errors, auth | `docs/solid-ai-templates/templates/backend/http.md` |
| API-first, contracts, versioning, deprecation, pagination | `docs/solid-ai-templates/templates/backend/api.md` |
| Application security rules — input, output, injection, auth, sessions, TLS, headers | `docs/solid-ai-templates/templates/security/security.md` |
| Authn/authz, JWT, RBAC, sessions, API keys | `docs/solid-ai-templates/templates/backend/auth.md` |
| Migrations, transactions, parameterised queries, connection pooling | `docs/solid-ai-templates/templates/backend/database.md` |
| UX principles, WCAG 2.1 AA, accessibility testing, design system, browser support | `docs/solid-ai-templates/templates/frontend/ux.md` |
| Schema design, naming, normalization, relationships, data types | `docs/solid-ai-templates/templates/data/data-modeling.md` |
| Classification, PII handling, retention, ownership, audit trail | `docs/solid-ai-templates/templates/data/data-governance.md` |
Loading
Loading