Expand description
Agent-notes wire types — pure data shapes for the
commit-trailer + workspace-__MEMSTEAD-ref payload that the
git-branch backend produces from its gitdir.
These types live in memstead-base so the unified Engine can carry
them as Optional fields on crate::ops::changes::ChangesReport
(populated when callers pass include_notes: true, empty
otherwise). The gix-bound producers (read_memstead_ref,
agent_notes_since) stay in the git-branch backend crate — they
read from a gitdir and have no meaningful equivalent on the folder
or archive backends.
CommitNote carries the parsed subject + trailer block from
crate::vcs::format_commit_message. The workspace-level pointer
is the SHA of refs/heads/__MEMSTEAD (unified schemas + per-mem
configs branch), exposed as memstead_ref: Option<String> on the
report — None when the workspace has not been migrated to the
unified layout yet.
Structs§
- Agent
Notes Report - Walked output of
agent_notes_since.headechoes the resolved branch tip so callers record it as the next polling cursor without a follow-upmemstead_healthround-trip.memstead_refcarries the workspace-level__MEMSTEADref tip (unified schemas + per-mem configs) so consumers — today the outer-repo auto-commit cursor block — anchor it alongside the per-mem head without a second round-trip.Nonewhen the workspace has not been migrated to the unified layout yet. - Commit
Note - One commit’s worth of structured agent-note state. Fields are
populated best-effort: a body that doesn’t match the
memstead: <verb> <id>subject shape leavestool_verb/entity_idNone; absent trailers leave the corresponding fieldsNone. Callers branch onactorfor agent-vs-external classification.