Modules§
- harnpack
harn run <bundle.harnpack>— verify the embedded OpenTrustGraph signature, replay the archive into the content-addressed pack cache, and execute the bundled entrypoint.- json_
events harn run --json: NDJSON event-stream emitter.
Structs§
- RunAttestation
Options - RunAux
Options - RunInterrupt
Tokens - RunJson
Options - JSON event-stream configuration for
--jsonruns. - RunJson
Sink - RunOutcome
- Captured outcome of an in-process
execute_runinvocation. Tests use this instead of spawning theharnbinary; the binary entry point translates it into real stdout/stderr writes +process::exit. - RunPhase
Options - RunProfile
Options - Opt-in profiling. When
textis true the run prints a categorical breakdown to stderr after execution; whenjson_pathis set the same rollup is serialized to that path. Either flag enables span tracing (i.e.harn_vm::tracing::set_tracing_enabled(true)). - RunRusage
Options - RunSandbox
Options - RunSummary
Options - Post-run summary configuration for
harn run --emit-summary-json.
Enums§
Constants§
Functions§
- execute_
explain_ cost - execute_
run - In-process equivalent of
run_file_with_skill_dirs. Returns the captured stdout, stderr, and what exit code the binary entry would have used, instead of writing to real stdout/stderr or callingprocess::exit. - execute_
run_ json execute_runvariant for--jsonmode. Returns once the run is complete; the NDJSON event stream — including the terminalresultorerrorevent — has already been written tooutand flushed.outmust beSendbecause the run-event sink may be called from any worker thread the VM spawns.- execute_
run_ with_ harnpack_ options execute_runfor callers that want to opt-in to the.harnpackverify-replay-execute path. Used byharn run <bundle.harnpack>integration tests and by the binary entry once it has parsed the--allow-unsigned/--dry-run-verifyflags.- execute_
run_ with_ sandbox_ options execute_runwith an explicit sandbox policy override for in-process callers whose source path is intentionally outside the workspace they operate on.- install_
cli_ llm_ mock_ mode - persist_
cli_ llm_ mock_ recording