Skip to content

Harden Data Machine compose lease recovery - #593

Merged
chubes4 merged 3 commits into
mainfrom
fix/591-compose-lease-recovery
Sep 14, 2026
Merged

chubes4 merged 3 commits into
mainfrom
fix/591-compose-lease-recovery

Conversation

@chubes4

@chubes4 chubes4 commented Sep 14, 2026

Copy link
Copy Markdown
Member

Follow-up to #592 and #591.

Summary

Hardens the cross-process compose lease against stale-owner races without removing or renaming an expired owner. Recovery uses a separate operation-scoped lease, receipts are bound to the operation joined, and unreadable lease state uses bounded fallback. Explicit site identity coalesces sessions launched from different worktrees.

Verification

bun tests/dm-agent-sync.mjs
bash tests/kimaki-managed-plugin-rig.sh

The focused test launches independent processes from two worktree directories against one explicit site. It also covers stale-owner recovery races, replacement receipts, mixed timeouts, and malformed lease state.

AI Assistance

GPT-5.6 Terra through OpenCode implemented and tested the repair; GPT-6 Astra through OpenCode triaged and dispatched it under Chris Huber's direction.

@chubes4
chubes4 merged commit 9a0da6c into main Sep 14, 2026
67 checks passed
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