Skip to content

fix: propagate config fields to all layers - #6970

Merged
lpcox merged 1 commit into
mainfrom
fix/config-audit-reflect-cli-mapping-fd96f56873436fe3
Aug 5, 2026
Merged

fix: propagate config fields to all layers#6970
lpcox merged 1 commit into
mainfrom
fix/config-audit-reflect-cli-mapping-fd96f56873436fe3

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Config Consistency Audit

Audited 15 merged PRs (Jul 31 – Aug 5, 2026) that touched configuration surfaces for consistency across JSON Schema, spec CLI mapping, TypeScript types, and env var wiring.

Summary

PR Change Gap found Fix
#6963 apiProxy.enableTokenSteering doc clarified, model alias filtering None — schema/spec/env wiring (AWF_ENABLE_TOKEN_STEERING in src/services/api-proxy-env-config.ts) all consistent
#6950 Added boundedAgents.engine to spec CLI mapping None — already present in src/awf-config-schema.json, docs/awf-config.schema.json, and src/config-file.ts/src/types/bounded-agent-options.ts
#6936 Added --reflect CLI flag (src/cli-options.ts, src/commands/main-action.ts) to query the API proxy /reflect endpoint Missing from Section 5 CLI Mapping table in docs/awf-config-spec.md Added CLI-only entry documenting --reflect
#6908, #6903, #6894, #6889, #6876, #6874, #6872, #6869, #6780, #6764, #6763, #6758 bounded-agent/bounded-query feature work None — schema/types/config-file additions all paired correctly; src/awf-config-schema.json and docs/awf-config.schema.json remain identical

Fix applied

Added a Section 5 CLI Mapping row for --reflect in docs/awf-config-spec.md, marked CLI-only (no config-document equivalent), noting it's mutually exclusive with a command argument.

Verification checklist

  • diff src/awf-config-schema.json docs/awf-config.schema.json — identical, no drift
  • npx jest src/config-file-mapping.test.ts src/schema.test.ts src/schema-validator.test.ts — 124 tests passed
  • Grepped all .option('--...') flags in src/cli-options.ts against the spec's CLI mapping table — --reflect was the only omission (after fix, all flags are now represented, aside from --no-network-isolation which is the negation form of the documented --network-isolation flag)

Generated by Config Consistency Auditor · auto · 74.5 AIC · ⊞ 9.1K ·

PR #6936 (feat(cli): add API proxy reflection mode) introduced the
--reflect CLI flag but did not add it to the Section 5 CLI Mapping
table in docs/awf-config-spec.md.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lpcox
lpcox marked this pull request as ready for review August 5, 2026 20:33
Copilot AI balanced review requested due to automatic review settings August 5, 2026 20:33
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation build failed for this PR. View logs.

Built from commit c85231d

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

Documents the previously omitted --reflect CLI-only configuration mapping.

Changes:

  • Adds --reflect behavior and command exclusivity to the config specification.
Show a summary per file
File Description
docs/awf-config-spec.md Documents the --reflect CLI mapping.

Review details

Tip

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

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Gemini completed. All facets verified. 💎

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Claude passed

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

🚀 Security Guard has started processing this pull request

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

📰 VERDICT: Smoke Docker Sbx has concluded. All systems operational. This is a developing story. 🎤

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

📡 Smoke OTel Tracing reports failed. OTel tracing regression detected. ⚠️

Smoke Test: API Proxy OTEL Tracing — all scenarios passed. 1) Module loading: ✅ otel.js loads, isEnabled()=true, exports 15 functions (startRequestSpan, setTokenAttributes, setBudgetAttributes, endSpan, endSpanError, shutdown, isEnabled, etc). 2) Test suite: ✅ 68/68 tests passed across otel.test.js, otel-fanout.test.js, otel-workload-identity.test.js (3 suites). 3) Env var forwarding: ✅ GITHUB_AW_OTEL_TRACE_ID and GITHUB_AW_OTEL_PARENT_SPAN_ID present in env-passthrough.ts; api-proxy-env-config.ts buildOtelEnv() forwards GH_AW_OTLP_ENDPOINTS, OTEL_EXPORTER_OTLP_ENDPOINT/HEADERS, trace context, and workload identity vars. 4) Token tracker integration: ✅ onUsage callback exists in token-tracker-http.js (line 348/406) as the OTEL hook point, invoked with normalized usage + model. 5) OTEL diagnostics: not applicable in this session run (no live agent traffic generated), graceful degradation confirmed via module load without config. No regressions detected.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Contribution Check completed successfully!

PR #6970 follows the documented contribution guidelines: the change is small, documented in docs/awf-config-spec.md, and the PR description includes the rationale and validation notes. No additional comment needed.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Copilot BYOK AOAI (Entra) reports failed. AOAI BYOK (Entra) mode investigation needed...

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed...

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Build Test Suite completed successfully!

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

🔌 Smoke Services — All services reachable! ✅

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Claude Engine Validation

Check Status
API ✅ PASS
gh CLI ✅ PASS
File ✅ PASS

Overall result: PASS

Generated by Smoke Claude for #6970 · haiku45 · 55.9 AIC · ⊞ 3.6K ·
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

EGRESS_RESULT allow=pass deny=pass

✅ Allowed domain (github.com) reachable: allowed=200
✅ Blocked domain (example.com) denied: CONNECT tunnel failed (403)

Overall: PASS — network-isolation egress enforcement working as expected. cc @lpcox

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • example.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "example.com"

See Network Configuration for more information.

🛡️ Egress verdict from Smoke Copilot Network Isolation
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot BYOK (Direct) Mode

Recent merged PRs (MCP check):

Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY) via api-proxy → api.githubcopilot.com

Overall: PASS

cc @lpcox

🔑 BYOK report filed by Smoke Copilot BYOK
Add label ready-for-aw to run again

@github-actions github-actions Bot added smoke-copilot-network-isolation Copilot network-isolation egress smoke test smoke-copilot-byok labels Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

🧪 Copilot Engine Smoke Test

  • ✅ GitHub MCP connectivity (list_pull_requests)
  • ✅ GitHub.com connectivity (HTTP 200)
  • ✅ File write/read test

Recent merged PRs:

Overall: PASS

cc @lpcox

📰 BREAKING: Report filed by Smoke Copilot
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Gemini Engine Validation

Overall Status: FAIL

💎 Faceted by Smoke Gemini
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Service Connectivity

  • Redis PING: ❌ (Temporary failure in name resolution)
  • PostgreSQL pg_isready: ❌ (no response)
  • PostgreSQL SELECT 1: ❌ (could not translate host name)

Overall: FAILhost.docker.internal could not be resolved from the AWF sandbox.

🔌 Service connectivity validated by Smoke Services
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Chroot Version Comparison

Runtime Host Version Chroot Version Match?
Python Python 3.12.13 Python 3.12.13 ✅ YES
Node.js v24.18.0 v22.23.1 ❌ NO
Go go1.22.12 go1.22.12 ✅ YES

Not all tests passed (ALL_TESTS_PASSED=false) due to a Node.js version mismatch between host and chroot environments. smoke-chroot label not applied.

Tested by Smoke Chroot
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Docker Sbx Validation

Overall: PASS

cc @lpcox

📰 BREAKING: Report filed by Smoke Docker Sbx
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

🏗️ Build Test Suite Results

Ecosystem Project Build/Install Tests Status
Bun elysia 1/1 passed ✅ PASS
Bun hono 1/1 passed ✅ PASS
C++ fmt N/A ✅ PASS
C++ json N/A ✅ PASS
Deno oak N/A 1/1 passed ✅ PASS
Deno std N/A 1/1 passed ✅ PASS
.NET hello-world N/A (ran) ✅ PASS
.NET json-parse N/A (ran) ✅ PASS
Go color passed ✅ PASS
Go env passed ✅ PASS
Go uuid passed ✅ PASS
Java gson 1/1 passed ✅ PASS
Java caffeine 1/1 passed ✅ PASS
Node.js clsx passed ✅ PASS
Node.js execa passed ✅ PASS
Node.js p-limit passed ✅ PASS
Rust fd 1/1 passed ✅ PASS
Rust zoxide 1/1 passed ✅ PASS

Overall: 8/8 ecosystems passed — PASS

Note: Java Maven runs initially failed with LocalRepositoryNotAccessibleException because ~/.m2/repository was not writable by the runner user; resolved by overriding -Dmaven.repo.local to a writable directory. This did not affect firewall/proxy behavior — the configured Squid proxy settings in ~/.m2/settings.xml worked correctly for dependency resolution.

All 18 project builds/tests across all 8 ecosystems completed successfully through the AWF firewall.

Generated by Build Test Suite for #6970 · auto · 49.6 AIC · ⊞ 11.7K ·
Add label ready-for-aw to run again

@lpcox
lpcox merged commit 9d12e0c into main Aug 5, 2026
127 of 131 checks passed
@lpcox
lpcox deleted the fix/config-audit-reflect-cli-mapping-fd96f56873436fe3 branch August 5, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants