Skip to content

fix: propagate config fields to all layers - #7054

Merged
lpcox merged 3 commits into
mainfrom
fix/enclaves-config-spec-mapping-e0a887dca99fb772
Aug 8, 2026
Merged

fix: propagate config fields to all layers#7054
lpcox merged 3 commits into
mainfrom
fix/enclaves-config-spec-mapping-e0a887dca99fb772

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

Config Consistency Audit

Audited merged PRs from the last 7 days that touched configuration layers (schema, spec, types, env-var wiring). Found one gap and fixed it.

Gap found

PR that introduced gap Field(s) Layer missing Fix
#6986 "feat: add unified enclave foundation" (and follow-ups #6988, #6990, #6992) enclaves.* (enabled, privateRepos[], executors.script.*, executors.agent.* — 30 leaf paths) Section 5 "CLI Mapping" table in docs/awf-config-spec.md Added enclaves.* rows to the CLI Mapping table, following the existing boundedAgents.*/boundedQueries.* convention (config-only, no CLI equivalent, pointing readers to §16 Unified Enclaves)

Verification performed

  • JSON Schema: src/awf-config-schema.json already contained all enclaves properties (script + agent executor fields, privateRepos, enabled). Diffed against docs/awf-config.schema.jsonidentical, no drift.
  • TypeScript types: src/types/enclave-options.ts already defines EnclavesConfig/RawEnclavesConfig with all fields; src/config-file.ts already exposes enclaves?: RawEnclavesConfig (correctly non-sensitive/config-file-eligible — no key/secret/token/credential fields present).
  • Security classification: All enclaves.* fields are non-sensitive (domains, runtime names, timeouts, limits) — correctly present in src/config-file.ts, not routed to env vars.
  • Spec CLI mapping: Was missing entirely for enclaves.* — this PR adds it.

Checks run

  • npx tsc --noEmit — passes, no errors.
  • npx jest config-file schema — 281 tests passed (8 suites).
  • diff src/awf-config-schema.json docs/awf-config.schema.json — identical.

No other gaps found in the other 15 reviewed PRs (#6990, #6988, #6970, #6963, #6950, #6936, #6908, #6903, #6894, #6889, #6876, #6874, #6872, #6869) — they either only touched the spec/docs (no new fields), were internal refactors, or already had complete cross-layer coverage.

Generated by Config Consistency Auditor · auto · 48.2 AIC · ⊞ 9K ·

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lpcox

lpcox commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

@copilot resolve merge conflicts

…pec-mapping-e0a887dca99fb772

# Conflicts:
#	docs/awf-config-spec.md

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve merge conflicts

Merge conflicts resolved in 31174d3.

main (via #6994) had already renumbered the enclaves section to §14 and added most enclaves.* rows to the CLI Mapping table, so I took main's version and kept the one row it was still missing: enclaves.executors.script.interpreter. Net diff vs main is now a single docs line.

Copilot AI requested a review from lpcox August 7, 2026 23:17
@lpcox
lpcox marked this pull request as ready for review August 7, 2026 23:30
Copilot AI balanced review requested due to automatic review settings August 7, 2026 23:30

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 missing enclave script interpreter config mapping.

Changes:

  • Adds enclaves.executors.script.interpreter as config-only.
  • References Unified Enclaves §14.
Show a summary per file
File Description
docs/awf-config-spec.md Adds the interpreter CLI-mapping entry.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Comment thread docs/awf-config-spec.md
- `enclaves.executors.script.enabled` → *(config-only; no CLI equivalent, see §14)*
- `enclaves.executors.script.runtime` → *(config-only; no CLI equivalent, see §14)*
- `enclaves.executors.script.image` → *(config-only; no CLI equivalent, see §14)*
- `enclaves.executors.script.interpreter` → *(config-only; no CLI equivalent, see §14)*
@lpcox

lpcox commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@copilot address review feedback

Added the two missing rows (enclaves.executors.script.network and enclaves.executors.agent.network) in c7f6bf7. All 30 leaf paths are now documented in the CLI Mapping table.

@github-actions

github-actions Bot commented Aug 8, 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 Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation build failed for this PR. View logs.

Built from commit 5fbc3e6

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

📰 DEVELOPING STORY: Smoke Docker Sbx reports failed to deliver outputs. Our correspondents are investigating the incident...

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Claude failed to deliver outputs

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Copilot BYOK reports failed to deliver outputs. BYOK mode investigation needed...

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

🛡️ Smoke Copilot Network Isolation reports failed to deliver outputs while checking network isolation. Investigate the egress model.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Gemini completed. All facets verified. 💎

Smoke test completed with partial failure (connectivity). Comment added to PR #7054.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

📰 DEVELOPING STORY: Smoke Copilot reports failed to deliver outputs. Our correspondents are investigating the incident...

@github-actions

github-actions Bot commented Aug 8, 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 8, 2026

Copy link
Copy Markdown
Contributor Author

🔌 Smoke Services — All services reachable! ✅

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Build Test Failed Build Test Suite - See logs for details

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

🚀 Security Guard has started processing this pull request

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Contribution Check completed successfully!

Contribution check complete: the PR follows CONTRIBUTING.md. The description is clear, references the related PRs, and the change is docs-only with no new code or tests required. No comment needed.

@github-actions

github-actions Bot commented Aug 8, 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 8, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Claude Engine Validation

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

Overall result: PASS

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

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

🔐 Smoke Test: Copilot BYOK (Direct Mode) — PASS

  • ✅ GitHub MCP connectivity: 2 merged PRs fetched
  • ✅ GitHub.com connectivity: HTTP 200
  • ✅ File write/read: Verified
  • ✅ BYOK inference path: Active (reading this prompt)

Mode: Direct BYOK via COPILOT_PROVIDER_API_KEY → api-proxy sidecar → api.githubcopilot.com

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

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot Engine@lpcox

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

Recent merged PRs: #7067, #7027

Overall: PASS

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

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

@lpcox
✅ GitHub MCP: merged PR data validated
✅ GitHub.com HTTP connectivity
✅ File I/O read/write
✅ BYOK inference path
Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw)
Overall PASS

🔑 BYOK (AOAI api-key) report filed by Smoke Copilot BYOK AOAI (api-key)
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot Network Isolation Egress Enforcement

EGRESS_RESULT allow=pass deny=pass

✅ Allowed domain (github.com) reachable — allowed=200
✅ Non-allowed domain (example.com) blocked — CONNECT tunnel failed (403)

Overall status: PASS

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 8, 2026

Copy link
Copy Markdown
Contributor Author

OTEL Tracing Smoke Test Results

  • Scenario 1 (Module Loading):otel.js loads and exports startRequestSpan, setTokenAttributes, setBudgetAttributes, endSpan, endSpanError, shutdown, isEnabled.
  • Scenario 2 (Test Suite):otel.test.js + otel-fanout.test.js — 61/61 tests passed.
  • Scenario 3 (Env Var Forwarding):env-passthrough.ts forwards GITHUB_AW_OTEL_TRACE_ID/GITHUB_AW_OTEL_PARENT_SPAN_ID; api-proxy-env-config.ts forwards OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_HEADERS, trace/span IDs, and sets OTEL_SERVICE_NAME.
  • Scenario 4 (Token Tracker Integration):onUsage callback present in token-tracker-http.js, invoked after normalized usage extraction as the OTEL hook point.
  • Scenario 5 (OTEL Diagnostics): i️ Not independently re-verified (relies on workflow's post-step artifact); no errors observed in direct checks — graceful degradation confirmed by passing test suite.

All checked scenarios pass.

📡 OTel tracing validated by Smoke OTel Tracing
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: GitHub Actions Services Connectivity

  • Redis: ❌ (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 8, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test

  • Add A19/B19 runner doctor entries: ARC/DinD safeoutputs mount + rootless cleanup chmod noise
  • chore: upgrade gh-aw to v0.86.0 pre-release and recompile workflows
  • ✅ Reviewed 2 merged PR titles via GitHub web
  • safeinputs-gh query unavailable; github-discussion-query unavailable
  • ✅ Playwright title contains GitHub
  • ✅ File write + cat readback passed
  • npm ci && npm run build passed
  • ❌ Discussion comment skipped; discussion write not available
  • Overall: FAIL

Warning

Firewall blocked 1 domain

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

  • registry.npmjs.org

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

network:
  allowed:
    - defaults
    - "registry.npmjs.org"

See Network Configuration for more information.

🔮 The oracle has spoken through Smoke Codex
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Add A19/B19 runner doctor entries: ARC/DinD safeoutputs mount + rootless cleanup chmod noise: ✅
chore: upgrade gh-aw to v0.86.0 pre-release and recompile workflows: ✅
GitHub.com connectivity: ✅
File write/read test: ✅
BYOK inference path: ✅

Running in direct BYOK mode (AWF_AUTH_TYPE=github-oidc + AWF_AUTH_AZURE_* + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) authenticated via Microsoft Entra
Overall status: PASS
Thanks @lpcox

🪪 BYOK (AOAI Entra) report filed by Smoke Copilot BYOK AOAI (Entra)
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Chroot Version Comparison Results

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

Overall: FAILED - Node.js version mismatch between host and chroot environments. The smoke-chroot label was not added since not all tests passed.

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

@github-actions

github-actions Bot commented Aug 8, 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 ✅ PASS
.NET json-parse N/A ✅ PASS
Go color 1/1 passed ✅ PASS
Go env 1/1 passed ✅ PASS
Go uuid 1/1 passed ✅ PASS
Java gson pass ✅ PASS
Java caffeine pass ✅ PASS
Node.js clsx pass ✅ PASS
Node.js execa pass ✅ PASS
Node.js p-limit pass ✅ PASS
Rust fd 1/1 passed ✅ PASS
Rust zoxide 1/1 passed ✅ PASS

Overall: 8/8 ecosystems passed — PASS

Note: Java Maven builds required overriding <localRepository> in settings.xml to a writable path (/tmp/gh-aw/agent/m2-repo) because ~/.m2 was owned by root in this environment; this did not affect proxy/network behavior.

Generated by Build Test Suite for #7054 · auto · 44.2 AIC · ⊞ 11.5K ·
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Smoke Test: Docker Sbx@lpcox

  • ✅ GitHub MCP connectivity (filtered by secrecy policy, but reachable)
  • ✅ GitHub.com connectivity (HTTP 200)
  • ✅ File write/read test

Overall: PASS

Recent merged PRs: #7067, #7027

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

@lpcox
lpcox merged commit 0841d91 into main Aug 8, 2026
122 of 130 checks passed
@lpcox
lpcox deleted the fix/enclaves-config-spec-mapping-e0a887dca99fb772 branch August 8, 2026 00:59
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.

3 participants