Repository navigation
feat(efficacy): read each build's reliability, performance and portability - #181
Conversation
…ility - quality.py, beside security.py: a fresh venv per scored trial on Python 3.12, one in-process run through the test client, signed in as the seeded administrator; readings under quality-scores/<trial>.json. - Probes: fuzz_robustness, concurrent_writes, latency_p95_ms (two repeats, no threshold yet), capacity_500_lines, n_plus_one, coexistence, and python_portability on Python 3.14. - A probe the build keeps from running is lost and reads failed; one the reader could not run is missing; a stalled run keeps what it read. - Fuzzed integers stay within SQLite's 64-bit range: the spec sets no upper bound on a quantity or an id. - Self-tests plant each fault on a stand-in app; FR-15-01 to FR-15-06, FR-14-01 extended, coverage rows, AGENTS.md, trace.py, building blocks. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
…line Codex round 1 on the quality reader: - Hidden fields are read with an HTML parser, so a single-quoted CSRF token signs in. - The sign-in holds only where the dashboard then answers 200; a 401, or a 403 to a request carrying its token, is the sign-in turning it away, like its redirect, and the probe is lost. - The 500-line probe passes only where the export holds all 500 lines and the preview and the page show every line and the export's total. - Stand-in modes: single-quoted sign-in, `refusing` (401), `forbidding` (403 on bad input), `truncating` (keeps 100 lines). Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
|
Codex round 1:
Each check fails with its fix removed. Also merged #180's 401/403 fix. |
|
Codex round 2:
|
Codex round 2 on the quality reader: - The export must list all 500 lines in order, each a record with a sku and an integer quantity; a null or malformed line fails, never missing. - The preview and the page are read by the invoice's total alone, matched however it is grouped and beside any currency sign; row counting in HTML is dropped, so a page that paginates its rows passes. - A fault mode's check now needs its probe failed, not merely unpassed. - Stand-in modes: `paginating` (passes), `miscounting`, `nulling`; pages write grouped amounts beside the euro's sign. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
… times 100 Codex round 3 on the quality reader: - The CI loop runs quality.py's self-test, so the trace finds its output; trace.py's self-test checks the loop covers every module it reads. - Totals are matched with character references resolved, so ` ` and ` ` group thousands. - The 500 lines are SEE-5 at multiples of 6: zero-rated, priced per line, each net a whole 15.00, so the price is linear; the first 100 priced alone must cost a fifth of the 500-line total, within a cent. - Stand-in mode `capped` prices 100 lines while exporting 500; the preview writes its total with ` `. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
|
Codex round 3:
|
|
Codex round 4:
|
…ails Codex round 4 on the quality reader: - Hidden fields are read per form: a post carries the fields of the first form whose action resolves to its path, else the page's first of each name; `formaction` is not read, by design. - An export total that is not a finite amount, NaN or Infinity, fails the 500-line probe as malformed output, never reads missing. - Stand-in pages carry a sign-out form with another token, before the main form on the products page and after it elsewhere; mode `unpriced` exports its total as NaN. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
|
Round 4 fixes pushed (75b34fe): a post carries its own form's token; a NaN total fails capacity. |
|
Codex round 5: two P2s, fixing — a SQLite file URI on Windows misread as a stray path (coexistence false fail); an app pricing no lines passed the one-fifth check (now needs a positive total). |
Codex round 5 on the quality reader: - A database opened by a `file:` URI is read back to the path it names, its query dropped, its escapes undone, `/C:/...` read as a drive, so an isolated build no longer reads as writing outside its folder. - The 500-line total must be positive before it is scaled: every line is a Seed pack at six or more, which costs more than nothing. - Stand-in modes open their databases by URI with `?mode=rwc`; mode `free` prices every line at nothing while exporting all 500. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
|
Codex round 6: two P2s. (1) Any amount on the page could stand in for the total: by design, amounts are now read only from the JSON export, at 500 and 100 lines; pages are read for answering. (2) A writer outliving its join could trip the next probe: concurrent writes runs last, and a hung writer fails it. |
Codex round 6 on the quality reader: - Capacity reads no amount from HTML: the 500-line invoice previews, saves and renders 2xx; its export lists every line with a finite, positive total; a 100-line invoice of its first lines, saved alone, exports a fifth of that total within a cent. - The separator parser and the page-total stand-ins go. - Concurrent writes run last, on a fresh instance of their own: a writer the build hangs fails them and stops the run, every reading before it kept; no product fuzzing stored reaches them. - Stand-in modes `hanging` and `poisoned`; the self-test waits 5 s for a writer. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
- The comment above the fuzz rule states that only the malformed requests' own answers are read, never a later page after one stored an extreme value: the spec bounds no price's size, so it defines no answer. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
|
Round 6 fixes pushed (93a0609, 906548f). Codex round 7:
|
…s form Codex round 7 on the quality reader: - Each malformed request goes to a fresh instance on its own database, signed in afresh, so no case meets what another stored. - A case sent with its form's token whose form page does not answer 200 fails as its form not reached, never as a handled refusal. - Stand-in mode `unformed` answers 500 on its rules page; `poisoned` now passes fuzzing with every case reaching its route. - On the reference, fuzzing takes about 22 s, 0.47 s a case. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
…port fails Codex round 8 on the quality reader: - archive.py keeps quality-scores/ among its readings, hashed into the stamp, refuses to run beside a live quality.py claim, and drops the quality reader's leftover environments. - reuse.py copies a trial's quality reading with it. - The 500-line probe needs a 2xx export, for both invoices, before it reads the lines and the total; stand-in mode `unexported` answers 500 with valid JSON. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
|
Round 8 fixes pushed (be75b63). Codex round 9: two P2s, fixing — the save control's |
…e counts Codex round 9 on the quality reader: - A post carries the fields of the form that sends it there: by its action, or by a submit control's `formaction`, a control outside the form linked by its `form` id included. - Every file opened to write is recorded from before the package's import; co-existence fails on any outside the workspace and the reader's database root, read again as the run ends. - The temporary folder is asked for before the watch, so the standard library's own scratch-file test is not read as the build's. - Stand-ins put the sign-out form before the main form; `detached` and `plain-save` pass; `stray` writes through a handle opened at import. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
…led at once Codex round 10 on the quality reader: - Co-existence needs a 2xx product list from both instances before it compares them; a list that does not answer fails the probe. - A write outside the workspace and the reader's database root is filed to the report the moment it is seen, and the reader folds it into co-existence, so a run killed later keeps it. - Stand-in modes `unlisted` (the second instance's list answers 500) and `late-stray` (writes outside on its first malformed request, then hangs). Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
|
Codex round 10 (gpt-6-astra, high): 2 findings, both fixed in 41aca91.
Quality self-test 53/53, trace 0 problems. Round 11 running. 🤖 Generated with Claude Code |
…se is no write Codex round 11 on the quality reader: - A trial whose source tree is not present, as an archived round leaves it, has every probe missing with "source tree not present"; nothing is installed and the tree is not restored. - A database opened by a `file:` URI with `mode=ro` is traced but not read as a write, so it is no stray for co-existence. - Stand-in mode `reader` reads a database outside its folder read-only and passes. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
…ay alone - "a slowed app reads slower by its delay" now needs each repeat's p95 of the 20 ms-delayed stand-in to be at least 20 ms, and no longer compares it with the sound run's, which read the machine's load. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
|
Codex round 11 (gpt-6-astra, high): 2 findings, both fixed in ab0c9c8.
Also 9d82672: the latency self-test checks each slowed p95 is at least its 20 ms delay, no longer against the sound run (machine load made it flaky). Self-test 55/55, trace 0 problems. Round 12 running. 🤖 Generated with Claude Code |
Codex round 12 on the quality reader: - Every redirect's `Location` is resolved against the path the answer was asked on, with `urljoin`, before it is matched or fetched, so a relative `invoices/1` after `POST /invoices` names the invoice page; the sign-in's redirect is read the same way. - Stand-in mode `relative` answers a save with that relative form and reads as the sound app on capacity, N+1 and latency. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
|
Codex round 12 (gpt-6-astra, high): 1 finding, fixed in 70e5755.
Self-test 56/56, trace 0 problems. Round 13 running. 🤖 Generated with Claude Code |
|
Codex round 13 (gpt-6-astra, high): no findings.
🤖 Generated with Claude Code |
…ters - The self-test shortened the reader's wait for concurrent writers to 5 s for every stand-in mode; under load a sound stand-in's 40 writes could outlast it, read as hung, and fail a mode's "no other probe" check. The short wait now applies to the `hanging` mode alone; every other mode keeps the reader's own 120 s. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
- The `late-stray` check kills its run in fuzzing to prove a stray write survives the kill. At 40 s a slow or loaded runner could be killed before co-existence ran, so the check would read the machine; at 120 s it has ample margin. What the check asserts is unchanged. Refs #119. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
…so-targets - `archive.py` and `reuse.py` take #181's versions whole: one `quality-scores` in each `READINGS`, `quality.py` in `AREA_TOOLS`, and #181's checks in place of this branch's duplicates. - FR-13-21 keeps the reuse rule, now covered by #181's reuse check. - A report check builds readings with quality.py's own functions, so the quality targets read its lost and missing states, a gone source tree, and the 500-line probe as the reader files them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3
|
Two self-test flakes fixed after round 13 (no rule changed):
Self-test 56/56 three runs in a row. Round 14 running. 🤖 Generated with Claude Code |
|
Codex round 14 (gpt-6-astra, high): no findings.
🤖 Generated with Claude Code |
A new reader,
quality.py, gives the ISO radar's thin axes probes of their own. It sits besidesecurity.pyand has the same shape: a fresh venv per trial, one script run in process, one reading per trial underquality-scores/.fuzz_robustnessconcurrent_writeslatency_p95_mscapacity_500_linesn_plus_onecoexistencepython_portabilityReference implementation: passes every probe (p95 about 4 ms).
Rules:
A probe the app keeps from running reads lost (failed), with the reason.
A probe this reader could not run reads missing, never passed.
Every probe reads the app signed in, as the web probe does since fix(efficacy): the web probe signs in, and axe counts WCAG A and AA only #180.
Self-test 31/31: each probe's fault planted in a stand-in app, plus a bouncing (sign-in redirect) mode
Each of 19 rules removed in turn: a check fails every time
trace.pyPASS (107 rules), pyflakes cleanNot yet read by the report: the ISO wiring and qualification on 5e's builds come next (Round 6: Functionality, Performance and Flexibility read 100 % for every arm #155)
Stacked on #180. Refs #119, #158.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3