Repository navigation
feat(motion): motion hook scope + CONFIRM multi-pending fix (0.1.103) - #113
Merged
Merged
Conversation
…NFIRM multi-pending and visible ack
- New `motion` scope (src/policy/motion/, src/runtime/motion/): stills/draft
approval gates bound to artifact SHA-256, owner-only signed approvals,
self-approval/forgery/detach guards, critic sandbox, render budget,
state verification with quarantine.
- Shared touches: protected-path guards ~/.fuse-harness/motion{,-keys}/,
handle.ts payload helpers extracted to handle-payload.ts, scope/dispatch
registration.
- CONFIRM: up to 10 pending codes per session (never expire), armed token
survives denial of another command, visible ack on codex/kimi for an
exact `CONFIRM <code>` prompt; legacy single-slot state still read.
…xt budgets The cold first call pays JSC tier-up (~14 ms locally vs 0.09 ms steady state), which made the 5 ms / 50 ms budgets flaky on CI runners. The budgets are unchanged and still catch super-linear blowups.
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
motionhook scope (hook <host> motion): G1 stills / G2 draft approval gates bound to artifact SHA-256, owner-only HMAC-signed approvals, self-approval / forgery / detach guards, critic sandbox, render budget, state verification with quarantine.CONFIRM <code>prompt.Changes
src/policy/motion/,src/runtime/motion/,src/policy/interfaces/motion.ts,docs/motion.mdsrc/runtime/confirm/*,src/runtime/handle.ts,src/runtime/handle-payload.ts,src/util/record-object.ts,docs/adapters.mdprotected-path.ts(motion paths protected in every scope),shell-read-refs.tsexports,scope.ts/dispatch.tsregistrationTest plan
bun run buildexit 0bunx tsc --noEmitexit 0bun test2473 pass / 1 skip / 0 failBreaking changes
None. Only behavior change outside
motion: agent writes to~/.fuse-harness/motion/and~/.fuse-harness/motion-keys/are denied in every hook scope.