Repository navigation
3.x.x: Record the D1 production-window load matrix (200k/400k/500k) that #271 could not run - #473
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Follow-up issues from this matrixEvery finding this PR records that is not settled by the PR itself now has an issue. Each links back here and to #447, and each carries the evidence pinned at this PR's head (
Severity: P0 confirmed loss of blocks, shares or funds; P1 needed before #291's go/no-go; P2 should fix, not blocking; P3 later. #483 covers the one set of findings that was flagged during the write-up but not verified before this PR was opened; it has since been checked by reading the code at Two things remain outside any issue on purpose: this PR's own review, and the D1 disposition, which is requested on #260. |
59493fb to
6fa88da
Compare
`proc_pid_rusage` reports `ri_user_time` and `ri_system_time` in Mach absolute-time units. The harness divided them by 1e9 as if they were nanoseconds. On Intel the timebase is 1/1 and the two agree; on Apple silicon it is 125/3, so every frontend's `cpu_seconds` and `cpu_cores_mean` was under-reported by about 42 times. #447's runs on an M5 Max exposed it: 0.2500 s of CPU read as 0.0060 s. Scale by `mach_timebase_info`. A timebase the kernel will not give, or a zero denominator, makes the figure unknown rather than wrong. The arithmetic is a plain function so it is tested on every platform, and a second test burns a known amount on the thread's own CPU clock and requires the process figure to cover it. That one fails against the old arithmetic (0.0048 s reported for 0.2 s burned); nothing compared the reading with CPU really spent before, which is how this went unseen. Runs recorded before this change carry the under-reported figure. Refs #447 Co-Authored-By: Claude Fable 5.1 <[email protected]>
#447. The 200k, 400k and 500k windows all exited 3 at startup on #271's base, refused by the JSONB ceiling. #273 has since merged, so they can run, and this records them as a second part of docs/prism-throughput-measurements.md with its own host, method and tables. No table mixes it with #271's host or build; statements in the #271 part that are no longer true of 3.x.x carry a pointer instead of being rewritten. Base a193705, 39 runs, on a laptop: no #291 rehearsal host had been named, and the document says what that changes. The part that decides the verdict is that PostgreSQL on macOS does not force the drive cache on commit, and the append commits inside ORDER_LOCK. A control that changes only wal_sync_method takes 500 shares/s to about 117. - 200k, 400k and 500k run; all 22 rate-matrix runs reconcile exactly. - 500 shares/s: rate sustained in 22 of 22 repeats. By the strict rule 4 of 8 configurations are met; the other 4 each refused 1-3 valid shares of about 150,000 at the commit gate when a tip's work arrived. - 2,000 shares/s: not met by any configuration (1,468-1,623 median). More frontends add ORDER_LOCK waiters, not throughput. - Found blocks land at 400k under load, and `candidates list` shows nothing unfinished. Dense cadence ran at D1 at 400k, three of three. - Build control: #271's build sustains 500 shares/s on this host too, so its 238-304 was its host; and its burst ceiling here is about a fifth higher than the current build's. Both cross runs were refused, so whether the server or the harness moved is not known. Every table is generated from the side reports; none is typed by hand. Counts stated in prose are computed from the reports when the part is built, with guards that refuse to build when the prose is wrong. Refs #447 Co-Authored-By: Claude Fable 5.1 <[email protected]>
6fa88da to
efba8e3
Compare
…nd a per-PR smoke run (#521 item 6) (#536) * 3.x.x: load-harness realism, checked-in presets, a nightly workflow and a per-PR smoke run (#521 item 6) qbit-prism-load gains a realistic population, all of it off by default so every existing run takes its old code paths byte for byte: - --recipients N and --recipient-weights uniform|zipf:s|pareto:a| whale:f+<dist>: distinct payout addresses whose sessions and seeded window shares follow the weights. The window's recipients are the live sessions' addresses, with the programs the server derives for them. - --session-hashrate-sigma and --session-difficulty vardiff:<ratio>: each session asks for its own difficulty with d= in its Stratum password. The configured difficulty is the window difficulty over the mean offered multiplier, so the window keeps its length. - --template-bits: a harder fake network, so a three-order spread over a 400k window stays above 2^-32, the least a share target can express. The entry check refuses a spread below that floor. - --arrival bursty:cv1,cv60,max: per-second and per-minute rate bursts. - --pool-fee-bps: the pool fee on, as mainnet runs it. - --seed: every draw is reproducible. - --plan tips: warm-up only, with no artifact. The side report records the generated and driven population per address, and each phase's realised arrival. Presets in crates/qbit-prism-load/presets pin every result flag. The harness and a test both refuse a preset that omits one or leaves it to a default. There are 16: the #271 D1 20k fixture, #275's tip-delivery benchmark, a 500-address variant of each, #473's eight D1 cells exactly as run on a193705 (pre-#497 admission), mainnet-floor, growth-5x, growth-20x and the smoke preset. qbit-prism-load-gate holds a run to its preset's gates: exit 0, reconciliation, per-phase shortfall, #473's rule where asked, and the tip-to-last-notify p99. It prints #473's verdict-table columns. .github/workflows/prism-load-nightly.yml runs the nightly presets on 8 vCPU runners, and any selection on dispatch. It records pg_test_fsync, uploads the reports and writes a job summary. Its live-nightly job runs the opt-in live_regtest variants listed in test/prism-nightly-gated-tests.txt and proves them with the gate manifest. The per-PR smoke run is a gated test that drives the smoke preset against a debug server and adds about a minute to its shard. Refs #521, #473 Co-Authored-By: Claude Opus 5.5 <[email protected]> * 3.x.x: refuse a pinned preset flag on the command line, and gate reconciliation as the harness defines it (#521) A preset flag pinned false or null is left off the expanded command line, so clap never saw it twice. The command line could then set it and run a different workload under the preset's name and SHA-256: --recipients, a burst, --mid-flight-kill or --database-url on tip-275, for example. expand_command_line now refuses any flag the preset pins, whatever its value. The gate failed a run whose reconciliation had a committed share without an acknowledgement, although the harness explains each one and exits 0 for a submit whose answer the drain window cut off. It now gates acknowledged shares missing from PostgreSQL. It reports those commits beside their explanations. An unexplained commit is still a durability finding, and a divergence inside the run still exits 5, and both remain gated. Refs #521 Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…erence host (#511) scripts/prism_load_ab.py runs a preset as interleaved repeats of two builds, each from its own worktree with its own harness and server, under a benchmark lock, a load gate, host sampling, pg_test_fsync before and after, and a run ceiling. Every flag comes from the checked-in preset; a build whose harness predates a pinned flag runs without it only where legacy-flags.json shows it ran that value anyway, so d1-20k reproduces #479 STEP 1 against 5d0042f. qbit-prism-load-compare summarizes the series against #473's D1 rule (shortfall 0, no valid share refused, no submit unanswered, ACK p99 within the limit, in every repeat) per gated phase and exits 0/1/2. docs/prism-release-benchmark.md names the reference host and its 288 us fdatasync flush cost, the release preset pair, and the release-checklist line, which mainnet-deployment.md's release inputs now carry. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, and a storm-window entry check (#521) (#559) Presets are renamed for what they measure: - throughput-20k-window-1fe[-500-addresses], from d1-20k[-realistic]; - throughput-{200,400,500}k-window-{1,2,4}fe-{async,sync}, from #473's d1-473 cells; - tip-delivery-2000-miners-400k-2fe-retarget[-500-addresses], from tip-275[-realistic]. The 500-address variant is now manual; - mainnet-shape-{130,650,2600}-addresses, from mainnet-floor, growth-5x and growth-20x; - rental-churn-bursts-and-storms; - pr-smoke. Their flags are unchanged, and each description keeps its issue references. The old names still select their presets for one release: presets/aliases.txt is read by the matrix planner (the dispatch preset input) and by prism-load-run.sh, each with a deprecation warning. The nightly matrix builds once. The plan job pins the ref to one commit. A single job builds the release server, harness and gate there, and ships them with their Cargo dep-info. Each preset job checks out that commit and unpacks the binaries into target/release, so the harness still ties the server to the checkout. It no longer installs Rust or builds. With more than one reconnect storm, --storm-reconnect-seconds must now be shorter than --storm-interval-seconds. Otherwise a storm could pick sessions the previous one left offline, whose closes the client ignores, and overstate its drops (#539 review). Refs #521 Co-authored-by: Claude Opus 5.5 <[email protected]>
…'s D1 rule (#511) qbit-prism-load-compare reads an A/B series' manifest and each run's side report and prints one table per D1 phase, a row per build, with the verdict: the candidate passes when every repeat exits 0 with shortfall 0, no valid share refused, no submit unanswered and ACK p99 within the limit in each gated phase, passes the preset's own gates, and drove the pinned workload. Exit 0 pass, 1 fail, 2 bad inputs. The workload check holds every counted run to what the preset pins, read from the harness's own parser and planner: topology, window (solved and measured), frontend server settings, realism and churn settings, node mode, dense-cadence gaps, external tips, scheduled blocks, reconnects, memory floor, ACK limit and forecast, and each planned phase's rate, length, artifact membership and database delay. A build whose harness predates a flag is exempt only where the driver dropped it as legacy. A report naming another build's revision is refused, never pooled; a series with no base run in the medians fails. --validate-preset runs the preset loader and the harness's entry checks, for the driver's preflight. The per-PR smoke test asserts a real report reads as the comparator expects. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…'s D1 rule (#511) qbit-prism-load-compare reads an A/B series' manifest and each run's side report and prints one table per D1 phase, a row per build, with the verdict: the candidate passes when every repeat exits 0 with shortfall 0, no valid share refused, no submit unanswered and ACK p99 within the limit in each gated phase, passes the preset's own gates, and drove the pinned workload. Exit 0 pass, 1 fail, 2 bad inputs. The workload check holds every counted run to what the preset pins, read from the harness's own parser and planner: topology and launched frontends, the database mode and replication premise, the payout window (solved and measured), frontend server settings, realism, churn, node and dense-cadence settings, the churn plan as carried out (rentals spawned and departed, storms and their drops, reconnects, churn tips), external tips, scheduled blocks, reconnects, memory floor, ACK limit and forecast, and each planned phase's rate, length, artifact membership and database delay. A build whose harness predates a flag is exempt only where the driver dropped it as legacy. A report naming another build's revision is refused, never pooled; a series with no base run in the medians fails. --validate-preset runs the preset loader and the harness's entry checks and refuses a preset that gates no D1 phase, for the driver's preflight. The per-PR smoke test asserts a real report reads as the comparator expects. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…name the L3 suites (#550) Three presets from #473's run table, every flag as it ran them on a193705: throughput-400k-window-2fe-async-3-blocks (--scheduled-blocks 3) and dense-cadence-400k-window-{1,2}fe-async (--cadence dense --scheduled-blocks 15). The 20k dense attempt, which exited 6, is not a preset. presets/suites.toml names suites apart from each preset's schedule, so a preset can be nightly and in L3 at once: l3-full is #447's matrix, every #473 cell three times, and l3-reduced is 400k at 1, 2 and 4 frontends, async, once. Both take the 32 vCPU class until #542 picks one. prism_load_matrix.py plans a suite as suite:<name>, one job per repeat, and reads the file only for a suite selection, so a broken suite never stops the nightly's plan. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…summarizer (#550) qbit-prism-load-compare --collate reads the plan job's plan.json and each run job's artifact and prints, per D1 phase, a row per preset: #473's configuration columns (sessions, window, frontends, replication, plan) and compare::row's cells, so a cell reads the same as in the A/B table. Every run is held to its preset's own gates. A run counts only when its artifact is there, its report names the plan's commit, it ran the checked-in preset byte for byte and was built clean. A planned run with no artifact or another build's report is listed and fails the suite, never dropped. The verdict (qbit.prism.l3-verdict.v1) says whether every run reached its gate and whether every one passed it; a tag's promotion reads it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…er and reference host (#511) (#564) Part of #511 (S4 of #487): the A/B release benchmark that #479 STEP 1 ran by hand, as one command and a summarizer. qbit-prism-load-compare holds two builds' repeats of one preset to #473's D1 rule: exit 0, no shortfall, no refused valid share, no unanswered submit, and ACK p99 within the limit, in every gated phase. It renders one table per D1 phase and each run's own gates. Every counted run must have driven what the preset pins, as this harness's parser and planner derive it: topology, window, server settings, realism, churn, node, cadence, tips, blocks, reconnects, the memory floor and each planned phase's rate, length and completion. A figure a report does not carry fails rather than counting as zero, and a report naming another build's revision is refused. A pinned count is a count of distinct entries, and the session count is the distinct sessions holding work when the load began, which the harness now reports. scripts/prism_load_ab.py builds each ref in release mode in its own worktree and runs the pair under a per-series and a host benchmark lock. It adds a cooldown and a load gate before each run, alternates which build goes first, and records the host. Every process left below it is stopped on every exit path. A build whose harness predates a pinned flag runs without it only where legacy-flags.json shows it ran that value anyway; otherwise the pair is refused. That includes --ctv-settlement, which builds before #548 ran off. The release preset pair resolves against 5d0042f. docs/prism-release-benchmark.md names the reference host and the preset pair, and docs/mainnet-deployment.md gets the checklist line. Taken over per #626. 3.x.x was merged in, and the last three Codex findings were fixed: distinct tip and block hashes, distinct sessions instead of connection events, and incomplete phases. /code-review high then found two places where the new checks read differently from the counts beside them, and those were fixed too. Codex's later findings, seven hardening checks against a hypothetically regressed candidate harness, are deferred to #700. Three of them cannot occur on the release preset pair. All of qbit-prism-load's tests passed locally, with its gated binaries against PostgreSQL 16 and the pinned qbitd, as did the Python driver tests. #511 stays open: one recorded A/B series on the reference host is still to run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…name the L3 suites (#550) Three presets from #473's run table, every flag as it ran them on a193705: throughput-400k-window-2fe-async-3-blocks (--scheduled-blocks 3) and dense-cadence-400k-window-{1,2}fe-async (--cadence dense --scheduled-blocks 15). The 20k dense attempt, which exited 6, is not a preset. presets/suites.toml names suites apart from each preset's schedule, so a preset can be nightly and in L3 at once: l3-full is #447's matrix, every #473 cell three times, and l3-reduced is 400k at 1, 2 and 4 frontends, async, once. Both take the 32 vCPU class until #542 picks one. prism_load_matrix.py plans a suite as suite:<name>, one job per repeat, and reads the file only for a suite selection, so a broken suite never stops the nightly's plan. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…summarizer (#550) qbit-prism-load-compare --collate reads the plan job's plan.json and each run job's artifact and prints, per D1 phase, a row per preset: #473's configuration columns (sessions, window, frontends, replication, plan) and compare::row's cells, so a cell reads the same as in the A/B table. Every run is held to its preset's own gates. A run counts only when its artifact is there, its report names the plan's commit, it ran the checked-in preset byte for byte and was built clean. A planned run with no artifact or another build's report is listed and fails the suite, never dropped. The verdict (qbit.prism.l3-verdict.v1) says whether every run reached its gate and whether every one passed it; a tag's promotion reads it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…didate, v* tags and weekly (#550) (#608) Refs #550 (S5 of #487). prism-load-l3.yml runs #447's production-window matrix as checked-in suites (crates/qbit-prism-load/presets/suites.toml): - l3-full: 11 cells x 3 repeats on the 32 vCPU class. It runs on a same-repository PR that changes VERSION, on the release-candidate label, on a v* tag and on dispatch. - l3-reduced: 400k at 1, 2 and 4 frontends, weekly on 3.x.x. #473's found-block and dense-cadence cells become presets. qbit-prism-load-compare --collate renders one build's suite into #473's tables with #511's summarizer. It writes a complete/passed verdict, and lists any missing, foreign or edited run as failing the suite rather than dropping it. A tag promotes the newest finished same-repository PR run of l3-full whose verdict is complete for the tagged tree (scripts/prism_l3_promote.py), and carries that verdict; otherwise it runs the suite. check_e2e_scenarios.py gains a suites evidence key beside 3.x.x's lane_checks. Taken over per #626 and restacked onto 3.x.x after #564. The new presets pin --ctv-settlement false and --faults null, as every preset must since #644 and #623. collate fills #564's predates_report_fields. docs/prism-e2e-load-ci.md gets #626's L3 section, which notes that dispatch and the weekly run need the file on main. Spend: once this is on 3.x.x, a v* tag or a VERSION-changing PR starts l3-full (about $42); the coordinator accepted that for the release-candidate bump. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The L3 skip never fired. Its decision asks GitHub whether the run that saved the marker passed two jobs, by name, and one of the names was "Collate the suite into #473's tables". That is how the job's line reads, but the value is unquoted, so YAML ends the name at " #" and GitHub reports the job as "Collate the suite into". No run ever showed the longer name, and every skip was refused. The decision now asks for the name GitHub reports, and a test reads each workflow's job names as YAML does and requires the names the decisions ask for to be among them. The job keeps its name: it is older than this change and other things may know it. The promotion walk no longer crashes on a listing that is not the documented object, or on an artifact whose created_at is not a string: the first is a failed lookup, which is a rerun, and the second ranks oldest, as an artifact without the field did. Removing the filter on this run's own artifacts had sent more artifacts through that sort. Co-Authored-By: Claude Fable 5.2 <[email protected]>
A pull request lands as one re-signed commit with the same tree, and GitHub then runs CI again on it. This makes that second run skip the work when the tree under test has already passed. ## What changes - `ci.yml` keeps a pass marker: a GitHub Actions cache entry whose key names the workflow file, a salt (`vars.TREE_PASS_SALT`), the tree of the commit under test (the pull request's merge commit), and the run and attempt that saved it. The entry is only looked up, never restored. - A skip needs GitHub's own records of that run, not the marker's word: a `pull_request` run of the same workflow file on this head branch whose head had this head's tree, an artifact of that run named after the full key, the save job and `Lint, compile, and test` green in the attempt that saved, and no later failure of that check. - The run must belong to this pull request against an unchanged base: this is the only pull request ever opened from its head branch; neither its timeline nor its issue events hold an event that moved its base, or that deleted or restored its head branch; and the run was created after the pull request was. - A full run that fails is recorded twice, as a fail marker in the cache and as an artifact, and a tree with either never skips. Any failed lookup, API error or unexpected answer runs everything. - On a skip, eleven jobs are skipped, the eight matrix shards still run on a small runner and skip every step (so each shard's check reports success under its own name), and `Lint, compile, and test` passes by one `jq` rule over the job results. - `prism-load-l3.yml` keys on the plan's tree and skips only when `scripts/prism_l3_promote.py` would promote a passing `l3-full` run of exactly that tree and passed over no newer run of it, this run's own earlier attempts included. Its decision asks for the collation job by the name GitHub reports, "Collate the suite into": the job's line goes on with " #473's tables", which YAML reads as a comment, and with the longer name the L3 skip could never fire. - Pushes, tags, dispatches, pull requests from forks and any pull request labelled `run-full-ci` run everything. - The marker job runs on a GitHub-hosted runner, and only for pull requests from this repository, because Blacksmith runners serve `actions/cache` from their own store. - `docs/ci-same-tree-skip.md` explains the mechanism, the label, the salt, and what remains possible; three other docs are brought in line. ## Validated on this pull request Each step was run here on GitHub. The unsigned test commits it needed have been removed again. | Step | What was done | Result | | --- | --- | --- | | Full run | First run of a tree | Every job ran; one cache key saved under `refs/pull/839/merge`, with its artifact | | Same tree, new commit | Pushed a commit with the same tree | 59 s against about 24 minutes; eleven jobs skipped, the eight shards green without steps, no PostgreSQL service started | | Failed full run | A full run failed on a flaky test | The fail marker was saved, and the next run of that tree ran everything | | Final code | Full run on the last commit (run 43279280398), then a commit with the same tree | Full run 31.5 minutes, marker saved; the same-tree run took 38 s with thirteen jobs skipped, citing that run | Not exercised on GitHub, covered by unit tests only: the L3 skip (it needs a version-bump pull request and one full `l3-full` run), a second pull request from the same branch, a retargeted pull request, and a re-run that changes the saving attempt. ## What it does not protect against Someone with write access who is set on landing an untested tree. The run that vouches is tied to this pull request by its head branch, its head tree, its creation time and the pull request's recorded events, and by GitHub's listing of the pull requests ever opened from the branch; GitHub offers no record that names the pull request a run belonged to. `docs/ci-same-tree-skip.md` lists the cases that rest on that listing. The `run-full-ci` label stays (the feature uses it); cache entries and artifacts belong to this pull request's runs and expire by themselves. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Squashed commits: a921ea9 ci: skip repeated CI when the tree under test already passed 39acd3d Merge branch '3.x.x' into kiwidream/ci-skip-same-tree 40d262a ci: an L3 skip never lets an older pass stand in for a newer run of the tree a99e28a ci: an L3 skip sees this run's own earlier verdict, and a failure is recorded twice 13f9e80 ci: the fail records survive a stalled save and a re-run; malformed L3 artifacts refuse a skip 5159dd2 ci: pin the missing-expired case on its own, and say what was observed 4bfbee8 ci: ask the L3 skip for the collation job by the name GitHub gives it 2875edd ci: a skip never takes a run created before this pull request 8d5b406 ci: a skip takes only a run created after this pull request, and refuses a head branch deleted while it existed 34a7a7a docs: say what was measured, and name the restore as well as the deletion Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #447. (The issue targets
3.x.x, so it will not close automatically on merge.)What this is
#447 asks for no server code: run the harness at the production windows #271 could not reach, record the results, and put the D1 disposition in front of the people who decide it. This PR adds that record to
docs/prism-throughput-measurements.mdas a second part, "Production-window matrix ona1937054(#447)", with its own host table, method notes and tables. No table mixes it with #271's host or build. The #271 part keeps its text; statements that are no longer true of3.x.xcarry a pointer to the new part.It also fixes one harness defect the runs exposed, which the issue's scope allows.
Read this first: the host
No #291 rehearsal host had been named, so the runs were made on a laptop (Apple M5 Max, 128 GiB, macOS, PostgreSQL 16.15). The document states the difference, and one part of it decides how every rate should be read:
wal_sync_method=open_datasync).pg_test_fsyncon this disk: 34 µs per commit, against 3.5 ms with a forced flush.ORDER_LOCK, so that cost is serialised.So the rates here are what this build does when a commit is nearly free. They are not a prediction for the rehearsal host.
pg_test_fsyncon its WAL volume would say in two minutes which side of this it is on.Results
ORDER_LOCKaveraged 14, 30 and 62 waiters at 1, 2 and 4 frontends with no gain in rate; all frontends together used under half a corecandidates listshows nothing unfinished, and the run's database holds the 3 rows assubmitted/accepted. The #265 refusal #271 expected did not occurBuild control (beyond the listed steps). #271's 20k argument list, unchanged, on this host, three interleaved repeats per build.
burst3.x.x: End-to-end throughput floor and load harness #271's build (5d0042f6) acknowledged 1,979–1,994 shares/s withORDER_LOCKunsaturated; the current build acknowledged 1,559–1,649 with it saturated, about a fifth lower. The current build is more than ten times better on ACK p99 at 500 shares/s (17–32 ms against 418–446 ms).The measured base is
a1937054. This branch is rebased onto the current3.x.xhead, nine commits later; none of them touches the files changed here. The numbers describea1937054, and the document names it in its host table.On the verdict rule. D1 (#260) sets rates only. "Met" is defined from the harness's own accounting (
shortfall == 0,rejected_valid_shares == 0, nothing unanswered, in every repeat) and not asachieved >= target, because the scheduler places 149,999 tokens in 300 s and a perfect phase reads 499.997. The rule was fixed before the 400k data and was not relaxed when four configurations then missed it on one to three shares; each "not met" carries its reason and size instead.Things the runs turned up
new payout work is pending, which the server no longer sends, so it reports 0 rebuild-pending rejections and anull3.x.x: Cutover qualification — migration rehearsal, failover drill, soak, go/no-go #291 budget in runs that rejected over 20,000 shares around their landings. The document reports the phase from the report's other fields. This needs a harness follow-up and a decision on which rejections a landing owns; that call is not made here.unknown-job14 ms after it was sent.there is already a transaction in progressin every D1 run's frontend log, almost entirely where appends are cancelled at the commit deadline. Every such run reconciled exactly. Not investigated; nothing in the repository mentions it.The harness fix
measure.rsreadproc_pid_rusageCPU times as nanoseconds. On Apple silicon they are Mach ticks of 125/3 ns, so every frontend'scpu_secondsandcpu_cores_meanwas about 42 times too small. Verified independently: 0.2500 s of CPU read as 0.0060 s. The fix scales bymach_timebase_info; an unreadable or zero timebase makes the figure unknown, not wrong. Two tests: the arithmetic (runs on every platform), and one that burns a known amount on the thread's own CPU clock and requires the process figure to cover it. That one was confirmed to fail against the old arithmetic (0.0048 s reported for 0.2 s burned). Linux, including #271's host, was never affected. The recorded runs predate the fix, so the document's CPU columns are the reported values × 125/3, and say so.Other macOS gaps are described in the document and deliberately not changed here: the memory floor is skipped silently when
/proc/meminfois absent,pg_stat_statementsis looked for as.so, and the defaultTMPDIRmakes the cluster's socket path too long.How the numbers got into the document
Every table is generated from the side reports by one script; none is typed by hand. Counts stated in prose ("all 22 runs", where a log line occurs) are computed from the reports at build time, with guards that refuse to build if the prose's claim is false. Those guards caught two overclaims during the write-up (a teardown tail the draft had called "no lost acknowledgement", and a log line it had confined to one kind of run). The raw side reports, artifacts, frontend logs and host samples are kept outside the repository and cited by run id, as #271's were.
Verification
cargo test --locked -p qbit-prism-load: 115 passed.cargo clippy --locked -p qbit-prism-load --all-targets -- -D warningsandcargo fmt --all -- --check: clean.Not done here, on purpose
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.