Repository navigation
fix(efficacy): the web probe signs in, and axe counts WCAG A and AA only - #180
Merged
Merged
Conversation
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
3 tasks done
…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
Contributor
Author
|
Codex round 1:
|
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
Contributor
Author
|
Codex round 3 (after the 401/403 fix): no findings. Ready for the owner's approval. |
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
/sign-in, under 1 KBlandmark-one-main,region(best practice)Rescored on two 5e builds with the fixed probe:
none-1labelon the builder)inline-1Rules:
What changed where:
tests/efficacy/probes.pyAXE_SCRIPT,wcag_violations, stand-in app in 4 modes, 5 new checksdocs/requirements.md,docs/coverage.mddocs/architecture/08-crosscutting-concepts.mdtrace.pyPASS, pyflakes cleanCloses #175, closes #154.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DpT5xQh3AgRFs2tJwMT4g3