Rule handbook metadata
- Rule
DET.APP.PRIMARY_STATE· lanedeterministic- Page status
- current
- page_version
2b2cf27faeb1cb5db1a2148238c35353aed9eb178fba646d959c6e72ff456faf- generated_at
- 2026-05-28T17:05:34.727Z
- registry_fingerprint
aef1de6082cf0f50d463783c843dee0ffb9132fbd5ed4ea6e5bb3f031f359c72
How this rule is fixed
Pilot deterministic fixer: handbook_after · harness mode standalone, live_scenario · verify expect_rule_clean.
- Harness:
apply-harness-fixture-remediation.pycopies the After example HTML from this handbook page onto the defect fixture, theninvoke-det-ruleset-remediation-verify.shre-audits and expects zero findings for this rule. - Production sites:
run-website-ux-remediation-loop.shrunshandbook_html_patch(HTML patches inlib/ux-deterministic-fixers/fixers/patches/) before invoking the Cursor agent when the quality gate still fails.
Detection module: docs/design/ux-audit/deterministic-design-rules.md#det-app-primary-state. Scroll down for Before / After examples and Evidence and remediation steps.
Purpose
Per active workspace, at most one visible [data-studio-primary-state] or .studio-state--* region.
Before example
Before (failing example)
Running…
Completed
After example
After (passing example)
Running…
Completed
Evidence and remediation
Run generator/build_rule_defect_fixtures.py and auditor-tests/invoke-det-ruleset-harness.sh --only-rule DET.APP.PRIMARY_STATE.