Skip to content

fix(ci): trust QA tooling for frozen targets - #124509

Merged
steipete merged 4 commits into
mainfrom
fix/release-qa-frozen-tooling
Aug 16, 2026
Merged

steipete merged 4 commits into
mainfrom
fix/release-qa-frozen-tooling

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Frozen-target Release Checks run the selected candidate's QA runtime. Candidate 8f382a202ff1e15833394b481615dcdda99b04d7 predates the replay-stable Anthropic mock tool IDs from #123153, so its baseline lane falsely fails compaction-retry-mutating-tool and thread-memory-isolation even though the current trusted QA tooling already repairs both scenarios.

Why This Change Was Made

For runs with target_context_ref, the QA parity job now sparse-checks out only extensions/qa-lab/src/providers/mock-openai/mock-anthropic-wire.ts from the exact trusted workflow SHA and installs that one file over the selected checkout before setup and build. The checkout is credential-free and trap-cleaned. Ordinary current-ref Release Checks skip the overlay and remain target-owned.

User Impact

Release QA can evaluate frozen candidates with the current deterministic 40-character Anthropic mock ID adapter without changing candidate packages, production runtime, configuration, version, tag, or release state. The candidate's genuine missing setup_id migration remains visible in its separate upgrade/install/Docker failures.

Evidence

@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 16, 2026 08:22
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 16, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 5:36 AM ET / 09:36 UTC.

ClawSweeper review

What this changes

The PR validates a frozen release branch or tag before copying one current workflow-owned Anthropic QA adapter into the selected candidate checkout, with contract tests for valid and invalid contexts.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

The patch is a focused, source-trusted repair for frozen-candidate QA parity and addresses the prior context-validation finding. Keep it open until the current head’s remaining checks complete; the post-merge frozen-candidate parity rerun is the final operational confirmation.

Priority: P2
Reviewed head: 69364c407b5ae200b138e885889113fba142b408

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The workflow boundary and contract coverage are strong; remaining exact-head CI and the after-merge candidate rerun are operational gates rather than patch defects.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored CI workflow PR is exempt from the external-contributor proof gate; the supplied focused contract and exact-head CI evidence remain useful supplemental proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored CI workflow PR is exempt from the external-contributor proof gate; the supplied focused contract and exact-head CI evidence remain useful supplemental proof.
Evidence reviewed 6 items Trusted-overlay decision: The PR-head workflow accepts only canonical release branch/tag context plus a full SHA, verifies tag equality or branch ancestry in a bare blob-filtered repository, then exposes eligibility for the parity job.
Narrow trusted copy: The parity job checks out only the QA adapter from github.workflow_sha with credentials disabled, installs it before setup/build, and removes the temporary checkout.
Executable workflow contract: The added test executes the validation shell steps against a temporary Git release branch/tag fixture and covers accepted context, rejected context, tag mismatch, ancestry, and unrelated commits.
Findings None None.
Security None None.

How this fits together

Release checks resolve a candidate revision and run package and QA validation against it. For an older frozen candidate, this patch permits the parity lane alone to use a current trusted mock adapter while leaving candidate runtime and release artifacts unchanged.

flowchart LR
  A[Release-check inputs] --> B[Resolve candidate SHA]
  A --> C[Validate release context]
  C --> D{Eligible frozen target?}
  B --> E[Candidate checkout]
  D -->|yes| F[Trusted QA adapter checkout]
  D -->|no| E
  F --> G[QA parity build and run]
  E --> G
  G --> H[Release-check result]
Loading

Before merge

  • Resolve merge risk (P1) - Current-head CI is still incomplete, so the workflow should not merge until its required checks finish green.
  • Resolve merge risk (P1) - The immutable frozen-candidate parity rerun can only occur after this trusted workflow is on main; record that scoped result before relying on it for release readiness.
  • Resolve merge risk (P1) - The reviewer could not independently inspect GitHub Actions documentation or live run output because network/DNS access is unavailable; current repository workflows use the same workflow-SHA trust pattern.
  • Complete next step (P2) - No discrete repair remains: this maintainer-owned PR needs normal exact-head CI completion and its planned post-merge parity confirmation.
Agent review details

Security

None.

PR surface

Tests +194, Config +100. Total +294 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 194 0 +194
Docs 0 0 0 0
Config 1 100 0 +100
Generated 0 0 0 0
Other 0 0 0 0
Total 2 294 0 +294

Review metrics

Metric Value Why it matters
Production versus test LOC workflow/tooling +100, tests +194 The workflow growth establishes a release-context trust boundary and one-file overlay; the tests execute its Git relationship checks against a local fixture.

Merge-risk options

Maintainer options:

  1. Finish exact-head validation (recommended)
    Wait for the remaining checks on commit 69364c4 to complete green before merging the release-check workflow change.
  2. Accept deferred candidate proof
    Land after exact-head validation and treat the post-main frozen-candidate QA-parity run as the required operational confirmation.

Technical review

Best possible solution:

Keep the resolver-owned eligibility check and one-file sparse overlay, then record a successful QA-parity rerun for the frozen candidate after the workflow lands.

Do we have a high-confidence way to reproduce the issue?

Yes, by source: a frozen exact-SHA target with valid release context reaches the guarded overlay path, and the added contract test executes its valid, invalid, tag, and branch-ancestry decisions. The actual candidate rerun must wait for the workflow to land.

Is this the best way to solve the issue?

Yes. Keeping the candidate frozen while overlaying only the current trusted mock adapter is narrower and safer than changing candidate packages or broadly substituting workflow code.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 77902b185d44.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored CI workflow PR is exempt from the external-contributor proof gate; the supplied focused contract and exact-head CI evidence remain useful supplemental proof.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This repairs release-QA automation reliability without changing the shipped runtime or user configuration.
  • merge-risk: 🚨 automation: A merge changes how frozen release candidates source QA tooling during the parity workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored CI workflow PR is exempt from the external-contributor proof gate; the supplied focused contract and exact-head CI evidence remain useful supplemental proof.

Evidence

What I checked:

Likely related people:

  • steipete: Current main history attributes the adjacent frozen-target release-check work to this author, and the PR head is the same author’s workflow-revision pin. (role: recent release-workflow contributor; confidence: high; commits: 255ca8d96b76, 69364c407b5a; files: .github/workflows/openclaw-release-checks.yml, test/scripts/package-acceptance-workflow.test.ts)
  • vincentkoc: The merged replay-stable mock-ID repair is the canonical QA behavior this workflow overlay supplies to frozen candidates. (role: QA adapter repair author; confidence: high; commits: 3f3256906690; files: extensions/qa-lab/src/providers/mock-openai/mock-anthropic-wire.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for all required checks on the current head to finish green.
  • Record the scoped frozen-candidate QA-parity rerun after merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-08-16T08:29:03.036Z sha 8523e2a3622dc81a08c5b506d480469f92f49ca3 :: needs changes before merge. :: [P2] Validate frozen-target context before applying the overlay
  • reviewed 2026-08-16T08:36:47.939Z sha fcbecbc9a6f1e65a2f09db09b4cdaae8023d9f4d :: found issues before merge. :: [P2] Validate frozen-target context before applying the overlay
  • reviewed 2026-08-16T09:23:38.124Z sha e982632774e583456cec4e6f7d19cc89097e6d12 :: found issues before merge. :: [P2] Keep the exact timeout assertion

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: M and removed size: S labels Aug 16, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready evidence for e982632774e583456cec4e6f7d19cc89097e6d12:

The trusted QA adapter overlay is now authorized only by one resolve_target output. The resolver validates canonical release branch/tag syntax, requires an exact-SHA target, and proves the target is the exact tagged commit or an ancestor of the named release branch. That proof uses a temporary bare, blob-filtered Git fetch: no target source checkout or execution. The adapter itself is copied from github.workflow_sha, not target-owned code.

ClawSweeper's prior finding and rank-up moves are addressed:

  • raw target_context_ref no longer gates either overlay step;
  • valid branch/tag contexts and invalid/missing/unrelated contexts have executable contract coverage;
  • the transient untrusted-context actions/checkout was removed after CodeQL identified it;
  • the workflow-owned tooling checkout is explicitly pinned to the workflow revision.

Focused proof:

Known proof gap: the immutable v2026.8.1-beta.2 QA parity rerun must happen after this workflow tooling lands on main. That rerun will remain scoped to qa-parity; this PR does not mutate the candidate, version, tag, package, publication state, or provenance policy.

@steipete
steipete force-pushed the fix/release-qa-frozen-tooling branch from e982632 to 69364c4 Compare August 16, 2026 09:30
@openclaw-barnacle openclaw-barnacle Bot removed the gateway Gateway runtime label Aug 16, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 16, 2026
@steipete
steipete merged commit d5f41f7 into main Aug 16, 2026
176 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the fix/release-qa-frozen-tooling branch August 16, 2026 09:41
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 17, 2026
* fix(ci): trust QA tooling for frozen targets

* fix(ci): validate frozen QA tooling context

* fix(ci): verify frozen context without checkout

* fix(ci): pin QA tooling to workflow revision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant