Skip to content

refactor(gate): single gate-selection authority, drop duplicate rules - #116

Merged
DTALEX66 merged 1 commit into
mainfrom
feat/wl3-800-registry-dedup
Aug 15, 2026
Merged

refactor(gate): single gate-selection authority, drop duplicate rules#116
DTALEX66 merged 1 commit into
mainfrom
feat/wl3-800-registry-dedup

Conversation

@DTALEX66

Copy link
Copy Markdown
Owner

Summary

WL3-800 — Gate/CI dedup (research subagent identified 4-5 duplicate
gate-selection rules). PR #113 already hardened the aggregate (A1-A8); this PR
collapses the remaining duplicate selection rules to one authority.

Changes

  • impact_planner.py — dropped the hardcoded critical prefixes
    (00-governance/**, .github/**, scripts/ci/**): they are already
    matched by risk_zones.critical in the project profile. Only unknown paths
    keep the fail-closed critical. (Removes duplicate rule feat(observer): add user-visible read-only dashboard #1.)
  • scripts/ci/emit_gate_plan.pyrun_* GitHub outputs are now generated
    from the profile gates: keys instead of a hardcoded 5-gate tuple, so
    adding/renaming a gate no longer requires touching CI emit code. (Removes
    duplicate rule feat(observer,r2): four-view UI + cross-project projection + WL matrix #2.)
  • run_quality_gate.pyGATE_PATH_SCOPES is annotated as a local
    convenience mapping; the canonical selection authority is the profile
    gates: consumed by impact_planner + emit_gate_plan. (CI never reads this
    table — documented, not deleted, to avoid breaking the local gate UX.)

Verification

  • 17 passed (impact planner / project profile / gate vocabulary)
  • 111 passed + 25 subtests (tests/ci, excluding env-dependent exact_tree_review)
  • py_compile clean; CURRENT_STATE_FRESHNESS_PASS (62b331c2)

WL3-800 dedup (research subagent: 4-5 duplicate gate-selection rules).

- impact_planner.py: drop the hardcoded critical prefixes
  (00-governance/**, .github/**, scripts/ci/**) — they are already covered
  by risk_zones.critical in the project profile; only unknown paths keep the
  fail-closed critical
- emit_gate_plan.py: run_* outputs are generated from the profile `gates:`
  keys instead of a hardcoded 5-gate tuple — adding/renaming a gate no
  longer requires touching CI emit code
- run_quality_gate.py: GATE_PATH_SCOPES is annotated as a local convenience
  mapping; the canonical authority is the profile `gates:` consumed by
  impact_planner + emit_gate_plan (CI never reads this table)

Verification: 17 passed (impact planner / profile / gate vocabulary);
111 passed + 25 subtests (tests/ci, excluding env-dependent exact_tree_review);
py_compile clean; CURRENT_STATE_FRESHNESS_PASS.
@DTALEX66
DTALEX66 merged commit c1d94ea into main Aug 15, 2026
14 checks passed
@DTALEX66
DTALEX66 deleted the feat/wl3-800-registry-dedup branch August 15, 2026 13:01
DTALEX66 added a commit that referenced this pull request Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant