You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sync iteration-025 latency fast paths (small-gate review skip, proportional review-lite, lead slim) (#16)
* feat: add small-gate review skip, proportional review-lite, and phase-0 telemetry
* fix: obfuscate private hostname fragment in leak scanner; drop stale SearXNG and Synology docs
* fix: bump browserslist to patched release for dependency-audit (GHSA-c83g-rgw3-j3cx, GHSA-73wf-gq98-2v4g)
---------
Co-authored-by: Juan Carlos Rodicio <jc.rodicio@lookiero.com>
Copy file name to clipboardExpand all lines: opencode/agents/lead.md
+40-13Lines changed: 40 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,11 @@ If you choose direct mode, invoke `developer` with:
102
102
- minimum acceptance criteria;
103
103
- expected validation.
104
104
105
+
If the small-gate in `docs/ai/harness/agents.md` also applies, delegate with its
106
+
condensed 6-field card (canonical example there) instead of a full Task
107
+
Contract, `handoff_packet`, and Result/Verification blocks; record
108
+
`review_skipped_reason` at closeout.
109
+
105
110
Do not mentally implement the solution before delegating. Any handoff to another
106
111
agent must be self-contained and include:
107
112
@@ -118,12 +123,9 @@ decision made, and relevant paths are enough.
118
123
119
124
## Skill Resolution
120
125
121
-
Before delegating non-trivial work to a subagent:
122
-
123
-
1. If `docs/ai/harness/skill_registry.md` exists, read it.
124
-
2. Filter skills allowed for the destination agent.
125
-
3. Select only skills relevant to the task, with a maximum of 0-3 per handoff.
126
-
4. Include a `Skill Resolution` block in the handoff prompt:
126
+
Before delegating non-trivial work, consult `docs/ai/harness/skill_registry.md`
127
+
only when it exists and is readable or there is an explicit match. Then select
128
+
0-3 skills and emit:
127
129
128
130
```
129
131
## Skill Resolution
@@ -134,8 +136,8 @@ Before delegating non-trivial work to a subagent:
134
136
- fallback_policy: if registry is missing, use global <available_skills>
135
137
```
136
138
137
-
5. Prefer fewer skills over filling slots.
138
-
6. If no skill clearly matches, select none.
139
+
If the registry is missing or no skill clearly matches, emit no block and no
140
+
dead path pointers. Prefer fewer skills over filling slots.
139
141
140
142
## Auto-Forecast
141
143
@@ -182,6 +184,17 @@ Examples:
182
184
183
185
Use the full phased flow only when there is real uncertainty, visual/product impact, technical decision-making, medium or large scope, or an explicit slash command.
184
186
187
+
## Fast router and phase model
188
+
189
+
Explicit precedence: fast router first. A small, well-routed free-form message
190
+
exits the phase model early under the SAME hard exclusions as the small-gate:
191
+
protected path, destructive diff, or medium/large with real uncertainty =>
192
+
phased flow with final review; slash-command flows => full model. Canonical
{"schema_version":1,"id":"freeform-tiny-copy-trivial","category":"trivial","prompt":"Change the Save button label to Save changes in a single HTML file and verify the diff.","command_path":"freeform","expected_root_agent":"lead","required_agents":["developer"],"forbidden_agents":["reviewer","evaluator","debugger","evolver"],"allowed_skills":[],"forbidden_skills":[],"write_before_spec_policy":"allowed","review_policy":"forbidden","expected_stop_condition":"task-completed","maximum_delegation_budget":1,"required_evidence":["static_contract"]}
2
+
{"schema_version":1,"id":"freeform-tiny-toy-single-file-full-pipeline","category":"trivial","prompt":"Create a single HTML file with a canvas animation of a Rubik cube and verify the diff.","command_path":"freeform","expected_root_agent":"lead","required_agents":["developer"],"forbidden_agents":["researcher","specifier","reviewer","evaluator","debugger","evolver"],"allowed_skills":[],"forbidden_skills":[],"write_before_spec_policy":"allowed","review_policy":"forbidden","expected_stop_condition":"task-completed","maximum_delegation_budget":1,"required_evidence":["static_contract"]}
0 commit comments