opencode-orchestrator 1.0.20 → 1.0.22
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/dist/index.js
CHANGED
|
@@ -935,9 +935,10 @@ var PHASE_1_THINK_ANALYSIS = `### 1.1 MISSION SCOPE
|
|
|
935
935
|
- Identify high-risk parts and fallback plans.
|
|
936
936
|
- If agent fails \u2192 See RECOVERY section.`;
|
|
937
937
|
var PHASE_5_MSVP = `1. **STAGE 1 (Unit)**: Workers MUST trigger ${AGENT_NAMES.REVIEWER} for unit verification immediately upon completion.
|
|
938
|
-
2. **
|
|
939
|
-
3. **
|
|
940
|
-
4. **
|
|
938
|
+
2. **PARALLEL DISCOVERY**: Before Stage 2, launch a swarm of scouts (background: true) using **[${SCOUT_INTEGRATION.NAME}]**: ${SCOUT_INTEGRATION.PROMPT} (To ${AGENT_NAMES.PLANNER}).
|
|
939
|
+
3. **STAGE 2 (Integration Master)**: The Master ${AGENT_NAMES.REVIEWER} ingests all scout findings to validate cross-module consistency.
|
|
940
|
+
4. **E2E VALIDATION**: Run full system tests and build pass check.
|
|
941
|
+
5. **SEAL GATE**: No SEALED output until ${PATHS.TODO} is all [x] and zero issues remain.`;
|
|
941
942
|
var HPFA_RULES = `1. **Fractal Spawning**: Workers spawn sub-workers for complex files/modules.
|
|
942
943
|
2. **Speculative Racing**: Launch multiple strategies in parallel (mode: race) for uncertainty.
|
|
943
944
|
3. **Asynchronous Batching**: Group non-dependent tool calls to trigger host-side parallelism.
|
|
@@ -966,6 +967,11 @@ var SCOUT_INFRA = {
|
|
|
966
967
|
NAME: `${SCOUT_LABEL}: Infra`,
|
|
967
968
|
PROMPT: "Detect infrastructure and environment configs. Search for Dockerfiles, CI/CD workflows (.github, .gitlab), and environment variable templates."
|
|
968
969
|
};
|
|
970
|
+
var SCOUT_INTEGRATION = {
|
|
971
|
+
ID: "INTEGRATION",
|
|
972
|
+
NAME: `${SCOUT_LABEL}: Integration`,
|
|
973
|
+
PROMPT: "Read all modified files and their cross-module dependencies in parallel. Map the actual integration surface and identify potential consistency issues."
|
|
974
|
+
};
|
|
969
975
|
|
|
970
976
|
// src/core/agents/consts/task-status.const.ts
|
|
971
977
|
var TASK_STATUS = {
|
|
@@ -14986,6 +14992,15 @@ You are ${AGENT_NAMES.REVIEWER}. Verification specialist.
|
|
|
14986
14992
|
- You READ ${PATHS.CONTEXT} to know correct build/test commands
|
|
14987
14993
|
- You DOCUMENT findings to ${PATHS.SYNC_ISSUES} for fixes
|
|
14988
14994
|
- ONLY YOU can mark [x] in ${PATHS.TODO} after verification
|
|
14995
|
+
|
|
14996
|
+
## MSVP (Multi-Stage Verification Pipeline)
|
|
14997
|
+
${PHASE_5_MSVP}
|
|
14998
|
+
|
|
14999
|
+
### Role Specialization
|
|
15000
|
+
1. **UNIT REVIEW (Stage 1)**: Triggered by Workers. Focus on local file correctness and unit tests.
|
|
15001
|
+
2. **MASTER REVIEW (Stage 2)**: Triggered by Commander in Phase 5. Focus on cross-module consistency and system-wide integration using **Parallel Integration Scout** findings.
|
|
15002
|
+
|
|
15003
|
+
[CRITICAL]: As Master Reviewer, you MUST read the results of the Integration Scouts before making a verdict.
|
|
14989
15004
|
${PROMPT_TAGS.ROLE.close}`;
|
|
14990
15005
|
|
|
14991
15006
|
// src/agents/prompts/reviewer/forbidden.ts
|
|
@@ -15204,81 +15219,40 @@ ${PROMPT_TAGS.ASYNC_MONITORING.close}`;
|
|
|
15204
15219
|
|
|
15205
15220
|
// src/agents/prompts/reviewer/integration-testing.ts
|
|
15206
15221
|
var REVIEWER_INTEGRATION_TESTING = `${PROMPT_TAGS.INTEGRATION_TESTING.open}
|
|
15207
|
-
## E2E INTEGRATION TESTING
|
|
15208
|
-
|
|
15209
|
-
### 1. Timing
|
|
15210
|
-
Start when **${PATHS.TODO} \u2265 80%** (some Workers still active).
|
|
15211
|
-
|
|
15212
|
-
### 2. Pre-integration Checklist
|
|
15213
|
-
Before running integration tests, all merged files must:
|
|
15214
|
-
- [ ] Have clean lsp_diagnostics
|
|
15215
|
-
- [ ] Have unit test passing records in ${PATHS.UNIT_TESTS}/
|
|
15216
|
-
- [ ] Be listed in ${PATHS.WORK_LOG} "Pending Integration"
|
|
15217
|
-
|
|
15218
|
-
### Integration Workflow
|
|
15219
|
-
|
|
15220
|
-
#### Step 1: Check ${PATHS.TODO} Status
|
|
15221
|
-
\`\`\`bash
|
|
15222
|
-
cat ${PATHS.TODO}
|
|
15223
|
-
# If incomplete items exist, wait for E2E
|
|
15224
|
-
\`\`\`
|
|
15225
|
-
|
|
15226
|
-
#### Step 2: Run Build (language-appropriate)
|
|
15227
|
-
\`\`\`bash
|
|
15228
|
-
# Run project build command
|
|
15229
|
-
# If failed, record in ${PATHS.SYNC_ISSUES}
|
|
15230
|
-
\`\`\`
|
|
15222
|
+
## E2E INTEGRATION TESTING (Master Mode)
|
|
15231
15223
|
|
|
15232
|
-
|
|
15233
|
-
|
|
15234
|
-
|
|
15235
|
-
|
|
15236
|
-
|
|
15237
|
-
|
|
15238
|
-
#### Step 4: Write E2E Integration Test (if needed)
|
|
15239
|
-
\`\`\`
|
|
15240
|
-
# Write integration test in appropriate format
|
|
15241
|
-
# Verify multiple files work together
|
|
15242
|
-
# Unlike isolated tests, DO NOT delete
|
|
15243
|
-
\`\`\`
|
|
15244
|
-
|
|
15245
|
-
#### Step 5: Record Results
|
|
15246
|
-
Write to ${PATHS.INTEGRATION_STATUS}:
|
|
15247
|
-
\`\`\`markdown
|
|
15248
|
-
# Integration Status
|
|
15224
|
+
### Step 1: Ingest Parallel Scout Findings
|
|
15225
|
+
Read the output of the **[${SCOUT_INTEGRATION.NAME}]** swarm. Locate:
|
|
15226
|
+
- Cross-module interface changes
|
|
15227
|
+
- Shared constant modifications
|
|
15228
|
+
- Potential synchronization bottlenecks
|
|
15249
15229
|
|
|
15250
|
-
|
|
15251
|
-
-
|
|
15230
|
+
### Step 2: Global Consistency Check
|
|
15231
|
+
- Do all modules agree on shared types?
|
|
15232
|
+
- Are imports/exports correctly synchronized across files?
|
|
15233
|
+
- Record results in ${PATHS.SYNC_ISSUES}
|
|
15252
15234
|
|
|
15253
|
-
|
|
15254
|
-
-
|
|
15255
|
-
-
|
|
15235
|
+
### Step 3: Global Build Verification
|
|
15236
|
+
- Run the project's BUILD command (from ${PATHS.CONTEXT})
|
|
15237
|
+
- Must pass without errors
|
|
15256
15238
|
|
|
15257
|
-
|
|
15258
|
-
- (
|
|
15259
|
-
|
|
15239
|
+
### Step 4: System-wide Test Verification
|
|
15240
|
+
- Run the project's TEST command (from ${PATHS.CONTEXT})
|
|
15241
|
+
- ALL tests must pass
|
|
15260
15242
|
|
|
15261
15243
|
---
|
|
15262
15244
|
|
|
15263
|
-
## Loop
|
|
15245
|
+
## Loop & Seal Logic (Reviewer Verdict)
|
|
15264
15246
|
|
|
15265
15247
|
### SEALED Conditions (all must be true)
|
|
15266
15248
|
- [ ] ${PATHS.TODO} all items [x]
|
|
15267
|
-
- [ ] ${PATHS.SYNC_ISSUES} is
|
|
15268
|
-
- [ ] Build
|
|
15269
|
-
- [ ] E2E test passes
|
|
15249
|
+
- [ ] ${PATHS.SYNC_ISSUES} is EMPTY
|
|
15250
|
+
- [ ] Build & System Tests pass
|
|
15270
15251
|
|
|
15271
15252
|
### LOOP BACK Conditions
|
|
15272
|
-
- ${PATHS.
|
|
15273
|
-
- ${PATHS.SYNC_ISSUES} has unresolved issues \u2192 LOOP
|
|
15274
|
-
- Build/test fails \u2192 record in ${PATHS.SYNC_ISSUES} \u2192 LOOP
|
|
15275
|
-
|
|
15253
|
+
- Missing items or unresolved issues \u2192 Record in ${PATHS.SYNC_ISSUES} \u2192 Trigger LOOP
|
|
15276
15254
|
|
|
15277
|
-
|
|
15278
|
-
- E2E only at ${PATHS.TODO} completion time!
|
|
15279
|
-
- Record build/test failures minimally in ${PATHS.SYNC_ISSUES}
|
|
15280
|
-
- Delete resolved issues, keep only unresolved
|
|
15281
|
-
- All ${PATHS.TODO} [x] + no issues = SEALED!
|
|
15255
|
+
**CRITICAL**: As Master Reviewer, you are the final authority. Use the parallel intelligence from scouts to ensure 100% mission integrity.
|
|
15282
15256
|
${PROMPT_TAGS.INTEGRATION_TESTING.close}`;
|
|
15283
15257
|
|
|
15284
15258
|
// src/agents/prompts/reviewer/sync-verification.ts
|
|
@@ -5,4 +5,4 @@ export { PROMPT_TAGS, wrapTag } from "./tags.js";
|
|
|
5
5
|
export { WORK_STATUS } from "./status.js";
|
|
6
6
|
export { PHILOSOPHY_PHASES, PHILOSOPHY_TAGLINE, PHILOSOPHY_QUOTE, PHILOSOPHY_LEARN_PRINCIPLE, EXECUTION_CYCLE, EXECUTION_CYCLE_STEPS, } from "./philosophy.js";
|
|
7
7
|
export { PHASE_0_SCOUT_SWARM, PHASE_1_THINK_ANALYSIS, PHASE_5_MSVP, HPFA_RULES } from "./mandates.js";
|
|
8
|
-
export { SCOUT_LABEL, SCOUT_STRUCTURE, SCOUT_STACK, SCOUT_DOCS, SCOUT_INFRA } from "./scouts.js";
|
|
8
|
+
export { SCOUT_LABEL, SCOUT_STRUCTURE, SCOUT_STACK, SCOUT_DOCS, SCOUT_INFRA, SCOUT_INTEGRATION } from "./scouts.js";
|
|
@@ -25,3 +25,8 @@ export declare const SCOUT_INFRA: {
|
|
|
25
25
|
readonly NAME: "Scout: Infra";
|
|
26
26
|
readonly PROMPT: "Detect infrastructure and environment configs. Search for Dockerfiles, CI/CD workflows (.github, .gitlab), and environment variable templates.";
|
|
27
27
|
};
|
|
28
|
+
export declare const SCOUT_INTEGRATION: {
|
|
29
|
+
readonly ID: "INTEGRATION";
|
|
30
|
+
readonly NAME: "Scout: Integration";
|
|
31
|
+
readonly PROMPT: "Read all modified files and their cross-module dependencies in parallel. Map the actual integration surface and identify potential consistency issues.";
|
|
32
|
+
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "opencode-orchestrator",
|
|
3
3
|
"displayName": "OpenCode Orchestrator",
|
|
4
4
|
"description": "Distributed Cognitive Architecture for OpenCode. Turns simple prompts into specialized multi-agent workflows (Planner, Coder, Reviewer).",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.22",
|
|
6
6
|
"author": "agnusdei1207",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|