Skip to content

Phase 6 hooks and audit#5

Merged
macaris64 merged 3 commits intomainfrom
phase-6-hooks-and-audit
Apr 18, 2026
Merged

Phase 6 hooks and audit#5
macaris64 merged 3 commits intomainfrom
phase-6-hooks-and-audit

Conversation

@macaris64
Copy link
Copy Markdown
Owner

No description provided.

macaris64 and others added 3 commits April 18, 2026 18:29
…e wired)

Implements §12.5 HookRunner (sequential, timeout, fail-fast) and §10.2
AuditSink (append-only NDJSON, flush on Drop, disabled no-op). Wires
hooks → dispatch → audit into LogicShell::dispatch; exposes audit() on
the façade. 183 tests pass; coverage 97.51% (gate: ≥90%).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- examples/demo.rs: runnable demo that exercises all phases 3–6 live
- tests/e2e.rs: 23 end-to-end tests covering config discovery, dispatch,
  hook pipeline, audit accumulation, exit codes, limits, and error paths
- config/discovery.rs: promote find_and_load to pub so E2E tests can pass
  env values directly (avoids process-env mutation races in parallel tests)

All 206 tests pass; coverage 97.60% (gate: ≥90%).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@macaris64 macaris64 merged commit 9da09c1 into main Apr 18, 2026
4 checks passed
@macaris64 macaris64 deleted the phase-6-hooks-and-audit branch April 18, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant