ForgeDocs

Workspace prep: retained evidence and remaining attribution

The matched 29,000-file synthetic A/B does not reproduce a current-CLI slowdown: 11 valid interleaved pairs put current start/open prep 6.982 s faster, with a paired 95% bootstrap interval [−9.875, −5.120] s. This is a comparison of two frozen CLIs on one synthetic workload, not the next smoke or proof that load alone caused the historical +4.4 s. Historical startup/RPC/swap clocks cannot be reconstructed. The Issue remains open for its missing historical evidence and the authorized next smoke.

This analysis owns the increase against B1.5d (c83c4451), while the remaining absolute gap to GitHub belongs to a245bcf0. It does not replace either Issue's acceptance contract.

Matched CLI A/B

Complete observations and calculation inputs retain every process, HTTP attempt, phase, pressure sample, void and replacement. A is B1.5d Git 0383f90dbba51600c921cd19ac5014f17fdb2d35; B is hosted main at work start, State 6d15c8d512b3830c84789617fd95ea9a8af92136ca0f90665d81df7d90a2b4f9. Both built with their own pinned lockfiles on Node 24.22.1. Source and dependency pins stayed fixed. One dev-only fixture has 29,000 unique 4 KiB regular files (118,784,000 source bytes) in 29 directories: each file is an ordinal header followed by repeats of that ordinal's SHA-256 hexadecimal digest, truncated to 4 KiB. Its exact State is d3b9151ba40f90a33d443c60d5ae8dbddcc0fb46a568db2026c5c67d37239a77.

The driver is scripts/measure-workspace-prep.mjs, with the same opt-in workspace-prep-trace.mjs observer in both builds. Disposable compiled files receive only startup/write-wait callbacks; before/after hashes are retained. Each run executes start {open:false} then open in separate processes, with an explicit frozen-build canary pin and no release update. Startup is the process monotonic origin through hosted CLI dispatch, including imports and local discovery. RPC walls in this A/B are individual HTTP attempts through body consumption, not server time or SDK decode time. Parent process walls exclude pressure sampling, fixture preparation, verification and cleanup. Every completed tree was checked against all source hashes, modes and the same State pin. All 34 opens passed; none failed or silently changed source.

Cold means an empty machine-object cache per open, not a flushed OS page cache. Warm means independent cached objects cloned from the same fixture before the sequence. The 3,211,540-byte source pack is the same for both builds. The fixture has no dependencies, hooks, submodules, model agents or landing work; those parts of full smoke prep are not simulated. Warm-up and setup are outside the measured windows. Builds, fixtures and test batches used the shared heavy limiter; each measured process checked the brief's disk reserve.

The initial ABAB sequence ran 11 pairs, alternating cold/warm. A successful dev deployment workflow (42997254381, d84c5fca) ran 09:41:12–09:42:18 UTC. Initial pairs 6 cold, 7 warm and 8 cold overlap that conservative window and are void for revision drift, despite successful byte checks. Their values remain below and in the data. Three replacement pairs used those same cache modes, preserving 11 valid pairs (6 cold, 5 warm). The initial accepted backend was e7f64079; the latest successful backend for the replacements was d84c5fca. Failed deployment 42998296222 finished at 09:49:24, before the first replacement at 09:49:34; it reported schema failure and no successful push. There was no deployment workflow overlapping a replacement pair. Runtime versions are workflow evidence, not a direct server build attestation. The initial measurement window was 09:35:39–09:46:16 UTC; replacements ended 09:52:48. Total: 34 start/open runs, 68 measured CLI processes.

PairCacheA prep sB prep sB − A sUse
0cold31.96624.984-6.982valid
1warm13.6447.726-5.918valid
2cold31.24823.801-7.446valid
3warm12.4137.449-4.963valid
4cold28.88923.769-5.120valid
5warm13.0487.105-5.943valid
6cold28.93524.321-4.614void: deployment
7warm13.1437.090-6.054void: deployment
8cold35.25625.883-9.373void: deployment
9warm18.3297.770-10.559valid
10cold32.69623.840-8.856valid
6Rcold43.24826.203-17.045valid
7Rwarm18.5428.667-9.875valid
8Rcold33.04228.468-4.575valid

The adopted method uses 10,000 resamples and seed 1. These are median paired differences; subtracting separate medians produces a different number. Cache-stratified N=6/N=5 intervals are small-sample observations. The combined interval covers the registered mix of cache modes, not the distribution of a real smoke. It does not cover different source sizes, dependency/link work, model dispatch, observer overhead, backend interactions across epochs or unmeasured changes in machine conditions.

ComponentA median sB median sPaired difference s95% interval s
Start + open28.88923.769-6.982[-9.875, -5.120]
Start process2.2571.498-0.684[-0.908, -0.435]
Open process26.79622.038-5.975[-8.737, -4.602]
Startup, both processes1.4750.426-1.010[-1.374, -0.918]
Checkout core25.90821.204-5.824[-7.920, -4.483]
HTTP source-body spans, summed1.7031.550+0.000[-0.453, +0.000]
Cache verification/fill, inclusive19.68616.190-4.226[-4.728, -3.905]
Copy/hash4.1084.246+0.145[-0.287, +0.376]
Durability1.0760.000-1.076[-1.309, -0.958]
Stat index0.1100.125+0.022[+0.005, +0.043]
Publication0.0660.077+0.012[+0.005, +0.014]

Warm prep medians are 13.644 / 7.726 s, paired difference −5.943 s [−10.559, −4.963], N=5. Cold prep medians are 32.331 / 24.412 s, paired difference −7.214 s [−12.950, −4.847], N=6. Neither is a full-smoke result. Cache work and startup are smaller in current. Copy/hash is not distinguishable from no change. Indexing and publication have positive paired shifts of about 22 and 12 ms. These small phase associations remain disclosed: the stat-index loop is identical in the two builds, publication gained preservation/recovery bookkeeping, and this experiment does not isolate a generic defect behind those shifts. They cannot account for the historical +4.4 s. No speculative runtime optimization or component-fix guard is claimed for them.

Concurrent opens and the write pass

One three-open warm cohort per build ran after the initial sequence, on the same settled deployment. These are observations, not interleaved cohort pairs.

BuildOpen completion order sShared write-pass wait sTotal worker + write wait s
B1.5d13.774 / 33.992 / 51.0930.001 / 5.707 / 23.1620.878 / 8.125 / 27.367
Current7.229 / 15.892 / 20.0060.002 / 5.049 / 10.4980.056 / 5.143 / 10.573

Both builds already have the shared single write-pass lease. Current did not introduce it. Source inspection names withCheckoutWritePass in each pin; the identical callback probe measures only that lease's admission wait, while slotWait also includes worker stalls. The later old completions additionally spent 13.967 / 12.619 s in durability; current's whole-stage durability phase is zero. Cohort load was 9.33 for A and 7.32 for B, so the cohort wall difference is not claimed as a causal concurrency speed-up. Existing qualification found three overlapping APFS passes worse; this run supplies no reason to expand concurrency or remove correctness barriers. No concurrency policy changed.

Calls, bytes, load and pressure

Warm start/open totals are exactly 7 / 5 client RPCs (A/B), with 0 source GETs and 0 source-body bytes. The core warm selection counts are 2 / 1. Cold totals range 63–64 / 46–47, with exactly 17 source GETs and 7,606,875 source-body bytes per open in both builds. The per-attempt RPC names, walls, request/response body bytes and statuses are retained in the data; these are actual client HTTP attempts, not inferred per-task shares of a whole cell. The complete State descriptor is a recipe; the sampled source blob is R2. Source bytes remain in R2 and metadata in Convex. These observations are not provider-billed R2 traffic or TLS/header bytes.

Both provider log windows were live-proven and valid, with no coverage problem: 1,061 project executions, 4,622 documents read, 277 written, 2,757,201 DB read bytes, 310,760 DB write bytes and 231,046 function egress bytes. The helper's list-rate estimate is $0.003686, excluding R2 and storage; no invoice was read. Totals include probes, voids, cohorts and replacements and cannot be divided into a per-task bill. No monetary saving is claimed. Fixture seeding (30,156 uploaded objects / 132,466,663 bytes) and source-pack publication are outside those windows and outside prep time.

Every start/open retains all three load averages, free RAM, swap and VM compressor/pageout/swap counters immediately before and after; process peak RSS comes from resourceUsage. Initial one-minute load ranges were 5.35–10.68 for A and 5.63–10.39 for B, with peak child RSS 453.95 / 423.81 MiB. All replacement pressure samples and peaks are retained too. Endpoint samples do not establish continuous memory pressure or remove shared-machine confounding.

Existing receipt, with explicit scope

Open receipts now retain prep.startupMs, actual HTTP RPC attempt counts, per-function complete SDK call/failure counts and summed walls, ordinary-object logical bytes, pack objects/compressed bytes, summed download spans and writePassWaitMs. Executable agent observation begins before freshness checks. Direct library checkout callers retain unknown startup as null. Scope and overlap rules explain why RPC/download walls and write-pass wait cannot all be added to total. The SDK-level receipt includes response decode, unlike the common A/B HTTP probe.

This adds local clocks/counters to the existing one-append receipt, with zero added Convex calls, DB I/O, R2 source bytes, tables or idle work. A fake-clock/exact-request guard passes on the change and a receipt-attribution assertion fails on untouched current. Tests cover failed calls, concurrent scope isolation, freshness calls and cold/warm logical-byte receipts. No checkout algorithm, pin, source mode or durability rule changed. This merges the missing attribution into existing diagnostics; no runtime code can be responsibly removed from the measured evidence alone.

Method and populations

Read-only inputs are the retained B1.5d archive's batches/*/batch.json, runs/*/result.json, events.jsonl, samples.jsonl and final summary, and the settled n3-r1-dry-a1 and n3-r1-dry-a2 batches' matching records, checkout metrics and open receipts. Neither smoke was rerun or modified. B1.5d's CLI was 0383f90d; smoke a1's State was d4145166, smoke a2's 9acd7b98. The smokes used scripted agents; B1.5d used model agents.

Medians below use the arithmetic midpoint for even sample sizes, as the harness's summarize.mjs does. The earlier 19.7 s headline is compatible with the lower middle smoke-a1 observation, 19.749 s; its ten-task midpoint median is 19.8025 s. The B1.5d reference remains the published 15.3 s (p90 33.8 s), rather than silently substituting a different population. The registered Forge population reconstructs to 92 non-void tasks across 10 cells, median 15.328 s. Its two registered N=3 cells contribute 17 non-void tasks, median 15.344 s. The separately disclosed extra N=3 attempt is excluded here. The report's “11 scored cells” wording is inconsistent with its per-N counts, which sum to ten; do not use that wording as a filter. The published GitHub reference is 4.5 s; the same registered-record filter reconstructs 5.185 s (74 tasks). This discrepancy is disclosed, not used to change the registered target or to invent missing observations.

PopulationTasksPrep median sStart sOpen sDependency link sRelay s
B1.5d registered Forge, all N9215.3281.59012.8010.1650.002
B1.5d registered Forge, N=31715.3441.39713.3970.1480.002
Smoke a1 Forge1019.8031.91816.5460.6360.009
Smoke a2 Forge1019.3721.95316.6730.5760.009
Smoke a1 GitHub1012.765————
Smoke a2 GitHub1010.066————

These are separate component medians; they do not add to the median total. Against the pooled Forge reference, a1's open component grew 3.745 s, start 0.329 s and dependencies 0.471 s. Against the matched N=3 population, open grew 3.149 s. Dependency linking still uses one shared install and 31 module directories / 272 cloned entries per smoke task; no per-task package installation was introduced. setup.mjs prepares the environment outside the measured task; run-cell.mjs measures through dependency linking before dispatch. The model or scripted agent starts afterwards.

Per-task decomposition

All times are seconds. Each Forge prep executes two CLI child processes: start at the anchor and open at the task root (forge-arm.mjs). Their startup is included inside the start/open columns, not an additional timed phase. Neither smoke nor B1.5d retained a separate startup clock. “Outside checkout” is open CLI wall minus the checkout metric; it includes startup, discovery, network transit, submodule handling and final bookkeeping, so it is only an upper bound on startup. It must not be labelled pure spawn time.

The B1.5d rows retain both registered N=3 cells; daggered tasks were voided by the published contamination rules and are excluded from aggregate figures. They are displayed rather than silently dropped. No smoke task was voided.

B1.5d N=3 r2

TaskPrepStartOpenDependenciesRelay
t2376621.4211.86619.4210.1330.001
t2393818.2331.60216.3070.3220.002
t2230215.3922.71511.2351.4310.011
t2745610.8311.3789.3030.1450.005
t1945613.5561.31211.9690.2710.004
t2752110.0591.3598.5650.1330.002
t2751415.3441.19913.9930.1500.002
t2656311.2591.3029.8080.1480.001
t2677015.4091.56813.6670.1730.001
t2706921.5911.33820.1060.1440.002

B1.5d N=3 r3

TaskPrepStartOpenDependenciesRelay
t19456 †19.1051.42517.5470.1320.001
t2745615.8661.63513.9160.3140.001
t2230213.2241.64210.1241.4460.012
t2706930.2901.26428.8820.1390.005
t2393816.5851.39714.8600.3250.003
t2376611.4551.30810.0040.1390.004
t2677012.2081.53210.5320.1430.001
t2751415.3121.77413.3970.1360.005
t27521 †11.3241.5059.6660.1520.001
t26563 †7.9511.2026.6130.1340.002

smoke a1

TaskPrepStartOpenDependenciesRelayCheckoutQueue waitCopy/hashOutside checkout
t2751417.5101.65313.8641.9580.03510.1740.1398.4543.690
t2752130.7271.89728.3390.4870.00424.95915.5576.9383.380
t2230222.6681.88620.1180.6600.00416.7158.4745.9103.403
t2745619.9222.66216.5900.6470.02211.9420.2177.4764.648
t1945619.8562.56716.5010.7770.01112.0450.1509.3514.456
t2706926.8992.20224.0070.6810.00818.6830.21714.1035.324
t2677019.7492.03617.0700.6240.01912.7950.1878.6684.275
t2393815.6511.71213.4110.5230.0059.6660.1377.2293.745
t2376616.0091.93913.5990.4660.00510.2800.1536.7203.319
t2656315.0481.46813.2850.2850.01010.8770.1015.0962.408

smoke a2

TaskPrepStartOpenDependenciesRelayCheckoutQueue waitCopy/hashOutside checkout
t2751445.7381.72743.3460.6540.01037.00719.88515.3416.339
t2752121.2081.56117.4732.0990.07513.0770.15011.3524.396
t2230227.7111.68125.3480.6770.00421.04711.9397.5364.301
t2745618.3012.16615.7050.4230.00712.3650.1448.7793.340
t1945618.6531.85514.7951.9930.00910.2600.1437.7844.535
t2706915.0492.02712.6100.3980.0149.3310.1355.8843.279
t2677016.9962.07914.4530.4580.00610.9640.2047.2103.489
t2393818.5391.96116.0250.5470.00612.5210.1678.6943.504
t2376620.0902.28217.3220.4690.01713.6560.2368.9493.666
t2656320.2781.94517.7210.6040.00814.0350.3389.3843.686

Load, memory and checkout work

The sampler records load and free RAM every 30 seconds. The following values are the sample nearest the midpoint of each prep window: one-minute load / free GiB. They are coarse context, not continuous memory-pressure traces. Neither historical capture records swap, compressor activity or page-in rates; low free RAM alone does not establish memory pressure.

TaskB1.5d r2B1.5d r3Smoke a1Smoke a2
t275143.81 / 4.951.67 / 0.7716.10 / 0.4817.44 / 0.29
t275214.90 / 2.286.62 / 1.3716.10 / 0.4817.21 / 0.63
t223024.13 / 0.852.39 / 0.4016.10 / 0.4817.21 / 0.63
t274562.45 / 4.202.39 / 0.4018.20 / 0.2917.46 / 0.32
t194562.06 / 3.662.39 / 0.4019.62 / 0.4315.62 / 0.28
t270698.12 / 3.004.16 / 4.2434.63 / 0.4121.30 / 0.55
t267708.12 / 3.0013.24 / 2.6123.16 / 0.7423.92 / 0.54
t239384.13 / 0.854.73 / 2.6525.56 / 0.4614.15 / 0.59
t237664.13 / 0.854.66 / 4.7618.21 / 0.4416.94 / 0.40
t2656325.97 / 2.911.92 / 0.4712.61 / 0.4120.03 / 1.04

For the 17 non-void B1.5d N=3 tasks, nearest-sample median load/free RAM was 4.13 / 2.65 GiB; smoke a1 was 18.205 / 0.45 GiB and a2 was 17.325 / 0.545 GiB. The initial three smokes' opens contend for a shared write pass. The second/third completion incurs 8.474 / 15.557 s queue wait in a1 and 11.939 / 19.885 s in a2. These waits are measured inside open, not extra charges to add again.

Across ten original task opens, median checkout-core time was 11.994 s in a1 and 12.799 s in a2; copy/hash was 7.353 / 8.736 s and cache preparation was 1.834 / 2.210 s. Full-tree durability phase was zero (the whole-stage path uses a directory barrier rather than per-file fsync). Peak per-process RSS was 384.3 / 370.3 MiB. The trees had 28,881–28,891 files, so file-count growth cannot explain seconds of extra work. B1.5d has no comparable retained checkout-phase or process-RSS measurements.

The shared queue mechanism is the same in the two smoke CLI builds. Changes to the checkout/cache modules between them are import relocation into state/, not a new materialization algorithm. This does not establish parity with the older B1.5d build. Both arms' slower prep, higher load, different dispatch workload and lower free RAM are confounders; none is proof that the entire increase is load. There are no interleaved old/new build pairs here, so no causal performance claim or bootstrap interval is justified under perf-claims.

Convex calls and bytes

The retained provider summaries count whole cells, including reset, landing, recovery, observation and oracle work. They do not attribute calls to task prep. Dividing those totals by ten would mislabel landing work as prep. For context, a1/a2 recorded 12/12 projectHostedStart:start executions, 45/49 projectHostedLanes:select and 36/44 projectObjectDownloads:lanePage; these are cell totals, not per-task call counts. B1.5d has aggregate meter totals but no per-function breakdown in its retained result records.

Open receipts do establish the following logical downloaded bytes. All other source objects came from the shared cache. These logical bytes do not measure physical R2 traffic or provider egress (a recipe may change the physical reads).

Taska1 downloaded objects / bytesa2 downloaded objects / bytes
t275140 / 00 / 0
t275210 / 00 / 0
t223020 / 00 / 0
t274561 / 4,907,3931 / 4,907,398
t194561 / 4,907,7201 / 4,907,720
t270691 / 4,907,8401 / 4,907,773
t267701 / 4,907,9511 / 4,907,951
t239381 / 4,908,2191 / 4,908,219
t237661 / 4,908,3952 / 4,908,420
t265631 / 4,908,4591 / 4,908,459

Thus only the first three opens per smoke were fully warm; later opens usually downloaded the new main State. Do not describe every open as zero R2 traffic. The pinned checkout code makes one selection on a full cache hit and another before installation after downloads. Missing objects are described in pages, not by one call per file. CLI discovery, release checking, retries and server-internal executions are outside those core counts. Their exact historical per-task totals remain unknown; source inspection is not a billed measurement. No runtime or storage path changes in this analysis, so added Convex calls, DB reads/writes and stored source bytes are zero, including at idle. Source-byte placement remains R2.

Local synthetic observations

The smoke-a2 build was exercised locally, with a fake transport and no hosted requests: 28,881 unique 4 KiB files (118,296,576 source bytes), a prefilled machine cache, Node 24.22.1, filesystem pool of ten, three alternating N=1 / N=3 cohorts. This is smaller in bytes than t3code and excludes CLI startup, remote start, network and dependency linking. It cannot predict full prep.

RepeatN=1 checkout sN=3 checkout s, in completion orderN=3 queue waits s
15.7055.963 / 10.930 / 16.1610.113 / 5.275 / 10.233
25.5156.079 / 11.099 / 16.7180.116 / 5.276 / 11.201
36.2248.793 / 15.177 / 21.6050.098 / 7.960 / 14.327

All 12 opens asserted one selection callback, zero signing/download callbacks and zero downloaded bytes; these callbacks are fake, not billed Convex calls. Peak child RSS was 208.7 MiB. Before/after one-minute loads for the six cohorts were 6.55–7.46, 7.46–8.37, 8.58–8.42, 8.42–9.63, 10.00–11.68 and 11.68–14.71. Free RAM ranged 0.41–1.96 GiB; used swap was 5,924–5,948 MiB. Every sample retains all three load averages, free RAM and swap before/after. One fixture attempt failed during cache validation because synthetic cached files had the wrong access mode; it produced no successful timing. Correcting that setup to private object modes produced the twelve completed opens above. No successful sample was omitted.

This is N=3 cohorts on one build, an observation of queue/load sensitivity, not an interleaved performance comparison of baseline/candidate code. The machine was not quiet enough for a clean performance claim. A quiet repeat was not available during these observations; no speed-up is claimed.

Acceptance and next measurement

  • Decomposition: historical per-task start/open/dependency/relay and checkout phases remain below, with the matched CLI experiment above supplying startup, actual client RPC/byte attribution, RSS and endpoint swap/VM samples for its own runs. The historical smoke and B1.5d separate startup/RPC/swap clocks were not retained and cannot be retroactively supplied. The first Done-when line stays open for that historical and post-fix smoke coverage.
  • Conditional regression fix: the matched synthetic workload does not reproduce the seconds-scale current-CLI regression. It does not prove load alone caused the historical increase. No runtime or queue fix is invented. The small indexing/publication associations are named above, without a diagnosed component defect or a claimed fix. The second line stays open rather than claiming an unevidenced root-cause correction; the telemetry guard fixes the separately observed missing-attribution defect.
  • Next smoke: unrun and unticked. The acceptance bar remains 16.83 s (15.3 s +10%). Synthetic warm prep is not a smoke prediction. Smoke a2's recorded GitHub gap remains 9.306 s (19.3715 − 10.0655), owned by a245bcf0; the remaining absolute gap is not reassigned here.