@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,159 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Orchestrates execution planning by invoking the Execution Validator to define verification steps for every proposed change, build a dependency graph, and generate Drive-compatible project artifacts — producing the complete Layer C execution plan without ever applying changes.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<phase_context>
|
|
6
|
+
Phase: 8 — Execution Planning
|
|
7
|
+
Prior phase output: Risk-scored change plan (execution/risk-scores.yaml), Phase 6 playbooks (remediation/playbooks/), Phase 7 guardrails (remediation/guardrails/), risk assessment report
|
|
8
|
+
Agents invoked: execution-validator (single agent)
|
|
9
|
+
Output: execution/change-graph.yaml (dependency graph), execution/verification-plan.md (verification steps per change), execution/drive-project/ (Drive-compatible project artifacts)
|
|
10
|
+
CRITICAL: Radar Transform NEVER applies changes. This workflow produces a plan only.
|
|
11
|
+
</phase_context>
|
|
12
|
+
|
|
13
|
+
<required_input>
|
|
14
|
+
@.radar/STATE.md
|
|
15
|
+
@.radar/MANIFEST.md
|
|
16
|
+
@.radar/findings/*.md (for traceability)
|
|
17
|
+
@execution/risk-scores.yaml (Phase 7 output)
|
|
18
|
+
@remediation/playbooks/*.md (Phase 6 output)
|
|
19
|
+
@remediation/guardrails/*.md (Phase 7 output)
|
|
20
|
+
@~/.claude/radar/transform/agents/execution-validator.md
|
|
21
|
+
@~/.claude/radar/transform/schemas/verification-plan.md
|
|
22
|
+
@~/.claude/radar/transform/schemas/intervention-level.md
|
|
23
|
+
@~/.claude/radar/transform/schemas/change-risk.md
|
|
24
|
+
@~/.claude/radar/transform/rules/safety-governance.md
|
|
25
|
+
@~/.claude/radar/transform/rules/change-risk-rules.md
|
|
26
|
+
@~/.claude/radar/transform/workflows/transform-safety.md
|
|
27
|
+
</required_input>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
|
|
31
|
+
<step name="validate_prerequisites" priority="first">
|
|
32
|
+
1. Verify .radar/STATE.md shows Phase 7 (Change Risk Validation) complete:
|
|
33
|
+
a. Check phase_7_complete: true
|
|
34
|
+
b. Check execution/risk-scores.yaml exists
|
|
35
|
+
c. Check remediation/guardrails/ contains at least one file
|
|
36
|
+
2. If Phase 7 is not complete:
|
|
37
|
+
a. Halt with error: "Phase 7 (Change Risk Validation) not complete. Run phase-7-risk-validation workflow first."
|
|
38
|
+
b. Do not proceed.
|
|
39
|
+
3. Load Phase 7 output metrics from .radar/STATE.md.
|
|
40
|
+
4. Update .radar/STATE.md:
|
|
41
|
+
a. current_phase: 8
|
|
42
|
+
b. phase_status: in_progress
|
|
43
|
+
</step>
|
|
44
|
+
|
|
45
|
+
<step name="load_execution_context" priority="blocking">
|
|
46
|
+
1. Load risk-scored change plan from execution/risk-scores.yaml:
|
|
47
|
+
a. All proposed changes with dimensional risk profiles
|
|
48
|
+
b. Final intervention levels (post-safety-validation)
|
|
49
|
+
c. Risk-adjusted priority ordering
|
|
50
|
+
2. Load Phase 6 playbooks for remediation detail:
|
|
51
|
+
a. Transformation layers (abstract → project-specific)
|
|
52
|
+
b. Educational context from Pedagogy Agent
|
|
53
|
+
3. Load Phase 7 guardrails for constraint integration.
|
|
54
|
+
4. Load test infrastructure inventory and deployment configuration if available.
|
|
55
|
+
5. Build complete change manifest:
|
|
56
|
+
a. Every change with its risk profile, intervention level, playbook reference, and guardrail references
|
|
57
|
+
b. Dependencies between changes (from Remediation Architect's ordering)
|
|
58
|
+
6. Record execution context metrics in .radar/STATE.md.
|
|
59
|
+
</step>
|
|
60
|
+
|
|
61
|
+
<step name="invoke_execution_validator" priority="blocking">
|
|
62
|
+
1. Load agent manifest from src/transform/agents/execution-validator.md.
|
|
63
|
+
2. Resolve all component references:
|
|
64
|
+
a. Persona: src/transform/personas/execution-validator.md
|
|
65
|
+
b. Schemas: src/transform/schemas/verification-plan.md, src/transform/schemas/intervention-level.md, src/transform/schemas/change-risk.md
|
|
66
|
+
c. Rules: src/transform/rules/safety-governance.md, src/transform/rules/change-risk-rules.md
|
|
67
|
+
3. Provide complete change manifest as input.
|
|
68
|
+
4. Instruct agent to:
|
|
69
|
+
a. Define verification steps for every proposed change:
|
|
70
|
+
- Pre-change baseline observation
|
|
71
|
+
- Post-change acceptance criteria (traced to original finding)
|
|
72
|
+
- Regression verification (what was working, confirm it still is)
|
|
73
|
+
- Rollback criteria (conditions that trigger reverting the change)
|
|
74
|
+
b. Build dependency graph for change sequencing:
|
|
75
|
+
- Explicit dependencies (change A must precede change B)
|
|
76
|
+
- Implicit dependencies (shared code paths, behavioral contracts)
|
|
77
|
+
- Parallel-eligible change groups (independent changes that can proceed concurrently)
|
|
78
|
+
c. Generate Drive-compatible project artifacts:
|
|
79
|
+
- PROJECT.md (project definition with Radar audit reference)
|
|
80
|
+
- ROADMAP.md (phased plan with dependency ordering and verification gates)
|
|
81
|
+
- Per-phase PLAN.md files with tasks, acceptance criteria, and risk metadata per task
|
|
82
|
+
d. Embed risk metadata in Drive task definitions:
|
|
83
|
+
- Intervention level per task
|
|
84
|
+
- Change risk scores per task
|
|
85
|
+
- Finding confidence reference per task
|
|
86
|
+
- Verification plan reference per task
|
|
87
|
+
5. Validate verification plan against src/transform/schemas/verification-plan.md.
|
|
88
|
+
6. Record execution-validator session completion in .radar/STATE.md.
|
|
89
|
+
</step>
|
|
90
|
+
|
|
91
|
+
<step name="final_safety_validation" priority="blocking">
|
|
92
|
+
1. Invoke transform-safety workflow for final validation:
|
|
93
|
+
a. Pass complete Drive project structure
|
|
94
|
+
b. Pass all verification plans
|
|
95
|
+
2. Safety workflow validates:
|
|
96
|
+
a. No-auto-execution boundary: Drive project contains plans only — no execution commands, no direct file modifications, no bypass mechanisms
|
|
97
|
+
b. All 5 refusal conditions re-checked against final plan
|
|
98
|
+
c. Every task carries appropriate intervention level and risk metadata
|
|
99
|
+
d. Verification gates exist at every phase boundary
|
|
100
|
+
3. If safety violations detected:
|
|
101
|
+
a. This is the last safety gate before handoff — violations must be resolved
|
|
102
|
+
b. Adjust Drive project to comply
|
|
103
|
+
c. Re-validate until clean
|
|
104
|
+
4. Record final safety validation results in .radar/STATE.md.
|
|
105
|
+
</step>
|
|
106
|
+
|
|
107
|
+
<step name="persist_and_finalize" priority="blocking">
|
|
108
|
+
1. Write change dependency graph to execution/change-graph.yaml:
|
|
109
|
+
a. Nodes: proposed changes with risk profiles
|
|
110
|
+
b. Edges: dependency relationships (explicit and implicit)
|
|
111
|
+
c. Groups: parallel-eligible change sets
|
|
112
|
+
2. Write verification plan to execution/verification-plan.md:
|
|
113
|
+
a. Per-change verification steps (pre-change, post-change, regression, rollback)
|
|
114
|
+
b. Evidence chain from each verification criterion back to original finding
|
|
115
|
+
3. Write Drive project to execution/drive-project/:
|
|
116
|
+
a. PROJECT.md
|
|
117
|
+
b. ROADMAP.md
|
|
118
|
+
c. Per-phase PLAN.md files
|
|
119
|
+
d. All files carry risk metadata and verification references
|
|
120
|
+
4. Generate handoff summary:
|
|
121
|
+
a. Total changes planned, by intervention level
|
|
122
|
+
b. Estimated phases and dependencies
|
|
123
|
+
c. Key risks and mitigation strategies
|
|
124
|
+
d. Guardrails to install before execution begins
|
|
125
|
+
5. Update .radar/STATE.md:
|
|
126
|
+
a. current_phase: 8
|
|
127
|
+
b. phase_status: complete
|
|
128
|
+
c. phase_8_complete: true
|
|
129
|
+
d. transform_complete: true
|
|
130
|
+
e. drive_project_generated: true
|
|
131
|
+
f. total_changes, changes_by_intervention_level, phases_in_drive_project
|
|
132
|
+
g. timestamp
|
|
133
|
+
6. Mark Transform pipeline complete.
|
|
134
|
+
</step>
|
|
135
|
+
|
|
136
|
+
</process>
|
|
137
|
+
|
|
138
|
+
<output>
|
|
139
|
+
Artifacts created:
|
|
140
|
+
- execution/change-graph.yaml — Dependency graph of all proposed changes
|
|
141
|
+
- execution/verification-plan.md — Verification steps per change with evidence chains to original findings
|
|
142
|
+
- execution/drive-project/PROJECT.md — Drive project definition with Radar audit reference
|
|
143
|
+
- execution/drive-project/ROADMAP.md — Phased plan with dependency ordering and verification gates
|
|
144
|
+
- execution/drive-project/phases/{NN}-*/PLAN.md — Per-phase plans with risk metadata per task
|
|
145
|
+
- .radar/STATE.md — Updated with Phase 8 and Transform pipeline completion
|
|
146
|
+
|
|
147
|
+
CRITICAL: No execution artifacts. No file modifications. No change commands. Radar Transform produces plans only.
|
|
148
|
+
All verification plans conform to src/transform/schemas/verification-plan.md.
|
|
149
|
+
Drive project validated by transform-safety workflow.
|
|
150
|
+
</output>
|
|
151
|
+
|
|
152
|
+
<error_handling>
|
|
153
|
+
- **Phase 7 not complete:** Halt immediately. Display: "Phase 7 (Change Risk Validation) must complete before execution planning. Run phase-7-risk-validation workflow first." Do not proceed.
|
|
154
|
+
- **Verification plan cannot be constructed for a change:** Record as "unverifiable" with specific gap (missing oracle, environment mismatch, untestable behavior). Include in handoff summary. An unverifiable change should not be included in the Drive project without explicit risk acknowledgment.
|
|
155
|
+
- **Drive project generation fails:** Produce a manual remediation plan as fallback — a structured document describing changes, ordering, and verification in human-readable format without Drive project structure. Record fallback in STATE.md.
|
|
156
|
+
- **Final safety validation finds violations:** Resolve violations before persisting. This is the last gate — no bypass. If violations cannot be resolved, remove the violating changes from the Drive project and record as "excluded by safety validation" with reasons.
|
|
157
|
+
- **Dependency graph has cycles:** Report cycle to user. Cycles in change dependencies indicate that changes cannot be sequenced safely — some manual intervention is needed to break the cycle. Do not force a topological ordering that ignores cycles.
|
|
158
|
+
- **No-auto-execution boundary violation detected:** This is a CRITICAL error. Remove any execution commands, file modification instructions, or bypass mechanisms. Re-validate. Transform NEVER executes changes under any circumstances.
|
|
159
|
+
</error_handling>
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Validates Transform output against the safety framework — enforcing confidence gating, risk thresholds, intervention level integrity, the no-auto-execution boundary, and refusal conditions. Invoked as a utility workflow by phase workflows at every safety checkpoint.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<phase_context>
|
|
6
|
+
Phase: N/A — Utility workflow invoked by Phase 6, 7, and 8 workflows
|
|
7
|
+
Prior phase output: Varies by invocation point — playbooks (Phase 6), risk-scored changes (Phase 7), Drive project (Phase 8)
|
|
8
|
+
Agents invoked: None — this is a validation gate, not an agent orchestration workflow
|
|
9
|
+
Output: Safety validation result (pass/fail per item), intervention level adjustments, refusal records
|
|
10
|
+
</phase_context>
|
|
11
|
+
|
|
12
|
+
<required_input>
|
|
13
|
+
@~/.claude/radar/transform/rules/safety-governance.md
|
|
14
|
+
@~/.claude/radar/transform/rules/change-risk-rules.md
|
|
15
|
+
@~/.claude/radar/transform/schemas/intervention-level.md
|
|
16
|
+
@~/.claude/radar/schemas/confidence.md
|
|
17
|
+
@~/.claude/radar/transform/schemas/change-risk.md
|
|
18
|
+
Items to validate (passed by invoking workflow):
|
|
19
|
+
- Playbooks with intervention level classifications
|
|
20
|
+
- Finding confidence scores
|
|
21
|
+
- Risk dimensional profiles (when available)
|
|
22
|
+
- Drive project artifacts (Phase 8)
|
|
23
|
+
</required_input>
|
|
24
|
+
|
|
25
|
+
<process>
|
|
26
|
+
|
|
27
|
+
<step name="confidence_gating" priority="first">
|
|
28
|
+
1. For each item being validated (playbook, change, or Drive task):
|
|
29
|
+
a. Retrieve the declared intervention level
|
|
30
|
+
b. Retrieve the confidence score of the underlying finding(s)
|
|
31
|
+
c. Check against confidence thresholds:
|
|
32
|
+
- Suggesting: requires Low confidence minimum (1 source)
|
|
33
|
+
- Planning: requires Medium confidence minimum (2 independent sources)
|
|
34
|
+
- Authorizing: requires High confidence minimum (3+ independent sources)
|
|
35
|
+
- Executing: requires High confidence minimum (3+ independent sources with cross-validation)
|
|
36
|
+
d. If confidence is insufficient for declared level:
|
|
37
|
+
- Downgrade to the highest level the confidence supports
|
|
38
|
+
- Record: original level, downgraded level, confidence score, reason
|
|
39
|
+
- Example: "Downgraded from Authorizing to Planning — confidence has 2 sources, Authorizing requires 3+"
|
|
40
|
+
2. Any confidence dimension rated 1 (lowest) caps overall confidence at Low regardless of other dimensions.
|
|
41
|
+
3. Confidence vectors are immutable — do not modify the original finding's confidence, only the intervention level classification.
|
|
42
|
+
</step>
|
|
43
|
+
|
|
44
|
+
<step name="risk_threshold_check" priority="blocking">
|
|
45
|
+
1. For each item with risk scores (available after Phase 7):
|
|
46
|
+
a. Check all 4 risk dimensions:
|
|
47
|
+
- Blast radius
|
|
48
|
+
- Coupling coefficient
|
|
49
|
+
- Regression probability
|
|
50
|
+
- Architectural tension
|
|
51
|
+
b. If ANY single dimension exceeds "high" threshold:
|
|
52
|
+
- Force intervention level downgrade to Suggesting
|
|
53
|
+
- Record: which dimension triggered, score value, original level
|
|
54
|
+
- This is the "unsafe context circuit breaker" — non-negotiable
|
|
55
|
+
c. If multiple dimensions are elevated but none exceed "high":
|
|
56
|
+
- Flag for heightened scrutiny but do not auto-downgrade
|
|
57
|
+
- Record: elevated dimensions and combined risk profile
|
|
58
|
+
2. Risk-based downgrades override confidence-based levels:
|
|
59
|
+
a. Even if confidence supports Authorizing, a high-risk dimension forces Suggesting
|
|
60
|
+
b. Risk check is the more conservative gate
|
|
61
|
+
3. For items without risk scores (Phase 6 invocation before risk scoring):
|
|
62
|
+
a. Skip dimensional risk check
|
|
63
|
+
b. Apply confidence gating only
|
|
64
|
+
c. Note: full risk validation occurs in Phase 7
|
|
65
|
+
</step>
|
|
66
|
+
|
|
67
|
+
<step name="intervention_level_enforcement" priority="blocking">
|
|
68
|
+
1. Verify final intervention level integrity:
|
|
69
|
+
a. No playbook or change claims a higher level than its evidence warrants
|
|
70
|
+
b. Levels reflect the MORE restrictive of confidence gating and risk threshold checks
|
|
71
|
+
c. Intervention levels are immutable after approval — once set, they cannot be escalated
|
|
72
|
+
2. Validate intervention level semantics:
|
|
73
|
+
a. Suggesting: advisory only, no structural commitments, developer decides
|
|
74
|
+
b. Planning: structured remediation plan, human approval required before any action
|
|
75
|
+
c. Authorizing: approved plan with verification gates, still requires human execution
|
|
76
|
+
d. Executing: approved + verified plan with automated verification — but Transform NEVER reaches this level (see no-auto-execution boundary)
|
|
77
|
+
3. Record final intervention level for each item.
|
|
78
|
+
</step>
|
|
79
|
+
|
|
80
|
+
<step name="no_auto_execution_boundary" priority="blocking">
|
|
81
|
+
1. Scan all Transform output for execution violations:
|
|
82
|
+
a. Direct file modification commands (write, edit, delete, move, rename)
|
|
83
|
+
b. Shell commands that modify the codebase (git commit, npm install, etc.)
|
|
84
|
+
c. Automated deployment triggers
|
|
85
|
+
d. Bypass mechanisms ("skip safety check", "override intervention level", "auto-apply")
|
|
86
|
+
e. Any instruction framed as imperative action rather than proposed plan
|
|
87
|
+
2. If ANY execution violation detected:
|
|
88
|
+
a. Flag as CRITICAL safety violation
|
|
89
|
+
b. Remove the violating content
|
|
90
|
+
c. Record: what was found, where, what was removed
|
|
91
|
+
d. This boundary is absolute — Transform produces plans, never executes them
|
|
92
|
+
3. Verify output framing:
|
|
93
|
+
a. All changes described as "proposed" or "recommended", never "will be applied"
|
|
94
|
+
b. All plans include human approval gates
|
|
95
|
+
c. All Drive tasks defer execution to the user's AI assistant operating under Drive framework
|
|
96
|
+
4. The no-auto-execution boundary exists because:
|
|
97
|
+
a. Transform output has not been verified against the actual current codebase state
|
|
98
|
+
b. Transform agents may lack context about in-flight changes
|
|
99
|
+
c. Automated application of changes at audit scale carries unacceptable risk
|
|
100
|
+
d. Human oversight at the execution boundary is the final safety layer
|
|
101
|
+
</step>
|
|
102
|
+
|
|
103
|
+
<step name="refusal_conditions_check" priority="blocking">
|
|
104
|
+
1. Check all 5 refusal conditions. If ANY condition is met, refuse to generate or approve remediation for the affected item:
|
|
105
|
+
|
|
106
|
+
a. **Confidence insufficient:** Finding confidence is too low to support any intervention level above Suggesting, AND the proposed action requires Planning or higher. Refuse the action; the finding needs more evidence before remediation can proceed.
|
|
107
|
+
|
|
108
|
+
b. **Risk exceeds bounds:** Risk dimensional profile shows one or more dimensions at maximum severity with no viable mitigation strategy. The proposed change is too dangerous to recommend in any form. Refuse; flag for human architectural review.
|
|
109
|
+
|
|
110
|
+
c. **Insufficient test coverage:** The blast radius of the proposed change extends into code with no test coverage, making regression verification structurally impossible. Refuse until test coverage is extended to cover the blast radius OR the change is rescoped to stay within tested boundaries.
|
|
111
|
+
|
|
112
|
+
d. **Unresolved high-severity disagreements:** The finding being remediated is subject to an unresolved disagreement with severity "high" or "critical" where no principal_response has been recorded. Refuse; the epistemic basis for the remediation is contested and the contest has not been resolved.
|
|
113
|
+
|
|
114
|
+
e. **Changes outside audit scope:** The proposed remediation modifies code, modules, or systems that were not included in the original audit scope (.radar/scope.md). Refuse; Transform cannot safely intervene in areas it has not analyzed.
|
|
115
|
+
|
|
116
|
+
2. For each refusal:
|
|
117
|
+
a. Record: which condition was met, which item was refused, specific evidence
|
|
118
|
+
b. Refusals are NOT errors — they are the safety system working correctly
|
|
119
|
+
c. Refused items are excluded from the final output with their refusal reason preserved
|
|
120
|
+
d. The invoking workflow must handle refused items appropriately (record, report, do not force)
|
|
121
|
+
</step>
|
|
122
|
+
|
|
123
|
+
<step name="record_safety_audit" priority="blocking">
|
|
124
|
+
1. Compile safety audit record:
|
|
125
|
+
a. Total items validated
|
|
126
|
+
b. Items passed without adjustment
|
|
127
|
+
c. Items with confidence-based downgrades (list with reasons)
|
|
128
|
+
d. Items with risk-based downgrades (list with triggering dimensions)
|
|
129
|
+
e. Items refused (list with refusal conditions)
|
|
130
|
+
f. Execution boundary violations detected and removed (list with details)
|
|
131
|
+
2. Return safety validation result to invoking workflow:
|
|
132
|
+
a. Per-item pass/fail/downgrade/refuse status
|
|
133
|
+
b. Adjusted intervention levels
|
|
134
|
+
c. Refusal records
|
|
135
|
+
d. Safety audit summary
|
|
136
|
+
3. This record is preserved in .radar/STATE.md and included in the final Transform output for audit trail purposes.
|
|
137
|
+
</step>
|
|
138
|
+
|
|
139
|
+
</process>
|
|
140
|
+
|
|
141
|
+
<output>
|
|
142
|
+
Returned to invoking workflow:
|
|
143
|
+
- Per-item validation result: pass (no changes), downgrade (level adjusted), refuse (item excluded)
|
|
144
|
+
- Adjusted intervention levels with downgrade rationale
|
|
145
|
+
- Refusal records with specific condition and evidence
|
|
146
|
+
- Safety audit summary (counts, details, boundary checks)
|
|
147
|
+
|
|
148
|
+
No artifacts created directly — the invoking workflow persists results.
|
|
149
|
+
Safety audit trail preserved in .radar/STATE.md for each invocation.
|
|
150
|
+
</output>
|
|
151
|
+
|
|
152
|
+
<error_handling>
|
|
153
|
+
- **Safety violations are NOT errors:** A downgrade, a refusal, or an execution boundary violation detection is the safety system working correctly. These are expected outcomes, not failures to recover from.
|
|
154
|
+
- **Missing confidence data:** If a finding lacks a confidence score, treat as confidence = unknown. Unknown confidence caps intervention level at Suggesting. Record as: "Confidence data missing — defaulting to Suggesting."
|
|
155
|
+
- **Missing risk data:** If invoked before risk scoring (Phase 6), skip risk threshold check. Note in safety audit that risk validation was not performed at this checkpoint. Full risk validation occurs in Phase 7.
|
|
156
|
+
- **Conflicting safety signals:** If confidence gating and risk thresholds produce different intervention levels, use the MORE restrictive (lower) level. Safety errs conservative.
|
|
157
|
+
- **Invoking workflow ignores safety result:** This workflow cannot enforce compliance — it can only report. If an invoking workflow proceeds despite a refusal, the safety audit trail preserves the record. This is a process failure to be flagged in the Transform output summary, not a runtime error.
|
|
158
|
+
</error_handling>
|
|
File without changes
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"last_modified": null,
|
|
4
|
+
"config": {
|
|
5
|
+
"devmode": false,
|
|
6
|
+
"post_compact_gate": true,
|
|
7
|
+
"global_exclude": [],
|
|
8
|
+
"context_brackets": {
|
|
9
|
+
"FRESH": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"rules": []
|
|
12
|
+
},
|
|
13
|
+
"MODERATE": {
|
|
14
|
+
"enabled": true,
|
|
15
|
+
"rules": [
|
|
16
|
+
"Keep responses focused — avoid unnecessary exploration",
|
|
17
|
+
"Prefer targeted edits over full file rewrites"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"DEPLETED": {
|
|
21
|
+
"enabled": true,
|
|
22
|
+
"rules": [
|
|
23
|
+
"Minimize tool calls — batch aggressively",
|
|
24
|
+
"Skip verbose explanations — action over narration",
|
|
25
|
+
"Consider suggesting /compact or spawning a subagent for remaining work"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"commands": {}
|
|
30
|
+
},
|
|
31
|
+
"domains": {
|
|
32
|
+
"GLOBAL": {
|
|
33
|
+
"state": "active",
|
|
34
|
+
"always_on": true,
|
|
35
|
+
"recall": ["universal"],
|
|
36
|
+
"exclude": [],
|
|
37
|
+
"rules": [
|
|
38
|
+
{
|
|
39
|
+
"id": 0,
|
|
40
|
+
"text": "NEVER use relative paths in code — use absolute. NEVER use absolute paths when referencing files to user — use relative.",
|
|
41
|
+
"added": null,
|
|
42
|
+
"last_reviewed": null,
|
|
43
|
+
"source": "template"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": 1,
|
|
47
|
+
"text": "NEVER run independent tool calls sequentially — batch them in parallel.",
|
|
48
|
+
"added": null,
|
|
49
|
+
"last_reviewed": null,
|
|
50
|
+
"source": "template"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": 2,
|
|
54
|
+
"text": "NEVER mark tasks complete without validation — test everything, require proof.",
|
|
55
|
+
"added": null,
|
|
56
|
+
"last_reviewed": null,
|
|
57
|
+
"source": "template"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"decisions": []
|
|
61
|
+
},
|
|
62
|
+
"DEVELOPMENT": {
|
|
63
|
+
"state": "active",
|
|
64
|
+
"always_on": false,
|
|
65
|
+
"recall": ["write code for", "fix this bug", "implement this feature", "build this component", "refactor this", "add this endpoint", "programming task", "code review"],
|
|
66
|
+
"exclude": [],
|
|
67
|
+
"rules": [],
|
|
68
|
+
"decisions": []
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"staging": []
|
|
72
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# CLAUDE.md Audit Guide
|
|
2
|
+
|
|
3
|
+
Help users identify content in their CLAUDE.md that could be migrated to Vector domains for leaner context.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
This guide helps Claude audit a user's CLAUDE.md and **suggest** (not automatically change) content that could become Vector domains. The goal is to reduce static context bloat while preserving the user's preferences.
|
|
8
|
+
|
|
9
|
+
## Audit Process
|
|
10
|
+
|
|
11
|
+
When a user asks to audit their CLAUDE.md for Vector migration:
|
|
12
|
+
|
|
13
|
+
### Step 1: Read Their CLAUDE.md
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
Read the user's CLAUDE.md (project or global)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Step 2: Categorize Content
|
|
20
|
+
|
|
21
|
+
Identify content types:
|
|
22
|
+
|
|
23
|
+
| Type | Should Stay in CLAUDE.md | Could Become Vector Domain |
|
|
24
|
+
|------|--------------------------|--------------------------|
|
|
25
|
+
| Project identity | Yes | No |
|
|
26
|
+
| Directory structure | Yes | No |
|
|
27
|
+
| Team/business context | Yes | No |
|
|
28
|
+
| Git conventions | Yes | No |
|
|
29
|
+
| **Coding preferences** | Maybe | **Yes** |
|
|
30
|
+
| **Response formatting rules** | Maybe | **Yes** |
|
|
31
|
+
| **Workflow-specific instructions** | Maybe | **Yes** |
|
|
32
|
+
| **Tool usage preferences** | Maybe | **Yes** |
|
|
33
|
+
| **Domain-specific rules** (testing, content, etc.) | No | **Yes** |
|
|
34
|
+
|
|
35
|
+
### Step 3: Identify Candidates
|
|
36
|
+
|
|
37
|
+
Look for patterns that indicate domain candidates:
|
|
38
|
+
|
|
39
|
+
**Development preferences:**
|
|
40
|
+
```
|
|
41
|
+
"Always use TypeScript strict mode"
|
|
42
|
+
"Prefer functional components"
|
|
43
|
+
"Run tests after changes"
|
|
44
|
+
```
|
|
45
|
+
→ Suggest: DEVELOPMENT domain
|
|
46
|
+
|
|
47
|
+
**Content/writing rules:**
|
|
48
|
+
```
|
|
49
|
+
"Use active voice"
|
|
50
|
+
"Keep paragraphs short"
|
|
51
|
+
"Include code examples"
|
|
52
|
+
```
|
|
53
|
+
→ Suggest: CONTENT domain
|
|
54
|
+
|
|
55
|
+
**Review/quality rules:**
|
|
56
|
+
```
|
|
57
|
+
"Check for security issues"
|
|
58
|
+
"Note performance implications"
|
|
59
|
+
"Suggest improvements"
|
|
60
|
+
```
|
|
61
|
+
→ Suggest: REVIEW domain (or star-command)
|
|
62
|
+
|
|
63
|
+
**Response format rules:**
|
|
64
|
+
```
|
|
65
|
+
"Be concise"
|
|
66
|
+
"Use bullet points"
|
|
67
|
+
"Skip explanations unless asked"
|
|
68
|
+
```
|
|
69
|
+
→ Suggest: Star-command (*brief, *concise, etc.)
|
|
70
|
+
|
|
71
|
+
### Step 4: Present Findings
|
|
72
|
+
|
|
73
|
+
Format your audit report:
|
|
74
|
+
|
|
75
|
+
```markdown
|
|
76
|
+
## CLAUDE.md Audit Report
|
|
77
|
+
|
|
78
|
+
### Summary
|
|
79
|
+
- Total lines: X
|
|
80
|
+
- Identity/context content: X lines (keep)
|
|
81
|
+
- Migration candidates: X lines
|
|
82
|
+
|
|
83
|
+
### Keep in CLAUDE.md
|
|
84
|
+
These sections provide essential project context:
|
|
85
|
+
- [Section name] - [reason]
|
|
86
|
+
|
|
87
|
+
### Migration Candidates
|
|
88
|
+
|
|
89
|
+
#### Candidate 1: Development Preferences
|
|
90
|
+
**Current location:** Lines X-Y
|
|
91
|
+
**Content:**
|
|
92
|
+
> [quote the relevant content]
|
|
93
|
+
|
|
94
|
+
**Suggested domain:** DEVELOPMENT
|
|
95
|
+
**Suggested recall keywords:** write code, fix bug, implement
|
|
96
|
+
**Why migrate:** These rules only apply when coding, not for all interactions.
|
|
97
|
+
|
|
98
|
+
#### Candidate 2: ...
|
|
99
|
+
|
|
100
|
+
### Recommended Actions
|
|
101
|
+
1. [First recommended action]
|
|
102
|
+
2. [Second recommended action]
|
|
103
|
+
|
|
104
|
+
### Questions for User
|
|
105
|
+
- [Any clarifications needed]
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Step 5: Wait for Approval
|
|
109
|
+
|
|
110
|
+
**CRITICAL:** Do NOT modify the user's CLAUDE.md without explicit approval.
|
|
111
|
+
|
|
112
|
+
After presenting the audit:
|
|
113
|
+
1. Ask which candidates they want to migrate
|
|
114
|
+
2. Confirm the domain names and recall keywords
|
|
115
|
+
3. Only then create the domains (using /vector:manager or manually)
|
|
116
|
+
4. Only then remove content from CLAUDE.md (with user approval)
|
|
117
|
+
|
|
118
|
+
## Example Audit Conversation
|
|
119
|
+
|
|
120
|
+
**User:** Can you audit my CLAUDE.md for Vector migration?
|
|
121
|
+
|
|
122
|
+
**Claude:** I'll read your CLAUDE.md and identify content that could become Vector domains.
|
|
123
|
+
|
|
124
|
+
[Reads file, analyzes content]
|
|
125
|
+
|
|
126
|
+
**Claude:** Here's my audit:
|
|
127
|
+
|
|
128
|
+
### Migration Candidates
|
|
129
|
+
|
|
130
|
+
**1. Coding Preferences (Lines 45-52)**
|
|
131
|
+
> "Always use TypeScript strict mode. Prefer editing existing files. Run tests after changes. Keep changes minimal."
|
|
132
|
+
|
|
133
|
+
This could become a DEVELOPMENT domain with recall keywords: "write code, fix bug, implement"
|
|
134
|
+
|
|
135
|
+
**2. Response Formatting (Lines 60-63)**
|
|
136
|
+
> "Be concise. Use bullet points. Skip explanations unless asked."
|
|
137
|
+
|
|
138
|
+
This could become a `*brief` star-command.
|
|
139
|
+
|
|
140
|
+
**Questions:**
|
|
141
|
+
- Should I create these domains?
|
|
142
|
+
- Any adjustments to the recall keywords?
|
|
143
|
+
|
|
144
|
+
**User:** Yes, create the DEVELOPMENT domain but I want *concise instead of *brief.
|
|
145
|
+
|
|
146
|
+
**Claude:** [Creates DEVELOPMENT domain and *concise command, then asks permission to remove the migrated lines from CLAUDE.md]
|
|
147
|
+
|
|
148
|
+
## Key Principles
|
|
149
|
+
|
|
150
|
+
1. **Diagnostic first** — Analyze and report before suggesting changes
|
|
151
|
+
2. **User approval required** — Never modify CLAUDE.md without explicit consent
|
|
152
|
+
3. **Preserve identity content** — Project context stays in CLAUDE.md
|
|
153
|
+
4. **Migrate behavioral content** — Rules and preferences can become domains
|
|
154
|
+
5. **Explain the benefit** — Show how migration reduces context usage
|