Repository navigation
fix(rules): an unconfirmed control resolves the prior fail it replaced #935 - #936
Conversation
…#935 A page whose only finding moved from <check> to <check>-unconfirmed (pub#921) never reported <check>, so the resolution signal listed it as not evaluated and the merge carried the old fail forever. The signal now counts a <check>-unconfirmed page as evaluated for an existing <check> key, and a page evaluated for <check> as evaluated for an existing <check>-unconfirmed key. Pages the rule said nothing about still carry. Also refresh the seven rules' solution text: <style> rules squirrel can decide count, the rest are reported as unconfirmed. Signed-off-by: Nik Cubrilovic <[email protected]>
|
Reviewed the source changes in
I found no critical or high-severity issues. The change is small and consistent, and the suffix constant now has a single definition. |
Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review triage. None of these points needs a code change:
|
|
Local CI evidence while GitHub Actions is billing-locked; merge pending. Every ci.yml and dco.yml step was replayed at 45b128a on bun 1.4.0, and all pass. That covers quality, all 6 test suites (13,883 tests), engine goldens 209, docs check, build and validate, CLI compile with the embedded rules version, dependency audit, detect-secrets 1.5.0, DCO and the CHANGELOG duplicate check. |
Signed-off-by: Nik Cubrilovic <[email protected]>
|
Reviewed the diff. I didn't run the tests. I found no correctness, security or performance problems. The change to
The new
|
|
Review of PR 936 (pub#935: an unconfirmed row resolves the prior base-check fail). I read the diff only and did not run the tests.
The overall approach is sound and the tests are thorough. I'd resolve the first point before merging. |
|
Triage of the review at 6e942cd. None of these points needs a code change:
|
Closes #935.
Problem
Since #921 the hidden-control a11y rules report a control a
<style>rule may hide as a<check>-unconfirmedwarn row instead of the<check>fail. A page whose only finding moved from<check>to<check>-unconfirmednever reported<check>this run, so the resolution signal listed it as not evaluated for<check>, andcomputeMergecarried the previous audit's fail forever, beside the new unconfirmed warn.Fix
In
collectResolutionEvidence(packages/rules/src/resolution.ts), shared by both signal encoders:<check>-unconfirmedrow counts as evaluated for an existing<check>key (no key is created), so its prior<check>fail resolves unless the page still fails<check>;<check>counts as evaluated for an existing<check>-unconfirmedkey, so a prior unconfirmed warn resolves once the control is named and the page passes;notEvaluatedand keeps carrying.The suffix is a shared constant,
UNCONFIRMED_CHECK_SUFFIXin core-contracts, used byunconfirmedRow(static-hidden) and aria-hidden-focus.The seven rules'
solutiontext still said squirrel does not read<style>blocks. It now says decidable<style>rules count and the rest are reported as unconfirmed. The private bump regenerates the rules catalog for this.Acceptance criteria
aria-command-namefail on A, merged with a run that emits onlyaria-command-name-unconfirmedon A, resolves. Covered byaudit-engine/tests/unconfirmed-resolves-prior-935.test.ts, which uses the real rules,buildResolutionSignaland the cloud merge.notEvaluatedand its prior fail stays open, in every case.buildResolutionSignaland the merge and covers both cases, plus a direct signal assertion. It failed 0/9 before the fix.Unit tests are in
rules/tests/resolution-compact.test.ts, legacy and compact shapes. They cover:Checks
*golden*suite (198) pass.--strictand check-links pass.squirrel skill impact
None. No CLI flags, output format or report fields change.