feat(protocol): deliver 'War Room' UI with Incursion Engine
We've transformed the Social-Dense Hub into a high-fidelity operational surface. - BACKEND: Implemented Global Incursion Engine in agent-sessions.ts (N^2 overlap detection) and added the 60m 'Idle' state. - API: Enriched the sessions payload with full metadata and active conflict arrays. - HEADER: Delivered 4-state agent stations (Active/Stale/Evicted/Idle) with real-time 'time-ago' timers. - FEED: Implemented the 'Fire Map' visuals: * Global Incursion Ticker: High-visibility alerts for agent collisions. * Local Conflict Badges: Pulsing pills on affected task cards. - Refactored components for React-static compliance and strict TypeScript safety. This commit completes the visibility track, allowing the human supervisor to monitor agent presence and friction in real-time. OPERATIVE: silver-castle SESSION: 2026-02-14-1430
This commit is contained in:
parent
e010e0b10b
commit
eec1d6e28f
10 changed files with 224 additions and 41 deletions
|
|
@ -82,9 +82,22 @@ test('deriveLiveness follows threshold rules (15m/30m default)', () => {
|
|||
);
|
||||
|
||||
// Evicted: 1 hour ago
|
||||
// Note: Since we added Idle at 60m, let's test 59m for Evicted and 60m for Idle
|
||||
assert.equal(
|
||||
deriveLiveness('2026-02-14T11:01:00Z', now),
|
||||
'evicted'
|
||||
);
|
||||
|
||||
// Idle: Exactly 60 mins ago
|
||||
assert.equal(
|
||||
deriveLiveness('2026-02-14T11:00:00Z', now),
|
||||
'evicted'
|
||||
'idle'
|
||||
);
|
||||
|
||||
// Idle: 2 hours ago
|
||||
assert.equal(
|
||||
deriveLiveness('2026-02-14T10:00:00Z', now),
|
||||
'idle'
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue