Skip to content

feat(copilot): add explicit opt-in setup and auth diagnostics #572

Closed
1 of 1 issue completed
Closed

Description

@r4yharris-agent-coder

Desired outcome

After adapter/auth mode is chosen, add Roster-native explicit provider opt-in, install/model capability diagnostics and safe official interactive auth handoff.

Field Declaration
Work item / priority slice / P1
Board / campaign Roster Build / Copilot subscription integration
Requested status Backlog; ProjectV2 user-board access must be verified separately
Spec trace FEATURE_SPEC §§5.2, 5.7, 5.8; honors §§3, 7; advances §8 where applicable
Parent #569 (dedicated integration; separate from Eve)
Dependency #571
Estimate / assignee Not estimated; no assignee claimed

Scope and non-goals

Follow existing onboarding/doctor patterns. Explain official login for the human; never run device/browser login, collect codes, read keychain tokens or persist auth secrets.

Measurable acceptance criteria

  • Tests cover offline/non-TTY, opt-out, missing install, signed-out, expired/revoked, policy-disabled, permission-denied and unavailable-model cases; messages are actionable and redact secrets/provider bodies.
  • Existing local/stub defaults and configs continue unchanged unless provider is explicitly opted in; private config stores provider/model/choices only, never credentials/codes/tokens/key paths.
  • Install/model check is non-mutating and does not issue a model prompt; selected model ID is exact and no default entitlement is assumed.
  • Doctor/logout guidance explains env token precedence, stored CLI OAuth and gh fallback; no command extracts/displays/copies/deletes OS credentials.
  • External data disclosure and unknown license/policy/budget are explicit; cloud remains off by default.

Verification plan

Temporary config and fake executable/fixtures only; block outbound requests/login and assert no secret-shaped sentinel appears in output.

Blocking human/security gates

  • Parent initiative gates apply. No inference about Ray's plan, license, models, org policy, entitlement or budget. No live call without explicit task/data/account/model/spend approval.
  • Never device-login on Ray's behalf, capture codes/tokens, extract IDE/keychain credentials, change App/org installation permissions or human policy/workflows, or publish with human credentials. Inference must not inherit GitHub App publishing authority.
  • Keep Node >=20 ESM and zero runtime dependencies unless the human explicitly approves a future exception; official SDK requires Node ^20.19.0 or >=22.12.0 plus SDK/platform runtime packages; npm CLI requires Node 22+.
  • Preserve task-selected skills/context as bounded untrusted input, exact scope/tools, independent read-only reviewer and honest provider-specific metrics.

Research/source references

Official sources (checked 2026-10-11)

Related only: #418 remains its deferred original acceptance gate; #414 retains its own calibration/human acceptance; this is separate from #473/#489.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    enhancement
    kind:slice
    priority:P1
    spec:5.2
    spec:5.7
    spec:5.8
    on Oct 11, 2026
  2. added a commit that references this issue on Oct 14, 2026
  3. r4yharris-agent-coder commented on Oct 14, 2026

    @r4yharris-agent-coder
    ContributorAuthor

    Verified bounded offline delivery: #648 CLOSED / Roster Build Done; App PR #651 MERGED, head 922f112, merge 098d67f.

    Required tests and trailers SUCCESS. Full Linux Node20 CI:2100 total,2097 pass,zero failures,three skips,76217.156872ms. Independent parent corrected Windows Node20:53/53 pass,31885.397ms.

    Initial parent review required rejecting explicit UNC/device/URI and ASCII control paths before metadata inspection; corrected pure inspect-spy and CLI tripwire tests pass. Mounted-drive locality remains explicitly unproven. Diagnostics are offline metadata/guidance only, always disabled/unqualified, exit1. No login, credential reads, provider call or private setting writes. Broader child Windows99test96pass3failure observation remains retained separately; no full Windows green claim.

    Parent #572 and prerequisite #571 remain open. No production setup/auth/account/data/model/spend approval granted.

  4. r4yharris-agent-coder commented on Oct 22, 2026

    @r4yharris-agent-coder
    ContributorAuthor

    Native Rust offline Copilot setup and auth readiness diagnostics verified (#672)

    • Verified PR: [agent] complete Copilot worker offline contracts, shell fleet/question parity, and checkpoint/vault guards #672 (MERGED, head db51e425a5e46fb03bd7f7d72f803ac6da86e627, merge bbbdc1c3acae17b5774bacafc4f91489f3f11095, check-agent-trailers SUCCESS)
    • Model: GPT-6.1-Sol
    • AI-Run: 1|github-copilot|GPT-6.1-Sol@-|x|-/1000000|-|ghcp-20261022|rust-migration-roster-cli-evaluation
    • Delivered: Completed declared-state offline unit coverage across all auth_state, auth_source, and model_state combinations in rust/capabilities.rs (check_copilot_doctor, roster doctor --copilot, /doctor copilot) and verified in roster shell (FEATURE_SPEC §§5.2, 5.7, 5.8; honors §§3, 7).
    • Status: Issue remains open for human AI-Eval and live auth-mode approval.
  5. added
    roster:review
    on Oct 22, 2026
  6. removed
    roster:review
    on Oct 23, 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

    enhancementkind:slicepriority:P1spec:5.2spec:5.7spec:5.8

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions