Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions apps/server/src/orchestration/projector.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,25 @@ describe("orchestration projector", () => {
payload: {
callId: "spawn-call-1",
agentThreadId: "agent-thread-1",
transcriptAgentId: "codex-exec:agent-thread-1",
agentPath: "/root/durable_identity",
agentNickname: "Identity",
model: "gpt-5.6-sol-2026-08-01",
modelSource: "provider",
status: "running",
},
},
// A provider that settles an agent out-of-band states only the spawn call
// and the outcome; everything already known has to survive it.
{
id: "settle-metadata",
payload: {
callId: "spawn-call-1",
status: "completed",
resultBody: "Traced it.",
resultCreatedAt: "2026-08-13T12:00:09.000Z",
},
},
];

for (const [index, activity] of metadataActivities.entries()) {
Expand Down Expand Up @@ -196,7 +208,7 @@ describe("orchestration projector", () => {
projectEvent(
model,
makeEvent({
sequence: index + 4,
sequence: index + metadataActivities.length + 2,
type: "thread.activity-appended",
aggregateKind: "thread",
aggregateId: "thread-subagents",
Expand All @@ -211,7 +223,7 @@ describe("orchestration projector", () => {
summary: `Filler ${index}`,
payload: {},
turnId: null,
sequence: index + 4,
sequence: index + metadataActivities.length + 2,
createdAt: "2026-08-13T12:01:00.000Z",
},
},
Expand All @@ -229,16 +241,19 @@ describe("orchestration projector", () => {
expect.objectContaining({
id: "agent-thread-1",
agentThreadId: "agent-thread-1",
transcriptAgentId: "codex-exec:agent-thread-1",
spawnCallId: "spawn-call-1",
nickname: "Identity",
role: "durable_identity",
objective: "Trace durable identity",
status: "running",
status: "completed",
requestedModel: "gpt-5.6-sol",
resolvedModel: "gpt-5.6-sol-2026-08-01",
reasoningEffort: "high",
modelProvenance: "explicit",
reasoningEffortProvenance: "explicit",
resultBody: "Traced it.",
resultCreatedAt: "2026-08-13T12:00:09.000Z",
}),
]);
});
Expand Down
Loading
Loading