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/05-building-block-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,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 |
| `arms/<arm>/CLAUDE.md` | Each arm's context file. `arms/skills/skills/` holds the skills arm's skills | 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` |
| `toolconfig/` | `ruff.toml` and `mypy.ini`, the one configuration every arm is measured under | `score.py` |
Expand Down
1 change: 1 addition & 0 deletions docs/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ when:
| 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-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" |

## 14 One run at a time

Expand Down
1 change: 1 addition & 0 deletions docs/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
| FR-13-03 | The benchmark shall archive every reading, judging, map and lock, with a hash per file, and fail the verify on a changed one. | Archive |
| FR-13-04 | The benchmark shall refuse to write a report under `docs/audits/` once a reading changed since the archive was verified. | Archive, Report |
| FR-13-05 | The benchmark shall restore an archive so it reads as the original root does, its records pointing at the restored files. | Archive |
| FR-13-06 | The benchmark shall build a map arm's root from the chain and the templates' manifest alone, the same moments in the same order for both map arms, and each `lazyskills` skill holding one template verbatim. | Arm generator |

### 14 One run at a time

Expand Down
1 change: 1 addition & 0 deletions docs/rounds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ the specification, `M` the builder model and `T` the task
| [Round 5b](round-5b.md) | 2026-10-29, after round 5 stopped; stopped after its first start | Round 5's question, with a prompt that tells every arm the spec is the approved plan |
| [Round 5c](round-5c.md) | 2026-10-29, after round 5b stopped | Round 5b's question, with each trial's workspace in a pen of its own |
| [Round 5d](round-5d.md) | 2026-10-31, while round 5c ran | Whether a person's short file does what the templates do, at their length and at its own |
| [Round 5e](round-5e.md) | 2026-11-05, while round 5d ran | Whether a template read at the moment the work touches its topics does what one read up front does, as a file and as a skill |

## Reports

Expand Down
176 changes: 176 additions & 0 deletions docs/rounds/round-5e.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
# Round 5e registration

Registered on 2026-11-05, while round 5d ran and before any round-5e trial ran.
Round 5d keeps its registration as it was when its first trial ran; this one is
a registration of its own.

## 13e. Round 5e: the templates on demand, against rounds 5c and 5d

### 13e.1 What it takes from rounds 5c and 5d

Round 5e runs [round 5d's registration](round-5d.md) as it stands at `1baac26`:
block A, the spec at its registered sha256, `claude-sonnet-5` at effort `high`,
round 5b's prompt, the pen, the judge, the scoring on Python 3.12, the CLI
pinned at 2.1.314, the verdict rules of 13d.7, the radar of 13d.8 and the
round-6 screen of 13d.9.

The hidden suite is the revision at `8caaaa3`: the same tests as round 5d's
(the build imported afresh for every test), plus entry 9 of its ambiguities
file, which grades nothing new.

Three things differ: the arms, the order, and what is reused.

### 13e.2 The arms

| Arm | Trials | Where they come from |
| --- | --- | --- |
| `lazyref` | 15, fresh | `arms/lazyref/CLAUDE.md`, made for 5e |
| `lazyskills` | 15, fresh | `arms/lazyskills/`, root and 13 skills, made for 5e |
| `none`, `reference`, `skills` | 15 each, reused | Round 5c's, re-scored in 5d's root |
| `hand`, `short` | 15 each, reused | Round 5d's, scored and read |

Both fresh arms live under `tests/efficacy/arms/`. They are fixed text, made by
`generate_arm.py` from round 5's chain at `9086e0ff` and the templates'
manifest, with no model call. Each row of their table is one template of the
chain, in the chain's order, and the moment that calls for it is the manifest's
own one-line description of that template. No person chose the moments, and the
two arms take them from the same source, so their tables differ in one column
alone.

**`lazyref`** maps each moment to the vendored template file.

- The root says: do not read the templates before the work starts; the first
time the work touches a template's topics, read that template and apply every
rule it holds that fits this project.
- The templates are vendored at `docs/solid-ai-templates/` at the recorded ref,
as `reference` vendors them.
- 22 lines and 2,088 bytes, sha256
`8c7f7698568643823988e4f9a7e4ade9d30f3965cb065e1dd7ee4117050b5d67`, with its
generation record beside it.

**`lazyskills`** maps each moment to a skill holding that template.

- The root says the same, with "load that template's skill" in place of "read
that template".
- Thirteen skills under `.claude/skills/`, one per template of the chain, each
named by the template's manifest id, described by the manifest's one line,
and holding the template verbatim: 76,023 bytes in all.
- 22 lines and 1,535 bytes, sha256
`f98060a1d04263b6a630728d614d38ed2efc14385c07c789aad157883dffc5de`, with its
generation record beside it.

**The reused arms** come with round 5d's root and tool lock, so every contrast
is graded by one suite.

Why: round 5c's `reference` is lazy in packaging only. Its root says "before
starting work, read each template below", and 13 of its 15 agents read all 13
templates whole before the first line of code, 161 KB in two turns. Its
`skills` arm, whose skills were offered by description alone, loaded none of
them. So no pilot arm has yet measured a rule read at the moment it applies.
Round 5e asks that question twice, once with a file read and once with a skill
load, and nothing else differs between its two arms.

### 13e.3 The order

One run of `lazyref` and `lazyskills` at K = 15, in a run root of round 5e's
own: 30 trials in the rotated order.

- The run starts `lazyref-1`, `lazyskills-1`, and each block starts one arm
later.
- The two arms share every block, so `lazyskills` minus `lazyref` is paired.
- No fresh `none`, `reference` or `skills` runs beside them, so drift against
rounds 5c and 5d goes unchecked, as in round 5d. The CLI is pinned.

### 13e.4 Hypotheses

A contrast with a round 5c or round 5d arm is unpaired, read as 13d.4 reads
one. The paired contrast is read as 13d.4 reads H6.

**H7, on demand against up front.** A template read when the work touches its
topics delivers at least what the same template read before the work starts
delivers.

| | |
| --- | --- |
| Contrast | `lazyref` minus round 5c's `reference`, unpaired |
| Primary rows | the round's primary rows, below |
| Supported | every primary row is held or better |
| Refuted | any primary row is worse |

**H8, a skill against a file.** Loading a template as a skill delivers at least
what reading it as a file delivers, the moments being the same.

| | |
| --- | --- |
| Contrast | `lazyskills` minus `lazyref`, paired within the block |
| Primary rows | the round's primary rows, below |
| Supported | every primary row is held or better |
| Refuted | any primary row is worse |

**H9, one skill per template against one skill per task.** Templates loaded
whole as skills, at a named moment, deliver at least what task skills offered
by description deliver.

| | |
| --- | --- |
| Contrast | `lazyskills` minus round 5c's `skills`, unpaired |
| Primary rows | the round's primary rows, below |
| Supported | every primary row is held or better |
| Refuted | any primary row is worse |

**The primary rows** are round 5d's: the hidden suite's pass rate, the security
and data-protection probe pass rates, each on working builds, and the judge's
security and data-protection rows. Reliability is a row of its own, as 13d.7
says. Adherence is printed without a verdict.

H7 to H9 are read under the rules of 13d.7, and each verdict is printed with
its confidence and the arm's profile.

**Against `none`, no hypothesis.** Each fresh arm is read against round 5c's
`none` by the rules of 13d.7, with no verdict of its own: the reading feeds the
round-6 screen of 13d.9, which round 5e's arms join as candidates.

**Secondary, no verdict:**

- every metric of [ch. 8.6](../architecture/08-crosscutting-concepts.md) for
each fresh arm against round 5c's `none`, `reference` and `skills` and round
5d's `hand` and `short`;
- cost, turns, tokens and wall time, and the words each arm puts in context on
every turn;
- **use of the map**, per trial, from the transcript: how many templates the
agent read (`lazyref`, a read of a file under the vendored path) or loaded
(`lazyskills`, a skill call naming one of the arm's skills), which ones, the
turn each happened at, and how many happened before the trial's first write
to a file of its own. Round 5c's `reference` read 13 of 13 in turns 1 and 2;
a map arm that does the same has not measured on-demand reading, and the
report says so beside H7.

### 13e.5 Before the first trial

Done with this registration:

- `generate_arm.py` makes the two map arms from the chain and the manifest, the
same moments in the same order for both, and refuses a chain file the
manifest does not describe
- both arms are generated and committed with their records
- the harness reads them from their files, vendors the templates for `lazyref`,
places the skills for `lazyskills`, proves before the run that the agent sees
them, and builds both from round 5's spec at its registered content
- the report names both arms in plain words

The report still gains, with a self-test for each:

- round 5c's `reference` and `skills` and round 5d's `hand` and `short` read
with their scores, judgings, security readings and tool lock, as 13d.5 reads
round 5c's `none`
- the contrasts of H7 and H9, unpaired, and H8, paired
- the use-of-the-map rows of 13e.4, read from the transcripts
- the round-6 screen of 13d.9 with round 5e's arms among the candidates

### 13e.6 When it runs

After round 5d's last trial is in, scored, judged and reported. Its 30 trials
take about 20 hours at round 5c's pace and spend the plan's limit, so the run
waits for the owner's go.

Nothing in this registration changes once a round-5e trial has run.
22 changes: 22 additions & 0 deletions tests/efficacy/arms/lazyref/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# tariff

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` |
110 changes: 110 additions & 0 deletions tests/efficacy/arms/lazyref/generation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"arm": "lazyref",
"kind": "map",
"output_model": null,
"ref": "9086e0ff",
"source": {
"remote": "https://github.com/solid-ai-dev/solid-ai-templates.git",
"ref": "9086e0ff",
"commit": "9086e0ffc454fbff1d234601822257ce5e40a004"
},
"roots": [
"backend-api",
"backend-auth",
"backend-database",
"frontend-ux",
"base-security",
"base-data-governance"
],
"started_at": "2026-11-05T09:51:58",
"commit": "9086e0ffc454fbff1d234601822257ce5e40a004",
"resolved_files": [
"templates/core/quality.md",
"templates/core/git.md",
"templates/core/docs.md",
"templates/core/testing.md",
"templates/core/review.md",
"templates/backend/http.md",
"templates/backend/api.md",
"templates/security/security.md",
"templates/backend/auth.md",
"templates/backend/database.md",
"templates/frontend/ux.md",
"templates/data/data-modeling.md",
"templates/data/data-governance.md"
],
"load": "read",
"moments": [
{
"skill": "base-quality",
"moment": "Architecture, code style, calibration, tool trust, testing",
"file": "templates/core/quality.md"
},
{
"skill": "base-git",
"moment": "Committer identity, branching, pull requests, CI evidence, regenerated artifacts, off-limits paths, .gitignore",
"file": "templates/core/git.md"
},
{
"skill": "base-docs",
"moment": "Rule language, standard documents, upkeep, line width, writing style, diagrams, generated files, agent output files",
"file": "templates/core/docs.md"
},
{
"skill": "base-testing",
"moment": "Test types, isolation, assertions, proving a change",
"file": "templates/core/testing.md"
},
{
"skill": "base-review",
"moment": "Peer review priority, MUST/SHOULD checklists, deviation rules",
"file": "templates/core/review.md"
},
{
"skill": "backend-http",
"moment": "Port, lifecycle, admin tasks, handlers, headers, methods, payloads, errors, auth",
"file": "templates/backend/http.md"
},
{
"skill": "backend-api",
"moment": "API-first, contracts, versioning, deprecation, pagination",
"file": "templates/backend/api.md"
},
{
"skill": "base-security",
"moment": "Application security rules \u2014 input, output, injection, auth, sessions, TLS, headers",
"file": "templates/security/security.md"
},
{
"skill": "backend-auth",
"moment": "Authn/authz, JWT, RBAC, sessions, API keys",
"file": "templates/backend/auth.md"
},
{
"skill": "backend-database",
"moment": "Migrations, transactions, parameterised queries, connection pooling",
"file": "templates/backend/database.md"
},
{
"skill": "frontend-ux",
"moment": "UX principles, WCAG 2.1 AA, accessibility testing, design system, browser support",
"file": "templates/frontend/ux.md"
},
{
"skill": "base-data-modeling",
"moment": "Schema design, naming, normalization, relationships, data types",
"file": "templates/data/data-modeling.md"
},
{
"skill": "base-data-governance",
"moment": "Classification, PII handling, retention, ownership, audit trail",
"file": "templates/data/data-governance.md"
}
],
"budget": null,
"output_leak": null,
"outcome": "generated",
"output": "C:\\Work\\products\\solid-ai\\solid-ai-benchmark\\tests\\efficacy\\arms\\lazyref\\CLAUDE.md",
"output_lines": 22,
"output_words": 229
}
22 changes: 22 additions & 0 deletions tests/efficacy/arms/lazyskills/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# tariff

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,
load that template's skill; then apply every rule it holds that fits this
project.

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