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
13 changes: 13 additions & 0 deletions docs/architecture/08-crosscutting-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ The margins:
| Security probe pass rate | pp | 2 | 9 | round 3 |
| Data-protection probe pass rate | pp | 10 | 30 | round 3 |
| App code, lines and files | relative % | 20 | 40 | round 5 |
| The ISO radar's axes, share of targets met | points | 5, Reliability 7 | 10 | round 6 |

**Rules**

Expand Down Expand Up @@ -591,6 +592,18 @@ its rows better than `none` minus the share worse, from −1 to +1. It comes
as two SVGs, light and dark. Round 5d registers a radar sized by how far
each row moved instead.

**The ISO radar** (FR-12-12). From round 6 the axes are the eight
characteristics of ISO/IEC 25010:2023, in the standard's order, and each is
the share of its targets met: the `QT` rows of the requirements, each a pass
or a fail per build. A sub-characteristic's share is averaged over the axis,
then over the arm's trials; one with no target reads not measured, never 0 %.
A build that does not install or boot fails Reliability's first target and
is left out of every other axis. A marker turns only where the whole
interval of the difference against `none` lies past the axis's margin
(8.1.2): a filled ▲ up, a hollow ▽ down, a dot within. The cost sits above
each radar, shown and not scored, and the appendix holds one table of
sub-scores per axis. The decision is ADR-023.

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

- What it did better and worse than `none`, by radar axis.
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 @@ -60,6 +60,7 @@ report shows first.
| [ADR-003](../decisions/003-k-blocks-and-escalation.md) | A round fixes K before its first trial, 15 from round 5, and no run goes past it; the escalation of rounds registered at K = 3 retired with them | Accepted |
| [ADR-013](../decisions/013-what-the-report-opens-with.md) | The report opens with the finding table, and keeps the score table only for contrasts between two files | Accepted |
| [ADR-015](../decisions/015-contrasts-and-verdicts.md) | A contrast gets a verdict only when both its arms run in the same round | Accepted |
| [ADR-023](../decisions/023-the-iso-radar.md) | From round 6 the radar reads ISO/IEC 25010:2023: eight axes, each the share of its targets met against `none`, a marker only past the axis's margin, the cost shown above | Accepted |

## 9.5 Running and keeping a round

Expand Down
4 changes: 4 additions & 0 deletions docs/architecture/10-quality-requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ measurable.
The measurements behind them, the hidden suite's validation, the trial
bounds and every run of the judge's control fixture, are in
[validation.md](../validation.md).

The targets the app under test is scored on, the `QT` rows of the same file,
are the report's radar from round 6 (ADR-023): one row per target, under the
standard's characteristic it refines.
1 change: 1 addition & 0 deletions docs/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ when:
| FR-12-07 | Self-test | `report.py` "the report names each approach and its verdict in plain words"<br>`report.py` "a better primary and no worse answers Yes"<br>`report.py` "a worse primary answers Worse"<br>`report.py` "nothing separated answers No" |
| FR-12-09 | Self-test | `report.py` "withdrawal blanks every value of the row"<br>`report.py` "its verdict vector row reads withdrawn"<br>`report.py` "the withdrawal section names it and why"<br>`report.py` "a run graded by another revision withdraws nothing"<br>`report.py` "a metric not withdrawn keeps its verdict" |
| FR-12-10 | Self-test | `score.py` "a score on another Python refuses the root"<br>`report.py` "scores on two Pythons are refused"<br>`report.py` "a run graded by another revision withdraws nothing" |
| FR-12-12 | Self-test | `report.py` "a sub-score is the share of its measured targets met, and one with none reads not measured"<br>`report.py` "an axis is the mean of its measured sub-scores, each weighing the same"<br>`report.py` "an arm is the mean over its trials"<br>`report.py` "a broken build counts against Reliability only"<br>`report.py` "a marker turns only past the axis's margin"<br>`report.py` "an axis that could not be read carries no marker"<br>`report.py` "the move shown is the contrast's mean over the blocks it paired"<br>`report.py` "a withdrawn metric's target is not measured"<br>`report.py` "an axis contrast over fewer pairs than blocks names its count"<br>`report.py` "the aggregate keeps the ISO reading where the round draws it"<br>`report.py` "the plain words follow the ISO markers, with the cost on its own line"<br>`report.py` "an axis not measured leaves no vertex, unlike a measured 0 %"<br>`report.py` "every axis label fits inside the image and clear of the other panel"<br>`report.py` "every target reads a metric row, a probe or a reading of the radar's own"<br>`report.py` "every axis carries a margin"<br>`report.py` "the tables mark a thin sub-characteristic and read an empty one as not measured"<br>`report.py` "the ISO radar draws a panel per arm with its cost, the target ring, the markers by shape, in both themes"<br>`report.py` "an axis label reads its share and its move past the margin"<br>`report.py` "a round after the pilot draws the ISO radar, and the pilot its own"<br>`report.py` "a later round's report, appendix and images carry the ISO radar" |

## 13 Records and archive

Expand Down
90 changes: 90 additions & 0 deletions docs/decisions/023-the-iso-radar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
id: "023"
status: Accepted
date: 2026-11-04
category: report
supersedes: []
superseded_by: []
---

# ADR-023: The report's radar reads ISO/IEC 25010:2023

## Context

The pilot's radars were built from what the benchmark happened to measure.
Round 5c's axes were reliability, security, data protection, design,
maintainability, tests and economy, each the share of its rows better than
`none` minus the share worse; round 5d's plotted how far each row moved
over a full scale of its own. Neither says what a backend's quality is, only
which rows moved, and a reader of two rounds could not lay their radars side
by side. The spike of 2026-11-02 (#118) proposed one radar on the
standard's own characteristics, scored as the share of targets met, and the
benchmark proper starts with round 6.

## Decision

From round 6 the report's radar has the eight characteristics of ISO/IEC
25010:2023 as its axes, in the standard's order, each scored as the share of
its targets met and read against `none`, with a marker only past the axis's
margin, a broken build counted against Reliability alone, and the cost shown
above the chart; round 5d's size-based radar stays with round 5d.

## Rationale

- The axes are the standard's, so a radar from any round, or any other
system, reads the same way, and a thin axis shows as a gap to fill rather
than being left off.
- A target met or not lands every axis on one scale, 0 to 100 %, which a
reader takes in at a glance; the rows behind it stay in the appendix.
- A marker past a margin sized from the pilot's noise keeps a few points of
drift from reading as a difference.
- A build that will not install or boot already fails the Reliability
target; failing every other axis with it would count one fault eight
times.

## Design

| # | Rule | In practice |
| - | ---- | ----------- |
| 1 | Eight axes, the standard's order | Functionality, Performance, Compatibility, Usability, Reliability, Security, Maintainability, Flexibility; Safety does not apply to this backend |
| 2 | A target is pass or fail | Each sub-characteristic lists its targets as `QT` rows in the requirements, fixed before round 6's first trial, and changed only by a new registration |
| 3 | A sub-score is the share of targets met | Over the targets measured; a sub-characteristic with no measured target reads not measured, never 0 %, and one with fewer than three is marked |
| 4 | An axis is the mean of its sub-scores | Each sub-characteristic weighs the same, however many targets it has |
| 5 | An arm is the mean over its trials | A median would hide a few broken builds |
| 6 | A broken build counts once | A build that does not install or boot fails Reliability's first target and is left out of every other axis |
| 7 | A marker only past the margin | ▲ where the whole interval of the difference against `none` lies past the axis's margin upward, ▽ downward, a dot otherwise; the margin is half the pooled within-arm standard deviation of the axis in round 5c, rounded up, never under 5 points |
| 8 | Shape as well as colour | Filled up, hollow down, a dot, so the chart reads in black and white |
| 9 | Cost shown, not scored | Dollars per run and the multiple of `none`, centred above each radar |
| 10 | No verdict on the chart | The report's text gives it; the radar describes and decides nothing |
| 11 | One table of sub-scores per axis | In the appendix: each sub-characteristic, each arm's share, the targets, and each arm against `none` with its interval |
| 12 | The pilot keeps its radars | A run holding a round-5 or round-5d arm draws the radar its registration states; every other run draws this one |

## Alternatives considered

| # | Alternative | Outcome |
| - | ----------- | ------- |
| A | The standard's characteristics, each the share of targets met | Chosen |
| B | Keep round 5d's radar by size | Why not: its axes are the benchmark's rows, not qualities, and a 1-point judge move and a 200 % cost move share one scale |
| C | Weight each target the same across an axis | Why not: a sub-characteristic with many probes would swamp one with a single target |
| D | Markers from the arm means alone, no margin | Why not: two means a few points apart would turn a marker on noise |
| E | A verdict word on the chart | Why not: the chart describes; the verdict rests on the deciding rows in the text |

## Consequences

| Consequence | Effect |
| ----------- | ------ |
| The requirements gain `QT` rows | One per target, numbered by the standard's characteristic, fixed before round 6's first trial |
| Thin axes show as gaps | Performance, Compatibility, Usability and Flexibility rest on one or two targets or none until the probes for them land (#119) |
| The margins are sized from round 5c | Recorded in the validation notes; Reliability's 7 points is one build of 15, as round 5d had it |
| Round 6's registration names the radar | Its targets, its margins, and how a run of round 6 is told apart from the pilot's, whose arm names it may reuse |
| Round 5d's report is unchanged | Its radar is registered; this one describes rounds from 6 |

## History

Every change to this decision, oldest first. An issue `solid-ai-templates#N`
is in `solid-ai-dev/solid-ai-templates`, where the benchmark lived until the
split; `#N` is in this repository; a dash means none.

| Date | Change | Why | Issue |
| ---- | ------ | --- | ----- |
| 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 |
103 changes: 101 additions & 2 deletions docs/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
- **Terms:** defined in the [glossary](architecture/12-glossary.md). The
reasons behind each rule are in
[chapter 8](architecture/08-crosscutting-concepts.md).
- **IDs:** `FR-<capability>-<n>` or `QG-<characteristic>-<n>`; cite a
requirement by its ID.
- **IDs:** `FR-<capability>-<n>` or `QG-<characteristic>-<n>` for the
benchmark, `QT-<characteristic>-<n>` for a target the app under test is
scored on; cite a requirement by its ID.
- **Numbering:** a new requirement takes the next free number; a removed
ID is never reused. Before the baseline, a section may be renumbered.
- **Baseline:** none declared yet, so a requirement may still be reworded
Expand Down Expand Up @@ -176,6 +177,7 @@
| FR-12-09 | The benchmark shall blank a withdrawn metric on every run its grader's revision graded, and keep it on the others. | Report |
| FR-12-10 | The benchmark shall fix a fault found in its instruments, validate the fix, re-score in full every round that reads the faulty scores, and replace each report with a dated note keeping the verdicts it replaces. | Scorer, Report, Owner |
| FR-12-11 | Removed: merged into FR-12-10. | - |
| FR-12-12 | From round 6 the benchmark shall draw one radar per file arm against `none` on the eight ISO/IEC 25010:2023 characteristics, each axis the share of its targets met, with a marker only past the axis's margin, a broken build counted against Reliability alone, the cost shown above and one table of sub-scores per axis in the appendix. | Report |

### 13 Records and archive

Expand Down Expand Up @@ -268,3 +270,100 @@
| Self-tests | Each script's `--self-test`, which plants the case each rule guards against. | QG-01-05, QG-05-01, QG-05-02, QG-06-01, QG-06-02, QG-07-01 |
| CI runners | `ubuntu-latest` and `windows-latest`, Python 3.12, stub agent CLIs that refuse to run. | QG-07-01, QG-08-02 |
| Private archive | `braboj/tariff-runs`, each round's run root and readings. | QG-05-03, QG-06-03 |

## Quality targets of the app under test

- **Use:** the report's radar scores every build on ISO/IEC 25010:2023, each
axis the share of its targets met. These are the targets.
- **Numbering:** characteristics in the standard's order, as the quality
requirements above; a sub-characteristic with no target is not listed, and
reads not measured in the report.
- **Target:** a pass or a fail per build. "The judge reads it as 3 or better"
is the mean of the judge's three readings on its 1 to 5 scale.
- **Fixed:** before round 6's first trial, for this app; a change is a new
registration.
- **Read from:** the scorer's row, the probe, or the judge's row the target
reads; a build the reading did not reach is not measured, never a fail.

### 01 Functional suitability

| ID | Sub-characteristic | Target | Read from |
| -- | ------------------ | ------ | --------- |
| QT-01-01 | Functional completeness | Every name the specification requires is exported. | Specified names missing |
| QT-01-02 | Functional correctness | The hidden suite passes at 98 % or more. | Hidden-suite pass rate |
| QT-01-03 | Functional appropriateness | Nothing nobody asked for is delivered. | Artifacts nobody asked for |

### 02 Performance efficiency

| ID | Sub-characteristic | Target | Read from |
| -- | ------------------ | ------ | --------- |
| QT-02-01 | Resource utilisation | The invoice builder answers in 100 KB or less. | Invoice builder response size |
| QT-02-02 | Resource utilisation | The invoice builder makes at most 3 subrequests. | Invoice builder subrequests |

### 04 Interaction capability

| ID | Sub-characteristic | Target | Read from |
| -- | ------------------ | ------ | --------- |
| QT-04-01 | Operability | The HTML is valid. | HTML validity errors |
| QT-04-02 | Inclusivity | No WCAG 2.1 AA violation. | Accessibility violations |

### 05 Reliability

| ID | Sub-characteristic | Target | Read from |
| -- | ------------------ | ------ | --------- |
| QT-05-01 | Faultlessness | The build installs and boots. | Installs and boots |
| QT-05-02 | Faultlessness | At most 10 type errors per KLOC under `mypy --strict`. | Type errors per KLOC |
| QT-05-03 | Fault tolerance | A malformed request leaks no stack trace. | Probe `error_leakage` |

### 06 Security

| ID | Sub-characteristic | Target | Read from |
| -- | ------------------ | ------ | --------- |
| QT-06-01 | Confidentiality | Passwords are hashed at rest. | Probe `password_at_rest` |
| QT-06-02 | Confidentiality | Sign-in does not tell an account from a stranger. | Probe `account_enumeration` |
| QT-06-03 | Confidentiality | No hard-coded secret key. | Probe `secret_key` |
| QT-06-04 | Confidentiality | The session cookie carries its flags. | Probe `cookie_flags` |
| QT-06-05 | Integrity | Sign-in refuses a post without a token. | Probe `sign_in_csrf` |
| QT-06-06 | Integrity | A form refuses a post without a token. | CSRF refused without a token |
| QT-06-07 | Integrity | No open redirect. | Probe `open_redirect` |
| QT-06-08 | Integrity | No SQL assembled from strings. | Probe `sql_strings` |
| QT-06-09 | Integrity | A stored payload renders inert. | Stored payload renders inert |
| QT-06-10 | Resistance | Debug is off. | Probe `debug` |
| QT-06-11 | Resistance | The security headers are set. | Probe `security_headers` |
| QT-06-12 | Resistance | No vulnerable dependency. | Probe `vulnerable_dependencies` |
| QT-06-13 | Resistance | No high or medium `bandit` finding. | Security findings, high and medium |
| QT-06-14 | Resistance | The judge reads its security as 3 or better. | Judge, security |
| QT-06-15 | Data protection | Personal data stays out of the log. | Probe `log_leak` |
| QT-06-16 | Data protection | Erasure leaves no residue. | Probe `erasure_residue` |
| QT-06-17 | Data protection | An export holds its own data only. | Probe `export_scope` |
| QT-06-18 | Data protection | The judge reads its data protection as 3 or better. | Judge, data protection |

### 07 Maintainability

| ID | Sub-characteristic | Target | Read from |
| -- | ------------------ | ------ | --------- |
| QT-07-01 | Modularity | No module `import tariff` loads reaches Flask or the database. | Layering violations |
| QT-07-02 | Modularity | No two modules import each other. | Mutually importing module pairs |
| QT-07-03 | Modularity | The judge reads its design as 3 or better. | Judge, design |
| QT-07-04 | Modularity | The judge reads its single responsibility as 3 or better. | Judge, SRP |
| QT-07-05 | Analysability | At most 100 lint findings per KLOC. | Lint findings per KLOC |
| QT-07-06 | Analysability | The formatter would change no file. | Files the formatter would change |
| QT-07-07 | Analysability | No function over cognitive complexity 15. | Functions over complexity 15 |
| QT-07-08 | Analysability | Half the definitions carry a docstring. | Docstring coverage |
| QT-07-09 | Analysability | The judge reads its readability as 3 or better. | Judge, readability |
| QT-07-10 | Modifiability | No conditional ladder over rule kinds. | Conditional ladders over rule kinds |
| QT-07-11 | Modifiability | No boolean parameter. | Boolean parameters |
| QT-07-12 | Modifiability | At most 5 unused names per KLOC. | Unused names per KLOC |
| QT-07-13 | Modifiability | The judge reads its maintainability as 3 or better. | Judge, maintainability |
| QT-07-14 | Modifiability | The judge reads its openness to extension as 3 or better. | Judge, OCP |
| QT-07-15 | Modifiability | The change task passes 90 % of its checks. | Change task, acceptance pass rate |
| QT-07-16 | Modifiability | The change task keeps 98 % of the build suite. | Change task, build suite pass rate after it |
| QT-07-17 | Testability | Its own tests pass. | The trial's own tests |
| QT-07-18 | Testability | Its own tests cover 80 % of the lines. | Line coverage of the trial's own tests |
| QT-07-19 | Testability | The judge reads its tests as 3 or better. | Judge, test quality |

### 08 Flexibility

| ID | Sub-characteristic | Target | Read from |
| -- | ------------------ | ------ | --------- |
| QT-08-01 | Installability | `pip install .` succeeds in a clean environment. | Installs in a clean environment |
Loading
Loading