Skip to content

ui-server, docs: prove the Network card for raw GitHub API connections and document the GitHub tools #3799

Closed

Description

@schlessera

Context

Part of #3791 (rulings and shared context live there). This is the third slice: prove the ruling that a raw, unclassified connection to an outward GitHub host keeps its Network approval card, and write the docs that make the GitHub tools the supported path.

  • The card: approveOutward, packages/ui-server/src/brain/turn-egress.ts:233-240, for the hosts in GITHUB_API_HOSTS (turn-egress.ts:13).
  • In the incident, a compound command's CONNECT api.github.com:443 was held for 68 s and then refused as outward_not_approved. The record does not show whether the user ever saw a card.

Blocked by #3797
Blocked by #3798

Scope

  • Card check. Prove end to end that an unclassified shell connection to api.github.com emits a Network card to the live client naming method and host. Allow admits the held connection, deny refuses it, and a stopped turn cancels it. Fix any gap found. One possible gap: no card reaches a client that isn't watching. If so, record the behaviour and its remedy in the PR.
  • Docs.
    • docs/decisions/governed-writable-workers.md (Outward actions): the host GitHub tools ruling, the dedicated credential, the write allow-list, and the kept card.
    • The integration contract's tool list and the policy reference.
    • Both backends' capability notes, telling the model to use the GitHub tools and not gh, curl or WebFetch for GitHub, and saying what to do when they are unavailable.
    • The server environment reference and self-host guidance for creating a fine-grained token.

Out of scope

  • Tool behaviour (slices 1 and 2).
  • Changing which hosts are outward.

Acceptance criteria

  • A turn-egress test with a live client asserts the Network card's content and the allow, deny and stop outcomes for an unclassified api.github.com connection.
  • Both backends' capability notes name the GitHub tools, and the keyless provider-history guard passes: the notes are part of the fixed prompt and identical across turns.
  • The decision record, the integration contract and the policy reference describe the shipped behaviour, and bun run check:pr documentation checks pass.

Verification

  • bun run test packages/ui-server/tests (turn-egress) and the provider-history guard. bun run lint.

Contract impact

CONTRACT documentation. This slice edits the integration-contract tool/policy documentation for slices 1–2, so its PR needs the contract label, CONTRACT: title/commit and same-commit contract edits even though it adds no further surface. Preserve the fixed capability-note prefix and run both actual keyless provider-history guards. Any new runtime defect discovered while proving the card must be scoped from its failing evidence.

Triage 2026-11-09 at main 9c7eb25825fdad5f4485db0df472188805edb450: Classified this mixed live-client proof/documentation deliverable as test work and marked its actual integration-contract edits. The Network-card ruling is settled; #3797 and #3798 remain active dependencies. No end-to-end success or new defect is asserted.

Triage 2026-11-09 area/source audit: Capability guidance is shared by (buildSystemPromptAppend, packages/ui-sdk/src/server/system-prompt.ts:366) and supplied through the Claude adapter (assemblePromptContext, packages/ui-backend-claude/src/sdk-options.ts:331) and Pi session resources (build, packages/ui-backend-pi/src/session-resources.ts:93-127). Include ui-sdk and backends in area coverage for this explicit scope. Preserve the fixed provider-history prefix and both runtime guards; no native card or provider success is inferred from this navigation check.

Activity

  1. added this to the 0.45.0 milestone on Nov 9, 2026
  2. added
    area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.
    area: docsThe docs/ tree and the README / AGENTS / CONTRIBUTING surfaces.
    priority: p1Scheduled into the current or next milestone.
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 9, 2026
  3. added
    type: testCoverage, harness or proof work with no behaviour change.
    contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    area: ui-sdkWire protocol, runtime schemas, the server and client SDK surfaces.
    area: backendsAgentBackend implementations and the seam they share.
    and removed on Nov 9, 2026
  4. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

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

  5. removed
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 16, 2026
  6. self-assigned this
    on Nov 17, 2026
  7. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-2fe4a5d8. Branch: test/3799-github-network-card.

    path collision: draft #4002 also edits docs/decisions/governed-writable-workers.md; #4029 routing worked in parallel

  8. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Merged in #4132 as 1140799f2 through the integration lease (orchestrator merge queue for 0.45.0). Candidate confirmation passed on the exact head; the squash's own main run carries the post-merge heavy categories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: backendsAgentBackend implementations and the seam they share.area: docsThe docs/ tree and the README / AGENTS / CONTRIBUTING surfaces.area: ui-sdkWire protocol, runtime schemas, the server and client SDK surfaces.area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.priority: p1Scheduled into the current or next milestone.type: testCoverage, harness or proof work with no behaviour change.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions