runtime: cut repository body observation latency
This commit is contained in:
parent
5d6a731607
commit
9d671aeef0
7 changed files with 252 additions and 22 deletions
|
|
@ -1671,6 +1671,25 @@ collision refusal, migration equivalence for every envelope, absence of writes
|
|||
to the sealed source, crash-safe destination recovery, and a live-sized job
|
||||
commit that no longer scales with total historical store bytes.
|
||||
|
||||
Historical transaction benchmarking after implementation corrected the causal
|
||||
map. Exact surviving batches around live job `972f4e31` take roughly
|
||||
0.8-1.0s through the legacy snapshot backend and 0.02-0.03s through keyed redb.
|
||||
Keyed CAS is a valid secondary optimization, but it cannot explain or remove a
|
||||
51.482s coordinator bucket by itself. Live migration is therefore not yet
|
||||
authorized by performance evidence.
|
||||
|
||||
The Modeling-only pre-transaction owner is Repository Body observation. It
|
||||
builds two isolated Git indexes/trees and two complete raw SHA-256 manifests,
|
||||
then admits only exact equality. On the current 3,994-file Body, an authenticated
|
||||
release observation took 92.30s. The isolated Git add/write-tree portion takes
|
||||
about 1.62s; serial raw file reads and metadata dominate. Manifest entries are
|
||||
independent after typed index parsing, so bounded parallel construction changes
|
||||
only execution order. Per-file before/after metadata checks, raw hashes,
|
||||
deterministic sorting, manifest-root derivation, the second full scan, and exact
|
||||
equality remain owners. The measured parallel observation is 49.52s. A future
|
||||
cut that reuses hashes or weakens the second scan requires a new explicit
|
||||
freshness authority; it must not be smuggled in as a cache.
|
||||
|
||||
## Verdict-bound Modeling output authority
|
||||
|
||||
Live v53 exposed a missing typed boundary after Soul acceptance. The
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ probe reported `Removed 0 files` and is rejected, not evidence.
|
|||
- Fresh Modeling job commit: 51.637s; coordinator total 51.865s.
|
||||
- The launch wound is the whole-store transaction, not context assembly.
|
||||
|
||||
## Keyed runtime and packaging cut in progress
|
||||
## Keyed runtime and packaging cut
|
||||
|
||||
The current uncommitted pass after `b070e121` introduces one runtime-spine
|
||||
backend owner selected by explicit extension: `.cc`/`.msgpack` retain the
|
||||
|
|
@ -178,6 +178,27 @@ Release-mode live-sized measurements are mixed but promising: legacy full read
|
|||
production judgment. Do not migrate live from this proxy alone. Measure the
|
||||
exact coordinator launch replacement set against the keyed v53 copy next.
|
||||
|
||||
That next probe changed the diagnosis. The durable
|
||||
`epiphany-runtime-store-benchmark` selects typed historical transaction
|
||||
envelopes by exact job identity and emits identity/digest/timing receipts on
|
||||
disposable stores. The surviving launch-request batch for job `972f4e31` was
|
||||
legacy 785-1,012ms versus keyed 23-32ms; its completion batch was legacy
|
||||
784-1,567ms versus keyed 21-34ms. Those receipts prove keyed CAS is faster, but
|
||||
also falsify the claim that snapshot CAS owned the measured 51.482s launch
|
||||
bucket. Do not migrate live on that old causal story.
|
||||
|
||||
`commit_coordinator_job_launch` performs Modeling-only
|
||||
`observe_runtime_repository_body_basis` before opening the state transaction.
|
||||
That observer constructs two isolated Git trees and raw SHA-256 manifests over
|
||||
3,994 files, then requires exact equality. Direct authenticated release timing
|
||||
was 92.30s and created Body generation 2. The fresh-index Git phase was only
|
||||
1.62s; raw file reads and metadata were the wound. Bounded parallel manifest
|
||||
construction keeps the same per-file before/after metadata checks, raw hashes,
|
||||
sorted root, isolated trees, and second full equality pass. All 24 observer
|
||||
tests pass. Direct release observation fell to 49.52s and created generation 3.
|
||||
This is material but not final; package it and measure a real launch before
|
||||
claiming the original 51s path is cured.
|
||||
|
||||
Packaging no longer requests Cargo `--bins`, which linked every diagnostic and
|
||||
smoke executable after core edits. It now requests only the authenticated
|
||||
release sibling binaries, leaving the feature-gated coordinator in its existing
|
||||
|
|
|
|||
Reference in a new issue