docs: correct ${VAR} expansion scope and add missing internal packages by Copilot · Pull Request #7102 · github/gh-aw-mcpg · GitHub
Skip to content

docs: correct ${VAR} expansion scope and add missing internal packages#7102

Merged
lpcox merged 3 commits into
mainfrom
copilot/fix-documentation-discrepancies
Jun 6, 2026
Merged

docs: correct ${VAR} expansion scope and add missing internal packages#7102
lpcox merged 3 commits into
mainfrom
copilot/fix-documentation-discrepancies

Conversation

Copilot AI commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Three documentation discrepancies found by the nightly reconciliation check: two incorrectly described ${VAR} expansion scope (claiming [gateway.tracing] supports it when it doesn't), and one omitted newly-added internal packages from the project structure.

Changes

CONTRIBUTING.md — Architecture Notes

  • [gateway.opentelemetry] section fields (endpoint, traceId, spanId, headers) do support ${VAR} expansion via expandTracingVariables(); the legacy [gateway.tracing] section does not. The prior note said TOML has no expansion at all.

config.example.toml — two locations (Example 4 note + Notes section)

  • Both comments claimed both [gateway.opentelemetry] and [gateway.tracing] support ${VAR} expansion. Only [gateway.opentelemetry] does — expandTracingVariables() is guarded by if cfg.Gateway.Opentelemetry != nil and is never reached for the legacy tracing path. Silent no-op substitution in [gateway.tracing] would produce malformed OTLP auth headers.

CONTRIBUTING.md — Project Structure

  • Added internal/jsonutil/ (JSON deep-clone utilities) and internal/mcpresult/ (MCP result text content helpers) to both the directory tree and Key Directories list.

Copilot AI linked an issue Jun 6, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix discrepancies in CONTRIBUTING.md documentation docs: correct ${VAR} expansion scope and add missing internal packages Jun 6, 2026
Copilot finished work on behalf of lpcox June 6, 2026 16:14
Copilot AI requested a review from lpcox June 6, 2026 16:14
@lpcox lpcox marked this pull request as ready for review June 6, 2026 16:18
Copilot AI review requested due to automatic review settings June 6, 2026 16:18

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.

Pull request overview

This PR updates repository documentation to accurately describe where ${VAR} expansion is supported in TOML configuration and to reflect newly added internal packages in the documented project structure.

Changes:

  • Corrects docs to indicate ${VAR} expansion is supported in TOML only for [gateway.opentelemetry] (not legacy [gateway.tracing]).
  • Updates config.example.toml comments in two places to remove incorrect claims about [gateway.tracing] expansion.
  • Adds internal/jsonutil/ and internal/mcpresult/ to the documented project structure in CONTRIBUTING.md.
Show a summary per file
File Description
CONTRIBUTING.md Updates architecture notes about TOML ${VAR} expansion scope and documents additional internal packages.
config.example.toml Fixes comments to reflect ${VAR} expansion behavior for gateway tracing/OpenTelemetry TOML sections.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

Comment thread CONTRIBUTING.md Outdated

- JSON stdin configuration with `${VAR}` variable expansion
- TOML configuration loaded from file (no `${VAR}` variable expansion)
- TOML configuration loaded from file (`${VAR}` expansion supported only in `[gateway.opentelemetry]` section fields: `endpoint`, `traceId`, `spanId`, `headers`)
Comment thread config.example.toml Outdated
Comment on lines +252 to +254
# - Use ${VAR_NAME} syntax to reference environment variables in JSON stdin format only
# - TOML does not support ${VAR_NAME} expansion in server args/env fields; use absolute paths instead
# - The [gateway.opentelemetry] and [gateway.tracing] sections do support ${VAR_NAME} expansion
# - The [gateway.opentelemetry] section supports ${VAR_NAME} expansion; the legacy [gateway.tracing] section does not
@lpcox

lpcox commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

Copilot finished work on behalf of lpcox June 6, 2026 16:29
@lpcox lpcox merged commit d1fa0dc into main Jun 6, 2026
3 checks passed
@lpcox lpcox deleted the copilot/fix-documentation-discrepancies branch June 6, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

📚 Documentation Reconciliation Report - 2026-06-05

3 participants