♻️ refactor(tasks): move main claim authority to daemon - #55
Merged
zrr1999 merged 6 commits intoJul 31, 2026
Merged
Conversation
zrr1999
force-pushed
the
codex/daemon-task-claim-expiry-cutover
branch
from
July 30, 2026 14:50
1a47562 to
b4ac39c
Compare
zrr1999
added a commit
that referenced
this pull request
Jul 31, 2026
## Summary - reduce production circular dependencies from 75 edges / 10 SCCs to 0 / 0 - extract ownership contracts across daemon and Cockpit/TUI coordination, AI and ask routing, extension background/drive state, and role runtime clusters - enforce a global production-cycle prohibition in dependency-cruiser and hygiene ratchets - preserve existing public APIs, daemon command behavior, session lifecycle, runtime control, and transport semantics while moving implementation ownership behind explicit contracts ## Stack dependency This PR is stacked directly on #49 (`codex/pi-session-daemon-heartbeat`). It is a sibling of #55 and does not depend on #55. ## Validation - `pnpm run check:static` - `pnpm run test:unit` (Cockpit: 630; daemon: 591; package checks passed) - `pnpm run test:process:source` (1 passed) - `pnpm run check:boundaries` (1543 modules / 5914 dependencies; 0 violations) - `node scripts/check-hygiene-ratchets.mjs` (`circular=0`) - fresh dependency-cruiser JSON: production circular 0, SCC 0, owner distribution empty, violations 0 - `git diff --check origin/codex/pi-session-daemon-heartbeat...HEAD` ## Review scope The relative stack diff is exactly 52 files: four reviewed ownership clusters plus the global dependency/configuration and ratchet batch.
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
Validation
pnpm run check:staticStack dependency
Stacked on #49 (
codex/pi-session-daemon-heartbeat). This PR must remain based on that branch until the heartbeat layer lands.