rdmbair15m5-changelog-20260923-1040-feat-20260831-15-request-routing
rdmbair15m5-changelog-20260923-1040-feat-20260831-15-request-routing
Implemented and verified the intelligent Request Routing and Live
Agent Dispatch Engine for Tyrell (FEAT-20260831-15),
ensuring requests route to existing project owners via live ticket
claims, spawn new worker sessions when needed, respect fleet worker
caps, and preserve ambiguous requests in the _nocontext
intake.
Scope
- Hosts:
rdmbair15m5(author),rdmsm4x(canonical hub) - Repos:
apps/Tyrell(commit3c10fb5),issues(commita379969)
Files Touched
Sources/TyrellCore/Routing/RequestRoutingModels.swift(new): DefinedIncomingRequest,LiveSessionTarget,SpawnSessionSpec,IntakeClarificationRecord,RequestDispatchDisposition, andRequestDispatchResult.Sources/TyrellCore/Routing/RequestRoutingEngine.swift(new): Core actor implementing deterministic request classification viaChatRouter, activeTicketLeaseowner routing, competitor prevention, worker cap gating (heldForCapacity), seed context assembly (SESSION-STATE.md), and rule 29 intake persistence (~/.tyrell/intake//_nocontext).Sources/TyrellCore/ChatRouting.swift: MadeChatRouter.tokenizepublic to support token extraction in routing engine.Sources/tyrell/Tyrell.swift: Addedtyrell request <prompt>CLI subcommand supporting--as,--ticket,--host,--agent, and--json.Package.swift: Added"Routing"directory toTyrellRemoteSupporttarget exclude list.Tests/TyrellCoreTests/RequestRoutingEngineTests.swift(new): 6 unit tests covering informational routing, live session routing, new session spawning, ambiguous intake preservation, worker cap holds, and lapsed claim recovery.
Verification Evidence
swift test --filter RequestRoutingEngineTests: 6/6 tests passed in 0.004s.swift build --target tyrell: Built cleanly with zero warnings or errors.- CLI verification:
tyrell request "#tyrell status is nominal" --json: Output valid JSON withinformational_delivered.tyrell request "#tyrell resume work on container tests": OutputSPAWNED_NEW_SESSIONwith launch command and targetclaude@rdmsm4x/tyrell.tyrell request "resume work on FEAT-20260831-15": OutputPENDING_CLARIFICATIONand wrote intake file without guessing.
- Pushed to
origin(git.ecs0.net:git/apps/Tyrell.git) andbackup(https://github.com/richhdoty/rdmsm4x-dev-apps-tyrell.git). - Pulled into canonical tree on
rdmsm4x:~/dev/apps/Tyrell. - Ticket
FEAT-20260831-15resolved onrdmsm4xand pushed across remotes. - Broadcast sent across message bus
(
20260923-104017-98291C39).
Rollback / Undo
git revert 3c10fb5inapps/Tyrell.ticket reopen FEAT-20260831-15onrdmsm4x.