feat(governance): guarantee deterministic governance behavior with golden regression scenarios (#32) - #182
Merged
ElliotSun merged 2 commits intoAug 29, 2026
Conversation
…stic test harness (#32) - Add 23 read-only golden scenario fixtures under tests/fixtures/governance_scenarios/ - Implement parameterized golden regression runner in tests/test_governance_golden_scenarios.py - Assert domain invariants and byte-exact PublicGovernanceDecisionV1 serialization - Add regression tests for lifecycle states, canonical identity, reason codes, and determinism
…code matching - Lock existence and exact identity sets in physical name stability test - Enforce exact reason codes equality in domain-level scenario assertions - Remove unused monkeypatch parameter from test_fixtures_are_read_only
ElliotSun
deleted the
32-guarantee-deterministic-governance-behavior-with-golden-regression-scenarios
branch
August 29, 2026 07:31
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.
Summary
Closes Issue #32.
Creates a deterministic golden regression suite that freezes and protects authoritative M0 governance semantics across:
active,draft,deprecated,retired)GovernanceReasonCode)GovernanceDecision(v1) JSON contractIncludes 23 minimal, read-only scenario fixtures in
tests/fixtures/governance_scenarios/and a comprehensive parameterized test runner intests/test_governance_golden_scenarios.py.Architecture
semapact.governance&semapact.lifecycleGovernanceDecisionPublicGovernanceDecisionV1physicalNamedifferences do not mutate canonical identity(schema, property).Validation
uv run pytest(508 passed in ~48s)uvx ruff check . --select E9,F63,F7,F82uv buildGovernance / compatibility impact
None (Pure regression-hardening task. Does not modify production governance semantics; locks existing authoritative M0 behavior against silent regression).