@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,344 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Perform an enterprise-grade architectural audit on an approved PLAN.md. Assume the role of a senior principal engineer + compliance reviewer. Identify gaps, classify findings by severity, auto-apply must-have and strongly-recommended fixes to the plan, and produce a persistent audit report.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<when_to_use>
|
|
6
|
+
- After PLAN phase when `enterprise_plan_audit: enabled: true` in config.md
|
|
7
|
+
- When `/drive:audit` is explicitly invoked by the user
|
|
8
|
+
- Before APPLY phase to strengthen plan quality for commercial/enterprise software
|
|
9
|
+
</when_to_use>
|
|
10
|
+
|
|
11
|
+
<loop_context>
|
|
12
|
+
Expected phase: Between PLAN and APPLY (sub-step of PLAN)
|
|
13
|
+
Prior phase: PLAN (plan created, awaiting approval)
|
|
14
|
+
Next phase: APPLY (after audit and approval)
|
|
15
|
+
</loop_context>
|
|
16
|
+
|
|
17
|
+
<required_reading>
|
|
18
|
+
@.drive/STATE.md
|
|
19
|
+
@.drive/config.md
|
|
20
|
+
@.drive/phases/{phase}/{plan}-PLAN.md
|
|
21
|
+
</required_reading>
|
|
22
|
+
|
|
23
|
+
<process>
|
|
24
|
+
|
|
25
|
+
<step name="validate_preconditions" priority="first">
|
|
26
|
+
1. Read STATE.md to confirm:
|
|
27
|
+
- Loop position shows PLAN complete (checkmark on PLAN)
|
|
28
|
+
- A plan path exists (from $ARGUMENTS or infer from STATE.md "Resume file" field)
|
|
29
|
+
2. If no plan found:
|
|
30
|
+
- Error: "No plan found to audit. Run /drive:plan first."
|
|
31
|
+
- Exit workflow
|
|
32
|
+
3. If loop is not at PLAN complete:
|
|
33
|
+
- Warn: "Loop not at PLAN stage. Current state: [state]"
|
|
34
|
+
- Exit workflow
|
|
35
|
+
4. Read config.md and check for `enterprise_plan_audit: enabled: true`
|
|
36
|
+
- If enabled: proceed normally
|
|
37
|
+
- If not enabled or config missing: display warning but allow manual invocation:
|
|
38
|
+
```
|
|
39
|
+
Enterprise plan audit is not enabled in config.
|
|
40
|
+
Running audit manually. To auto-suggest after /drive:plan, add to config.md:
|
|
41
|
+
|
|
42
|
+
enterprise_plan_audit:
|
|
43
|
+
enabled: true
|
|
44
|
+
```
|
|
45
|
+
- Proceed regardless (manual invocation is always allowed)
|
|
46
|
+
</step>
|
|
47
|
+
|
|
48
|
+
<step name="load_plan">
|
|
49
|
+
1. Read the PLAN.md file at the resolved path
|
|
50
|
+
2. Derive paths:
|
|
51
|
+
- Phase directory: parent directory of PLAN.md
|
|
52
|
+
- Audit report path: replace `-PLAN.md` with `-AUDIT.md` in filename
|
|
53
|
+
Example: `20-01-PLAN.md` → `20-01-AUDIT.md`
|
|
54
|
+
3. Parse plan structure:
|
|
55
|
+
- Extract objective, acceptance criteria, tasks, boundaries, verification
|
|
56
|
+
- Note task count, checkpoint types, files modified
|
|
57
|
+
- Identify the plan's scope and architectural decisions
|
|
58
|
+
4. Store full plan content for audit analysis
|
|
59
|
+
</step>
|
|
60
|
+
|
|
61
|
+
<step name="execute_audit" priority="critical">
|
|
62
|
+
**Assume the following role and perform this audit against the loaded PLAN.md content.**
|
|
63
|
+
|
|
64
|
+
You are acting as a **senior principal engineer + compliance reviewer** responsible for approving whether this architectural plan is **enterprise-grade, audit-defensible, and production-safe**.
|
|
65
|
+
|
|
66
|
+
Perform a **hard, honest audit** of the plan.
|
|
67
|
+
Do **not** validate or encourage.
|
|
68
|
+
Assume this system will be:
|
|
69
|
+
|
|
70
|
+
* Used in a regulated environment
|
|
71
|
+
* Reviewed by auditors (SOC 2 / ISO / legal)
|
|
72
|
+
* Operated by humans who make mistakes
|
|
73
|
+
* Maintained for multiple years
|
|
74
|
+
|
|
75
|
+
**Tone requirements:**
|
|
76
|
+
|
|
77
|
+
* Direct, critical, and specific
|
|
78
|
+
* No praise unless it directly supports a risk decision
|
|
79
|
+
* Call out missing controls, underspecified behavior, and latent risk
|
|
80
|
+
* Do NOT optimize for politeness
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
Produce the following structured output internally (this feeds into the next steps):
|
|
85
|
+
|
|
86
|
+
**1. Executive Verdict**
|
|
87
|
+
Answer clearly:
|
|
88
|
+
* Is this plan **enterprise-ready**, **conditionally acceptable**, or **not acceptable**?
|
|
89
|
+
* Would you approve this plan for production if you were accountable?
|
|
90
|
+
|
|
91
|
+
**2. What Is Solid (Do Not Change)**
|
|
92
|
+
Identify only elements that are:
|
|
93
|
+
* Correctly layered
|
|
94
|
+
* Appropriately constrained
|
|
95
|
+
* Aligned with enterprise expectations
|
|
96
|
+
Be specific about *why* they are solid.
|
|
97
|
+
|
|
98
|
+
**3. Enterprise Gaps / Latent Risks**
|
|
99
|
+
Identify **non-obvious risks**, including but not limited to:
|
|
100
|
+
* Missing authorization boundaries
|
|
101
|
+
* State ambiguity or invalid transitions
|
|
102
|
+
* Audit trail weaknesses
|
|
103
|
+
* Idempotency gaps
|
|
104
|
+
* Error handling omissions
|
|
105
|
+
* Side-effect risks (email, payments, AI calls, external APIs)
|
|
106
|
+
* Long-term maintenance hazards
|
|
107
|
+
Treat anything underspecified as a risk.
|
|
108
|
+
|
|
109
|
+
**4. Concrete Upgrades Required**
|
|
110
|
+
For each major gap:
|
|
111
|
+
* Explain **why it matters**
|
|
112
|
+
* Specify **what must be added or changed**
|
|
113
|
+
* Classify it as:
|
|
114
|
+
* **Must-have** (release-blocking)
|
|
115
|
+
* **Strongly recommended**
|
|
116
|
+
* **Can safely defer**
|
|
117
|
+
Avoid abstract advice — give implementation-level guidance.
|
|
118
|
+
|
|
119
|
+
**5. Audit & Compliance Readiness**
|
|
120
|
+
Evaluate whether the plan:
|
|
121
|
+
* Produces defensible audit evidence
|
|
122
|
+
* Prevents silent failures
|
|
123
|
+
* Supports post-incident reconstruction
|
|
124
|
+
* Has clear ownership and accountability
|
|
125
|
+
Call out any area that would fail a real audit.
|
|
126
|
+
|
|
127
|
+
**6. Final Release Bar**
|
|
128
|
+
State explicitly:
|
|
129
|
+
* What must be true before this plan ships
|
|
130
|
+
* What risks remain if shipped as-is
|
|
131
|
+
* Whether you would sign your name to this system
|
|
132
|
+
|
|
133
|
+
**Important Constraints:**
|
|
134
|
+
* Do NOT invent requirements not implied by the plan
|
|
135
|
+
* Do NOT assume "future phases" will fix gaps
|
|
136
|
+
* Do NOT say "this is fine for v1" unless justified
|
|
137
|
+
* Treat this as the *last review before production*
|
|
138
|
+
</step>
|
|
139
|
+
|
|
140
|
+
<step name="classify_findings">
|
|
141
|
+
From the audit output, categorize all findings:
|
|
142
|
+
|
|
143
|
+
**Must-Have (Release-Blocking):**
|
|
144
|
+
- List each finding with: description, affected plan section, required change
|
|
145
|
+
- These WILL be applied to the plan automatically
|
|
146
|
+
|
|
147
|
+
**Strongly Recommended:**
|
|
148
|
+
- List each finding with: description, affected plan section, required change
|
|
149
|
+
- These WILL be applied to the plan automatically
|
|
150
|
+
|
|
151
|
+
**Can Safely Defer:**
|
|
152
|
+
- List each finding with: description, rationale for deferral
|
|
153
|
+
- These will NOT be applied but will be noted in the audit report
|
|
154
|
+
|
|
155
|
+
Count totals: N must-have, M strongly-recommended, P can-safely-defer
|
|
156
|
+
</step>
|
|
157
|
+
|
|
158
|
+
<step name="apply_findings_to_plan" priority="critical">
|
|
159
|
+
**Automatically apply must-have and strongly-recommended findings to the PLAN.md.**
|
|
160
|
+
|
|
161
|
+
For each finding that requires plan modification:
|
|
162
|
+
|
|
163
|
+
1. **Acceptance Criteria gaps:** Add new Given/When/Then criteria or strengthen existing ones
|
|
164
|
+
2. **Task gaps:** Add new tasks, add verification steps, or strengthen action descriptions
|
|
165
|
+
3. **Boundary gaps:** Add new boundary constraints to the `<boundaries>` section
|
|
166
|
+
4. **Verification gaps:** Add new checks to the `<verification>` section
|
|
167
|
+
5. **Authorization/security gaps:** Add constraints, validation steps, or audit trail requirements to relevant tasks
|
|
168
|
+
6. **Error handling gaps:** Add error scenarios to acceptance criteria and recovery steps to tasks
|
|
169
|
+
|
|
170
|
+
**Rules for applying findings:**
|
|
171
|
+
- Preserve the existing plan structure and formatting
|
|
172
|
+
- Add new content clearly (do not silently rewrite existing content)
|
|
173
|
+
- Mark audit-added content with `<!-- audit-added -->` comment where practical
|
|
174
|
+
- If a finding requires a new task, add it in the appropriate sequence position
|
|
175
|
+
- If a finding strengthens an existing task, append to its `<action>` or `<verify>` section
|
|
176
|
+
- Update `files_modified` in frontmatter if new files are introduced
|
|
177
|
+
- Update `autonomous` flag if new checkpoints are required
|
|
178
|
+
|
|
179
|
+
Track all changes made for the audit report:
|
|
180
|
+
- Section modified
|
|
181
|
+
- What was added/changed
|
|
182
|
+
- Which finding it addresses
|
|
183
|
+
</step>
|
|
184
|
+
|
|
185
|
+
<step name="create_audit_report">
|
|
186
|
+
Write the audit report to `{NN}-{PP}-AUDIT.md` in the same phase directory as the PLAN.
|
|
187
|
+
|
|
188
|
+
**Report structure:**
|
|
189
|
+
|
|
190
|
+
```markdown
|
|
191
|
+
# Enterprise Plan Audit Report
|
|
192
|
+
|
|
193
|
+
**Plan:** [plan-path]
|
|
194
|
+
**Audited:** [timestamp]
|
|
195
|
+
**Verdict:** [enterprise-ready / conditionally acceptable / not acceptable]
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## 1. Executive Verdict
|
|
200
|
+
|
|
201
|
+
[From audit step - clear yes/no/conditional with reasoning]
|
|
202
|
+
|
|
203
|
+
## 2. What Is Solid
|
|
204
|
+
|
|
205
|
+
[From audit step - elements that should not change and why]
|
|
206
|
+
|
|
207
|
+
## 3. Enterprise Gaps Identified
|
|
208
|
+
|
|
209
|
+
[From audit step - full list of non-obvious risks found]
|
|
210
|
+
|
|
211
|
+
## 4. Upgrades Applied to Plan
|
|
212
|
+
|
|
213
|
+
### Must-Have (Release-Blocking)
|
|
214
|
+
|
|
215
|
+
| # | Finding | Plan Section Modified | Change Applied |
|
|
216
|
+
|---|---------|----------------------|----------------|
|
|
217
|
+
| 1 | [description] | [section] | [what was changed] |
|
|
218
|
+
|
|
219
|
+
### Strongly Recommended
|
|
220
|
+
|
|
221
|
+
| # | Finding | Plan Section Modified | Change Applied |
|
|
222
|
+
|---|---------|----------------------|----------------|
|
|
223
|
+
| 1 | [description] | [section] | [what was changed] |
|
|
224
|
+
|
|
225
|
+
### Deferred (Can Safely Defer)
|
|
226
|
+
|
|
227
|
+
| # | Finding | Rationale for Deferral |
|
|
228
|
+
|---|---------|----------------------|
|
|
229
|
+
| 1 | [description] | [why safe to defer] |
|
|
230
|
+
|
|
231
|
+
## 5. Audit & Compliance Readiness
|
|
232
|
+
|
|
233
|
+
[From audit step - evidence, failure prevention, reconstruction, ownership]
|
|
234
|
+
|
|
235
|
+
## 6. Final Release Bar
|
|
236
|
+
|
|
237
|
+
[From audit step - what must be true, remaining risks, sign-off statement]
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
**Summary:** Applied [X] must-have + [Y] strongly-recommended upgrades. Deferred [Z] items.
|
|
242
|
+
**Plan status:** [Updated and ready for APPLY / Requires manual review before APPLY]
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
*Audit performed by Drive Enterprise Audit Workflow*
|
|
246
|
+
*Audit template version: 1.0*
|
|
247
|
+
```
|
|
248
|
+
</step>
|
|
249
|
+
|
|
250
|
+
<step name="update_state" priority="required">
|
|
251
|
+
**This step is REQUIRED. Do not skip.**
|
|
252
|
+
|
|
253
|
+
1. **Update STATE.md:**
|
|
254
|
+
- Change plan status line from "created, awaiting approval" to "created + audited, awaiting approval"
|
|
255
|
+
- Update Last activity with audit timestamp
|
|
256
|
+
- Add to `### Decisions` section:
|
|
257
|
+
`| [timestamp]: Enterprise audit performed on [plan-path]. Applied [X] must-have, [Y] strongly-recommended upgrades. Deferred [Z]. Verdict: [verdict] | Phase [N] | Plan strengthened for enterprise standards |`
|
|
258
|
+
|
|
259
|
+
2. **Do NOT change loop position** — PLAN is still checked, APPLY still unchecked.
|
|
260
|
+
The audit is a sub-step of PLAN, not a separate loop position.
|
|
261
|
+
</step>
|
|
262
|
+
|
|
263
|
+
<step name="report_and_route">
|
|
264
|
+
Display audit summary with routing:
|
|
265
|
+
|
|
266
|
+
```
|
|
267
|
+
════════════════════════════════════════
|
|
268
|
+
AUDIT COMPLETE
|
|
269
|
+
════════════════════════════════════════
|
|
270
|
+
|
|
271
|
+
Verdict: [enterprise-ready / conditionally acceptable / not acceptable]
|
|
272
|
+
|
|
273
|
+
Applied to plan:
|
|
274
|
+
[X] must-have (release-blocking) upgrades
|
|
275
|
+
[Y] strongly-recommended upgrades
|
|
276
|
+
Deferred:
|
|
277
|
+
[Z] can-safely-defer items
|
|
278
|
+
|
|
279
|
+
Report: [audit-report-path]
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
Continue to APPLY?
|
|
283
|
+
|
|
284
|
+
[1] Approved, run APPLY | [2] Review audit report | [3] Questions | [4] Pause
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**Accept quick inputs:**
|
|
288
|
+
- "1", "approved", "yes", "go" → run `/drive:apply [plan-path]`
|
|
289
|
+
- "2", "review" → Read and display the AUDIT.md report contents
|
|
290
|
+
|
|
291
|
+
**If verdict is "not acceptable":**
|
|
292
|
+
Replace routing with:
|
|
293
|
+
```
|
|
294
|
+
⚠️ Plan did NOT pass enterprise audit.
|
|
295
|
+
|
|
296
|
+
The plan requires significant revision before execution.
|
|
297
|
+
Review the audit report and address critical findings.
|
|
298
|
+
|
|
299
|
+
[1] Review audit report | [2] Re-plan this phase | [3] Questions
|
|
300
|
+
```
|
|
301
|
+
Do NOT offer direct APPLY routing when verdict is "not acceptable".
|
|
302
|
+
</step>
|
|
303
|
+
|
|
304
|
+
</process>
|
|
305
|
+
|
|
306
|
+
<output>
|
|
307
|
+
- Updated PLAN.md with must-have and strongly-recommended fixes applied
|
|
308
|
+
- AUDIT.md report at `{phase-dir}/{NN}-{PP}-AUDIT.md`
|
|
309
|
+
- STATE.md updated with audit status
|
|
310
|
+
</output>
|
|
311
|
+
|
|
312
|
+
<error_handling>
|
|
313
|
+
**Plan not found:**
|
|
314
|
+
- Check STATE.md for correct path
|
|
315
|
+
- Ask user to confirm plan location or run /drive:plan first
|
|
316
|
+
|
|
317
|
+
**Config missing enterprise_plan_audit:**
|
|
318
|
+
- Warn but proceed (manual invocation is always valid)
|
|
319
|
+
- Suggest adding config for automatic suggestion flow
|
|
320
|
+
|
|
321
|
+
**Plan too vague to audit meaningfully:**
|
|
322
|
+
- Note in audit report that plan lacks sufficient detail
|
|
323
|
+
- Classify as "not acceptable" with concrete requirements for what must be specified
|
|
324
|
+
- Do NOT fabricate an audit of vague content
|
|
325
|
+
|
|
326
|
+
**Audit produces no findings:**
|
|
327
|
+
- This is valid (plan may already be enterprise-grade)
|
|
328
|
+
- Report "enterprise-ready" verdict with reasoning
|
|
329
|
+
- Proceed to APPLY routing normally
|
|
330
|
+
</error_handling>
|
|
331
|
+
|
|
332
|
+
<anti_patterns>
|
|
333
|
+
**Rubber-stamping:**
|
|
334
|
+
Do NOT produce a positive audit without substantive analysis. Every plan has areas that can be strengthened.
|
|
335
|
+
|
|
336
|
+
**Scope creep in fixes:**
|
|
337
|
+
Applied fixes should address the specific gap, not redesign the plan. Stay within the plan's existing architecture.
|
|
338
|
+
|
|
339
|
+
**Inventing phantom requirements:**
|
|
340
|
+
Only audit against what the plan implies. Do not introduce requirements from outside the project scope.
|
|
341
|
+
|
|
342
|
+
**Skipping auto-apply:**
|
|
343
|
+
The entire value of this workflow is automated remediation. If findings are identified, they MUST be applied (except can-safely-defer).
|
|
344
|
+
</anti_patterns>
|