feat(FN-3593): add test isolation CI enforcement, fix stuck-requeue race, a
This merge lands five FN-3593 commits establishing a test isolation contract with a new `scripts/check-test-isolation.mjs` guard that scans for accidental `beforeEach`/`afterEach`/`beforeAll`/`afterAll` in setup helpers, plus per-package `setup-test-isolation.ts` bootstraps that canonicalize the pat Fusion-Task-Id: FN-3593
This commit is contained in:
@@ -1149,7 +1149,12 @@ export class HeartbeatMonitor {
|
||||
}
|
||||
|
||||
const runtimeConfig = agent.runtimeConfig as AgentHeartbeatConfig | undefined;
|
||||
const senderForcedWake = message.metadata?.wakeRecipient === true;
|
||||
// Only human-originated (user) messages may override an agent's
|
||||
// messageResponseMode setting. Agent-to-agent traffic must respect the
|
||||
// recipient's configured behavior to prevent agents from forcing wakes
|
||||
// on each other.
|
||||
const senderForcedWake =
|
||||
message.metadata?.wakeRecipient === true && message.fromType === "user";
|
||||
if (!senderForcedWake && runtimeConfig?.messageResponseMode !== "immediate") {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user