feat(FN-3703): implement assigned-agent triage inheritance in engine and tr
Implements assigned-agent triage inheritance (FN-3703), allowing triage logic to be delegated to the assigned agent rather than always routing through the original owner, with test coverage and documentation. Also adds immediate wake controls for agent inbox and message API (FN-3087), wires shared s Fusion-Task-Id: FN-3703
This commit is contained in:
@@ -3174,7 +3174,7 @@ describe("Messaging Routes", () => {
|
||||
expect(executeHeartbeat).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("uses project-scoped heartbeat monitor resolution when default monitor belongs to another root", async () => {
|
||||
it("no-ops wakeImmediately when monitor root does not match and no scoped project context is provided", async () => {
|
||||
const defaultExecuteHeartbeat = vi.fn().mockResolvedValue({ id: "run-default" });
|
||||
const projectExecuteHeartbeat = vi.fn().mockResolvedValue({ id: "run-project" });
|
||||
|
||||
@@ -3217,11 +3217,7 @@ describe("Messaging Routes", () => {
|
||||
|
||||
expect(res.status).toBe(201);
|
||||
expect(defaultExecuteHeartbeat).not.toHaveBeenCalled();
|
||||
expect(projectExecuteHeartbeat).toHaveBeenCalledWith({
|
||||
agentId: "agent-project-scope",
|
||||
source: "on_demand",
|
||||
triggerDetail: "wake-on-message",
|
||||
});
|
||||
expect(projectExecuteHeartbeat).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("returns created message even when wakeImmediately execution throws", async () => {
|
||||
|
||||
Reference in New Issue
Block a user