Stop absence from authorizing freshness

This commit is contained in:
Meta Vens 2026-07-15 18:53:24 +01:00
commit f1f29a0af5
9 changed files with 440 additions and 49 deletions

View file

@ -1757,3 +1757,35 @@ metadata only. A surface earns readmission only through an owning provider's
provenance-bearing typed CultMesh contract that survives Snapshot, schema
validation, and Eve lowering; advertised actions additionally require a real
typed dispatcher and receipt path.
## Missing freshness evidence substituted for cleanliness (2026-07-15)
Confirmed and cut. The graph freshness projection previously asked only
whether any known stale signal was present. A default typed state with no graph
checkpoint and no freshness assertion therefore became `Ready`. The watcher
made the same inversion: an available watcher with an empty transient event
buffer became `Clean`, despite carrying no generation, cursor, start boundary,
or continuity receipt. Reorientation then ignored its retrieval, graph, and
watcher status fields when deciding Resume; path overlap heuristics were the
actual hidden owner.
The repaired authority is conjunctive. `derive_freshness` owns judgments from
canonical retrieval state, graph checkpoint, churn assertion, frontier
pressure, and positive watcher changes. Retrieval Ready with any dirty path
derives Stale rather than Clean. Graph Ready requires checkpoint plus
recognized-current assertion plus zero dirty/question/gap pressure. Missing
evidence is Missing/Unknown, watcher silence is Unavailable/Unknown, and
observed Changed remains positive evidence. `recommend_reorientation` alone
owns Resume/Regather: checkpoint ResumeReady, retrieval Clean, graph Clean, and
watcher Clean/Unknown are required to Resume. Other retrieval/graph states and
watcher Dirty/Stale/Changed force Regather. Jobs, MVP mappings, worker launch,
coordinator, and CRRC are derived consumers; graph-remap jobs now consume the
same graph judgment instead of re-parsing the churn string.
One scar remains open rather than laundered into completion:
`churn.graph_freshness` is still free-form text and
`graph_checkpoint.graph_revision` is not correlated with graph mutation. The
final cut is one typed, revision-bearing Modeling freshness receipt that binds
generation, checkpoint, verdict, and pressure basis. The immediate repair
prevents absence from masquerading as readiness; it does not make split
authority sacred.

View file

@ -718,5 +718,35 @@ Future audit frontier, not established anatomy: sibling Bifrost subprocess JSON
used by readiness needs a focused identity/schema/provenance audit before any
cut or confirmed finding.
## Freshness -> reorientation authority (2026-07-15)
```text
canonical retrieval state -----------------------> retrieval judgment --+
graph checkpoint + churn assertion + frontier ---> 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
Unavailable/Unknown because no continuity receipt exists; Changed is positive
evidence. `surfaces/jobs.rs` consumes the same graph judgment for remap work.
`recommend_reorientation` alone owns Resume/Regather. Resume requires a
resume-ready investigation checkpoint, retrieval Clean, graph Clean, and a
watcher that is Clean or Unknown. Any retrieval/graph non-clean value or
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.
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

@ -1569,3 +1569,45 @@ scheduled tasks and the tunnel return after logon, establish a fresh reconciler
-> exactly-one-projector chain and launch-correlated heartbeat, then obtain
semantic ranking from packaged Mind and Modeling queries using the explicit
Qdrant and Ollama endpoints.
## Freshness and reorientation authority repair (2026-07-15)
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:
there is no watcher generation, cursor, start boundary, or continuity receipt
from which silence could prove cleanliness. Observed changes remain valid
positive evidence.
`recommend_reorientation` now owns the whole Resume/Regather verdict. Resume
requires a resume-ready investigation checkpoint, retrieval Clean, graph
Clean, and watcher Clean or Unknown. Retrieval or graph values other than
Clean, and watcher Dirty/Stale/Changed, force Regather with explicit reasons.
Path overlap remains explanatory derived state; it cannot rescue a stale or
unknown map. `epiphany-mvp-status`, worker launch, coordinator, and CRRC all
consume this decision. `surfaces/jobs.rs` consumes the same derived graph
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
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.
The deployment next action is unchanged and permission-bound. Do not reboot
without exact live operator approval. With that approval, run the real
reboot/logon recovery proof already specified above.