dogwood.trace

dogwood.trace#

Trace parsing and replay helpers.

Rust mapping:

  • parse_trace() mirrors dogwood_language::parse_trace for the subset needed by the Python fallback.

  • replay_log() maps to dogwood_language::replay_log when a schema-backed LoweredPolicySet is supplied, otherwise it uses the temporary Python fallback Authorizer.

Functions

parse_trace(log)

Parse Dogwood trace log text into Event objects.

replay_log(policies, log)

Replay a trace against a policy set and return CLI-style verdict lines.

dogwood.trace.parse_trace(log: str) list[Event][source]#

Parse Dogwood trace log text into Event objects.

Rust mapping: dogwood_language::parse_trace.

dogwood.trace.replay_log(policies: Any, log: str) str[source]#

Replay a trace against a policy set and return CLI-style verdict lines.

Rust mapping: dogwood_language::replay_log for schema-backed native policy sets. The fallback path feeds parsed events into dogwood.values.Authorizer.