@zhixuan92/multi-model-agent-core 4.0.3 → 4.0.5
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 +10 -12
- package/dist/events/cloud-events.d.ts +1 -3
- package/dist/events/cloud-events.d.ts.map +1 -1
- package/dist/events/event-builder.d.ts +1 -1
- package/dist/events/event-builder.d.ts.map +1 -1
- package/dist/events/observability-events.d.ts +3 -111
- package/dist/events/observability-events.d.ts.map +1 -1
- package/dist/events/observability-events.js +0 -58
- package/dist/events/observability-events.js.map +1 -1
- package/dist/events/telemetry-types.d.ts +3 -3
- package/dist/events/telemetry-types.js +1 -1
- package/dist/events/telemetry-types.js.map +1 -1
- package/dist/index.d.ts +2 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/dist/intake/brief-compiler-slots/debug.d.ts +0 -26
- package/dist/intake/brief-compiler-slots/debug.d.ts.map +1 -1
- package/dist/intake/brief-compiler-slots/debug.js +5 -44
- package/dist/intake/brief-compiler-slots/debug.js.map +1 -1
- package/dist/intake/brief-compiler-slots/delegate.d.ts +0 -24
- package/dist/intake/brief-compiler-slots/delegate.d.ts.map +1 -1
- package/dist/intake/brief-compiler-slots/delegate.js +2 -45
- package/dist/intake/brief-compiler-slots/delegate.js.map +1 -1
- package/dist/intake/brief-compiler-slots/research.d.ts +18 -0
- package/dist/intake/brief-compiler-slots/research.d.ts.map +1 -0
- package/dist/intake/brief-compiler-slots/research.js +43 -0
- package/dist/intake/brief-compiler-slots/research.js.map +1 -0
- package/dist/intake/brief-compiler-slots/review.d.ts +0 -23
- package/dist/intake/brief-compiler-slots/review.d.ts.map +1 -1
- package/dist/intake/brief-compiler-slots/review.js +0 -62
- package/dist/intake/brief-compiler-slots/review.js.map +1 -1
- package/dist/lifecycle/diff-tracker.d.ts +72 -0
- package/dist/lifecycle/diff-tracker.d.ts.map +1 -0
- package/dist/lifecycle/diff-tracker.js +316 -0
- package/dist/lifecycle/diff-tracker.js.map +1 -0
- package/dist/lifecycle/handlers/prepare-execution-context-handler.d.ts +1 -1
- package/dist/lifecycle/handlers/prepare-execution-context-handler.d.ts.map +1 -1
- package/dist/lifecycle/handlers/prepare-execution-context-handler.js +23 -1
- package/dist/lifecycle/handlers/prepare-execution-context-handler.js.map +1 -1
- package/dist/lifecycle/handlers/quality-chain-handlers.d.ts.map +1 -1
- package/dist/lifecycle/handlers/quality-chain-handlers.js +57 -6
- package/dist/lifecycle/handlers/quality-chain-handlers.js.map +1 -1
- package/dist/lifecycle/handlers/review-diff-handler.d.ts.map +1 -1
- package/dist/lifecycle/handlers/review-diff-handler.js +38 -12
- package/dist/lifecycle/handlers/review-diff-handler.js.map +1 -1
- package/dist/lifecycle/handlers/spec-chain-handlers.d.ts.map +1 -1
- package/dist/lifecycle/handlers/spec-chain-handlers.js +38 -10
- package/dist/lifecycle/handlers/spec-chain-handlers.js.map +1 -1
- package/dist/lifecycle/handlers/terminal-handlers.d.ts.map +1 -1
- package/dist/lifecycle/handlers/terminal-handlers.js +17 -2
- package/dist/lifecycle/handlers/terminal-handlers.js.map +1 -1
- package/dist/lifecycle/merge-stage-stats.d.ts +27 -0
- package/dist/lifecycle/merge-stage-stats.d.ts.map +1 -1
- package/dist/lifecycle/merge-stage-stats.js +56 -0
- package/dist/lifecycle/merge-stage-stats.js.map +1 -1
- package/dist/lifecycle/stage-plan-types.d.ts +15 -0
- package/dist/lifecycle/stage-plan-types.d.ts.map +1 -1
- package/dist/lifecycle/stage-progression.d.ts.map +1 -1
- package/dist/lifecycle/stage-progression.js +1 -0
- package/dist/lifecycle/stage-progression.js.map +1 -1
- package/dist/lifecycle/task-runner.js +1 -1
- package/dist/lifecycle/task-runner.js.map +1 -1
- package/dist/providers/provider-factory.d.ts.map +1 -1
- package/dist/providers/provider-factory.js +6 -0
- package/dist/providers/provider-factory.js.map +1 -1
- package/dist/reporting/headline-templates/audit.d.ts.map +1 -1
- package/dist/reporting/headline-templates/audit.js +17 -8
- package/dist/reporting/headline-templates/audit.js.map +1 -1
- package/dist/reporting/headline-templates/debug.d.ts +22 -3
- package/dist/reporting/headline-templates/debug.d.ts.map +1 -1
- package/dist/reporting/headline-templates/debug.js +38 -8
- package/dist/reporting/headline-templates/debug.js.map +1 -1
- package/dist/reporting/headline-templates/delegate.d.ts.map +1 -1
- package/dist/reporting/headline-templates/delegate.js +14 -3
- package/dist/reporting/headline-templates/delegate.js.map +1 -1
- package/dist/reporting/headline-templates/execute-plan.d.ts.map +1 -1
- package/dist/reporting/headline-templates/execute-plan.js +17 -8
- package/dist/reporting/headline-templates/execute-plan.js.map +1 -1
- package/dist/reporting/headline-templates/research.d.ts +3 -0
- package/dist/reporting/headline-templates/research.d.ts.map +1 -0
- package/dist/reporting/headline-templates/research.js +23 -0
- package/dist/reporting/headline-templates/research.js.map +1 -0
- package/dist/reporting/headline-templates/review.d.ts.map +1 -1
- package/dist/reporting/headline-templates/review.js +23 -6
- package/dist/reporting/headline-templates/review.js.map +1 -1
- package/dist/reporting/headline-templates/verify.d.ts.map +1 -1
- package/dist/reporting/headline-templates/verify.js +23 -6
- package/dist/reporting/headline-templates/verify.js.map +1 -1
- package/dist/reporting/headline-text.d.ts +5 -0
- package/dist/reporting/headline-text.d.ts.map +1 -1
- package/dist/reporting/headline-text.js +36 -5
- package/dist/reporting/headline-text.js.map +1 -1
- package/dist/reporting/report-parser-slots/research-report.d.ts +30 -0
- package/dist/reporting/report-parser-slots/research-report.d.ts.map +1 -0
- package/dist/reporting/report-parser-slots/research-report.js +94 -0
- package/dist/reporting/report-parser-slots/research-report.js.map +1 -0
- package/dist/reporting/report-parser-slots/verify-report.d.ts +17 -0
- package/dist/reporting/report-parser-slots/verify-report.d.ts.map +1 -1
- package/dist/reporting/report-parser-slots/verify-report.js +45 -3
- package/dist/reporting/report-parser-slots/verify-report.js.map +1 -1
- package/dist/reporting/severity.d.ts +22 -0
- package/dist/reporting/severity.d.ts.map +1 -1
- package/dist/reporting/severity.js +36 -0
- package/dist/reporting/severity.js.map +1 -1
- package/dist/review/annotator-output-parser.d.ts.map +1 -1
- package/dist/review/annotator-output-parser.js +94 -14
- package/dist/review/annotator-output-parser.js.map +1 -1
- package/dist/review/annotator-prompt-builder.d.ts +20 -0
- package/dist/review/annotator-prompt-builder.d.ts.map +1 -1
- package/dist/review/annotator-prompt-builder.js +54 -3
- package/dist/review/annotator-prompt-builder.js.map +1 -1
- package/dist/review/reviewer-engine.d.ts +15 -1
- package/dist/review/reviewer-engine.d.ts.map +1 -1
- package/dist/review/reviewer-engine.js.map +1 -1
- package/dist/review/reviewer-output-parser.d.ts.map +1 -1
- package/dist/review/reviewer-output-parser.js +171 -16
- package/dist/review/reviewer-output-parser.js.map +1 -1
- package/dist/review/reviewer-prompt-builder.d.ts +5 -13
- package/dist/review/reviewer-prompt-builder.d.ts.map +1 -1
- package/dist/review/reviewer-prompt-builder.js.map +1 -1
- package/dist/review/templates/annotator-audit.d.ts.map +1 -1
- package/dist/review/templates/annotator-audit.js +13 -0
- package/dist/review/templates/annotator-audit.js.map +1 -1
- package/dist/review/templates/annotator-debug.d.ts.map +1 -1
- package/dist/review/templates/annotator-debug.js +11 -1
- package/dist/review/templates/annotator-debug.js.map +1 -1
- package/dist/review/templates/annotator-investigate.d.ts.map +1 -1
- package/dist/review/templates/annotator-investigate.js +10 -1
- package/dist/review/templates/annotator-investigate.js.map +1 -1
- package/dist/review/templates/annotator-review.d.ts.map +1 -1
- package/dist/review/templates/annotator-review.js +10 -0
- package/dist/review/templates/annotator-review.js.map +1 -1
- package/dist/review/templates/annotator-shared.d.ts +7 -1
- package/dist/review/templates/annotator-shared.d.ts.map +1 -1
- package/dist/review/templates/annotator-shared.js +18 -29
- package/dist/review/templates/annotator-shared.js.map +1 -1
- package/dist/review/templates/annotator-verify.d.ts.map +1 -1
- package/dist/review/templates/annotator-verify.js +11 -1
- package/dist/review/templates/annotator-verify.js.map +1 -1
- package/dist/review/templates/diff-review.d.ts +8 -0
- package/dist/review/templates/diff-review.d.ts.map +1 -1
- package/dist/review/templates/diff-review.js +34 -2
- package/dist/review/templates/diff-review.js.map +1 -1
- package/dist/review/templates/finding-criteria.d.ts +15 -0
- package/dist/review/templates/finding-criteria.d.ts.map +1 -0
- package/dist/review/templates/finding-criteria.js +39 -0
- package/dist/review/templates/finding-criteria.js.map +1 -0
- package/dist/review/templates/quality-review-artifact.d.ts +13 -0
- package/dist/review/templates/quality-review-artifact.d.ts.map +1 -1
- package/dist/review/templates/quality-review-artifact.js +41 -3
- package/dist/review/templates/quality-review-artifact.js.map +1 -1
- package/dist/review/templates/quality-review-audit.d.ts.map +1 -1
- package/dist/review/templates/quality-review-audit.js +3 -2
- package/dist/review/templates/quality-review-audit.js.map +1 -1
- package/dist/review/templates/quality-review-debug.d.ts.map +1 -1
- package/dist/review/templates/quality-review-debug.js +3 -2
- package/dist/review/templates/quality-review-debug.js.map +1 -1
- package/dist/review/templates/quality-review-investigate.d.ts.map +1 -1
- package/dist/review/templates/quality-review-investigate.js +3 -2
- package/dist/review/templates/quality-review-investigate.js.map +1 -1
- package/dist/review/templates/quality-review-review.d.ts.map +1 -1
- package/dist/review/templates/quality-review-review.js +3 -2
- package/dist/review/templates/quality-review-review.js.map +1 -1
- package/dist/review/templates/quality-review-verify.d.ts.map +1 -1
- package/dist/review/templates/quality-review-verify.js +3 -2
- package/dist/review/templates/quality-review-verify.js.map +1 -1
- package/dist/review/templates/shared.d.ts +22 -5
- package/dist/review/templates/shared.d.ts.map +1 -1
- package/dist/review/templates/spec-review.d.ts +15 -0
- package/dist/review/templates/spec-review.d.ts.map +1 -1
- package/dist/review/templates/spec-review.js +43 -3
- package/dist/review/templates/spec-review.js.map +1 -1
- package/dist/stores/file-backed-context-block-store.d.ts +5 -1
- package/dist/stores/file-backed-context-block-store.d.ts.map +1 -1
- package/dist/stores/file-backed-context-block-store.js +16 -19
- package/dist/stores/file-backed-context-block-store.js.map +1 -1
- package/dist/stores/project-context-registry.d.ts +5 -3
- package/dist/stores/project-context-registry.d.ts.map +1 -1
- package/dist/stores/project-context-registry.js.map +1 -1
- package/dist/tool-surface/openapi-generator.d.ts.map +1 -1
- package/dist/tool-surface/openapi-generator.js +4 -4
- package/dist/tool-surface/openapi-generator.js.map +1 -1
- package/dist/tool-surface/register-all-tools.js +3 -3
- package/dist/tool-surface/register-all-tools.js.map +1 -1
- package/dist/tools/audit/implementer-criteria.d.ts +17 -0
- package/dist/tools/audit/implementer-criteria.d.ts.map +1 -0
- package/dist/tools/audit/implementer-criteria.js +36 -0
- package/dist/tools/audit/implementer-criteria.js.map +1 -0
- package/dist/tools/audit/tool-config.d.ts.map +1 -1
- package/dist/tools/audit/tool-config.js +24 -6
- package/dist/tools/audit/tool-config.js.map +1 -1
- package/dist/tools/debug/implementer-criteria.d.ts +12 -0
- package/dist/tools/debug/implementer-criteria.d.ts.map +1 -0
- package/dist/tools/debug/implementer-criteria.js +29 -0
- package/dist/tools/debug/implementer-criteria.js.map +1 -0
- package/dist/tools/debug/tool-config.d.ts.map +1 -1
- package/dist/tools/debug/tool-config.js +18 -4
- package/dist/tools/debug/tool-config.js.map +1 -1
- package/dist/tools/execute-plan/tool-config.d.ts.map +1 -1
- package/dist/tools/execute-plan/tool-config.js +5 -1
- package/dist/tools/execute-plan/tool-config.js.map +1 -1
- package/dist/tools/index.d.ts +0 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +0 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/investigate/implementer-criteria.d.ts +17 -0
- package/dist/tools/investigate/implementer-criteria.d.ts.map +1 -0
- package/dist/tools/investigate/implementer-criteria.js +33 -0
- package/dist/tools/investigate/implementer-criteria.js.map +1 -0
- package/dist/tools/investigate/tool-config.d.ts +13 -1
- package/dist/tools/investigate/tool-config.d.ts.map +1 -1
- package/dist/tools/investigate/tool-config.js +34 -4
- package/dist/tools/investigate/tool-config.js.map +1 -1
- package/dist/tools/research/implementer-criteria.d.ts +15 -0
- package/dist/tools/research/implementer-criteria.d.ts.map +1 -0
- package/dist/tools/research/implementer-criteria.js +37 -0
- package/dist/tools/research/implementer-criteria.js.map +1 -0
- package/dist/tools/{explore → research}/schema.d.ts +2 -3
- package/dist/tools/research/schema.d.ts.map +1 -0
- package/dist/tools/{explore → research}/schema.js +10 -16
- package/dist/tools/research/schema.js.map +1 -0
- package/dist/tools/research/tool-config.d.ts +20 -0
- package/dist/tools/research/tool-config.d.ts.map +1 -0
- package/dist/tools/research/tool-config.js +51 -0
- package/dist/tools/research/tool-config.js.map +1 -0
- package/dist/tools/retry/tool-config.d.ts.map +1 -1
- package/dist/tools/retry/tool-config.js +27 -4
- package/dist/tools/retry/tool-config.js.map +1 -1
- package/dist/tools/review/implementer-criteria.d.ts +11 -0
- package/dist/tools/review/implementer-criteria.d.ts.map +1 -0
- package/dist/tools/review/implementer-criteria.js +27 -0
- package/dist/tools/review/implementer-criteria.js.map +1 -0
- package/dist/tools/review/tool-config.d.ts.map +1 -1
- package/dist/tools/review/tool-config.js +43 -4
- package/dist/tools/review/tool-config.js.map +1 -1
- package/dist/tools/verify/implementer-criteria.d.ts +12 -0
- package/dist/tools/verify/implementer-criteria.d.ts.map +1 -0
- package/dist/tools/verify/implementer-criteria.js +29 -0
- package/dist/tools/verify/implementer-criteria.js.map +1 -0
- package/dist/tools/verify/tool-config.d.ts.map +1 -1
- package/dist/tools/verify/tool-config.js +18 -4
- package/dist/tools/verify/tool-config.js.map +1 -1
- package/dist/types/enums.d.ts +1 -11
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js +2 -4
- package/dist/types/enums.js.map +1 -1
- package/package.json +12 -40
- package/dist/intake/brief-compiler-slots/audit.d.ts +0 -23
- package/dist/intake/brief-compiler-slots/audit.d.ts.map +0 -1
- package/dist/intake/brief-compiler-slots/audit.js +0 -61
- package/dist/intake/brief-compiler-slots/audit.js.map +0 -1
- package/dist/intake/brief-compiler-slots/explore.d.ts +0 -43
- package/dist/intake/brief-compiler-slots/explore.d.ts.map +0 -1
- package/dist/intake/brief-compiler-slots/explore.js +0 -116
- package/dist/intake/brief-compiler-slots/explore.js.map +0 -1
- package/dist/intake/brief-compiler-slots/investigate.d.ts +0 -26
- package/dist/intake/brief-compiler-slots/investigate.d.ts.map +0 -1
- package/dist/intake/brief-compiler-slots/investigate.js +0 -42
- package/dist/intake/brief-compiler-slots/investigate.js.map +0 -1
- package/dist/intake/brief-compiler-slots/verify.d.ts +0 -21
- package/dist/intake/brief-compiler-slots/verify.d.ts.map +0 -1
- package/dist/intake/brief-compiler-slots/verify.js +0 -62
- package/dist/intake/brief-compiler-slots/verify.js.map +0 -1
- package/dist/reporting/compose-explore-headline.d.ts +0 -14
- package/dist/reporting/compose-explore-headline.d.ts.map +0 -1
- package/dist/reporting/compose-explore-headline.js +0 -14
- package/dist/reporting/compose-explore-headline.js.map +0 -1
- package/dist/reporting/derive-explore-status.d.ts +0 -18
- package/dist/reporting/derive-explore-status.d.ts.map +0 -1
- package/dist/reporting/derive-explore-status.js +0 -15
- package/dist/reporting/derive-explore-status.js.map +0 -1
- package/dist/reporting/headline-templates/explore.d.ts +0 -3
- package/dist/reporting/headline-templates/explore.d.ts.map +0 -1
- package/dist/reporting/headline-templates/explore.js +0 -13
- package/dist/reporting/headline-templates/explore.js.map +0 -1
- package/dist/reporting/parse-explore-report.d.ts +0 -38
- package/dist/reporting/parse-explore-report.d.ts.map +0 -1
- package/dist/reporting/parse-explore-report.js +0 -185
- package/dist/reporting/parse-explore-report.js.map +0 -1
- package/dist/reporting/report-parser-slots/explore-report.d.ts +0 -17
- package/dist/reporting/report-parser-slots/explore-report.d.ts.map +0 -1
- package/dist/reporting/report-parser-slots/explore-report.js +0 -9
- package/dist/reporting/report-parser-slots/explore-report.js.map +0 -1
- package/dist/research/explore-orchestrator.d.ts +0 -14
- package/dist/research/explore-orchestrator.d.ts.map +0 -1
- package/dist/research/explore-orchestrator.js +0 -362
- package/dist/research/explore-orchestrator.js.map +0 -1
- package/dist/tools/explore/schema.d.ts.map +0 -1
- package/dist/tools/explore/schema.js.map +0 -1
- package/dist/tools/explore/tool-config.d.ts +0 -7
- package/dist/tools/explore/tool-config.d.ts.map +0 -1
- package/dist/tools/explore/tool-config.js +0 -36
- package/dist/tools/explore/tool-config.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi-generator.js","sourceRoot":"","sources":["../../src/tool-surface/openapi-generator.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,EAAE;AACF,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,6EAA6E;AAC7E,8CAA8C;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,KAAK,WAAW,MAAM,iCAAiC,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,KAAK,WAAW,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"openapi-generator.js","sourceRoot":"","sources":["../../src/tool-surface/openapi-generator.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,EAAE;AACF,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,6EAA6E;AAC7E,8CAA8C;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,6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,aAAa,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// One-stop registration for all
|
|
1
|
+
// One-stop registration for all 11 tools' SurfaceEntry rows. Production
|
|
2
2
|
// boot (packages/server/src/http/server.ts) calls this once; the
|
|
3
3
|
// workflow-matrix contract test does the same. Adding a new tool means
|
|
4
4
|
// editing this file plus the new tool-config.ts, nowhere else.
|
|
@@ -11,7 +11,7 @@ import { registerDebug } from '../tools/debug/tool-config.js';
|
|
|
11
11
|
import { registerExecutePlan } from '../tools/execute-plan/tool-config.js';
|
|
12
12
|
import { registerRetry } from '../tools/retry/tool-config.js';
|
|
13
13
|
import { registerInvestigate } from '../tools/investigate/tool-config.js';
|
|
14
|
-
import {
|
|
14
|
+
import { registerResearch } from '../tools/research/tool-config.js';
|
|
15
15
|
import { registerContextBlock } from '../tools/register-context-block/tool-config.js';
|
|
16
16
|
export function registerAllTools(registry) {
|
|
17
17
|
registerDelegate(registry);
|
|
@@ -22,7 +22,7 @@ export function registerAllTools(registry) {
|
|
|
22
22
|
registerExecutePlan(registry);
|
|
23
23
|
registerRetry(registry);
|
|
24
24
|
registerInvestigate(registry);
|
|
25
|
-
|
|
25
|
+
registerResearch(registry);
|
|
26
26
|
registerContextBlock(registry);
|
|
27
27
|
}
|
|
28
28
|
export function buildToolSurfaceRegistry() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-all-tools.js","sourceRoot":"","sources":["../../src/tool-surface/register-all-tools.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,iEAAiE;AACjE,uEAAuE;AACvE,+DAA+D;AAE/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,cAAc,EA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QAAQ,CAAC,CAAC;IAC9B,aAAa,CAAC,QAAQ,CAAC,CAAC;IACxB,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC9B,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC3B,oBAAoB,CAAC,QAAQ,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,wBAAwB;IACtC,MAAM,QAAQ,GAAG,IAAI,mBAAmB,EAAE,CAAC;IAC3C,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC3B,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit-specific implementer criteria.
|
|
3
|
+
*
|
|
4
|
+
* Audit examines a prose artifact (spec, design doc, API contract,
|
|
5
|
+
* config, plan). The "thing being examined" is text — not source code —
|
|
6
|
+
* so evidence and scope rules differ from review/debug:
|
|
7
|
+
*
|
|
8
|
+
* - Evidence is a doc quote, OR a precise reference to a section/item
|
|
9
|
+
* that *should* address the issue but doesn't (absence-finding), OR
|
|
10
|
+
* a doc-claim + contradicting source (wrong-claim finding).
|
|
11
|
+
* - Scope is the document and what it directly references; cross-section
|
|
12
|
+
* reasoning IS the value of an audit.
|
|
13
|
+
*/
|
|
14
|
+
export declare const EVIDENCE_RULE_AUDIT: string;
|
|
15
|
+
export declare const SCOPE_RULE_AUDIT: string;
|
|
16
|
+
export declare const ANNOTATOR_AWARENESS_AUDIT: string;
|
|
17
|
+
//# sourceMappingURL=implementer-criteria.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementer-criteria.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/implementer-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,mBAAmB,QAMpB,CAAC;AAEb,eAAO,MAAM,gBAAgB,QAMjB,CAAC;AAEb,eAAO,MAAM,yBAAyB,QAO1B,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit-specific implementer criteria.
|
|
3
|
+
*
|
|
4
|
+
* Audit examines a prose artifact (spec, design doc, API contract,
|
|
5
|
+
* config, plan). The "thing being examined" is text — not source code —
|
|
6
|
+
* so evidence and scope rules differ from review/debug:
|
|
7
|
+
*
|
|
8
|
+
* - Evidence is a doc quote, OR a precise reference to a section/item
|
|
9
|
+
* that *should* address the issue but doesn't (absence-finding), OR
|
|
10
|
+
* a doc-claim + contradicting source (wrong-claim finding).
|
|
11
|
+
* - Scope is the document and what it directly references; cross-section
|
|
12
|
+
* reasoning IS the value of an audit.
|
|
13
|
+
*/
|
|
14
|
+
export const EVIDENCE_RULE_AUDIT = [
|
|
15
|
+
'Evidence grounding (REQUIRED for every finding):',
|
|
16
|
+
'- For issues IN the doc: quote the exact passage that demonstrates the issue.',
|
|
17
|
+
'- For ABSENCES (the doc is silent on something it should specify): name the section that should address it. Example: "Section 3.2 enumerates failure modes but does not specify queue-overflow behavior."',
|
|
18
|
+
'- For WRONG-CLAIM findings: quote the doc\'s claim AND the source that contradicts it (the actual code, the referenced spec, etc.).',
|
|
19
|
+
'- A finding without one of these three forms of evidence is speculation. Note "investigation needed" in your summary instead.',
|
|
20
|
+
].join('\n');
|
|
21
|
+
export const SCOPE_RULE_AUDIT = [
|
|
22
|
+
'Scope:',
|
|
23
|
+
'- The document itself plus any artifact the document directly references (cited code, linked spec, embedded config).',
|
|
24
|
+
'- Cross-section reasoning within the document IS in scope and often the highest-value kind of finding.',
|
|
25
|
+
'- Do NOT enumerate the repository or glob across all source files. If verifying a referenced file or symbol, read or grep for that specific name only — the goal is to evaluate the document, not catalog the codebase.',
|
|
26
|
+
'- Out of scope: speculation about content the document does not reference; coding-style nits on inline code examples (those belong in a code review, not an audit).',
|
|
27
|
+
].join('\n');
|
|
28
|
+
export const ANNOTATOR_AWARENESS_AUDIT = [
|
|
29
|
+
'After your output, an annotator validates each finding against this audit-specific rubric:',
|
|
30
|
+
'- Is the finding about the document (contradiction / absence / ambiguity / wrong claim / scope gap)?',
|
|
31
|
+
'- Is the evidence either a doc quote OR a precise reference for absence-findings OR a doc-claim + contradicting source?',
|
|
32
|
+
'- Is the severity calibrated to actual downstream-execution impact?',
|
|
33
|
+
'- Is the finding within the document\'s scope, or is it speculation about untouched material?',
|
|
34
|
+
'Self-check before emitting. Findings that fail any check are downgraded or dropped.',
|
|
35
|
+
].join('\n');
|
|
36
|
+
//# sourceMappingURL=implementer-criteria.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementer-criteria.js","sourceRoot":"","sources":["../../../src/tools/audit/implementer-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,kDAAkD;IAClD,+EAA+E;IAC/E,2MAA2M;IAC3M,qIAAqI;IACrI,+HAA+H;CAChI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,QAAQ;IACR,sHAAsH;IACtH,wGAAwG;IACxG,yNAAyN;IACzN,qKAAqK;CACtK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,4FAA4F;IAC5F,sGAAsG;IACtG,yHAAyH;IACzH,qEAAqE;IACrE,+FAA+F;IAC/F,qFAAqF;CACtF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAE1G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAE1G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAUvE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAYjE;AAID,MAAM,WAAW,cAAc;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAkCD,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,cAAc,EAAE,CA0B7D;AAgED,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,KAAK,EAAE,cAAc,EAAE,WAAW,CAyBrE,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { qualityAuditTemplate } from '../../review/templates/quality-review-audi
|
|
|
3
3
|
import { auditReportSchema } from '../../reporting/report-parser-slots/audit-report.js';
|
|
4
4
|
import { auditHeadlineTemplate } from '../../reporting/headline-templates/audit.js';
|
|
5
5
|
import { DEFAULT_TASK_TIMEOUT_MS } from '../../config/schema.js';
|
|
6
|
+
import { SEVERITY_LADDER } from '../../review/templates/finding-criteria.js';
|
|
7
|
+
import { EVIDENCE_RULE_AUDIT, SCOPE_RULE_AUDIT, ANNOTATOR_AWARENESS_AUDIT, } from './implementer-criteria.js';
|
|
6
8
|
export function registerAudit(registry) {
|
|
7
9
|
registry.register({
|
|
8
10
|
routeName: 'audit',
|
|
@@ -73,7 +75,7 @@ export function auditBriefSlot(input) {
|
|
|
73
75
|
}];
|
|
74
76
|
}
|
|
75
77
|
const FINDING_FORMAT_INSTRUCTIONS = [
|
|
76
|
-
'Produce a narrative audit report. Use this EXACT per-finding format
|
|
78
|
+
'Produce a narrative audit report. Use this EXACT per-finding format — both the structured reviewer and the deterministic fallback extract from this same format:',
|
|
77
79
|
'',
|
|
78
80
|
'## Finding 1: <one-line title>',
|
|
79
81
|
'- Severity: critical | high | medium | low',
|
|
@@ -88,7 +90,22 @@ const FINDING_FORMAT_INSTRUCTIONS = [
|
|
|
88
90
|
'Rules:',
|
|
89
91
|
'- Each finding heading MUST start with "## Finding N: " (h2, "Finding ", number, colon, title) — number sequentially from 1.',
|
|
90
92
|
'- Severity / Location / Issue / Suggestion bullets are on their own lines with the labels exactly as shown.',
|
|
91
|
-
'-
|
|
93
|
+
'- If you found no issues, say "No findings." in plain prose and emit zero `## Finding N:` blocks.',
|
|
94
|
+
'',
|
|
95
|
+
// Tool sweep #12: share the annotator's rubric with the implementer
|
|
96
|
+
// so the worker self-aligns with what the reviewer will check.
|
|
97
|
+
// Result: fewer downgraded findings, fewer missed criticals.
|
|
98
|
+
SEVERITY_LADDER,
|
|
99
|
+
'',
|
|
100
|
+
EVIDENCE_RULE_AUDIT,
|
|
101
|
+
'',
|
|
102
|
+
SCOPE_RULE_AUDIT,
|
|
103
|
+
'',
|
|
104
|
+
ANNOTATOR_AWARENESS_AUDIT,
|
|
105
|
+
].join('\n');
|
|
106
|
+
const DELTA_AUDIT_INSTRUCTIONS = [
|
|
107
|
+
'A prior audit report is provided in the context above. Verify which prior findings have been fixed.',
|
|
108
|
+
'In your output: **omit** fixed findings; **include** still-present findings (mark "unfixed from prior audit"); **include** new findings; end with a **Fixed** summary line.',
|
|
92
109
|
].join('\n');
|
|
93
110
|
function buildFilePathsPrompt(filePaths) {
|
|
94
111
|
if (filePaths.length === 0)
|
|
@@ -107,12 +124,13 @@ function buildPrompt(brief) {
|
|
|
107
124
|
if (fileSection)
|
|
108
125
|
parts.push(fileSection);
|
|
109
126
|
}
|
|
127
|
+
// Tool sweep #11: emit FINDING_FORMAT_INSTRUCTIONS unconditionally
|
|
128
|
+
// (pre-fix the DELTA branch dropped them, leaving the worker without
|
|
129
|
+
// a format spec → annotator could not parse delta-mode output).
|
|
110
130
|
if (brief.hasContextBlocks) {
|
|
111
|
-
parts.push(
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
parts.push(FINDING_FORMAT_INSTRUCTIONS);
|
|
131
|
+
parts.push(DELTA_AUDIT_INSTRUCTIONS);
|
|
115
132
|
}
|
|
133
|
+
parts.push(FINDING_FORMAT_INSTRUCTIONS);
|
|
116
134
|
return parts.join('\n\n');
|
|
117
135
|
}
|
|
118
136
|
export const toolConfig = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/audit/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAc,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAoB,MAAM,qDAAqD,CAAC;AAC1G,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAGpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/audit/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAc,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAoB,MAAM,qDAAqD,CAAC;AAC1G,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AA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AAE,GAAG,IAAI,GAAG,CAAC,GAAG;QACvC,eAAe,EAAE,KAAK,CAAC,eAAe;QACtC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;QACnE,SAAS,EAAE,GAAG,CAAC,SAAS;KACZ,CAAA;IACd,YAAY,EAAE,iBAAiB;IAC/B,gBAAgB,EAAE,qBAAqB;IACvC,eAAe,EAAE;QACf,SAAS,EAAE,oBAAoB;KAChC;CACF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debug-specific implementer criteria.
|
|
3
|
+
*
|
|
4
|
+
* Debug is hypothesis-driven root-cause investigation. The shared
|
|
5
|
+
* "do not speculate about caller behavior" rule directly contradicts
|
|
6
|
+
* debug's job — debugging IS speculation, narrowed by evidence.
|
|
7
|
+
* Cross-file tracing is required, not forbidden.
|
|
8
|
+
*/
|
|
9
|
+
export declare const EVIDENCE_RULE_DEBUG: string;
|
|
10
|
+
export declare const SCOPE_RULE_DEBUG: string;
|
|
11
|
+
export declare const ANNOTATOR_AWARENESS_DEBUG: string;
|
|
12
|
+
//# sourceMappingURL=implementer-criteria.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementer-criteria.d.ts","sourceRoot":"","sources":["../../../src/tools/debug/implementer-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,mBAAmB,QAMpB,CAAC;AAEb,eAAO,MAAM,gBAAgB,QAIjB,CAAC;AAEb,eAAO,MAAM,yBAAyB,QAO1B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debug-specific implementer criteria.
|
|
3
|
+
*
|
|
4
|
+
* Debug is hypothesis-driven root-cause investigation. The shared
|
|
5
|
+
* "do not speculate about caller behavior" rule directly contradicts
|
|
6
|
+
* debug's job — debugging IS speculation, narrowed by evidence.
|
|
7
|
+
* Cross-file tracing is required, not forbidden.
|
|
8
|
+
*/
|
|
9
|
+
export const EVIDENCE_RULE_DEBUG = [
|
|
10
|
+
'Evidence grounding (REQUIRED for every finding):',
|
|
11
|
+
'- Each finding is a hypothesis with a supporting evidence chain.',
|
|
12
|
+
'- Evidence: the reproducer + the code path traced from failure point to suspected cause + observed output.',
|
|
13
|
+
'- Hypothesis-level findings with PARTIAL evidence are valid — that\'s how root-causing works. Show your reasoning chain.',
|
|
14
|
+
'- Severity reflects evidence strength: confirmed root cause = `high`; plausible candidate = `medium`; ruled out = `low` (or note in summary, not as a Finding).',
|
|
15
|
+
].join('\n');
|
|
16
|
+
export const SCOPE_RULE_DEBUG = [
|
|
17
|
+
'Scope:',
|
|
18
|
+
'- Follow the failure path wherever it leads. Cross-file tracing is required.',
|
|
19
|
+
'- Out of scope: applying fixes (debug is read-only — propose, do not apply); rewriting code; auditing unrelated subsystems; broadening into general code review.',
|
|
20
|
+
].join('\n');
|
|
21
|
+
export const ANNOTATOR_AWARENESS_DEBUG = [
|
|
22
|
+
'After your output, an annotator validates each finding against this debug rubric:',
|
|
23
|
+
'- Is each finding a hypothesis or evidence chain (not an unrelated observation)?',
|
|
24
|
+
'- Does the reasoning chain logically connect the cited evidence to the hypothesis?',
|
|
25
|
+
'- Did you propose fixes without applying them (read-only contract)?',
|
|
26
|
+
'- Is severity calibrated to evidence strength?',
|
|
27
|
+
'Self-check before emitting. Findings that fail any check are downgraded or dropped.',
|
|
28
|
+
].join('\n');
|
|
29
|
+
//# sourceMappingURL=implementer-criteria.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementer-criteria.js","sourceRoot":"","sources":["../../../src/tools/debug/implementer-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,kDAAkD;IAClD,kEAAkE;IAClE,4GAA4G;IAC5G,0HAA0H;IAC1H,iKAAiK;CAClK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,QAAQ;IACR,8EAA8E;IAC9E,kKAAkK;CACnK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,mFAAmF;IACnF,kFAAkF;IAClF,oFAAoF;IACpF,qEAAqE;IACrE,gDAAgD;IAChD,qFAAqF;CACtF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/debug/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/debug/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAUjG,wBAAgB,aAAa,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAYjE;AAoCD,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAoCjE,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { qualityDebugTemplate } from '../../review/reviewer-engine.js';
|
|
|
3
3
|
import { debugBriefSlot } from '../../intake/brief-compiler-slots/debug.js';
|
|
4
4
|
import { debugHeadlineTemplate } from '../../reporting/headline-templates/debug.js';
|
|
5
5
|
import { DEFAULT_TASK_TIMEOUT_MS } from '../../config/schema.js';
|
|
6
|
+
import { SEVERITY_LADDER } from '../../review/templates/finding-criteria.js';
|
|
7
|
+
import { EVIDENCE_RULE_DEBUG, SCOPE_RULE_DEBUG, ANNOTATOR_AWARENESS_DEBUG, } from './implementer-criteria.js';
|
|
6
8
|
export function registerDebug(registry) {
|
|
7
9
|
registry.register({
|
|
8
10
|
routeName: 'debug',
|
|
@@ -17,13 +19,13 @@ export function registerDebug(registry) {
|
|
|
17
19
|
});
|
|
18
20
|
}
|
|
19
21
|
const FINDING_FORMAT_INSTRUCTIONS = [
|
|
20
|
-
'Use hypothesis-driven debugging. Use this EXACT per-finding format
|
|
22
|
+
'Use hypothesis-driven debugging. Use this EXACT per-finding format — both the structured reviewer and the deterministic fallback extract from this same format:',
|
|
21
23
|
'',
|
|
22
24
|
'## Finding 1: <one-line title>',
|
|
23
25
|
'- Severity: critical | high | medium | low',
|
|
24
26
|
'- Hypothesis: the candidate cause',
|
|
25
27
|
'- Evidence: trace, log, or code path with file:line',
|
|
26
|
-
'- Fix: proposed change',
|
|
28
|
+
'- Fix: proposed change (PROPOSE only — do NOT apply the fix)',
|
|
27
29
|
'',
|
|
28
30
|
'## Finding 2: <one-line title>',
|
|
29
31
|
'- Severity: ...',
|
|
@@ -32,7 +34,17 @@ const FINDING_FORMAT_INSTRUCTIONS = [
|
|
|
32
34
|
'Rules:',
|
|
33
35
|
'- Each finding heading MUST start with "## Finding N: " (h2, "Finding ", number, colon, title) — number sequentially from 1.',
|
|
34
36
|
'- Severity / Hypothesis / Evidence / Fix bullets are on their own lines with the labels exactly as shown.',
|
|
35
|
-
'-
|
|
37
|
+
'- This is a read-only diagnostic — do NOT edit any file. Propose fixes; the caller applies them.',
|
|
38
|
+
'- Limit yourself to 3-5 most-likely hypotheses. Do not enumerate implausible ones to pad the list.',
|
|
39
|
+
'',
|
|
40
|
+
// Tool sweep #12: shared rubric so worker self-aligns with the annotator.
|
|
41
|
+
SEVERITY_LADDER,
|
|
42
|
+
'',
|
|
43
|
+
EVIDENCE_RULE_DEBUG,
|
|
44
|
+
'',
|
|
45
|
+
SCOPE_RULE_DEBUG,
|
|
46
|
+
'',
|
|
47
|
+
ANNOTATOR_AWARENESS_DEBUG,
|
|
36
48
|
].join('\n');
|
|
37
49
|
function buildFilePathsPrompt(filePaths) {
|
|
38
50
|
if (!filePaths || filePaths.length === 0)
|
|
@@ -60,7 +72,7 @@ export const toolConfig = {
|
|
|
60
72
|
agentType: 'complex',
|
|
61
73
|
reviewPolicy: 'quality_only',
|
|
62
74
|
briefQualityPolicy: 'off',
|
|
63
|
-
done: 'Identify the root cause with evidence (file, line, mechanism)
|
|
75
|
+
done: 'Identify the root cause with evidence (file, line, mechanism) and PROPOSE a fix. Do NOT apply the fix — debug is a read-only diagnostic; the caller decides whether to apply.',
|
|
64
76
|
tools: ctx.config.defaults?.tools ?? 'full',
|
|
65
77
|
timeoutMs: ctx.config.defaults?.timeoutMs ?? DEFAULT_TASK_TIMEOUT_MS,
|
|
66
78
|
maxCostUSD: ctx.config.defaults?.maxCostUSD ?? 10,
|
|
@@ -68,6 +80,8 @@ export const toolConfig = {
|
|
|
68
80
|
cwd: ctx.projectContext?.cwd ?? ctx.cwd,
|
|
69
81
|
contextBlockIds: brief.contextBlockIds,
|
|
70
82
|
autoCommit: false,
|
|
83
|
+
filePaths: brief.filePaths && brief.filePaths.length > 0 ? brief.filePaths : undefined,
|
|
84
|
+
mainModel: ctx.mainModel ?? undefined,
|
|
71
85
|
};
|
|
72
86
|
},
|
|
73
87
|
reportSchema: { parse: (_text) => { throw new Error('no structured report emitted by this executor'); } },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/debug/tool-config.ts"],"names":[],"m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AAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAA4B,KAAK,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/execute-plan/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAMlF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAA4B,KAAK,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAMxH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;kBAOxB,CAAC;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE1E,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAYvE;AA0CD,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,oBAAoB,EAAE,oBAAoB,CA4B7E,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { toolExecutePlanBriefSlot } from '../../intake/brief-compiler-slots/exec
|
|
|
4
4
|
import { executePlanHeadlineTemplate } from '../../reporting/headline-templates/execute-plan.js';
|
|
5
5
|
import { executePlanReportSchema } from '../../reporting/report-parser-slots/execute-plan-report.js';
|
|
6
6
|
import { DEFAULT_TASK_TIMEOUT_MS } from '../../config/schema.js';
|
|
7
|
+
import { REVIEWER_AWARENESS_AP } from '../../review/templates/finding-criteria.js';
|
|
7
8
|
export const executePlanInputSchema = z.object({
|
|
8
9
|
filePaths: z.array(z.string()).length(1, { message: "execute_plan requires exactly one plan filePath" }),
|
|
9
10
|
taskDescriptors: z.array(z.string()).min(1),
|
|
@@ -41,7 +42,10 @@ function buildExecutePlanPrompt(filePaths, task, taskSection) {
|
|
|
41
42
|
parts.push('No unique plan section matched that task heading. The full plan file is at:', ...filePaths.map((p) => ` - ${p}`), 'Read the plan file(s) yourself to find the task.', '');
|
|
42
43
|
}
|
|
43
44
|
parts.push('Plan files for reference (read on demand if you need adjacent context):', ...filePaths.map((p) => ` - ${p}`), '');
|
|
44
|
-
parts.push('Implement the task fully. Follow any acceptance criteria, file paths, and', 'constraints in the plan section above. If you cannot find or understand', 'the task, report that explicitly and do not implement anything.'
|
|
45
|
+
parts.push('Implement the task fully. Follow any acceptance criteria, file paths, and', 'constraints in the plan section above. If you cannot find or understand', 'the task, report that explicitly and do not implement anything.', '',
|
|
46
|
+
// Tool sweep #12: share spec + quality reviewer rubric so the
|
|
47
|
+
// worker self-aligns on what each reviewer will judge against.
|
|
48
|
+
REVIEWER_AWARENESS_AP);
|
|
45
49
|
return parts.join('\n');
|
|
46
50
|
}
|
|
47
51
|
export const toolConfig = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/execute-plan/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,YAAY,GACb,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,wBAAwB,EAA6B,MAAM,mDAAmD,CAAC;AACxH,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AACrG,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/execute-plan/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,YAAY,GACb,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,wBAAwB,EAA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EAAE,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,WAAW,CAAC;QACxF,SAAS,EAAE,UAAU;QACrB,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,IAAI,EAAE,gOAAgO;QACtO,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,IAAI,MAAM;QAC3C,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,IAAI,uBAAuB;QACpE,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,IAAI,EAAE;QACjD,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,aAAa,IAAI,UAAU;QAC/D,GAAG,EAAE,KAAK,CAAC,GAAG;QACd,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,eAAe,EAAE,KAAK,CAAC,eAAe;QACtC,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,KAAK,CAAC,aAAa;QAClC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjE,CAAC;IACF,YAAY,EAAE,uBAAuB;IACrC,gBAAgB,EAAE,2BAA2B;IAC7C,eAAe,EAAE;QACf,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,iBAAiB;QAC5B,IAAI,EAAE,YAAY;KACnB;CACF,CAAC"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -6,6 +6,5 @@ export * as debug from './debug/schema.js';
|
|
|
6
6
|
export * as executePlan from './execute-plan/schema.js';
|
|
7
7
|
export * as retry from './retry/schema.js';
|
|
8
8
|
export * as investigate from './investigate/schema.js';
|
|
9
|
-
export * as explore from './explore/schema.js';
|
|
10
9
|
export * as registerContextBlock from './register-context-block/schema.js';
|
|
11
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,WAAW,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,WAAW,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC"}
|
package/dist/tools/index.js
CHANGED
|
@@ -11,6 +11,5 @@ export * as debug from './debug/schema.js';
|
|
|
11
11
|
export * as executePlan from './execute-plan/schema.js';
|
|
12
12
|
export * as retry from './retry/schema.js';
|
|
13
13
|
export * as investigate from './investigate/schema.js';
|
|
14
|
-
export * as explore from './explore/schema.js';
|
|
15
14
|
export * as registerContextBlock from './register-context-block/schema.js';
|
|
16
15
|
//# sourceMappingURL=index.js.map
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,2EAA2E;AAC3E,2EAA2E;AAC3E,2EAA2E;AAC3E,qCAAqC;AACrC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,WAAW,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,2EAA2E;AAC3E,2EAA2E;AAC3E,2EAA2E;AAC3E,qCAAqC;AACrC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,WAAW,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Investigate-specific implementer criteria.
|
|
3
|
+
*
|
|
4
|
+
* Investigate answers a question about the codebase. Findings can be
|
|
5
|
+
* code-level citations, project-level synthesis, or NEGATIVE results
|
|
6
|
+
* ("searched X, not found"). The shared evidence rule that demands a
|
|
7
|
+
* code quote for every finding wrongly suppresses negative results,
|
|
8
|
+
* which are often the most useful answer to "is X still used?" or
|
|
9
|
+
* "where does Y live?".
|
|
10
|
+
*
|
|
11
|
+
* Note: investigate does NOT use SEVERITY_LADDER — its findings are
|
|
12
|
+
* citations and synthesis, not severity-rated issues.
|
|
13
|
+
*/
|
|
14
|
+
export declare const EVIDENCE_RULE_INVESTIGATE: string;
|
|
15
|
+
export declare const SCOPE_RULE_INVESTIGATE: string;
|
|
16
|
+
export declare const ANNOTATOR_AWARENESS_INVESTIGATE: string;
|
|
17
|
+
//# sourceMappingURL=implementer-criteria.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementer-criteria.d.ts","sourceRoot":"","sources":["../../../src/tools/investigate/implementer-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,yBAAyB,QAK1B,CAAC;AAEb,eAAO,MAAM,sBAAsB,QAIvB,CAAC;AAEb,eAAO,MAAM,+BAA+B,QAOhC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Investigate-specific implementer criteria.
|
|
3
|
+
*
|
|
4
|
+
* Investigate answers a question about the codebase. Findings can be
|
|
5
|
+
* code-level citations, project-level synthesis, or NEGATIVE results
|
|
6
|
+
* ("searched X, not found"). The shared evidence rule that demands a
|
|
7
|
+
* code quote for every finding wrongly suppresses negative results,
|
|
8
|
+
* which are often the most useful answer to "is X still used?" or
|
|
9
|
+
* "where does Y live?".
|
|
10
|
+
*
|
|
11
|
+
* Note: investigate does NOT use SEVERITY_LADDER — its findings are
|
|
12
|
+
* citations and synthesis, not severity-rated issues.
|
|
13
|
+
*/
|
|
14
|
+
export const EVIDENCE_RULE_INVESTIGATE = [
|
|
15
|
+
'Evidence grounding (REQUIRED for every citation):',
|
|
16
|
+
'- For present things: `file:line` (or `file:line-line` for spans) plus a quote or summary of what you found.',
|
|
17
|
+
'- For absent things: explicit `searched <pattern> in <path>, no matches` — negative findings are legitimate answers and should be emitted, not suppressed.',
|
|
18
|
+
'- For synthesis findings (e.g. "X uses Y indirectly via Z"): cite each link in the chain by `file:line`.',
|
|
19
|
+
].join('\n');
|
|
20
|
+
export const SCOPE_RULE_INVESTIGATE = [
|
|
21
|
+
'Scope:',
|
|
22
|
+
'- Wherever the question leads. The question may not name files; you choose where to look.',
|
|
23
|
+
'- Out of scope: drift into issues unrelated to the question; opportunistic code review of the code you are investigating (raise that separately, not as an investigation finding).',
|
|
24
|
+
].join('\n');
|
|
25
|
+
export const ANNOTATOR_AWARENESS_INVESTIGATE = [
|
|
26
|
+
'After your output, an annotator validates each finding against this investigate rubric:',
|
|
27
|
+
'- Does each finding answer some part of the question?',
|
|
28
|
+
'- Are present-thing citations to real `file:line` from files you actually read?',
|
|
29
|
+
'- Are negative findings explicit ("searched X, not found") rather than silent omissions?',
|
|
30
|
+
'- Does the confidence reflect the strength of evidence?',
|
|
31
|
+
'Self-check before emitting. Findings that fail any check are downgraded or dropped.',
|
|
32
|
+
].join('\n');
|
|
33
|
+
//# sourceMappingURL=implementer-criteria.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementer-criteria.js","sourceRoot":"","sources":["../../../src/tools/investigate/implementer-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,mDAAmD;IACnD,8GAA8G;IAC9G,4JAA4J;IAC5J,0GAA0G;CAC3G,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,QAAQ;IACR,2FAA2F;IAC3F,oLAAoL;CACrL,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,yFAAyF;IACzF,uDAAuD;IACvD,iFAAiF;IACjF,0FAA0F;IAC1F,yDAAyD;IACzD,qFAAqF;CACtF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -13,8 +13,20 @@ export interface EnrichedInvestigateInput extends Input {
|
|
|
13
13
|
relativeFilePathsForPrompt: string[];
|
|
14
14
|
}
|
|
15
15
|
export interface InvestigateBrief {
|
|
16
|
+
/** The user's original question — drives the headline text. */
|
|
16
17
|
question: string;
|
|
17
|
-
|
|
18
|
+
/**
|
|
19
|
+
* The fully compiled implementer prompt (template + question + anchors +
|
|
20
|
+
* context blocks). Stored here for buildTaskSpec to forward as
|
|
21
|
+
* TaskSpec.prompt, but deliberately NOT named `prompt`/`brief`. The
|
|
22
|
+
* task-executor's `taskBrief` resolution chain reads
|
|
23
|
+
* `briefs[0].prompt ?? .brief ?? .question`; a `prompt` field here would
|
|
24
|
+
* cause the headline to be the prompt-template instructions (the tool
|
|
25
|
+
* sweep #5 bug — headline read 'Investigation: "Produce a narrative
|
|
26
|
+
* investigation report. Number each findin…"'). Falling through to
|
|
27
|
+
* `question` is the desired behavior.
|
|
28
|
+
*/
|
|
29
|
+
compiledPrompt: string;
|
|
18
30
|
filePaths: string[];
|
|
19
31
|
contextBlockIds: string[];
|
|
20
32
|
tools?: 'none' | 'readonly';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/investigate/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-config.d.ts","sour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