cclaw-cli 7.7.1 → 8.1.1
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/README.md +211 -134
- package/dist/artifact-frontmatter.d.ts +51 -0
- package/dist/artifact-frontmatter.js +131 -0
- package/dist/artifact-paths.d.ts +7 -27
- package/dist/artifact-paths.js +20 -249
- package/dist/cancel.d.ts +16 -0
- package/dist/cancel.js +66 -0
- package/dist/cli.d.ts +2 -27
- package/dist/cli.js +107 -511
- package/dist/compound.d.ts +26 -0
- package/dist/compound.js +96 -0
- package/dist/config.d.ts +14 -51
- package/dist/config.js +23 -359
- package/dist/constants.d.ts +11 -18
- package/dist/constants.js +19 -106
- package/dist/content/antipatterns.d.ts +1 -0
- package/dist/content/antipatterns.js +109 -0
- package/dist/content/artifact-templates.d.ts +10 -0
- package/dist/content/artifact-templates.js +550 -0
- package/dist/content/cancel-command.d.ts +2 -2
- package/dist/content/cancel-command.js +25 -17
- package/dist/content/core-agents.d.ts +9 -233
- package/dist/content/core-agents.js +39 -768
- package/dist/content/decision-protocol.d.ts +1 -12
- package/dist/content/decision-protocol.js +27 -20
- package/dist/content/examples.d.ts +8 -42
- package/dist/content/examples.js +293 -425
- package/dist/content/idea-command.d.ts +2 -0
- package/dist/content/idea-command.js +38 -0
- package/dist/content/iron-laws.d.ts +4 -138
- package/dist/content/iron-laws.js +18 -197
- package/dist/content/meta-skill.d.ts +1 -3
- package/dist/content/meta-skill.js +57 -134
- package/dist/content/node-hooks.d.ts +12 -8
- package/dist/content/node-hooks.js +188 -838
- package/dist/content/recovery.d.ts +8 -0
- package/dist/content/recovery.js +179 -0
- package/dist/content/reference-patterns.d.ts +4 -13
- package/dist/content/reference-patterns.js +260 -389
- package/dist/content/research-playbooks.d.ts +8 -8
- package/dist/content/research-playbooks.js +108 -121
- package/dist/content/review-loop.d.ts +6 -192
- package/dist/content/review-loop.js +29 -731
- package/dist/content/skills.d.ts +8 -38
- package/dist/content/skills.js +681 -732
- package/dist/content/specialist-prompts/architect.d.ts +1 -0
- package/dist/content/specialist-prompts/architect.js +225 -0
- package/dist/content/specialist-prompts/brainstormer.d.ts +1 -0
- package/dist/content/specialist-prompts/brainstormer.js +168 -0
- package/dist/content/specialist-prompts/index.d.ts +2 -0
- package/dist/content/specialist-prompts/index.js +14 -0
- package/dist/content/specialist-prompts/planner.d.ts +1 -0
- package/dist/content/specialist-prompts/planner.js +182 -0
- package/dist/content/specialist-prompts/reviewer.d.ts +1 -0
- package/dist/content/specialist-prompts/reviewer.js +193 -0
- package/dist/content/specialist-prompts/security-reviewer.d.ts +1 -0
- package/dist/content/specialist-prompts/security-reviewer.js +133 -0
- package/dist/content/specialist-prompts/slice-builder.d.ts +1 -0
- package/dist/content/specialist-prompts/slice-builder.js +232 -0
- package/dist/content/stage-playbooks.d.ts +8 -0
- package/dist/content/stage-playbooks.js +404 -0
- package/dist/content/start-command.d.ts +2 -12
- package/dist/content/start-command.js +221 -207
- package/dist/flow-state.d.ts +21 -178
- package/dist/flow-state.js +67 -170
- package/dist/fs-utils.d.ts +6 -26
- package/dist/fs-utils.js +29 -162
- package/dist/gitignore.d.ts +2 -1
- package/dist/gitignore.js +51 -34
- package/dist/harness-detect.d.ts +10 -0
- package/dist/harness-detect.js +29 -0
- package/dist/harness-prompt.d.ts +26 -0
- package/dist/harness-prompt.js +142 -0
- package/dist/install.d.ts +35 -15
- package/dist/install.js +238 -1347
- package/dist/knowledge-store.d.ts +19 -163
- package/dist/knowledge-store.js +56 -590
- package/dist/logger.d.ts +8 -3
- package/dist/logger.js +13 -4
- package/dist/orchestrator-routing.d.ts +29 -0
- package/dist/orchestrator-routing.js +156 -0
- package/dist/run-persistence.d.ts +7 -118
- package/dist/run-persistence.js +29 -845
- package/dist/runtime/run-hook.entry.d.ts +1 -3
- package/dist/runtime/run-hook.entry.js +19 -4
- package/dist/runtime/run-hook.mjs +13 -1024
- package/dist/types.d.ts +25 -261
- package/dist/types.js +8 -36
- package/package.json +6 -3
- package/dist/artifact-linter/brainstorm.d.ts +0 -2
- package/dist/artifact-linter/brainstorm.js +0 -353
- package/dist/artifact-linter/design.d.ts +0 -18
- package/dist/artifact-linter/design.js +0 -444
- package/dist/artifact-linter/findings-dedup.d.ts +0 -56
- package/dist/artifact-linter/findings-dedup.js +0 -232
- package/dist/artifact-linter/plan.d.ts +0 -2
- package/dist/artifact-linter/plan.js +0 -826
- package/dist/artifact-linter/review-army.d.ts +0 -49
- package/dist/artifact-linter/review-army.js +0 -520
- package/dist/artifact-linter/review.d.ts +0 -2
- package/dist/artifact-linter/review.js +0 -113
- package/dist/artifact-linter/scope.d.ts +0 -2
- package/dist/artifact-linter/scope.js +0 -158
- package/dist/artifact-linter/shared.d.ts +0 -637
- package/dist/artifact-linter/shared.js +0 -2163
- package/dist/artifact-linter/ship.d.ts +0 -2
- package/dist/artifact-linter/ship.js +0 -250
- package/dist/artifact-linter/spec.d.ts +0 -2
- package/dist/artifact-linter/spec.js +0 -176
- package/dist/artifact-linter/tdd.d.ts +0 -118
- package/dist/artifact-linter/tdd.js +0 -1404
- package/dist/artifact-linter.d.ts +0 -15
- package/dist/artifact-linter.js +0 -517
- package/dist/codex-feature-flag.d.ts +0 -58
- package/dist/codex-feature-flag.js +0 -193
- package/dist/content/closeout-guidance.d.ts +0 -14
- package/dist/content/closeout-guidance.js +0 -44
- package/dist/content/diff-command.d.ts +0 -1
- package/dist/content/diff-command.js +0 -43
- package/dist/content/harness-doc.d.ts +0 -1
- package/dist/content/harness-doc.js +0 -65
- package/dist/content/hook-events.d.ts +0 -9
- package/dist/content/hook-events.js +0 -23
- package/dist/content/hook-manifest.d.ts +0 -81
- package/dist/content/hook-manifest.js +0 -156
- package/dist/content/hooks.d.ts +0 -11
- package/dist/content/hooks.js +0 -1972
- package/dist/content/idea.d.ts +0 -60
- package/dist/content/idea.js +0 -416
- package/dist/content/language-policy.d.ts +0 -2
- package/dist/content/language-policy.js +0 -13
- package/dist/content/learnings.d.ts +0 -6
- package/dist/content/learnings.js +0 -141
- package/dist/content/observe.d.ts +0 -19
- package/dist/content/observe.js +0 -86
- package/dist/content/opencode-plugin.d.ts +0 -1
- package/dist/content/opencode-plugin.js +0 -635
- package/dist/content/review-prompts.d.ts +0 -1
- package/dist/content/review-prompts.js +0 -104
- package/dist/content/runtime-shared-snippets.d.ts +0 -8
- package/dist/content/runtime-shared-snippets.js +0 -80
- package/dist/content/session-hooks.d.ts +0 -7
- package/dist/content/session-hooks.js +0 -107
- package/dist/content/skills-elicitation.d.ts +0 -1
- package/dist/content/skills-elicitation.js +0 -167
- package/dist/content/stage-command.d.ts +0 -2
- package/dist/content/stage-command.js +0 -17
- package/dist/content/stage-schema.d.ts +0 -117
- package/dist/content/stage-schema.js +0 -955
- package/dist/content/stages/_lint-metadata/index.d.ts +0 -2
- package/dist/content/stages/_lint-metadata/index.js +0 -97
- package/dist/content/stages/brainstorm.d.ts +0 -2
- package/dist/content/stages/brainstorm.js +0 -184
- package/dist/content/stages/design.d.ts +0 -2
- package/dist/content/stages/design.js +0 -288
- package/dist/content/stages/index.d.ts +0 -8
- package/dist/content/stages/index.js +0 -11
- package/dist/content/stages/plan.d.ts +0 -2
- package/dist/content/stages/plan.js +0 -191
- package/dist/content/stages/review.d.ts +0 -2
- package/dist/content/stages/review.js +0 -240
- package/dist/content/stages/schema-types.d.ts +0 -203
- package/dist/content/stages/schema-types.js +0 -1
- package/dist/content/stages/scope.d.ts +0 -2
- package/dist/content/stages/scope.js +0 -254
- package/dist/content/stages/ship.d.ts +0 -2
- package/dist/content/stages/ship.js +0 -159
- package/dist/content/stages/spec.d.ts +0 -2
- package/dist/content/stages/spec.js +0 -170
- package/dist/content/stages/tdd.d.ts +0 -4
- package/dist/content/stages/tdd.js +0 -273
- package/dist/content/state-contracts.d.ts +0 -1
- package/dist/content/state-contracts.js +0 -63
- package/dist/content/status-command.d.ts +0 -4
- package/dist/content/status-command.js +0 -109
- package/dist/content/subagent-context-skills.d.ts +0 -4
- package/dist/content/subagent-context-skills.js +0 -279
- package/dist/content/subagents.d.ts +0 -3
- package/dist/content/subagents.js +0 -997
- package/dist/content/templates.d.ts +0 -26
- package/dist/content/templates.js +0 -1692
- package/dist/content/track-render-context.d.ts +0 -18
- package/dist/content/track-render-context.js +0 -53
- package/dist/content/tree-command.d.ts +0 -1
- package/dist/content/tree-command.js +0 -64
- package/dist/content/utility-skills.d.ts +0 -30
- package/dist/content/utility-skills.js +0 -160
- package/dist/content/view-command.d.ts +0 -2
- package/dist/content/view-command.js +0 -92
- package/dist/delegation.d.ts +0 -649
- package/dist/delegation.js +0 -1539
- package/dist/early-loop.d.ts +0 -70
- package/dist/early-loop.js +0 -302
- package/dist/execution-topology.d.ts +0 -44
- package/dist/execution-topology.js +0 -95
- package/dist/gate-evidence.d.ts +0 -85
- package/dist/gate-evidence.js +0 -631
- package/dist/harness-adapters.d.ts +0 -151
- package/dist/harness-adapters.js +0 -756
- package/dist/harness-selection.d.ts +0 -31
- package/dist/harness-selection.js +0 -214
- package/dist/hook-schema.d.ts +0 -6
- package/dist/hook-schema.js +0 -114
- package/dist/hook-schemas/claude-hooks.v1.json +0 -10
- package/dist/hook-schemas/codex-hooks.v1.json +0 -10
- package/dist/hook-schemas/cursor-hooks.v1.json +0 -13
- package/dist/init-detect.d.ts +0 -2
- package/dist/init-detect.js +0 -50
- package/dist/internal/advance-stage/advance.d.ts +0 -89
- package/dist/internal/advance-stage/advance.js +0 -655
- package/dist/internal/advance-stage/cancel-run.d.ts +0 -8
- package/dist/internal/advance-stage/cancel-run.js +0 -19
- package/dist/internal/advance-stage/flow-state-coercion.d.ts +0 -3
- package/dist/internal/advance-stage/flow-state-coercion.js +0 -81
- package/dist/internal/advance-stage/helpers.d.ts +0 -14
- package/dist/internal/advance-stage/helpers.js +0 -145
- package/dist/internal/advance-stage/hook.d.ts +0 -8
- package/dist/internal/advance-stage/hook.js +0 -40
- package/dist/internal/advance-stage/parsers.d.ts +0 -72
- package/dist/internal/advance-stage/parsers.js +0 -357
- package/dist/internal/advance-stage/proactive-delegation-trace.d.ts +0 -24
- package/dist/internal/advance-stage/proactive-delegation-trace.js +0 -56
- package/dist/internal/advance-stage/review-loop.d.ts +0 -16
- package/dist/internal/advance-stage/review-loop.js +0 -199
- package/dist/internal/advance-stage/rewind.d.ts +0 -14
- package/dist/internal/advance-stage/rewind.js +0 -108
- package/dist/internal/advance-stage/start-flow.d.ts +0 -13
- package/dist/internal/advance-stage/start-flow.js +0 -241
- package/dist/internal/advance-stage/verify.d.ts +0 -21
- package/dist/internal/advance-stage/verify.js +0 -185
- package/dist/internal/advance-stage.d.ts +0 -7
- package/dist/internal/advance-stage.js +0 -138
- package/dist/internal/cohesion-contract-stub.d.ts +0 -24
- package/dist/internal/cohesion-contract-stub.js +0 -148
- package/dist/internal/compound-readiness.d.ts +0 -23
- package/dist/internal/compound-readiness.js +0 -102
- package/dist/internal/detect-public-api-changes.d.ts +0 -5
- package/dist/internal/detect-public-api-changes.js +0 -45
- package/dist/internal/detect-supply-chain-changes.d.ts +0 -6
- package/dist/internal/detect-supply-chain-changes.js +0 -138
- package/dist/internal/early-loop-status.d.ts +0 -7
- package/dist/internal/early-loop-status.js +0 -93
- package/dist/internal/envelope-validate.d.ts +0 -7
- package/dist/internal/envelope-validate.js +0 -66
- package/dist/internal/flow-state-repair.d.ts +0 -20
- package/dist/internal/flow-state-repair.js +0 -104
- package/dist/internal/plan-split-waves.d.ts +0 -190
- package/dist/internal/plan-split-waves.js +0 -764
- package/dist/internal/runtime-integrity.d.ts +0 -7
- package/dist/internal/runtime-integrity.js +0 -268
- package/dist/internal/slice-commit.d.ts +0 -7
- package/dist/internal/slice-commit.js +0 -619
- package/dist/internal/tdd-loop-status.d.ts +0 -14
- package/dist/internal/tdd-loop-status.js +0 -68
- package/dist/internal/tdd-red-evidence.d.ts +0 -7
- package/dist/internal/tdd-red-evidence.js +0 -153
- package/dist/internal/waiver-grant.d.ts +0 -62
- package/dist/internal/waiver-grant.js +0 -294
- package/dist/internal/wave-status.d.ts +0 -74
- package/dist/internal/wave-status.js +0 -506
- package/dist/managed-resources.d.ts +0 -53
- package/dist/managed-resources.js +0 -313
- package/dist/policy.d.ts +0 -10
- package/dist/policy.js +0 -167
- package/dist/retro-gate.d.ts +0 -9
- package/dist/retro-gate.js +0 -47
- package/dist/run-archive.d.ts +0 -61
- package/dist/run-archive.js +0 -391
- package/dist/runs.d.ts +0 -2
- package/dist/runs.js +0 -2
- package/dist/stack-detection.d.ts +0 -116
- package/dist/stack-detection.js +0 -489
- package/dist/streaming/event-stream.d.ts +0 -31
- package/dist/streaming/event-stream.js +0 -114
- package/dist/tdd-cycle.d.ts +0 -107
- package/dist/tdd-cycle.js +0 -289
- package/dist/tdd-verification-evidence.d.ts +0 -17
- package/dist/tdd-verification-evidence.js +0 -122
- package/dist/track-heuristics.d.ts +0 -27
- package/dist/track-heuristics.js +0 -154
- package/dist/util/slice-id.d.ts +0 -58
- package/dist/util/slice-id.js +0 -89
- package/dist/worktree-manager.d.ts +0 -20
- package/dist/worktree-manager.js +0 -108
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
function skillFrontmatter(name, description) {
|
|
2
|
-
return [
|
|
3
|
-
"---",
|
|
4
|
-
`name: ${name}`,
|
|
5
|
-
`description: ${JSON.stringify(description)}`,
|
|
6
|
-
"---",
|
|
7
|
-
""
|
|
8
|
-
].join("\n");
|
|
9
|
-
}
|
|
10
|
-
function tddCycleEvidenceSkill() {
|
|
11
|
-
return `${skillFrontmatter("tdd-cycle-evidence", "Evidence contract for the mandatory slice-builder delegation across RED/GREEN/REFACTOR/DOC.")}# TDD Cycle Evidence
|
|
12
|
-
|
|
13
|
-
Use with the \`slice-builder\` delegation in the \`tdd\` stage. One \`slice-builder\` span owns the full cycle for a feature-atomic implementation unit/slice, including its internal 2-5 minute TDD steps.
|
|
14
|
-
|
|
15
|
-
## Required Output
|
|
16
|
-
|
|
17
|
-
- RED evidence: failing test command, failing assertion/error, and why it fails for the intended reason.
|
|
18
|
-
- GREEN evidence: implementation summary plus relevant passing command.
|
|
19
|
-
- REFACTOR evidence: changed/unchanged behavior statement plus full-suite or highest available verification command. \`refactor-deferred\` is acceptable when paired with rationale and a tracked follow-up.
|
|
20
|
-
- DOC evidence: \`<artifacts-dir>/tdd-slices/S-<id>.md\` populated with the slice summary.
|
|
21
|
-
- Trace refs: plan task ID, acceptance criterion ID, and touched test files.
|
|
22
|
-
|
|
23
|
-
## Guardrails
|
|
24
|
-
|
|
25
|
-
- No production code before RED evidence exists.
|
|
26
|
-
- If a RED test cannot be expressed, stop and route back to design/spec with the blocker.
|
|
27
|
-
- Record command output summaries, not just "tests passed".
|
|
28
|
-
- Multiple \`slice-builder\` spans run in parallel inside one wave only when topology is \`parallel-builders\` and their \`claimedPaths\` are disjoint. \`strict-micro\` keeps tiny tasks separate; \`inline\` skips delegation but not RED/GREEN/REFACTOR evidence.
|
|
29
|
-
`;
|
|
30
|
-
}
|
|
31
|
-
function reviewSpecPassSkill() {
|
|
32
|
-
return `${skillFrontmatter("review-spec-pass", "Spec compliance pass for the mandatory reviewer delegation during review.")}# Review Spec Pass
|
|
33
|
-
|
|
34
|
-
Use with the \`reviewer\` delegation in the \`review\` stage before broader code-quality findings.
|
|
35
|
-
|
|
36
|
-
## Required Output
|
|
37
|
-
|
|
38
|
-
- For each acceptance criterion: PASS / PARTIAL / FAIL.
|
|
39
|
-
- Evidence refs grounded in files, tests, artifacts, or command output.
|
|
40
|
-
- Any mismatch between scope/design/spec/plan and implementation.
|
|
41
|
-
- Explicit list of Critical/Important blockers before ship.
|
|
42
|
-
|
|
43
|
-
## Guardrails
|
|
44
|
-
|
|
45
|
-
- Do not trust implementer summaries; verify by reading artifacts/code.
|
|
46
|
-
- Keep spec compliance separate from style suggestions.
|
|
47
|
-
`;
|
|
48
|
-
}
|
|
49
|
-
function securityAuditSkill() {
|
|
50
|
-
return `${skillFrontmatter("security-audit", "Mandatory security sweep contract for the security-reviewer delegation.")}# Security Audit
|
|
51
|
-
|
|
52
|
-
Use with the \`security-reviewer\` delegation in the \`review\` stage.
|
|
53
|
-
|
|
54
|
-
## Required Output
|
|
55
|
-
|
|
56
|
-
- Trust-boundary map: auth/authz, input validation, secrets, filesystem/network/process access, third-party calls.
|
|
57
|
-
- Findings with severity, exploitability, affected file/path, and concrete mitigation.
|
|
58
|
-
- NO_CHANGE_ATTESTATION when no security-relevant surface moved, with evidence for why.
|
|
59
|
-
|
|
60
|
-
## Guardrails
|
|
61
|
-
|
|
62
|
-
- Pattern-scan the diff and touched modules before attesting no change.
|
|
63
|
-
- Security is mandatory in review even for small diffs.
|
|
64
|
-
`;
|
|
65
|
-
}
|
|
66
|
-
function adversarialReviewSkill() {
|
|
67
|
-
return `${skillFrontmatter("adversarial-review", "Second-opinion reviewer lens for high-risk review scenarios.")}# Adversarial Review
|
|
68
|
-
|
|
69
|
-
Use only when the review dispatch trigger says risk justifies a second opinion.
|
|
70
|
-
|
|
71
|
-
## Required Output
|
|
72
|
-
|
|
73
|
-
- Attack the implementation assumptions, not the author.
|
|
74
|
-
- Look for hidden coupling, rollback gaps, data loss, race conditions, and untested edge cases.
|
|
75
|
-
- Mark each finding as confirmed, disproven, or needs-human-decision.
|
|
76
|
-
|
|
77
|
-
## Guardrails
|
|
78
|
-
|
|
79
|
-
- Do not duplicate the mandatory reviewer pass.
|
|
80
|
-
- If no additional risk is found, say so explicitly and cite what was checked.
|
|
81
|
-
`;
|
|
82
|
-
}
|
|
83
|
-
function receivingCodeReviewSkill() {
|
|
84
|
-
return `${skillFrontmatter("receiving-code-review", "Workflow for triaging external reviewer, bot, or CI feedback during review.")}# Receiving Code Review
|
|
85
|
-
|
|
86
|
-
Use when external comments, bot findings, or CI annotations appear after the initial review pass.
|
|
87
|
-
|
|
88
|
-
## Required Output
|
|
89
|
-
|
|
90
|
-
- Queue every feedback item with source, severity, requested change, and evidence.
|
|
91
|
-
- Disposition: accepted, rejected-with-evidence, accepted-risk, duplicate, or needs-user-decision.
|
|
92
|
-
- Mirror the queue into the review artifact so unresolved feedback cannot disappear.
|
|
93
|
-
|
|
94
|
-
## Guardrails
|
|
95
|
-
|
|
96
|
-
- Do not silently dismiss bot/CI feedback.
|
|
97
|
-
- Re-run relevant checks after accepted fixes.
|
|
98
|
-
`;
|
|
99
|
-
}
|
|
100
|
-
function stackAwareReviewSkill() {
|
|
101
|
-
return `${skillFrontmatter("stack-aware-review", "Language/runtime-specific review lens selected from detected repo signals.")}# Stack-Aware Review
|
|
102
|
-
|
|
103
|
-
Use after the default reviewer/security-reviewer passes when repo signals identify a relevant stack.
|
|
104
|
-
|
|
105
|
-
## Required Output
|
|
106
|
-
|
|
107
|
-
- Detected stack signal and why this lens applies.
|
|
108
|
-
- Stack-specific risks checked: package/build/test config, type/runtime boundaries, framework conventions, and deployment assumptions.
|
|
109
|
-
- Findings with evidence and whether they affect ship readiness.
|
|
110
|
-
|
|
111
|
-
## Guardrails
|
|
112
|
-
|
|
113
|
-
- Do not run every stack lens unconditionally.
|
|
114
|
-
- Keep the default general reviewer pass intact; this is additive context, not a replacement.
|
|
115
|
-
`;
|
|
116
|
-
}
|
|
117
|
-
function criticMultiPerspectiveSkill() {
|
|
118
|
-
return `${skillFrontmatter("critic-multi-perspective", "Multi-perspective critic protocol with pre-commitment predictions and realist checks.")}# Critic Multi-Perspective Pass
|
|
119
|
-
|
|
120
|
-
Use with the \`critic\` delegation in \`brainstorm\`, \`scope\`, and \`design\`.
|
|
121
|
-
|
|
122
|
-
## Required Output
|
|
123
|
-
|
|
124
|
-
- Before investigation, emit \`predictions[]\` with explicit hypotheses.
|
|
125
|
-
- Analyze through context-aware angles:
|
|
126
|
-
- plan/spec/scope: executor, stakeholder, skeptic
|
|
127
|
-
- design/code: security, operator, new-hire
|
|
128
|
-
- Include a dedicated gap analysis (what is missing, not only what is wrong).
|
|
129
|
-
- Move low-confidence concerns (<=4/10) into \`openQuestions[]\`.
|
|
130
|
-
- For every critical/major concern, include a \`realistCheckResults[]\` verdict.
|
|
131
|
-
- End with \`predictionsValidated[]\` mapping each prediction to confirmed/disproven.
|
|
132
|
-
|
|
133
|
-
## Guardrails
|
|
134
|
-
|
|
135
|
-
- Do not block solely on low-confidence concerns.
|
|
136
|
-
- Suppress or downgrade implausible critical findings during realist checks.
|
|
137
|
-
- Escalate to adversarial mode when reviewers disagree, confidence is low, or trust boundaries are involved.
|
|
138
|
-
`;
|
|
139
|
-
}
|
|
140
|
-
function documentCoherencePassSkill() {
|
|
141
|
-
return `${skillFrontmatter("document-coherence-pass", "Consistency-focused pass for cross-section coherence in spec/plan/design documents.")}# Document Coherence Pass
|
|
142
|
-
|
|
143
|
-
Use with \`coherence-reviewer\` on spec/plan/design artifacts.
|
|
144
|
-
|
|
145
|
-
## Required Output
|
|
146
|
-
|
|
147
|
-
- List contradictions between sections and where they occur.
|
|
148
|
-
- Flag terminology drift where one concept is named inconsistently.
|
|
149
|
-
- Flag broken internal references, forward references, and dependency narrative mismatches.
|
|
150
|
-
- Return calibrated findings with concrete anchors and one-line corrections.
|
|
151
|
-
|
|
152
|
-
## Guardrails
|
|
153
|
-
|
|
154
|
-
- Do not score overall quality; focus on consistency and coherence only.
|
|
155
|
-
- Do not invent contradictions without citation to concrete sections/lines.
|
|
156
|
-
`;
|
|
157
|
-
}
|
|
158
|
-
function documentScopeGuardSkill() {
|
|
159
|
-
return `${skillFrontmatter("document-scope-guard", "Complexity and minimum-change guardrail for scope/plan/design documents.")}# Document Scope Guard
|
|
160
|
-
|
|
161
|
-
Use with \`scope-guardian-reviewer\` when expansion pressure or abstraction creep is likely.
|
|
162
|
-
|
|
163
|
-
## Required Output
|
|
164
|
-
|
|
165
|
-
- Surface where existing solutions can be reused instead of adding new abstractions.
|
|
166
|
-
- Identify minimum-change alternative when current proposal is broader than needed.
|
|
167
|
-
- Call out complexity smells (speculative generic utilities, framework-ahead-of-need structures).
|
|
168
|
-
- Return calibrated findings with explicit impact on scope boundaries.
|
|
169
|
-
|
|
170
|
-
## Guardrails
|
|
171
|
-
|
|
172
|
-
- Challenge unnecessary breadth, but do not silently shrink required user outcomes.
|
|
173
|
-
- Tie every scope reduction recommendation to a concrete cost/risk rationale.
|
|
174
|
-
`;
|
|
175
|
-
}
|
|
176
|
-
function documentFeasibilityPassSkill() {
|
|
177
|
-
return `${skillFrontmatter("document-feasibility-pass", "Feasibility validation for runtime/resource/dependency assumptions in plan/design artifacts.")}# Document Feasibility Pass
|
|
178
|
-
|
|
179
|
-
Use with \`feasibility-reviewer\` on plan/design docs that rely on runtime or operational assumptions.
|
|
180
|
-
|
|
181
|
-
## Required Output
|
|
182
|
-
|
|
183
|
-
- Enumerate resource/time/runtime assumptions and whether they are validated.
|
|
184
|
-
- Flag external dependency availability or reliability risks.
|
|
185
|
-
- Flag rollout assumptions that are not backed by operational evidence.
|
|
186
|
-
- Return PASS/PASS_WITH_GAPS/FAIL/BLOCKED rationale grounded in cited assumptions.
|
|
187
|
-
|
|
188
|
-
## Guardrails
|
|
189
|
-
|
|
190
|
-
- Focus on practical viability; do not redesign architecture unless feasibility is blocked.
|
|
191
|
-
- Distinguish unknowns that need evidence from hard blockers that require rework.
|
|
192
|
-
`;
|
|
193
|
-
}
|
|
194
|
-
function reviewPerfLensSkill() {
|
|
195
|
-
return `${skillFrontmatter("review-perf-lens", "Optional deep performance lens for large or high-risk review surfaces.")}# Review Performance Lens
|
|
196
|
-
|
|
197
|
-
Use as an optional follow-up lens when the default reviewer pass flags non-trivial performance risk.
|
|
198
|
-
|
|
199
|
-
## Required Output
|
|
200
|
-
|
|
201
|
-
- Hot-path or algorithmic-risk summary with touched files.
|
|
202
|
-
- Potential regressions and estimated blast radius.
|
|
203
|
-
- Clear NO_IMPACT or FOUND_<n> result with evidence.
|
|
204
|
-
|
|
205
|
-
## Guardrails
|
|
206
|
-
|
|
207
|
-
- Run only when justified by diff scope or explicit trigger.
|
|
208
|
-
- Do not replace the mandatory reviewer pass; this lens is additive.
|
|
209
|
-
`;
|
|
210
|
-
}
|
|
211
|
-
function reviewCompatLensSkill() {
|
|
212
|
-
return `${skillFrontmatter("review-compat-lens", "Optional compatibility lens for high-risk API/config/schema changes.")}# Review Compatibility Lens
|
|
213
|
-
|
|
214
|
-
Use as an optional follow-up lens when contracts, config, persistence schema, or generated clients might break consumers.
|
|
215
|
-
|
|
216
|
-
## Required Output
|
|
217
|
-
|
|
218
|
-
- Surface inventory: APIs/config/schema/CLI/client contracts touched.
|
|
219
|
-
- Compatibility risk assessment (backward, forward, migration path).
|
|
220
|
-
- Clear NO_IMPACT or FOUND_<n> result with evidence.
|
|
221
|
-
|
|
222
|
-
## Guardrails
|
|
223
|
-
|
|
224
|
-
- Focus on externally observable contracts and migration safety.
|
|
225
|
-
- Do not duplicate baseline reviewer findings verbatim.
|
|
226
|
-
`;
|
|
227
|
-
}
|
|
228
|
-
function reviewObservabilityLensSkill() {
|
|
229
|
-
return `${skillFrontmatter("review-observability-lens", "Optional observability lens for diagnosability and rollback safety.")}# Review Observability Lens
|
|
230
|
-
|
|
231
|
-
Use as an optional follow-up lens when failure diagnosis, telemetry, or operational rollback confidence is at risk.
|
|
232
|
-
|
|
233
|
-
## Required Output
|
|
234
|
-
|
|
235
|
-
- Signals checked: logs, metrics, traces, alerts, debug handles.
|
|
236
|
-
- Gaps that could block diagnosis or rollback during incidents.
|
|
237
|
-
- Clear NO_IMPACT or FOUND_<n> result with evidence.
|
|
238
|
-
|
|
239
|
-
## Guardrails
|
|
240
|
-
|
|
241
|
-
- Escalate only diagnosis-impacting gaps; avoid style-only telemetry suggestions.
|
|
242
|
-
- Keep scope tied to touched code paths and rollout-critical behavior.
|
|
243
|
-
`;
|
|
244
|
-
}
|
|
245
|
-
function architectCrossStageVerificationSkill() {
|
|
246
|
-
return `${skillFrontmatter("architect-cross-stage-verification", "Cross-stage cohesion verification before ship finalization.")}# Architect Cross-Stage Verification
|
|
247
|
-
|
|
248
|
-
Use with the \`architect\` delegation in the \`ship\` stage.
|
|
249
|
-
|
|
250
|
-
## Required Output
|
|
251
|
-
|
|
252
|
-
- Read scope/design/spec/plan/review artifacts plus shipped diff/code surfaces.
|
|
253
|
-
- Validate that locked decisions and acceptance mappings still match shipped behavior.
|
|
254
|
-
- Flag drift between intended architecture and implemented boundaries.
|
|
255
|
-
- Return exactly one status token: \`CROSS_STAGE_VERIFIED\`, \`DRIFT_DETECTED\`, or \`BLOCKED\`.
|
|
256
|
-
- Provide evidence refs for every drift claim and identify the smallest corrective route.
|
|
257
|
-
|
|
258
|
-
## Guardrails
|
|
259
|
-
|
|
260
|
-
- Do not defer unresolved drift to post-ship follow-up without explicit waiver.
|
|
261
|
-
- If evidence is insufficient to verify cohesion, return \`BLOCKED\` with missing inputs.
|
|
262
|
-
`;
|
|
263
|
-
}
|
|
264
|
-
export const SUBAGENT_CONTEXT_SKILLS = {
|
|
265
|
-
"tdd-cycle-evidence": tddCycleEvidenceSkill(),
|
|
266
|
-
"review-spec-pass": reviewSpecPassSkill(),
|
|
267
|
-
"security-audit": securityAuditSkill(),
|
|
268
|
-
"adversarial-review": adversarialReviewSkill(),
|
|
269
|
-
"receiving-code-review": receivingCodeReviewSkill(),
|
|
270
|
-
"stack-aware-review": stackAwareReviewSkill(),
|
|
271
|
-
"critic-multi-perspective": criticMultiPerspectiveSkill(),
|
|
272
|
-
"document-coherence-pass": documentCoherencePassSkill(),
|
|
273
|
-
"document-scope-guard": documentScopeGuardSkill(),
|
|
274
|
-
"document-feasibility-pass": documentFeasibilityPassSkill(),
|
|
275
|
-
"review-perf-lens": reviewPerfLensSkill(),
|
|
276
|
-
"review-compat-lens": reviewCompatLensSkill(),
|
|
277
|
-
"review-observability-lens": reviewObservabilityLensSkill(),
|
|
278
|
-
"architect-cross-stage-verification": architectCrossStageVerificationSkill()
|
|
279
|
-
};
|