Skip to content

feat(serve,core,ep,domain): implement SPEC-0003 Stage B pool driver, waker health gate, unified CLI flags, and property tests - #12

Merged
todie merged 1 commit into
mainfrom
feat/spec-0002-0003-stage-b-waker-cli
Oct 16, 2026
Merged

todie merged 1 commit into
mainfrom
feat/spec-0002-0003-stage-b-waker-cli

Conversation

@todie

@todie todie commented Oct 16, 2026

Copy link
Copy Markdown
Member

Summary

Completes the four remaining horizon tracks across SPEC-0003 Stage B and SPEC-0002 Phases 2–4:

  1. Track 1 (SPEC-0003 Stage B Live Cortex Pool Driver & Daemon Entrypoint):

    • Implement CortexPoolDriver, InMemoryCortexPoolDriver, and HttpCortexPoolDriver (POST /v1/mesh/messages to pool:<capability> and GET /v1/mesh/message-status) in escapement-serve::pool with TCP loopback round-trip verification.
    • Wire Orchestrator::dispatch_next_to_pool and Orchestrator::poll_pool_status in escapement-serve.
    • Add ep serve [--bind <addr>] daemon entrypoint to ep.
  2. Track 2 (SPEC-0002 Phase 2 Unified CLI Completion & Spec Alignment):

    • Add --json output across ep plan, ep wal, ep lanes, and ep mesh.
    • Add --mermaid DAG output to ep plan render <path.json> --mermaid.
    • Align ROADMAP.md, specs/SPEC-0002-roadmap.md, and CHANGELOG.md.
  3. Track 3 (SPEC-0002 Phase 3 Scale-to-Zero Waker Health Gate):

    • Implement WakerProbe, TcpWakerProbe, WakerGateError, and WakerHealthGate (CrashLoopBackOff circuit breaker) in escapement-core::waker.
    • Wire Orchestrator::register_waker_target and Orchestrator::wake_capability.
  4. Track 4 (SPEC-0002 Phase 4 Algebraic & Property-Based Verification):

    • Add deterministic property-based invariant suites across ep-domain (TokenBucket conservation/cap, resolve_pool_job_state totality, max_pool_inflight bounds) and escapement-core (Plan Kahn DAG topological & permutation invariants, Changeset CRDT idempotence/associativity).

Verification

  • cargo fmt --all -- --check
  • cargo test -j 2 --workspace (242 unit & property tests passing)
  • cargo clippy -j 2 --workspace --all-targets -- -D warnings

…waker health gate, unified CLI flags, and property tests

- Add CortexPoolDriver, InMemoryCortexPoolDriver, and HttpCortexPoolDriver in escapement-serve::pool with TCP loopback round-trip verification
- Wire Orchestrator::dispatch_next_to_pool and Orchestrator::poll_pool_status for live Cortex capability pool dispatch and status reconciliation
- Implement WakerProbe, TcpWakerProbe, WakerGateError, and WakerHealthGate with CrashLoopBackOff circuit breaking in escapement-core::waker and Orchestrator
- Add --json output across ep plan, ep wal, ep lanes, and ep mesh, --mermaid DAG rendering, and ep serve [--bind <addr>] daemon entrypoint
- Add deterministic property-based invariant suites across ep-domain (TokenBucket, resolve_pool_job_state, max_pool_inflight) and escapement-core (Plan Kahn DAG topological/permutation invariants, Changeset CRDT idempotence/associativity)
- Align ROADMAP.md, specs/SPEC-0002-roadmap.md, and CHANGELOG.md

Co-authored-by: Gullveig <gullveig@types.unsigned.gg>
Reviewed-by: Mimir <mimir@unsigned.gg>
@todie
todie merged commit c0ba27d into main Oct 16, 2026
4 checks passed
@todie
todie deleted the feat/spec-0002-0003-stage-b-waker-cli branch October 16, 2026 05:42
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