Skip to content

docs: chapter 8 as tables and diagrams, and a requirements list traced to self-tests - #110

Merged
braboj merged 6 commits into
mainfrom
docs/ch8-and-requirements
Nov 1, 2026
Merged

braboj merged 6 commits into
mainfrom
docs/ch8-and-requirements

Conversation

@braboj

@braboj braboj commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Chapter 8 was hard to read, so it is now tables and diagrams. Its rules move into a new docs/requirements.md, where each one names the self-test check that proves it, and a new trace.py fails CI on a rule with no check.

File Change
docs/architecture/08-crosscutting-concepts.md Rewritten: rule first, reason in a line, cases in tables; Mermaid and text diagrams. Section numbers unchanged
docs/requirements.md New: 94 rules, FR-<topic>-<n>, each with its checks
docs/architecture/10-quality-requirements.md Each Q scenario names the FR rules it rests on
tests/efficacy/trace.py New: traces every row to a label a self-test prints
.github/workflows/self-tests.yml Saves each self-test's output, adds progress and trace, then runs the trace
AGENTS.md Lists trace.py

How the trace reads a row:

FR-01-06  "a trial start with no UTC offset is refused"
          `report.py` prints that label?  yes -> checked
FR-04-03  Untestable: <reason>                -> counted, passes
FR-05-04  Gap: #109                           -> counted, passes
anything else, or a label nobody prints       -> trace fails

Today: 79 checked, 5 untestable, 10 gaps (filed as #109).

  • Each rule carries an ID, in the order it appears
  • Each rule names its checks by module and label
  • Ch. 10's scenarios keep their Q IDs and name their rules
  • The trace runs in CI and fails on a rule with no check or an unprinted label
  • Rules with no check are listed as untestable with a reason, or as a gap in Give the ten requirements marked Gap a self-test check #109

Closes #72.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DpT5xPFWEQr1bipxbbKBRF

braboj and others added 4 commits November 1, 2026 16:39
Each section now leads with its rule, gives the reason in one line, and
puts lists of cases in tables. Mermaid diagrams show the pipeline, the
escalation, blinding, the tool lock and the run claim; text diagrams show
how an interval reads against zero and the margin. Section numbers are
unchanged, since fixed registrations cite them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPFWEQr1bipxbbKBRF
…check

docs/requirements.md holds one row per rule, by topic, each naming the
self-test labels that prove it, why no script can test it, or the issue
that tracks its missing check. trace.py runs every self-test, or reads
their saved output in CI, and fails on a rule that names none of the
three or on a label no self-test prints. Chapter 10's scenarios now name
the rules they rest on, and CI runs progress.py's self-test too.

Closes #72.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPFWEQr1bipxbbKBRF
A row with an empty last cell, or trailing spaces, failed to parse and
dropped out of the trace, so its rule passed unchecked. Every line that
opens a requirement row must now parse, or the trace fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPFWEQr1bipxbbKBRF
@braboj

braboj commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Codex review, round 1: one finding.

Severity Finding Outcome
P2 A requirement row with an empty last cell, or trailing spaces, is skipped, so its rule passes unchecked Fixed: any line opening an FR- row must parse, or the trace fails. Two self-test checks, both failing on the old code

The control pads a label to 44 columns, so a longer one meets its first
tree's column after one space, and the trace read it as unprinted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPFWEQr1bipxbbKBRF
@braboj

braboj commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Codex review, round 2: one new finding.

Severity Finding Outcome
P2 A control label of 44 characters or more meets its tree columns after one space, so the trace reads it as unprinted Fixed: one space before a tree= column counts. A self-test check, failing on the old code

Markdown allows a table row a few spaces of indent, and such a row fell
out of the trace unchecked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPFWEQr1bipxbbKBRF
@braboj

braboj commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Codex review, round 3: one new finding.

Severity Finding Outcome
P2 A requirement row indented by a space is skipped, so its rule passes unchecked Fixed: each row is stripped both sides before it is parsed. A self-test check, failing on the old code

@braboj

braboj commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Codex review, round 4: no new findings. The loop ends here.

@braboj
braboj merged commit 810e51e into main Nov 1, 2026
2 checks passed
@braboj
braboj deleted the docs/ch8-and-requirements branch November 1, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Give each chapter 8 rule an ID and trace it to a self-test check

1 participant