Skip to main content

Module context_plan

Module context_plan 

Source
Expand description

Pure context query/mutate planning helpers (no store/repo I/O).

RecoveryAdvice, ObjectStore, and worktree reads stay in the CLI.

Enums§

ContextContentPlanError
Missing annotation body source (-m / --file).
ContextRmPlanError
Invalid context rm selector combinations.

Functions§

annotation_passes_filters
Whether a single annotation passes list/get filters.
annotation_status_label
Machine/human status token for an annotation lifecycle state.
audit_duplicate_count
Count signature groups that appear more than once (duplicate annotations).
audit_staleness_key
Staleness-map key matching repo::staleness::check_context_staleness.
audit_target_key
Target key used when grouping audit signatures (path or full change id).
context_target_kind_and_label
(kind, label) pair for a context target (stable machine kind tokens).
count_active_annotations
Count annotations still in AnnotationStatus::Active.
filter_annotations
Filter annotations by optional scope/tag and superseded inclusion.
next_annotation_tags
Prefer non-empty override tags; otherwise keep the current revision’s tags.
plan_annotation_content_source
Require a content source for set/edit/supersede.
plan_context_rm
Plan remove: when not removing all, a scope must be present.
suggestion_tier_human_label
Human-facing suggestion tier phrase for text output.
suggestion_tier_token
Stable machine token for a suggestion tier (medium / high).
supersede_reuses_original_scope
Supersede keeps the original scope when --scope is omitted.
supersede_reuses_original_target
Supersede keeps the original target when neither path nor state override is set.