(id: string, over: Partial<DecisionEvent> = {})
| 27 | const PEM_SECRET = "-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEA\n-----END RSA PRIVATE KEY-----"; |
| 28 | |
| 29 | function decide(id: string, over: Partial<DecisionEvent> = {}): DecisionEvent { |
| 30 | return { |
| 31 | id, kind: "decide", decision: `d-${id}`, scope: "repo", |
| 32 | date: over.date || `2026-01-01T00:00:0${id}Z`, source: "agent", ...over, |
| 33 | }; |
| 34 | } |
| 35 | |
| 36 | describe("validateDecide", () => { |
| 37 | it("accepts a well-formed decision and stamps id + date", () => { |
no outgoing calls
no test coverage detected