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
1 change: 1 addition & 0 deletions docs/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ when:
| 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" |

## 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 @@ -196,6 +196,7 @@
| 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 brief, 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 |
| FR-13-07 | The benchmark shall give every arm's root the same project facts: the brief, which names the stack the spec fixes and no tooling. | Arm generator |
| FR-13-08 | The benchmark shall tell a model arm's generation to name no tool, and refuse a generated file that names one. | Arm generator |

### 14 One run at a time

Expand Down
674 changes: 192 additions & 482 deletions tests/efficacy/arms/hybrid/CLAUDE.md

Large diffs are not rendered by default.

79 changes: 41 additions & 38 deletions tests/efficacy/arms/hybrid/generation.json

Large diffs are not rendered by default.

945 changes: 437 additions & 508 deletions tests/efficacy/arms/inline/CLAUDE.md

Large diffs are not rendered by default.

79 changes: 41 additions & 38 deletions tests/efficacy/arms/inline/generation.json

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions tests/efficacy/arms/lazyref/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# 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
Expand Down
16 changes: 8 additions & 8 deletions tests/efficacy/arms/lazyref/generation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"arm": "lazyref",
"kind": "map",
"output_model": null,
"ref": "9086e0ff",
"ref": "9abed019",
"source": {
"remote": "https://github.com/solid-ai-dev/solid-ai-templates.git",
"ref": "9086e0ff",
"commit": "9086e0ffc454fbff1d234601822257ce5e40a004"
"ref": "9abed019",
"commit": "9abed01916b941d9ed2f8daa8ff8c3b28f0718fd"
},
"roots": [
"backend-api",
Expand All @@ -16,8 +16,8 @@
"base-security",
"base-data-governance"
],
"started_at": "2026-11-05T09:51:58",
"commit": "9086e0ffc454fbff1d234601822257ce5e40a004",
"started_at": "2026-11-13T14:45:13",
"commit": "9abed01916b941d9ed2f8daa8ff8c3b28f0718fd",
"resolved_files": [
"templates/core/quality.md",
"templates/core/git.md",
Expand Down Expand Up @@ -104,7 +104,7 @@
"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
"output": "C:\\Work\\products\\solid-ai\\solid-ai-benchmark-regen\\tests\\efficacy\\arms\\lazyref\\CLAUDE.md",
"output_lines": 40,
"output_words": 393
}
18 changes: 18 additions & 0 deletions tests/efficacy/arms/lazyskills/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# 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,
load that template's skill; then apply every rule it holds that fits this
Expand Down
24 changes: 12 additions & 12 deletions tests/efficacy/arms/lazyskills/generation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"arm": "lazyskills",
"kind": "map",
"output_model": null,
"ref": "9086e0ff",
"ref": "9abed019",
"source": {
"remote": "https://github.com/solid-ai-dev/solid-ai-templates.git",
"ref": "9086e0ff",
"commit": "9086e0ffc454fbff1d234601822257ce5e40a004"
"ref": "9abed019",
"commit": "9abed01916b941d9ed2f8daa8ff8c3b28f0718fd"
},
"roots": [
"backend-api",
Expand All @@ -16,8 +16,8 @@
"base-security",
"base-data-governance"
],
"started_at": "2026-11-05T09:52:07",
"commit": "9086e0ffc454fbff1d234601822257ce5e40a004",
"started_at": "2026-11-13T14:45:24",
"commit": "9abed01916b941d9ed2f8daa8ff8c3b28f0718fd",
"resolved_files": [
"templates/core/quality.md",
"templates/core/git.md",
Expand Down Expand Up @@ -104,22 +104,22 @@
"budget": null,
"output_leak": null,
"skills": {
"base-quality": 1629,
"base-quality": 1717,
"base-git": 999,
"base-docs": 1175,
"base-docs": 1166,
"base-testing": 1439,
"base-review": 1257,
"base-review": 1259,
"backend-http": 899,
"backend-api": 668,
"base-security": 1581,
"backend-auth": 609,
"backend-auth": 611,
"backend-database": 465,
"frontend-ux": 525,
"base-data-modeling": 449,
"base-data-governance": 515
},
"outcome": "generated",
"output": "C:\\Work\\products\\solid-ai\\solid-ai-benchmark\\tests\\efficacy\\arms\\lazyskills\\CLAUDE.md",
"output_lines": 22,
"output_words": 221
"output": "C:\\Work\\products\\solid-ai\\solid-ai-benchmark-regen\\tests\\efficacy\\arms\\lazyskills\\CLAUDE.md",
"output_lines": 40,
"output_words": 385
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: Authn/authz, JWT, RBAC, sessions, API keys

Rules for identity verification (authn) and access control (authz).
Applies to any backend service that has protected resources.
Extends `security/security.md`, "Authentication" (`security-authn`) and
Extends the security rules "Authentication" (`security-authn`) and
"Session management" (`security-sessions`), with backend-specific depth.

## General principles
Expand Down
3 changes: 1 addition & 2 deletions tests/efficacy/arms/lazyskills/skills/base-docs/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ Which documents a project keeps, and how they stay true.

[LOAD: write-docs]

- Carry these three in every project (MUST); their layout is the project's
own, and `templates/core/agents.md` offers a default for the agent files
- Carry these three in every project (MUST); their layout is the project's own

| File | Purpose |
| --- | --- |
Expand Down
19 changes: 19 additions & 0 deletions tests/efficacy/arms/lazyskills/skills/base-quality/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,25 @@ match on "[0-9a-f]{16}.html" wrong directory -> nothing matched
source that looks wrong
- Never weaken the rule behind a check to make it green or quiet

## Static checks

- Adopt the language's static type checker at its strictest setting where
the language has one, and keep it clean (MUST)
- Annotate every public function's parameters and return type where the
language allows it (MUST)
- Adopt a linter and a formatter, and keep both clean (MUST)
- Run the type checker, the linter and the formatter before every commit
and in CI

```bash
<type-check-command>
<lint-command>
<format-check-command>
```

Pass condition: all three print nothing. Each command is the project's own,
in its quiet mode.

## Enforcement

- Enforce these conventions through the gates: editor, pre-commit, CI
Expand Down
6 changes: 3 additions & 3 deletions tests/efficacy/arms/lazyskills/skills/base-review/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ How a change is reviewed, and how a finding is proven before it is reported.

[LOAD: review]

Review in this order, most critical first. `templates/core/quality.md`, and
any language quality template the project carries, is the standard for
items 2 to 4.
Review in this order, most critical first. The quality rules, and any
language quality rules the project carries, are the standard for items 2
to 4.

1. **Security**: anything exploitable, any credential or licence problem
2. **Correctness**: wrong results, unhandled failures, race conditions
Expand Down
18 changes: 18 additions & 0 deletions tests/efficacy/arms/reference/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# 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.

Before starting work, read each template below and apply every rule it
holds that fits this project. They are vendored at `docs/solid-ai-templates/`,
at the revision the project adopted.
Expand Down
17 changes: 9 additions & 8 deletions tests/efficacy/arms/reference/generation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"arm": "reference",
"kind": "fixed",
"output_model": null,
"ref": "9086e0ff",
"ref": "9abed019",
"source": {
"remote": "https://github.com/solid-ai-dev/solid-ai-templates.git",
"ref": "9086e0ff",
"commit": "9086e0ffc454fbff1d234601822257ce5e40a004"
"ref": "9abed019",
"commit": "9abed01916b941d9ed2f8daa8ff8c3b28f0718fd"
},
"roots": [
"backend-api",
Expand All @@ -16,8 +16,8 @@
"base-security",
"base-data-governance"
],
"started_at": "2026-10-27T07:33:03",
"commit": "9086e0ffc454fbff1d234601822257ce5e40a004",
"started_at": "2026-11-13T14:45:02",
"commit": "9abed01916b941d9ed2f8daa8ff8c3b28f0718fd",
"resolved_files": [
"templates/core/quality.md",
"templates/core/git.md",
Expand All @@ -33,9 +33,10 @@
"templates/data/data-modeling.md",
"templates/data/data-governance.md"
],
"budget": null,
"output_leak": null,
"outcome": "generated",
"output": "C:\\Work\\products\\solid-ai\\solid-ai-benchmark\\tests\\efficacy\\arms\\reference\\CLAUDE.md",
"output_lines": 19,
"output_words": 56
"output": "C:\\Work\\products\\solid-ai\\solid-ai-benchmark-regen\\tests\\efficacy\\arms\\reference\\CLAUDE.md",
"output_lines": 37,
"output_words": 220
}
68 changes: 34 additions & 34 deletions tests/efficacy/arms/short/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
# tariff
Pricing and invoicing web app for Imbra Ltd: catalog, discounts, tax
jurisdictions, customers, invoices. Python 3.12, Flask 3, Jinja, HTMX,
SQLite, uv. One administrator; runs locally only, no deployment target.
The pricing engine is a library another program may import directly.

Pricing/invoicing web app for Imbra Ltd, local only.
- Model: inline

## 1. Project
See README.md for the directory map; place code beside its layer.
```bash
uv run flask run # start the app
uv run ruff check . && uv run ruff format --check . # lint
uv run mypy --strict . && uv run pytest # types + tests
```
### 1.1 Overview
Catalog, discounts, tax rules, customers, invoices. Python 3.12, Flask 3,
Jinja, HTMX, SQLite; local only, no network egress. One admin signs in via
browser; another program also imports the pricing engine as a library.
### 1.2 Project structure
See the structure map in `README.md`; the pricing-engine library stays
free of Flask/Jinja/HTTP imports.
### 1.3 Commands
Before every commit, run a strict type check, a linter, a formatter
check and the test suite; each must report a clean pass.

## 2. Code conventions
- Work on a branch; never commit to `main`. Commit `uv.lock`, never
`.env`, secrets, or build output.
- Off-limits without approval: auth/session code, migrations, `.env*`.
- Parameterize every SQL query; never interpolate input into SQL.
- Store money as integer minor units or `Decimal`, never `float`.
- Hash the administrator's password with bcrypt, scrypt, or Argon2.
- Regenerate the session ID on login; expire idle sessions; set
`HttpOnly`, `Secure`, `SameSite=Lax` cookies.
- Give every state-changing HTMX/form request a CSRF token.
- Encode all template output for context; never bypass autoescaping.
- Run schema changes through a migration with up/down steps; never
edit the SQLite file by hand.
- Never log a customer's name, email, address, or any secret value.
- Classify customer PII (name, email, postal address); export or erase
it on request: hard delete or anonymize, never soft-delete alone.
- Cover pricing, discount, and tax logic with edge-case unit tests.
### 2.1 Git
- Work on a branch; never commit to `main` directly.
- Off-limits, propose with a rollback plan first: login/session code,
GDPR erasure/export code, DB migrations, `.env*` and secrets.
### 2.2 Security and data
- Parameterize every SQLite query; never interpolate input into SQL.
- Hash the admin password (bcrypt/scrypt/Argon2); lock out repeated failures.
- CSRF-protect every state-changing request; cookies: HttpOnly, Secure, SameSite=Lax.
- Rely on Jinja's autoescaping; never bypass it with raw user data.
- Never log a customer's name, email or address; use an opaque ID.
- Erase/anonymize and export a customer's data on request, machine-readable.
- Store money as integer minor units or Decimal; migrate schema with up/down steps.

## 3. Review process
Review in order: security, correctness, clarity, conventions.
- [ ] No secret or PII value in a committed file or log.
- [ ] Every SQL query parameterized; every migration has up/down.
- [ ] Money uses integer minor units or `Decimal`, never `float`.
Review order: security, correctness, clarity, conventions; block only on
a demonstrated defect or policy deviation.
- Approver and work tracker: open, not yet named by the project.
- Release: a tagged commit of `main`; there is no deployment step.

## 4. Session protocol
- Approver: the repository owner. Tracking: open, no tracker named.
- Release: a tagged commit on `main` after lint, types, tests pass.
- End of session, run in order: `ruff check .`, `mypy --strict .`,
`pytest`; report any that did not run as not run, never as passed.
Read the diff before changing anything. At session end, read and
execute, in order, the review rules' MUST and SHOULD checklists.
Loading
Loading