CB-13D ::24 R3: the post-pass baseline taken INSIDE the verified boundary — the HEAD/symref/tree/index identities bind to the checkpoint the pass actually reconciled, so an external commit landing after the verified state is never acknowledged as the daemon's own (it differs and fires the next hint). Only the refs digest is sampled fresh: the metadata-only daemon never moves refs, so the checkpoin
(root: &Path)
| 105 | /// so the checkpoint cannot bind it, and an external ref movement must |
| 106 | /// still fire. |
| 107 | pub(crate) fn verified_baseline(root: &Path) -> CliResult<Self> { |
| 108 | let fresh = Self::observe(root)?; |
| 109 | let verified = super::shim::read_workspace_metadata(root).ok().flatten(); |
| 110 | Ok(match verified { |
| 111 | Some(checkpoint) => Self { |
| 112 | head_oid: Some(checkpoint.git_head.clone()), |
| 113 | head_symref: checkpoint.git_head_symref.clone(), |
| 114 | head_tree: Some(checkpoint.git_tree.clone()), |
| 115 | index_digest: checkpoint.git_index_digest.clone(), |
| 116 | refs_digest: fresh.refs_digest, |
| 117 | busy_signature: None, |
| 118 | }, |
| 119 | None => fresh, |
| 120 | }) |
| 121 | } |
| 122 | |
| 123 | /// Observe the current Git metadata truth through Git's own APIs. |
| 124 | pub(crate) fn observe(root: &Path) -> CliResult<Self> { |
nothing calls this directly
no test coverage detected