test: align gate timeline stub and imports

This commit is contained in:
Brennan Benson
2026-09-15 10:49:44 -07:00
parent ac9661196e
commit 3e5deccfc0
2 changed files with 6 additions and 3 deletions
@@ -1,4 +1,4 @@
import { mkdtemp, rm } from 'node:fs/promises'
import { mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
@@ -14,7 +14,10 @@ import {
AGENT_SESSION_CLAIM_KEY_RETENTION_MS,
AgentSessionRecordStore
} from './agent-session-record-store'
import { agentSessionStorePath } from './agent-session-record-store-file'
import {
AGENT_SESSION_STORE_FILE_NAME,
agentSessionStorePath
} from './agent-session-record-store-file'
import type { AgentSessionReserveRequest } from './agent-session-reservation-admission'
const BAD_OP_STORE = '{"schemaVersion":0,"hostId":"","records":{},"operations":{"x":0}}'
@@ -45,7 +45,7 @@ describe('structured mailbox pointer host', () => {
// then delivered mid-turn, which Codex coalesces into the running turn and Claude queues behind
// it -- either way folded into work already in flight rather than read as a new instruction.
const items = [runningTurn(), ...transcript(500)]
hostRef.current = { currentOwnerJournalItems: () => items }
hostRef.current = { journalSnapshot: () => ({ items }) }
expect(createStructuredMailboxPointerHost().readGateFacts('s1')).toEqual({
turnRunning: true,
awaitingHuman: false