Repository navigation
CONTRACT: feat(ui-server): add bounded immutable reference blob reads - #4200
Conversation
Independent reviewReviewed head 8632aa4 against base b23eace. Reviewer: agent. No findings. {
"version": 1,
"kind": "brain-review-receipt",
"pr": 4200,
"head": "8632aa485296254592993b01b1f3947dbd67e261",
"base": "b23eace25682323b5680ed225f069d2c433654fc",
"reviewer": "agent",
"outcome": "no-findings",
"findings": []
} |
…3-immutable-read-20261117
|
#4200 is merged as Automatic main CI 44160126690, attempt 1, finished with 15 successful jobs and two failures: The passing native artifact independently verifies the actual maintenance-worker immutable-object read on the sealed acquisition, matching native root/commit/tree/blob, regular mode, offset 9 / length 13 / total 38 and the exact SHA-256 range digest. Kernel writes fail with This qualifies the named passing categories only. Full post-merge qualification awaits the existing browser incident's recovery. All five original #3613 criteria remain open; model/backend read delivery, durable delivery-bound records and stable approved-owner matching remain. #3622 stays dependent on the complete resolver and its independent Settings publication authority. No source-trust exemption is enabled. |
|
The #4200 reader is now qualified on recovery main Downloaded recovery artifacts independently verify the actual maintenance-worker regular-blob/range/digest and acquisition/root mapping, |
Refs #3613
What changed
The host reference transport can read a bounded range from an exact regular Git blob in a host-selected sealed acquisition. It verifies the recorded commit/tree and complete object hash before returning binary bytes with blob ID/mode, total size, offset/length and the range's SHA-256 digest. Git paths are literal. Symlinks, gitlinks, directories, traversal, corrupt objects, mismatched evidence and cancellation refuse only the selected read. Full blobs are limited to 4 MiB and returned ranges to 64 KiB. The reader owns a snapshot of the request, so replacing the caller's signal cannot admit a cancelled result.
This is a host-only primitive after #4002. Its caller still owns native root attestation and live turn/principal/grant fences. It creates no model-delivery receipt, new agent tool or source-trust capability; ordinary file tools retain their existing restrictions.
Why this shape
The selected qualification requires immutable object bytes from a host-owned acquisition. The maintenance worker runs fixed offline commands without credentials; checkout edits or an altered origin cannot relabel the selected blob. The internal contract and decision record pin the bounds and caller obligations. The server has a minor changeset; the complete pending release plan remains twenty minor bumps, with no patch or major bumps.
Proof
Current head
0f4362f15364e43257cef7dcfa44d3cfa085656bis a clean merge of reviewed head8632aa485296254592993b01b1f3947dbd67e261and main18da31bc64a03c8bafa5ea8043028e32df80f7d1. Main adds the off-main qualification gate, Android panel-close handling and the writer-transaction reference-grant expiry fix. The authored reader is unchanged. The pinned base below avoids shared remote-tracking ref movement during local verification.bun run check:pr --base 18da31bc64a03c8bafa5ea8043028e32df80f7d1: all five gates passed, including 839 fast-invariant tests / 6261 assertions / 30 files.tsc --noEmitpassed with an 8 GiB Node heap.8632aa485296254592993b01b1f3947dbd67e261. Only a clean main merge follows it; the merge gate rechecks coverage before confirmation.Hosted feedback on its recorded source
Full draft feedback 44148473988, attempt 1, passed all 22 selected jobs. All twenty product-job checkouts were exactly
8632aa485296254592993b01b1f3947dbd67e261, tree32d211f329788bbc9902b05a91ae778c4db4e8f3. Admission first used workflow revisionb23eace25682323b5680ed225f069d2c433654fc, then the requested source head; the aggregate used that workflow revision and validated all ten selected categories. Browser determinism and the supersede job were intentionally unselected. This remains feedback for its actual source, not candidate proof for the refreshed combined tree.Downloaded native artifacts independently verify the new
managed-source-native-blobcase: actual maintenance-worker execution against the sealed acquisition, matching root/commit/tree/blob identity, regular mode, exact offset 9 / length 13 / total size 38, and the expected returned-range SHA-256. Kernel writes were refused withEROFS, private revocation refused, and owned pool cleanup completed. All four healthy native backend/UID cells and the separate expected index-failure/recovery control were verified. The blob receipt explicitly retainsbackendEquivalence: falseandreadTrustExemption: false.Draft run 44148267571 additionally passed five repetitions each of both changed Bun test files under four CPU-load workers, without reduction, including the actual maintenance-worker suite. Its repetition and aggregate checked out merge
9664d964011f8c979da466d9bf521baebe160159, with parentsb23eace25682323b5680ed225f069d2c433654fcand the reviewed source head, treef4a078a331245f6001c0afdc1a00918bf04aeff0; API and local immutable objects agree.Earlier local runtime attempts retain their actual failures: a missing Bubblewrap image and nested UID-mapping refusal. Their assertions did not qualify the worker/native path; the later hosted receipts above do. Exact refreshed candidate confirmation and automatic-main reconciliation remain required.
{"version":1,"kind":"brain-check-pr-receipt","head":"0f4362f15364e43257cef7dcfa44d3cfa085656b","base":"18da31bc64a03c8bafa5ea8043028e32df80f7d1","mode":"focused","startedAt":"2026-11-17T19:08:07.298Z","finishedAt":"2026-11-17T19:09:36.737Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":14545.232794000003},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":141.25656499999604},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":94.42645500000071},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":22.48305000000255},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":74595.954131}]}Guard scope
Invalid structure, unsupported entry types, identity/hash/byte mismatches, over-limit blobs and cancellation refuse that read. Partial bytes cannot prove the requested object, so no unverified result is returned. A new valid request retries normally without a service-wide latch or human recovery. Bounded typed transport errors reach the host caller. The unsupported-entry test rejects several paths and then reads another blob through the same service, proving one refusal leaves other source bytes usable.
Checklist
Anything left open
All five original #3613 acceptance criteria remain open. Actual backend/model delivery integration, durable delivery-bound read records and acquisition correlation, explicit-untrusted precedence and stable approved-owner/rename/transfer/name-reuse matching remain. #3622 stays draft pending the complete qualified resolver and independent Settings publication authority. This Refs slice claims no source-trust capability or downstream unblock. The final current-head collision scan is recorded before confirmation.