Repository navigation
Description
Out of scope
No production exemption, live network/provider call, public personal owner list or new generic transport seam.
Context
Part of #3598.
The shared HTTP/CONNECT proxy cannot observe a GitHub repository path (startEgressProxy, packages/ui-sdk/src/server/egress-proxy.ts:123). createReferenceTransport (packages/ui-server/src/brain/reference-transport.ts:97) and createReferenceSources (packages/ui-server/src/brain/reference-source.ts:91) already own acquisition; coveringReferenceGrant (packages/ui-server/src/db/reference-grants.ts:158) supplies independent private-access authority.
Read the reviewed implementation design and requested gpt-6-astra review/disposition. docs/plans/reviewable-session-safety.md and docs/decisions/session-safety-reviews.md retain the repo design/ruling. Source pointers were verified against the current working checkout, including local #3595 changes; revalidate before coding. ROADMAP.md “What binds future work”, the provider-history decision, G6 and the protected policy-writer boundary apply.
Scope
- Time-box qualification to one engineering day: inspect installed Git and the existing host-owned reference path, then choose a fixed enforceable read transport.
- Exercise a smart-HTTP read relay plus Git URL rewriting as a candidate for ordinary clone/fetch/pull, or select an explicit managed operation with honest unsupported-path UX.
- Define immutable acquisition/root/commit provenance for later workspace reads, including host-bound mapping and revocation.
- Qualify live principal/repository/ref binding, stable repo identity versus owner namespace, protocol v2, bytes/cancellation and arbitrary-worker relay abuse.
- Select immutable-source-only trust for the first enforceable implementation; transparent adaptation is optional and does not block origin CRUD or occurrence review.
Acceptance criteria
- A written decision names the actual transport and identity binding, supported Git forms, credential checks, ordinary-write compatibility, code touch points and implementation proof cases.
- A loopback prototype with real Git demonstrates two different owners and repos on one host, concurrent unrelated traffic, origin/config rewrites and private credential separation.
- Redirects, SSH, submodules, LFS, custom helpers, fork/PR refs and symlink/nested-repository escapes have explicit support or restrictive fallback decisions; unsupported forms do not receive a hostname exemption.
- If no candidate can enforce the binding within the time box, a documented managed-operation-only route is a valid outcome; do not weaken the shared proxy.
- The subsequent implementation issue is updated to the selected approach and its remaining readiness gaps, rather than being labeled ready on this speculative candidate.
- Arbitrary worker requests cannot become generic authenticated HTTP, credential probes, receive-pack/upload, foreign object/ref acquisition or permission to use a host credential.
- Ordinary branches/tags and current/future owner namespace scope are explicit; PR/fork refs, transfer/rename/name reuse and pull's configured local mutation have tested restrictive handling.
Verification
Offline real-Git/loopback prototype, recorded installed Git version and complete exit-code receipts; inspect fixed host transport behavior, not a mocked predicate.
Every behavioral implementation needs meaningful failing-first/mutation receipts and the relevant real runtime/browser proof. Run contribution preflight before opening a PR; missing/cancelled selected hosted proof is not green. No tests may require an API key or external network.
Contract impact
None for qualification itself: no production exemption or supported API is added. The chosen production follow-up must classify its own optional interfaces and taint behavior under the reviewed ruling.
Readiness clarification: this bounded qualification can proceed directly from the reviewed design while the documentation/contracts task runs. It creates no production exemption and does not require that documentation PR to merge first.
Qualification outcome — 2026-11-05
Selected explicit managed reference acquisition with immutable-source-only trust. Real Git 2.53.0 / Bun 1.4.4 loopback qualification demonstrates clone/fetch/pull compatibility but rejects transparent URL-rewrite/endpoint-only relaying: an arbitrary client fetches an orphan PR ref through credentialed upload-pack. No production exemption is added. Ordinary configured pull hooks/local mutation, outward writes, unknown identity and mutable workspace reads remain restricted.
Distinct experiment decision/prototype files record stable identity/approved owner semantics, supported forms and restrictive fallback, existing transport touch points, host-bound acquisition/root/commit/blob evidence and production proof obligations. The qualification updated #3613 to this selected route and kept needs: decision for private GitHub metadata credential-recipient authority; existing grants authorize github.com, not implicitly api.github.com. Its existing blockers remain.
Proof: six real-Git/loopback tests pass (59 assertions); three restored mutations fail the expected symlink-mode, relay-gate and prompt helper-tree cancellation assertions. Typecheck passes with an 8 GiB Node heap; the default-heap attempt exhausted memory. Native worker/Btrfs enforcement, actual GitHub metadata, per-turn network bytes and browser/backend production integration are explicitly not claimed by the spike. The standard offline namespace launcher was attempted but UID mapping was refused; fixture transports are loopback-only under fixed Git configuration and the network preload, without an OS-isolation claim. Selected hosted candidate proof and merge subsequently completed; see the verified delivery below.
Qualification delivery: PR #3619, head 12724cce5bdeae52a53b60d5c6e8aa3fc2091559, contains the bounded decision and the offline real-Git prototype. The candidate subsequently merged as 06cf57192ad586ea303a310acc0c009d774dd566 after complete candidate proof. The selected production path is managed-only and no runtime exemption is delivered. The later #3613 metadata-authority ruling is separate from this qualification.
Verified delivery — 2026-11-05
Merged PR #3619 as 06cf57192ad586ea303a310acc0c009d774dd566, verified ancestor of fetched main. Exact-head candidate confirmation run 42014754723 passed; the integration verifier checked checkout 7bc5736571727a599060640e33e8cd9cb48f3718, parent 35217d283b849b5ef81700d5d4c2ec7486405d12, head 12724cce5bdeae52a53b60d5c6e8aa3fc2091559 and tree 7f6101e545d8174d4da4ed9734591d9bb2023018. The actual squash has that parent/tree. PR and closed #3612 retain milestone 0.45.0; no assignment or live integration reservation remains.
The selected route is managed acquisition with immutable-source-only trust. No production exemption was added. Qualification runtime/mutation receipts and native-isolation/production-proof limits remain in the PR. Automatic main CI 42018068263 has started and is not yet claimed green. The later maintainer ruling on #3613 permits fixed private API metadata with independent recipient checks and a live repository grant; it does not turn qualification into production proof.
Activity
schlessera commentedon Nov 5, 2026
Claiming only #3612 for bounded offline Git transport/provenance qualification. Claim token: git-read-3612-20261105-b7d49c. Branch:
feat/3612-git-qualification, based on main35217d283b849b5ef81700d5d4c2ec7486405d12in the supplied isolated checkout. No active PR or competing claim found. Collision check reports closure overlap with existing PRs, no direct path overlap for the distinct experiment files. I will keep the #3599-owned plan/ADR untouched and update #3613 with the qualified approach and any genuine remaining decisions. No production exemption is authorized by this spike.schlessera commentedon Nov 5, 2026
Qualification handoff for claim
git-read-3612-20261105-b7d49c: draft PR #3619, head12724cce5bdeae52a53b60d5c6e8aa3fc2091559, base35217d283b849b5ef81700d5d4c2ec7486405d12. Selected managed reference acquisition and immutable-source-only trust. The endpoint-only transparent candidate fails ref authority in real Git; no production exemption or shared #3599 design-file edit was made.Evidence: six real-Git/loopback tests pass (59 assertions), three behavioral mutations fail the intended assertions and were restored, expanded-heap typecheck passes, and exact-head
check:prpasses with 1196 fast invariants plus lint/leakage. The PR preserves the command receipt, mutation assertions and limitations. No native/Btrfs/OS-isolation/actual-GitHub-identity/network-byte-cap claim is made; the offline namespace launcher was attempted and refused UID mapping.#3613 now records the chosen route, implementation proof cases and genuine remaining private metadata credential-recipient ruling. Its
needs: decision/blockedlabels and existing dependencies remain. PR and #3612 milestone 0.45.0 are assigned. No new issue was claimed.Parent next action: review this exact candidate with the other completed epic work, perform the requested combined gpt-6-astra review, run current-head collision checks, acquire the normal exact-candidate reservation/confirmation, inspect all selected hosted job/checkout receipts and merge only when qualified. This child acquired no reservation and will not watch/poll CI. Keep #3612 open until delivery is verified. I am releasing only this claim's assignment; the pushed branch and isolated environment checkout remain available.
schlessera commentedon Nov 5, 2026
Merged PR #3619 as
06cf57192ad586ea303a310acc0c009d774dd566, verified ancestor of fetched main. Exact-head candidate confirmation run 42014754723 passed; the integration verifier checked checkout7bc5736571727a599060640e33e8cd9cb48f3718, parent35217d283b849b5ef81700d5d4c2ec7486405d12, head12724cce5bdeae52a53b60d5c6e8aa3fc2091559and tree7f6101e545d8174d4da4ed9734591d9bb2023018. The actual squash has that parent/tree. PR and closed #3612 retain milestone 0.45.0; no assignment or live integration reservation remains.The selected route is managed acquisition with immutable-source-only trust. No production exemption was added. Qualification runtime/mutation receipts and native-isolation/production-proof limits remain in the PR. Automatic main CI 42018068263 has started and is not yet claimed green. The later maintainer ruling on #3613 permits fixed private API metadata with independent recipient checks and a live repository grant; it does not turn qualification into production proof.