Skip to content

♻️ refactor(architecture): eliminate production cycles - #61

Merged
zrr1999 merged 2 commits into
codex/daemon-task-claim-expiry-cutoverfrom
codex/barrel-cycle-break
Jul 31, 2026
Merged

♻️ refactor(architecture): eliminate production cycles#61
zrr1999 merged 2 commits into
codex/daemon-task-claim-expiry-cutoverfrom
codex/barrel-cycle-break

Conversation

@zrr1999

@zrr1999 zrr1999 commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

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.

@zrr1999
zrr1999 changed the base branch from codex/pi-session-daemon-heartbeat to codex/daemon-task-claim-expiry-cutover July 30, 2026 14:04
@zrr1999
zrr1999 force-pushed the codex/barrel-cycle-break branch from eaa89c1 to f0d20f4 Compare July 30, 2026 14:50
@zrr1999
zrr1999 force-pushed the codex/barrel-cycle-break branch 3 times, most recently from 7dbfce7 to 4afbb25 Compare July 30, 2026 15:07
@zrr1999
zrr1999 force-pushed the codex/barrel-cycle-break branch from 4afbb25 to 37d4ddd Compare July 30, 2026 15:10
@zrr1999
zrr1999 merged commit cf2f247 into main Jul 31, 2026
8 of 10 checks passed
@zrr1999
zrr1999 deleted the codex/barrel-cycle-break branch July 31, 2026 01:49
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