Repository navigation
Conversation
…aths scrubbed) Entire-Checkpoint: 5365ae49db89
…ost, and truncation finding Entire-Checkpoint: 31f54740999f
…n opencode 1.18.27 Entire-Checkpoint: d57e0b25f533
… claim, record webfetch bypass Entire-Checkpoint: 41af19997975
…step_finish cost-accounting caveat Entire-Checkpoint: ceca3e63ff5f
Closed
9 tasks
…ap1-noclamp row) Entire-Checkpoint: b12c7760ebc1
5 tasks
admarble
deleted the
feature/992-spike-opencode-does-opencode-run-command-phase-loa
branch
September 8, 2026 01:34
This was referenced Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Spike #992 concluded:
opencode run --command qaDOES load the sequant skill. Verdict GO, posted to #862 (verdict, correction).docs/investigations/opencode-driver-spike.md— verdict, three skill-load signals, NDJSON event inventory, trap/mitigation table, config-hermeticity findings, cost table, gaps.src/lib/workflow/drivers/__fixtures__/opencode-run-qa.ndjson— real recorded output (93 events, 561 KB, paths scrubbed, no credentials). This is feat: add opencode agent driver — first backend that can inherit the full skill methodology #862's parser input (PLAN I-3).No
src/TypeScript changed. Diff is exactly the two may-touch paths.Headline result
Risk 1 ("the model never loads the skill") is refuted — but replaced by a larger one: the skill tool truncates the body. It delivered 51,144 of 174,981 chars in-band with
truncated: true. The run only succeeded because the model noticed and issued five follow-upreadcalls. A weaker model that accepts the 51 KB gets ~29% of the qa skill. #862 AC-4'sskill-not-loadedshould becomeskill-truncated, asserted onpart.state.metadata.truncated.The canary (planted at char 150,308, absent from the wrapper) was recognised as a prompt injection and refused, citing the qa skill's own §6f Trust-Boundary Check — a second-order proof the model read that deep and applied a rule from elsewhere in the file.
Cost
$1.1281 across 6 runs, against a $5 cap. Decisive run:
openrouter/anthropic/claude-sonnet-5, 408 s, $1.1198.QA round 2 — three defects found and fixed
A first QA pass returned
AC_NOT_MET. All findings are fixed ina81693d9and1a1857f0:part.metadata.truncated; real path ispart.state.metadata.truncated(part.metadataholds providerreasoning_details). A guard on the stated path readsundefined→ falsy → silently never firesjqverification one-linerpermission.bashdeny rules "worked". Fixture shows 28/28 calls completed, zero denials;ghwas simply unauthenticatedwebfetch: "deny"does not stopcurl(6 calls to api.github.com)AC verification
opencode --version→1.18.27; model id + $ recordedgrep -cE 'SEQUANT_QA_VERDICT|### Verdict' …→ 5, plus 2 corroborating signals (AC-6)jq -r '.type' … | sort -u→ 4 types, pasted, each with a payload description — now accurate aboutstate.metadatavsmetadataprocess-group killwas reproduced; see belowgh api …/862/comments | grep -c 'Spike verdict: GO|KILL'→ 1$+ wall time; total $1.1281 < $5AC-3 remains partial — and the negative results are the point
I spent a further ~$0.007 trying to reproduce the two unreproduced traps. Neither reproduced, and both failures are more useful to #862 than a green check:
/tmp permission kill— refuted./tmpis not blocked on 1.18.27 even withexternal_directory: {"*":"deny"}and no allow rule.permission.external_directorydoes not govern the--dirtree at all.32K step clamp— not reproduced in three controls. One completed normally at 7,321 output tokens (payload too small to reach the cap); one opened 3 steps, closed none, and was killed at 420 s — consistent with the symptom but inconclusive, since nostep_finishcarried a token count. The ~32K figure is not measured here.AC-3 as written asks for "the command that reproduced it" on all three rows; that is true for one. Reported as partial rather than argued away.
Cost-accounting corollary for #862: the hung control burned 420 s of real tokens but sums to $0.00 under the
step_finishmethod, because nostep_finishwas emitted. Budgeting purely fromstep_finish.costunder-reports exactly the runs that hang.Test plan
npm run build— passesnpm run lint— passes (0 warnings)npm test— 5788 passed, 3 pre-existing failuresThe 3 failures (
prompt-wait,batch-executor,relay-hook) reproduce identically at base20e2a867(v2.13.1). Unrelated to this diff, which adds only a Markdown doc and an.ndjsonfixture no test references.Mutation-verified: N/A — this node ships no gate tests. All ACs are
manual/command-output (/specrecordedverificationMethod: manualfor all five, hence notestgenphase). The fixture is recorded evidence, not an assertion.CHANGELOG: intentionally omitted — nothing user-facing ships (internal investigation doc + test fixture). §7's regex counts
docs:commits as user-facing, which is a false positive here; flagging rather than padding the changelog.Scope
Scratch worktrees and branches deleted before this PR. Traps anonymized — behaviour recorded, third-party source not named.
Closes #992