Skip to content

feat: dispatch gates, wrapper background wait, grok 1.0.77 (0.0.71) - #85

Merged
okisdev merged 13 commits into
mainfrom
fix-wrapper-background-move
Nov 7, 2026
Merged

okisdev merged 13 commits into
mainfrom
fix-wrapper-background-move

Conversation

@okisdev

@okisdev okisdev commented Nov 7, 2026

Copy link
Copy Markdown
Owner

closes #74
closes #75
closes #83

summary

  • since claude code 2.1.312 an async subagent's bash moves to the background after 180 seconds whatever its timeout, and fusion read the wrapper's first stop as a failed delivery. from 10-28, 76% of wrappers moved, 49% ended as delivery, wrappers went from 5 to 8 calls, and the parent's terminal collection blocks rose from 20 to 80 a day. a wrapper now stays in flight until it relays the real output, and the waiting notification is not a result. lifecycle/subagents.mjs and lifecycle/notifications.mjs carry the logic.
  • the dispatch hook stages a peer brief whose write mode is stated, so the wrapper skips three model calls. it also runs Explore on sonnet when no model is named, denies a gpt-6-astra write brief of 3000 bytes or more, and denies an engine for 30 minutes after an infrastructure failure in the session, unless the latest user message names the model or engine.
  • the main loop gets a read streak advisory in place of the narrow wave advisory (25% widened with it, 33% without), and the context advisory also fires at prompt time. read only turns were 39.5% of main loop token cost. /fusion:stats gains a verification evidence block, and the guard now records verification in every posture.
  • codex events carry observedAt, a wind down records usage when its rollout proves continuity, the job monitor keeps summaries instead of parsed records (165 to 94 mib of rss), and grok independence defaults to medium (9 of 23 runs finished at high).
  • the grok tested interval moves to [1.0.14, 1.0.78), with a new lane snapshot: grok burst passed 9 of 9 on T05, T06, and T09. the T01 bench task has one defect again, and five process timing tests stop depending on host load.
  • release 0.0.71 across every plugin and the marketplace, with a changelog entry. bench/results/lanes-2026-11-07/ and rules-manifest.json are generated or recorded output.

test plan

already verified

  • npm test: 1900 pass, 0 fail, 3 skipped on the tree before the grok move. after it, heavy host load (average above 100) left 4 timing failures; the failing files pass at --test-concurrency=2 (373 of 374, then the last version pin fixed: 84 of 84)
  • claude plugin validate passes for codex, grok, cursor, devin, fusion, and the marketplace root
  • live, interactive session with --plugin-dir: a codex wrapper's bash moved at 180 seconds, it printed waiting on <id>, woke on the notification, read the output, and relayed. record done, failureKind null, retryCount 0, no parent stop block
  • live: the wrapper received fusion-staged-token and ran the task directly; with a haiku main session, Explore ran on claude-sonnet-5-5
  • live on grok 1.0.77 with orbstack stopped: consult, write, and review through the companion each ended state: done
  • bash bench/tasks/T01-seeded-bug/selftest.sh: PASS; inserting a, b, c, d with maxSize: 2 leaves c,d
  • the two two process timing tests fail under host load #83 tests pass 12 of 12 in parallel beside CPU burners

reviewer should verify

  • after refreshing the plugin cache, /fusion:smoke passes and /fusion:stats shows delivery failures near zero for wrappers past 180 seconds

notes

  • rules checklist: single-flight-fit reason is replaced by the enforced 3000 byte gate and gpt-6.1-sol at xhigh, because the warning had not moved a 58% timeout rate at 3 to 6 kb. may pin the Explore agent to haiku becomes a sonnet default that still allows haiku. the 10 minute Bash cap wording becomes the 570 second flight, because the 180 second move made it false. a repeated scoring sentence is dropped. the lane default line moves independence to medium. no invariant in CONTRIBUTING.md changes.
  • grok still loads hooks from enabled plugins and ~/.grok/hooks inside managed runs, and no per run switch exists; /grok:setup names them, and suppress grok plugin hooks in managed runs #84 tracks a private GROK_HOME.
  • open risk: a waiting wrapper has 180 seconds of margin against its stall budget if the harness does not wake it while the parent is idle. watch cancel_requested in stats after this ships.

@okisdev
okisdev merged commit c5a8f24 into main Nov 7, 2026
4 checks passed
@okisdev
okisdev deleted the fix-wrapper-background-move branch November 7, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant