Repository navigation
fix(ci): validate frozen releases with target capabilities - #136127
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
81f1cc1 to
a205aec
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 5:27 AM ET / 09:27 UTC. ClawSweeper reviewWhat this changesThe PR makes frozen-release validation discover gateway, provider-package, and historical test-path capabilities from the staged target instead of assuming current harness contracts. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessNo introduced correctness defect was found. This PR remains open for a release-owner decision because it extends coordinator-authorized omission policy in protected release-validation workflows. Priority: P2 Review scores
Verification
How this fits togetherFull Release Validation runs a selected release target with current trusted workflows and Docker harnesses. The changed harness discovers what the target supports before deciding which gateway, provider, and announce checks can run. flowchart LR
Target[Frozen release target] --> Workflow[Trusted release workflow]
Workflow --> Stage[Docker staging harness]
Stage --> Gateway[Gateway capability check]
Stage --> Providers[Provider package discovery]
Stage --> Announce[Announce test lookup]
Gateway --> Result[Release validation result]
Providers --> Result
Announce --> Result
Decision needed
Why: This is an intentional release-validation policy extension that can skip portions of a compatibility run, despite the default-deny guard and successful proof for the named frozen target. Before merge
Agent review detailsSecurityNone. PR surfaceTests +366, Config +11, Other +276. Total +653 across 14 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep target-owned capability and path discovery in the trusted harness, retain the default-deny authorization guard, and accept omissions only with exact target-specific release-harness evidence. Do we have a high-confidence way to reproduce the issue? Yes, at high confidence: the supplied pre-fix and exact-head hosted runs exercise the same frozen target and release harness, while the source maps each failure to its staged-target assumption. This review did not rerun the credentialed Docker workflow. Is this the best way to solve the issue? Yes for the implementation boundary: target-owned capability and path discovery replaces current-only assumptions, and malformed or partial capability data remains fail-closed. The remaining question is release-policy acceptance of the authorized omission scope. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c1744fda2aee. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
a205aec to
cd0007d
Compare
cd0007d to
32cf1b3
Compare
What Problem This Solves
Fixes an issue where Full Release Validation could report false release failures when current trusted harness code validated the frozen release target
659df8107ce37c07a4cd4364c76ece55a7124e22.Release-check child run 33597892284 exposed three target/tooling skew failures:
EINVALIDTAGNAMEbefore provider calls;These were trusted-harness failures, not product regressions in the frozen release.
Why This Change Was Made
The trusted harness now discovers capabilities and paths from the staged target instead of assuming current-only contracts:
parseRegistryNpmSpec; an authorized historical target without the export preserves its historical no-package-setup behavior;src/agents, supporting both historical and current layouts while rejecting zero or ambiguous matches;chown.The architectural owner is the trusted release harness. No product fallback, timeout increase, retry, or product-code change was added. The false current-only CLI and hardcoded-path assumptions are bypassed only through target-owned capability/path discovery.
User Impact
Release operators can validate a frozen target with current trusted tooling without false gateway, provider, announce, or bind-output ownership failures caused by harness evolution. Current/capable targets still run the full package setup and gateway suspension lifecycle.
No product runtime behavior changes. No release, publish, tag, registry mutation, or full FRV graph was run.
Evidence
32cf1b36c58d9f54d2ec1ac22fd30fea4fa0be97659df8107ce37c07a4cd4364c76ece55a7124e2203635db69530c6c0c315c21c1ab4063337e9ded2failed the stdout-flush regression because the missing-export branch calledprocess.exit()after writing;$(id -u):$(id -g), asserts directory and output-file ownership with Bash-O, and unlinks both outputs before continuing.test/scripts/docker-build-helper.test.ts: 273 passed, 2 skipped;test/scripts/gateway-network-client.test.ts: 23 passed;git diff --check, andscripts/check-changed.mjs --dry-runpassed;smol-toml, OpenTelemetry, Discord, Slack, and other unrelated packages);tbx_01m1gmb2fkv3nfqtdx7w37mqm3;cd0007d7e4f98cda4df4573ecd4325d1a146b43d, target659df8107ce37c07a4cd4364c76ece55a7124e22;EACCESand cleanup reportedOperation not permitted;tbx_01m1gnext9gezmwv1z4h4sy5x9;32cf1b36c58d9f54d2ec1ac22fd30fea4fa0be97, target659df8107ce37c07a4cd4364c76ece55a7124e22;commandMs=946460,totalMs=949035,exitCode=0,runStatus=succeeded;completed.run_b7596d33d0ac,commandMs=0);+299/-12(net+287);+372/-6(net+366);0.Sibling coverage includes all gateway hello capability shapes, all provider Docker lanes through the shared package owner, both announce layouts, workflow propagation/default deny, canonical Docker E2E ownership/timeout wiring, and the hosted frozen-target execution of every supported release-harness scenario.