test(orchestration): assert takeover pane binding on the Run row, not the receipt

This commit is contained in:
Jinwoo-H
2026-09-04 14:09:08 -04:00
parent 4eb6ae1bc5
commit 04ce320e58
2 changed files with 8 additions and 10 deletions
@@ -81,13 +81,12 @@ describe('legacy takeover by current runtime authority', () => {
expect(response).toMatchObject({
ok: true,
result: {
run: {
id: harness.adoptedRunId,
coordinator_handle: CURRENT_COORDINATOR_HANDLE,
coordinator_pane_key: CURRENT_COORDINATOR_PANE
}
run: { id: harness.adoptedRunId, coordinator_handle: CURRENT_COORDINATOR_HANDLE }
}
})
expect(harness.db.getRun(harness.adoptedRunId)?.coordinator_pane_key).toBe(
CURRENT_COORDINATOR_PANE
)
})
it('requires a runtime-issued SSH attachment for fresh launch proof', async () => {
@@ -284,12 +284,11 @@ describe('orchestration runtime update settlement', () => {
expect(spoofed).toMatchObject({ ok: false, error: { code: 'stable_pane_required' } })
expect(firstResult).toMatchObject({
run: {
id: harness.adoptedRunId,
coordinator_handle: CURRENT_COORDINATOR_HANDLE,
coordinator_pane_key: CURRENT_COORDINATOR_PANE
}
run: { id: harness.adoptedRunId, coordinator_handle: CURRENT_COORDINATOR_HANDLE }
})
expect(harness.db.getRun(harness.adoptedRunId)?.coordinator_pane_key).toBe(
CURRENT_COORDINATOR_PANE
)
expect(replayResult).toMatchObject({
run: firstResult.run,
mutation: { requestId: 'authenticated-takeover', replayed: true }