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
8 changes: 7 additions & 1 deletion docs/architecture/08-crosscutting-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ The other measures, run on every trial:
| Measure | What it reads |
| ------- | ------------- |
| Install | `pip install .` in a clean virtualenv, `import tariff`, and the app serves `/` |
| Accessibility | axe-core WCAG 2.1 AA violations |
| Accessibility | axe-core rules of WCAG 2.1 A and AA violated, each by its id; axe's best-practice rules are kept apart and not counted (FR-06-07) |
| HTML validity | Errors, less those on HTMX's `hx-*` attributes, which the spec requires and HTML lacks |
| XSS and CSRF | One probe each |
| Invoice builder | Response size and request count |
Expand All @@ -266,6 +266,12 @@ The other measures, run on every trial:
| Unasked artifacts | ADR, journal, CHANGELOG, PLAYBOOK, committed bytecode or databases |
| Consistency | Each metric's spread across an arm's trials |

Accessibility, HTML validity, XSS, CSRF and the invoice builder read the
pages signed in as the seeded administrator. A page answered with the
redirect to `/sign-in` is never measured: a form row the app keeps from
running reads failed, a measured row missing, each with its reason
(FR-06-06). Rounds 5 to 5e read them unsigned, on the redirect (#175).

The adherence checklist:

| Group | Items |
Expand Down
2 changes: 2 additions & 0 deletions docs/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ when:
| FR-06-03 | Self-test | `security.py` "an application that will not boot loses every runtime probe"<br>`security.py` "an administrator that cannot sign in loses what needs one"<br>`security.py` "the lost probes count against the rate" |
| FR-06-04 | Self-test | `security.py` "no report from the probe is missing, not lost"<br>`security.py` "an audit of nothing is missing, not zero"<br>`security.py` "a report that is not JSON is missing"<br>`security.py` "no roots is missing, not zero" |
| FR-06-05 | Self-test | `report.py` "an unmeasured column reads not measured"<br>`report.py` "an unmeasured run answers Not measured in every cell" |
| FR-06-06 | Self-test | `probes.py` "the web probe signs in and reads the pages behind it"<br>`probes.py` "a post without a token and a raw name are findings once signed in"<br>`probes.py` "a refusal says nothing about the token until a post with it is stored"<br>`probes.py` "a sign-in that does not hold fails the form rows and measures nothing"<br>`probes.py` "a page refused for want of a sign-in is withheld, not measured" |
| FR-06-07 | Self-test | `probes.py` "axe counts the WCAG 2.1 A and AA rules, not its best practice" |

## 07 Maintainability

Expand Down
2 changes: 2 additions & 0 deletions docs/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
| FR-06-03 | The benchmark shall count as lost, against the rate, a probe the trial keeps from running. | Security reader |
| FR-06-04 | The benchmark shall leave the rate missing for a probe it could not run itself. | Security reader |
| FR-06-05 | The benchmark shall show an unmeasured value as not measured. | Report |
| FR-06-06 | The benchmark shall read the app's pages signed in as the seeded administrator, and never measure a page answered with the sign-in's redirect: a form row the app keeps from running reads failed, a measured row missing. | Scorer |
| FR-06-07 | The benchmark shall count as accessibility violations only the rules of WCAG 2.1 levels A and AA, and keep each violated rule's id. | Scorer |

### 07 Tools and interpreter

Expand Down
Loading
Loading