Skip to content

feat: enhanced PGD brief types and CLI formatting - #820

Open
davidmiuraactualai wants to merge 1 commit into
feat/pgs-domain-modelfrom
feat/pgd-enhanced-brief
Open

feat: enhanced PGD brief types and CLI formatting#820
davidmiuraactualai wants to merge 1 commit into
feat/pgs-domain-modelfrom
feat/pgd-enhanced-brief

Conversation

@davidmiuraactualai

Copy link
Copy Markdown

Summary

  • Adds RetrievalAffordance and EnhancedBrief structs with serde support
  • Implements Display for PolicyStrength enum (renders as MUST, MUST_NOT, etc.)
  • Adds format_brief_output() for CLI display with [MUST], [SHOULD] prefixes, bulleted unknowns, and affordance commands
  • 8 new tests (34 total governance tests passing)

Test plan

  • retrieval_affordance_round_trip — serde round-trip
  • enhanced_brief_round_trip — full round-trip
  • enhanced_brief_empty_optional_fields — empty vectors
  • format_brief_displays_must_policies — [MUST]/[MUST_NOT] in output
  • format_brief_displays_should_policies — [SHOULD]/[SHOULD_NOT]/[MAY] in output
  • format_brief_displays_unknowns — bulleted unknowns
  • format_brief_displays_affordances — command/description pairs
  • format_brief_displays_governance_instruction — instruction rendered

🤖 Generated with Claude Code

Adds RetrievalAffordance, EnhancedBrief structs, Display impl for
PolicyStrength, and format_brief_output function that renders normative
policy strength as [MUST], [SHOULD], etc. 8 new tests (24 total).

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