@accelerationguy/accel 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +19 -0
- package/LICENSE +33 -0
- package/README.md +275 -0
- package/bin/install.js +661 -0
- package/docs/getting-started.md +164 -0
- package/docs/module-guide.md +139 -0
- package/modules/drive/LICENSE +21 -0
- package/modules/drive/PAUL-VS-GSD.md +171 -0
- package/modules/drive/README.md +555 -0
- package/modules/drive/assets/terminal.svg +67 -0
- package/modules/drive/bin/install.js +210 -0
- package/modules/drive/integration.js +76 -0
- package/modules/drive/package.json +38 -0
- package/modules/drive/src/commands/add-phase.md +36 -0
- package/modules/drive/src/commands/apply.md +83 -0
- package/modules/drive/src/commands/assumptions.md +37 -0
- package/modules/drive/src/commands/audit.md +57 -0
- package/modules/drive/src/commands/complete-milestone.md +36 -0
- package/modules/drive/src/commands/config.md +175 -0
- package/modules/drive/src/commands/consider-issues.md +41 -0
- package/modules/drive/src/commands/discover.md +48 -0
- package/modules/drive/src/commands/discuss-milestone.md +33 -0
- package/modules/drive/src/commands/discuss.md +34 -0
- package/modules/drive/src/commands/flows.md +73 -0
- package/modules/drive/src/commands/handoff.md +201 -0
- package/modules/drive/src/commands/help.md +525 -0
- package/modules/drive/src/commands/init.md +54 -0
- package/modules/drive/src/commands/map-codebase.md +34 -0
- package/modules/drive/src/commands/milestone.md +34 -0
- package/modules/drive/src/commands/pause.md +44 -0
- package/modules/drive/src/commands/plan-fix.md +216 -0
- package/modules/drive/src/commands/plan.md +36 -0
- package/modules/drive/src/commands/progress.md +138 -0
- package/modules/drive/src/commands/register.md +29 -0
- package/modules/drive/src/commands/remove-phase.md +37 -0
- package/modules/drive/src/commands/research-phase.md +209 -0
- package/modules/drive/src/commands/research.md +47 -0
- package/modules/drive/src/commands/resume.md +49 -0
- package/modules/drive/src/commands/status.md +78 -0
- package/modules/drive/src/commands/unify.md +87 -0
- package/modules/drive/src/commands/verify.md +60 -0
- package/modules/drive/src/references/checkpoints.md +234 -0
- package/modules/drive/src/references/context-management.md +219 -0
- package/modules/drive/src/references/git-strategy.md +206 -0
- package/modules/drive/src/references/loop-phases.md +254 -0
- package/modules/drive/src/references/plan-format.md +263 -0
- package/modules/drive/src/references/quality-principles.md +152 -0
- package/modules/drive/src/references/research-quality-control.md +247 -0
- package/modules/drive/src/references/sonarqube-integration.md +244 -0
- package/modules/drive/src/references/specialized-workflow-integration.md +186 -0
- package/modules/drive/src/references/subagent-criteria.md +179 -0
- package/modules/drive/src/references/tdd.md +219 -0
- package/modules/drive/src/references/work-units.md +161 -0
- package/modules/drive/src/rules/commands.md +108 -0
- package/modules/drive/src/rules/references.md +107 -0
- package/modules/drive/src/rules/style.md +123 -0
- package/modules/drive/src/rules/templates.md +51 -0
- package/modules/drive/src/rules/workflows.md +133 -0
- package/modules/drive/src/templates/CONTEXT.md +88 -0
- package/modules/drive/src/templates/DEBUG.md +164 -0
- package/modules/drive/src/templates/DISCOVERY.md +148 -0
- package/modules/drive/src/templates/HANDOFF.md +77 -0
- package/modules/drive/src/templates/ISSUES.md +93 -0
- package/modules/drive/src/templates/MILESTONES.md +167 -0
- package/modules/drive/src/templates/PLAN.md +328 -0
- package/modules/drive/src/templates/PROJECT.md +219 -0
- package/modules/drive/src/templates/RESEARCH.md +130 -0
- package/modules/drive/src/templates/ROADMAP.md +328 -0
- package/modules/drive/src/templates/SPECIAL-FLOWS.md +70 -0
- package/modules/drive/src/templates/STATE.md +210 -0
- package/modules/drive/src/templates/SUMMARY.md +221 -0
- package/modules/drive/src/templates/UAT-ISSUES.md +139 -0
- package/modules/drive/src/templates/codebase/architecture.md +259 -0
- package/modules/drive/src/templates/codebase/concerns.md +329 -0
- package/modules/drive/src/templates/codebase/conventions.md +311 -0
- package/modules/drive/src/templates/codebase/integrations.md +284 -0
- package/modules/drive/src/templates/codebase/stack.md +190 -0
- package/modules/drive/src/templates/codebase/structure.md +287 -0
- package/modules/drive/src/templates/codebase/testing.md +484 -0
- package/modules/drive/src/templates/config.md +181 -0
- package/modules/drive/src/templates/milestone-archive.md +236 -0
- package/modules/drive/src/templates/milestone-context.md +190 -0
- package/modules/drive/src/templates/paul-json.md +147 -0
- package/modules/drive/src/vector-config/PAUL +26 -0
- package/modules/drive/src/vector-config/PAUL.manifest +11 -0
- package/modules/drive/src/workflows/apply-phase.md +393 -0
- package/modules/drive/src/workflows/audit-plan.md +344 -0
- package/modules/drive/src/workflows/complete-milestone.md +479 -0
- package/modules/drive/src/workflows/configure-special-flows.md +283 -0
- package/modules/drive/src/workflows/consider-issues.md +172 -0
- package/modules/drive/src/workflows/create-milestone.md +268 -0
- package/modules/drive/src/workflows/debug.md +292 -0
- package/modules/drive/src/workflows/discovery.md +187 -0
- package/modules/drive/src/workflows/discuss-milestone.md +245 -0
- package/modules/drive/src/workflows/discuss-phase.md +231 -0
- package/modules/drive/src/workflows/init-project.md +698 -0
- package/modules/drive/src/workflows/map-codebase.md +459 -0
- package/modules/drive/src/workflows/pause-work.md +259 -0
- package/modules/drive/src/workflows/phase-assumptions.md +181 -0
- package/modules/drive/src/workflows/plan-phase.md +385 -0
- package/modules/drive/src/workflows/quality-gate.md +263 -0
- package/modules/drive/src/workflows/register-manifest.md +107 -0
- package/modules/drive/src/workflows/research.md +241 -0
- package/modules/drive/src/workflows/resume-project.md +200 -0
- package/modules/drive/src/workflows/roadmap-management.md +334 -0
- package/modules/drive/src/workflows/transition-phase.md +368 -0
- package/modules/drive/src/workflows/unify-phase.md +290 -0
- package/modules/drive/src/workflows/verify-work.md +241 -0
- package/modules/forge/README.md +281 -0
- package/modules/forge/bin/install.js +200 -0
- package/modules/forge/package.json +32 -0
- package/modules/forge/skillsmith/rules/checklists-rules.md +42 -0
- package/modules/forge/skillsmith/rules/context-rules.md +43 -0
- package/modules/forge/skillsmith/rules/entry-point-rules.md +44 -0
- package/modules/forge/skillsmith/rules/frameworks-rules.md +43 -0
- package/modules/forge/skillsmith/rules/tasks-rules.md +52 -0
- package/modules/forge/skillsmith/rules/templates-rules.md +43 -0
- package/modules/forge/skillsmith/skillsmith.md +82 -0
- package/modules/forge/skillsmith/tasks/audit.md +277 -0
- package/modules/forge/skillsmith/tasks/discover.md +145 -0
- package/modules/forge/skillsmith/tasks/distill.md +276 -0
- package/modules/forge/skillsmith/tasks/scaffold.md +349 -0
- package/modules/forge/specs/checklists.md +193 -0
- package/modules/forge/specs/context.md +223 -0
- package/modules/forge/specs/entry-point.md +320 -0
- package/modules/forge/specs/frameworks.md +228 -0
- package/modules/forge/specs/rules.md +245 -0
- package/modules/forge/specs/tasks.md +344 -0
- package/modules/forge/specs/templates.md +335 -0
- package/modules/forge/terminal.svg +70 -0
- package/modules/ignition/README.md +245 -0
- package/modules/ignition/bin/install.js +184 -0
- package/modules/ignition/checklists/planning-quality.md +55 -0
- package/modules/ignition/data/application/config.md +21 -0
- package/modules/ignition/data/application/guide.md +51 -0
- package/modules/ignition/data/application/skill-loadout.md +11 -0
- package/modules/ignition/data/campaign/config.md +18 -0
- package/modules/ignition/data/campaign/guide.md +36 -0
- package/modules/ignition/data/campaign/skill-loadout.md +10 -0
- package/modules/ignition/data/client/config.md +18 -0
- package/modules/ignition/data/client/guide.md +36 -0
- package/modules/ignition/data/client/skill-loadout.md +11 -0
- package/modules/ignition/data/utility/config.md +18 -0
- package/modules/ignition/data/utility/guide.md +31 -0
- package/modules/ignition/data/utility/skill-loadout.md +8 -0
- package/modules/ignition/data/workflow/config.md +19 -0
- package/modules/ignition/data/workflow/guide.md +41 -0
- package/modules/ignition/data/workflow/skill-loadout.md +10 -0
- package/modules/ignition/integration.js +54 -0
- package/modules/ignition/package.json +35 -0
- package/modules/ignition/seed.md +81 -0
- package/modules/ignition/tasks/add-type.md +164 -0
- package/modules/ignition/tasks/graduate.md +182 -0
- package/modules/ignition/tasks/ideate.md +221 -0
- package/modules/ignition/tasks/launch.md +137 -0
- package/modules/ignition/tasks/status.md +71 -0
- package/modules/ignition/templates/planning-application.md +193 -0
- package/modules/ignition/templates/planning-campaign.md +138 -0
- package/modules/ignition/templates/planning-client.md +149 -0
- package/modules/ignition/templates/planning-utility.md +112 -0
- package/modules/ignition/templates/planning-workflow.md +125 -0
- package/modules/ignition/terminal.svg +74 -0
- package/modules/mission-control/CONTEXT-CONTINUITY-SPEC.md +293 -0
- package/modules/mission-control/CONTEXT-ENGINEERING-GUIDE.md +282 -0
- package/modules/mission-control/README.md +91 -0
- package/modules/mission-control/assets/terminal.svg +80 -0
- package/modules/mission-control/examples/entities.example.json +133 -0
- package/modules/mission-control/examples/projects.example.json +318 -0
- package/modules/mission-control/examples/state.example.json +183 -0
- package/modules/mission-control/examples/vector.example.json +245 -0
- package/modules/mission-control/mission-control/checklists/install-verification.md +46 -0
- package/modules/mission-control/mission-control/frameworks/framework-registry.md +83 -0
- package/modules/mission-control/mission-control/mission-control.md +83 -0
- package/modules/mission-control/mission-control/tasks/insights.md +73 -0
- package/modules/mission-control/mission-control/tasks/install.md +194 -0
- package/modules/mission-control/mission-control/tasks/status.md +125 -0
- package/modules/mission-control/schemas/entities.schema.json +89 -0
- package/modules/mission-control/schemas/projects.schema.json +221 -0
- package/modules/mission-control/schemas/state.schema.json +108 -0
- package/modules/mission-control/schemas/vector.schema.json +200 -0
- package/modules/momentum/README.md +678 -0
- package/modules/momentum/bin/install.js +563 -0
- package/modules/momentum/integration.js +131 -0
- package/modules/momentum/package.json +42 -0
- package/modules/momentum/schemas/entities.schema.json +89 -0
- package/modules/momentum/schemas/projects.schema.json +221 -0
- package/modules/momentum/schemas/state.schema.json +108 -0
- package/modules/momentum/src/commands/audit-claude-md.md +31 -0
- package/modules/momentum/src/commands/audit.md +33 -0
- package/modules/momentum/src/commands/groom.md +35 -0
- package/modules/momentum/src/commands/history.md +27 -0
- package/modules/momentum/src/commands/pulse.md +33 -0
- package/modules/momentum/src/commands/scaffold.md +33 -0
- package/modules/momentum/src/commands/status.md +28 -0
- package/modules/momentum/src/commands/surface-convert.md +35 -0
- package/modules/momentum/src/commands/surface-create.md +34 -0
- package/modules/momentum/src/commands/surface-list.md +27 -0
- package/modules/momentum/src/commands/vector-hygiene.md +33 -0
- package/modules/momentum/src/framework/context/momentum-principles.md +71 -0
- package/modules/momentum/src/framework/frameworks/audit-strategies.md +53 -0
- package/modules/momentum/src/framework/frameworks/satellite-registration.md +44 -0
- package/modules/momentum/src/framework/tasks/audit-claude-md.md +68 -0
- package/modules/momentum/src/framework/tasks/audit.md +64 -0
- package/modules/momentum/src/framework/tasks/groom.md +164 -0
- package/modules/momentum/src/framework/tasks/history.md +34 -0
- package/modules/momentum/src/framework/tasks/pulse.md +83 -0
- package/modules/momentum/src/framework/tasks/scaffold.md +202 -0
- package/modules/momentum/src/framework/tasks/status.md +35 -0
- package/modules/momentum/src/framework/tasks/surface-convert.md +143 -0
- package/modules/momentum/src/framework/tasks/surface-create.md +184 -0
- package/modules/momentum/src/framework/tasks/surface-list.md +42 -0
- package/modules/momentum/src/framework/tasks/vector-hygiene.md +160 -0
- package/modules/momentum/src/framework/templates/workspace-json.md +96 -0
- package/modules/momentum/src/hooks/_template.py +129 -0
- package/modules/momentum/src/hooks/active-hook.py +178 -0
- package/modules/momentum/src/hooks/backlog-hook.py +115 -0
- package/modules/momentum/src/hooks/mission-control-insights.py +169 -0
- package/modules/momentum/src/hooks/momentum-pulse-check.py +351 -0
- package/modules/momentum/src/hooks/operator.py +53 -0
- package/modules/momentum/src/hooks/psmm-injector.py +67 -0
- package/modules/momentum/src/hooks/satellite-detection.py +248 -0
- package/modules/momentum/src/packages/momentum-mcp/index.js +119 -0
- package/modules/momentum/src/packages/momentum-mcp/package.json +10 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/entities.js +226 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/operator.js +106 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/projects.js +322 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/psmm.js +206 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/state.js +199 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/surfaces.js +404 -0
- package/modules/momentum/src/skill/momentum.md +111 -0
- package/modules/momentum/src/tasks/groom.md +164 -0
- package/modules/momentum/src/templates/operator.json +66 -0
- package/modules/momentum/src/templates/workspace.json +111 -0
- package/modules/momentum/terminal.svg +77 -0
- package/modules/radar/README.md +1552 -0
- package/modules/radar/commands/audit.md +233 -0
- package/modules/radar/commands/guardrails.md +194 -0
- package/modules/radar/commands/init.md +207 -0
- package/modules/radar/commands/playbook.md +176 -0
- package/modules/radar/commands/remediate.md +156 -0
- package/modules/radar/commands/report.md +172 -0
- package/modules/radar/commands/resume.md +176 -0
- package/modules/radar/commands/status.md +148 -0
- package/modules/radar/commands/transform.md +205 -0
- package/modules/radar/commands/validate.md +177 -0
- package/modules/radar/docs/ARCHITECTURE.md +336 -0
- package/modules/radar/docs/GETTING-STARTED.md +287 -0
- package/modules/radar/docs/standards/agents.md +197 -0
- package/modules/radar/docs/standards/commands.md +250 -0
- package/modules/radar/docs/standards/domains.md +191 -0
- package/modules/radar/docs/standards/personas.md +211 -0
- package/modules/radar/docs/standards/rules.md +218 -0
- package/modules/radar/docs/standards/runtime.md +445 -0
- package/modules/radar/docs/standards/schemas.md +269 -0
- package/modules/radar/docs/standards/tools.md +273 -0
- package/modules/radar/docs/standards/workflows.md +254 -0
- package/modules/radar/docs/terminal.svg +72 -0
- package/modules/radar/docs/validation/convention-compliance-report.md +183 -0
- package/modules/radar/docs/validation/cross-reference-report.md +195 -0
- package/modules/radar/docs/validation/validation-summary.md +118 -0
- package/modules/radar/docs/validation/version-manifest.yaml +363 -0
- package/modules/radar/install.sh +711 -0
- package/modules/radar/integration.js +53 -0
- package/modules/radar/src/core/agents/architect.md +25 -0
- package/modules/radar/src/core/agents/compliance-officer.md +25 -0
- package/modules/radar/src/core/agents/data-engineer.md +25 -0
- package/modules/radar/src/core/agents/devils-advocate.md +22 -0
- package/modules/radar/src/core/agents/performance-engineer.md +25 -0
- package/modules/radar/src/core/agents/principal-engineer.md +23 -0
- package/modules/radar/src/core/agents/reality-gap-analyst.md +22 -0
- package/modules/radar/src/core/agents/security-engineer.md +25 -0
- package/modules/radar/src/core/agents/senior-app-engineer.md +25 -0
- package/modules/radar/src/core/agents/sre.md +25 -0
- package/modules/radar/src/core/agents/staff-engineer.md +23 -0
- package/modules/radar/src/core/agents/test-engineer.md +25 -0
- package/modules/radar/src/core/personas/architect.md +111 -0
- package/modules/radar/src/core/personas/compliance-officer.md +104 -0
- package/modules/radar/src/core/personas/data-engineer.md +113 -0
- package/modules/radar/src/core/personas/devils-advocate.md +105 -0
- package/modules/radar/src/core/personas/performance-engineer.md +119 -0
- package/modules/radar/src/core/personas/principal-engineer.md +119 -0
- package/modules/radar/src/core/personas/reality-gap-analyst.md +111 -0
- package/modules/radar/src/core/personas/security-engineer.md +108 -0
- package/modules/radar/src/core/personas/senior-app-engineer.md +111 -0
- package/modules/radar/src/core/personas/sre.md +117 -0
- package/modules/radar/src/core/personas/staff-engineer.md +109 -0
- package/modules/radar/src/core/personas/test-engineer.md +109 -0
- package/modules/radar/src/core/workflows/disagreement-resolution.md +183 -0
- package/modules/radar/src/core/workflows/phase-0-context.md +148 -0
- package/modules/radar/src/core/workflows/phase-1-reconnaissance.md +169 -0
- package/modules/radar/src/core/workflows/phase-2-domain-audits.md +190 -0
- package/modules/radar/src/core/workflows/phase-3-cross-domain.md +177 -0
- package/modules/radar/src/core/workflows/phase-4-adversarial-review.md +165 -0
- package/modules/radar/src/core/workflows/phase-5-report.md +189 -0
- package/modules/radar/src/core/workflows/phase-checkpoint.md +222 -0
- package/modules/radar/src/core/workflows/session-handoff.md +152 -0
- package/modules/radar/src/domains/00-context.md +201 -0
- package/modules/radar/src/domains/01-architecture.md +248 -0
- package/modules/radar/src/domains/02-data.md +224 -0
- package/modules/radar/src/domains/03-correctness.md +230 -0
- package/modules/radar/src/domains/04-security.md +274 -0
- package/modules/radar/src/domains/05-compliance.md +228 -0
- package/modules/radar/src/domains/06-testing.md +228 -0
- package/modules/radar/src/domains/07-reliability.md +246 -0
- package/modules/radar/src/domains/08-performance.md +247 -0
- package/modules/radar/src/domains/09-maintainability.md +271 -0
- package/modules/radar/src/domains/10-operability.md +250 -0
- package/modules/radar/src/domains/11-change-risk.md +246 -0
- package/modules/radar/src/domains/12-team-risk.md +221 -0
- package/modules/radar/src/domains/13-risk-synthesis.md +202 -0
- package/modules/radar/src/rules/agent-boundaries.md +78 -0
- package/modules/radar/src/rules/disagreement-protocol.md +76 -0
- package/modules/radar/src/rules/epistemic-hygiene.md +78 -0
- package/modules/radar/src/schemas/confidence.md +185 -0
- package/modules/radar/src/schemas/disagreement.md +238 -0
- package/modules/radar/src/schemas/finding.md +287 -0
- package/modules/radar/src/schemas/report-section.md +150 -0
- package/modules/radar/src/schemas/signal.md +108 -0
- package/modules/radar/src/tools/checkov.md +463 -0
- package/modules/radar/src/tools/git-history.md +581 -0
- package/modules/radar/src/tools/gitleaks.md +447 -0
- package/modules/radar/src/tools/grype.md +611 -0
- package/modules/radar/src/tools/semgrep.md +378 -0
- package/modules/radar/src/tools/sonarqube.md +550 -0
- package/modules/radar/src/tools/syft.md +539 -0
- package/modules/radar/src/tools/trivy.md +439 -0
- package/modules/radar/src/transform/agents/change-risk-modeler.md +24 -0
- package/modules/radar/src/transform/agents/execution-validator.md +24 -0
- package/modules/radar/src/transform/agents/guardrail-generator.md +24 -0
- package/modules/radar/src/transform/agents/pedagogy-agent.md +24 -0
- package/modules/radar/src/transform/agents/remediation-architect.md +24 -0
- package/modules/radar/src/transform/personas/change-risk-modeler.md +95 -0
- package/modules/radar/src/transform/personas/execution-validator.md +95 -0
- package/modules/radar/src/transform/personas/guardrail-generator.md +103 -0
- package/modules/radar/src/transform/personas/pedagogy-agent.md +105 -0
- package/modules/radar/src/transform/personas/remediation-architect.md +95 -0
- package/modules/radar/src/transform/rules/change-risk-rules.md +87 -0
- package/modules/radar/src/transform/rules/safety-governance.md +87 -0
- package/modules/radar/src/transform/schemas/change-risk.md +139 -0
- package/modules/radar/src/transform/schemas/intervention-level.md +207 -0
- package/modules/radar/src/transform/schemas/playbook.md +205 -0
- package/modules/radar/src/transform/schemas/verification-plan.md +134 -0
- package/modules/radar/src/transform/workflows/phase-6-remediation.md +148 -0
- package/modules/radar/src/transform/workflows/phase-7-risk-validation.md +161 -0
- package/modules/radar/src/transform/workflows/phase-8-execution-planning.md +159 -0
- package/modules/radar/src/transform/workflows/transform-safety.md +158 -0
- package/modules/vector/.vector-template/sessions/.gitkeep +0 -0
- package/modules/vector/.vector-template/vector.json +72 -0
- package/modules/vector/AUDIT-CLAUDEMD.md +154 -0
- package/modules/vector/INSTALL.md +185 -0
- package/modules/vector/LICENSE +21 -0
- package/modules/vector/README.md +409 -0
- package/modules/vector/VECTOR-BLOCK.md +57 -0
- package/modules/vector/assets/terminal.svg +68 -0
- package/modules/vector/bin/install.js +455 -0
- package/modules/vector/bin/migrate-v1-to-v2.sh +492 -0
- package/modules/vector/commands/help.md +46 -0
- package/modules/vector/hooks/vector-hook.py +775 -0
- package/modules/vector/mcp/index.js +118 -0
- package/modules/vector/mcp/package.json +10 -0
- package/modules/vector/mcp/tools/decisions.js +269 -0
- package/modules/vector/mcp/tools/domains.js +361 -0
- package/modules/vector/mcp/tools/staging.js +252 -0
- package/modules/vector/mcp/tools/vector-json.js +647 -0
- package/modules/vector/package.json +38 -0
- package/modules/vector/schemas/vector.schema.json +237 -0
- package/package.json +39 -0
- package/shared/branding/branding.js +70 -0
- package/shared/config/defaults.json +59 -0
- package/shared/events/README.md +175 -0
- package/shared/events/event-bus.js +134 -0
- package/shared/events/event_bus.py +255 -0
- package/shared/events/integrations.js +161 -0
- package/shared/events/schemas/audit-complete.schema.json +21 -0
- package/shared/events/schemas/phase-progress.schema.json +23 -0
- package/shared/events/schemas/plan-created.schema.json +21 -0
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
# Runtime & Versioning Specification
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Defines the per-audit runtime state structure, archival output format, version-locking manifest, audit lifecycle, and state document format. This spec governs what gets created in the target codebase during an audit and how audit outputs are preserved.
|
|
6
|
+
|
|
7
|
+
## Per-Audit Operational State (.radar/)
|
|
8
|
+
|
|
9
|
+
When a Radar audit is initiated on a target codebase, a `.radar/` directory is created with this structure:
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
.radar/
|
|
13
|
+
├── STATE.md # Current audit position
|
|
14
|
+
├── MANIFEST.md # Version-locked component references
|
|
15
|
+
│
|
|
16
|
+
│ ── Layer A: Diagnostic Artifacts (Phases 0-5) ──
|
|
17
|
+
│
|
|
18
|
+
├── context/ # Phase 0 output
|
|
19
|
+
│ ├── scope.md # Audit scope and non-goals
|
|
20
|
+
│ └── threat-model.md # Risk profile and threat model
|
|
21
|
+
├── signals/ # Phase 1 output
|
|
22
|
+
│ └── {tool-id}/ # Per-tool normalized signals
|
|
23
|
+
│ └── signals.md # Normalized signal data
|
|
24
|
+
├── findings/ # Phase 2-3 output
|
|
25
|
+
│ └── {agent-id}/ # Per-agent finding files
|
|
26
|
+
│ ├── finding-001.md
|
|
27
|
+
│ └── finding-NNN.md
|
|
28
|
+
├── review/ # Phase 4 output
|
|
29
|
+
│ └── devils-advocate.md # Adversarial review critique
|
|
30
|
+
├── report/ # Phase 5 output
|
|
31
|
+
│ ├── executive-summary.md
|
|
32
|
+
│ ├── findings-by-domain.md
|
|
33
|
+
│ ├── disagreements.md
|
|
34
|
+
│ └── remediation-roadmap.md
|
|
35
|
+
│
|
|
36
|
+
│ ── Layer B: Remediation Knowledge (Phases 6-7) ──
|
|
37
|
+
│
|
|
38
|
+
├── remediation/ # Layer B root
|
|
39
|
+
│ ├── REMEDIATION-SUMMARY.md # Overview of all remediation
|
|
40
|
+
│ ├── playbooks/ # Per-finding remediation playbooks
|
|
41
|
+
│ │ ├── {finding-id}.md # Human-readable playbook
|
|
42
|
+
│ │ └── {finding-id}.yaml # Machine-consumable playbook
|
|
43
|
+
│ ├── patterns/ # Best practice patterns applied
|
|
44
|
+
│ │ └── {pattern-id}.md # Correct pattern documentation
|
|
45
|
+
│ └── guardrails/ # Generated project rules
|
|
46
|
+
│ ├── claude-md-rules.md # Rules for .claude/CLAUDE.md
|
|
47
|
+
│ └── cursorrules.md # Rules for .cursorrules
|
|
48
|
+
│
|
|
49
|
+
│ ── Layer C: Change Orchestration (Phase 8) ──
|
|
50
|
+
│
|
|
51
|
+
└── execution/ # Layer C root
|
|
52
|
+
├── change-graph.yaml # Dependency-ordered change plan
|
|
53
|
+
├── risk-scores.yaml # Per-change risk assessment
|
|
54
|
+
├── verification-plan.md # How to verify all changes
|
|
55
|
+
└── drive-project/ # Drive-ready project artifacts
|
|
56
|
+
├── PROJECT.md # Drive project definition
|
|
57
|
+
├── ROADMAP.md # Phased remediation plan
|
|
58
|
+
└── phases/ # Pre-planned Drive phases
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Operational State Structure
|
|
62
|
+
|
|
63
|
+
#### Layer A — Diagnostic Artifacts (Phases 0-5)
|
|
64
|
+
|
|
65
|
+
| Directory/File | Created By | Created During | Purpose |
|
|
66
|
+
|----------------|------------|----------------|---------|
|
|
67
|
+
| `.radar/` | System | Audit initialization | Root operational directory for active audit |
|
|
68
|
+
| `STATE.md` | System | Audit initialization | Tracks current phase, progress, and resume information |
|
|
69
|
+
| `MANIFEST.md` | System | Audit initialization | Version-locks all Radar components used in this audit |
|
|
70
|
+
| `context/` | Principal Engineer | Phase 0 | Stores scope definition and threat model |
|
|
71
|
+
| `context/scope.md` | Principal Engineer | Phase 0 | Documents audit scope, boundaries, and explicit non-goals |
|
|
72
|
+
| `context/threat-model.md` | Principal Engineer | Phase 0 | Risk profile, attack surface, and threat scenarios |
|
|
73
|
+
| `signals/` | Tool runners | Phase 1 | Container for all automated tool outputs |
|
|
74
|
+
| `signals/{tool-id}/` | Tool runner | Phase 1 | Isolated directory per tool (semgrep, bandit, etc.) |
|
|
75
|
+
| `signals/{tool-id}/signals.md` | Tool runner | Phase 1 | Normalized signal data from tool execution |
|
|
76
|
+
| `findings/` | Domain agents | Phases 2-3 | Container for all agent-generated findings |
|
|
77
|
+
| `findings/{agent-id}/` | Agent | Phases 2-3 | Isolated directory per agent (security, auth, etc.) |
|
|
78
|
+
| `findings/{agent-id}/finding-NNN.md` | Agent | Phases 2-3 | Individual finding documents following schema |
|
|
79
|
+
| `review/` | Devil's Advocate | Phase 4 | Adversarial review outputs |
|
|
80
|
+
| `review/devils-advocate.md` | Devil's Advocate | Phase 4 | Challenges, confidence attacks, and critique |
|
|
81
|
+
| `report/` | Principal Engineer | Phase 5 | Final synthesis and deliverables |
|
|
82
|
+
| `report/executive-summary.md` | Principal Engineer | Phase 5 | High-level findings for technical leadership |
|
|
83
|
+
| `report/findings-by-domain.md` | Principal Engineer | Phase 5 | Organized view of all findings |
|
|
84
|
+
| `report/disagreements.md` | Principal Engineer | Phase 5 | Documented agent disagreements and resolutions |
|
|
85
|
+
| `report/remediation-roadmap.md` | Principal Engineer | Phase 5 | Prioritized action plan with timelines |
|
|
86
|
+
|
|
87
|
+
#### Layer B — Remediation Knowledge (Phases 6-7)
|
|
88
|
+
|
|
89
|
+
| Directory/File | Created By | Created During | Purpose |
|
|
90
|
+
|----------------|------------|----------------|---------|
|
|
91
|
+
| `remediation/` | System | Phase 6 initialization | Root directory for all remediation artifacts |
|
|
92
|
+
| `remediation/REMEDIATION-SUMMARY.md` | Remediation Architect | Phase 6 | Overview of all remediation: finding count, playbook count, intervention level distribution |
|
|
93
|
+
| `remediation/playbooks/` | Remediation Architect + Pedagogy Agent | Phase 6 | Container for per-finding remediation playbooks |
|
|
94
|
+
| `remediation/playbooks/{finding-id}.md` | Remediation Architect + Pedagogy Agent | Phase 6 | Human-readable playbook: explanation, rationale, before/after examples, educational context |
|
|
95
|
+
| `remediation/playbooks/{finding-id}.yaml` | Remediation Architect | Phase 6 | Machine-consumable playbook: file targets, change instructions, verification steps, risk metadata, intervention level |
|
|
96
|
+
| `remediation/patterns/` | Pedagogy Agent | Phase 6 | Best-practice patterns extracted during remediation |
|
|
97
|
+
| `remediation/patterns/{pattern-id}.md` | Pedagogy Agent | Phase 6 | Correct pattern documentation at all 4 transformation layers |
|
|
98
|
+
| `remediation/guardrails/` | Guardrail Generator | Phase 7 | Generated project rules for future AI usage |
|
|
99
|
+
| `remediation/guardrails/claude-md-rules.md` | Guardrail Generator | Phase 7 | Rules formatted for `.claude/CLAUDE.md` |
|
|
100
|
+
| `remediation/guardrails/cursorrules.md` | Guardrail Generator | Phase 7 | Rules formatted for `.cursorrules` |
|
|
101
|
+
|
|
102
|
+
#### Layer C — Change Orchestration (Phase 8)
|
|
103
|
+
|
|
104
|
+
| Directory/File | Created By | Created During | Purpose |
|
|
105
|
+
|----------------|------------|----------------|---------|
|
|
106
|
+
| `execution/` | System | Phase 8 initialization | Root directory for execution planning artifacts |
|
|
107
|
+
| `execution/change-graph.yaml` | Remediation Architect | Phase 8 | Dependency-ordered graph of all proposed changes |
|
|
108
|
+
| `execution/risk-scores.yaml` | Change Risk Modeler | Phase 7-8 | Per-change risk assessment (blast radius, coupling, regression, architectural tension) |
|
|
109
|
+
| `execution/verification-plan.md` | Execution Validator | Phase 8 | Consolidated verification plan for all changes |
|
|
110
|
+
| `execution/drive-project/` | System | Phase 8 | Drive-ready project directory |
|
|
111
|
+
| `execution/drive-project/PROJECT.md` | System | Phase 8 | Drive project definition referencing Radar audit |
|
|
112
|
+
| `execution/drive-project/ROADMAP.md` | System | Phase 8 | Phased remediation plan with dependency ordering |
|
|
113
|
+
| `execution/drive-project/phases/` | System | Phase 8 | Pre-planned Drive phases with risk-scored tasks |
|
|
114
|
+
|
|
115
|
+
## Archival Output Structure
|
|
116
|
+
|
|
117
|
+
After audit completion, the operational state is archived:
|
|
118
|
+
|
|
119
|
+
- **Location**: Configurable, default `audits/{YYYY-MM-DD}-{short-hash}/`
|
|
120
|
+
- **Short-hash format**: First 8 characters of the target repository's HEAD commit
|
|
121
|
+
- **Contents**: Complete copy of `.radar/` directory at audit completion
|
|
122
|
+
- **Immutability**: Archived outputs are NEVER modified after creation
|
|
123
|
+
- **Cleanup**: The `.radar/` operational directory can be cleaned up after archival
|
|
124
|
+
|
|
125
|
+
### Example Archive Path
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
audits/2026-02-12-a3f7b9c1/
|
|
129
|
+
└── [complete copy of .radar/ contents]
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
The archive preserves the forensic record of the audit, enabling:
|
|
133
|
+
- Point-in-time comparison between audits
|
|
134
|
+
- Regulatory compliance and audit trails
|
|
135
|
+
- Reproduction of audit results given the same inputs
|
|
136
|
+
|
|
137
|
+
## Version-Locking Manifest
|
|
138
|
+
|
|
139
|
+
The `MANIFEST.md` file locks all Radar components to specific versions via cryptographic hashes. This enables audit reproducibility and forensic integrity.
|
|
140
|
+
|
|
141
|
+
### MANIFEST.md Template
|
|
142
|
+
|
|
143
|
+
```markdown
|
|
144
|
+
# Radar Audit Manifest
|
|
145
|
+
|
|
146
|
+
## Audit Metadata
|
|
147
|
+
|
|
148
|
+
| Field | Value |
|
|
149
|
+
|-------|-------|
|
|
150
|
+
| Date | [YYYY-MM-DD HH:MM UTC] |
|
|
151
|
+
| Target | [repository path or URL] |
|
|
152
|
+
| Target Commit | [full SHA] |
|
|
153
|
+
| Radar Version | [version or commit hash] |
|
|
154
|
+
|
|
155
|
+
## Component Versions
|
|
156
|
+
|
|
157
|
+
| Type | File | SHA-256 |
|
|
158
|
+
|------|------|---------|
|
|
159
|
+
| persona | src/personas/principal-engineer.md | [hash] |
|
|
160
|
+
| persona | src/personas/architect.md | [hash] |
|
|
161
|
+
| persona | src/personas/security-engineer.md | [hash] |
|
|
162
|
+
| persona | src/personas/staff-engineer.md | [hash] |
|
|
163
|
+
| persona | src/personas/devils-advocate.md | [hash] |
|
|
164
|
+
| domain | src/domains/00-context.md | [hash] |
|
|
165
|
+
| domain | src/domains/01-security.md | [hash] |
|
|
166
|
+
| domain | src/domains/02-authentication.md | [hash] |
|
|
167
|
+
| domain | src/domains/03-authorization.md | [hash] |
|
|
168
|
+
| domain | src/domains/04-data-integrity.md | [hash] |
|
|
169
|
+
| domain | src/domains/05-crypto.md | [hash] |
|
|
170
|
+
| domain | src/domains/06-input-validation.md | [hash] |
|
|
171
|
+
| domain | src/domains/07-error-handling.md | [hash] |
|
|
172
|
+
| domain | src/domains/08-state-management.md | [hash] |
|
|
173
|
+
| domain | src/domains/09-dependency-management.md | [hash] |
|
|
174
|
+
| domain | src/domains/10-configuration.md | [hash] |
|
|
175
|
+
| domain | src/domains/11-observability.md | [hash] |
|
|
176
|
+
| domain | src/domains/12-architecture.md | [hash] |
|
|
177
|
+
| domain | src/domains/13-change-risk.md | [hash] |
|
|
178
|
+
| domain | src/domains/14-reality-gap.md | [hash] |
|
|
179
|
+
| schema | src/schemas/finding.md | [hash] |
|
|
180
|
+
| schema | src/schemas/signal.md | [hash] |
|
|
181
|
+
| schema | src/schemas/disagreement.md | [hash] |
|
|
182
|
+
| rule | src/rules/epistemic-hygiene.md | [hash] |
|
|
183
|
+
| rule | src/rules/confidence-calibration.md | [hash] |
|
|
184
|
+
| rule | src/rules/evidence-standards.md | [hash] |
|
|
185
|
+
| tool | src/tools/semgrep.md | [hash] |
|
|
186
|
+
| tool | src/tools/bandit.md | [hash] |
|
|
187
|
+
| tool | src/tools/trivy.md | [hash] |
|
|
188
|
+
| agent | src/agents/security-engineer.md | [hash] |
|
|
189
|
+
| agent | src/agents/auth-specialist.md | [hash] |
|
|
190
|
+
| agent | src/agents/data-engineer.md | [hash] |
|
|
191
|
+
| agent | src/agents/crypto-specialist.md | [hash] |
|
|
192
|
+
| agent | src/agents/input-validation-specialist.md | [hash] |
|
|
193
|
+
| agent | src/agents/error-handling-specialist.md | [hash] |
|
|
194
|
+
| agent | src/agents/state-engineer.md | [hash] |
|
|
195
|
+
| agent | src/agents/dependency-analyst.md | [hash] |
|
|
196
|
+
| agent | src/agents/config-specialist.md | [hash] |
|
|
197
|
+
| agent | src/agents/observability-engineer.md | [hash] |
|
|
198
|
+
| agent | src/agents/architect.md | [hash] |
|
|
199
|
+
| agent | src/agents/staff-engineer.md | [hash] |
|
|
200
|
+
| agent | src/agents/reality-gap-analyst.md | [hash] |
|
|
201
|
+
| agent | src/agents/devils-advocate.md | [hash] |
|
|
202
|
+
| workflow | src/workflows/phase-0-context.md | [hash] |
|
|
203
|
+
| workflow | src/workflows/phase-1-signals.md | [hash] |
|
|
204
|
+
| workflow | src/workflows/phase-2-domain-audit.md | [hash] |
|
|
205
|
+
| workflow | src/workflows/phase-3-synthesis.md | [hash] |
|
|
206
|
+
| workflow | src/workflows/phase-4-adversarial-review.md | [hash] |
|
|
207
|
+
| workflow | src/workflows/phase-5-report.md | [hash] |
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Purpose
|
|
211
|
+
|
|
212
|
+
The manifest enables audit reproduction. Given the same codebase state (target commit) and the same component versions (manifest hashes), the audit produces equivalent results. This supports:
|
|
213
|
+
|
|
214
|
+
- **Forensic integrity**: Prove which component versions were used
|
|
215
|
+
- **Reproducibility**: Re-run audit with identical inputs
|
|
216
|
+
- **Debugging**: Isolate component changes that affect audit behavior
|
|
217
|
+
- **Compliance**: Demonstrate audit methodology was unchanged
|
|
218
|
+
|
|
219
|
+
## Dual Format Specification
|
|
220
|
+
|
|
221
|
+
Transform artifacts (Layers B and C) carry both human-readable and machine-consumable representations. This is a convention, not optional.
|
|
222
|
+
|
|
223
|
+
### Human-Readable Format (`.md`)
|
|
224
|
+
|
|
225
|
+
Contains:
|
|
226
|
+
- Explanation and rationale for the remediation
|
|
227
|
+
- Before/after code examples
|
|
228
|
+
- Educational context (why this pattern matters)
|
|
229
|
+
- Best-practice references
|
|
230
|
+
- Verification instructions in prose
|
|
231
|
+
|
|
232
|
+
### Machine-Consumable Format (`.yaml`)
|
|
233
|
+
|
|
234
|
+
Contains:
|
|
235
|
+
- File targets (paths and line numbers)
|
|
236
|
+
- Change instructions (structured diffs or transformation rules)
|
|
237
|
+
- Verification steps (executable checks)
|
|
238
|
+
- Risk metadata (blast radius, coupling, regression probability, architectural tension scores)
|
|
239
|
+
- Intervention level classification
|
|
240
|
+
- Finding references (which Layer A findings this remediates)
|
|
241
|
+
- Dependency references (which other changes must happen first)
|
|
242
|
+
|
|
243
|
+
### Convention
|
|
244
|
+
|
|
245
|
+
- Every Layer B playbook has both `{finding-id}.md` and `{finding-id}.yaml`
|
|
246
|
+
- Layer C artifacts are primarily `.yaml` (operational data) with `.md` summaries for human review
|
|
247
|
+
- The `.yaml` representation is the authoritative source for machine consumption (Drive, AI assistants)
|
|
248
|
+
- The `.md` representation is the authoritative source for human understanding
|
|
249
|
+
- Neither representation is derived from the other — both are produced by the same agent during the same phase
|
|
250
|
+
|
|
251
|
+
## Pipeline Flow
|
|
252
|
+
|
|
253
|
+
Data flows through Radar in a strict derivation chain across three layers.
|
|
254
|
+
|
|
255
|
+
```
|
|
256
|
+
Phase 0-5 (Core) Phase 6-7 (Transform) Phase 8 (Transform)
|
|
257
|
+
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
|
|
258
|
+
│ Layer A │ ───▶ │ Layer B │ ──────▶ │ Layer C │
|
|
259
|
+
│ Diagnostic │ │ Remediation │ │ Change │
|
|
260
|
+
│ Artifacts │ │ Knowledge │ │ Orchestration │
|
|
261
|
+
│ │ │ │ │ │
|
|
262
|
+
│ findings/ │ │ remediation/ │ │ execution/ │
|
|
263
|
+
│ review/ │ │ playbooks/ │ │ change-graph │
|
|
264
|
+
│ report/ │ │ patterns/ │ │ risk-scores │
|
|
265
|
+
│ signals/ │ │ guardrails/ │ │ drive-project/ │
|
|
266
|
+
│ context/ │ │ │ │ │
|
|
267
|
+
└──────────────────┘ └──────────────────┘ └──────────────────┘
|
|
268
|
+
Immutable Derived from A Derived from B
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Derivation Rules
|
|
272
|
+
|
|
273
|
+
1. **Layer B cannot exist without Layer A.** Transform cannot run without a completed Core audit.
|
|
274
|
+
2. **Layer C cannot exist without Layer B.** Execution planning cannot run without remediation knowledge.
|
|
275
|
+
3. **Layer A is never mutated by Transform.** Findings remain as produced by Core agents. Transform may reference them but never modifies them.
|
|
276
|
+
4. **Layer B artifacts reference Layer A findings.** Every playbook links to the finding(s) it remediates.
|
|
277
|
+
5. **Layer C artifacts reference Layer B playbooks.** Every execution plan links to the remediation knowledge it implements.
|
|
278
|
+
|
|
279
|
+
## Audit Lifecycle
|
|
280
|
+
|
|
281
|
+
State flows through Radar execution phases sequentially, with parallelization opportunities within phases.
|
|
282
|
+
|
|
283
|
+
### Core Phases (Layer A)
|
|
284
|
+
|
|
285
|
+
| Phase | Name | Creates | Agent(s) | Description |
|
|
286
|
+
|-------|------|---------|----------|-------------|
|
|
287
|
+
| 0 | Context & Threat Modeling | `context/` | Principal Engineer | Scope, threat model, non-goals |
|
|
288
|
+
| 1 | Automated Signal Gathering | `signals/` | (tool runners) | Run tools, normalize output |
|
|
289
|
+
| 2 | Deep Domain Audits | `findings/{agent}/` | 8 domain agents | Independent domain analysis |
|
|
290
|
+
| 3 | Change Risk, Team Risk & Reality Gap | `findings/{agent}/` | Staff Engineer, Reality Gap Analyst | Synthesis-heavy analysis |
|
|
291
|
+
| 4 | Adversarial Review | `review/` | Devil's Advocate | Challenge assumptions, attack confidence |
|
|
292
|
+
| 5 | Synthesis & Report | `report/` | Principal Engineer | Final report, disagreement resolution |
|
|
293
|
+
|
|
294
|
+
### Transform Phases (Layers B & C)
|
|
295
|
+
|
|
296
|
+
| Phase | Name | Creates | Agent(s) | Description |
|
|
297
|
+
|-------|------|---------|----------|-------------|
|
|
298
|
+
| 6 | Remediation Synthesis | `remediation/playbooks/`, `remediation/patterns/` | Remediation Architect, Pedagogy Agent | Produce playbooks at all 4 transformation layers |
|
|
299
|
+
| 7 | Change Risk Validation | `remediation/guardrails/`, `execution/risk-scores.yaml` | Change Risk Modeler, Guardrail Generator | Score change risk, generate guardrails |
|
|
300
|
+
| 8 | Execution Planning | `execution/` | Execution Validator | Verification plans, Drive project generation |
|
|
301
|
+
|
|
302
|
+
### Completion
|
|
303
|
+
|
|
304
|
+
| Step | Name | Creates | Actor | Description |
|
|
305
|
+
|------|------|---------|-------|-------------|
|
|
306
|
+
| Complete | Archival | `audits/{date}-{hash}/` | (system) | Archive `.radar/` to immutable record |
|
|
307
|
+
|
|
308
|
+
### Execution Model
|
|
309
|
+
|
|
310
|
+
- **Sequential phases**: Phases execute in order (0 → 1 → 2 → 3 → 4 → 5 → 6 → 7 → 8 → Complete)
|
|
311
|
+
- **Parallel agents**: Phase 2 agents can run in parallel within the phase
|
|
312
|
+
- **Transform is optional**: Phases 6-8 only run when Transform is explicitly initiated after Core completion
|
|
313
|
+
- **Resumability**: Audit can pause and resume at any phase boundary
|
|
314
|
+
- **State persistence**: `STATE.md` tracks progress and enables resume
|
|
315
|
+
|
|
316
|
+
### Phase Dependencies
|
|
317
|
+
|
|
318
|
+
- Phase 1 depends on Phase 0 (scope and threat model inform tool selection)
|
|
319
|
+
- Phase 2 depends on Phase 1 (signals inform domain audits)
|
|
320
|
+
- Phase 3 depends on Phase 2 (findings inform synthesis)
|
|
321
|
+
- Phase 4 depends on Phases 2-3 (all findings must exist for review)
|
|
322
|
+
- Phase 5 depends on Phase 4 (adversarial feedback informs final report)
|
|
323
|
+
- Phase 6 depends on Phase 5 (complete Layer A record required for remediation)
|
|
324
|
+
- Phase 7 depends on Phase 6 (playbooks must exist for risk scoring)
|
|
325
|
+
- Phase 8 depends on Phase 7 (risk-scored plan required for execution planning)
|
|
326
|
+
|
|
327
|
+
## State Document Format
|
|
328
|
+
|
|
329
|
+
The `STATE.md` file tracks audit progress and enables resumption after interruption.
|
|
330
|
+
|
|
331
|
+
### STATE.md Template
|
|
332
|
+
|
|
333
|
+
```markdown
|
|
334
|
+
# Radar Audit State
|
|
335
|
+
|
|
336
|
+
## Audit Info
|
|
337
|
+
|
|
338
|
+
| Field | Value |
|
|
339
|
+
|-------|-------|
|
|
340
|
+
| Target | [repository] |
|
|
341
|
+
| Started | [timestamp] |
|
|
342
|
+
| Current Phase | [0-5] |
|
|
343
|
+
| Status | [in_progress / paused / complete] |
|
|
344
|
+
|
|
345
|
+
## Phase Progress
|
|
346
|
+
|
|
347
|
+
| Phase | Status | Agent(s) | Findings | Started | Completed |
|
|
348
|
+
|-------|--------|----------|----------|---------|-----------|
|
|
349
|
+
| 0 | [pending/active/complete] | principal-engineer | - | [time] | [time] |
|
|
350
|
+
| 1 | [pending/active/complete] | (tools) | - | | |
|
|
351
|
+
| 2 | [pending/active/complete] | [list] | [count] | | |
|
|
352
|
+
| 3 | [pending/active/complete] | [list] | [count] | | |
|
|
353
|
+
| 4 | [pending/active/complete] | devils-advocate | [count] | | |
|
|
354
|
+
| 5 | [pending/active/complete] | principal-engineer | - | | |
|
|
355
|
+
| 6 | [pending/active/complete/skipped] | remediation-architect, pedagogy-agent | [playbook count] | | |
|
|
356
|
+
| 7 | [pending/active/complete/skipped] | change-risk-modeler, guardrail-generator | [risk scores] | | |
|
|
357
|
+
| 8 | [pending/active/complete/skipped] | execution-validator | [Drive artifacts] | | |
|
|
358
|
+
|
|
359
|
+
## Summary
|
|
360
|
+
|
|
361
|
+
- Total findings: [N]
|
|
362
|
+
- Disagreements: [N] (open: [N], resolved: [N])
|
|
363
|
+
- Domains covered: [N] of 14
|
|
364
|
+
|
|
365
|
+
## Resume Info
|
|
366
|
+
|
|
367
|
+
Last action: [what was happening]
|
|
368
|
+
Next action: [what to do next]
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
### State Values
|
|
372
|
+
|
|
373
|
+
- **Status values**: `pending`, `active`, `complete`, `skipped` (Transform phases only — `skipped` when Transform is not run)
|
|
374
|
+
- **Current Phase**: Integer 0-8, or "complete" after archival
|
|
375
|
+
- **Agent list**: Comma-separated agent IDs for phases with multiple agents
|
|
376
|
+
- **Findings count**: Number of finding files created by agents in that phase
|
|
377
|
+
|
|
378
|
+
### Resume Semantics
|
|
379
|
+
|
|
380
|
+
The "Resume Info" section enables graceful continuation after interruption:
|
|
381
|
+
- **Last action**: Human-readable description of what was executing when paused
|
|
382
|
+
- **Next action**: Specific instruction for what should happen on resume
|
|
383
|
+
- Example: "Last action: Completed 6 of 8 domain audits. Next action: Run crypto-specialist agent."
|
|
384
|
+
|
|
385
|
+
## Two-Tier State Model
|
|
386
|
+
|
|
387
|
+
Radar maintains audit state in two distinct tiers with different mutability and lifecycle properties.
|
|
388
|
+
|
|
389
|
+
### Operational Tier (`.radar/`)
|
|
390
|
+
|
|
391
|
+
- **Location**: Inside target repository (`.radar/`)
|
|
392
|
+
- **Mutability**: Mutable during audit execution
|
|
393
|
+
- **Lifecycle**: Created at audit start, deleted after archival
|
|
394
|
+
- **Purpose**: Support incremental progress and resumption
|
|
395
|
+
- **Access pattern**: Read-write by Radar runtime
|
|
396
|
+
|
|
397
|
+
### Archival Tier (`audits/`)
|
|
398
|
+
|
|
399
|
+
- **Location**: Outside target repository (configurable path)
|
|
400
|
+
- **Mutability**: Immutable after creation
|
|
401
|
+
- **Lifecycle**: Created at audit completion, never modified
|
|
402
|
+
- **Purpose**: Forensic record with version-locked components
|
|
403
|
+
- **Access pattern**: Write-once by Radar runtime, read-only for analysis
|
|
404
|
+
|
|
405
|
+
### Benefits of Separation
|
|
406
|
+
|
|
407
|
+
This two-tier model enables:
|
|
408
|
+
|
|
409
|
+
1. **Re-audits against same codebase**: Compare archival outputs from different audit runs to track security posture over time
|
|
410
|
+
2. **Audit reproducibility**: Manifest + target commit = deterministic inputs for equivalent results
|
|
411
|
+
3. **Clean target repositories**: Operational state is ephemeral and can be deleted after archival
|
|
412
|
+
4. **Regulatory compliance**: Immutable audit trail proves what was found and when
|
|
413
|
+
5. **Parallel development**: Multiple audits can run against different versions without state collision
|
|
414
|
+
6. **Git-friendly workflow**: Operational state can be gitignored, archives can be stored separately
|
|
415
|
+
|
|
416
|
+
### Archival Process
|
|
417
|
+
|
|
418
|
+
When audit reaches completion:
|
|
419
|
+
|
|
420
|
+
1. System validates all phases are complete
|
|
421
|
+
2. System generates archive path: `audits/{YYYY-MM-DD}-{short-hash}/`
|
|
422
|
+
3. System copies entire `.radar/` directory to archive path
|
|
423
|
+
4. System marks archive as immutable (filesystem permissions or object storage policy)
|
|
424
|
+
5. System updates `STATE.md` to status "complete"
|
|
425
|
+
6. (Optional) System removes `.radar/` from target repository
|
|
426
|
+
|
|
427
|
+
### Audit Comparison
|
|
428
|
+
|
|
429
|
+
Comparing two audits of the same codebase:
|
|
430
|
+
|
|
431
|
+
```bash
|
|
432
|
+
diff -r audits/2026-02-12-a3f7b9c1/ audits/2026-03-15-a3f7b9c1/
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
If the target commit is identical (`a3f7b9c1`), differences indicate:
|
|
436
|
+
- Non-deterministic tool behavior (investigate)
|
|
437
|
+
- Radar component changes (check manifests)
|
|
438
|
+
- Audit configuration differences (compare STATE.md)
|
|
439
|
+
|
|
440
|
+
If the target commit differs, differences indicate:
|
|
441
|
+
- Security posture changes in codebase
|
|
442
|
+
- New vulnerabilities introduced
|
|
443
|
+
- Previous findings remediated
|
|
444
|
+
|
|
445
|
+
This enables tracking security health over time with forensic precision.
|