Make semantic readiness proof query-owned

This commit is contained in:
Meta Vens 2026-07-15 18:13:15 +01:00
commit bf433d6306
6 changed files with 153 additions and 14 deletions

View file

@ -644,14 +644,30 @@ authentication, evidence field substitution, lifecycle/heartbeat causal
ordering, recovery single use, and the inability of the recovery command to
execute projection work itself.
Remaining limits are physical deployment, not permission for another adapter.
There is no open-obligation daemon pulse or packaged single projector owner
yet. The low-level mint and recovery primitives are crate-private. Their public
local-supervisor ports generate incarnations internally, but remain trusted
in-process ports rather than an OS-authenticated Idunn service boundary.
Deployment must keep those ports inside one configured Idunn body until a
durable authenticated service identity owns them. Canonical store and Qdrant
placement must be chosen as one topology; dual projectors are forbidden.
The packaged workstation body now contains the single projector owner, Idunn
supervisor, and semantic query verifier. Task Scheduler owns current-user
after-login presence of the foreground Idunn reconciler; the reserved typed
policy owns the exact projector launch shape; Idunn seals the launch receipt;
and the projector authenticates that receipt before taking the host-wide
canonical-store-pair singleton. `gamecult-ops` separately owns the foreground
Yggdrasil tunnel that exposes Qdrant on workstation loopback. Canonical store
and Qdrant placement remain one topology; dual projectors are forbidden.
Provider correlation is derived sight. The service-status projection reports
`provider-correlated` or `provider-degraded`, never semantic readiness. Query
admission authenticates the newest exact obligation/current/success chain and
alone owns readiness. Deployment proof uses the packaged verifier with explicit
`EPIPHANY_QDRANT_URL` and `EPIPHANY_OLLAMA_BASE_URL`; both Mind and Modeling
queries have returned semantic ranking under those explicit coordinates.
Stopping the scheduled reconciler does not kill its detached projector child.
Process ancestry is therefore current observation, not durable ownership, and
a task restart can reuse an already-running child. The missing proof is a real
operator-approved reboot/logon cycle that observes both tasks restored, the
tunnel ports live, a fresh post-boot reconciler -> exactly-one-projector chain,
a new launch-correlated provider heartbeat, and semantic ranking from both
packaged queries. This proves after-login physiology only. Reboot is outside
agent authority until the operator grants that exact host-wide action.
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

@ -1409,12 +1409,34 @@ incarnation `projector-59217a66-e3e2-44c3-b000-36af3d43b043` and the exact
startup correlation. Tunnel recurrence killed SSH PID 22652 and observed PID
30444 start at 11:37:44 with Qdrant REST healthy.
The pre-reboot deployment repair then packaged
`epiphany-memory-semantic.exe` beside the release supervisor and projector,
deployed the rebuilt supervisor, and left
`Epiphany-Idunn-Managed-Service-Reconciler` Running. Deployment queries must
receive the real transport coordinates explicitly through
`EPIPHANY_QDRANT_URL` and `EPIPHANY_OLLAMA_BASE_URL`; ambient defaults are not
deployment proof. With those variables set, both packaged Mind and Modeling
queries returned semantic ranking. The provider status command no longer calls
that sight `ready`: it returns `provider-correlated` or `provider-degraded`, is
explicitly non-authoritative, and points to semantic query admission as the
only readiness owner.
One process-lifecycle scar matters for the reboot audit. Stopping the Task
Scheduler reconciler leaves its already-detached projector child alive. A
current parent PID is therefore derived process sight, not durable custody, and
a stop/start rehearsal can accidentally reuse the old child. The real proof
must observe a fresh post-boot scheduler -> reconciler -> exactly-one-projector
chain, a new launch-correlated provider heartbeat, and successful packaged
Mind and Modeling query admission after the tunnel returns.
The limitation is part of the contract: this is after-login recovery, not
pre-login, boot-time, machine-wide, or Windows-service operation. The remaining
Soul proof is a real reboot/logon cycle showing both scheduled tasks running,
the tunnel ports restored, one Idunn-managed projector child, and a fresh
launch-correlated ready heartbeat. Do not spend another pass polishing the dead
SCM rite.
launch-correlated provider heartbeat followed by semantically ranked packaged
Mind and Modeling queries. Reboot remains a host-wide action requiring exact
live operator permission. Do not spend another pass polishing the dead SCM
rite.
## Isolated semantic abandoned-claim recovery proof (2026-07-15)

View file

@ -25,7 +25,7 @@ one process per partition.
```powershell
$env:CARGO_TARGET_DIR='C:\Users\Meta\.cargo-target-codex'
cargo build --release --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-memory-semantic-projector --bin epiphany-daemon-supervisor
cargo build --release --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-memory-semantic-projector --bin epiphany-memory-semantic --bin epiphany-daemon-supervisor
```
## Transport configuration
@ -124,3 +124,73 @@ projector resumes its own recovered claim on the next pulse.
- Stop the process once, let Idunn restart it, and verify a newer provider
heartbeat names the startup lifecycle receipt. Do not use command exit zero as
readiness.
## Reboot and logon proof
This is an operator-authorized host boundary. Do not reboot Starfire without
explicit live approval. Before reboot, record the current boot time, task
definitions, task process IDs, launch receipt, heartbeat, provider incarnation,
and projector PID. After the operator logs in again, prove the following from
the repository root:
```powershell
Get-CimInstance Win32_OperatingSystem | Select-Object LastBootUpTime
Get-ScheduledTask -TaskName GameCult-Yggdrasil-Tunnel,Epiphany-Idunn-Managed-Service-Reconciler |
Select-Object TaskName, State
E:\Projects\gamecult-ops\scripts\check-yggdrasil-tunnel.ps1
curl.exe -fsS http://127.0.0.1:16333/collections
Get-CimInstance Win32_Process |
Where-Object { $_.CommandLine -match 'managed-service-serve|memory-semantic-projector' } |
Select-Object ProcessId, ParentProcessId, CreationDate, CommandLine
C:\Users\Meta\.cargo-target-codex\release\epiphany-daemon-supervisor.exe `
semantic-projector-service-status `
--store .\.epiphany-run\cultmesh\local-verse.ccmp `
--runtime-id epiphany-local
```
The status command proves only a provider launch/heartbeat correlation. Its
`status` must be `provider-correlated`, `authoritative` must be `false`, and the
launch receipt, heartbeat, provider incarnation, process creation time, and
receipt timestamps must all belong to the post-boot process chain. The status
projection exposes those typed times as `launchStartedAtUtc` and `heartbeatAt`.
Make the lineage assertion exact:
```powershell
$idunn = @(Get-CimInstance Win32_Process | Where-Object {
$_.Name -eq 'epiphany-daemon-supervisor.exe' -and
$_.CommandLine -match '\bmanaged-service-serve\b'
})
$projector = @(Get-CimInstance Win32_Process | Where-Object {
$_.Name -eq 'epiphany-memory-semantic-projector.exe'
})
if ($idunn.Count -ne 1) { throw "expected exactly one Idunn reconciler" }
if ($projector.Count -ne 1) { throw "expected exactly one semantic projector" }
if ($projector[0].ParentProcessId -ne $idunn[0].ProcessId) {
throw "semantic projector is not a direct child of the post-boot Idunn reconciler"
}
```
Task Scheduler
`LastTaskResult=0x800710E0` can be the expected refused duplicate recurrence
while an `IgnoreNew` foreground task is already Running; it is not readiness.
Finally use the packaged query gate with explicit deployment endpoints. Omitting
these variables selects developer defaults and may legitimately fall back to
BM25, which is a failed deployment proof rather than semantic readiness:
```powershell
$env:EPIPHANY_QDRANT_URL='http://127.0.0.1:16333'
$env:EPIPHANY_OLLAMA_BASE_URL='http://10.77.0.1:11435'
$semantic='C:\Users\Meta\.cargo-target-codex\release\epiphany-memory-semantic.exe'
& $semantic context --agent-store .\state\agents.msgpack --partition mind `
--text 'current Epiphany doctrine and memory' --query-id reboot-proof-mind --budget 8
& $semantic context --runtime-store .\state\runtime-spine.msgpack --partition modeling `
--text 'current repository architecture and deployment frontier' `
--query-id reboot-proof-modeling --budget 8
```
Both results must report `semantic projection ranked ... canonical ...
candidates` and must not report `semantic projection unavailable` or BM25
fallback. That query admission is the readiness proof. A Running task, open TCP
port, Qdrant collection listing, provider heartbeat, or health projection is
only a prerequisite observation.