How von12549/guard works
V4 Guards is a self-contained, profile-driven repository inspection and governance package. Its primary workflow is a user invoking the Host to run a Bootstrap, Analysis, Pre, or Post stage against a read-only Target, with selected modules producing evidence under EvidenceRoot; the Web Companion offers a local UI over Host operations. Separate Host commands support contract validation, queries, state/reset, Profile discovery and promotion, Plan governance, target-trust authorization, and application previews. The graph follows documented capabilities and shown command dispatch; unsampled runtime details are omitted rather than inferred.
Main entry points: V4.Guards.Host/Program.cs CLI Host · StageRuntime.cs Stage execution · V4.Guards.WebCompanion/Program.cs Companion server · ContractRuntime.cs Contract validation
Components 18
Interfaces
- Web Companion UI
integrations/web/V4.Guards.WebCompanion/wwwroot/app.js - Companion server
integrations/web/V4.Guards.WebCompanion/Program.cs - CLI Host
core/host/V4.Guards.Host/Program.cs
Inspection runtime
- Stage execution
core/host/V4.Guards.Host/StageRuntime.cs - Registered modules
modules - State and reset
core/host/V4.Guards.Host/StateRuntime.cs - Stage evidence
core
Local authority
- Contract validation
core/host/V4.Guards.Host/ContractRuntime.cs - Profile authority
core/host/V4.Guards.Host/ProfileRuntime.cs - Application previews
core/host/V4.Guards.Host/ApplicationRuntime.cs - Read queries
core/host/V4.Guards.Host/QueryRuntime.cs - Package authorities
core/contracts
Governance
- Plan governance
core/host/V4.Guards.Host/PlanRuntime.cs - Target trust
core/host/V4.Guards.Host/TargetTrustRuntime.cs
Distribution
- Install and compose
core/distribution
Other components
- User
- Inspected repository
- PowerShell runtime
Connections 24
- User → CLI Host: invokes commands
README.md - User → Web Companion UI: uses locally
README.md - Web Companion UI → Companion server: sends requests
integrations/web/V4.Guards.WebCompanion/wwwroot/app.js - Companion server → CLI Host: invokes queries
integrations/web/V4.Guards.WebCompanion/Program.cs - CLI Host → Contract validation: dispatches
core/host/V4.Guards.Host/Program.cs - CLI Host → State and reset: dispatches
core/host/V4.Guards.Host/Program.cs - CLI Host → Stage execution: dispatches
core/host/V4.Guards.Host/Program.cs - CLI Host → Plan governance: dispatches
core/host/V4.Guards.Host/Program.cs - CLI Host → Read queries: dispatches
core/host/V4.Guards.Host/Program.cs - CLI Host → Profile authority: dispatches
core/host/V4.Guards.Host/Program.cs - CLI Host → Application previews: dispatches
core/host/V4.Guards.Host/Program.cs - CLI Host → Target trust: dispatches
core/host/V4.Guards.Host/Program.cs - Stage execution → Registered modules: executes selected
- Stage execution → State and reset: uses state
core/host/V4.Guards.Host/StageRuntime.cs - Stage execution → Stage evidence: writes results
core/host/V4.Guards.Host/StageRuntime.cs - Stage execution → Inspected repository: inspects
README.md - Profile authority → Contract validation: validates via
core/host/V4.Guards.Host/ProfileRuntime.cs - Read queries → Plan governance: reads plan catalog
core/host/V4.Guards.Host/QueryRuntime.cs - Application previews → Read queries: uses projections
core/host/V4.Guards.Host/ApplicationRuntime.cs - Target trust → Plan governance: validates plan sets
core/host/V4.Guards.Host/TargetTrustRuntime.cs - Contract validation → Package authorities: reads schemas
core/host/V4.Guards.Host/ContractRuntime.cs - Install and compose → CLI Host: installs host
README.md - Install and compose → Companion server: packages companion
README.md - CLI Host → PowerShell runtime: runs validation