Function
runtime
(runtimeId: string, ownerId: string, status: "running" | "completed" = "running")
Source from the content-addressed store, hash-verified
| 4 | const timestamp = "2026-05-26T00:00:00.000Z" |
| 5 | |
| 6 | function runtime(runtimeId: string, ownerId: string, status: "running" | "completed" = "running") { |
| 7 | return { |
| 8 | runtimeId, |
| 9 | kind: "agent", |
| 10 | status, |
| 11 | scope: { |
| 12 | ownerType: "job", |
| 13 | ownerId, |
| 14 | }, |
| 15 | startedAt: timestamp, |
| 16 | updatedAt: timestamp, |
| 17 | lastActivityAt: timestamp, |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | describe("RuntimeRecordCache", () => { |
| 22 | it("stores scoped runtime records and rejects malformed legacy flat records", () => { |
Tested by
no test coverage detected