feat(audit): automate gateway phase0 live-window capture

This commit is contained in:
William Valentin
2026-02-26 23:56:30 -08:00
parent 5a34e986bf
commit 826df1d35b
12 changed files with 310 additions and 21 deletions
+11 -1
View File
@@ -1629,7 +1629,17 @@ Live baseline artifacts (sample JSONL + JSON/Markdown summaries) can be captured
pnpm audit:phase0-baseline:live
```
Gateway-origin windows can be captured separately (for example when validating cancel paths) by restricting source + time window:
One-shot refresh for both channel + gateway live windows:
```bash
pnpm audit:phase0-baseline:live:refresh
```
Gateway-origin windows can be captured separately (for example when validating cancel paths):
```bash
pnpm audit:phase0-baseline:live:gateway
```
The gateway command auto-selects the most recent session window containing both `run.cancel` and `run.state=cancelled` (with configurable padding). You can still capture explicit windows by restricting source + time bounds:
```bash
node --import tsx/esm scripts/capture-phase0-live-baseline.ts \
--audit ~/.local/share/flynn/audit.log \