Skip to content

fix(motion): stale in-flight render reservations expire (TTL); SubagentStop release on claude-code only - #114

Merged
brunoazoulay merged 2 commits into
mainfrom
fix/motion-render-ttl-0.1.104
Oct 11, 2026
Merged

brunoazoulay merged 2 commits into
mainfrom
fix/motion-render-ttl-0.1.104

Conversation

@brunoazoulay

Copy link
Copy Markdown
Collaborator

Summary

  • Stale in-flight motion render reservations expire after FUSE_MOTION_RENDER_TTL_MS (default 30 min): they stop blocking admission and the master cap, but stay settleable in an expired map until a 24 h horizon.
  • On claude-code only, a SubagentStop with a non-empty agent_id releases that sub-agent's fresh reservations; the main Stop releases none on any host.
  • An expired noid: reservation refuses the identical command until settlement or the horizon (no id in both maps).
  • Release 0.1.104 (package.json + CHANGELOG).

Changes

  • src/policy/motion/budget.ts, new budget-store.ts, src/policy/interfaces/motion.ts
  • src/runtime/motion/{host,index,lifecycle,post,pre}.ts, docs/motion.md
  • Tests: motion-inflight-{ttl,agent,late}, motion-owner-leak, motion-stop-subagent, motion-noid-expired; motion-hardening4-store updated

Test plan

  • bun run build green
  • tsc green, motion tests 0 fail
  • CI green

Breaking changes

None

…ntStop release on claude-code only

Reservations older than FUSE_MOTION_RENDER_TTL_MS (default 30 min) stop
blocking admission and the master cap but stay settleable in an expired map
until a 24 h horizon. Only a claude-code SubagentStop with a matching
agent_id releases fresh reservations. An expired noid: reservation refuses
the identical command until settlement or the horizon.
@brunoazoulay
brunoazoulay merged commit 6293248 into main Oct 11, 2026
1 check passed
@brunoazoulay
brunoazoulay deleted the fix/motion-render-ttl-0.1.104 branch October 11, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant