Skip to content

feat: PGS domain model — governance types for CLI - #819

Open
davidmiuraactualai wants to merge 1 commit into
feat/architecture-gate-blockfrom
feat/pgs-domain-model
Open

feat: PGS domain model — governance types for CLI#819
davidmiuraactualai wants to merge 1 commit into
feat/architecture-gate-blockfrom
feat/pgs-domain-model

Conversation

@davidmiuraactualai

Copy link
Copy Markdown

Summary

  • Add Rust type system for Progressive Governance System interactions
  • GovernanceDecision enum (6 variants), PolicyStrength enum (5 RFC 2119 strengths)
  • Full governance response types: Proposal, BoundedAuthorization, ConformanceFinding
  • GovernanceState for session-level governance persistence
  • DecompositionGuidance, AdditionalContext for progressive disclosure
  • All types serde-compatible with the sprintreview API contract

Test plan

  • 16 passing unit tests for serde round-trips and field handling (red/green TDD)
  • cargo test observe::governance all pass
  • Builds with zero warnings

🤖 Generated with Claude Code

Add Rust type system for Progressive Governance System interactions:
- GovernanceDecision enum (6 variants, SCREAMING_SNAKE_CASE serde)
- PolicyStrength enum (5 RFC 2119 strengths)
- FindingSeverity enum (violation, concern, observation)
- NormativePolicyStatement, ConformanceFinding, Proposal, BoundedAuthorization
- GovernanceDecisionResponse with full decision payload
- GovernanceState for session-level governance persistence
- AdditionalContext, DecompositionGuidance for progressive disclosure
- 16 passing unit tests for serde round-trips and field handling

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