opencode-orchestrator 1.0.57 → 1.0.59

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.
Files changed (106) hide show
  1. package/README.md +37 -15
  2. package/dist/agents/definitions.d.ts +1 -0
  3. package/dist/agents/prompts/discovery/index.d.ts +3 -0
  4. package/dist/agents/prompts/execution/delegation.d.ts +1 -0
  5. package/dist/agents/prompts/execution/index.d.ts +9 -0
  6. package/dist/agents/prompts/index.d.ts +13 -7
  7. package/dist/agents/prompts/mission/index.d.ts +4 -0
  8. package/dist/agents/prompts/mission/seal-conditions.d.ts +1 -0
  9. package/dist/agents/prompts/mission/status-tracking.d.ts +1 -0
  10. package/dist/agents/prompts/philosophy/execution-assurance.d.ts +1 -0
  11. package/dist/agents/prompts/philosophy/index.d.ts +4 -0
  12. package/dist/agents/prompts/planning/decomposition.d.ts +1 -0
  13. package/dist/agents/prompts/planning/index.d.ts +8 -0
  14. package/dist/agents/prompts/roles/commander/index.d.ts +4 -0
  15. package/dist/agents/prompts/roles/master-reviewer/capabilities.d.ts +7 -0
  16. package/dist/agents/prompts/roles/master-reviewer/forbidden.d.ts +7 -0
  17. package/dist/agents/prompts/roles/master-reviewer/identity.d.ts +7 -0
  18. package/dist/agents/prompts/roles/master-reviewer/index.d.ts +8 -0
  19. package/dist/agents/prompts/roles/master-reviewer/seal-authority.d.ts +7 -0
  20. package/dist/agents/prompts/roles/master-reviewer/verification-process.d.ts +8 -0
  21. package/dist/agents/prompts/roles/planner/index.d.ts +3 -0
  22. package/dist/agents/prompts/roles/reviewer/forbidden.d.ts +7 -0
  23. package/dist/agents/prompts/roles/reviewer/identity.d.ts +7 -0
  24. package/dist/agents/prompts/roles/reviewer/index.d.ts +3 -0
  25. package/dist/agents/prompts/roles/worker/index.d.ts +3 -0
  26. package/dist/agents/prompts/tools/index.d.ts +5 -0
  27. package/dist/agents/prompts/tools/search.d.ts +1 -0
  28. package/dist/agents/prompts/verification/evidence.d.ts +1 -0
  29. package/dist/agents/prompts/verification/index.d.ts +7 -0
  30. package/dist/agents/prompts/verification/integration.d.ts +7 -0
  31. package/dist/agents/prompts/{reviewer/sync-verification.d.ts → verification/sync-check.d.ts} +2 -0
  32. package/dist/agents/subagents/master-reviewer.d.ts +14 -0
  33. package/dist/core/loop/verification.d.ts +62 -0
  34. package/dist/index.js +2698 -1905
  35. package/dist/shared/agent/constants/names.d.ts +1 -0
  36. package/dist/shared/constants/system-messages.d.ts +1 -1
  37. package/dist/shared/index.d.ts +1 -0
  38. package/dist/shared/prompt/constants/tags.d.ts +20 -0
  39. package/dist/shared/verification/constants/categories.d.ts +95 -0
  40. package/dist/shared/verification/constants/checklist.d.ts +16 -0
  41. package/dist/shared/verification/constants/index.d.ts +6 -0
  42. package/dist/shared/verification/constants/patterns.d.ts +19 -0
  43. package/dist/shared/verification/index.d.ts +8 -0
  44. package/dist/shared/verification/interfaces/checklist-item.d.ts +21 -0
  45. package/dist/shared/verification/interfaces/checklist-verification-result.d.ts +24 -0
  46. package/dist/shared/verification/interfaces/index.d.ts +7 -0
  47. package/dist/shared/verification/interfaces/verification-checklist.d.ts +19 -0
  48. package/dist/shared/verification/interfaces/verification-result.d.ts +29 -0
  49. package/dist/shared/verification/types/checklist-category.d.ts +18 -0
  50. package/dist/shared/verification/types/index.d.ts +4 -0
  51. package/dist/tools/callAgent.d.ts +2 -1
  52. package/package.json +1 -1
  53. package/dist/agents/prompts/commander/agents.d.ts +0 -4
  54. package/dist/agents/prompts/commander/index.d.ts +0 -15
  55. package/dist/agents/prompts/commander/tools.d.ts +0 -4
  56. package/dist/agents/prompts/common/index.d.ts +0 -17
  57. package/dist/agents/prompts/common/mission-seal.d.ts +0 -6
  58. package/dist/agents/prompts/planner/index.d.ts +0 -10
  59. package/dist/agents/prompts/reviewer/forbidden.d.ts +0 -7
  60. package/dist/agents/prompts/reviewer/index.d.ts +0 -13
  61. package/dist/agents/prompts/reviewer/integration-testing.d.ts +0 -7
  62. package/dist/agents/prompts/reviewer/output.d.ts +0 -4
  63. package/dist/agents/prompts/reviewer/role.d.ts +0 -6
  64. package/dist/agents/prompts/worker/index.d.ts +0 -12
  65. /package/dist/agents/prompts/{common/environment-discovery.d.ts → discovery/environment.d.ts} +0 -0
  66. /package/dist/agents/prompts/{common → discovery}/skills.d.ts +0 -0
  67. /package/dist/agents/prompts/{common/shared-workspace.d.ts → discovery/workspace.d.ts} +0 -0
  68. /package/dist/agents/prompts/{worker → execution}/file-assignment.d.ts +0 -0
  69. /package/dist/agents/prompts/{common → execution}/hyper-parallel.d.ts +0 -0
  70. /package/dist/agents/prompts/{worker/isolation-testing.d.ts → execution/isolation.d.ts} +0 -0
  71. /package/dist/agents/prompts/{commander → execution}/parallel.d.ts +0 -0
  72. /package/dist/agents/prompts/{worker → execution}/quality.d.ts +0 -0
  73. /package/dist/agents/prompts/{commander/execution.d.ts → execution/strategy.d.ts} +0 -0
  74. /package/dist/agents/prompts/{worker/tdd-workflow.d.ts → execution/tdd.d.ts} +0 -0
  75. /package/dist/agents/prompts/{worker → execution}/workflow.d.ts +0 -0
  76. /package/dist/agents/prompts/{commander → mission}/loop-continuation.d.ts +0 -0
  77. /package/dist/agents/prompts/{commander → mission}/recovery.d.ts +0 -0
  78. /package/dist/agents/prompts/{common → philosophy}/anti-hallucination.d.ts +0 -0
  79. /package/dist/agents/prompts/{common/core-philosophy.d.ts → philosophy/core.d.ts} +0 -0
  80. /package/dist/agents/prompts/{common → philosophy}/modularity.d.ts +0 -0
  81. /package/dist/agents/prompts/{planner → planning}/file-planning.d.ts +0 -0
  82. /package/dist/agents/prompts/{planner/todo-format.d.ts → planning/planner-todo.d.ts} +0 -0
  83. /package/dist/agents/prompts/{planner → planning}/research.d.ts +0 -0
  84. /package/dist/agents/prompts/{reviewer/todo-update.d.ts → planning/reviewer-todo-update.d.ts} +0 -0
  85. /package/dist/agents/prompts/{commander → planning}/todo-format.d.ts +0 -0
  86. /package/dist/agents/prompts/{common → planning}/todo-rules.d.ts +0 -0
  87. /package/dist/agents/prompts/{planner → planning}/todo-sync.d.ts +0 -0
  88. /package/dist/agents/prompts/{commander → roles/commander}/forbidden.d.ts +0 -0
  89. /package/dist/agents/prompts/{commander → roles/commander}/identity.d.ts +0 -0
  90. /package/dist/agents/prompts/{commander → roles/commander}/required.d.ts +0 -0
  91. /package/dist/agents/prompts/{commander → roles/commander}/role.d.ts +0 -0
  92. /package/dist/agents/prompts/{planner → roles/planner}/forbidden.d.ts +0 -0
  93. /package/dist/agents/prompts/{planner/role.d.ts → roles/planner/identity.d.ts} +0 -0
  94. /package/dist/agents/prompts/{planner → roles/planner}/required.d.ts +0 -0
  95. /package/dist/agents/prompts/{reviewer → roles/reviewer}/required.d.ts +0 -0
  96. /package/dist/agents/prompts/{worker → roles/worker}/forbidden.d.ts +0 -0
  97. /package/dist/agents/prompts/{worker/role.d.ts → roles/worker/identity.d.ts} +0 -0
  98. /package/dist/agents/prompts/{worker → roles/worker}/required.d.ts +0 -0
  99. /package/dist/agents/prompts/{common → tools}/ast.d.ts +0 -0
  100. /package/dist/agents/prompts/{common → tools}/lsp.d.ts +0 -0
  101. /package/dist/agents/prompts/{reviewer/lsp-tools.d.ts → tools/reviewer-lsp.d.ts} +0 -0
  102. /package/dist/agents/prompts/{worker/lsp-tools.d.ts → tools/worker-lsp.d.ts} +0 -0
  103. /package/dist/agents/prompts/{reviewer → verification}/async-monitoring.d.ts +0 -0
  104. /package/dist/agents/prompts/{common/verification.d.ts → verification/process.d.ts} +0 -0
  105. /package/dist/agents/prompts/{reviewer/verification.d.ts → verification/reviewer-process.d.ts} +0 -0
  106. /package/dist/agents/prompts/{commander → verification}/sync-handling.d.ts +0 -0
package/README.md CHANGED
@@ -18,7 +18,6 @@
18
18
  npm install -g opencode-orchestrator
19
19
  ```
20
20
 
21
-
22
21
  In an OpenCode environment:
23
22
  ```bash
24
23
  /task "Implement"
@@ -43,7 +42,7 @@ This philosophy extends to efficiency. We achieved **Zero-Configuration** usabil
43
42
  ```text
44
43
  [ User Task Input ]
45
44
 
46
- ┌───────────▼───────────┐ <────────────────────────────────────────┐
45
+ ┌───────────▼───────────┐ ◄────────────────────────────────────────┐
47
46
  │ 🫡 COMMANDER (Hub) │ (Orchestration) │
48
47
  └───────────┬───────────┘ │
49
48
  │ │
@@ -64,31 +63,41 @@ This philosophy extends to efficiency. We achieved **Zero-Configuration** usabil
64
63
  ╚══════╤═══════════╤═══════════╤══════╝ │
65
64
  │ │ │ │
66
65
  ┌──────▼───┐ ┌─────▼────┐ ┌────▼─────┐ │
67
- │🔍REVIEWER│ │🔍REVIEWER│ │🔍REVIEWER│
66
+ │🔍REVIEWER│ │🔍REVIEWER│ │🔍REVIEWER│ (Module-level)
68
67
  └──────┬───┘ └─────┬────┘ └────┬─────┘ │
69
68
  │ │ │ │
70
69
  ═▼═══════════▼═══════════▼═ │
71
- │ 🚦 SYNC BARRIER │
70
+ │ 🚦 SYNC BARRIER │
72
71
  ═════════════╤═════════════ │
73
72
  │ │
74
73
  ┌───────────▼───────────┐ │
75
- ✔️ MASTER REVIEWER │ (E2E Verification)
74
+ 🎖️ MASTER REVIEWER │ (Final Verification Authority)
75
+ │ ┌─────────────────┐ │ │
76
+ │ │ [x] Build Pass │ │ │
77
+ │ │ [x] Tests Pass │ │ │
78
+ │ │ [x] E2E Pass │ │ │
79
+ │ │ [x] Sync OK │ │ │
80
+ │ └─────────────────┘ │ │
76
81
  └───────────┬───────────┘ │
77
82
  │ │
78
83
  __________▼_________ │
79
- ╱ ╲ NO (Loop / Auto-Correction)
80
- ╱ ✅ All TODOs? ╲ ──────────────────────────────────────────┘
81
- ╲ 🛡️ Error Rate 0%?
84
+ ╱ ╲ NO (Failure Summary → Commander)
85
+ ╱ ✅ All Checks Pass ╲ ──────────────────────────────────────────┘
86
+ ╲ 🛡️ Sync Issues 0? (Infinite Loopback Until Resolved)
82
87
  ╲____________________╱
83
88
  │ YES
84
89
 
85
90
  [ 🎖️ MISSION SEALED ]
91
+
92
+ ┌───────────▼───────────┐
93
+ │ 🔔 OS Notification │
94
+ │ 🎵 Success Sound │
95
+ └───────────────────────┘
86
96
  ```
87
97
 
88
-
89
98
  ---
90
99
 
91
- ## 🧠 Cognitive Architecture & Key Strengths
100
+ ## Cognitive Architecture & Key Strengths
92
101
 
93
102
  ### 📉 Adaptive Context Gating (EMA-based)
94
103
  We combat "Context Drift" using a mechanism derived from **Exponential Moving Average (EMA)** algorithms. Irrelevant conversation noise follows a rapid decay curve, while critical architectural decisions are reinforced into **Stable Core Memory**. This functions as an **Attention Sink**, allowing agents to work indefinitely without **Catastrophic Forgetting**.
@@ -107,11 +116,22 @@ Pure LLM approaches are stochastic. We bind them with a **Neuro-Symbolic Archite
107
116
  The engine features an **Intelligent Load-Balancing System** that fluidly switches between synchronous barriers and asynchronous **Fork-Join** patterns. It monitors **System Backpressure** to dynamically adjust concurrency slots in real-time (`Adaptive Throttling`), maximizing throughput on high-end hardware while maintaining stability on constrained environments.
108
117
 
109
118
  ### 🎯 Iterative Rejection Sampling (Zero-Shot Defense)
110
- We employ a **Rejection Sampling Loop** driven by the Reviewer Agent (**Reward Model**). Through the **Metric-based Strict Verification Protocol (MSVP)**, code paths that fail execution tests are pruned. The system iterates until the solution converges on a mathematically correct state (0% Error Rate), rejecting any solution that lacks evidence.
119
+ We employ a **Rejection Sampling Loop** driven by the Master Reviewer Agent (**Final Reward Model**). Through the **Metric-based Strict Verification Protocol (MSVP)**, code paths that fail execution tests are pruned. The system iterates until the solution converges on a mathematically correct state (0% Error Rate), rejecting any solution that lacks evidence.
111
120
 
112
121
  ### 🧩 Externalized Chain-of-Thought (CoT)
113
122
  The Planner's `TODO.md` serves as an **Externalized Working Memory** (Scratchpad). This persistent **Symbolic Chain-of-Thought** decouples detailed planning from the LLM's immediate context window, enabling the orchestration of massive, multi-step engineering tasks without logical degradation.
114
123
 
124
+ ### 🔄 Hierarchical Verification Pipeline (MVP)
125
+ The system employs a **Multi-Stage Verification Pipeline**:
126
+ 1. **Module-Level**: Reviewers verify individual Worker outputs (unit tests, type checks)
127
+ 2. **System-Level**: Master Reviewer performs comprehensive E2E verification
128
+ 3. **Loopback**: Failed checks trigger automatic re-planning and correction cycles
129
+
130
+ This separation of concerns ensures both granular code quality and holistic system integrity.
131
+
132
+ ### 🌍 Environment-Agnostic Verification
133
+ The Master Reviewer **auto-detects** project environments (Node.js, Rust, Python, Java, Go, C/C++, Docker, etc.) and adapts verification strategies accordingly. No hardcoded assumptions—true polyglot support.
134
+
115
135
  ---
116
136
 
117
137
  ## ⚡ Agents
@@ -119,9 +139,10 @@ The Planner's `TODO.md` serves as an **Externalized Working Memory** (Scratchpad
119
139
  | Agent | Role |
120
140
  |:------|:-----|
121
141
  | **Commander** | Orchestrates the mission, manages parallel threads and sync barriers |
122
- | **Planner** | Architecture architect. Breaks downtasks into strictly defined steps |
142
+ | **Planner** | Architecture architect. Breaks down tasks into strictly defined steps |
123
143
  | **Worker** | The builder. Writes code and corresponding unit tests |
124
- | **Reviewer** | The gatekeeper. Rejects any code that doesn't pass execution verification |
144
+ | **Reviewer** | Module-level gatekeeper. Verifies Worker outputs with build/test execution |
145
+ | **Master Reviewer** | 🎖️ Final verification authority. Runs comprehensive E2E tests and holds **exclusive SEAL rights** |
125
146
 
126
147
  ---
127
148
 
@@ -131,10 +152,11 @@ The Planner's `TODO.md` serves as an **Externalized Working Memory** (Scratchpad
131
152
 
132
153
  [System Architecture →](docs/SYSTEM_ARCHITECTURE.md)
133
154
 
134
- [Architectural Verification Report →](docs/ARCHITECTURAL_VERIFICATION_REPORT.md)
135
-
136
155
  ---
137
156
 
138
157
  ## 📄 License
139
158
 
140
159
  MIT License. See [LICENSE](LICENSE) for details.
160
+
161
+
162
+
@@ -6,6 +6,7 @@
6
6
  * - Planner: Planning + Research
7
7
  * - Worker: Implementation + Documentation
8
8
  * - Reviewer: Verification + Context Management
9
+ * - Master Reviewer: Final verification authority (SEAL rights)
9
10
  */
10
11
  import type { AgentDefinition } from "../shared/agent/interfaces/index.js";
11
12
  export declare const AGENTS: Record<string, AgentDefinition>;
@@ -0,0 +1,3 @@
1
+ export * from "./environment.js";
2
+ export * from "./workspace.js";
3
+ export * from "./skills.js";
@@ -0,0 +1 @@
1
+ export declare const DELEGATION_RULES: string;
@@ -0,0 +1,9 @@
1
+ export * from "./parallel.js";
2
+ export * from "./delegation.js";
3
+ export * from "./file-assignment.js";
4
+ export * from "./workflow.js";
5
+ export * from "./hyper-parallel.js";
6
+ export * from "./tdd.js";
7
+ export * from "./isolation.js";
8
+ export * from "./strategy.js";
9
+ export * from "./quality.js";
@@ -1,11 +1,17 @@
1
1
  /**
2
2
  * Agent Prompts - Index
3
3
  *
4
- * Exports all modular prompt fragments.
5
- * Structure: 1 folder per agent/category, 1 file per const
4
+ * Exports all modular prompt fragments from the new structure.
6
5
  */
7
- export * from "./common/index.js";
8
- export * from "./commander/index.js";
9
- export * from "./planner/index.js";
10
- export * from "./worker/index.js";
11
- export * from "./reviewer/index.js";
6
+ export * from "./philosophy/index.js";
7
+ export * from "./mission/index.js";
8
+ export * from "./verification/index.js";
9
+ export * from "./planning/index.js";
10
+ export * from "./execution/index.js";
11
+ export * from "./discovery/index.js";
12
+ export * from "./tools/index.js";
13
+ export * from "./roles/commander/index.js";
14
+ export * from "./roles/planner/index.js";
15
+ export * from "./roles/worker/index.js";
16
+ export * from "./roles/reviewer/index.js";
17
+ export * from "./roles/master-reviewer/index.js";
@@ -0,0 +1,4 @@
1
+ export * from "./seal-conditions.js";
2
+ export * from "./loop-continuation.js";
3
+ export * from "./status-tracking.js";
4
+ export * from "./recovery.js";
@@ -0,0 +1 @@
1
+ export declare const SEAL_CONDITIONS: string;
@@ -0,0 +1 @@
1
+ export declare const MISSION_STATUS_FORMAT: string;
@@ -0,0 +1 @@
1
+ export declare const EXECUTION_ASSURANCE = "<execution_assurance>\n## L0-L7 Execution Assurance Levels\n\n| Level | Scope | Requirement |\n|-------|-------|-------------|\n| **L0** | Syntax | Valid code, no parse errors |\n| **L1** | Static | Linting passes, Types check |\n| **L2** | Unit | Individual functions/classes tested |\n| **L3** | Module | Component integration works |\n| **L4** | Build | Project compiles/bundles successfully |\n| **L5** | Integration | Cross-module/System APIs work |\n| **L6** | E2E | Full flow works from user perspective |\n| **L7** | Verification | Mission requirements met (SEALED) |\n\n**Rule:** You must achieve the highest possible Level for the current task.\n- Never settle for L0/L1 if L2+ is possible.\n- L4 (Build) is a GATEKEEPER. If build fails, nothing else matters.\n</execution_assurance>";
@@ -0,0 +1,4 @@
1
+ export * from "./core.js";
2
+ export * from "./execution-assurance.js";
3
+ export * from "./anti-hallucination.js";
4
+ export * from "./modularity.js";
@@ -0,0 +1 @@
1
+ export declare const TASK_DECOMPOSITION = "<decomposition_rules>\n## Task Decomposition Rules\n\nWhen a task is too large or complex:\n1. **Break it down** into atomic steps (max 1 file or 1 logical unit per step).\n2. **Update TODO**: Replace the large task with subtasks T[N.1], T[N.2], etc.\n3. **Verify Atomic Success**: Each subtask must be verifiable independently (L2+).\n\nIf stuck:\n- Do not retry the same failing action more than twice.\n- Decompose the problem into smaller investigation steps.\n- Create a specific \"Research\" task to find the root cause.\n</decomposition_rules>";
@@ -0,0 +1,8 @@
1
+ export * from "./todo-format.js";
2
+ export * from "./todo-rules.js";
3
+ export * from "./file-planning.js";
4
+ export * from "./decomposition.js";
5
+ export * from "./todo-sync.js";
6
+ export * from "./reviewer-todo-update.js";
7
+ export * from "./research.js";
8
+ export * from "./planner-todo.js";
@@ -0,0 +1,4 @@
1
+ export * from "./identity.js";
2
+ export * from "./forbidden.js";
3
+ export * from "./required.js";
4
+ export * from "./role.js";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Master Reviewer Capabilities
3
+ *
4
+ * What the Master Reviewer IS ALLOWED to do.
5
+ * Environment-agnostic, flexible for any project type.
6
+ */
7
+ export declare const MASTER_REVIEWER_CAPABILITIES: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Master Reviewer Forbidden Actions
3
+ *
4
+ * Actions that the Master Reviewer must NEVER do.
5
+ * For allowed actions, see capabilities.ts
6
+ */
7
+ export declare const MASTER_REVIEWER_FORBIDDEN: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Master Reviewer Role Identity
3
+ *
4
+ * The Master Reviewer is the FINAL GATE before mission completion.
5
+ * Only the Master Reviewer can authorize SEAL.
6
+ */
7
+ export declare const MASTER_REVIEWER_ROLE: string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Master Reviewer Prompts Index
3
+ */
4
+ export { MASTER_REVIEWER_ROLE } from "./identity.js";
5
+ export { MASTER_REVIEWER_VERIFICATION_PROCESS } from "./verification-process.js";
6
+ export { MASTER_REVIEWER_SEAL_AUTHORITY } from "./seal-authority.js";
7
+ export { MASTER_REVIEWER_FORBIDDEN } from "./forbidden.js";
8
+ export { MASTER_REVIEWER_CAPABILITIES } from "./capabilities.js";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Master Reviewer Seal Authority
3
+ *
4
+ * The decision protocol for when to SEAL or return failure.
5
+ * Emphasizes the infinite loop until all problems are resolved.
6
+ */
7
+ export declare const MASTER_REVIEWER_SEAL_AUTHORITY: string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Master Reviewer Verification Process
3
+ *
4
+ * Environment-agnostic comprehensive verification workflow.
5
+ * Works for ANY project type: Node, Rust, Java, Python, C/C++, Go,
6
+ * containers, kernel development, AI/ML, embedded systems, etc.
7
+ */
8
+ export declare const MASTER_REVIEWER_VERIFICATION_PROCESS: string;
@@ -0,0 +1,3 @@
1
+ export * from "./identity.js";
2
+ export * from "./forbidden.js";
3
+ export * from "./required.js";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Reviewer Forbidden Actions
3
+ *
4
+ * Module-level verification only.
5
+ * Reviewer is a TERMINAL node and cannot spawn other agents or output SEAL.
6
+ */
7
+ export declare const REVIEWER_FORBIDDEN: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Reviewer Role
3
+ *
4
+ * Module-level verification specialist.
5
+ * Verifies individual Worker tasks, NOT final mission completion.
6
+ */
7
+ export declare const REVIEWER_ROLE: string;
@@ -0,0 +1,3 @@
1
+ export * from "./identity.js";
2
+ export * from "./forbidden.js";
3
+ export * from "./required.js";
@@ -0,0 +1,3 @@
1
+ export * from "./identity.js";
2
+ export * from "./forbidden.js";
3
+ export * from "./required.js";
@@ -0,0 +1,5 @@
1
+ export * from "./lsp.js";
2
+ export * from "./ast.js";
3
+ export * from "./search.js";
4
+ export * from "./reviewer-lsp.js";
5
+ export * from "./worker-lsp.js";
@@ -0,0 +1 @@
1
+ export declare const SEARCH_TOOLS: string;
@@ -0,0 +1 @@
1
+ export declare const EVIDENCE_FORMAT: string;
@@ -0,0 +1,7 @@
1
+ export * from "./process.js";
2
+ export * from "./integration.js";
3
+ export * from "./sync-check.js";
4
+ export * from "./sync-handling.js";
5
+ export * from "./evidence.js";
6
+ export * from "./async-monitoring.js";
7
+ export * from "./reviewer-process.js";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Reviewer Integration Testing
3
+ *
4
+ * Individual file/module integration checks.
5
+ * Full E2E and final verification is handled by Master Reviewer.
6
+ */
7
+ export declare const REVIEWER_INTEGRATION_TESTING: string;
@@ -2,5 +2,7 @@
2
2
  * Reviewer Sync Verification
3
3
  *
4
4
  * Verify file synchronization and report issues for next iteration.
5
+ * Note: Final SEAL is handled by Master Reviewer, not Reviewer.
6
+ * Environment-agnostic - works for any project type.
5
7
  */
6
8
  export declare const REVIEWER_SYNC_VERIFICATION: string;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Master Reviewer Agent (Subagent)
3
+ *
4
+ * FINAL VERIFICATION AUTHORITY - Only agent that can authorize SEAL.
5
+ * Runs comprehensive verification before mission completion.
6
+ *
7
+ * Responsibilities:
8
+ * - Create and execute verification checklist
9
+ * - Run all verification checks (build, test, e2e, environment)
10
+ * - Mark checklist items with evidence
11
+ * - Output SEAL or return failure summary to Commander
12
+ */
13
+ import type { AgentDefinition } from "../../shared/agent/interfaces/index.js";
14
+ export declare const masterReviewer: AgentDefinition;
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Verification Checklist Module
3
+ *
4
+ * Provides a structured checklist system for mission completion verification.
5
+ *
6
+ * The LLM creates and checks items in .opencode/verification-checklist.md
7
+ * The hook system verifies all items are checked before allowing SEAL.
8
+ *
9
+ * This approach:
10
+ * 1. LLM discovers environment and creates appropriate checklist items
11
+ * 2. LLM executes and marks items as complete
12
+ * 3. Hook verifies all items are checked (hard gate)
13
+ */
14
+ import { type ChecklistCategory, type ChecklistItem, type ChecklistVerificationResult, type VerificationResult } from "../../shared/index.js";
15
+ export type { ChecklistItem, ChecklistCategory, ChecklistVerificationResult, VerificationResult };
16
+ /** Path to the verification checklist file (re-export for convenience) */
17
+ export declare const CHECKLIST_FILE: ".opencode/verification-checklist.md";
18
+ /**
19
+ * Parse checklist from markdown content
20
+ */
21
+ export declare function parseChecklist(content: string): ChecklistItem[];
22
+ /**
23
+ * Read checklist from file
24
+ */
25
+ export declare function readChecklist(directory: string): ChecklistItem[];
26
+ /**
27
+ * Verify that all checklist items are complete
28
+ */
29
+ export declare function verifyChecklist(directory: string): ChecklistVerificationResult;
30
+ /**
31
+ * Quick check if checklist exists and has items
32
+ */
33
+ export declare function hasValidChecklist(directory: string): boolean;
34
+ /**
35
+ * Get checklist summary for display
36
+ */
37
+ export declare function getChecklistSummary(directory: string): string;
38
+ /**
39
+ * Build prompt for when checklist verification fails
40
+ */
41
+ export declare function buildChecklistFailurePrompt(result: ChecklistVerificationResult): string;
42
+ /**
43
+ * Build checklist creation prompt (for inclusion in agent prompts)
44
+ */
45
+ export declare function getChecklistCreationInstructions(): string;
46
+ /**
47
+ * Verify mission completion conditions
48
+ *
49
+ * Checks (in order):
50
+ * 1. Verification checklist (primary - if exists)
51
+ * 2. TODO completion rate (fallback)
52
+ * 3. Sync issues (always checked)
53
+ */
54
+ export declare function verifyMissionCompletion(directory: string): VerificationResult;
55
+ /**
56
+ * Build prompt for when SEAL is rejected due to verification failure
57
+ */
58
+ export declare function buildVerificationFailurePrompt(result: VerificationResult): string;
59
+ /**
60
+ * Build a concise status summary for logs
61
+ */
62
+ export declare function buildVerificationSummary(result: VerificationResult): string;