(paths: DecisionPaths, event: DecisionEvent)
| 210 | |
| 211 | /** Append a validated event atomically (single-line, concurrency-safe). */ |
| 212 | export function appendEvent(paths: DecisionPaths, event: DecisionEvent): void { |
| 213 | appendJsonl(paths.log, event); |
| 214 | } |
| 215 | |
| 216 | /** Read all events tolerantly (skips malformed/partial-tail lines). */ |
| 217 | export function readEvents(paths: DecisionPaths): DecisionEvent[] { |
no test coverage detected