feat: jev brief readiness sensor on peer dispatch (0.0.58) - #61
Merged
Merged
Conversation
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
jev-1.13.0, a typed decision model that returns yes or no probabilities and no text) four fixed questions about everycodex:codex-rescueandgrok:grok-rescuebrief of at least 200 characters: does it mix diagnosis with a fix, carry style intent only as prose, name no checkable completion condition, or ask for a sweep without named paths. an answer at or above 0.7 adds onebrief-sensor.readiness-advisoryline with the probability and the remedy to the orchestrator's contextadditionalContextand never apermissionDecision, so it cannot approve, deny or hold a dispatch. off unlessTYPESAFE_API_KEYis in the session environment; a missing key, a 2.5 second timeout, any status other than 200 and a malformed body all produce no output. no retry, nothing written to disk, no new dependency (built infetch)verified-versions.jsonkey. the check is its ownbrief-sensor.mjsPreToolUse hook becauseworker-lifecycle.mjsis synchronous, fails closed on a throw in PreToolUse, and returns early for peer wrappers with no advisory pathplugins/fusion/scripts/lib/jev.mjsandplugins/fusion/scripts/brief-sensor.mjs; the rest is wiring (hooks.json, message registry, verification manifest), docs (README safety model, SECURITY.md data boundary) and the 0.0.58 release (changelog plus the seven version fields)test plan
already verified
npm teston the feature tree before the release commit -> 1175 tests, 1174 pass, 0 fail, 1 skipped (the existing skip)node --test tests/plugin-versions.test.mjs tests/verified-versions.test.mjs tests/routing-policy.test.mjsafter the version bump -> 10/10 passTYPESAFE_API_KEY=leak-check node --test tests/jev.test.mjs tests/brief-sensor.test.mjs tests/user-messages.test.mjs-> 23/23 pass; the suites scrub the inherited key and endpoint and only talk to a localnode:httpserverreviewer should verify
TYPESAFE_API_KEYset, dispatch a brief tocodex:codex-rescuethat asks to find a cause and fix it in one package; expect one context line ending in[fusion:9825], the dispatch still proceeding, and the inline guard's own context still arriving (how Claude Code aggregatesadditionalContextfrom parallel PreToolUse hooks is undocumented)notes