Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
6cd8d2f
Merge remote-tracking branch 'origin/feat/iso-targets' into feat/chan…
braboj Nov 15, 2026
aafbe18
feat(efficacy): score a change task's tree in full, with interfaces a…
braboj Nov 15, 2026
c86d9a7
feat(efficacy): the data upgrade re-saves an old invoice before new rows
braboj Nov 15, 2026
c22bc05
feat(efficacy): a named round's ISO radar and verdicts, once a task
braboj Nov 15, 2026
e9b5523
feat(efficacy): round C1's registered readings, per task
braboj Nov 15, 2026
edc00ae
fix(efficacy): Codex round 1 on the changed-tree scoring
braboj Nov 16, 2026
1a26e84
fix(efficacy): Codex round 2 on the changed-tree scoring
braboj Nov 16, 2026
7d5c340
Merge branch 'feat/c1-cost-arms' into stack/c1-base
braboj Nov 16, 2026
03fc133
Merge branch 'stack/c1-base' into feat/changed-tree-scoring
braboj Nov 16, 2026
2c953b5
fix(efficacy): Codex round 3 on the changed-tree scoring
braboj Nov 16, 2026
a9eafa2
fix(efficacy): Codex round 4 on the changed-tree scoring
braboj Nov 16, 2026
685e37d
fix(efficacy): Codex round 5 on the data upgrade
braboj Nov 16, 2026
520c301
fix(efficacy): Codex round 6 on the changed-tree scoring
braboj Nov 16, 2026
62d74c4
fix(efficacy): Codex round 7 on the data upgrade's rows
braboj Nov 16, 2026
ad0c8f0
Merge remote-tracking branch 'origin/feat/c1-cost-arms' into stack/c1…
braboj Nov 16, 2026
a643c29
Merge remote-tracking branch 'origin/feat/iso-targets' into stack/c1-…
braboj Nov 16, 2026
3601136
Merge branch 'stack/c1-base' into feat/changed-tree-scoring
braboj Nov 16, 2026
0031c81
fix(efficacy): Codex round 8 on the changed-tree scoring
braboj Nov 16, 2026
e76ca30
fix(efficacy): Codex round 9 on the data upgrade
braboj Nov 16, 2026
38976b0
fix(efficacy): Codex round 10 on the changed-tree scoring
braboj Nov 16, 2026
6296338
fix(efficacy): Codex round 11 on reuse and the new invoice's exports
braboj Nov 16, 2026
e745f6c
feat(efficacy): the data upgrade claims exported values and exercised…
braboj Nov 16, 2026
28d078a
Merge remote-tracking branch 'origin/main' into feat/changed-tree-sco…
braboj Nov 17, 2026
6389381
fix(efficacy): a changed tree that breaks fails only Reliability on i…
braboj Nov 17, 2026
c37c545
fix(efficacy): the archive's C1 fixture plants a changed tree that works
braboj Nov 17, 2026
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: 4 additions & 3 deletions docs/architecture/05-building-block-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ dependency with its keyword.
| `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 |
| `score.py` | Installs each frozen trial cleanly, runs the hidden suite, the static tools and the adherence checklist, counts scope and cost | The run root, the hidden suite, `scoring-requirements.txt`, `toolconfig/` | `scores/`, `scores-change/` |
| `probes.py` | The structural and web-quality probes, run inside the trial's own interpreter | A trial's tree | Its findings, to `score.py` |
| `security.py` | Seeds each app, signs in its administrator, runs the 11 security and 3 data-protection probes | The scored trees | `security-scores/` |
| `quality.py` | Signs in each app's administrator and runs the quality probes in process: malformed requests, concurrent writes, latency, a 500-line invoice, SQL per invoice line, two instances side by side; then installs the build on Python 3.14 and serves a signed-in page | The scored trees | `quality-scores/` |
| `judge.py` | Builds a blind bundle per trial, runs the judge CLI against the rubric, checks every quoted line | The scored trees | `judge/` |
| `security.py` | Seeds each app, signs in its administrator, runs the 11 security and 3 data-protection probes | The scored trees | `security-scores/`, `security-scores-change/` |
| `quality.py` | Signs in each app's administrator and runs the quality probes in process: malformed requests, concurrent writes, latency, a 500-line invoice, SQL per invoice line, two instances side by side; then installs the build on Python 3.14 and serves a signed-in page; on a change task's tree also the data upgrade, the fixture's seeded database opened by the changed tree | The scored trees | `quality-scores/`, `quality-scores-change/` |
| `judge.py` | Builds a blind bundle per trial, runs the judge CLI against the rubric, checks every quoted line | The scored trees | `judge/`, `judge-change/` |
| `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/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` |
Expand Down Expand Up @@ -76,6 +76,7 @@ are still read.
| `security/`, `security-scores/` | Each trial's probe files, and its readings; the probe environment goes once it is read |
| `quality/`, `quality-scores/` | Each trial's quality probe files, and its readings; both environments go once they are read |
| `judge/` | Each blind bundle, its judgings and the unblinding map |
| `scoring-change/`, `security-change/`, `security-scores-change/`, `quality-change/`, `quality-scores-change/`, `judge-change/` | The same for each change task's tree, apart from the build's; `quality-change/` also holds the fixture's seeded database and its copy for the data upgrade |
| `archived.json` | The stamp a verified archive writes, with the hash of every file the report reads |
| `<tool>.running` | A claim that one run of that tool is working here |

Expand Down
85 changes: 83 additions & 2 deletions docs/architecture/08-crosscutting-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,53 @@ green, whether the acceptance modules pass through the API, and, from round
The decision is ADR-009, including why round 1's change-task pass rate was
withdrawn.

**The changed tree, scored in full.** From round 6 every arm's change task
of a block starts from one fixture, a qualifying `none` build of round 5e,
so the changed tree is read on every ISO axis the build is. It gets the
same scoring, security and quality readings and judge, each filed apart
from the build's under a `-change` folder of its own (FR-16-01, FR-16-03,
FR-16-05). The judge reads a changed tree against the specification and
the pinned change prompt, told that the change extends the specification,
so the API the change adds is not counted as surface beyond it. A changed tree that does not install loses its probes and goes
unjudged, as a build does; a reading the reader could not take is missing.

Two readings compare the changed tree with its fixture, each counted on one
axis only:

| Reading | What it reads | Fails when | ISO place |
| ------- | ------------- | ---------- | --------- |
| Interfaces | The hidden suite's API, route and two export modules on the changed tree, against the fixture's frozen baseline | A module the fixture passed whole no longer does | Compatibility, Interoperability |
| Data upgrade | Products, customers, rules, a jurisdiction and invoices saved through the fixture's own forms, then the changed tree on a copy of that database | An export no longer reads as it did, an old invoice saved again prices otherwise, a seeded code or rule id is gone from its list page, or the change's own fields do not price as the change says | Flexibility, Adaptability |

- **Inherited is not broken.** An interface module the fixture already
failed is the fixture's, not the change's, and counts neither way
(FR-16-02).
- **Exported values, exercised behaviour.** Values are read from the
exports the specification fixes, never from the pages' markup: each old
invoice's JSON, every old key and value, lists as long and in order, and
its CSV, every old column by name, row by row; the customer's export; and
each old invoice's body saved again, its export the fixture's but for
its id. A key or column only the changed tree has is the change's own,
and is no loss. The list pages count only for presence: a seeded code or
rule id named whole, whatever the markup (FR-16-04).
- **The change's own fields, by their effect.** A capped jurisdiction and
a threshold rule are posted on the upgraded copy, and invoices saved
through the application opened afresh on it must give the applied rules,
discount, tax and total the change's semantics give, below, at and above
the threshold and the cap. The seed's invoice percentage, which would
share the threshold's slot, is deleted first, on the copy alone.
- **Outside the claim.** A jurisdiction's name, a parameter no invoice
exercises and an equivalent internal form can change unread: the reading
claims exported values kept and exercised behaviour, not every field.
- **Lost and missing.** A changed tree that will not open the file, or
sign in on it, has lost the data and fails. A fixture that cannot seed is
no arm's, so the reading is missing. Each reading names the fixture's
hash, the starting commit and the seeded database's hash.
- **One place each.** The data upgrade is the migration target on
Adaptability: the change adapts to data an earlier version saved. It is
not read on Interoperability too, so no build is credited twice
(FR-16-06).

### 8.6.5 Pattern use

For each design pattern it finds, the judge records where it is, what it
Expand Down Expand Up @@ -623,8 +670,8 @@ interval of the difference against `none` lies past the axis's margin
each radar, shown and not scored, and the appendix holds one table of
sub-scores per axis. The decision is ADR-023.

Round 6's targets read three sources the pilot's did not (FR-12-21 to
FR-12-23):
Round 6's targets read four sources the pilot's did not (FR-12-21 to
FR-12-23, FR-16-06):

- **Hidden-suite modules.** Functional correctness has one target per build
module, met where the module passes whole: no check failed, errored or
Expand All @@ -639,10 +686,44 @@ FR-12-23):
- **Latency.** Its target reads a cutoff calibrated from the reference
build and a planted slowdown, frozen before round 6 registers. Until then
it is not measured.
- **The change task's tree.** Its interfaces are one target on
Interoperability and its data upgrade one on Adaptability (8.6.4). Both
are read whatever the trial's build did, since the change starts from a
fixture, not from that build (FR-16-06).

A pilot round read by the ISO radar keeps the targets it had before round 6,
and reads round 6's only when `--round6-targets` asks for them.

**One radar a task** (FR-16-08). A named round draws the ISO radar and gives
each arm's verdict twice, once a task, each against `none` on the same task:

| Task | Reads | Cost beside it |
| ---- | ----- | -------------- |
| Build | Each build trial's tree; no change target | The build's mean billed cost per trial |
| Change | Each change task's tree, scored in full, with the change targets | The change task's mean billed cost per trial |

The summary, its tables, the plain report and the appendix name the task
each reads. Neither task's readings stand in for the other's, so a build
that broke says nothing of the change it never started. A pilot round
draws one radar over its trials as they are.

**Round C1's registered readings** (FR-16-09, FR-16-10). Each pairs two
arms by block on each task, on the ISO axes and on the mean billed cost per
trial:

| Question | Pair | Answer |
| -------- | ---- | ------ |
| Is the check loop kept? | `lazyref` against `lazyrefold` | Kept where the point estimate of the cost drops by 10 % or more on each task, its interval shown beside it, and no axis reads worse on either |
| Is an axis worse? | Each pair | The whole interval past the margin downward; none flagged reads "no degradation detected under the registered rule" |
| Non-inferior? | Each pair | Every measured axis's lower bound above minus its margin, on each task; an interval crossing the margin is inconclusive |
| Do the section files hold? | `lazysections` against `lazyref` and `reference` | The worse and non-inferior readings, with the cost; no gate |
| Does an arm deliver on demand? | `lazyref`, `lazyskills`, `lazysections` against `reference` | Fewer templates read per trial than `reference`'s and non-inferior on every measured axis; otherwise not shown |

Keeping the check loop is reported apart from any non-inferiority claim:
a gate passed says nothing got clearly worse, not that nothing got worse.
Templates read are counted from each trial's transcripts, every template
file, section file or skill read or loaded, once.

**Each approach in plain words** (FR-12-07):

- What it did better and worse than `none`, by radar axis.
Expand Down
15 changes: 15 additions & 0 deletions docs/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,18 @@ when:
| FR-15-04 | Self-test | `quality.py` "the latency is two repeats of 30 requests each"<br>`quality.py` "a slowed app reads slower by its delay" |
| FR-15-05 | Self-test | `quality.py` "a build that serves its page on the other Python passes portability"<br>`quality.py` "a build that boots on its own Python only fails portability"<br>`quality.py` "a build whose sign-in fails on the other Python fails portability"<br>`quality.py` "a build the other Python will not install fails portability"<br>`quality.py` "no other Python is missing, not passed" |
| FR-15-06 | Self-test | `quality.py` "a reading's environment is gone once it is read"<br>`quality.py` "a trial whose source tree is gone is missing, not lost" |

## 16 The changed tree

| ID | Kind | Checked by |
| -- | ---- | ---------- |
| FR-16-01 | Self-test | `score.py` "a changed tree is scored on every reading a build is"<br>`score.py` "a file the scorer's install writes is no unasked artifact of a changed tree"<br>`score.py` "an unchanged app that writes a secret beside its database at boot shows no churn"<br>`score.py` "a changed tree with the change's names exports no extra one, and one without them misses each"<br>`score.py` "the build is read against the build's names, the change against the change's too" |
| FR-16-02 | Self-test | `score.py` "a change keeping every interface the fixture passed reads 1"<br>`score.py` "an interface module the change broke reads 0 and is named"<br>`score.py` "a skipped or unrun interface module is not kept"<br>`score.py` "a module the fixture already failed is inherited, not the change's"<br>`score.py` "a module the change repaired reads repaired"<br>`score.py` "a build suite that ran out of time fails every interface, not missing"<br>`score.py` "interfaces read missing with no frozen baseline, no build suite, or none the fixture passed"<br>`harness.py` "a fixture whose baseline leaves an interface module unread is refused" |
| FR-16-03 | Self-test | `security.py` "a change task is read from its own scores into security-scores-change"<br>`security.py` "a changed tree that does not install loses its probes, as a build's does"<br>`quality.py` "a change task is read from its own scores into quality-scores-change" |
| FR-16-04 | Self-test | `quality.py` "a version 2 that migrates the old database keeps every record"<br>`quality.py` "a schema change shipped without a migration fails the upgrade"<br>`quality.py` "an old database rebuilt empty fails the upgrade"<br>`quality.py` "a rate the migration changes fails the invoices saved again too"<br>`quality.py` "category rates cleared or changed by the migration fail the upgrade through the exports"<br>`quality.py` "a customer the migration rewrites fails through the customer's export alone"<br>`quality.py` "a change's field dropped on an old file fails through the invoices that exercise it"<br>`quality.py` "a new jurisdiction stored with other rates fails through its invoices"<br>`quality.py` "a seeded rule that will not be deleted stops the change's invoices, never passes"<br>`quality.py` "old invoices that break on the new field fail the upgrade"<br>`quality.py` "a version 2 that will not open the old database loses the upgrade"<br>`quality.py` "every planted upgrade fault fails"<br>`quality.py` "a fixture that cannot seed leaves the upgrade missing, not failed"<br>`quality.py` "the list pages are read for the seeded identifiers alone, whatever their markup"<br>`quality.py` "an export answering an error fails the upgrade, naming its status"<br>`quality.py` "an invoice saved after the upgrade whose CSV export errs fails it"<br>`quality.py` "a change task with no starting commit leaves the upgrade missing"<br>`quality.py` "a changed tree that does not install loses the upgrade, its fixture named" |
| FR-16-05 | Self-test | `judge.py` "a changed tree that did not install goes unjudged, read from its own scores"<br>`judge.py` "a change task's trees are found by their trial, apart from the build's"<br>`judge.py` "a changed tree's bundle naming its trial in a path leaks"<br>`judge.py` "a changed tree's bundle carries the pinned change requirements, a build's none"<br>`judge.py` "a changed tree's judge is told the change extends the spec, after the build's prompt unchanged"<br>`judge.py` "a change task's judging run hands the judge the change's note and the bundle its requirements" |
| FR-16-06 | Self-test | `report.py` "a change task's security, quality and judgings go with its change score, apart from the build's"<br>`report.py` "a change reading left out takes its own readings along"<br>`report.py` "the interfaces sit on Interoperability and the data upgrade on Adaptability, once each"<br>`report.py` "a pilot round's table reads no change-task target"<br>`report.py` "a change kept, broken, lost or unread reads met, not met, not met and not measured"<br>`report.py` "a named round's change targets read whatever its build did"<br>`report.py` "a changed tree that does not install is left out of every axis but Reliability on its own radar" |
| FR-16-07 | Self-test | `archive.py` "a change task's security and quality readings and judgings are archived beside its score"<br>`archive.py` "a C1 change task's quality reading flipped in the archive fails the verify"<br>`reuse.py` "a change task comes with its arm's build trials, in a change run naming its round's fixtures"<br>`reuse.py` "a change task's score, security and quality readings and judgings come along under their own folders"<br>`reuse.py` "change tasks join a target only from the manifest its change runs took" |
| FR-16-08 | Self-test | `report.py` "a named round reads the ISO radar once a task, the build's first"<br>`report.py` "a C1 run gives lazysections and lazyrefold a verdict and a cost on each task, against none"<br>`report.py` "each task's radar reads that task's trees against `none` on the same task"<br>`report.py` "the change task's radar reads its own security, not the build's"<br>`report.py` "a named round's build radar leaves the change targets to the change task's"<br>`report.py` "each task's radar shows its own mean billed cost per trial"<br>`report.py` "a pilot round draws one radar, its trials as they are"<br>`report.py` "the summary gives a radar, a verdict and a cost for each task, each named"<br>`report.py` "a named round's report draws the change task's radar beside the build's and tables each task's axes"<br>`report.py` "a named round with no build reads its finding table from the change task's own trials and cost"<br>`report.py` "named pairs are read for every metric of a table" |
| FR-16-09 | Self-test | `report.py` "the check loop is kept on a 10 % cost drop on each task with no axis worse"<br>`report.py` "the check loop is not kept on the build task's readings alone"<br>`report.py` "a cost drop under 10 % on one task does not keep the check loop"<br>`report.py` "an axis worse on either task does not keep the check loop"<br>`report.py` "nothing flagged worse reads no degradation detected, beside the non-inferiority read apart"<br>`report.py` "an interval crossing the margin is inconclusive, never non-inferior"<br>`report.py` "the report and its full record print the registered readings"<br>`report.py` "a cost drop of exactly 10 % keeps the gate, read from the unrounded differences"<br>`report.py` "a cost drop a float's error under 10 % meets the gate"<br>`report.py` "a cost drop a float's error under 10 % reads yes in the table and keeps the loop"<br>`report.py` "C1 reads an axis non-inferior only with its lower bound strictly above minus the margin"<br>`report.py` "a round running none of the registered pairs prints none of them" |
| FR-16-10 | Self-test | `report.py` "an arm delivers on demand only reading fewer templates than reference and non-inferior to it"<br>`report.py` "an arm whose reads were not counted is not shown on demand"<br>`report.py` "each task's templates read are counted from its own transcripts, a section file by a read or a shell command"<br>`report.py` "a task's reading left out of the report counts no template use on that task"<br>`report.py` "a wildcard read of one skill's folder counts that skill once, another file there none"<br>`report.py` "a skill's file read or shell-read is that skill used, once with its loading" |
1 change: 1 addition & 0 deletions docs/decisions/023-the-iso-radar.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ split; `#N` is in this repository; a dash means none.
| 2026-11-04 | From round 6 the radar reads ISO/IEC 25010:2023: eight axes, the share of targets met, markers past a margin, cost above | The pilot's radars read the benchmark's rows, not the software's qualities; the spike in #118 settled the chart | #121 |
| 2026-11-14 | Rule 10 and alternative E: from round 6 the verdict in the text reads the radar's markers, as ADR-024 decides | Round 5e read by the radar showed the verdict and the chart disagreeing | #165 |
| 2026-11-15 | Round 6's targets: one per hidden-suite build module for correctness, one per quality probe, latency against a cutoff registered later; a pilot round's draft keeps its own | Round 5e read by the radar showed Functionality, Performance and Flexibility at 100 % for every arm | #155, #119 |
| 2026-11-15 | Round 6's change task: its interfaces one target on Interoperability, its data upgrade one on Adaptability, each read once, whatever the build did | Round 6 reads every axis on the change task, and Interoperability had no target | #178, #158 |
Loading
Loading