Repository navigation
refactor: leaner rules and hooks, shared companion runtime (0.0.76) - #100
Merged
Merged
Conversation
grok job state runs on the shared job-state factory, cursor and devin share one command loop and footer renderer, and codex vendors the shared record lock and argument parser. a timed out cursor job reports the timeout, and every engine's lock timeout names the holder.
fixes collection on failed reads, settlement by engine job id, and double counted retention rollups. removes the strict posture and the unverified write advisory, moves engine acceptance out of the record lock with retries, unifies locking in one storage module, takes stale session pruning off the per call path, merges hook processes, and settles from a printed direct command.
orchestration.md drops from 48 KB to 13.7 KB. hook enforced mechanics, engine detail, and clocks move to troubleshooting.md, which also stops claiming run_in_background false makes a dispatch synchronous.
a replaced verdict no longer races an older in flight delivery, an abandoned final claim stays retryable, and the stale prune boundary test uses a whole second clock so node 22 timestamp rounding cannot age the fixture.
terminal maintenance runs after the record lock is released, so removing the sandbox on the terminal record raced the worker's last writes with ENOTEMPTY.
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
node <fusion-stats.mjs> --recordcommand with every pending id, and safe text--reason/--failure-kindforms pass directly instead of through the four call transport.orchestration.mdgoes from 48 KB to 13.7 KB. hook enforced mechanics, engine detail, clocks, and panel and fleet ceremony live introubleshooting.mdand the skills. the false claim thatrun_in_background: falsemakes a dispatch synchronous is removed (verified with and without work in flight), and the staleengine: codex|grokcollector grammar is fixed.strictposture (no strict session since 2026-08-02) with its write budget deny, tail allowance, and zero-dispatch relief; the unverified write advisory (96% of guard warnings, no lift over the base rate); six audit fields nothing read; four functions with no caller.tool_use_id; engine acceptance runs after the record lock is released with a 10 second timeout and monitor retries; onelib/storage.mjsowns locking and atomic writes (observer state no longer loses concurrent updates); stale session pruning runs every ten minutes instead of every call (103 locks per Read with 100 sessions on disk, now 1); SessionStart and Agent pre-dispatch run one process each; an ignored tool call loads 5 modules instead of 39.fusion:deep-reasonerruns at high effort, and design or root-cause prompts get a one line hint to consult it.plugins/fusion/scripts/lib/{storage,lifecycle/tools,lifecycle/collection,engine-acceptance,guard/state,guard/handler}.mjs,fusion-hook.mjs,shared/companion/{job-state,companion-commands,record-lock}.mjs. theplugins/*/scripts/libcopies of shared modules areshared/sync.mjsoutput andrules-manifest.jsonis generated.breaking changes
/fusion:config set-postureandFUSION_POSTUREare gone; an existing strict setting is ignored and behaves as the default.test plan
already verified
npm test-> 2210 tests, 2207 pass, 0 fail, 3 skipped (2141 before the change)node shared/sync.mjs --checkpassesclaude plugin validatepasses for codex, grok, cursor, devin, fusion, and the marketplace rootnode plugins/fusion/scripts/generate-rules-manifest.mjsleaves the manifest currentrun_in_background: false, and one with nothing in flight, all returned an async launch receiptreviewer should verify
/fusion:smokepassesnotes