gortex icon indicating copy to clipboard operation
gortex copied to clipboard

Add CI gates for the edit loop: ack latency, read-back, silent stale per output mode, WAL holds

Open zzet opened this issue 1 month ago • 14 comments

Why

The v0.64.12 edit-loop work brings edit confirmation down from about 3 s to under a second. It also makes reads issued right after an edit return the new bytes, and makes WAL reclaim give way to edits. Nothing in CI checks any of this today. One small change could bring the old behaviour back without failing a single test. Examples: turning the reindex debounce back on, putting a default wait back on the ack path, or letting an urgent reclaim close the read gate during edits again.

Baseline numbers (v0.64.10 / main, development Mac):

  • The edit call p50 is 3,005 ms with 4 or 8 agents and 3,012 ms with 6 agents on 6 repos. This is the fixed 3 s mutation wait. While edits run with 8 agents, read.editing_context p95 is 36 s and read.summary p95 is 15 s.
  • Edit loads keep the WAL above the 512 MiB urgent-reclaim line. Peak WAL is 1,007 / 1,059 / 960 MiB with 1/4/8 editing agents and 760 MiB with 6 agents editing 6 repos. Read-only loads peak at 0.3 MiB. Above 512 MiB, a reclaim attempt may hold the single writer for up to 2 s, and the closed-gate fallback pauses new reads for up to 0.5 s (250 ms drain + 250 ms TRUNCATE).

This item is small (0.5 engineer-days). It turns the measurements that the edit-loop harness already produces into blocking budgets, so these gains cannot slip back unnoticed.

Current state

  • Main has no edit-and-probe harness and no budget file. bench/ contains baselines, daemon-latency, fixtures, index-perf, perf, token-efficiency and wire-format. None of them is an edit-and-probe scenario, and there is no bench/budgets.yaml. Three separate items come first, and this issue builds on them: the edit-loop harness (an edit_and_probe driver with a second session that polls every 25 ms, plus a per-run daemon counter scrape), the budget file and its comparator, and the smoke and nightly performance lanes.
  • .github/workflows/ci.yml runs unit tests plus a one-iteration go test -bench smoke (benchtime=1x). .github/workflows/bench-arm.yml runs only by hand (workflow_dispatch with the suites benchmarks, performance, acceptance-helpers, acceptance-native). There is no nightly or smoke performance lane.
  • The edit path still holds its slot through defaultMutationReindexWait = 3 * time.Second (internal/mcp/edit_serialization.go).
  • WAL reclaim counters already exist: WALReclaimStats in internal/graph/store_sqlite/wal_reclaim.go (WriterHoldMax, WriterHoldLast, PauseCount, PauseMax, ReaderWaits, ReaderWaitMax, LastResortRuns, CycleDeferrals, …). Daemon status exposes them as StorageStatus.WALReclaim in internal/daemon/proto.go, with the fields writer_hold_max_ms, writer_hold_last_ms, pause_count, pause_max_ms and reader_wait_max_ms. wal_bytes and wal_pending_frames sit next to them. Status exposes only the maximum and the last writer hold, not a per-attempt distribution.
  • Constants: reclaim threshold 256 MiB (defaultWALReclaimThresholdBytes), urgent at 2x (walReclaimUrgentFactor, so 512 MiB), walReclaimMaxWriterHold 2 s. walReclaimResetHold is 50 ms; it is defined in internal/graph/store_sqlite/wal_reclaim_pressure.go as walReclaimPressureHold.

What to do

  • Add an edit-loop section to the budget file that the regression comparator reads. It needs these blocking rows. All limits are p95 on the reference host unless a row says otherwise. Traffic is open-loop arrivals of about 1 edit per 15 s per agent, plus the normal read mix.
    • Edit ack (from just before the edit request is written to receiving the confirmation, including dispatcher queue wait), primary checkout, single repo: ≤0.15 / 0.20 / 0.25 / 0.35 / 0.50 s at 1/4/8/16/32 agents. 6 agents on 6 repos: ≤0.30 s. Any cell above 1.0 s fails, whatever its row limit. Edits to files of 10,000+ lines are reported in their own row with a 0.6 s allowance, so a few large files cannot hide a regression. An ack that returns readback_exact:false counts as an ack miss even when it is fast.
    • Edit + one read of the edited file (source or summary): ≤0.25 / 0.35 / 0.40 / 0.55 / 0.75 s at 1/4/8/16/32 agents. Any cell above 1.0 s fails.
    • Read-back right after the ack: same session, no sleep. Read the edited file five ways: symbol source, file summary, symbol search, text search and read_file. At least 99.9% of these reads must be correct.
    • Silent stale: a probe that returns old or wrong data while its freshness fields claim fresh. Limit 0, counted separately for each output mode: JSON, TOON, compact text, facade output and CLI verb. Each mode gets its own row so one mode cannot hide behind the others.
    • WAL in edit loads: WAL p95 must stay at or below the v0.64.10 peak for that scenario. That is 1,007 MiB with 1 agent editing and reading back (loadedit-1), 1,059 MiB with 4 agents (loadedit-4), 960 MiB with 8 agents (loadedit-8), and 760 MiB with 6 agents editing 6 repos (multirepoedit-6). Peak WAL must never exceed 2 GiB. Sample wal_bytes from daemon status during the run.
    • Reclaim holds during edit bursts: reclaim writer-hold p95 ≤50 ms (the walReclaimResetHold value), computed from the per-attempt hold samples that the harness's reclaim attribution records. If only daemon status is available, gate on writer_hold_max_ms ≤50 ms over the burst window instead. Read-gate closures must be 0: the pause_count delta between status snapshots taken before and after the burst.
    • Worktree ack rows are "report only, no regression against main" in this release. Their absolute targets come with the worktree ack work.
  • Standalone reference smoke, ≤15 min wall time: run loadedit-4 with the prober on and at least 100 edits. Check the ack, edit + one read, read-back, five silent-stale rows, and WAL/reclaim. Retain exact original reports and comparator output. Exercise correctness and regression-gate behavior in the existing GitHub-managed CI.
  • Use the required standalone reference evidence for the 1/4/8/16/32 and six-repo rows, including applicable WAL rows. Reuse qualifying shared or retained runs when their workload, metric and input provenance match. Preserve original JSON. Full automated nightly execution and Mac-attached runner setup are tracked in #1303 for after v0.65.0 ships.
  • Comparator output: a table with one line per row (value, budget, v0.64.10 baseline, delta). The comparator exits non-zero on any blocking breach.
  • Seeded regressions, both behind test-only switches that are off in production:
    • (a) Re-enable the reindex debounce or restore the 3 s default wait on the ack path. The smoke lane must fail on the edit-ack row.
    • (b) Force reclaim onto the closed-gate path while an edit burst is active. The smoke lane must fail on the read-gate closure row.

Out of scope

  • Building the harness, the prober, the budget comparator or the lane infrastructure. Separate items own them.
  • Making any target pass. The edit-loop items and the reclaim-yield item own that; this item only gates them.
  • Budgets for relation freshness (callers, usages) and derived passes, absolute worktree ack targets, and budgets for cold-index WAL and write volume.
  • The "no urgent reclaim in edit loads" target (WAL p95 <512 MiB in loadedit-4/8), which belongs to v0.64.13.

Superseded receipt scope (approved 2026-11-12)

Explicitly classified, proven superseded receipts from competing editors in the same physical worktree may retain unavailable indexing P/B timings. Classification requires affirmative receipt, RPC/mutation, generation and physical-worktree evidence; missing timings alone are not proof. Keep these receipts and their unavailable counts visible, without inventing measured intervals.

ACK/A timing, edit/read correctness, truthful freshness, and all other latency, resource and safety checks remain required. Accepted indexing attempts, separate physical worktrees (even on the same branch), unknown or unclassified cases, and censored evidence retain the strict checks. Historical failed reports remain failed.

Timing attribution and handoff are tracked in #1432, unscheduled after v0.65.0 and nonblocking for this release or v0.65.0. Broader transaction and exact-ACK design remains separate in #1421.

Release decision — 2026-11-21

Use GitHub-managed CI for correctness and regression-gate tests. Use the standalone reference host for required numerical measurements, with the existing resource profile, cases, budgets, raw reports and provenance. The Mac-attached self-hosted CI runner and full automated nightly setup move to #1303 for after the v0.65.0 release. Required standalone measurements from the release issues, actual applicable seeded failures, and product correctness/performance targets remain required. This change does not add a standalone full-nightly rerun or duplicate shared measurements. Existing qualified runs retain their original scope.

Done when

  • [x] The budget file has blocking rows with the limits listed above for: edit ack p95 (single repo at 1/4/8/16/32 agents and 6 agents on 6 repos), the large-file ack row (0.6 s), edit + one read p95, the 1.0 s hard limit, read-back after ack ≥99.9%, silent stale = 0 for each of the 5 output modes, WAL p95 ≤ the per-scenario v0.64.10 peak with a 2 GiB peak ceiling, reclaim writer-hold p95 ≤50 ms, and read-gate closures = 0.
  • [x] A standalone reference smoke runs loadedit-4 with probes and ≥100 edits in ≤15 min on the reference host (Linux cgroup, 8 CPUs, 16 GB) and retains the full budget verdict. GitHub-managed CI tests prove that the regression gate rejects a blocking breach.
  • [ ] The required reference evidence for the 1/4/8/16/32 and six-repo budget rows is linked with the original reports and source/corpus/host provenance. Use shared release cohorts or qualifying retained runs to cover matching rows. Full automated nightly execution is a separate post-v0.65.0 obligation in #1303.
  • [x] Seeded regression (a): with the debounce re-enabled (or the 3 s wait restored), the smoke regression check exits non-zero and the comparator table marks the edit-ack row as failed. Publish a link to the failing proof and exercise the corresponding rejection in GitHub-managed CI. Exact reference timing evidence, where required, may come from a standalone run. Failing proof
  • [x] Seeded regression (b): with reclaim forced onto the closed-gate path during edits, the smoke regression check exits non-zero with the read-gate closure row failed (pause_count delta > 0). Publish a link to the failing proof and exercise the corresponding rejection in GitHub-managed CI. Exact reference timing evidence, where required, may come from a standalone run. Failing proof
  • [x] Silent stale appears as 5 separate numbers, one per output mode, in the comparator table.
  • [x] The gate is not flaky: 3 consecutive smoke runs on the same build give the same pass/fail verdict on every row.

How to verify

  1. Run the smoke lane locally against a private daemon with the comparator command from the regression-lane item and scenario loadedit-4. Check that every edit-loop row appears with value, budget, baseline and delta, and that silent stale has one row per output mode.
  2. Turn on seeded switch (a) and rerun. Confirm a non-zero exit with the edit-ack row marked failed.
  3. Turn on seeded switch (b) and rerun. Confirm that the pause_count delta between the before and after daemon status snapshots is above 0 and that the read-gate closure row fails.
  4. Verify the required reference reports and budget tables using the qualifying shared or retained release cases. Verify the existing GitHub-managed test workflow catches both seeded regressions.
  5. Run the smoke lane 3 times on one build and compare the verdicts row by row.

Dependencies

Blocked by (must land first):

  • #1005 — The CI edit gates use the edit-and-probe harness and laps.
  • #997 — The edit gates are entries in the budgets file and smoke lane. Blocks:
  • #1092 (needs this)

Related issues

  • Related: #843, #767

Planning

  • Milestone: v0.64.12
  • Priority: enabler
  • Estimate: ~0.5 engineer-day

zzet avatar Oct 25 '26 14:10 zzet

Acceptance decision for the compact silent_stale row: compact output does not expose the freshness fields needed for this numeric measurement. The row may be explicitly UNOBSERVABLE, with a null numeric value and a stated reason, and may be nonblocking only after compact semantic content correctness, actual assigned-edit/tool coverage, and decoding proof all pass.

This exception applies only to that qualified compact row. The other four modes retain the strict zero-silent-stale requirement. Generic missing or unavailable evidence remains blocking; a missing observation must never become a numeric zero or a pass.

No latency, ACK, readback, workload-population or other acceptance threshold changes. The issue remains open and In Progress until its remaining implementation and acceptance criteria pass.

zzet avatar Nov 01 '26 19:11 zzet

The release-owner-approved v0.64.12 adjustment for competing editors in the same physical worktree/file is now on main through PR #1424 (merge 4aeedd54fd7d9cd490b2e218fe85f1efb09c10bf; all required PR checks passed).

Only the universal original-live exact-ACK admission rule is narrowed. The harness must verify actual shared physical bindings and decoded applied/disk-committed identity evidence; a reported readback_exact:false stays false. Isolated worktrees remain strict even when branch names match. Actual ACK latency budgets, content/read-back correctness, truthful freshness, lost-update protection, phase accounting, evidence completeness and resource requirements remain unchanged.

This does not requalify historical FULL300 failures, the 258 diagnostic observations or the two capped/incomplete evidence rows, and no acceptance checkboxes are changed here. General transaction/composition/conflict APIs remain future work in #1421; this issue stays open.

zzet avatar Nov 12 '26 10:11 zzet

The approved superseded-receipt classification is merged in #1433. It requires affirmative, exact shared-worktree receipt/status/guard evidence, preserves the original refusal and unavailable indexing P/B windows, and keeps edit/read correctness, ACK timing, accepted indexing attempts, isolated/unknown/censored cases and other gates strict.

This is implementation credit, not a fresh acceptance result: this issue remains open and historical failed reports remain failed. The timing-handoff follow-up #1432 remains unscheduled after v0.65.0 and nonblocking for this release.

zzet avatar Nov 12 '26 16:11 zzet

Adopted implementation criteria 1 and 6 on exact current 5eb7455d9f29ee39a29c00affaf751c06bde217e / tree 0cbafca769f0c9d9a2761935a32b8092cb95ea3d (same full tree as reviewed b5790401 in #1450).

bench/budgets.yaml declares the required blocking edit-loop rows and absolute targets, including the large-file and hard limits, read correctness, mode-separated silent stale, WAL and reclaim rows. TestBudgetsDeclareEveryEditLoopRow, TestEditLoopGateRetainsEveryRowWhenEvidenceIsMissing, and TestEditLoopCommandRetainsActualRowsAndSeededBreaches cover the declarations and separate comparator rows. The exact main Linux rest partition completed successfully; the full-push selection includes the comparator package. This is source/test implementation credit, not a measured workload PASS.

The already approved compact exception remains precise: its numeric silent-stale value may be null UNOBSERVABLE only with successful compact semantic content, actual assigned-edit/tool coverage and decoding evidence. The other four modes remain strict; generic missing observations stay blocking. No threshold or other mode is waived.

Criteria 2–5 and 7 remain unchecked. They still need actual blocking smoke/nightly artifacts, posted actual seeded-failure runs, and three consecutive same-build verdict tables. Consistent pass/fail verdicts are the written repeat requirement; this implementation issue does not make product latency budgets pass. The historical FULL300 failures and the separately qualified single-run evidence remain unchanged, with no aggregate or new-build credit. No new workload, CI poll or repeat was started for this adoption.

zzet avatar Nov 14 '26 02:11 zzet

The new same-build smoke series has one qualified original report out of the three required. The three-smoke criterion and issue remain open; no checkbox is changed by this partial result.

Run01 used frozen CLI 3e7838e, private LOAD 66865ee1, checker 2c9801c0, and the declared fixture 1348366 with the original 100-edit / 4-editor / 5-mode profile and deadlines. All 100 edits and 500 immediate readbacks were correct.

The unchanged per-report table has 12 PASS rows, accepted compact-freshness UNOBSERVABLE proof, and zero-event writer-hold latency NOT_EXERCISED with its value still null. That last state qualifies collection applicability only: it is not a 0 ms measurement or proof of the 50 ms hold bound. The aggregate correctly remains incomplete until two more real reports are available.

Observed ACK p95 was 137.125 ms (max 188.280 ms); read-back p95 153.492 ms (max 193.878 ms); WAL peak 33.319 MiB. The original outcome population remains 8 complete, 86 proven superseded, 5 qualified coalesced and 1 functional timing-unavailable; this is not a claim that all 100 physical graph/background stages completed.

The original LOAD and guest exited 0. The outer controller exited 2 on an SSH evidence-transfer failure. The retained evidence was then recovered read-only: all 118 original members were authenticated and the original checker qualified the original report. No workload was rerun and the series was not reset.

Evidence: FINAL-RECOVERED-ORIGINAL-SMOKE01-RESULT-AND-CLOSURE.json, SHA-256 4920266fd5181ea0c97f0adce24a16d93336992f7c59fae3d61e1eb7f17ad7f9; report SHA-256 cc1abbd9615c932e9a6210f82480129a6f60356b67ba2e64ebd69af8f908fae8. Original outer failure, recovery and HOST-checker closure proofs are retained separately.

zzet avatar Nov 16 '26 08:11 zzet

Update to the run01 partial record: the next same-build smoke attempt (run02) failed collection, so three consecutive qualified smokes remain unproved. The qualified run01 is retained as historical evidence; it will not be combined with later reports by silently skipping this failed attempt.

Run02's original LOAD exited 1 and its report is incomplete with one harness-evidence error. Edit21 reached the unchanged cumulative 16 MiB physical encoded-JSONL limit (accepted 16,777,152 bytes; the next 195-byte encoded event was refused). That size includes metadata; it does not establish a codec fault, the size of an RPC response, or a product read failure. The exact source of the prolonged collection and its serving-identity/accounting qualification remain under forensic review.

The separate SSH mux evidence-transfer error occurred again. No HOST row qualification or 500-correct-readback claim has been made for run02. Its original report (12,304,382 bytes, SHA-256 179a910c9f4136d35e3df8fe358995f965d0eb3340820fc9f06e04460500da3c) and raw evidence are retained; closure proof is dc477c9258538460701fe8cd59626de9ddeec48b9111721b85e92c7217e45140.

No workload retry or run03 is selected. Any required collector/build/method correction will be explicit and will not retroactively qualify this attempt. All existing thresholds, oracles and data remain preserved; no acceptance checkbox or issue state is changed by this update.

zzet avatar Nov 16 '26 08:11 zzet

C7 accepted: three consecutive smoke runs on the same build now give identical row verdicts.

The three genuine R6 runs used distinct seeds 1/2/3, the same product CLI 3e7838e9, and the same checked LOAD/checker source 7bf4fcbdf8cf (LOAD SHA abda4760, checker SHA 23a89dab). Only the declared seed and fresh run namespace differed. Each completed 100 edits and 500 correct immediate readbacks; all returned evidence members were authenticated. That is 300 edits and 1,500 correct readbacks, with no previous-series report substituted. Workload, guest, outer controller, per-run checker and aggregate checker all exited zero.

Run ACK p95 Readback p95 WAL p95/peak
1 185.782 ms 188.396 ms 33.610 MiB
2 158.918 ms 162.374 ms 35.060 MiB
3 174.653 ms 176.897 ms 32.176 MiB

All 14 row states agree across all three reports: 12 PASS rows, writer-hold NOT_EXERCISED with original NULL timing, and compact freshness UNOBSERVABLE under the approved content/refusal contract. Zero hold events establish collection applicability only: this does not claim an exercised writer-hold p95 of zero or satisfaction of the 50 ms hold bound. No numeric compact stale count is invented.

This checks C7 consistency only. The other unchecked smoke-lane, nightly-matrix and seeded-regression criteria remain unchecked, and this issue remains open. Historical failed workloads and setup/aggregate-operator failures remain retained; they were not converted into passing reports. No current-main, RC or whole-method acceptance is claimed.

Retained final evidence: issue1017-declared-go-call-fixture-three-smokes-r6/FINAL-THREE-SAMEBUILD-SMOKE-STABILITY-AND-CLOSURE.json, SHA-256 cbe994ac411e06eaa0c4073ae8191a7f5701d8445e59415796e154412b97dd29; aggregate 39cdba5f921a0f0b5b8e62cac4702bfd4bfd9942ed7723ac7c2bcdbed985a0f5, physical closure 9ef7c7f5a7ba4d52bbf5aa067d23ce0c0aded5fe677dfd76b8089245ae7f7413.

zzet avatar Nov 16 '26 11:11 zzet

The required GitHub-managed Ubuntu CI job now runs the edit-loop checker and both tagged Go regression controls. #1517 merged this into standard CI.

  • The checker covered the clean case, ACK-delay and read-gate closure breaches, and a breach in a single repeat.
  • The tagged controls exercised ACK seeding inside an admitted file edit and forced read-gate closure through SQLite's actual admission path and pause counter.

All three packages passed in the original Ubuntu job. The CI result passed for the same revision.

The standalone reference measurements and applicable physical seeded verdicts remain open under the criteria above.

zzet avatar Nov 21 '26 16:11 zzet

C2 standalone smoke and managed regression proof

The retained R6 cohort ran the standalone loadedit-4 smoke with probes on Linux arm64. The measured cgroup had eight CPUs and a 16 GiB memory limit. Each run completed 100 edits with 500 correct immediate readbacks.

Original seed Wall time Original report SHA-256
1 404.233 s 334c4172e740aa1aba6f1161871547c0e8bc7f8de66e66b5aed9d60ffa8b3a95
2 350.960 s d1ed252c69026631ff7ed9a8dec1a6985f007e96e65bcc6ed14589128db7aff3
3 447.312 s 3065802b5fa2534d7e9e041edfbdfe183724a96191d53009888704959833d826

The original comparator exited 0. All three reports agreed on the 14 row states, with 12 passes. The aggregate retains the values and budgets below. An em dash marks a null value or an inapplicable baseline field.

Row Aggregate value Budget v0.64.10 baseline Delta Verdict
Edit ACK p95 185.782348 ms 200 ms — — PASS
Edit ACK max 226.022268 ms 1,000 ms — — PASS
Edit + one read p95 188.395976 ms 350 ms — — PASS
Correct immediate readbacks 100% 99.9% minimum — — PASS
Reclaim writer-hold p95 — 50 ms — — NOT_EXERCISED
Read-gate closures 0 0 — — PASS
Silent stale, JSON 0 0 — — PASS
Silent stale, TOON 0 0 — — PASS
Silent stale, compact — 0 — — UNOBSERVABLE
Silent stale, facade 0 0 — — PASS
Silent stale, CLI 0 0 — — PASS
WAL p95 35.059730529785156 MiB 1,059 MiB 1,059 MiB −1,023.9402694702148 MiB PASS
Edit + one read max 227.042610 ms 1,000 ms — — PASS
WAL peak 35.059730529785156 MiB 2,048 MiB — — PASS

Compact freshness was unobservable under the approved content and refusal contract. The complete reclaim census observed zero writer-hold events, so the hold p95 is null and the 50 ms limit was unexercised.

These results retain the original product source 3e7838e97267eb0f71acbeb7f28f808ede5325fc, LOAD and checker source 7bf4fcbdf8cf6e4d23f1180bd902ea56431ab239, and fixture revision 134836600b9c79f61de6fd3e53ca67f6dcb04e16. The aggregate JSON SHA-256 is 39cdba5f921a0f0b5b8e62cac4702bfd4bfd9942ed7723ac7c2bcdbed985a0f5. The original R6 evidence and source map record the per-run measurements and retained closure.

The managed CI half comes from #1517 at ecdb391ed946a259ac8d33ec16988ac50385a938. The checker regression test verified nonzero return and the intended failed row for ACK-delay and read-gate closure breaches. The original check passed on its first attempt. Checker test source · Original Ubuntu job

C2 adopts the historical standalone smoke and the managed checker proof. The remaining reference rows and physical seeded verdicts stay open.

zzet avatar Nov 21 '26 22:11 zzet

Seeded regression (a) — edit ACK failure

The restored 3 s watcher wait was exercised on the Linux reference host with the original loadedit-4 schedule. Each of the three repeats recorded 100 committed edits with matching successful RPC attempts. The checker merged in #1532 examined those original reports and exited 1.

Comparator row Limit Observed Result
edit_ack_p95 0.20 s 8.441468338 s FAIL
edit_ack_max 1.00 s 8.597886993 s FAIL

Two original reports had incomplete readback evidence. The original 14-row unavailable output is retained. The corrected output leaves the other 12 rows unavailable and preserves the overall failure. Its SHA-256 is d7da06dfbfb7d1954abaefb63fc5865155f23234b58af19f9c726c763fa69d1c.

GitHub-managed CI passed the comparator rejection check and the tagged test that exercises the restored wait inside a real admitted write. The corrected checker also passed the original macOS, Ubuntu, and Windows test jobs for the merged source. Managed rejection and seed · Required CI result

zzet avatar Nov 22 '26 21:11 zzet

Seeded regression (b) — read-gate closure failure

The tagged build at 25b113de2020fec7f3e04f05fe7781aedeb9073a exercised the real closed-admission reclaim path during edits on the standalone Linux reference host with an 8-CPU, 16 GiB cgroup. The three original loadedit-4 repeats each recorded 100 committed edits and took 497.29, 462.26, and 541.84 seconds. Their same-daemon pause_count deltas were 179, 121, and 177. In each repeat, the owned before and after status observations bracketed the edit window, and the raw delta matched the reported closure count.

The checker merged in #1534 evaluated those original reports with the original budget policy and exited 1. It exported read_gate_closures as FAIL at 179 against the zero budget. The overall verdict remained failed. The reports had incomplete readback evidence, so the other 13 rows stayed unavailable, and the per-report validation output was byte-identical to the original. The corrected aggregate SHA-256 is e2551399f87e5473b24449856286b4b52703a6d0ad8726319bc3747f8761aee8.

GitHub-managed CI passed the comparator rejection and the tagged test that drives the real read-admission path and observes the pause counter. The original Ubuntu, macOS and Windows checker jobs passed. Managed rejection and seed · Required CI result

zzet avatar Nov 22 '26 22:11 zzet

C3 reference evidence linked so far (partial linkage, no checkbox change)

All runs below used the Linux reference VM (8 CPUs, 16 GiB cgroup memory limit, 8 GiB swap limit), 100 edits per run, and pinned fixture commits recorded in each report. Values were recomputed from the original reports with the checker's formulas: nearest-rank p95, ACK plus one read = t_gate_readback_ms, five immediate read kinds per edit, and phase WAL metrics. The thresholds are unchanged. A PASS/FAIL below compares the measured value against the budget row. The official checker still refuses every report whose LOAD run exited 1.

Row Build, ACK mode, LOAD exit ACK p95 / max ACK + one read p95 / max Immediate read-backs correct WAL p95 / peak Reclaim hold Silent stale JSON / TOON / facade / CLI
4 editors 3e7838e9, full, three runs, all exit 0 (accepted table) worst run 185.78 / 226.02 ms, pass worst run 188.40 / 227.04 ms, pass 500/500 in each run worst 35.06 / 35.06 MiB, pass not exercised (0 holds) 0 / 0 / 0 / 0
4 editors (current main, extra) 9e533fe2, full, exit 0 652.23 ms fail / 742.11 ms pass 653.77 ms fail / 744.55 ms 500/500 100.30 / 109.18 MiB not exercised 0 / 0 / 0 / 0
8 editors 9e533fe2, full, exit 1 547.80 ms fail / 738.22 ms pass 653.01 ms fail / 1,241.57 ms 496/500 fail 110.05 / 139.23 MiB not exercised 0 / 0 / 0 / 0
8 editors 9e533fe2, local, exit 1 31.82 / 68.91 ms, pass 357.00 / 670.16 ms, pass 497/500 fail 104.48 / 118.56 MiB not exercised JSON not measurable (no fresh claims on summary) / 0 / 0 / 0
16 editors 4d70b41d, full, exit 1 574.65 ms fail / 793.12 ms pass 880.15 ms fail / 1,085.03 ms 497/500 fail 280.81 / 362.87 MiB 3 holds, p95 46.66 ms, pass 0 / 0 / 0 / 0
Six repositories 9e533fe2, full, exit 1 checker row unavailable (no per-edit ACK proof fields); client-observed 2,917.04 / 3,017.15 ms against 0.3 s / 1 s not produced not measurable (only source and file read back: 200/200) 370.53 / 445.88 MiB, pass not exercised not produced (this run shape has no gate modes)

Compact output carries no freshness claims, so its silent-stale count is unobservable in every row. Read-gate closures were 0 in every run.

The incorrect read-backs were all immediate get_file_summary: 8 editors full ACK, edits 27, 50, 51 and 52; 8 editors local ACK, edits 8, 23 and 48; 16 editors, edits 93, 94 and 95. That is three at 16 editors, not two as an earlier internal summary said.

The ACK mode of each row is shown. The edit_ack_p95 budget values (0.15 / 0.2 / 0.25 / 0.35 / 0.5 s) equal #1012 C1's local-ACK targets. Per the maintainer's decision, the edit_ack rows bind to local ACK; the full-ACK measurements are linked as additional evidence.

Still missing for C3: widths 1 and 32 (no matching run), and the six-repository read-back, correctness and per-mode rows, which this run shape does not produce. C3 stays open.

Original report SHA-256: 4 editors 334c4172e740aa1aba6f1161871547c0e8bc7f8de66e66b5aed9d60ffa8b3a95, d1ed252c69026631ff7ed9a8dec1a6985f007e96e65bcc6ed14589128db7aff3, 3065802b5fa2534d7e9e041edfbdfe183724a96191d53009888704959833d826, f557c8a415580a5a231dc6df65406385ec9dad2e892bb512e2344dfbfc29567f; 8 editors 81d755d092adc3e3059b7a886c4540769311fd238a0d9276b3b6a147e9af72de, ce48c4c0e0b577420011e7d216ac994c0483c8a95b7da4e9aeeee5a37a156b81; 16 editors 0a0eafec687ccb12398c00c90e426a36b09c26d1218a12ed19625359648185c7; six repositories 21c92d72663ca4e8160dfec143cc2fab265eeef4c9a88ca322051085575d28a0.

zzet avatar Nov 25 '26 08:11 zzet

Reference evidence for the budget rows. All numbers below were measured on the reference VM (8 CPUs, 16 GB cgroup) with the load runs, on build 5b9017a8. The release commit 66bf5aa8 adds #1708 (a re-check of linked-worktree view readiness) on top of it; the load runs were not repeated on the release commit.

The rows are linked with their original reports. At 1 and 4 agents (local ack) every threshold is met: ack p95 36 ms, ack plus one read 45 ms and 305 ms, read-back 100%. At 16 and 32 agents the ack and read thresholds are met (ack p95 36 and 54 ms; ack plus one read 414 and 615 ms) but read-back is 99.6% and 99.8%, below 99.9%: one error at 32 agents is an untyped RPC error (#1697) and the 16-agent misses are typed retry refusals. With the default full ack at 32 agents three summaries came back empty under store contention (#1706). The 8-agent row is from an earlier build (ack p95 32 ms, ack plus one read 358 ms, read-back 99.8%); six repos with local ack: ack p95 23.5 ms, WAL p95 682 MiB against 760, read-back checked on file and source only. Reclaim hold p95 is 10 to 14 ms against 50 ms in every row.

The thresholds are reported, not waived. The 8-agent and six-repo rows are accepted as linked with these caveats. This issue closes for v0.64.12 with these rows linked; the follow-ups above carry the remaining read-back items for v0.64.13.

zzet avatar Nov 30 '26 11:11 zzet

Reference evidence for the budget rows. All numbers below were measured on the reference VM (8 CPUs, 16 GB cgroup) with the load runs, on build 5b9017a8. The release commit 66bf5aa8 adds #1708 (a re-check of linked-worktree view readiness) on top of it; the load runs were not repeated on the release commit.

The rows are linked with their original reports. At 1 and 4 agents (local ack) every threshold is met: ack p95 36 ms, ack plus one read 45 ms and 305 ms, read-back 100%. At 16 and 32 agents the ack and read thresholds are met (ack p95 36 and 54 ms; ack plus one read 414 and 615 ms) but read-back is 99.6% and 99.8%, below 99.9%: one error at 32 agents is an untyped RPC error (#1697) and the 16-agent misses are typed retry refusals. With the default full ack at 32 agents three summaries came back empty under store contention (#1706). The 8-agent row is from an earlier build (ack p95 32 ms, ack plus one read 358 ms, read-back 99.8%); six repos with local ack: ack p95 23.5 ms, WAL p95 682 MiB against 760, read-back checked on file and source only. Reclaim hold p95 is 10 to 14 ms against 50 ms in every row.

The thresholds are reported, not waived. The 8-agent and six-repo rows are accepted as linked with these caveats. This issue closes for v0.64.12 with these rows linked; the follow-ups above carry the remaining read-back items for v0.64.13.

zzet avatar Nov 30 '26 11:11 zzet