Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 11, 2026, 3:19 PM ET / 19:19 UTC. Summary PR surface: Source +102, Tests +140. Total +242 across 2 files. Reproducibility: yes. Current source establishes gateway-first handling followed by local fallback for active exec targets, and the contributor's real-gateway transcript demonstrates the corrected final-head paths. Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Use this per-path resolver so successful active exec paths resolve locally while mixed non-exec and failed paths remain gateway-owned, with one canonical implementation for the linked issue. Do we have a high-confidence way to reproduce the issue? Yes. Current source establishes gateway-first handling followed by local fallback for active exec targets, and the contributor's real-gateway transcript demonstrates the corrected final-head paths. Is this the best way to solve the issue? Yes. Per-path splitting is narrower than the competing whole-target skip and preserves gateway ownership and recovery for mixed secret sources. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 03558dc00821. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +102, Tests +140. Total +242 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (5 earlier review cycles)
|
0070779 to
9bf6c24
Compare
|
Addressed the requested contributor actions:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
9bf6c24 to
6d2f4ee
Compare
|
Addressed the remaining diagnostic-reconciliation finding at
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(secrets): resolve active exec refs locally This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Addressed the independent follow-up diagnostic review at The dual-failure path now emits exactly the actionable local provider failure plus final degraded/unresolved diagnostics. It suppresses the recursive Coverage now asserts one local failure, no skipped/rerun advice, and the exact diagnostic count. The built-code real-gateway proof confirms the cleaned output. 60/60 focused tests and @clawsweeper re-review |
6d2f4ee to
02a66be
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Superseded by the landed current-main fix #105160 / The landed boundary keeps the prepared active runtime snapshot authoritative—including exec-backed values already materialized during runtime preparation—and returns partial assignments so the existing caller fills only genuinely unresolved paths locally. That removes the noisy Gateway failure without adding per-turn exec-provider execution or a second split-resolution lifecycle in the reply process. Focused Testbox proof covered exec materialization, incomplete snapshots, and mixed Gateway/local targets; #96653 is closed as fixed. Thank you for the careful mixed-source and failure-path analysis here. |
Summary
execSecretRefs locally before callinggateway secrets.resolveThis prevents
replyfrom producing noisygateway secrets.resolve unavailableerrors when agent-runtime model/provider credentials use locally executable SecretRefs.Fixes #96653
What Problem This Solves
Queued reply turns currently send active model/provider
execSecretRefs togateway secrets.resolve. The gateway cannot execute those local providers, so it returnsUNAVAILABLE; the reply process then resolves the same ref locally and succeeds. That produces a misleading gateway error and needless round trip on every turn. Mixed-source commands additionally need a stable ownership boundary: resolving an exec path locally must not move unrelated env or other snapshot-backed credentials out of the gateway.Resolution boundary
This PR intentionally uses split per-path resolution:
execpaths resolve locally.This keeps configured exec execution narrowly scoped while preserving the gateway as the source of truth for non-exec credentials.
Evidence
Tested after rebasing onto current
main.Environment:
v22.22.2pnpm build cliStartupCommand:
Redacted output:
What this demonstrates:
resolved_local; no gateway errorresolved_gateway; no stale failure diagnosticTests
Focused suites after the exact-head rebase:
Changed-file quality gate:
The gate includes production and test typechecks, changed-file lint, dependency/package guards, database-first guards, and runtime import-cycle checks.
Relationship to #96661
PR #96661 is a useful candidate for the same canonical issue and supplied earlier live proof for active exec detection. The permanent boundary differs:
Useful coverage retained or expanded here:
The split boundary is narrower: it moves only configured active exec execution into the local reply process and does not move env or other gateway-resolvable credentials out of the gateway snapshot.
Security impact
Compatibility
Backward compatible. Resolution outcomes remain the same for successful setups; the change removes avoidable gateway failures and preserves gateway resolution for mixed-source targets.