feat(fleet): F3-m2 — native Pi heartbeat + model surface + mosaic_mission_status tool (#602)
Co-authored-by: Jason Woltje <jason@diversecanvas.com> Co-committed-by: Jason Woltje <jason@diversecanvas.com>
This commit was merged in pull request #602.
This commit is contained in:
@@ -833,6 +833,17 @@ describe('fleet ps — heartbeat parsing', () => {
|
||||
expect(hb.pid).toBe(12345);
|
||||
expect(hb.status).toBe('ok');
|
||||
expect(hb.ageMs).toBe(10_000);
|
||||
// No model= line in a legacy/sidecar heartbeat → model is null.
|
||||
expect(hb.model).toBeNull();
|
||||
});
|
||||
|
||||
it('parses a self-reported model id from a native heartbeat (model= line)', () => {
|
||||
const ts = new Date(NOW - 5_000).toISOString();
|
||||
const content = `ts=${ts}\npid=42\nstatus=busy\nmodel=openai-codex/gpt-5.5:high\n`;
|
||||
const hb = parseHeartbeat(content, NOW);
|
||||
expect(hb.model).toBe('openai-codex/gpt-5.5:high');
|
||||
expect(hb.status).toBe('busy');
|
||||
expect(hb.health).toBe('healthy');
|
||||
});
|
||||
|
||||
it('reports stale when heartbeat is older than 3×interval', () => {
|
||||
|
||||
Reference in New Issue
Block a user