Repository navigation
Description
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 inGITHUB_API_HOSTS(turn-egress.ts:13). - In the incident, a compound command's
CONNECT api.github.com:443was held for 68 s and then refused asoutward_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.comemits aNetworkcard 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,curlor 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
Networkcard's content and the allow, deny and stop outcomes for an unclassifiedapi.github.comconnection. - 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:prdocumentation 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
schlessera commentedon Nov 16, 2026
Unblocked: #3797, #3798 are closed, so
scripts/sync-project.tsis removing theblockedlabel.schlessera commentedon Nov 17, 2026
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
CONTRACT: fix(ui-sdk,backends): carry the GitHub tools guidance in th…
test(ui-sdk): type the GitHub brief fixtures against the brief's own …
CONTRACT: test(ui-server): prove the Network card for raw GitHub API …
schlessera commentedon Nov 17, 2026
Merged in #4132 as
1140799f2through 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.