Commit Graph

21 Commits

Author SHA1 Message Date
William Valentin 0b8f7c7299 feat(audit): add phase-0 baseline summary tooling
Diagrams reviewed: docs/architecture/AGENT_DIAGRAM.md, docs/architecture/GATEWAY_SESSIONS_AND_QUEUE.md, docs/api/PROTOCOL.md (no changes required).
2026-02-25 09:14:38 -08:00
William Valentin 23b813a92f feat(audit): add phase0 run/reaction baseline audit events 2026-02-25 00:12:31 -08:00
William Valentin c5b310c852 feat(audit): add guard-coverage thresholds to canary gate 2026-02-23 22:38:14 -08:00
William Valentin 34d1562ce8 feat(audit): add sample-size gate thresholds for canary evaluation 2026-02-23 22:34:50 -08:00
William Valentin afddd1ba7a feat(audit): add pi canary summary analyzer and cli script 2026-02-23 22:26:29 -08:00
William Valentin a389cd659c feat(routing): add pi canary guardrails and backend audit telemetry 2026-02-23 21:13:01 -08:00
William Valentin 5b95eb1874 fix(audit): expand tilde paths for audit log output 2026-02-23 17:10:53 -08:00
William Valentin db4e52dd7e Harden audio transcription arg hydration and add rewrite audit event 2026-02-22 18:56:22 -08:00
William Valentin 01cd726d7c feat(gateway): add interrupt preemption telemetry and requester notice 2026-02-19 11:48:41 -08:00
William Valentin 88f6ae5b7a feat(backends): add external-to-external failover before native fallback 2026-02-17 15:43:31 -08:00
William Valentin 898828bb70 feat(audit): log backend routing decisions and fallback events 2026-02-17 15:43:23 -08:00
William Valentin 21d57d991c feat(commands,audit): add /context command and proactive compaction audit events 2026-02-16 16:08:21 -08:00
William Valentin 9b76c75e82 feat(audit): record user action events across gateway and channels 2026-02-16 13:21:15 -08:00
William Valentin 23609a03a4 feat(skills): add install-by-registry-id flow 2026-02-16 00:35:10 -08:00
William Valentin 948d4ac6d8 chore(lint): burn down remaining warnings to zero 2026-02-15 23:14:21 -08:00
William Valentin 735f14d0b1 feat(security): add /elevate command and audit events 2026-02-15 16:56:49 -08:00
William Valentin 56e887a6bf feat(skills): audit scan results and block unroutable skills 2026-02-15 11:06:52 -08:00
William Valentin 28304ac397 feat(audit): add correlation ids and redaction 2026-02-15 10:16:58 -08:00
William Valentin 9f81c01603 feat(session): persist model tier overrides per session
Store per-session config in SQLite and route /model and /reset through command fast-paths so channel sessions keep independent model selection across reconnects and restarts.
2026-02-13 01:04:26 -08:00
William Valentin 90ce622080 feat(policy): enforce truthfulness and autonomy guardrails
Add runtime truthfulness modes and autonomy-level tool gating with audit metadata for overrides/denials.

Wire policy through prompt assembly, tool execution context, and daemon/gateway agent paths; update tests and planning state for Phase 3 PR #2 completion.
2026-02-12 16:06:45 -08:00
William Valentin d62e836b5d feat(audit): Add core audit logging infrastructure
- Add AuditLogger class with rotation support
- Add audit configuration to config schema
- Instrument tool execution with full audit logging
- Instrument session lifecycle (create, message, delete, transfer, compact)
- Add audit logger initialization in daemon
- Add cron scheduler audit logging

Audit events captured:
- tool.start/success/error/denied
- session.create/message/delete/transfer/compact
- cron.trigger/add/remove

All logs go to ~/.local/share/flynn/audit.log (JSON lines)
with rotation (10MB files, 30-day retention)
2026-02-11 15:58:07 -08:00