Skip to content

docs: document Foundry port 10005 and Copilot Decisions PAT rejection - #11813

Merged
lpcox merged 4 commits into
mainfrom
docs/auth-doctor-port-10005-decisions-AUTH-006-ee966b393f09796c
Nov 19, 2026
Merged

lpcox merged 4 commits into
mainfrom
docs/auth-doctor-port-10005-decisions-AUTH-006-ee966b393f09796c

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Caution

Protected files were modified in this change.
This pull request is in request-review mode and requires explicit human scrutiny before merge.

Protected files: README.md

Allow intentional protected-file changes

If this workflow is intended to modify these files, add specific filenames or folder prefixes to safe-outputs.create-pull-request.protected-files.exclude in the workflow Markdown frontmatter. For example, to allow .changeset/*, exclude the folder using .changeset/:

safe-outputs:
  create-pull-request:
    protected-files:
      policy: request-review
      exclude:
        - .changeset/

Keep your existing policy and exclusions. Folder exclusions use path prefixes, not glob patterns, and allow all files beneath that folder, including subfolders. Other protected files still require review. If allowed-files is configured, these paths must also match it. Run gh aw compile after updating the workflow.

Summary

  • Scan window: merged PRs and auth-relevant issues since 2026-11-12T03:17:48Z, plus the reviewed backlog reviewQueue.firstTime (50 of 204 reviewed this run; 0 deferred).
  • Corrected auth path: the api-proxy port tables and /reflect port ranges stopped at 10004. The Azure Foundry adapter binds on 10005 when FOUNDRY_API_TARGET and FOUNDRY_API_KEY are set.
  • Current-main vs pending: the Copilot Decisions PAT rejection is shipped behavior (pat_unsupported in containers/api-proxy/upstream-log.js). Accepted credentials for /v1/decisions remain unverified.

Documentation Changes

  • docs/authentication-architecture.md: add the 10005 Foundry row and diagram entry; replace "five HTTP servers" with "one per provider adapter" and note 10005 is optional; extend the internal-port note to 10005.
  • docs/api-proxy-sidecar.md: add 10005 (optional, binds only when configured) to the sidecar container port list.
  • docs/awf-config-spec.md: add 10005 to the sidecar port assignments (§ sidecar rule 5) and to the /reflect port range in §10.2, §11.3, and §11a.3, §11b.3.

Canonical Registry Changes

  • AUTH-006 (new, boundary auth, status workaround): Copilot /v1/decisions rejects a personal access token with a plain-text HTTP 400. Version scope unknown. Probe is a read-only docker logs | grep on upstream_error_response and pat_unsupported, with no live Decisions request. Provenance: PR Clarify Copilot Decisions PAT support and rejection diagnostics #11289, PR docs: clarify Copilot Decisions authentication and egress scope #11310, gh-aw issue #75637, containers/api-proxy/upstream-log.js, server.decisions.test.js.
  • The diagnosis index docs/diagnostics/README.md was regenerated and includes AUTH-006. npm run diagnostics:validate passes with 36 findings.
  • Generated consumers .github/workflows/shared/diagnosis-findings.md and .github/agents/diagnose-awf.md were not included, per the allowed-files contract. npm run diagnostics:check reports them stale until trusted CI or a reviewer runs npm run diagnostics:render.

Validation

  • Implementation checked on main: containers/api-proxy/providers/foundry.js (port 10005, alwaysBind: false, isEnabled requires target and key); containers/api-proxy/providers/index.js (Foundry registered); containers/api-proxy/Dockerfile (EXPOSE includes 10005); containers/api-proxy/server-factory.js (/reflect and /health on every bound port); containers/api-proxy/startup.js (binds only alwaysBind || isEnabled()); containers/api-proxy/provider-env-constants.json (FOUNDRY_API_KEY, FOUNDRY_API_TARGET); containers/api-proxy/proxy-utils.js (stripped-header list unchanged, consistent with docs).
  • Validation commands: npm run diagnostics:validate (pass), npm run diagnostics:freshness (no overdue records), npx jest scripts/diagnostics (78 of 79 pass; the single failure is the expected generated-artifact sync check for the two consumers excluded from this PR).
  • Markdown review: table rows and ASCII diagram column width checked; relative links unchanged.
  • Credential-leakage review: diff scanned for token, key, JWT, and Authorization content. The only match is the literal text github_pat_* in a description. No credential-bearing URLs or copied headers.

Review coverage and backlog

  • Reviewed this run: 50 first-time candidates (of 204 pending). Deferred reviewed: 0 (none in the queue).
  • Dispositions (receipts in cache): 3 covered, 46 no-impact with boundary owner, 1 needs-evidence.
  • Evidence gap: the integrity policy filtered most PR changed-file lists, so for most candidates review relied on title, body and cited code/tests. PR docs: distinguish AWF applicability from upstream product support #11246 (GHES/GHEC applicability docs) is needs-evidence because it overlaps the auth-matrix Copilot routing rows and its file list was filtered.
  • Remaining backlog: 154 pending candidates after this batch. Historical traversal and the 1000-result search ceiling are unchanged by this run.

Sources

Generated by Auth Doctor Updater · copilot · routed: haiku55 xhigh · ~84 AIC · ⊞ 9.7K · ◷

- Add the optional Azure Foundry listener (10005) to the sidecar port
  tables and /reflect port references; it binds only when configured,
  matching containers/api-proxy/providers/foundry.js and the Dockerfile.
- Add AUTH-006 for the Copilot /v1/decisions plain-text HTTP 400 rejection
  of personal access tokens, with a read-only, secret-safe probe.
- Regenerate the diagnosis index (generated consumers left to trusted CI).

Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot added ai-generated documentation Improvements or additions to documentation labels Nov 19, 2026
Copilot AI adaptive review requested due to automatic review settings November 19, 2026 03:34
@github-actions github-actions Bot added documentation Improvements or additions to documentation ai-generated labels Nov 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active findings remain, including a missing Foundry proxy route, stale generated diagnostics consumers, and overbroad or nondiscriminating AUTH-006 documentation and probe logic.

4 open issues
What changed in this PR

Documents Azure Foundry's optional API-proxy listener on port 10005 and adds the AUTH-006 diagnosis for Copilot Decisions personal access token rejection.

Changes:

  • Documents Foundry port 10005 and optional binding behavior across authentication, sidecar, and configuration references.
  • Adds AUTH-006 to the canonical diagnostics registry with symptoms, conditions, probe guidance, and workaround information.
  • Extends documented /reflect port ranges to include the optional Foundry listener.
File Description
docs/​diagnostics/​README.md Adds AUTH-006 to the canonical diagnosis index and symptom lookup table.
docs/​diagnostics/​findings/​auth/​AUTH-006.json Defines the Copilot Decisions personal access token rejection finding and diagnostic probe.
docs/​awf-config-spec.md Documents Foundry port 10005 and extends sidecar port assignments and /reflect port ranges.
docs/​authentication-architecture.md Adds Foundry to the provider-port table, architecture diagram, and internal-port documentation.
docs/​api-proxy-sidecar.md Adds optional Azure Foundry port 10005 to the sidecar port list.

Review effort: Lite (adaptive)

| AUTH-003 | auth | gh-aw-launched HTTP MCP GitHub server fails the OIDC boundary check | workaround | [`findings/auth/AUTH-003.json`](./findings/auth/AUTH-003.json) |
| AUTH-004 | auth | Primary API-proxy OIDC initialization races Squid readiness | fixed | [`findings/auth/AUTH-004.json`](./findings/auth/AUTH-004.json) |
| AUTH-005 | auth | API-proxy refuses an upstream response it cannot safely inspect for credential echoes | workaround | [`findings/auth/AUTH-005.json`](./findings/auth/AUTH-005.json) |
| AUTH-006 | auth | Copilot /v1/decisions rejects a personal access token with a plain-text HTTP 400 | workaround | [`findings/auth/AUTH-006.json`](./findings/auth/AUTH-006.json) |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This remains unresolved. CI showed both generated diagnosis consumers stale, but .github/agents/diagnose-awf.md is inaccessible in this workspace, so I could not safely render the complete outputs. Please run npm run diagnostics:render in an authorized environment and commit the generated consumers. The source-record fixes are in 99e988e; local diagnostics validation was also blocked because tsx was unavailable and the package mirror could not resolve.

Comment thread docs/awf-config-spec.md
Comment on lines +607 to +608
10002 (Copilot), 10003 (Gemini), 10004 (Vertex AI), and 10005 (Azure
Foundry, optional; binds only when configured).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the normative FOUNDRY_BASE_URL route to http://172.30.0.30:10005 in 99e988e, noting the adapter is optional and configured-only.

"fixed": "unknown"
},
"status": "workaround",
"rootCause": "The Copilot Decisions endpoint does not accept personal access tokens. AWF forwards the configured credential unchanged and does not exchange a PAT for an OAuth or GitHub App token, so the upstream rejection is returned to the caller. The sidecar classifies the fully captured body as pat_unsupported in logs only. Standalone gh-aw evals run on the host runner outside AWF and cannot be fixed by proxy changes.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Narrowed the AUTH-006 root cause to the reported fine-grained PAT reproduction and explicitly retained classic PAT acceptance as unverified in 99e988e.

"status": "workaround",
"rootCause": "The Copilot Decisions endpoint does not accept personal access tokens. AWF forwards the configured credential unchanged and does not exchange a PAT for an OAuth or GitHub App token, so the upstream rejection is returned to the caller. The sidecar classifies the fully captured body as pat_unsupported in logs only. Standalone gh-aw evals run on the host runner outside AWF and cannot be fixed by proxy changes.",
"probe": {
"command": "docker logs awf-api-proxy 2>&1 | grep -E 'upstream_error_response' | grep -E 'pat_unsupported|/v1/decisions'",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the read-only probe in 99e988e to require a single log record matching provider, exact /v1/decisions path (optionally with query), HTTP 400, and pat_unsupported.

@lpcox

lpcox commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

@copilot merge main and resolve conflicts

…-10005-decisions-AUTH-006-ee966b393f09796c

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

@copilot merge main and resolve conflicts

Merged main cleanly; the two-parent merge commit is f9a29ed.

Copilot AI requested a review from lpcox November 19, 2026 14:52
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Copilot review passed with no inline comments.

@github-actions[bot] Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-11813 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit b585253

@lpcox

lpcox commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@lpcox lpcox changed the title [docs] auth: Document Foundry port 10005 and record Copilot Decisions PAT rejection (AUTH-006) docs: document Foundry port 10005 and Copilot Decisions PAT rejection Nov 19, 2026
@lpcox
lpcox merged commit f88b4b3 into main Nov 19, 2026
44 of 46 checks passed
@lpcox
lpcox deleted the docs/auth-doctor-port-10005-decisions-AUTH-006-ee966b393f09796c branch November 19, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants