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
{{ message }}
Repository navigation
Capture tests fabricate {type:"session.idle"} — the green suite pins a trigger the host has never sent #137
test-integrityTest/eval integrity: mutation sweep, invariant pinning, assertion strengthverified-on-mainReviewed against current main and the described break no longer exists - nothing to build, close it
Every capture test hand-fabricates the event the plugin is waiting for:
test/capture.test.ts:291, 297, 320
test/capture-compaction.test.ts:237, 270, 389-390
all push { type: "session.idle", … }. opencode 2.x has never emitted that event (see the capture root-cause issue), so the entire auto-capture suite — hundreds of assertions, 480 tests green in CI — pins a trigger that does not exist. The fake and the production code are wrong together, which is exactly the failure mode recorded twice already (#86, #90: "fake-payload drift is the failure mode this repo keeps paying for").
This also survived an adversarial review and a merge (#79), because the review verified the sid read against the same imagined envelope.
Add a host-fidelity test that fails when the plugin subscribes to an event type absent from the installed @opencode/schema event manifest. This is the structural fix: it makes "invented event name" a class of bug the suite can never repeat, for capture or any future subscriber.
Both names are present in test/fixtures/host-events.jsonl, and test/event-fidelity.test.ts asserts the strong form — "every event type auto-capture reacts to was really observed on a live host" (expect(neverSent).toEqual([])). That is the structural fix item 2 asked for: an invented subscriber name is now a red build, for capture and for any future subscriber.
The remaining session.idle references in tests are deliberate negative pins (test/capture.test.ts:577-578 asserts a legacy envelope shape produces 0 model calls), and src/index.ts:228-230 documents why session.idle, session.status and session.execution.failed deliberately do not trigger.
Item 3 (re-run the sweep and publish the score delta) is not done by this — scripts/test-sweep.ts is now committed with a bun run sweep:test script, so publishing the score is #72's job.
Severity triage 2026-10-30 — reviewed against main @ 525ed89 (v0.14.24). Labeled verified-on-main: the behavior this ticket describes no longer exists, so there is nothing to build. Full-suite baseline at that commit: 722 pass / 12 skip / 0 fail. Closing is your call; the evidence is here so the claim is checkable rather than asserted.
Closing on the verified-on-main call. The fabricated event is gone: capture.test.ts drives from test/fixtures/host-events.jsonl and now pins the opposite claim at line 575, 'declared-but-never-emitted events do NOT fire: session.idle' asserting 0 model calls, with test/event-fidelity.test.ts guarding the fixture.
test-integrityTest/eval integrity: mutation sweep, invariant pinning, assertion strengthverified-on-mainReviewed against current main and the described break no longer exists - nothing to build, close it
Activity
chore(release): 0.14.10 [skip ci]
fix(capture): fire on turn-end events; session.idle is never emitted (a…
abogartz commentedon Oct 30, 2026
Fixed — the trigger the suite pins is a real observed event
src/index.ts:223now defines the trigger from the recording rather than from imagination:Both names are present in
test/fixtures/host-events.jsonl, andtest/event-fidelity.test.tsasserts the strong form — "every event type auto-capture reacts to was really observed on a live host" (expect(neverSent).toEqual([])). That is the structural fix item 2 asked for: an invented subscriber name is now a red build, for capture and for any future subscriber.The remaining
session.idlereferences in tests are deliberate negative pins (test/capture.test.ts:577-578asserts a legacy envelope shape produces 0 model calls), andsrc/index.ts:228-230documents whysession.idle,session.statusandsession.execution.faileddeliberately do not trigger.Item 3 (re-run the sweep and publish the score delta) is not done by this —
scripts/test-sweep.tsis now committed with abun run sweep:testscript, so publishing the score is #72's job.Severity triage 2026-10-30 — reviewed against
main@525ed89(v0.14.24). Labeledverified-on-main: the behavior this ticket describes no longer exists, so there is nothing to build. Full-suite baseline at that commit: 722 pass / 12 skip / 0 fail. Closing is your call; the evidence is here so the claim is checkable rather than asserted.abogartz commentedon Nov 2, 2026
Closing on the verified-on-main call. The fabricated event is gone: capture.test.ts drives from test/fixtures/host-events.jsonl and now pins the opposite claim at line 575, 'declared-but-never-emitted events do NOT fire: session.idle' asserting 0 model calls, with test/event-fidelity.test.ts guarding the fixture.