refactor: extract node runtime state

This commit is contained in:
Eric Wendland 2026-07-05 17:27:42 +02:00
commit 87fe47fd7f
3 changed files with 91 additions and 72 deletions

View file

@ -35,12 +35,12 @@ Goal: make the documented local quality gate pass before deeper refactors.
Goal: split `geth-node` into reviewable daemon subsystems without changing
behavior.
- `[ ]` Extract daemon startup and runtime ownership.
- `[~]` Extract daemon startup and runtime ownership.
Acceptance criteria:
- `[ ]` Daemon startup, shutdown, signal handling, socket setup, Iroh
endpoint ownership, and background task spawning live outside the main
feature handler module.
- `[ ]` Runtime state is represented by narrow structs with documented
- `[x]` Runtime state is represented by narrow structs with documented
ownership and locking rules.
- `[ ]` Existing daemon startup and status tests pass unchanged.
@ -330,7 +330,7 @@ Goal: prove the system works as an actual base layer before broader use.
## Working Order
1. `[~]` Finish Phase 0.
2. `[ ]` Refactor `geth-node` into daemon subsystems.
2. `[~]` Refactor `geth-node` into daemon subsystems.
3. `[ ]` Add stable contract and golden JSON tests.
4. `[ ]` Harden store migrations and backup.
5. `[ ]` Complete security-boundary test coverage.