Cut legacy graph freshness authority

This commit is contained in:
Meta Vens 2026-07-15 19:03:44 +01:00
commit 1716ef95bb
6 changed files with 61 additions and 44 deletions

View file

@ -722,15 +722,16 @@ cut or confirmed finding.
```text
canonical retrieval state -----------------------> retrieval judgment --+
graph checkpoint + churn assertion + frontier ---> graph judgment -------+--> reorientation decision --> CRRC/coordinator/launch
legacy graph checkpoint + churn + frontier -----> legacy graph judgment -+--> reorientation decision --> CRRC/coordinator/launch
positive watcher changes ------------------------> watcher judgment -----+
durable investigation checkpoint ---------------------------------------+
```
`derive_freshness` owns the first three judgments. Retrieval Ready becomes
Clean only with an empty dirty-path set; otherwise it derives Stale. Graph
Clean/Ready requires a checkpoint, a recognized-current assertion, and zero
dirty/question/gap pressure. Missing evidence stays Missing/Unknown. Watcher silence stays
Clean only with an empty dirty-path set; otherwise it derives Stale. The legacy
thread graph can prove Stale from explicit frontier pressure, but cannot prove
Clean/Ready because it has no legal Modeling writer and cannot see canonical
RepoModel admission. Missing authority stays Missing/Unknown. Watcher silence stays
Unavailable/Unknown because no continuity receipt exists; Changed is positive
evidence. `surfaces/jobs.rs` consumes the same graph judgment for remap work.
@ -741,12 +742,13 @@ watcher Dirty/Stale/Changed forces Regather. Path matches, status labels,
worker-launch documents, coordinator rows, and CRRC recommendations are derived
consumers and forbidden decision writers.
The remaining deletion line is architectural rather than behavioral:
`churn.graph_freshness` is a free string, and the typed graph checkpoint's
revision is not correlated with graph mutation. Replace both authorities with
one typed, revision-bearing Modeling freshness receipt. Until then the strict
conjunction prevents false readiness but must not be mistaken for final typed
ownership.
Canonical RepoModel is the Modeling-owned body. Its exact revision/hash and
Mind-issued `RepoModelAdmissionReceipt` are the only coherent identity boundary
for a future Ready projection; the snapshot's typed source/lifecycle freshness
is its pressure basis. `churn.graph_freshness`, the legacy graph checkpoint,
generic thread patches, and unrelated thread revisions are forbidden readiness
writers. Until canonical authority is supplied to a consumer, Unknown is the
truthful result.
This map must change when ownership changes. Historical scars belong in git,
evidence, or an explicitly archived note—not in the machine's Modeling state.

View file

@ -1575,10 +1575,11 @@ Qdrant and Ollama endpoints.
The freshness surface no longer converts missing evidence into confidence.
Retrieval `Ready` is Clean only when `dirty_paths` is empty; a Ready label with
one or more dirty paths derives Stale and therefore cannot authorize Resume.
Graph `Ready` requires all of: a typed graph checkpoint, an explicitly
recognized current `churn.graph_freshness` value, and no dirty paths, open
questions, or open gaps. Missing checkpoint or freshness is unknown/missing,
not ready. A watcher with no buffered changes is also unknown/unavailable:
The legacy thread graph projection cannot produce `Ready`. Explicit frontier
dirty paths, open questions, or open gaps prove Stale; otherwise it is
Missing/Unknown because checkpoint and `churn.graph_freshness` values have no
legal Modeling writer and cannot see canonical RepoModel admission. A watcher
with no buffered changes is also unknown/unavailable:
there is no watcher generation, cursor, start boundary, or continuity receipt
from which silence could prove cleanliness. Observed changes remain valid
positive evidence.
@ -1594,19 +1595,18 @@ freshness judgment for graph-remap work instead of maintaining a second churn
string tribunal.
Authority map: `derive_freshness` owns freshness judgment from canonical
retrieval state, graph checkpoint, churn assertion, frontier pressure, and
retrieval state, explicit legacy frontier pressure, and
positive watcher observations. `recommend_reorientation` owns the action.
Their outputs are derived read projections and one reorientation decision.
Watcher silence, MVP mappings, jobs, worker launch, coordinator, and CRRC are
forbidden readiness/action writers. All launch and operator paths share the
same derivation and decision primitives.
The immediate invariant is repaired, but the final owner is not yet pure.
`churn.graph_freshness` remains an `Option<String>`, while
`graph_checkpoint.graph_revision` is not authenticated against graph mutation.
Modeling must eventually replace that split opinion with one typed,
revision-bearing freshness receipt that binds the graph generation, checkpoint,
freshness verdict, and pressure basis.
`churn.graph_freshness` and `graph_checkpoint.graph_revision` remain legacy
data but own no readiness decision. Canonical RepoModel revision/hash plus its
exact Mind-issued `RepoModelAdmissionReceipt` is the future Ready identity
boundary; its typed source/lifecycle freshness supplies pressure. Do not build
a bridge unless the canonical model and receipt are actual projection inputs.
The deployment next action is unchanged and permission-bound. Do not reboot
without exact live operator approval. With that approval, run the real