@coro-ai/runner 0.1.27 → 0.1.31
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/dashboard-dist/assets/{index-CbvmOLWN.js → index--JceWwKS.js} +10 -10
- package/dashboard-dist/assets/index-V3YMhXZt.css +2 -0
- package/dashboard-dist/index.html +2 -2
- package/dist/src/jobs/campaign-context.d.ts +40 -0
- package/dist/src/jobs/campaign-context.js +234 -0
- package/dist/src/jobs/campaign-context.js.map +1 -0
- package/dist/src/jobs/dispatcher.d.ts +10 -1
- package/dist/src/jobs/dispatcher.js +108 -21
- package/dist/src/jobs/dispatcher.js.map +1 -1
- package/dist/src/jobs/workspace-layout.d.ts +2 -0
- package/dist/src/jobs/workspace-layout.js +7 -1
- package/dist/src/jobs/workspace-layout.js.map +1 -1
- package/dist/src/prompt/builder.js +21 -1
- package/dist/src/prompt/builder.js.map +1 -1
- package/dist/src/tools/campaign.js +15 -6
- package/dist/src/tools/campaign.js.map +1 -1
- package/node_modules/@coro-ai/cloud-protocol/package.json +1 -1
- package/node_modules/@coro-ai/intelligence-base/layer/agents/campaign-evaluator.md +16 -2
- package/node_modules/@coro-ai/intelligence-base/layer/agents/campaign-integrator.md +57 -16
- package/node_modules/@coro-ai/intelligence-base/layer/agents/campaign-planner.md +18 -0
- package/node_modules/@coro-ai/intelligence-base/layer/agents/coder.md +2 -2
- package/node_modules/@coro-ai/intelligence-base/layer/agents/planner.md +4 -3
- package/node_modules/@coro-ai/intelligence-base/layer/agents/pr-reviewer.md +2 -0
- package/node_modules/@coro-ai/intelligence-base/layer/workflows/campaign/workflow.md +38 -13
- package/node_modules/@coro-ai/intelligence-base/package.json +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/executor.d.ts +11 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/executor.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/executor.js +29 -3
- package/node_modules/@coro-ai/llm-anthropic/dist/executor.js.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/steering-errors.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/steering-errors.js +10 -2
- package/node_modules/@coro-ai/llm-anthropic/dist/steering-errors.js.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/package.json +1 -1
- package/node_modules/@coro-ai/llm-openai/dist/executor.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-openai/dist/executor.js +43 -30
- package/node_modules/@coro-ai/llm-openai/dist/executor.js.map +1 -1
- package/node_modules/@coro-ai/llm-openai/dist/steering-input.d.ts +21 -0
- package/node_modules/@coro-ai/llm-openai/dist/steering-input.d.ts.map +1 -0
- package/node_modules/@coro-ai/llm-openai/dist/steering-input.js +64 -0
- package/node_modules/@coro-ai/llm-openai/dist/steering-input.js.map +1 -0
- package/node_modules/@coro-ai/llm-openai/package.json +1 -1
- package/node_modules/@coro-ai/plugin-sdk/package.json +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/README.md +16 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/index.js +4 -20
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/read.js +17 -17
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/json.js +60 -32
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/raw.js +3 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/text.js +3 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/urlencoded.js +16 -20
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/utils.js +18 -16
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/node_modules/content-type/LICENSE +22 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/node_modules/content-type/README.md +69 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/node_modules/content-type/dist/index.d.ts +26 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/node_modules/content-type/dist/index.js +170 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/node_modules/content-type/package.json +52 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/package.json +23 -10
- package/node_modules/better-sqlite3/deps/download.sh +1 -1
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +692 -176
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +17 -5
- package/node_modules/better-sqlite3/package.json +1 -1
- package/node_modules/better-sqlite3/src/better_sqlite3.cpp +1 -1
- package/node_modules/better-sqlite3/src/util/helpers.cpp +1 -1
- package/node_modules/better-sqlite3/src/util/macros.cpp +8 -1
- package/node_modules/hono/dist/adapter/aws-lambda/handler.js +5 -3
- package/node_modules/hono/dist/adapter/lambda-edge/handler.js +8 -2
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +5 -3
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +8 -2
- package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/cors/index.js +2 -5
- package/node_modules/hono/dist/cjs/middleware/language/language.js +10 -32
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/timing/timing.js +3 -1
- package/node_modules/hono/dist/cjs/utils/ipaddr.js +6 -1
- package/node_modules/hono/dist/middleware/bearer-auth/index.js +1 -1
- package/node_modules/hono/dist/middleware/cors/index.js +2 -5
- package/node_modules/hono/dist/middleware/language/language.js +10 -32
- package/node_modules/hono/dist/middleware/serve-static/index.js +1 -1
- package/node_modules/hono/dist/middleware/timing/timing.js +3 -1
- package/node_modules/hono/dist/tsconfig.build.tsbuildinfo +1 -1
- package/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +1 -1
- package/node_modules/hono/dist/utils/ipaddr.js +6 -1
- package/node_modules/hono/package.json +19 -13
- package/node_modules/openai/CHANGELOG.md +30 -1
- package/node_modules/openai/README.md +1 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.js +6 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.mjs +6 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.mjs.map +1 -1
- package/node_modules/openai/package.json +2 -11
- package/node_modules/openai/resources/admin/organization/admin-api-keys.d.mts +9 -0
- package/node_modules/openai/resources/admin/organization/admin-api-keys.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/admin-api-keys.d.ts +9 -0
- package/node_modules/openai/resources/admin/organization/admin-api-keys.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/audit-logs.d.mts +113 -3
- package/node_modules/openai/resources/admin/organization/audit-logs.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/audit-logs.d.ts +113 -3
- package/node_modules/openai/resources/admin/organization/audit-logs.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.d.mts +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.d.ts +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.js.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.mjs.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.d.mts +2 -2
- package/node_modules/openai/resources/admin/organization/projects/projects.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.d.ts +2 -2
- package/node_modules/openai/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.js.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.mjs.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/spend-alerts.d.mts +20 -1
- package/node_modules/openai/resources/admin/organization/projects/spend-alerts.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/spend-alerts.d.ts +20 -1
- package/node_modules/openai/resources/admin/organization/projects/spend-alerts.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/spend-alerts.js +19 -0
- package/node_modules/openai/resources/admin/organization/projects/spend-alerts.js.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/spend-alerts.mjs +19 -0
- package/node_modules/openai/resources/admin/organization/projects/spend-alerts.mjs.map +1 -1
- package/node_modules/openai/resources/admin/organization/spend-alerts.d.mts +12 -0
- package/node_modules/openai/resources/admin/organization/spend-alerts.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/spend-alerts.d.ts +12 -0
- package/node_modules/openai/resources/admin/organization/spend-alerts.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/spend-alerts.js +17 -0
- package/node_modules/openai/resources/admin/organization/spend-alerts.js.map +1 -1
- package/node_modules/openai/resources/admin/organization/spend-alerts.mjs +17 -0
- package/node_modules/openai/resources/admin/organization/spend-alerts.mjs.map +1 -1
- package/node_modules/openai/resources/realtime/client-secrets.d.mts +9 -4
- package/node_modules/openai/resources/realtime/client-secrets.d.mts.map +1 -1
- package/node_modules/openai/resources/realtime/client-secrets.d.ts +9 -4
- package/node_modules/openai/resources/realtime/client-secrets.d.ts.map +1 -1
- package/node_modules/openai/resources/realtime/realtime.d.mts +18 -8
- package/node_modules/openai/resources/realtime/realtime.d.mts.map +1 -1
- package/node_modules/openai/resources/realtime/realtime.d.ts +18 -8
- package/node_modules/openai/resources/realtime/realtime.d.ts.map +1 -1
- package/node_modules/openai/resources/realtime/realtime.js.map +1 -1
- package/node_modules/openai/resources/realtime/realtime.mjs.map +1 -1
- package/node_modules/openai/resources/responses/input-tokens.d.mts +6 -5
- package/node_modules/openai/resources/responses/input-tokens.d.mts.map +1 -1
- package/node_modules/openai/resources/responses/input-tokens.d.ts +6 -5
- package/node_modules/openai/resources/responses/input-tokens.d.ts.map +1 -1
- package/node_modules/openai/resources/responses/responses.d.mts +11 -6
- package/node_modules/openai/resources/responses/responses.d.mts.map +1 -1
- package/node_modules/openai/resources/responses/responses.d.ts +11 -6
- package/node_modules/openai/resources/responses/responses.d.ts.map +1 -1
- package/node_modules/openai/resources/responses/responses.js.map +1 -1
- package/node_modules/openai/resources/responses/responses.mjs.map +1 -1
- package/node_modules/openai/resources/shared.d.mts +6 -0
- package/node_modules/openai/resources/shared.d.mts.map +1 -1
- package/node_modules/openai/resources/shared.d.ts +6 -0
- package/node_modules/openai/resources/shared.d.ts.map +1 -1
- package/node_modules/openai/resources/videos.d.mts +1 -1
- package/node_modules/openai/resources/videos.d.ts +1 -1
- package/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts +6 -1
- package/node_modules/openai/src/resources/admin/organization/admin-api-keys.ts +11 -0
- package/node_modules/openai/src/resources/admin/organization/audit-logs.ts +148 -1
- package/node_modules/openai/src/resources/admin/organization/projects/index.ts +1 -0
- package/node_modules/openai/src/resources/admin/organization/projects/projects.ts +2 -0
- package/node_modules/openai/src/resources/admin/organization/projects/spend-alerts.ts +32 -0
- package/node_modules/openai/src/resources/admin/organization/spend-alerts.ts +18 -0
- package/node_modules/openai/src/resources/realtime/client-secrets.ts +10 -4
- package/node_modules/openai/src/resources/realtime/realtime.ts +20 -8
- package/node_modules/openai/src/resources/responses/input-tokens.ts +6 -5
- package/node_modules/openai/src/resources/responses/responses.ts +12 -6
- package/node_modules/openai/src/resources/shared.ts +7 -0
- package/node_modules/openai/src/resources/videos.ts +1 -1
- package/node_modules/openai/src/version.ts +1 -1
- package/node_modules/openai/version.d.mts +1 -1
- package/node_modules/openai/version.d.ts +1 -1
- package/node_modules/openai/version.js +1 -1
- package/node_modules/openai/version.mjs +1 -1
- package/node_modules/semver/classes/range.js +11 -2
- package/node_modules/semver/package.json +2 -2
- package/node_modules/side-channel/CHANGELOG.md +10 -0
- package/node_modules/side-channel/README.md +1 -1
- package/node_modules/side-channel/index.js +5 -2
- package/node_modules/side-channel/package.json +10 -10
- package/node_modules/side-channel/test/index.js +16 -0
- package/package.json +7 -6
- package/scripts/install-platform-native-deps.mjs +16 -1
- package/scripts/preinstall-windows-native-env.mjs +31 -0
- package/dashboard-dist/assets/index-BJUGO8PI.css +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"campaign.js","sourceRoot":"","sources":["../../../src/tools/campaign.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,EAAE;AACF,4EAA4E;AAC5E,8BAA8B;AAC9B,EAAE;AACF,4EAA4E;AAC5E,0EAA0E;AAC1E,2EAA2E;AAC3E,0EAA0E;AAC1E,wEAAwE;AACxE,sEAAsE;AACtE,EAAE;AACF,yEAAyE;AACzE,8EAA8E;AAC9E,yEAAyE;AACzE,gDAAgD;AAChD,EAAE;AACF,yEAAyE;AACzE,6EAA6E;AAC7E,0EAA0E;AAC1E,8EAA8E;AAC9E,EAAE;AACF,mEAAmE;AACnE,uEAAuE;AACvE,EAAE;AACF,0BAA0B;AAC1B,2BAA2B;AAC3B,yEAAyE;AACzE,qEAAqE;AACrE,EAAE;AACF,6EAA6E;AAC7E,0EAA0E;AAC1E,kDAAkD;;;AAoClD,8CAiEC;AAcD,sDA6DC;AAID,4CAoEC;AAiBD,wCAoCC;AAgBD,8CAyBC;AASD,oDAYC;AAaD,kDAsCC;AAED,gDAqBC;AAED,kDAsCC;AAiDD,wCAUC;AAQD,kCAwCC;AAOD,wDAMC;AAllBD,4DAWgC;AAChC,6CAOwB;AACxB,uDAAkD;AAa3C,KAAK,UAAU,iBAAiB,CACrC,IAA2B,EAC3B,GAAgB,EAChB,OAAqB;IAErB,IAAI,CAAC,IAAA,uBAAa,EAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC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ACH,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC;AAED;;;;GAIG;AACH,SAAgB,sBAAsB,CAAC,SAAiB;IACtD,IAAI,SAAS,KAAK,gCAAe;QAAE,OAAO,UAAU,CAAA;IACpD,IAAI,SAAS,KAAK,8BAAa;QAAE,OAAO,QAAQ,CAAA;IAChD,IAAI,SAAS,KAAK,iCAAgB;QAAE,OAAO,WAAW,CAAA;IACtD,IAAI,SAAS,KAAK,iCAAgB;QAAE,OAAO,WAAW,CAAA;IACtD,OAAO,IAAI,CAAA;AACb,CAAC;AAED;;;;GAIG;AACU,QAAA,sBAAsB,GAAG,yCAAwB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coro-ai/cloud-protocol",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "Wire protocol shared between the Coro runner and the Coro cloud control plane. Pure TypeScript types, Zod schemas, and protocol constants — zero runtime side effects.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,7 +34,9 @@ You do not re-run failed children. The campaign workflow's live-control tools (`
|
|
|
34
34
|
| `propose_change` | Ship memory updates as a tenant PR |
|
|
35
35
|
| `post_artifact` | Save the report markdown for the dashboard |
|
|
36
36
|
| `add_insight` | Record evaluation findings for future campaigns |
|
|
37
|
-
| `
|
|
37
|
+
| `set_job_params` | Bump `integrationRemediationRound` before routing back to planning |
|
|
38
|
+
| `goto_phase` | Route unresolved campaign defects back to `campaign-planning` |
|
|
39
|
+
| `escalate` | Flag a campaign you cannot reasonably close or remediate |
|
|
38
40
|
|
|
39
41
|
## Step-by-step procedure
|
|
40
42
|
|
|
@@ -66,6 +68,18 @@ For each child in `campaign_status().children`:
|
|
|
66
68
|
|
|
67
69
|
Cross-reference `working/{job-id}/integration-report.md`. If the Campaign Integrator's verdict was `fix-needed`, record which child the integrator named and what the cross-child failure was.
|
|
68
70
|
|
|
71
|
+
### 3.0 Unresolved defects — default remediation path
|
|
72
|
+
|
|
73
|
+
Normally a `fix-needed` integration verdict loops back to `campaign-planning` before you ever run, so by aggregation time the latest integration verdict should be `pass`. If you nonetheless find the campaign **not satisfied** — the latest integration report says `fix-needed`, or your own review uncovers a defect the integrator missed — the default path is the same remediation loop, not escalation:
|
|
74
|
+
|
|
75
|
+
1. Read `params.integrationRemediationRound` (unset means `0`). If it is already **3**, `escalate({ reason })` instead — the loop is not converging and a human must decide.
|
|
76
|
+
2. Record each defect via `add_insight({ category: "campaign-integration-failure", … })` with evidence and suggested fix scope.
|
|
77
|
+
3. Post your campaign report (step 6) with a `## Remediation required` section listing the defects.
|
|
78
|
+
4. `set_job_params({ integrationRemediationRound: <round + 1> })`
|
|
79
|
+
5. `goto_phase({ phase: "campaign-planning" })` and end the turn. The Campaign Planner cuts fix children under the same epic; the loop re-runs coordination → integration → aggregation. If the developer has interactive mode enabled, the runner parks at the checkpoint first so they can steer.
|
|
80
|
+
|
|
81
|
+
Do NOT transition the epic or close out the campaign (steps 5–7 below) when taking this path — the campaign is not done.
|
|
82
|
+
|
|
69
83
|
### 3.1 Halt-on-failure remediation (when applicable)
|
|
70
84
|
|
|
71
85
|
If any child is `failed` or `escalated` and the human (via the dashboard) has indicated they want the campaign to attempt remediation rather than close in a partial state, you may **suggest** a remediation plan in the campaign report:
|
|
@@ -167,4 +181,4 @@ Splitting produces multiple PRs — review the `self-improvement-guide` skill if
|
|
|
167
181
|
|
|
168
182
|
### 8. End the turn
|
|
169
183
|
|
|
170
|
-
The runner finishes the campaign on phase end. The interactive checkpoint on the `aggregation` phase parks the job for human approval before the campaign closes; that is the dashboard's "campaign ready to close" surface, not your responsibility.
|
|
184
|
+
The runner finishes the campaign on phase end. The interactive checkpoint on the `aggregation` phase parks the job for human approval before the campaign closes; that is the dashboard's "campaign ready to close" surface, not your responsibility. (If you took the §3.0 remediation path, the `goto_phase` call already routed the job — just end the turn.)
|
|
@@ -39,16 +39,19 @@ Plus exactly one decision:
|
|
|
39
39
|
- **Pass** — every cross-child contract holds, the campaign-level happy
|
|
40
40
|
path runs, the rollout plan is applicable. End the turn; the runner
|
|
41
41
|
advances to `aggregation`.
|
|
42
|
-
- **Fix needed** —
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
`
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
- **Fix needed** — the default path is a **remediation round**: record
|
|
43
|
+
each defect via `add_insight({ category: "campaign-integration-failure", … })`,
|
|
44
|
+
write a `## Remediation required` section into the integration report,
|
|
45
|
+
bump `params.integrationRemediationRound`, and call
|
|
46
|
+
`goto_phase({ phase: "campaign-planning" })` so the Campaign Planner
|
|
47
|
+
turns the defects into new child issues under the same epic. See
|
|
48
|
+
step 10 for the full procedure and the round cap. If interactive mode
|
|
49
|
+
is on, the runner parks at the checkpoint before campaign-planning so
|
|
50
|
+
a human can steer (approve the loop, rerun/skip a child instead, or
|
|
51
|
+
cancel).
|
|
49
52
|
- **Inconclusive** — verification could not run (e.g. no test
|
|
50
|
-
infrastructure for the project).
|
|
51
|
-
|
|
53
|
+
infrastructure for the project). `escalate({ reason })`; a human
|
|
54
|
+
decides how to proceed.
|
|
52
55
|
|
|
53
56
|
## MCP tools for this agent
|
|
54
57
|
|
|
@@ -64,12 +67,14 @@ Plus exactly one decision:
|
|
|
64
67
|
| `loki_query` / `tempo_query` | Query observability backends when applicable |
|
|
65
68
|
| `post_artifact` | Save the integration report |
|
|
66
69
|
| `add_insight` | Record findings for the Campaign Evaluator |
|
|
67
|
-
| `
|
|
70
|
+
| `set_job_params` | Bump `integrationRemediationRound` before looping back |
|
|
71
|
+
| `goto_phase` | Route a fix-needed verdict back to `campaign-planning` |
|
|
72
|
+
| `escalate` | Surface inconclusive verification or an exhausted remediation budget |
|
|
68
73
|
|
|
69
74
|
You do **not** have `campaign_rerun_child`, `campaign_skip_child`,
|
|
70
75
|
`campaign_cancel_child`, `propose_change`, or any merge / approve tool.
|
|
71
|
-
You verify; you
|
|
72
|
-
|
|
76
|
+
You verify; on failure you route the campaign into a remediation round;
|
|
77
|
+
you escalate only what remediation cannot fix.
|
|
73
78
|
|
|
74
79
|
## Step-by-step procedure
|
|
75
80
|
|
|
@@ -183,8 +188,13 @@ Recommended structure:
|
|
|
183
188
|
## Runtime / observability spot-check
|
|
184
189
|
- …
|
|
185
190
|
|
|
191
|
+
## Remediation required ← only when verdict is fix-needed
|
|
192
|
+
| # | Defect | Repo | Evidence | Suggested fix scope |
|
|
193
|
+
|---|---|---|---|---|
|
|
194
|
+
|
|
186
195
|
## Verdict
|
|
187
196
|
- pass | fix-needed | inconclusive
|
|
197
|
+
- Remediation round: <params.integrationRemediationRound or 0>
|
|
188
198
|
- Rationale: <one paragraph>
|
|
189
199
|
```
|
|
190
200
|
|
|
@@ -201,15 +211,46 @@ post_artifact({
|
|
|
201
211
|
### 10. Decide and end the turn
|
|
202
212
|
|
|
203
213
|
Apply the verdict from step 9:
|
|
214
|
+
|
|
204
215
|
- **pass** — end the turn. Runner advances to `aggregation`.
|
|
205
|
-
|
|
216
|
+
|
|
217
|
+
- **fix needed** — run a remediation round (the default path; do NOT
|
|
218
|
+
escalate unless the budget below is exhausted):
|
|
219
|
+
1. Read `params.integrationRemediationRound` (unset means `0`). If it
|
|
220
|
+
is already **3**, the loop has not converged —
|
|
221
|
+
`escalate({ reason: "integration still failing after 3 remediation rounds: …" })`
|
|
222
|
+
and end the turn.
|
|
223
|
+
2. For each defect, call
|
|
224
|
+
`add_insight({ category: "campaign-integration-failure", … })`
|
|
225
|
+
with the exact failing contract / check, the evidence, and a
|
|
226
|
+
suggested fix scope. These insights are how the Campaign Planner
|
|
227
|
+
and the fix children learn what you found — be precise.
|
|
228
|
+
3. Make sure the `## Remediation required` table in
|
|
229
|
+
`integration-report.md` lists every defect with enough detail that
|
|
230
|
+
a planner can cut a child issue from each row without re-running
|
|
231
|
+
your verification.
|
|
232
|
+
4. `set_job_params({ integrationRemediationRound: <round + 1> })`
|
|
233
|
+
5. `goto_phase({ phase: "campaign-planning" })` and end the turn.
|
|
234
|
+
The Campaign Planner will register fix children under the same
|
|
235
|
+
epic, the dispatcher runs them, and you will be re-invoked on the
|
|
236
|
+
next integration pass. If the developer has interactive mode
|
|
237
|
+
enabled, the runner parks at the checkpoint first so they can
|
|
238
|
+
review your report and steer.
|
|
239
|
+
|
|
206
240
|
- **inconclusive** — `escalate({ reason })` with the gap explained. End the turn.
|
|
207
241
|
|
|
208
242
|
## Behaviour rules
|
|
209
243
|
|
|
210
|
-
- You verify only — you do not write production code.
|
|
211
|
-
|
|
212
|
-
|
|
244
|
+
- You verify only — you do not write production code. Fixes are
|
|
245
|
+
delivered by remediation children, never by you patching the repo.
|
|
246
|
+
- **Read the "Insights from Upstream Agents" section of your context
|
|
247
|
+
before designing checks.** It contains every quirk, workaround, and
|
|
248
|
+
environment pitfall the child jobs already hit (sandbox limitations,
|
|
249
|
+
flaky suites, build idiosyncrasies). Re-discovering a documented
|
|
250
|
+
quirk is wasted budget; contradicting one is a verification bug.
|
|
251
|
+
- You do not rerun, skip, or cancel children. Per-child recovery is
|
|
252
|
+
human-mediated via the dashboard; whole-campaign recovery is your
|
|
253
|
+
remediation loop.
|
|
213
254
|
- You do not propose memory updates — record observations as
|
|
214
255
|
`add_insight` so the Campaign Evaluator can consolidate them.
|
|
215
256
|
- You do not silently substitute local checks for missing CI signal
|
|
@@ -6,6 +6,8 @@ You are the Campaign Planner. You take a feature large enough to need multiple c
|
|
|
6
6
|
|
|
7
7
|
You only run inside the campaign workflow, in the `campaign-planning` phase. The regular Planner promoted this job into a campaign by calling `convert_to_campaign` after triage; the description and any tracker epic reference were captured into `params.campaignTitle`, `params.campaignDescription`, and (optionally) `params.trackerEpicRef`.
|
|
8
8
|
|
|
9
|
+
You may also be re-entered for a **remediation round**: the Campaign Integrator (or Campaign Evaluator) found defects in the integrated campaign and routed back to this phase via `goto_phase`. Detect this by `params.integrationRemediationRound >= 1` (or an existing `campaignChildren[]` list where every child is terminal). In that mode you do NOT re-plan the campaign — see §8 "Remediation rounds".
|
|
10
|
+
|
|
9
11
|
## Inputs
|
|
10
12
|
|
|
11
13
|
- `working/{job-id}/campaign-architecture.md` (load-bearing) — produced by the Campaign Architect in the prior phase.
|
|
@@ -271,6 +273,22 @@ Write `campaign-plan.md` in the working directory. Include: the full child list
|
|
|
271
273
|
|
|
272
274
|
If you noticed any tooling gaps, tracker quirks, or breakdown heuristics that worked unusually well or badly, call `mcp__coro__add_insight`. The campaign-evaluator reads insights at aggregation time and can roll them into a memory proposal.
|
|
273
275
|
|
|
276
|
+
### 8. Remediation rounds
|
|
277
|
+
|
|
278
|
+
When `params.integrationRemediationRound >= 1`, the campaign already ran once: the children listed in `campaign_status()` are terminal, and the Campaign Integrator found defects in the **integrated** result. Your scope this round is the defect list — nothing else.
|
|
279
|
+
|
|
280
|
+
1. Read `working/{job-id}/integration-report.md`, specifically the `## Remediation required` table, and the `campaign-integration-failure` entries under "Insights from Upstream Agents" in your context. These are your requirements. Do not re-derive the original breakdown and do not touch children that passed.
|
|
281
|
+
2. Reuse the existing epic (`params.trackerEpicRef`). Never create a second epic.
|
|
282
|
+
3. For each defect (or coherent group of defects in one repo/module), create one tracker child issue under the same epic and register it with `campaign_register_child`. Rules:
|
|
283
|
+
- Names must be unique across the whole campaign — prefix with the round, e.g. `fix-r2-<slug>`.
|
|
284
|
+
- The description must quote the integrator's evidence verbatim and cite the contract / check that failed. The fix child's planner sees only what you write here.
|
|
285
|
+
- `dependsOn` may reference completed children from earlier rounds (their contracts are satisfied — such deps resolve immediately) or other fix children of this round when ordering matters. Most fix children are roots.
|
|
286
|
+
- Size with the same lane matrix (§2.5). Most defect fixes are `fast` or `standard`.
|
|
287
|
+
4. Update `campaign-plan.md` with a `## Remediation round <N>` section listing the new children, and re-post the `campaign-plan-md` artifact.
|
|
288
|
+
5. Call `campaign_finalize()`. It re-validates the full graph, promotes the dispatchable fix children to `ready`, and advances to `coordinating`. The dispatcher runs only the new children; on completion the campaign re-enters `campaign-integration` for the next verification pass.
|
|
289
|
+
|
|
290
|
+
Keep remediation rounds small and surgical: one focused fix child per defect beats one omnibus "fix everything" child — the integrator must be able to attribute a still-failing check to a specific fix child.
|
|
291
|
+
|
|
274
292
|
## Quality bar
|
|
275
293
|
|
|
276
294
|
A good campaign plan reads like a senior engineer's RFC: each child is small, the dependencies are real, and a reviewer can predict what each child's PR will look like before it lands. If your plan fails this test, fold or split children until it doesn't.
|
|
@@ -49,7 +49,7 @@ These are the MCP tools most relevant in this phase. Call them with the `mcp__co
|
|
|
49
49
|
### 1. Read all inputs
|
|
50
50
|
Read the implementation plan, workflow instructions, and memory. Invoke the relevant language conventions skill and any workflow-specified domain knowledge skill before writing a single line of code. Also invoke the `register-convention` skill — you will read and append to `working/{job-id}/register.json` throughout this phase. Skim `memory/snippets/*.md` so you know which `ExternalRef` shape and identifier conventions the active SCM/Tracker plugins expect.
|
|
51
51
|
|
|
52
|
-
**Campaign children only:** if `params.campaignContracts` is non-empty, also invoke the `campaign-contracts` skill. For each contract id you produce, read
|
|
52
|
+
**Campaign children only:** if `params.campaignContracts` is non-empty, also invoke the `campaign-contracts` skill. Campaign inputs live under `params.campaignContextDir` (copied from the parent at dispatch). For each contract id you produce, read the contracts index there and treat the recorded `shape` as canonical. The producer-side contract test you write in step 5 must pin this shape exactly. If `params.campaignConsumesContracts` is non-empty, read each producer's contract file under `params.campaignContextDir` (the producer has already merged — `dependsOn` guaranteed it) and treat its as-shipped shape as canonical for your consumer-side code and test.
|
|
53
53
|
|
|
54
54
|
### 2. Determine current work item
|
|
55
55
|
|
|
@@ -167,7 +167,7 @@ Update `register.json` (per the `register-convention` skill):
|
|
|
167
167
|
- Append a `contracts[]` entry for any new/modified public surface (endpoint, schema field, message format, CLI flag, config key).
|
|
168
168
|
- On the first non-trivial register append in this job, also call `post_artifact({ kind: "register", title: "Register", data: { path: "register.json" } })` so the dashboard surfaces it.
|
|
169
169
|
|
|
170
|
-
**Campaign producer children only:** if `params.campaignContracts` was non-empty, you also write the producer-side contract record at `
|
|
170
|
+
**Campaign producer children only:** if `params.campaignContracts` was non-empty, you also write the producer-side contract record under `params.campaignContextDir`, at the relative path your tenant's `campaign-contracts` skill defines (typically a `contracts/` subdirectory + `{params.campaignChildName}.json`). The runner syncs files you write under `params.campaignContextDir` back to the parent campaign when you finish. Per the `campaign-contracts` skill, the file shape is:
|
|
171
171
|
|
|
172
172
|
```json
|
|
173
173
|
{
|
|
@@ -58,9 +58,10 @@ Before doing **any other planning work**, decide whether this job is a single **
|
|
|
58
58
|
|
|
59
59
|
**Read the campaign architecture if you are a campaign child.** When `params.epicAllowed === false`:
|
|
60
60
|
|
|
61
|
-
- `params.
|
|
62
|
-
- `params.
|
|
63
|
-
- `params.
|
|
61
|
+
- `params.campaignContextDir` points at the folder (under your job root) where the runner copied the parent campaign's markdown/json files at dispatch. All parent campaign inputs live here.
|
|
62
|
+
- `params.campaignDecisionsRef`, when set, is already rewritten to a path under `params.campaignContextDir` — read it. Treat its ADRs as load-bearing — your decomposition must respect them.
|
|
63
|
+
- `params.campaignContracts` lists the contract ids this child **produces**. For each id, read the design-time shape from the contracts index under `params.campaignContextDir` (the path is in your params or the `campaign-contracts` skill for this tenant). Invoke the `campaign-contracts` skill for the producer-side workflow.
|
|
64
|
+
- `params.campaignConsumesContracts` lists the contract ids this child **consumes**, each with the producer child name. For each, read the producer's contract file under `params.campaignContextDir` (the producer has already merged — `dependsOn` guaranteed it). Invoke the `campaign-contracts` skill for the consumer-side workflow. If the producer's contract file is missing, escalate.
|
|
64
65
|
|
|
65
66
|
Both sets of contracts feed the work-item plan: the producer must write the contract test in step 1; the consumer must reference the producer's recorded shape verbatim.
|
|
66
67
|
|
|
@@ -66,6 +66,8 @@ The runner **auto-advances** to the next workflow phase when you finish — but
|
|
|
66
66
|
|
|
67
67
|
## MCP tools for this agent
|
|
68
68
|
|
|
69
|
+
Call `scm_get_pr_status`, `await_event`, `log`, and other Coro tools **as MCP tools** — never via `Bash` (shell commands like `mcp__coro__scm_get_pr_status` are not valid).
|
|
70
|
+
|
|
69
71
|
Generic Coro tools (provider-neutral, always available):
|
|
70
72
|
|
|
71
73
|
| Tool | Purpose |
|
|
@@ -21,6 +21,8 @@ phases:
|
|
|
21
21
|
|
|
22
22
|
- name: coordinating
|
|
23
23
|
agent: null
|
|
24
|
+
# Agentless phase — the dispatcher parks the job here and no model is
|
|
25
|
+
# ever invoked, so the tier is informational only.
|
|
24
26
|
tier: mini
|
|
25
27
|
status: awaiting-children
|
|
26
28
|
|
|
@@ -32,7 +34,11 @@ phases:
|
|
|
32
34
|
|
|
33
35
|
- name: aggregation
|
|
34
36
|
agent: agents/campaign-evaluator.md
|
|
35
|
-
|
|
37
|
+
# Aggregation synthesises the whole campaign: campaign_status over N
|
|
38
|
+
# children, the integration report, per-child insights, tracker epic
|
|
39
|
+
# updates, and multi-file memory proposals. On large campaigns this
|
|
40
|
+
# demands top-tier judgment — `mini` (haiku) proved not up to it.
|
|
41
|
+
tier: planning
|
|
36
42
|
status: aggregating
|
|
37
43
|
interactive_checkpoint: true
|
|
38
44
|
---
|
|
@@ -87,14 +93,23 @@ cannot recursively become campaigns.
|
|
|
87
93
|
integration, the campaign-level happy path runs, and the rollout
|
|
88
94
|
plan from `campaign-architecture.md` is applicable. Outputs
|
|
89
95
|
`integration-report.md` and decides pass / fix-needed /
|
|
90
|
-
inconclusive. fix-needed
|
|
91
|
-
|
|
96
|
+
inconclusive. **fix-needed loops, it does not stop the campaign**:
|
|
97
|
+
the integrator records the defects as insights, bumps
|
|
98
|
+
`params.integrationRemediationRound`, and calls
|
|
99
|
+
`goto_phase(campaign-planning)` — the planner cuts fix children
|
|
100
|
+
under the same epic, the dispatcher runs them, and integration
|
|
101
|
+
re-verifies. The loop is capped at 3 remediation rounds; after that
|
|
102
|
+
(or on inconclusive) the integrator escalates. With interactive
|
|
103
|
+
mode on, the runner parks at the checkpoint before each loop hop so
|
|
104
|
+
the human can steer (approve, rerun/skip a child, or cancel).
|
|
92
105
|
5. **`aggregation`** — the campaign-evaluator agent reads
|
|
93
106
|
`campaign_status`, the integration report, and per-child insights;
|
|
94
107
|
summarises outcomes; updates the tracker epic; and optionally
|
|
95
108
|
proposes memory updates capturing cross-child insights via
|
|
96
|
-
`propose_change`.
|
|
97
|
-
|
|
109
|
+
`propose_change`. If it finds the campaign still unsatisfied it
|
|
110
|
+
takes the same remediation loop back to `campaign-planning`
|
|
111
|
+
(same round cap) instead of closing. The interactive checkpoint
|
|
112
|
+
lets a human review before the campaign closes.
|
|
98
113
|
|
|
99
114
|
## Trigger
|
|
100
115
|
|
|
@@ -105,14 +120,24 @@ workflow path explicitly (advanced operators).
|
|
|
105
120
|
|
|
106
121
|
## Failure handling
|
|
107
122
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
`
|
|
113
|
-
campaign
|
|
114
|
-
|
|
115
|
-
|
|
123
|
+
Two distinct recovery loops:
|
|
124
|
+
|
|
125
|
+
- **Per-child failures during coordination** — the dispatcher's
|
|
126
|
+
coordinator stops dispatching new children as soon as one child
|
|
127
|
+
reaches `failed` or `escalated` (default `halt-on-failure` policy).
|
|
128
|
+
The campaign job parks at `awaiting-developer-input`. A human or the
|
|
129
|
+
campaign-evaluator can then call `campaign_skip_child`,
|
|
130
|
+
`campaign_rerun_child`, or `campaign_cancel_child` and resume the
|
|
131
|
+
campaign. The policy is configurable via
|
|
132
|
+
`settings.coordination.failurePolicy` in the future; today the
|
|
133
|
+
default is the only mode.
|
|
134
|
+
- **Campaign-level defects found at integration/aggregation** — the
|
|
135
|
+
default path is the remediation loop described above:
|
|
136
|
+
`campaign-planning` → `coordinating` → `campaign-integration`
|
|
137
|
+
repeats with surgical fix children until the integration verdict is
|
|
138
|
+
`pass`, capped at 3 rounds (`params.integrationRemediationRound`).
|
|
139
|
+
Escalation is reserved for inconclusive verification or an exhausted
|
|
140
|
+
round budget.
|
|
116
141
|
|
|
117
142
|
## Recursion guard
|
|
118
143
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coro-ai/intelligence-base",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "Coro base intelligence layer — generic, company-agnostic agents, workflows, skills, and runtime instructions that ship with every Coro install.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -136,6 +136,17 @@ export declare class AnthropicExecutor implements PhaseExecutorRuntime {
|
|
|
136
136
|
* Subagents pinned to a non-Anthropic provider are skipped here — the
|
|
137
137
|
* runner exposes them via the `mcp__coro__run_subagent` MCP tool
|
|
138
138
|
* instead so they reach the right executor.
|
|
139
|
+
*
|
|
140
|
+
* MCP access is granted by *referencing* the parent session's
|
|
141
|
+
* already-registered servers by name. The SDK's
|
|
142
|
+
* `AgentDefinition.mcpServers` is an ARRAY of server names (or inline
|
|
143
|
+
* records) — passing a bare `Record<name, config>` object map there
|
|
144
|
+
* silently invalidates the whole agent definition, so the CLI drops
|
|
145
|
+
* the agent and the model gets `Agent type '<name>' not found`. We
|
|
146
|
+
* reference `coro` (so the subagent can call the `mcp__coro__*` tools
|
|
147
|
+
* it declares) plus every plugin MCP server; the top-level
|
|
148
|
+
* `mcpServers` option registers all of them under the same keys, so
|
|
149
|
+
* the name references resolve.
|
|
139
150
|
*/
|
|
140
151
|
private buildSdkAgentsFromRequest;
|
|
141
152
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../src/executor.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAQlC,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EAKV,oBAAoB,EACpB,uBAAuB,EAEvB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,YAAY,EACZ,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACr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{
|
|
|
700
700
|
GH_OWNER: this.settings.github?.owner ?? '',
|
|
701
701
|
GH_TOKEN: this.settings.github?.token ?? '',
|
|
702
702
|
CLAUDE_CODE_STREAM_CLOSE_TIMEOUT: '600000',
|
|
703
|
-
|
|
703
|
+
// Tool search (deferred tool loading) is opt-in via
|
|
704
|
+
// CORO_ENABLE_TOOL_SEARCH=1. When enabled, the Claude Code CLI
|
|
705
|
+
// defers the mcp__coro__* tool schemas out of the model's tool
|
|
706
|
+
// list and requires a ToolSearch round-trip to activate them.
|
|
707
|
+
// In production this has caused phases to run with ZERO MCP
|
|
708
|
+
// tool calls: the model loads schemas via ToolSearch but the
|
|
709
|
+
// deferred tools never become invocable (observed on
|
|
710
|
+
// haiku-tier campaign phases — the agent could not even call
|
|
711
|
+
// `escalate` and burned the whole phase writing workaround
|
|
712
|
+
// files). Coro's MCP tools are the agent's only channel for
|
|
713
|
+
// state updates, artifacts, and escalation, so they must be
|
|
714
|
+
// unconditionally present in the tool list by default.
|
|
715
|
+
...(process.env.CORO_ENABLE_TOOL_SEARCH === '1' || process.env.CORO_ENABLE_TOOL_SEARCH === 'true'
|
|
716
|
+
? { ENABLE_TOOL_SEARCH: 'true' }
|
|
717
|
+
: {}),
|
|
704
718
|
// Verbose SDK tracing is opt-in via CORO_DEBUG_CLAUDE_SDK=1.
|
|
705
719
|
// Leaving it on by default floods the activity log with Bun
|
|
706
720
|
// source frames whenever an AbortController fires inside the
|
|
@@ -1307,11 +1321,23 @@ class AnthropicExecutor {
|
|
|
1307
1321
|
* Subagents pinned to a non-Anthropic provider are skipped here — the
|
|
1308
1322
|
* runner exposes them via the `mcp__coro__run_subagent` MCP tool
|
|
1309
1323
|
* instead so they reach the right executor.
|
|
1324
|
+
*
|
|
1325
|
+
* MCP access is granted by *referencing* the parent session's
|
|
1326
|
+
* already-registered servers by name. The SDK's
|
|
1327
|
+
* `AgentDefinition.mcpServers` is an ARRAY of server names (or inline
|
|
1328
|
+
* records) — passing a bare `Record<name, config>` object map there
|
|
1329
|
+
* silently invalidates the whole agent definition, so the CLI drops
|
|
1330
|
+
* the agent and the model gets `Agent type '<name>' not found`. We
|
|
1331
|
+
* reference `coro` (so the subagent can call the `mcp__coro__*` tools
|
|
1332
|
+
* it declares) plus every plugin MCP server; the top-level
|
|
1333
|
+
* `mcpServers` option registers all of them under the same keys, so
|
|
1334
|
+
* the name references resolve.
|
|
1310
1335
|
*/
|
|
1311
1336
|
buildSdkAgentsFromRequest(req) {
|
|
1312
1337
|
if (!req.subagents || req.subagents.length === 0)
|
|
1313
1338
|
return undefined;
|
|
1314
|
-
const
|
|
1339
|
+
const pluginServerNames = Object.keys(req.pluginMcpServers ?? {});
|
|
1340
|
+
const mcpServerNames = ['coro', ...pluginServerNames];
|
|
1315
1341
|
const out = {};
|
|
1316
1342
|
for (const sa of req.subagents) {
|
|
1317
1343
|
if (sa.provider && sa.provider !== ANTHROPIC_PLUGIN_ID)
|
|
@@ -1321,7 +1347,7 @@ class AnthropicExecutor {
|
|
|
1321
1347
|
prompt: sa.systemPrompt,
|
|
1322
1348
|
...(sa.allowedTools ? { tools: [...sa.allowedTools] } : {}),
|
|
1323
1349
|
...(sa.model ? { model: sa.model } : {}),
|
|
1324
|
-
|
|
1350
|
+
mcpServers: mcpServerNames,
|
|
1325
1351
|
};
|
|
1326
1352
|
}
|
|
1327
1353
|
return Object.keys(out).length > 0 ? out : undefined;
|