docs(integrations): decision-sink demo — run the cpex#166 seam end-to-end and print the OCSF records - #479
Merged
Conversation
…-end and print the OCSF records Four finalized DecisionLogs through the sink-mode emitter: allow, allow-after-modification, deny (violation at status_code/status_detail), and suppressed deny (deny_ignored flag + aborted step). Deterministic output; complements emit_sample's dispatch/chain half. Verified live against cpex feat/audit-seam @ 386710a: 32/32 tests, both examples. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0112fqxp71zJFg7ENqUoSGEA
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the CPEX ↔ audit-seam ↔ plugin integration (#456/#457, cpex#166) visibly runnable in one command.
What it adds
examples/decision_sink_demo.rs— builds a sink-mode emitter (nohooks:, so it attaches as anAuditHandlerexactly as in production), feeds it four finalizedDecisionLogs the way the executor would (ordered steps, terminal verdict, span,(epoch, stream_id, stream_seq, emission_seq)stamps), and pretty-prints the resulting OCSF records:action: Allowed / disposition: Allowedaction: Modified(never re-coded as a plain allow)action: Denied / disposition: Blocked, violation atstatus_code/status_detail— the record a post-hook observer can never producedeny_ignored: trueflag plus per-stepdeny_ignored/abortedactions — "every suppressed transform deny" as one SIEM queryDeterministic timestamps and stream stamps, mirroring
emit_sample(which remains the dispatch-half demo: hash chain + DSSE verification).Verified live before this PR
feat/audit-seam@386710a, rustc 1.96 (MSRV pin honored)cargo test: 32/32 greencargo run --example decision_sink_demoandcargo run --example emit_sampleboth produce the expected output (chain checks and DSSE verification alltrue)Run it
Docs/demo only — no product code changes. CHANGELOG entry included.
🤖 Generated with Claude Code
https://claude.ai/code/session_0112fqxp71zJFg7ENqUoSGEA
Generated by Claude Code