Skip to content

fix(ci): bind release target context - #106836

Merged
steipete merged 1 commit into
mainfrom
codex/release-context-env
Jul 13, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/release-context-env

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Full Release Validation now computes the canonical release-check ref, but the
release-check job did not bind inputs.target_context_ref into its shell
environment. The safe fallback therefore still dispatched the exact SHA as
ref, and Telegram QA could not verify the canonical LTS branch provenance.

Exact evidence:

Why This Change Was Made

Bind TARGET_CONTEXT_REF on the owning release-check dispatch step. Keep the
existing ${TARGET_CONTEXT_REF:-$TARGET_REF} fallback and immutable
expected_sha validation. Add a regression assertion on the parsed step env so
the workflow cannot silently lose the binding again.

User Impact

Frozen release branches and tags retain their canonical provenance through the
full parent/child/grandchild validation chain. No product runtime change.

Evidence

  • Blacksmith Testbox tbx_01kxepwyeyxxc5xzj6mk58w03b: focused workflow test
    11/11 passed; targeted formatting passed.
  • Fresh autoreview: no accepted/actionable findings, confidence 0.98.
  • git diff --check passed.
  • Post-merge proof will rerun focused exact LTS Telegram validation at
    de63d91e4bb95aba8827a94e3c8419e13da3017f with
    extended-stable/2026.6.33 context, then full LTS validation.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 13, 2026
@steipete steipete self-assigned this Jul 13, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 13, 2026
@clawsweeper

clawsweeper Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 13, 2026, 5:57 PM ET / 21:57 UTC.

Summary
The PR binds inputs.target_context_ref into the release-check dispatch environment and adds a regression assertion for that workflow binding.

PR surface: Tests +2, Config +1. Total +3 across 2 files.

Reproducibility: yes. at the source level: the step script reads TARGET_CONTEXT_REF, but the pre-patch step environment never defines it, deterministically selecting the TARGET_REF fallback. The linked pre-fix workflow chain is consistent with that path, though it was not independently rerun during this read-only review.

Review metrics: 1 noteworthy metric.

  • Release context binding: 1 environment binding added; 0 immutable-SHA guards changed. The patch restores canonical ref provenance without weakening the existing candidate-commit validation boundary.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🌊 off-meta tidepool
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Risk before merge

  • [P1] The structural test proves the environment mapping but not the complete parent/child/grandchild runtime propagation; a live exact-LTS validation remains the strongest proof that canonical context reaches Telegram QA, although the unchanged expected_sha guard limits candidate-selection risk.

Maintainer options:

  1. Merge, then verify exact LTS provenance (recommended)
    Accept the bounded automation risk because immutable expected_sha validation remains intact, then run and retain the planned exact-LTS validation evidence.
  2. Hold for complete pre-merge dispatch proof
    Keep the PR pending until a branch-based parent/child/grandchild run demonstrates that the canonical context ref reaches Telegram QA.

Next step before merge

  • [P1] No automated repair is needed; the release owner should decide whether to accept post-merge live-chain proof and then handle the protected maintainer PR through normal review and merge.

Maintainer decision needed

  • Question: Is the focused structural/Testbox evidence sufficient to merge this release-workflow fix before the planned live exact-LTS parent/child/grandchild validation?
  • Rationale: The patch is mechanically correct and preserves the immutable-SHA guard, but only a release owner can accept post-merge live proof for an automation path that cannot fully prove its canonical provenance through ordinary PR CI.
  • Likely owner: steipete — The history shows primary ownership of this release-validation workflow and its resolved-target contract.
  • Options:
    • Merge and verify the live chain (recommended): Accept the bounded risk, merge the focused fix, and immediately run the documented exact-LTS validation with retained run IDs.
    • Require branch-run proof first: Delay merge until a branch-dispatched validation demonstrates canonical context propagation through the complete workflow chain.

Security
Cleared: The patch adds no dependency, permission, secret, third-party action, or executable interpolation surface; the ref remains quoted and the immutable expected-SHA check is unchanged.

Review details

Best possible solution:

Land the direct step-level binding with its regression assertion, then run the planned exact-LTS validation and retain evidence showing both canonical branch context and immutable candidate SHA across the full dispatch chain.

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

Yes at the source level: the step script reads TARGET_CONTEXT_REF, but the pre-patch step environment never defines it, deterministically selecting the TARGET_REF fallback. The linked pre-fix workflow chain is consistent with that path, though it was not independently rerun during this read-only review.

Is this the best way to solve the issue?

Yes. Binding the existing workflow input at the consuming step is narrower and safer than changing fallback semantics or child-workflow contracts, and the regression assertion covers the exact omission.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 898ef1f45c3b.

Label changes

Label changes:

  • add P2: This is a bounded release-validation correctness bug with limited blast radius and no product runtime change.
  • add merge-risk: 🚨 automation: The changed environment value controls which canonical ref is forwarded through release-check automation, and only a live dispatch chain fully verifies that propagation.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The repository marks this as a maintainer PR, so the external-contributor proof gate does not apply; the planned exact-LTS workflow run remains valuable release evidence.

Label justifications:

  • P2: This is a bounded release-validation correctness bug with limited blast radius and no product runtime change.
  • merge-risk: 🚨 automation: The changed environment value controls which canonical ref is forwarded through release-check automation, and only a live dispatch chain fully verifies that propagation.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The repository marks this as a maintainer PR, so the external-contributor proof gate does not apply; the planned exact-LTS workflow run remains valuable release evidence.
Evidence reviewed

PR surface:

Tests +2, Config +1. Total +3 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 4 2 +2
Docs 0 0 0 0
Config 1 1 0 +1
Generated 0 0 0 0
Other 0 0 0 0
Total 2 5 2 +3

What I checked:

Likely related people:

  • steipete: Prior merged history shows sustained ownership of full release validation, including resolved-target enforcement, child dispatch, evidence handling, retries, and release-profile behavior; the PR author therefore also has substantial current-main provenance beyond proposing this patch. (role: feature owner and recent area contributor; confidence: high; commits: 2fd02c206064, a355c8897d1a, 4e45010; files: .github/workflows/full-release-validation.yml, test/scripts/plugin-prerelease-test-plan.test.ts)
  • vincentkoc: Recent history connects this contributor to release-validation process-group handling, transient child-dispatch failures, and QA filtering in the same workflow surface. (role: recent adjacent contributor; confidence: medium; commits: c38b503, 94a04e1, 4c68bfd; files: .github/workflows/full-release-validation.yml)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • 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.

@steipete
steipete merged commit 856e1ab into main Jul 13, 2026
131 of 138 checks passed
@steipete
steipete deleted the codex/release-context-env branch July 13, 2026 22:00
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 14, 2026
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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS 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