Introducing a new way to review your PRs.

Read the announcement

sheeki03 / tirith

Terminal security for developers and AI agents. Intercepts homograph URLs, pipe-to-shell, ANSI injection, obfuscated payloads, data exfiltration, and malicious AI skills/configs before they execute.

View on GitHub

19 documents · Updated Nov 23, 2026

docs / audit-data-and-reporting-outputs

Audit data and reporting outputs

Tirith turns security decisions and related operator activity into local audit data that can be checked, filtered, summarized, and shared in several output formats. The same data supports a local dashboard, compliance reports, machine-readable scan results, and controlled redaction workflows without making reporting depend on a live service. This page expands the data and output view of Audit observability and reporting.

Audit event collection

The audit stream is a JSON Lines file at the Tirith data directory's log.jsonl path. Each non-empty line represents one event and carries time, session, action, rule, and source context; command text is stored as a short redacted preview rather than as the full command. Free-form fields also cross a durable privacy boundary before serialization, so public serialization and debugging cannot bypass secret projection (crates/…/audit.rs• L48-105, crates/…/audit.rs• L252-327, crates/…/audit.rs• L2215-2280).

The event type separates enforcement history from other activity. The main event types are:

Event typeReporting purpose
verdictRecords an analyzed command and its final action such as Allow, Warn, or Block.
hook_telemetryRecords integration and hook activity without presenting the event as a security verdict.
trust_changeRecords changes to trusted patterns, rules, scopes, or expiry.
task_boundaryRecords a recordable owned-boundary assessment and its allow, require_approval, or deny outcome.
artifact_receiptLinks an artifact scan receipt to the audit chain through its receipt ID and content hash.
capsule_run_receiptLinks a capsule-run receipt to the audit chain and records its containment status.

Verdict records can also retain the raw action and raw rule IDs from before later policy processing. This lets reports compare what detection found with what the active policy presented, while the effective action remains the primary enforcement result (crates/…/audit.rs• L2149-2160, crates/…/audit.rs• L2222-2279). Receipt details are not accepted as arbitrary digest-shaped text. They are written only after Tirith proves them against the saved owner-only receipt, which keeps the audit chain tied to the recorded artifact or capsule result (crates/…/audit.rs• L378-415, crates/…/audit.rs• L2457-2489, crates/…/audit.rs• L2568-2580).

Event write path

When Tirith finishes a command analysis, it builds a verdict event, redacts the command, and appends the event before it considers optional remote upload. Ordinary audit logging does not change the security verdict when logging is unavailable; operations that require a recorded audit append can instead fail rather than authorize an unrecorded action (crates/…/audit.rs• L2124-2137, crates/…/audit.rs• L2175-2197, crates/…/audit.rs• L2282-2300).

The append path uses an exclusive file lock and writes a durable line. Newer entries form a hash chain, and a per-log head receipt detects tail loss. An optional Ed25519 key adds signatures to the chain and to its head receipt. Verification tolerates an older unchained prefix but reports breaks, invalid JSON, missing signatures, or missing anchors as problems. Reads and diagnostics remain bounded so a damaged or hostile log cannot force an unbounded scan (crates/…/audit.rs• L581-607, crates/…/audit.rs• L729-955, crates/…/audit.rs• L1637-1655).

This diagram shows how an event becomes a local record and how the record can later support integrity checks or delivery.

flowchart LR
    A[Command or operator event] --> B[Build audit event]
    B --> C[Durable privacy projection]
    C --> D[Append to local JSONL log]
    D --> E[Hash chain and head receipt]
    D --> F[Optional upload spool]
    E --> G[Verify or report]

References: crates/…/audit.rs• L2124-2300 crates/…/audit.rs• L378-415 crates/…/audit.rs• L1637-1655

Cross-event correlation

Tirith also keeps a bounded per-session view of typed activity for sequence checks that are stronger than one command in isolation. A typed event records a coarse event kind such as a secret write, network action, file deletion, or force-push together with a time, rule, provenance, and small metadata set; the session owner controls persistence while the correlation logic remains local to the event window (crates/…/event_buffer.rs• L1-14, crates/…/event_buffer.rs• L24-88).

Correlation produces at most one hit per rule for a request. It recognizes short sequences such as secret write followed by network egress, dependency-manifest change followed by network egress, file deletion followed by force-push, and a burst of non-build file deletion. Confirmed, unresolved, and provisional source evidence affect the wording and preserve a conservative result when execution proof is incomplete (crates/…/event_buffer.rs• L804-830, crates/…/event_buffer.rs• L833-868, crates/…/event_buffer.rs• L1075-1245).

The typed event and correlation boundaries apply the same public privacy projection before matching, describing, or signing a hit. Stable session sequence data supports de-duplication and expiry without carrying an opaque event identity into a report (crates/…/event_buffer.rs• L202-255, crates/…/event_buffer.rs• L636-669, crates/…/event_buffer.rs• L977-1072).

References: crates/…/event_buffer.rs• L1-14 crates/…/event_buffer.rs• L202-255 crates/…/event_buffer.rs• L804-868 crates/…/event_buffer.rs• L1075-1245

Remote upload queue

If a server URL and API key are configured, a successfully written audit line is copied to a durable local queue before background delivery. The queue is bounded by event count and byte size, keeps newer events when retention is needed, retries temporary failures, and stops at authentication failures. The command path does not wait for network delivery (crates/…/audit_upload.rs• L42-64, crates/…/audit_upload.rs• L106-143, crates/…/audit_upload.rs• L180-263, crates/…/audit_upload.rs• L347-420).

References: crates/…/audit_upload.rs• L42-64 crates/…/audit_upload.rs• L106-143 crates/…/audit_upload.rs• L180-263 crates/…/audit_upload.rs• L347-420

Audit data processing

Audit readers parse the JSONL stream into tolerant records so older entries remain usable when new fields appear. A full read streams the file line by line. Diagnostic views can instead inspect only the newest records from a bounded tail; they report when older history was not inspected. Malformed lines are skipped and counted for reporting, while an I/O read failure is a read failure rather than a malformed event (crates/…/audit_aggregator.rs• L115-149, crates/…/audit_aggregator.rs• L150-167, crates/…/audit_aggregator.rs• L271-317, crates/…/audit_aggregator.rs• L320-357).

Filtering is the shared step before export, statistics, or reports. It can narrow records by time range, session, action, rule ID, and event type. By default, reporting views use verdict events; callers must ask for telemetry or all supported events when they need a different population (crates/…/audit_aggregator.rs• L73-89, crates/…/audit_aggregator.rs• L364-437).

Audit summaries

Verdict statistics describe command count, finding count, action counts, block rate, sessions, time range, and the most common rules. The statistics also retain raw finding totals so a reader can distinguish pre-policy detection volume from the effective findings shown to the user (crates/…/audit_aggregator.rs• L91-105, crates/…/audit_aggregator.rs• L439-530).

Hook telemetry has a separate summary because hook events are operational signals rather than commands. Its view groups event counts by integration and also reports the most common event names (crates/…/audit_aggregator.rs• L107-113, crates/…/audit_aggregator.rs• L532-564).

References: crates/…/audit_aggregator.rs• L91-113 crates/…/audit_aggregator.rs• L439-564

Audit-based policy guidance

The policy-tuning workflow uses verdict history to make conservative suggestions. It reports no suggestion when the sample is too small, never recommends a downgrade for a rule that sometimes blocks, and never edits the policy. A frequently allowed or bypassed rule can produce a review suggestion, while a short list of rules that never fired is informational only (crates/…/audit_tune.rs• L1-9, crates/…/audit_tune.rs• L80-90, crates/…/audit_tune.rs• L130-229).

References: crates/…/audit_tune.rs• L1-9 crates/…/audit_tune.rs• L80-90 crates/…/audit_tune.rs• L130-244

Dashboard data

The dashboard is a point-in-time local snapshot. It combines a seven-day verdict summary with effective local policy state, threat database status, trust and canary counts, and shell-hook state. It is read-only, does not fetch a remote policy, and treats missing sources as unavailable or empty instead of turning a missing source into a false healthy result (crates/…/dashboard.rs• L33-58, crates/…/dashboard.rs• L174-202, crates/…/dashboard.rs• L295-358).

The audit part of the snapshot contains action counts, top findings, top hosts extracted from redacted command previews, session count, block rate, and the number of skipped malformed lines. A broken policy is represented as an explicit parse-error state with no populated policy values. A missing policy file instead represents genuine built-in defaults, while a valid file represents the effective local policy after read-only overlays (crates/…/dashboard.rs• L60-80, crates/…/dashboard.rs• L204-243, crates/…/dashboard.rs• L315-389).

This diagram shows how local sources become one dashboard snapshot and then move to a human or machine consumer.

flowchart LR
    A[Local audit log] --> B[Seven-day verdict filter]
    B --> C[Counts and top findings]
    B --> D[Best-effort top hosts]
    E[Policy, threat DB, trust, canary, hook state] --> F[Dashboard snapshot]
    C --> F
    D --> F
    F --> G[HTML or JSON output]

The snapshot reads local files through bounded regular-file reads. This prevents a non-file source or an oversized source from hanging or consuming unbounded memory. The snapshot records an unavailable or error state when the source cannot be trusted (crates/…/dashboard.rs• L204-218, crates/…/dashboard.rs• L315-345, crates/…/dashboard.rs• L460-497).

References: crates/…/dashboard.rs• L33-80 crates/…/dashboard.rs• L174-243 crates/…/dashboard.rs• L295-389 crates/…/dashboard.rs• L460-497

Output rendering

Tirith renders security data for different readers: people use terminal, Markdown, or HTML; scripts use JSON or CSV; and security tools use SARIF. Every output boundary treats audit text, paths, rule names, scan descriptions, and suggestion prose as untrusted data.

Verdict output

Verdict output has separate human and machine paths. Human findings go to stderr and use terminal-safe text, optional color, bounded presentation, and remediation or bypass guidance. JSON goes to the supplied writer as one versioned document and can include per-finding remediation, policy diagnostics, and optional safe-command suggestions (crates/…/output.rs• L146-190, crates/…/output.rs• L236-310, crates/…/output.rs• L313-363).

The JSON writer redacts before it applies output bounds and then applies the public projection again to the complete response. An executable safe-command suggestion is kept only when redaction and display cleanup leave its verified bytes unchanged. Otherwise the command is withheld while its guidance remains available. Human output uses one invocation-level byte budget so finding text, coverage text, provenance, and suggestions share one truncation marker (crates/…/output.rs• L192-234, crates/…/output.rs• L253-310, crates/…/output.rs• L38-103, crates/…/output.rs• L728-792).

References: crates/…/output.rs• L38-121 crates/…/output.rs• L146-234 crates/…/output.rs• L236-363 crates/…/output.rs• L728-792

Dashboard HTML

The dashboard HTML is self-contained and has no external resources or tracking. It presents activity cards, action tables, top findings, top hosts, policy status, threat database status, trust and canary counts, and shell-hook state (crates/…/template.html• L35-67).

Snapshot strings remain raw until the HTML boundary, where every substituted value is escaped. Template expansion is single-pass, so marker-like text in a snapshot value cannot create a second dashboard section. A local export is published atomically as an owner-only file on Unix (crates/…/dashboard.rs• L522-645, crates/…/dashboard.rs• L221-345).

The optional server binds only to IPv4 loopback. It uses a fresh in-memory token, expires that token after one hour using a monotonic clock, rejects foreign Host headers, and applies response headers that prevent caching and external resource use. In JSON mode, export and serve return structured JSON on stdout; human status and warnings stay out of that stream (crates/…/dashboard.rs• L524-555, crates/…/dashboard.rs• L197-219, crates/…/dashboard.rs• L348-447, crates/…/dashboard.rs• L469-585).

References: crates/…/dashboard.rs• L522-645 crates/…/template.html• L35-67 crates/…/dashboard.rs• L197-219 crates/…/dashboard.rs• L221-345 crates/…/dashboard.rs• L348-585

Audit reports

audit report creates a compliance-oriented view from filtered verdict records. Markdown and HTML show an executive summary, action breakdown, top rules, and up to 50 blocked command previews. JSON returns the statistics and the filtered records for downstream processing (crates/…/audit_aggregator.rs• L659-731, crates/…/audit_aggregator.rs• L733-840, crates/…/audit.rs• L336-418).

CSV is a verdict-only export with a stable existing column order and an appended agent_origin value when caller origin is available. Caller-controlled cells are neutralized when they begin with spreadsheet formula characters, then escaped for RFC 4180 consumers (crates/…/audit_aggregator.rs• L566-657).

References: crates/…/audit_aggregator.rs• L566-657 crates/…/audit_aggregator.rs• L659-840 crates/…/audit.rs• L336-418

Markdown report cells are sanitized for terminal and Markdown display. HTML report fields are escaped. This keeps a command preview or rule value from becoming active markup in the report (crates/…/audit_aggregator.rs• L842-862).

References: crates/…/audit_aggregator.rs• L842-862

SARIF scan output

SARIF is the machine-readable output for file and directory scans rather than the audit-log report format. Tirith emits SARIF 2.1.0 results with tool metadata, one descriptor per public rule identity, severity mapped to SARIF levels, optional file locations, policy suppressions, and versioned fingerprints for finding deduplication across runs (crates/…/sarif.rs• L37-40, crates/…/sarif.rs• L74-123, crates/…/sarif.rs• L127-204).

All free-form SARIF text and paths pass through the public privacy projection. Custom rule IDs use a custom/ namespace so they remain distinct from built-in rules. If private custom IDs become the same public value, SARIF deliberately shares one public descriptor and fingerprint and marks the collision instead of exposing a hidden raw-derived identity. Fingerprints use the public rule ID, public path, and line number, so changes to private evidence or explanatory wording do not create an identity oracle or churn deduplication (crates/…/sarif.rs• L7-34, crates/…/sarif.rs• L43-72, crates/…/sarif.rs• L127-157).

The scan CLI maps findings to SARIF after scanning. Directory findings use their file paths, while coverage-gap findings can use a member-qualified location such as an item inside an archive. The JSON or SARIF document goes to standard output so CI can consume it without human status text mixed into the stream (crates/…/scan.rs• L233-288, crates/…/scan.rs• L758-823).

References: crates/…/sarif.rs• L7-34 crates/…/sarif.rs• L37-204 crates/…/scan.rs• L233-288 crates/…/scan.rs• L758-823

Redacted reporting data

Redaction controls what can leave a local context or enter a report. Credentials are always removed, and audience presets add protection based on who will receive the output. The redactor returns both the safe content and labeled counts so an operator can see what was removed without seeing the sensitive values (crates/…/redact.rs• L12-27, crates/…/redact.rs• L60-79, crates/…/redact.rs• L1425-1535).

The audience choices trade privacy against debugging context:

AudienceAdditional protection beyond credentials
llm or genericKeeps paths, line numbers, stack traces, and internal host names for diagnosis.
slack or github-issueRemoves internal host names but keeps repository-relative debugging context.
public-pasteAlso removes user home paths and contextual RFC1918 private IP addresses.

Policy can add customer or tenant ID patterns. The redactor applies those patterns with bounded, fail-closed behavior. It also handles bearer tokens, private-key blocks, shell assignment values, built-in provider credentials, private wallet paths, and audience-specific host or path signals (crates/…/redact.rs• L517-613, crates/…/redact.rs• L782-917, crates/…/redact.rs• L1046-1087, crates/…/redact.rs• L1622-1705).

Public reporting uses a redact-sanitize-redact boundary. The first pass removes known sensitive values, the display pass removes terminal and deceptive control bytes, and the second pass catches secrets that become contiguous only after cleanup. Structured provenance also removes URL userinfo, query, fragment, and hosted-RPC credential paths before display (crates/…/redact.rs• L1278-1299, crates/…/redact.rs• L1323-1368).

Audit command previews use command redaction before truncation, so a secret beyond the retained preview cannot survive only because the preview was shortened first. The same redacted line is the one placed in the upload queue (crates/…/audit.rs• L2222-2249, crates/…/audit.rs• L2282-2300).

If a custom pattern set is invalid, too large, too broad, or produces too many matches, Tirith does not return partial content. It returns a typed incomplete result to checked callers and a complete incomplete-redaction marker to compatibility callers (crates/…/redact.rs• L517-613, crates/…/redact.rs• L664-700, crates/…/redact.rs• L1222-1275, crates/…/redact.rs• L1436-1455).

Reporting CLI workflows

The CLI provides separate paths for audit history, dashboards, scan results, and safe sharing. Choose the path from the intended consumer rather than treating all JSON as the same schema.

GoalWorkflowMain result
Inspect or export audit historytirith audit exportFiltered JSON or verdict-only CSV.
Review activity totalstirith audit statsHuman or JSON verdict statistics, or hook telemetry statistics.
Produce a compliance documenttirith audit reportMarkdown, HTML, or JSON report for verdict records.
Check audit integritytirith audit verifyChain status, signature status, and problems with a non-zero failure code.
Inspect the local security posturetirith dashboard export or tirith dashboard serveSelf-contained HTML snapshot from local sources.
Feed scan findings to CI toolingtirith scan --format sarifSARIF 2.1.0 on standard output.
Share a file with a chosen audiencetirith share --target <audience>Redacted content and redaction counts.
Redact a streamtirith redact --audience <audience>Standard-input to standard-output redaction for pipelines.
Process a large log safelytirith logs redact or tirith logs summarize --safe-for-agentStreaming redaction or a bounded, compressed view.
Review policy fittirith policy tune --from-auditDeterministic suggestions only; no policy edit.

Export filters support time, session, action, rule ID, and event type. CSV is limited to verdict records because its columns describe command decisions. Audit reports accept only verdict records, while stats has distinct verdict and hook telemetry modes (crates/…/main.rs• L5194-5275, crates/…/audit.rs• L3-76, crates/…/audit.rs• L78-201, crates/…/audit.rs• L336-418).

Dashboard export writes a dated HTML file by default or uses the requested destination. Its JSON mode reports the written path, byte count, and snapshot. Dashboard serve reports a loopback URL with its token and token lifetime in JSON mode, while the token remains in memory and expires after one hour (crates/…/dashboard.rs• L212-267, crates/…/dashboard.rs• L359-447).

For sharing, share reads a file or standard input and can write safe content to a file or standard output. redact is the stream form. Both can return a JSON envelope with the redacted content and per-label counts. logs redact keeps the same audience meaning while processing a file in bounded chunks; logs summarize --safe-for-agent also removes display-control content and bounds the retained head and tail (crates/…/share.rs• L1-15, crates/…/share.rs• L34-85, crates/…/logs.rs• L621-719, crates/…/logs.rs• L978-1091).

This diagram shows how local data moves to the output that matches the intended consumer.

flowchart TD
    A[Local audit or scan data] --> B{Consumer}
    B -->|Operator| C[Dashboard or human report]
    B -->|Script or CI| D[JSON CSV or SARIF]
    B -->|External recipient| E[Audience-aware redaction]
    B -->|Integrity review| F[Audit verification]
    B -->|Policy review| G[Suggest-only tuning]

References: crates/…/main.rs• L5194-5275 crates/…/audit.rs• L3-76 crates/…/audit.rs• L78-201 crates/…/audit.rs• L336-418 crates/…/dashboard.rs• L212-267 crates/…/dashboard.rs• L359-447 crates/…/share.rs• L34-85 crates/…/logs.rs• L621-719 crates/…/logs.rs• L978-1091 crates/…/policy.rs• L603-729

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the audit event type values aligned across event writers, tolerant readers, export filters, and statistics. A new type that parses but is not selectable can disappear from reports.
  • Keep the audit record fields and the JSON/CSV report contracts aligned. In particular, preserve the distinction between effective rule IDs and raw pre-policy rule IDs.
  • Keep receipt event types bound to the correct receipt kind. A digest must not let an artifact receipt stand in for a capsule-run receipt or the reverse.
  • Keep tail-read limits and the truncated signal visible to diagnostic consumers. A recent-only view must not look like complete audit history.
  • Keep the CSV column order stable for existing consumers when adding caller-origin fields. Apply spreadsheet formula neutralization to every new caller-controlled cell.
  • Keep cross-event rule windows, sequence order, provenance wording, and de-dup signatures aligned with the session state that owns the event ring.
  • Keep dashboard snapshot states aligned with the HTML and JSON renderers. A policy parse error must not render as populated healthy defaults.
  • Keep the dashboard's local-only promise intact. Snapshot construction must not start a remote policy fetch or turn a non-regular source into an unbounded read.
  • Keep SARIF public rule IDs, rule indexes, collision markers, and tirith/v2 fingerprints aligned. Changing the public identity can break finding grouping in external CI tools.
  • Apply redaction before adding data to either the local audit preview or the remote upload spool. New output fields that carry command, finding, path, or provenance text need the same review.
  • Keep executable safe-command suggestions tied to the exact analyzed bytes. If projection changes a command, expose guidance without exposing a runnable replacement.
  • Keep custom DLP failure handling fail closed. A new caller must not return partial content when its pattern plan cannot prove bounded coverage.
  • Keep human output on stderr when JSON, CSV, or SARIF is written to stdout. Mixed streams silently break shell and CI consumers.
  • Keep dashboard export atomic and the serve path loopback-only. Changes to token, host, or response handling must preserve the local access boundary.

Important failure modes

TriggerConsequenceGuard
Audit JSONL contains malformed or overlong linesThose lines are omitted from normal summaries, or verification fails for the affected input.Readers count skipped lines; verification bounds each line and records the problem.
A tail read reaches its record, byte, or line boundOlder history is not inspected, so a diagnostic result covers only a recent suffix.The reader sets truncated and emits a warning rather than claiming full coverage.
Audit log is edited, reordered, or truncatedIntegrity verification fails or reports that truncation cannot be ruled out.Hash chaining, the head receipt, optional signatures, and audit verify provide the check.
Signed log has no usable verifying key or loses a signatureVerification cannot authenticate the log and fails closed.The verifier requires the public key and treats missing signatures or a bad head signature as problems.
Receipt detail does not match its saved owner-only receiptThe receipt is not anchored in the audit chain.Tirith reloads the saved receipt and checks its canonical ID and content hash before writing the anchor.
A correlation input has unresolved or provisional execution evidenceTirith may enforce the sequence conservatively, but the report must not claim that the source ran.Correlation carries provenance into the hit and uses uncertainty-aware wording.
Dashboard source is missing, unreadable, non-regular, or oversizedThe related section shows unavailable, empty, or error data instead of a complete posture claim.Snapshot reads are bounded; policy errors use an explicit ParseError state.
Dashboard or report data contains markup-like textA local HTML or Markdown report could execute or alter displayed content.HTML values are escaped and Markdown display fields are sanitized.
Dashboard serve token is missing, wrong, expired, or used with a foreign hostThe request is rejected and the report is not returned.Loopback binding, host validation, constant-time token comparison, and monotonic token expiry guard the server.
Custom redaction patterns are invalid or exceed boundsPartial redaction could expose sensitive content.The redaction plan fails closed and replaces the affected value with an incomplete-redaction marker.
Remote audit server is unavailableThe local queue retains unsent events, subject to configured retention.Upload runs in the background with bounded retries and safe spool rewrite behavior.
A report consumer requests CSV for non-verdict eventsThe requested output would not match the CSV contract.The CLI rejects the combination and directs the caller to JSON.
A caller-controlled CSV cell starts with a spreadsheet formula triggerA spreadsheet may evaluate the audit value as a formula when the file is opened.CSV export prefixes formula-triggering cells before RFC 4180 escaping.

Key files

FileWhy to read it
crates/…/audit.rsDefines the audit event model, privacy boundary, local append path, receipt anchors, integrity chain, and verification result.
crates/…/audit_aggregator.rsDefines record parsing, bounded tail reads, filters, statistics, CSV export, and Markdown/HTML compliance reports.
crates/…/event_buffer.rsDefines the bounded typed-event window and the privacy-safe cross-event signals that can feed security findings.
crates/…/audit_upload.rsShows how written events enter the bounded background upload queue.
crates/…/dashboard.rsDefines the dashboard snapshot, source states, and the boundary between local data collection and HTML rendering.
crates/…/template.htmlShows the user-facing dashboard sections without the rendering logic.
crates/…/output.rsDefines terminal-safe verdict output, versioned JSON output, suggestion handling, and shared presentation bounds.
crates/…/sarif.rsDefines the privacy-safe SARIF 2.1.0 shape, custom rule namespace, suppressions, and stable fingerprints.
crates/…/redact.rsDefines audience-aware redaction, public projection, provenance cleanup, and fail-closed handling of sensitive output.
crates/…/audit.rsConnects audit data to export, statistics, report, and integrity-check commands.
crates/…/dashboard.rsConnects snapshots to JSON/file export and the protected loopback server.
crates/…/share.rsProvides file and stream sharing workflows with audience-specific redaction.
crates/…/logs.rsProvides bounded log scanning, summarization, and streaming redaction workflows.
crates/…/scan.rsMaps scan findings and coverage locations into SARIF output.
crates/…/policy.rsConnects audit history to deterministic, suggest-only policy tuning.