Skip to main content

Crate mimir_harness

Crate mimir_harness 

Source
Expand description

Transparent launch harness for mimir <agent> [agent args...].

The harness owns the process/session boundary. It parses only Mimir-specific flags that appear before the child agent name, preserves every child argument after the agent, injects a compact session envelope through environment variables, and launches the native agent with inherited terminal streams.

Structs§

CheckpointNote
Result of writing an intentional session checkpoint note.
CheckpointNoteMetadata
Metadata embedded into an intentional session checkpoint note.
ChildCommandSpec
Fully materialized child command shape.
LaunchPlan
Parsed launch plan for one wrapped agent session.
LibrarianHandoffSummary
Librarian handoff outcome after post-session capture.
NativeMemoryAdapterHealth
Reason-coded health for one configured native-memory adapter source.
NativeMemorySweepOutcome
Summary of native-memory draft capture after a wrapped session.
PostSessionDraftSummary
Path for the staged post-session draft, when one was written.
RemoteBackupReport
Serializable subset of RemoteSyncReport for capture summaries.
RemoteBackupSummary
Remote backup outcome after post-session capture.
RemoteRestoreDrillReport
Result of a destructive BC/DR restore drill.
RemoteServicePlan
Fully resolved service-remote adapter boundary for one workspace.
RemoteSyncPlan
Fully resolved remote sync boundary for one workspace.
RemoteSyncReport
Result of an explicit remote sync command.
SessionCaptureSummary
Combined capture summary for one wrapped session.
SessionCheckpointCaptureOutcome
Summary of session-local checkpoint draft capture.

Enums§

HarnessError
Errors returned by harness argument parsing or child launch.
RemoteSyncDirection
Explicit remote sync direction for governed memory recovery state.

Functions§

capture_native_memory_drafts
Sweep configured native-memory files for the launched agent and stage them as untrusted librarian drafts.
capture_post_session_draft
Stage a raw post-session draft for librarian processing.
capture_session_checkpoint_drafts
Sweep the session-local checkpoint draft inbox.
capture_session_drafts
Run all post-child capture paths and write a session capture summary.
generate_session_id
Generate a process-local session id suitable for one harness launch.
list_checkpoint_notes
List supported checkpoint note files in a session draft inbox.
parse_launch_args
Parse mimir <agent> [agent args...] arguments.
prepare_launch_plan
Parse arguments, discover Mimir bootstrap/config state, and write the launch-time session capsule.
prepare_remote_service_plan
Resolve the explicit service-remote adapter boundary for the current workspace.
prepare_remote_sync_plan
Resolve the explicit remote sync boundary for the current workspace.
render_draft_next
Render the oldest draft in a lifecycle state.
render_draft_show
Render one draft with metadata and raw text.
render_draft_triage
Move a draft to a terminal operator-review state and record why.
render_drafts_list
Render one-line summaries for drafts in a lifecycle state.
render_drafts_status
Render draft lifecycle queue counts.
render_launch_banner
Render the human-facing preflight banner printed before the native agent starts.
render_memory_context
Render a bounded, data-only context capsule for the current project.
render_memory_explain
Render audit metadata for one governed canonical memory.
render_memory_health
Render a compact memory-readiness health view for the current project.
render_memory_list
Render a read-only operator list of governed canonical memories.
render_memory_show
Render exactly one governed canonical memory by memory ID.
render_operator_status
Render the unified operator status view for the current project.
render_project_doctor
Render a project-level setup doctor for public first-run readiness.
render_remote_dry_run
Render a dry-run for the configured remote kind.
render_remote_restore_drill_dry_run
Render a dry-run plan for the destructive BC/DR restore drill.
render_remote_restore_drill_report
Render a restore drill report as stable key/value lines.
render_remote_service_dry_run
Render the planned service-adapter boundary without network I/O.
render_remote_status
Render status for any configured remote kind.
render_remote_sync_dry_run
Render the planned file boundary without invoking Git or copying files.
render_remote_sync_report
Render a remote sync report as stable key/value lines.
render_remote_sync_status
Render machine-readable status for the explicit remote sync boundary.
run_child
Launch the child agent with inherited stdio/stderr/stdin and wait for it to exit.
run_remote_restore_drill
Run the destructive BC/DR restore drill for the configured Git remote.
run_remote_sync
Run an explicit Git-backed remote sync.
submit_memory_revoke_request
Stage an append-only revocation request as a librarian draft.
write_checkpoint_note
Write an intentional session checkpoint note for later draft capture.