Repository navigation
Commit 5ef7503
committed
feat(opencode): live parity run through user-facing controls (M6.6)
The opt-in parity fixture (test/integration/opencode-parity.mjs) drives
the full Fusion protocol through the user-facing command surface only
(/fusion-run, /fusion-status, /fusion-stats, /fusion-resume,
/fusion-clean, /fusion-mode) against the installed v2.2.5 host, and
supersedes the failed 2026-10-30 CLI workflow run:
- run 1 (ephemeral): configure -> run -> scout -> execute -> file
review -> revise -> audit -> final fix -> "## Fusion summary", one
executor child across all three delegations, fixture.txt progressing
alpha -> beta -> gamma;
- run 2 (persistent mode): a new run completes through the same
controls on second.txt;
- real per-run usage totals from observed readings (stats1: 4/4 turns
reported, 15885 input / 738 output tokens; stats2: 1/1, 5539 input);
- resume parity: owning-session presentation (no recovery owed),
cross-session not-attached presentation with the owning run and the
concrete operator-resolution command, and post-clean absence;
- clean parity: settled ephemeral and persistent runs released,
unfinished runs refused.
Review follow-up found in the live run: a persistent-mode run stays
armed (runActive true, phase "complete") after it settles, and
fusion_clean refused it - leaving no user-facing cleanup path. Clean
now treats phase "complete" as settled in both checks and releases the
run in either mode, refusing only unfinished work; unit-pinned for
armed-settled release and unfinished refusal.
Fixture hardening from the live chase: server-driven with a two-phase
boot seeding only the provider plus opencode account credential rows
(a bare provider key is rejected by the gateway workspace policy in
serve mode), supervisor-session discovery (the prompted turn may run
in a different session than the command's), supervisor reset honoring,
and stuck-turn recovery for the upstream parent-completion gap
(anomalyco/opencode#36349) via interrupt + clean + reissue.
374 tests, type checking, and the model-free smoke pass.1 parent 839299c commit 5ef7503
4 files changed
Lines changed: 437 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
651 | 655 | | |
652 | 656 | | |
653 | 657 | | |
654 | | - | |
| 658 | + | |
655 | 659 | | |
656 | 660 | | |
657 | 661 | | |
| |||
672 | 676 | | |
673 | 677 | | |
674 | 678 | | |
675 | | - | |
| 679 | + | |
676 | 680 | | |
677 | 681 | | |
678 | 682 | | |
679 | 683 | | |
680 | 684 | | |
681 | | - | |
| 685 | + | |
682 | 686 | | |
683 | 687 | | |
684 | 688 | | |
| |||
0 commit comments