opencode-agent-skill 13.0.0-beta.2 → 14.4.0

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 (102) hide show
  1. package/README.md +1571 -607
  2. package/bin/ocskill.mjs +172 -24
  3. package/docs/OPENCODE-COMPAT.md +34 -97
  4. package/docs/PI-COMPAT.md +203 -0
  5. package/docs/V14-CONTEXT-MEMORY-FABRIC.md +70 -0
  6. package/docs/V14.1-QUALITY-PERFORMANCE-FABRIC.md +114 -0
  7. package/docs/V14.2-TURBO-WEAK-MODEL-RUNTIME.md +448 -0
  8. package/evals/v14/tasks.json +46 -0
  9. package/global-config/agents/executor.md +7 -0
  10. package/global-config/agents/visual-verifier.md +22 -3
  11. package/global-config/plugins/ues-router/index.js +13 -8
  12. package/global-config/plugins/ues-router/policy-runtime.js +7 -0
  13. package/global-config/plugins/ues-router/router.js +12 -2
  14. package/global-config/skills/ecommerce-engineering/SKILL.md +1 -1
  15. package/global-config/skills/file-upload-engineering/SKILL.md +1 -1
  16. package/global-config/skills/git-safety/SKILL.md +1 -1
  17. package/global-config/skills/nestjs-engineering/SKILL.md +1 -1
  18. package/global-config/skills/performance-engineering/SKILL.md +1 -1
  19. package/global-config/skills/react-native-engineering/SKILL.md +1 -1
  20. package/global-config/skills/rest-api-design/SKILL.md +1 -1
  21. package/global-config/skills/ui-ux-engineering/SKILL.md +1 -1
  22. package/lib/adaptive-context-budget.mjs +97 -0
  23. package/lib/affected-tests.mjs +260 -0
  24. package/lib/benchmark-confidence.mjs +41 -2
  25. package/lib/browser-mcp-routing.mjs +166 -0
  26. package/lib/capability-fabric.mjs +359 -0
  27. package/lib/capability-registry.mjs +9 -0
  28. package/lib/code-intelligence/edit-anchor.mjs +102 -0
  29. package/lib/code-intelligence/index.mjs +95 -0
  30. package/lib/code-intelligence/lsp-provider.mjs +189 -0
  31. package/lib/completion-auditor.mjs +82 -0
  32. package/lib/context-engine-v11.mjs +65 -1
  33. package/lib/context-graph-rank.mjs +118 -0
  34. package/lib/context-manifest.mjs +97 -18
  35. package/lib/control-center.mjs +19 -1
  36. package/lib/document-ingestion.mjs +60 -0
  37. package/lib/dynamic-workflow.mjs +3 -1
  38. package/lib/evidence-store.mjs +82 -1
  39. package/lib/fast-verification-gate.mjs +69 -0
  40. package/lib/hierarchical-context.mjs +215 -0
  41. package/lib/mcp-health.mjs +144 -0
  42. package/lib/mcp-tool-policy.mjs +19 -0
  43. package/lib/memory-engine.mjs +493 -0
  44. package/lib/model-performance.mjs +33 -8
  45. package/lib/model-policy.mjs +3 -3
  46. package/lib/orchestrator-policy.mjs +5 -209
  47. package/lib/performance-fabric.mjs +229 -0
  48. package/lib/pi-rpc-pool.mjs +433 -0
  49. package/lib/process-hang-detector.mjs +83 -0
  50. package/lib/process-supervisor.mjs +193 -0
  51. package/lib/prompt-cache.mjs +27 -11
  52. package/lib/repo-graph.mjs +53 -2
  53. package/lib/reversible-context.mjs +49 -0
  54. package/lib/runtime-config.mjs +31 -0
  55. package/lib/safety.mjs +132 -0
  56. package/lib/semantic-index.mjs +52 -3
  57. package/lib/skill-compiler.mjs +128 -0
  58. package/lib/skill-quality.mjs +48 -2
  59. package/lib/task-engine.mjs +62 -5
  60. package/lib/task-policy.mjs +291 -0
  61. package/lib/verification-broker.mjs +284 -0
  62. package/lib/verification-command.mjs +111 -0
  63. package/lib/windows-shim.mjs +35 -0
  64. package/lib/workspace-fingerprint.mjs +198 -0
  65. package/package.json +52 -42
  66. package/pi/extensions/ues-child-runtime.ts +393 -0
  67. package/pi/extensions/ues.ts +3327 -0
  68. package/pi/prompts/ues-audit.md +9 -0
  69. package/pi/prompts/ues-critique.md +9 -0
  70. package/pi/prompts/ues-debug.md +9 -0
  71. package/pi/prompts/ues-feature.md +9 -0
  72. package/pi/prompts/ues-fix.md +9 -0
  73. package/pi/prompts/ues-plan.md +9 -0
  74. package/pi/prompts/ues-research.md +9 -0
  75. package/pi/prompts/ues-resume.md +9 -0
  76. package/pi/prompts/ues-review.md +7 -0
  77. package/pi/prompts/ues-run.md +17 -0
  78. package/pi/prompts/ues-verify.md +9 -0
  79. package/scripts/check-release-consistency.mjs +119 -185
  80. package/scripts/check-runtime-exports.mjs +66 -0
  81. package/scripts/check-source-integrity.mjs +246 -0
  82. package/scripts/eval-pi.mjs +492 -0
  83. package/scripts/install.mjs +16 -0
  84. package/scripts/smoke-package-closure.mjs +110 -0
  85. package/scripts/smoke-packed-install.mjs +24 -11
  86. package/scripts/smoke-pi-extension.mjs +144 -0
  87. package/scripts/uninstall.mjs +44 -0
  88. package/CHANGELOG.md +0 -415
  89. package/docs/DETERMINISTIC-TOOLS.md +0 -105
  90. package/docs/ENGINEERING-DESIGN.md +0 -194
  91. package/docs/EVALS.md +0 -158
  92. package/docs/GITHUB-RULESET.md +0 -50
  93. package/docs/NPM-PUBLISH.md +0 -116
  94. package/docs/RESEARCH-SOURCES.md +0 -37
  95. package/docs/TRACE-SCHEMA.md +0 -122
  96. package/docs/V11-PERCEPTION-ADAPTIVE-EXECUTION.md +0 -75
  97. package/docs/V11-PERCEPTION-ADAPTIVE.md +0 -220
  98. package/docs/V12-WEAK-MODEL-INTELLIGENCE.md +0 -27
  99. package/docs/V13-PARALLEL-WEAK-MODEL-RUNTIME.md +0 -86
  100. package/docs/V7-INTELLIGENCE-RUNTIME.md +0 -166
  101. package/docs/V8-INTELLIGENCE-RELIABILITY.md +0 -206
  102. package/docs/V9-SPEED-INTELLIGENCE.md +0 -102
@@ -1,122 +0,0 @@
1
- # UES evaluation trace schema
2
-
3
- Live evaluations write machine-readable JSON under `.ues-evals/`.
4
-
5
- Each result item contains:
6
-
7
- - `task`
8
- - `mode`: `baseline` or `ues`
9
- - `model` and optional `variant`
10
- - `trial`
11
- - `passed`
12
- - `agentExit` and `graderExit`
13
- - `durationMs`
14
- - `authMode`: `env-only` or `current`
15
- - `changedFiles`: added/removed/modified workspace paths
16
- - bounded agent/grader stdout and stderr
17
- - optional kept workspace path when `--keep` is used
18
- - timestamp
19
-
20
- ## Telemetry
21
-
22
- `telemetry` currently has schema version 1:
23
-
24
- ```json
25
- {
26
- "schemaVersion": 1,
27
- "format": "best-effort-opencode-jsonl",
28
- "jsonLines": 42,
29
- "parseErrors": 0,
30
- "toolCalls": 12,
31
- "tools": {
32
- "bash": 4,
33
- "read": 5,
34
- "skill": 2,
35
- "subagent": 1
36
- },
37
- "skillsLoaded": ["ues-bug-diagnosis"],
38
- "subagents": ["ues-verifier"],
39
- "tokens": {
40
- "input": 12000,
41
- "output": 2200,
42
- "total": 14200
43
- },
44
- "cost": 0.18
45
- }
46
- ```
47
-
48
- OpenCode JSON event shapes can evolve, so telemetry extraction is best-effort. Hidden-grader correctness and process exit status remain the primary benchmark evidence.
49
-
50
- The trace intentionally does not collect or score hidden chain-of-thought.
51
-
52
- ## Run summary
53
-
54
- Each result file also contains:
55
- - suite version
56
- - auth mode
57
- - selected model/variant
58
- - trial count
59
- - optional task filter
60
- - modes executed
61
- - pass counts and pass rates per mode
62
-
63
- Use `ocskill eval-report` or `npm run evals:report -- <paths>` to aggregate multiple result files.
64
-
65
- ## Fair comparisons
66
-
67
- Keep constant:
68
- - model and variant
69
- - task fixture
70
- - prompt
71
- - grader
72
- - runtime/provider environment
73
- - trial count when possible
74
-
75
- Compare observable success, regressions, elapsed time, tool behavior and cost rather than narrative confidence.
76
-
77
-
78
- ## V11 runtime and evidence fields
79
-
80
- Each live result may additionally contain:
81
-
82
- - `timedOut`
83
- - `idleTimedOut`
84
- - `aborted`
85
- - detected `opencodeVersion` / `opencodeMajor`
86
- - configured heartbeat/hard/idle timeout values
87
- - long-suite receipt coverage inside orchestration inspection
88
-
89
- Long-task `EVIDENCE.json` schema 3 may contain `receipts` and `gateReceipts` arrays. Command receipt fields include:
90
-
91
- ```json
92
- {
93
- "schemaVersion": 1,
94
- "id": "uuid",
95
- "task": "T1",
96
- "runId": "attempt-uuid",
97
- "command": "npm",
98
- "args": ["test"],
99
- "exitCode": 0,
100
- "passed": true,
101
- "durationMs": 1234,
102
- "stdoutSha256": "...",
103
- "stderrSha256": "...",
104
- "workspaceBefore": "...",
105
- "workspaceAfter": "..."
106
- }
107
- ```
108
-
109
- Full stdout/stderr are not stored in receipts; hashes provide binding without persisting potentially sensitive logs.
110
-
111
-
112
- ### Structured gate receipts
113
-
114
- Strict plan/integration gates use receipt schema version 1. A plan receipt includes the exact `planHash`; an integration receipt includes the exact `workspaceFingerprint`. Both include verifier identity, optional session/run IDs, evidence text and an optional report hash.
115
-
116
- ### Runtime event journal
117
-
118
- Each long work item may include `EVENTS.jsonl`. Every line is an independent JSON event with schema version, UUID, event type, timestamp and task/work metadata. It records operational events only and never hidden chain-of-thought.
119
-
120
- ### Benchmark matrix summary
121
-
122
- `scripts/eval-matrix.mjs` writes a matrix summary containing selected suites/model/trials, expected runs per mode, actual baseline/UES counts, coverage completeness and aggregated pass-rate statistics.
@@ -1,75 +0,0 @@
1
- # V11 Perception & Adaptive Execution
2
-
3
- ## Goal
4
-
5
- V11 minimizes context and model cost without deleting evidence needed for correctness. It adds perception-aware UI/browser verification so the system can reason about **what an element is, where it is and how it looks** using different evidence channels.
6
-
7
- ## Runtime layers
8
-
9
- ```text
10
- Task
11
- -> intent/risk
12
- -> capability requirements
13
- -> adaptive evidence budget
14
- -> semantic/index evidence
15
- -> content-addressed evidence pointers
16
- -> focused skills
17
- -> capability-aware model
18
- -> fresh executor
19
- -> deterministic verification
20
- -> visual/browser verifier when required
21
- -> diagnosis + evidence expansion only on failure
22
- ```
23
-
24
- ## Evidence Store
25
-
26
- Large raw tool output, durable specs and dependency reports are stored under:
27
-
28
- ```text
29
- .ues-cache/evidence-v1/<hash-prefix>/<sha256>.blob
30
- .ues-cache/evidence-v1/<hash-prefix>/<sha256>.json
31
- ```
32
-
33
- A prompt receives a bounded excerpt and a reference such as `evidence:sha256:<hash>`. Use `ocskill store get` to retrieve only the needed slice. `.ues-cache` is runtime state and is excluded from workspace verification fingerprints.
34
-
35
- ## Adaptive evidence budget
36
-
37
- FAST/STANDARD/DEEP remain outer safety ceilings. Inside that ceiling V11 allocates characters by evidence role instead of treating all context as equally valuable. Debugging shifts budget toward tests/history; high-risk work shifts toward tests/references; browser/visual work shifts toward deterministic tool evidence.
38
-
39
- Failure expands evidence through the existing initial -> diagnose -> deep-recovery stages instead of loading maximum context on the first attempt.
40
-
41
- ## Prompt cache shape
42
-
43
- Stable material is separated conceptually from dynamic task/evidence. The runtime records stable/dynamic hashes and cacheable ratio. This is telemetry, not a promise that every provider supports prompt caching.
44
-
45
- ## Capability-aware routing
46
-
47
- Model profiles may declare coding, reasoning, toolCalling, vision, browser, filesystem, longContext, cost/latency class and a quality hint. UES never invents an unavailable capability. If no configured candidate satisfies a requirement it exposes capability fallback instead of silently claiming that a text-only model can see screenshots.
48
-
49
- ## Visual fidelity
50
-
51
- Visual verification uses three complementary layers: semantic DOM/accessibility identity, geometry/bounding boxes, and screenshot pixels. VISUAL_SPEC describes important anchors and tolerances. Geometry receipts prove position/size claims. PNG diff finds changed pixels and their bounding region. A failed region can be cropped so vision only sees the area that needs judgment.
52
-
53
- Screenshot equality does not prove accessibility or interaction; DOM equality does not prove appearance.
54
-
55
- ## Browser QA and security
56
-
57
- Browser workflows prefer bounded deterministic scripts/CLI for ordinary verification. Remote webpage content is untrusted and cannot change UES/tool permissions, request secrets, expand the approved task or authorize external side effects.
58
-
59
- ## Dynamic workflows
60
-
61
- The scheduler classifies units as deterministic, LLM judgment or vision judgment. Deterministic work does not spawn agents. Independent tasks may share a wave only when dependencies are ready and file ownership does not conflict. Each wave is integrated and verified before later waves rely on it.
62
-
63
- ## Skill system
64
-
65
- V11 keeps progressive disclosure: description metadata for routing, short SKILL.md entrypoint, references only when the selected mode needs them, and deterministic logic in runtime/scripts rather than repeated prompt text.
66
-
67
- `ocskill skills lint` flags oversized entrypoints and highly overlapping descriptions.
68
-
69
- ## Hermes sidecar
70
-
71
- Hermes remains optional. UES owns durable `.ues-work` state, evidence references, task leases/runId fencing, verification receipts and safety/permission boundaries. Hermes may execute a bounded task/workflow when explicitly available but does not become the source of truth.
72
-
73
- ## Release evidence
74
-
75
- V11 must pass syntax/resource/router/V11 contract tests, all Node tests, package/install smokes, no-regression live suites, capability-routing tests, visual geometry/pixel fixtures, browser security/targeted-evidence fixtures and token/cache/evidence telemetry benchmarks before stable promotion.
@@ -1,220 +0,0 @@
1
- # UES V11 — Perception & Adaptive Execution
2
-
3
- Status: stable (`11.0.0`). V11 is npm `latest`.
4
-
5
- ## Goal
6
-
7
- V11 extends UES from a reliability-focused coding harness into a perception-aware adaptive execution system. The core rule remains:
8
-
9
- > minimum context necessary for maximum verified task success
10
-
11
- V11 must improve perception, routing and context efficiency without weakening V10 durability, verification or safety.
12
-
13
- ## Runtime layers
14
-
15
- ```text
16
- user task
17
- -> intent/risk classification
18
- -> capability requirements
19
- -> evidence budget
20
- -> semantic/repository evidence
21
- -> content-addressed evidence pointers
22
- -> selective skill/model routing
23
- -> fresh executor
24
- -> deterministic verification
25
- -> visual/browser verifier when required
26
- -> recovery/escalation only from observed failure
27
- ```
28
-
29
- ## Content-addressed Evidence Store
30
-
31
- Large evidence is stored below:
32
-
33
- ```text
34
- .ues-cache/evidence-v1/
35
- ```
36
-
37
- Records are addressed by SHA-256. Executor context receives bounded slices and evidence references instead of repeatedly embedding large tool output.
38
-
39
- Commands:
40
-
41
- ```cmd
42
- ocskill store status .
43
- ocskill store put report.txt . --kind tool-output
44
- ocskill store get evidence:sha256:<hash> . --max 12000
45
- ocskill store gc . --max-entries 2000 --max-age-days 30
46
- ```
47
-
48
- Evidence pointers are not proof by themselves. Any claim still needs the relevant content or a verification receipt.
49
-
50
- ## Adaptive Evidence Budget
51
-
52
- V11 partitions context among instructions, task, declared code, tests, references, history and tools. Debugging, high-risk, visual and browser work can reallocate budget without automatically consuming the full 48k ceiling.
53
-
54
- Failure expands evidence in stages; it does not justify replaying already-proven exploration.
55
-
56
- ## Prompt cache layout
57
-
58
- The prompt envelope is split into a stable prefix and dynamic tail.
59
-
60
- Stable:
61
- - role and invariants
62
- - loaded skill IDs
63
- - stable project facts
64
- - tool policy
65
-
66
- Dynamic:
67
- - current task
68
- - evidence pointers
69
- - recent failure
70
- - next action
71
- - recent messages
72
-
73
- Telemetry records stable/dynamic hashes, sizes and cacheable ratio. This is diagnostic; provider-side cache behavior is provider-dependent.
74
-
75
- ## Capability-aware model routing
76
-
77
- Models may declare:
78
- - coding
79
- - reasoning
80
- - tool calling
81
- - vision
82
- - browser
83
- - filesystem
84
- - long context
85
- - cost class
86
- - latency class
87
- - quality hint
88
-
89
- Example:
90
-
91
- ```cmd
92
- ocskill models capability provider/model --vision on --browser on --reasoning on --quality 0.9
93
- ```
94
-
95
- Task text is converted to capability requirements. The existing light/standard/heavy tiers remain compatible, but V11 can select an eligible configured model instead of assuming every model has the same modalities.
96
-
97
- ## Visual fidelity
98
-
99
- V11 verifies UI through three independent evidence layers:
100
-
101
- 1. semantic/accessibility identity
102
- 2. geometry/bounding boxes
103
- 3. rendered pixels
104
-
105
- A visual task can use `VISUAL_SPEC.json` to define acceptance elements and tolerances.
106
-
107
- ```cmd
108
- ocskill visual spec VISUAL_SPEC.json
109
- ocskill visual geometry VISUAL_SPEC.json actual-boxes.json
110
- ocskill visual compare expected.png actual.png --threshold 16 --max-diff-ratio 0.01
111
- ocskill visual crop actual.png failed-region.png --x 100 --y 200 --width 300 --height 120
112
- ```
113
-
114
- PNG comparison is deterministic and dependency-free for supported 8-bit non-interlaced PNGs. Vision models are used for appearance judgment or cropped failure regions, not for measurements that DOM/geometry can prove exactly.
115
-
116
- ## Browser QA and trust boundary
117
-
118
- Browser workflows are CLI/script-first. Rich browser tooling is used only when persistent exploration or richer introspection is necessary.
119
-
120
- ```cmd
121
- ocskill browser capability .
122
- ocskill browser plan http://localhost:3000 --target Checkout
123
- ```
124
-
125
- Remote webpage text, DOM, ARIA labels and downloaded content are untrusted evidence. They cannot:
126
- - change UES/system policy
127
- - expand permissions or filesystem scope
128
- - request secrets
129
- - authorize publish/deploy/purchases
130
- - weaken verification requirements
131
-
132
- ## Dynamic workflow
133
-
134
- ```cmd
135
- ocskill workflow-plan .ues-work/<slug>/PLAN.json --max-concurrent 4
136
- ```
137
-
138
- The scheduler separates deterministic work from LLM/vision work, respects dependencies and serializes declared write conflicts. Deterministic commands should not consume agent slots. A schedule is planning evidence, not authorization for external side effects.
139
-
140
- ## Hermes sidecar
141
-
142
- Hermes remains optional. UES owns durable state, safety and verification. Hermes can consume one-task or bounded workflow prompts and evidence pointers but does not own merge/push/publish/deploy.
143
-
144
- ```cmd
145
- ocskill hermes status
146
- ocskill hermes workflow <slug> .
147
- ocskill hermes exec-workflow <slug> .
148
- ```
149
-
150
- If Hermes is absent, core UES remains functional.
151
-
152
- ## New skills and agents
153
-
154
- V11 adds nine focused skills:
155
- - visual-fidelity
156
- - browser-qa
157
- - design-source
158
- - responsive-verification
159
- - component-visual-testing
160
- - browser-security
161
- - skill-authoring
162
- - skill-evaluation
163
- - dynamic-workflow
164
-
165
- V11 adds two subagents:
166
- - `ues-visual-verifier`: read-only independent rendered-evidence verification
167
- - `ues-merge-arbiter`: conflict resolution across already-verified task changes
168
-
169
- More agents are not automatically better. New agents require a distinct capability/verification boundary and benchmark evidence.
170
-
171
- ## Skill quality
172
-
173
- ```cmd
174
- ocskill skills lint .
175
- ```
176
-
177
- The linter checks metadata, entrypoint size and likely routing-description collisions. Skill instructions should use progressive disclosure and deterministic scripts for repeatable mechanics.
178
-
179
- ## Evaluation metrics
180
-
181
- V11 keeps correctness first and additionally measures, when available:
182
- - initial and total tokens
183
- - cacheable prompt ratio
184
- - repeated stable input
185
- - evidence-reference reuse
186
- - visual repair attempts
187
- - context expansion count
188
- - model escalation count
189
- - latency/cost/tool calls
190
-
191
- Missing telemetry is `null`, not zero.
192
-
193
- Reference-vs-candidate gates can optionally require V11 telemetry:
194
-
195
- ```cmd
196
- npm run evals:ablation -- v10-summary.json v11-summary.json --require-gate --min-cacheable-ratio 0.70 --min-evidence-reuse-ratio 0.20 --max-repeated-stable-ratio 0.20
197
- ```
198
-
199
- An explicitly requested metric gate fails closed when its telemetry is unavailable.
200
-
201
- ## Release gates
202
-
203
- Do not promote V11 to stable until all are satisfied:
204
-
205
- 1. `npm run ci` passes on the V11 tree.
206
- 2. No correctness/pass-rate regression versus the accepted V10 reference.
207
- 3. Required initial-input/token efficiency gate passes.
208
- 4. Visual geometry and PNG fixtures pass.
209
- 5. Browser trust-boundary and routing tests pass.
210
- 6. Compaction, timeout, provider recovery, lease recovery and loop guards remain green.
211
- 7. Packed and plain npm-install smoke tests pass.
212
- 8. Real weak-model evaluation shows no suite regression.
213
- 9. Any configured cache/evidence target has sufficient telemetry and passes.
214
- 10. npm `latest` is V11 stable; no release gate prevents promotion.
215
-
216
- ## Compatibility
217
-
218
- OpenCode 1.x continues to receive resource/CLI behavior that does not require V2 runtime hooks.
219
-
220
- OpenCode 2.x receives the managed router plugin and fresh-session runtime, including V11 deterministic helper tools for capability inference, evidence retrieval, visual geometry/diff planning, browser planning and dynamic workflow scheduling.
@@ -1,27 +0,0 @@
1
- # V12 Weak-Model Intelligence Foundation
2
-
3
- Status: beta prerelease (`12.0.0-beta.0`, npm dist-tag `next`). V11 (`11.0.0`) remains the stable `latest` release until V12 earns stable-release evidence.
4
-
5
- ## Goal
6
-
7
- V12 focuses on making weaker coding models more reliable on large repositories by improving measured context quality, empirical model routing, plan identity, bounded autonomous decisions, and repo-scale evaluation. It does not claim that orchestration makes one base model equivalent to a stronger model.
8
-
9
- ## Foundations
10
-
11
- - Empirical model performance: observed pass rate, retries, token use and latency can rerank capability-eligible models by task class.
12
- - Context quality receipts: adaptive context reports required-file recall and irrelevant-context ratio.
13
- - Plan-scoped snapshots: every imported plan gets a SHA-256 keyed snapshot and active-plan fence before execution.
14
- - Decision policy: reversible local engineering choices can be auto-resolvable; publish/deploy/destructive/product decisions remain human-gated.
15
- - Repo-scale contract suite: deterministic generation of a 300-module monorepo fixture for larger-repository validation.
16
-
17
- ## Release policy
18
-
19
- V12 is not stable merely because unit tests pass. Promotion requires healthy GitHub CI/Security gates, repo-scale validation, real weak-model baseline-vs-UES trials, no regression in existing suites, measured context recall, sufficient empirical routing samples, and Windows/Linux package/install smoke evidence.
20
-
21
- ## Beta install
22
-
23
- ```cmd
24
- npm install -g opencode-agent-skill@next
25
- ocskill install
26
- ocskill doctor
27
- ```
@@ -1,86 +0,0 @@
1
- # V13 Parallel Weak-Model Runtime
2
-
3
- Status: beta prerelease (`13.0.0-beta.2`).
4
-
5
- ## Goal
6
-
7
- V13 reduces wall-clock time for large engineering work by letting multiple fresh sessions of the **same configured model** execute independent approved tasks concurrently without sharing mutable context.
8
-
9
- ## Runtime contract
10
-
11
- - `ues.dispatch_parallel` defaults to one shared model for every worker and verifier.
12
- - The root must be a Git repository. A pre-existing dirty working tree is allowed: V13 snapshots that baseline into each sandbox and integrates only the task delta, so valid inherited/user changes are preserved.
13
- - Writers execute in isolated Git worktrees.
14
- - Resource leases serialize overlapping files, unknown scope and shared configuration surfaces.
15
- - The scheduler is event-driven: when one task is independently verified, transactionally integrated and completed, newly unblocked dependencies may start immediately.
16
- - Initial and downstream sandboxes inherit the current dirty root through an internal snapshot commit on the sandbox branch; the user's root branch is never auto-committed.
17
- - A fresh `ues-verifier` session using the same model must return PASS before integration.
18
- - Integration is serialized. If receipt/completion fails after patch application, V13 reverses that task patch before marking the run failed.
19
- - No parallel worker pushes, publishes or deploys.
20
-
21
- ## Same-model execution
22
-
23
- One model is sufficient. Parallelism means multiple isolated sessions, not multiple model families:
24
-
25
- ```text
26
- provider/weak-model
27
- ├─ fresh session A
28
- ├─ fresh session B
29
- ├─ fresh session C
30
- └─ fresh verifier sessions
31
- ```
32
-
33
- If no explicit model is supplied, the configured executor model is shared. If no configured model is selected, all sessions keep the OpenCode default model.
34
-
35
- ## Runtime compatibility
36
-
37
- V13 keeps CLI, durable state, receipts, task graphs and Windows text hardening available on OpenCode 1.x. Native `ues.dispatch_task` and `ues.dispatch_parallel` require the V2 router plugin plus the fresh-session capability surface. The router checks capabilities at runtime and fails closed if create/prompt/wait/interrupt/context/switch-agent are incomplete.
38
-
39
- When npm blocks lifecycle scripts (common with stricter npm 11+ `allowScripts` policy), install still leaves the CLI available; run `ocskill install` to perform the documented resource sync explicitly.
40
-
41
- ### Adaptive /ues-run admission on OpenCode V2
42
-
43
- V2 prompt aliases classify the **actual alias arguments** before choosing the prompt envelope. `/ues-run` no longer forces long-horizon mode merely because the alias was used:
44
-
45
- - FAST requests receive a compact prompt that preserves the exact user outcome and skips durable planning unless repository work is actually required.
46
- - STANDARD requests use targeted repository evidence, bounded edits and affected verification without creating durable state by default.
47
- - DEEP / long-horizon / high-risk requests retain the full durable `.ues-work/<slug>/`, plan-gate, fresh-verifier and integration-gate contract.
48
- - `/ues-resume` remains explicitly durable so an existing long-running workspace is not accidentally downgraded.
49
-
50
- If policy classification is unavailable, the router fails conservatively by preserving the full command contract rather than silently weakening verification.
51
-
52
- ## CLI hardening
53
-
54
- V13 parses `--help` before positional arguments, so commands such as these are safe:
55
-
56
- ```cmd
57
- ocskill work init --help
58
- ocskill work status --help
59
- ocskill work gate-receipt --help
60
- ```
61
-
62
- `ocskill work status .` now lists durable workspaces instead of treating `.` as a slug.
63
-
64
- For machine callers, append `--json` to receive structured errors.
65
-
66
- On Windows, prefer:
67
-
68
- ```cmd
69
- ocskill diff . --out dirty.diff
70
- ```
71
-
72
- This writes UTF-8 directly and avoids PowerShell 5 redirection producing UTF-16 text that generic readers may classify as binary. On OpenCode 1.x, where the V2 `ues.text_read` tool is unavailable, read known text safely without creating a converted copy:
73
-
74
- ```cmd
75
- ocskill text-read .ues-work/<slug>/PLAN.json --json
76
- ```
77
-
78
- Existing UTF-8/UTF-16 text can be normalized with:
79
-
80
- ```cmd
81
- ocskill normalize-text dirty.diff
82
- ```
83
-
84
- ## Release evidence
85
-
86
- V13 remains beta until parallel execution demonstrates measurable wall-clock improvement without reducing correctness, and Windows/Linux CI proves help parsing, encoding, dirty-baseline worktree inheritance, rollback, verifier receipts and package installation.