Skip to content

fix: governance state rework reset and stale auth clearing - #822

Open
davidmiuraactualai wants to merge 1 commit into
feat/pgs-plan-submissionfrom
feat/pgs-decision-engine
Open

fix: governance state rework reset and stale auth clearing#822
davidmiuraactualai wants to merge 1 commit into
feat/pgs-plan-submissionfrom
feat/pgs-decision-engine

Conversation

@davidmiuraactualai

Copy link
Copy Markdown

Summary

  • GovernanceState rework counter resets on approval (prevents cross-proposal escalation)
  • Approval without authorization clears stale auth from prior cycle
  • Added tests for Decompose/Escalate/Deny decision recording
  • 49 governance tests passing (46 original + 3 new)

Test plan

  • cargo test governance — 49 pass
  • cargo check — clean compilation
  • Adversarial review completed, 2 logic bugs fixed

🤖 Generated with Claude Code

Adversarial review found two logic bugs in record_decision:
1. rework_iterations never reset on approval — second proposal cycle
   inherited count from first, causing premature escalation.
2. Approval without authorization left stale auth from prior cycle.

Adds tests for reset behavior, stale auth clearing, and
Decompose/Escalate/Deny decision recording.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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