Copilot route reference¶
The example arena is OpenAI-only: member/internal IPv4 network, Squid
source-specific CONNECT policy and the separate credential-bearing ai-api.
Copilot modes are explicit reviewed policy choices in schema 2, available at
creation and through an in-place plan on an initialized arena. Neither
image refresh, rollback nor a renderer update grants an ordinary member native
GitHub egress merely because an image contains Copilot tools.
Fedora jump start¶
Choose Maintain / Create / Remove → Jump start, then Fedora 44 or
Fedora 45 · Copilot bridge. Select
OpenCode and Python Copilot SDK inputs, reuse/prepare images, then validate and
approve the exact arena plan. SDK metadata selects its native runtime. Selected
agents default to OpenCode only, providers to Copilot bridge only, and
the sole external secret name to copilot. No Codex/Cosign, native Copilot CLI,
Caddy image or OpenAI secret is needed. Add OpenAI explicitly for Codex or a
second route; then provide its separate secret.
The wizard passes no PAT/OAuth value to the member.
New bridge preparation uses microsoft-copilot-sdk 2.x and SDK protocol 4.
The reviewed SDK release fixes its native runtime version; their major numbers
need not match. Each conversation uses one spawned runtime in explicit empty
mode, with only member-owned external tools. Startup performs no download.
Retained 1.x images are not migrated or removed automatically; prepare a 2.x
replacement and approve the normal refresh, then start new OpenCode sessions.
See the bridge README for the pinned acquisition and package checks.
This jump start does not enable native member GitHub/GitLab access. Native Copilot is a separate, weaker mode that permits member processes to use the approved GitHub HTTPS hosts. Broker images/credentials and native CLI inputs remain separate. See Operate an AI arena with arenactl for the short illustrated path and Reviewed jump-start defaults for optional IT defaults.
Select explicit bridge models¶
auto asks Copilot to choose a route. To offer named choices, open
Maintain / Create / Remove → Access / configuration → Copilot access / security
mode, select the member and Copilot bridge, reuse the current image/secret
name and enter comma-separated SDK model IDs. For example:
auto,gpt-6.1-terra
This is an operator-selected example, not a bundled entitlement catalogue.
Use the exact IDs supported by the approved Copilot SDK/runtime and credential.
GitHub’s supported-model/client table
is a starting point; plan, organization policy, client support and retirement
can change availability. Shyft keeps auto as the default and does not
silently populate or authorize routes from a public list.
Review and approve the plan. Changing the list regenerates the bridge options
and member OpenCode profiles, recreating those services and ending their current
conversations. It needs no model download, new member GitHub egress or image
rebuild. Restart OpenCode, open its model picker and choose copilot/MODEL_ID.
Use Default reasoning effort for the first check. Start a new conversation
when changing model; an existing native conversation cannot be retargeted.
For an operator proposal, change copilot.models in a separate copy of
arena.json and use the normal plan/apply flow. The same list supplies
--model options to the bridge and keys in both generated OpenCode profiles.
Do not hand-edit /opt/ai-agents/copilot-opencode.json or its host-side
ROOT/managed/MEMBER/agents source: those files are managed, and editing the
client alone does not admit a route through the bridge. GET /v1/models shows
the configured list; it performs no entitlement or inference check.
Verify a selected model¶
After explicit approval for real provider use, the maintained
tools/ai/copilot/scripts/live_smoke.py can run through the member’s existing
SSH connection. It uses only a short greeting and a private synthetic scratch
file, with at most three requests, no redirects/proxy environment and bounded
responses. The credential stays in the bridge. From the trusted checkout:
ssh -F "$ROOT/identity/dev/config" "ai-$ARENA-dev" \
'python3 - --approved-live --endpoint http://ai-copilot-api:8765/v1 --model gpt-6.1-terra --stream' \
< tools/ai/copilot/scripts/live_smoke.py
Substitute the selected member/alias and exact SDK ID. --text-only makes
one request. --expect-refusal also makes one request and succeeds only for
an explicit model-related refusal; its reported code distinguishes a missing
bridge allowlist entry from an upstream model/session rejection. Never use
workload/source data to test entitlement. A successful route test observes
protocol behavior; it does not independently attest the provider’s model weights.
Code |
Meaning / next step |
|---|---|
|
ID absent from the bridge allowlist; review/apply the intended list. No provider session was started. |
|
Structured upstream evidence says the model is unavailable/not enabled, or the runtime withdrew it. Check the exact ID and credential/organization policy; use a new chat. |
|
Selected-model session setup failed, or the runtime announced a different model. Check ID, entitlement, effort and SDK compatibility; the bridge did not choose a fallback. |
|
Model/controls changed within an existing chat. Start a new conversation with the new selection. |
|
Cause is not established as model availability. Check runtime, authentication, proxy/network and selected-model settings. Raw provider messages are not forwarded. |
Model-specific diagnostics require an updated bridge application image; adding
IDs to a compatible existing bridge does not. JSON and streamed failures carry
the same safe help text. SDK versions that supply only an unstructured setup
error produce model_selection_failed, without guessing an entitlement cause
from exception text.
An inference failure with only generic query metadata remains
upstream_failed with those troubleshooting hints; it does not establish
whether the chosen model is absent, unauthorized or temporarily failing.
Switch native Copilot to the broker¶
Open Maintain / Create / Remove → Prepare images → Copilot bridge. Select the SDK version (recent, exact, or acquired offline), Fedora 44 or Fedora 45 and a reviewed local base. The TUI resolves the immutable reference and finds verified OpenCode bundles; select one if needed. Review new unsigned inputs only when requested, then Build / verify Copilot bridge. All installed tests and capacity contract 2 must pass. This prepares an image; it does not deploy an arena.
Choose Use in new arena, or open Maintain / Create / Remove → Access / configuration → Copilot access / security mode for an existing root. Select the member, Copilot bridge (broker-held secret; no native member GitHub egress), the prepared image, a distinct existing external Podman secret name, model routes and Reviewed Copilot API hosts (Individual/Business; source .4). No secret is created or read in the TUI.
Review applied/proposed modes, exact removed member rules, added bridge source/destination rules, secret placement and affected services. Press
athen typeYES. The TUI passes the reviewed plan ID automatically. Missing image/secret, unrelated drift or an independent GitHub grant blocks; remove conflicting grants in the same reviewed operator proposal. Native profiles/launcher mounts are retired with the policy.Inspect after success. Open SSH / Connect and run:
cd /home/ci/workspace /opt/ai-agents/runtime.sh opencode-copilot
The same setting is available in Begin new arena from example under Maintain / Create / Remove → Access / configuration
for a safe config-only arena.json root before Create. Native
Copilot (member OAuth + broad GitHub HTTPS) and No Copilot external access
(selected member; remove arena bridge) reverse/disable the grant explicitly.
The bridge serves the whole arena; removing it affects every member. Native
flags are per-member: the UI lists other members still retaining their grant.
Prior native OAuth/session state is retained, not revoked or inspected. Removing network access does not establish absence of member-held credentials. Credential removal/revocation is a separate explicit operator action. Save work before affected services are recreated. SSH identity, workspace and data remain.
Capability |
Native mode |
Bridge mode, native off |
|---|---|---|
Public GitHub HTTPS clone/API |
Permitted at approved hosts for member processes |
Member CONNECT denied; exact bridge-source API hosts remain separate |
Copilot credential |
OAuth in persistent member data |
Dedicated broker secret only; old OAuth data may still exist |
Copilot inference |
Native client/account authorization |
OpenCode → internal bridge; synthetic API/tool tests are separate from provider acceptance |
Ordinary OpenAI route |
Internal ai-api → Squid |
Same route and OpenAI secret |
Corporate Fedora 44 workstation acceptance remains an operator procedure, not a result
of selecting a mode: first obtain account/model/disclosure approval, inspect clean
applied state, then confirm the chosen member’s denied GitHub CONNECT with a
read-only git -c http.proxy=http://egress:3128 ls-remote
"$APPROVED_PUBLIC_REPO_URL" in its SSH session. Use only an approved URL; do not
include credentials or verbose headers. Verify /v1/models locally, launch
opencode-copilot, and exercise a prompt plus client-owned read/tool/final and
multi-turn behavior. Record provider/account and enforcing-host outcomes without
tokens, source contents or authentication logs. Local readiness alone proves
neither real inference nor credential revocation. Codex-over-bridge is unverified.
For continuation_refused, retain the bridge’s fixed-category diagnostic event
order, request/conversation ordinals and batch counts. Inspect the first failure:
upstream_timeout means generation exceeded its configured wall deadline
(15 minutes by default):
check bridge/proxy health, then start a new conversation. Identical recent failed
requests retain the primary error and return nonretryable HTTP 400. An expired
session, cancellation or bridge restart cannot be resumed from persisted client
history; start a new conversation explicitly. An unknown refusal requires its
diagnostic reason, not repeated replay or edited history. Conversation, CPU and
pending-tool limits remain separate. Do not enable SDK payload logs or export
credentials. See tools/ai/copilot/README.md for the bounded contract and tests.
history_mismatch means the bridge could not match the earlier conversation
prefix. Automatic client changes can cause it too; it does not imply a deliberate
edit. Start a new conversation rather than replaying changed history. Fixed
history_checked events report phase, elapsed time, prefix relation and keyed
digests without prompt/tool content. Tool waits use the idle/lifetime bounds,
separately from generation time. A long tool command alone is not evidence of
modified history. OpenCode 2.3.2’s leading developer context is bound to the same
immutable instructions control; changing it still requires a new conversation.
Bridge capacity¶
The default extended-work profile needs no setup: a 16-GiB memory ceiling,
16 retained conversations and four active requests. Idle sessions release
active slots; bounded waiting handles short bursts without evicting sessions.
To tune it, choose Maintain / Create / Remove → Access / configuration → Copilot
access / security mode → member → Advanced bridge capacity. Inspect the
effective memory, retained/active limits, CPU/PID limits, wait/deadlines and data
budgets; edit fields or choose
Restore extended-work defaults, then Validate and preview capacity plan.
Continue and type YES; the reviewed plan ID is passed automatically. A
capacity-only plan restarts only the bridge and
ends its active native conversations; save work and start a new conversation
afterward. Member state and unrelated gateway policy are retained.
Inspection distinguishes desired, last-applied and locally observed settings. Older images without the runtime capacity interface block with a compatibility error; select a reviewed compatible image before tuning. Configuration changes then need no image rebuild. See Copilot bridge capacity reference for bounds and sizing.
Native GitHub Copilot CLI¶
The optional independent copilot executable is a third native agent, separate
from the OpenCode OAuth mode below and the SDK bridge. Platform/IT selects a
current stable official Linux x64 archive, reviews origin/signature limitations
and the tagged custom license, then prepares an optional --copilot-bundle.
Use Maintain / Create / Remove → Agent packages in Operate an AI arena with arenactl for preparation,
or Artifact identity and acceptance for manual input/verification details. Developers consume the approved immutable image;
they do not need the SDK bridge, Node/npm or image builders at runtime.
Select native mode through the UI, or propose member native_copilot: true
through the common plan/apply interface. Default members
refuse the managed CLI launcher, even when its binary is installed. The existing
source-specific Squid capability permits CONNECT/443 to exactly github.com,
api.github.com, api.individual.githubcopilot.com and
api.business.githubcopilot.com. It grants no direct member TCP/DNS/IPv6 route,
GitLab permission, wildcard GitHub access or additional enterprise subdomain.
The access trade-off is explained at Native Copilot exception. The individual
endpoint may conflict with corporate Business-only policy; this is not corporate approval.
Observe denied CONNECT source/host/port and obtain approval before adding hosts.
After separate account authorization, connect with pinned SSH:
arena --root "$ROOT" ssh --member dev
/opt/ai-agents/runtime.sh copilot login --device-code
/opt/ai-agents/runtime.sh copilot
The interactive shell also supplies a copilot alias. Native /model,
conversation and file tools remain client-owned. No login or inference occurs
during provisioning. Never paste authentication material into chat or evidence.
The launcher supplies only the allocated Squid proxy and private state, excluding
ambient COPILOT_GITHUB_TOKEN, GH_TOKEN, GITHUB_TOKEN, BYOK settings and
host gh configuration. COPILOT_HOME is the mode-0700 directory
/home/ci/.local/ai-agent/native-copilot/cli, persisted at
ROOT/data/MEMBER/agents/native-copilot/cli. It is distinct from OpenCode’s
native OAuth state. Refresh/remove/recreate retain both state and protected SSH
identity; deployment removal neither revokes OAuth nor rolls back user data.
Member processes can access native credentials and use the same allowed egress.
No process-specific credential isolation or host keychain import is claimed.
Automatic updates, client telemetry, built-in MCP servers, experimental behavior, Bash startup sourcing and automatic session upload are disabled by the launcher. No plugins or tool auto-approval are seeded. Explicit client configuration and child tools still share the source-IP policy; server telemetry and deliberate configuration are not made impossible by launch flags. Unapproved destinations remain denied at Squid. Validate each new executable’s supported controls and offline startup, then repeat local ACL and ordinary OpenCode/Codex gateway tests.
Offline COPILOT_OFFLINE=true tests prove credential-absent refusal/config/state
only; they require no account and do not demonstrate Copilot inference. Revalidate
the selected image/account on its Fedora corporate host: cover SELinux enforcing,
approved device login, organization entitlement, /model, repeated prompts and
at least two file-tool steps. Stop for review on a newly denied destination;
Arch-hosted Fedora userland does not establish those host/account guarantees.
Native OpenCode device OAuth¶
Select native mode on the chosen member (native_copilot: true). The supplied
opencode-native-copilot launcher selects a separate profile/private standalone
server and fixed Squid proxy; ordinary OpenAI/Codex profiles remain independent.
It permits CONNECT/443 only from that member’s explicit address to four exact
hosts: github.com, api.github.com, api.individual.githubcopilot.com and
api.business.githubcopilot.com. Other ports, HTTP methods, destinations,
telemetry and direct member external routes remain denied.
This is an intentional credential relaxation: a reusable OAuth credential lives
under ROOT/data/MEMBER/agents/native-copilot/{config,data,cache,state}, inside
the member trust domain. Agent/member processes and the trusted host owner can
access it. Remove/refresh/recreate retain it. Ordinary backups and disposal are
separate owner decisions; deleting deployment does not revoke a provider token.
Do not choose this mode for tasks whose input/credential policy forbids it.
The selected member image needs the compatible OpenCode standalone interface.
Provisioning does not log in or invoke inference. After separate account/data
approval, connect using the manager’s pinned SSH, start
/opt/ai-agents/runtime.sh opencode-native-copilot and use the native client’s
/connect / /models flow. Never paste a bridge PAT into that flow or grant
OAuth merely as a test convenience. Account entitlement and corporate Business
acceptance are not established by a route allowlist or a local fixture.
Optional bridge¶
The existing ai-copilot-api adapter remains independent of ai-api and
executes no member tools. The UI creates this optional field; an advanced operator proposal may also use:
"copilot": {
"image": "FULL_HOST_PRESENT_IMAGE_ID",
"secret": "existing-dedicated-copilot-secret",
"models": ["auto"],
"egress": "personal"
}
Omit egress for upstream-disabled bridge operation. The retained selector
personal enables only the bridge’s fixed source-specific GitHub CONNECT
routes; it is not an account-entitlement declaration. The external secret must
be distinct from OpenAI’s. Credentials remain on the bridge; its service runs
as 10001:10001 with read-only filesystem, dropped capabilities, no-new-privileges,
private bounded tmpfs/session state and resource limits. It has no host workspace,
SSH or socket mount and no published port. Reusable state disappears with its
container; no conversation resurrection after restart is promised.
The service image must provide /usr/bin/ai-copilot-api and its declared native
runtime interface; apply checks local --help offline and effective runtime
controls. No special Shyft provenance label is required by the arena manager.
The optional builder/package workflow remains documented in
tools/ai/copilot/README.md and tools/ai/copilot/packaging/. IT/host owns
image acquisition/approval, package repositories and CA trust; it need not use
that builder. No new package or signature platform is introduced in core state.
Use the mode action above to add/remove the bridge or change its secret/models/
reviewed upstream policy. Image-only replacement is also available under Maintain / Create / Remove → Create / update / remove arena
→ Refresh local immutable image or arena --root ROOT refresh --copilot
--image FULL_ID followed by its exact confirmation. A different member topology,
mount/SSH allocation or OpenAI secret still requires a fresh root.
Verification and transport limits¶
tools/ai/tests/arena-security.py / arena-baseline.py cover fresh schema,
source/identity/secret ownership, default-versus-optional policy, frozen recovery
and effective service controls with mocked backends. tests/native-copilot-network.py,
copilot-proxy.py and copilot-proxy-ipv6.py retain owned local TLS/CONNECT
controls, including positive controls, denied lookalike/telemetry destinations,
direct-route denial and proxy-stop behavior. These require explicitly selected
local images and disposable networks; they never authorize real OAuth/inference.
The adapter’s fake-SDK tests remain separate from actual SDK/account acceptance.
Local HTTP readiness proves only listener behavior. Native startup, provider login/entitlement, real inference, paid-account approvals and corporate-host policy remain distinct acceptance. See Verifying arena security for historical container/network limits and AI arena troubleshooting for safe errors.