Skip to content

Phase 3: Advanced Governance - Diagnostics, Discovery & CLI #33

@stevei101

Description

@stevei101

Phase 3: Advanced Features (Week 3)

Add Nix diagnostics, agent discovery, and CLI governance commands.

Tasks

  • Integrate Nix CI diagnostics into src/error.rs - GovernanceViolation error handling
  • Create src/governance/discovery.rs - Automatic agent scanning & discovery
  • Extend src/bin/server.rs - Add governance CLI commands
    • governance validate - Validate configuration
    • governance sync - Sync symlinks
    • governance status - Show symlink status
    • governance list-agents - List discovered agents
    • governance check-compliance <graph-id> - Validate graph compliance
  • Create compliance validation in src/governance/validator.rs
  • Add comprehensive tests in tests/governance_advanced.rs
  • Create tests/governance_nix_diagnostics.rs - Diagnostic tests

Acceptance Criteria

  • Nix diagnostics properly diagnose governance violations
  • Agent discovery finds all agents in repo
  • All CLI commands work correctly
  • Compliance checking validates rules are followed
  • All advanced tests pass
  • Error messages are clear & actionable

Dependencies

Related Issue

Part of: #30 (Epic)


Estimated Effort: 5 days
Labels: governance, phase-3, advanced

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions