Skip to content

Spike: qualify content-bound repository trust for writable worktree reads #3614

Open

Description

@schlessera

Out of scope

No production feature, implicit path-based trust or requirement to solve arbitrary filesystem provenance in one day.

Context

Part of #3598.

The shared HTTP/CONNECT proxy cannot observe a GitHub repository path (startEgressProxy, packages/ui-sdk/src/server/egress-proxy.ts:117). 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. The proposed repository plan/ADR are not yet on main 35217d283b849b5ef81700d5d4c2ec7486405d12; use the linked complete public design and review until #3599 records them. Source pointers below were verified at that main SHA, independently of the dirty working checkout. ROADMAP.md “What binds future work”, the provider-history decision, G6 and the protected policy-writer boundary apply.

Scope

  • Time-box to one engineering day: determine whether the host can prove bytes read from a mutable workspace still match an acquired trusted Git tree at the actual read boundary.
  • Prototype per-file/content-bound provenance or select immutable-managed-source-only support.
  • Pin invalidation for edits, copies, merges, generated files, refresh, symlinks/hardlinks, mounts and nested repos.

Acceptance criteria

  • Overwriting a normal tracked file with untrusted output cannot inherit trust just because root/commit lineage once matched.
  • Any hash/tree proof is checked against the actual read bytes without a check/use race; explicit untrusted marks override repository trust.
  • Host loss, unsupported tools and uncertain content lineage retain taint; no copied remote or root name establishes provenance.
  • A written qualified algorithm and offline fixtures are provided, or an explicit immutable-only limitation and follow-up boundaries are documented. The latter is a valid outcome.
  • No production mutable-path exemption is enabled in this spike.

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.

Blocked by #3612

Triage 2026-11-05 at main 35217d283b849b5ef81700d5d4c2ec7486405d12: verified source anchors and the published plan/review, retained all still-open output dependencies and existing native parent, and classified this requested but unscheduled work as priority: p2 without inventing a release milestone. The brief is complete with no independent needs gap; agent-ready may coexist with blocked, and this issue remains unpickable until its named outputs exist.

Activity

  1. added
    type: spike
    area: ui-sdk
    area: ui-server
    on Nov 5, 2026
  2. added
    area: backends
    blocked
    security
    agent-ready
    priority: p2
    on Nov 5, 2026
  3. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #3612 is closed, so scripts/sync-project.ts is removing the blocked label.

  4. removed
    blocked
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyarea: backendsarea: ui-sdkarea: ui-serverpriority: p2securitytype: spike

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions