Unify dispatch and add supervisor routing signals
This commit is contained in:
1 parent
f0b00e5fd2
commit
b63985694a
19 files changed
+1345
-812
No files matched your search
+34
-24
@@ -25,31 +25,41 @@ describe("operations review CLI formatters", () => {
|
||||
|
||||
it("formats packet details for show output", () => {
|
||||
expect(
|
||||
formatReviewShow({
|
||||
chatroomId: "room-1",
|
||||
id: "1-0",
|
||||
packet: {
|
||||
constraints: [],
|
||||
currentState: {},
|
||||
evidence: [
|
||||
{
|
||||
id: "e1",
|
||||
kind: "message",
|
||||
summary: "unclear message",
|
||||
},
|
||||
],
|
||||
expectedOutputSchema: "text",
|
||||
handoffReason: "low-confidence",
|
||||
sourceChain: ["onboarding", "supervisor"],
|
||||
summary: "needs review",
|
||||
userGoal: "의도 확인",
|
||||
formatReviewShow(
|
||||
{
|
||||
chatroomId: "room-1",
|
||||
id: "1-0",
|
||||
packet: {
|
||||
constraints: [],
|
||||
currentState: {},
|
||||
evidence: [
|
||||
{
|
||||
id: "e1",
|
||||
kind: "message",
|
||||
summary: "unclear message",
|
||||
},
|
||||
],
|
||||
expectedOutputSchema: "text",
|
||||
handoffReason: "low-confidence",
|
||||
sourceChain: ["onboarding", "supervisor"],
|
||||
summary: "needs review",
|
||||
userGoal: "의도 확인",
|
||||
},
|
||||
queuedAt: "2026-05-18T00:00:00.000Z",
|
||||
reason: "low-confidence",
|
||||
requestId: "request-1",
|
||||
target: "human-review",
|
||||
userId: "user-1",
|
||||
},
|
||||
queuedAt: "2026-05-18T00:00:00.000Z",
|
||||
reason: "low-confidence",
|
||||
requestId: "request-1",
|
||||
target: "human-review",
|
||||
userId: "user-1",
|
||||
}),
|
||||
[
|
||||
{
|
||||
action: "manual-reply",
|
||||
note: "handled",
|
||||
resolvedAt: "2026-05-18T01:00:00.000Z",
|
||||
resolvedBy: "operator@example.com",
|
||||
},
|
||||
],
|
||||
),
|
||||
).toContain("sourceChain: onboarding > supervisor");
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user