Skip to main content

Module harness_context

Module harness_context 

Source
Expand description

Infer Ito change/module target context for harness sessions. Harness context inference helpers.

These helpers infer an Ito target (change or module) from local signals so harness hooks/plugins can recover context after compaction.

Inference priority:

  1. Current working directory path segments.
  2. Current git branch name (if available).

When multiple change-id-like path segments are present, the last match wins.

Structs§

HarnessContextInference
Inference result suitable for harness hooks and plugins.
InferredItoTarget
Inferred Ito target (change or module).

Enums§

InferredItoTargetKind
Kind of Ito target inferred for a harness session.

Functions§

infer_context_from_cwd
Infer the current Ito target for a harness session.