Skip to content

fix(efficacy): the web probe signs in, and axe counts WCAG A and AA only - #180

Merged
braboj merged 3 commits into
mainfrom
fix/web-probe-signs-in
Nov 17, 2026
Merged

braboj merged 3 commits into
mainfrom
fix/web-probe-signs-in

Conversation

@braboj

@braboj braboj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

The web probe now signs in before reading any page, and axe counts only WCAG 2.1 A and AA rules. Since the spec put every page behind the sign-in, every web row read Flask's redirect stub instead of the app.

Row Before (round 5e, 134 builds) After
Pages read the 302 to /sign-in, under 1 KB the app's own pages, signed in
axe 2 a page everywhere: landmark-one-main, region (best practice) WCAG A/AA rules only, each by id; best practice kept apart
CSRF an unauthenticated post a signed-in post without the token, after one with it is stored
XSS true by default: nothing was stored read only on a stored, shown product

Rescored on two 5e builds with the fixed probe:

Build signed in axe (rules) HTML errors builder bytes
none-1 yes 1 (label on the builder) 0 1,645
inline-1 yes 0 6 5,275

Rules:

  • A page that is the sign-in's redirect is never measured.
  • A form row the app keeps from running reads failed ("lost"); a measured row reads missing, with the reason.

What changed where:

File Change
tests/efficacy/probes.py signed-in web probe, AXE_SCRIPT, wcag_violations, stand-in app in 4 modes, 5 new checks
docs/requirements.md, docs/coverage.md FR-06-06, FR-06-07
docs/architecture/08-crosscutting-concepts.md the measure table, and what rounds 5 to 5e read

Closes #175, closes #154.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3

Since the spec put every page behind the sign-in, the web probe read the
302 redirect to /sign-in on every build: axe, HTML validity, the invoice
builder's size and requests, XSS and CSRF all measured Flask's redirect
stub. The two axe violations every page showed were best-practice rules
the stub fails.

- The probe signs in as the seeded administrator before any page.
- A page that is the sign-in's redirect is never measured: a form row the
  app keeps from running reads failed (lost), a measured row missing.
- CSRF is read only after a post with the form's token is stored; XSS
  only on a product that was stored and shown.
- axe keeps each violated rule's id and tags; only WCAG 2.1 A and AA
  rules count, best-practice rules are kept apart.
- FR-06-06, FR-06-07, with self-tests on a stand-in app in four modes.

Closes #175, closes #154.

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

Codex round 1: a sign-in form with single-quoted attributes gave the regex
no token, so the probe could not sign in a working app. The stand-in's
sign-in form is now single-quoted, which fails without the parser.

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

braboj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 1:

# Sev Finding Outcome
1 P2 Hidden fields read by a regex that needs double quotes, so a single-quoted sign-in form blocks the sign-in Fixed: an HTML parser reads them; the stand-in's sign-in form is single-quoted, which fails two checks without the fix

@braboj

braboj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 2: no findings. Ready for the owner's approval.

…in needs a 200

Found while reviewing the stacked quality probes: an app answering 401 or
403 for want of a sign-in read as signed in, and its refusals were saved
and measured as pages. A stand-in mode that answers 401 fails without it.

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

braboj commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 3 (after the 401/403 fix): no findings. Ready for the owner's approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant