fix: simplify and stabilize runtime service routing

This commit is contained in:
ejclaw
2026-04-09 22:49:20 +09:00
parent 0461e401e8
commit 5714348897
17 changed files with 1911 additions and 1387 deletions

View File

@@ -28,7 +28,7 @@ describe('buildRoomRoleContext', () => {
});
});
it('prefers the canonical reviewer shadow over a stale compatibility field', () => {
it('uses the stored reviewer service id from the lease row as-is', () => {
expect(
buildRoomRoleContext(
{
@@ -43,13 +43,13 @@ describe('buildRoomRoleContext', () => {
reason: null,
explicit: true,
},
'codex-review',
'stale-reviewer-shadow',
),
).toEqual({
serviceId: 'codex-review',
serviceId: 'stale-reviewer-shadow',
role: 'reviewer',
ownerServiceId: 'claude',
reviewerServiceId: 'codex-review',
reviewerServiceId: 'stale-reviewer-shadow',
ownerAgentType: 'claude-code',
reviewerAgentType: 'codex',
failoverOwner: false,