Skip to content

feat(runtime): add durable worker routing - #3

Merged
jermur788 merged 2 commits into
mainfrom
rte/rte-020-routing-persistence
Oct 27, 2026
Merged

jermur788 merged 2 commits into
mainfrom
rte/rte-020-routing-persistence

Conversation

@jermur788

Copy link
Copy Markdown
Owner

Adds durable, provider-neutral worker routing for Runtime tasks, Development Profiles, and project overrides. One resolver applies explicit > task > project > profile > ordinary inheritance with deterministic continue/inherit/fail behavior and resolution-time eligibility from existing T3 provider state.

Persistence uses fork migration 4 (RuntimeRouting) for profile and project routing, while task routing stays under the existing task CAS. Read/save/resolve RPCs are added; no execution, child-worker launch, or EventSink hook is included in this gate.

Qualified head: 0221fbbbceb5c3e43d97590dfbcc4713fd719854.

Model/harness: OpenCode / DeepSeek V4.1 Flash.

Add provider-neutral routing contracts for Runtime tasks, Development Profiles, and project overrides. One resolver applies explicit > task > project > profile > inheritance with deterministic continue/inherit/fail behavior and resolution-time eligibility from existing T3 provider state.

Add fork migration 4 for profile routing and project routing persistence, keep task routing under the existing task CAS, and expose read/save/resolve RPCs. No execution path is added in this gate.
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Oct 27, 2026
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB −29 B (−0.6%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB −29 B (−2.3%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.6 KiB 21.5 KiB −41 B (−0.2%) 24.4 KiB ✅
Codex Live turn messages 2 1 −1 (−50.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB +29 B (+0.6%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.3 KiB +29 B (+2.3%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB +41 B (+0.2%) 24.4 KiB ✅
Claude Live turn messages 1 2 +1 (+100.0%) 8 ✅

Baseline: 066f7fb · PR result: 6f32821 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

The dev-db migration fixture still expected fork migrations 1-3. Add RuntimeRouting as migration 4 so the test matches the shipped fork ledger.
@jermur788
jermur788 merged commit bbefeb3 into main Oct 27, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant