feat(audit): add backend-scoped phase0 live baseline capture
This commit is contained in:
@@ -1629,6 +1629,12 @@ Live baseline artifacts (sample JSONL + JSON/Markdown summaries) can be captured
|
||||
pnpm audit:phase0-baseline:live
|
||||
```
|
||||
|
||||
Backend-scoped channel windows:
|
||||
```bash
|
||||
pnpm audit:phase0-baseline:live:pi
|
||||
pnpm audit:phase0-baseline:live:native
|
||||
```
|
||||
|
||||
One-shot refresh for both channel + gateway live windows:
|
||||
```bash
|
||||
pnpm audit:phase0-baseline:live:refresh
|
||||
@@ -1645,17 +1651,19 @@ Gateway-origin windows can be captured separately (for example when validating c
|
||||
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:
|
||||
The gateway command auto-selects the most recent session window containing both `run.cancel` and `run.state=cancelled` (with configurable padding). You can also capture explicit backend-scoped channel windows by restricting source/backend/time bounds:
|
||||
```bash
|
||||
node --import tsx/esm scripts/capture-phase0-live-baseline.ts \
|
||||
--audit ~/.local/share/flynn/audit.log \
|
||||
--source gateway \
|
||||
--source channel \
|
||||
--backend pi_embedded \
|
||||
--since <epoch_ms_or_iso> \
|
||||
--until <epoch_ms_or_iso> \
|
||||
--sample-out docs/plans/artifacts/phase0_baseline_live_gateway_<tag>.jsonl \
|
||||
--summary-json-out docs/plans/artifacts/phase0_baseline_live_gateway_<tag>.json \
|
||||
--summary-md-out docs/plans/artifacts/phase0_baseline_live_gateway_<tag>.md
|
||||
--sample-out docs/plans/artifacts/phase0_baseline_live_backend_pi_embedded_<tag>.jsonl \
|
||||
--summary-json-out docs/plans/artifacts/phase0_baseline_live_backend_pi_embedded_<tag>.json \
|
||||
--summary-md-out docs/plans/artifacts/phase0_baseline_live_backend_pi_embedded_<tag>.md
|
||||
```
|
||||
Use `--backend native` for native-only windows, or omit `--backend` for all backends.
|
||||
|
||||
## Gateway Lock
|
||||
|
||||
|
||||
Reference in New Issue
Block a user