Repository navigation
Description
Delivery — 2026-10-17
Completed #1858 in PR #1870, squash 482b7bc15a319b633d63af507de128e01057bb94, actual parent 7cc86931e763f0eca636b89abd78b3b5371ec027, tree ee4d0236b8d8eed6c1dece66d5c5519fc630695e. The actual squash tree exactly matches qualified candidate 9610e1142d389265537d87b5e38c0f9263c13906 and is verified on main. PR and issue closure and milestone 0.44.0 are read back; #1872 remains OPEN.
Current-source local proof: full 87 tests / 816 assertions, fresh mount/body/disposal mutations fail their intended assertions before byte restoration, five focused order/dirty/failure/fresh-principal controls pass 315 assertions, required preflight 53 fast tests / 1371 assertions plus 87 affected tests / 816 assertions, and strict types pass. Actual squash independently passes 87 tests / 816 assertions. All 82 original named handler oracles remain unchanged, and 16 shared exercised branches were re-audited; incompatible operations keep fresh apps.
Current serial alternating C/B/B/C whole-file pairs give baseline 42.019 / 44.207 seconds versus candidate 28.523 / 37.421 seconds: mean 43.113 → 32.972 seconds, 10.141 seconds / 23.5% lower including added controls. Same Bun 1.4.3, independent frozen installs, warmed baseline/candidate, no concurrent own builds/tests; uncontrolled shared-host load and two samples limit the result. No stable percentage, memory-saving or hosted-critical-path claim. Historical timing/phase and individual-process receipts retain their original source attribution.
Normal matching-head merge followed the user’s explicit relevant-local-proof/no-full-refresh authorization, with no admin/bypass. The historical unrelated failed layout receipt remains failed and #1872’s cause is not explained or repaired. Automatic main CI 39032755907 is in progress, not green; no complete hosted success is inferred. Epic and investigation bodies now distinguish this delivery from the remaining open causal work.
Current matched complete-file measurement — 2026-10-17
Current baseline 7cc86931e763f0eca636b89abd78b3b5371ec027 and integrated candidate 9610e1142d389265537d87b5e38c0f9263c13906 use independently installed frozen dependencies, the same Bun 1.4.3, Linux host (16 logical CPUs; MemTotal: 32564760 kB), existing offline test wrapper and unchanged product source. Candidate already had current full-file/preflight execution; an independent baseline warmup passed before timed pairs. All original eighty-two route definitions/oracles are unchanged. Baseline has 84 tests; candidate 87 includes three extra isolation controls. No temporary source instrumentation or concurrent own build/type/benchmark work.
| Execution order | Source | Wall seconds | User CPU seconds | System CPU seconds | Per-command max RSS KiB |
|---|---|---|---|---|---|
| 1 | candidate | 28.523 | 27.520 | 9.359 | 165844 |
| 2 | baseline | 42.019 | 40.638 | 13.881 | 186812 |
| 3 | baseline | 44.207 | 43.394 | 14.571 | 172872 |
| 4 | candidate | 37.421 | 36.805 | 12.523 | 161712 |
All four complete runs pass (baseline84 tests /345 assertions; candidate 87 /816). Mean complete-file wall time is 43.113s baseline versus 32.972s candidate: 10.141s (23.5%) less across these two alternating pairs, including the added controls. Each execution includes module loading, setup, native maintenance, handler assertions and destruction. Monotonic wall and per-command wait4 resource usage are recorded; RSS is the reported per-command maximum, not a combined process-tree peak. Host load was uncontrolled and timings vary; this is a bounded current-source local benefit, not a stable percentage, memory-saving result or hosted critical-path claim. Historical detailed setup/boot/seed/handler/destruction phase attribution remains on its original source; no new phase attribution is inferred.
Current verification boundary — 2026-10-17
The user explicitly authorizes normal matching-head merge after relevant local proof passes once without unnecessary full hosted refresh. Under that instruction, the historical unrelated policy-review gate in #1872 is retained as an open investigation and failed receipt, rather than a prerequisite to delivering this HTTP fixture optimization. This is a verification exception for this invocation, not a claim that #1872 is fixed or its cause explained. Historical statements below describe the earlier stricter handoff.
Released draft #1870 is resumed on integrated source 9610e1142d389265537d87b5e38c0f9263c13906, actual main base 7cc86931e763f0eca636b89abd78b3b5371ec027. The four mount implementation files remain byte-identical to the old qualified head; current application/handler/native/config effects were re-audited. All sixteen selected reads remain compatible; other sixty-six operations retain independent apps. The current helper supplies a unique per-environment SQLite path and joins real native maintenance; no active SQL copy, rollback, private reset or new public API is introduced.
Current complete mount proof passes 87 tests /816 assertions. Fresh production mount deletion, incorrect health response and failed-pool-disposal mutations fail respectively on the named real route, response body and pending-resource assertions. After byte restoration, five focused health/fresh-principal/permutation/dirty/disposal controls pass 315 assertions. Current required preflight passes (53 fast tests /1371 assertions plus the complete 87-test mount file /816 assertions), and strict types pass. All eighty-two original named route oracles and the original individual-process proof are preserved with their old source attribution; current repeated/permuted/dirty controls exercise the actual integrated handlers.
The historical paired 44.025 →38.825 second mean (11.8%) remains an old-source measurement. The initial 18.43-second complete-file execution is a pass receipt; the separately attributed alternating-pair current-source comparison follows. Pending/stale/failed hosted checks remain explicitly non-green.
Out of scope
Replacing real composition-root mount checks with isolated router mocks, assuming GET is read-only, sharing owner/auth/session state blindly, resetting only SQL while timers/caches persist, combining all routes into one anonymous test, or changing product routing/auth behavior.
Context
Part of #1849. At source 5cf1d548f7bd3a314eb36394dc5db0268db97da6, every entry of checks creates a full httpContractApp (packages/ui-server/tests/http-supported-mounts.test.ts:111-147). The suite has84 local tests and39.16s file elapsed. Its intent is named coverage of every real supported handler/mount; it does not need every case to repeat a proof of application startup integrity.
httpContractApp (packages/ui-server/tests/helpers/http-contract-app.ts:23-135) creates directories/executable fixtures, native broker/leases, config, an app with in-memory SQLite, records real Hono mounts and joins boot maintenance before returning; close destroys the app/broker/tree. Each route also seeds an owner, passkey, activity and keyterms. Cases include logout/revocation, file edits and other mutations, so a single undifferentiated shared app would be unsafe. Production handlers may also cache state or start background work even for GET operations.
Scope
Measure and classify the route matrix by intent/state effects. Share a bounded environment among demonstrably noninterfering checks where safe; evaluate a prepared independent clone or complete between-case reset for compatible mutating groups. Retain fresh apps for startup/config/auth/lifecycle distinctions and any reset boundary that cannot be proven complete. Amortize setup only where measured benefit and isolation evidence justify it.
Acceptance criteria
- Attribute directory/fixture preparation, native/app boot/maintenance, per-case seed, handler IO, reset/quiescence and destruction cost. Report actual savings;39.16s is a complete-file baseline, not guaranteed removable overhead.
- Preserve every supported-method/path coverage assertion, distinct case name, real Hono mount and handler response/CLI dispatch check. Startup preparation is verified centrally once per environment; independent startup/config tests retain fresh lifecycles.
- Classify each handler's DB/filesystem/in-memory/auth/cache/background effects; GET alone is not evidence of safety. Share only compatible config/providers/renderer/native boundaries.
- Use unique per-case state or a demonstrated full reset/clone. Principal revocation/logout, challenges/rate limits, session catalog/activity, CLI log, caches, files/staging, timers/subscriptions and maintenance work must not influence the next case.
- Do not reset by production-private bypasses or new public reset APIs. No unsafe copy of active SQLite files and no writable baseline aliasing.
- Run cases individually, repeatedly/permuted and after deliberate dirty/failure injection; prove unchanged expected results and zero leaked pending resources. Failure of one named test does not prevent other independent cases from obtaining a valid fixture.
- Keep fresh lifecycle for destructive/incompatible cases where safety cannot be established. A measured no-change result for a candidate group is acceptable.
- Record handler-deletion/incorrect-response mutation failures on the claimed assertion and successful restoration, preserving offline guards and cleanup.
Verification
Run the complete mount file plus focused order/reset/copy controls through bun run test packages/ui-server/tests/http-supported-mounts.test.ts, local bun run check:pr --base origin/main and selected current-head hosted proof. Compare against the fresh baseline under equivalent source/runtime/resources. Binding context: docs/process/testing.md, real mounting/contract coverage rules and docs/decisions/ci-utility.md.
Contract impact
None selected. Fixture scheduling only; mounted routes, auth behavior and HTTP contracts stay stable.
Historical verification boundary — 2026-10-14
Implementation and paired local measurements are in #1870 (head ebadfdc4b617212bfeb7fd4bccc069cfce10fc50). The full file passes 87 tests, all 82 original named routes pass individually, and mount/body/cleanup mutations fail on their intended assertions before restoration. Mean paired whole-file time decreased from 44.025 to 38.825 seconds (5.20 seconds / 11.8%), including added isolation controls; no hosted critical-path or stable memory improvement is claimed.
Historical required-gate failure: #1872 (still open; no repair is inferred).
Selected hosted run 38588283794 failed the policy-review layout readiness assertion documented in #1872. The HTTP mount file and its private helpers are not executed by that failing layout shard; no causal relationship to this change is established. This remains a failed required gate, so the PR cannot merge. Retain the implementation branch and local receipts, resolve the separate verification defect, then establish complete current-head selected proof before matching-head merge. Every other selected test job passed; the aggregate correctly failed on the layout domain. Packaging was intentionally unselected. PR #1870 is preserved as draft, and the issue claim is released for the blocked handoff. No retry or weaker assertion has been used.
Resumption — 2026-10-15
The optimization head remains unchanged. Reinspection against main 200efc8d4e5e2ef6bd7c5385440a9289bd14c774 found no overlap in its five changed files and a clean prospective merge; this is a source integration check, not new test qualification. The supporting #1872 investigation now has bounded native request/receipt/render observations and independently useful diagnostic PR #1983, merged as c857a5db365b7725df24f0c00be8dd082fb68794 after all 13 selected PR jobs passed. Its 16-case local native file and two diagnostic mutation controls pass; the original cause remains unresolved. Preserve the earlier failed hosted receipt and this draft until the blocker and required current-candidate proof are complete. The existing local timing improvement remains 44.025 to 38.825 seconds; no new hosted speedup is claimed.
Activity
schlessera commentedon Oct 14, 2026
Claim e1849-1858-f4e75e84: implementing this child on
test/1858-http-mount-fixtures-e1849-f4e75e84, coordinated with the epic worker. I will classify handler effects and measure fresh versus bounded fixture lifetimes before sharing any state; all named handler and CLI-dispatch oracles remain.schlessera commentedon Oct 14, 2026
Implementation and local proof are ready in #1870 at
ebadfdc4b617212bfeb7fd4bccc069cfce10fc50.All 82 named route checks retain their original request/response/side-effect definitions and pass individually. The final complete file passes 87 tests, with 147 handler-oracle calls. Two serialized paired runs measured mean whole-file time of 44.025 seconds before and 38.825 seconds after; the PR records source/runtime/resource details, phase boundaries, counts, mutation receipts and measurement limits.
The ready PR and this issue both retain milestone 0.44.0. Current-head hosted CI is running; the epic coordinator takes over selected-job verification, matching-head merge, post-merge reconciliation and cleanup. Claim
e1849-1858-f4e75e84remains assigned during that coordinated handoff. No hosted critical-path improvement is claimed from the local measurements.schlessera commentedon Oct 14, 2026
Blocked handoff: #1870 is draft at
ebadfdc4b617212bfeb7fd4bccc069cfce10fc50; #1858 remains open, milestone 0.44.0, with this invocation's assignment released. The clean branch and local proof are preserved.Local implementation proof remains complete: all 82 named routes pass alone, full file 87 tests passes, real mount/body/cleanup mutations fail correctly and restore, and paired whole-file means improve 44.025 to 38.825 seconds with additional isolation controls. Every original handler oracle remains.
Selected hosted run 38588283794 completed with eleven selected jobs passing, layout (1) failing the independent policy-review readiness assertion in #1872, and the aggregate correctly failing. Packaging was intentionally unselected. All thirteen executed jobs checked out
98023f1547bcc6b0de884f5790abd691993f1f27; fetched Git and immutable API agree on parents[ca1facc1e7086bd2119c260150e9f091e16817f1, ebadfdc4b617212bfeb7fd4bccc069cfce10fc50]and tree3f3231032a55c5d9afff1346bf9ec69e95658772.Hosted receipt: 5,522 summed job-seconds, 1,245 seconds from run creation to last job completion; longest job layout (2), 1,186 seconds. This different workload/resource schedule is not a paired CI gain. No failed job was retried. Cheap checks after draft conversion cannot supersede the failed selected proof.
Resume after #1872 is resolved: revalidate relevant base/input changes, complete selected final-candidate proof, verify milestone/head/base/tree, then matching-head squash and automatic main verification. The optimization is not merged and the issue is not complete.
schlessera commentedon Oct 15, 2026
2026-10-16 p1 dependency review: #1872 received a distinct one-CPU, clean-dependency native predecessor-context diagnostic on main
45908608df63b07ee3d10d84ac608d132aa21caa. All 244 tests in six files, including all 16 policy cases and unchanged downstream assertions, pass. CPU throttling was observed without OOM; the historical zero-read failure was not reproduced or explained. No repair or optimization-candidate qualification follows. Retain this issue open and blocked by #1872, with draft #1870 and its existing implementation/proof preserved. The detailed evidence and remaining causal experiment boundary are recorded on #1872.schlessera commentedon Oct 17, 2026
Resuming the released #1858 / draft PR #1870 implementation with authorization from the ongoing all-P1 request and Continue. Claim token: mounts1858-resume-20261017-1215. Intended local integration branch: test/1858-resume-20261017-1215; PR branch remains test/1858-http-mount-fixtures-e1849-f4e75e84.
The user explicitly permits merging after relevant local proof passes once without unnecessary full hosted refresh. This changes this invocation’s verification boundary; it does not repair or close #1872, explain its historical failure, or relabel failed/pending hosted jobs as green. Revalidate actual current mount/auth/native/isolation inputs and causal controls before normal matching-head merge; preserve the original source-attributed timing and failure receipts.
schlessera commentedon Oct 17, 2026
Completed #1858 in PR #1870, squash
482b7bc15a319b633d63af507de128e01057bb94, actual parent7cc86931e763f0eca636b89abd78b3b5371ec027, treeee4d0236b8d8eed6c1dece66d5c5519fc630695e. The actual squash tree exactly matches qualified candidate9610e1142d389265537d87b5e38c0f9263c13906and is verified on main. PR and issue closure and milestone 0.44.0 are read back; #1872 remains OPEN.Current-source local proof: full 87 tests / 816 assertions, fresh mount/body/disposal mutations fail their intended assertions before byte restoration, five focused order/dirty/failure/fresh-principal controls pass 315 assertions, required preflight 53 fast tests / 1371 assertions plus 87 affected tests / 816 assertions, and strict types pass. Actual squash independently passes 87 tests / 816 assertions. All 82 original named handler oracles remain unchanged, and 16 shared exercised branches were re-audited; incompatible operations keep fresh apps.
Current serial alternating C/B/B/C whole-file pairs give baseline 42.019 / 44.207 seconds versus candidate 28.523 / 37.421 seconds: mean 43.113 → 32.972 seconds, 10.141 seconds / 23.5% lower including added controls. Same Bun 1.4.3, independent frozen installs, warmed baseline/candidate, no concurrent own builds/tests; uncontrolled shared-host load and two samples limit the result. No stable percentage, memory-saving or hosted-critical-path claim. Historical timing/phase and individual-process receipts retain their original source attribution.
Normal matching-head merge followed the user’s explicit relevant-local-proof/no-full-refresh authorization, with no admin/bypass. The historical unrelated failed layout receipt remains failed and #1872’s cause is not explained or repaired. Automatic main CI 39032755907 is in progress, not green; no complete hosted success is inferred. Epic and investigation bodies now distinguish this delivery from the remaining open causal work.