Skip to content

fix(ci): accept attested legacy Telegram evidence - #117330

Merged
RomneyDa merged 3 commits into
mainfrom
fix/release-telegram-attested-compat
Aug 1, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
fix/release-telegram-attested-compat

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 1, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes the 2026.6.34 Telegram release finalizer rejecting a candidate whose behavioral lane passed but which predates the newer process-boundary artifact protocol.

Why This Change Was Made

The finalizer reads one strict, tracked candidate declaration only after the candidate archive and source tree have been independently attested. Candidates without the declaration still require process-boundary evidence.

User Impact

No application runtime behavior changes. Release validation can accept the legacy evidence shape only when the frozen candidate explicitly declares it.

Evidence

  • actionlint .github/workflows/openclaw-release-telegram-qa.yml passed.
  • Diff check and fresh autoreview passed.
  • Full release validation remains the required final proof.

AI-assisted.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M maintainer Maintainer-authored PR labels Aug 1, 2026
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 1, 2026, 7:35 AM ET / 11:35 UTC.

ClawSweeper review

What this changes

The PR replaces the Telegram release finalizer’s hard-coded legacy target SHA with a declaration inside the attested candidate archive, while requiring context artifact hashes to match the requested target SHA.

Merge readiness

⛔ Blocked by patch quality or review findings - 7 items remain

Keep this PR open: its latest revision still broadens a single frozen-candidate exception into a declaration-selected bypass without binding that declaration to an immutable historical release identity. The prior P1 provenance blocker remains unresolved.

Priority: P2
Reviewed head: 5c6381e21c69296c2027d30ce3c3e288d4a2e749

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch has a concrete P1 release-provenance defect despite its narrow scope.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a MEMBER-authored CI workflow PR, so the external-contributor proof gate does not apply; approval still needs focused release-path validation after the provenance repair.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a MEMBER-authored CI workflow PR, so the external-contributor proof gate does not apply; approval still needs focused release-path validation after the provenance repair.
Evidence reviewed 5 items Current immutable exception: Current main permits the legacy evidence path only when TARGET_SHA equals one frozen historical SHA; all other candidates continue into the required process-boundary evidence path.
Proposed declaration branch: The PR removes the immutable SHA condition and accepts the legacy path when the extracted candidate contains a valid declaration whose only candidate-specific check is candidateVersion equality.
Release provenance permits future trusted candidates: Candidate provenance accepts main ancestors and selected release references; therefore an otherwise eligible future candidate can carry the declaration and select legacy mode unless the exception independently names the historical candidate.
Findings 1 actionable finding [P1] Bind legacy mode to immutable release provenance
Security Needs attention Legacy evidence bypass lacks immutable target binding: A candidate-controlled declaration and matching version can select the legacy branch after normal attestation, weakening the intended release-evidence provenance boundary for later candidates.

How this fits together

OpenClaw’s release-check workflow hands a frozen candidate archive to an isolated Telegram QA workflow. The workflow attests the archive and its source, chooses an evidence mode, and passes that evidence to the release-validation gate.

flowchart LR
  A[Release check] --> B[Telegram QA workflow]
  B --> C[Candidate archive]
  C --> D[Archive and source attestation]
  D --> E[Isolated Telegram run]
  E --> F{Evidence-mode decision}
  F -->|Current path| G[Process-boundary evidence]
  F -->|Legacy declaration| H[Legacy execution evidence]
  G --> I[Release validation]
  H --> I
Loading

Before merge

  • Bind legacy mode to immutable release provenance (P1) - The declaration is checked only against the candidate’s own version, so another eligible candidate can add it and bypass process-boundary evidence. Preserve an immutable historical tag or source-SHA condition for the frozen candidate; this is the still-unfixed prior blocker.
  • Resolve security concern: Legacy evidence bypass lacks immutable target binding - A candidate-controlled declaration and matching version can select the legacy branch after normal attestation, weakening the intended release-evidence provenance boundary for later candidates.
  • Resolve merge risk (P1) - Merging would let a later eligible release candidate opt into legacy evidence by carrying a syntactically valid declaration, instead of limiting the exception to the documented frozen historical candidate.
  • Resolve merge risk (P1) - The evidence-mode selection is release automation and a trust boundary; a false legacy selection can approve a candidate without the process-boundary evidence normally required by the finalizer.
  • Complete next step (P2) - The P1 repair is mechanically clear, but this MEMBER-authored PR carries the protected maintainer label and changes a release-evidence trust boundary, so a release-workflow owner should direct the update.
  • Improve patch quality - Restore immutable historical-candidate binding and add a focused acceptance/rejection regression case.
  • Improve patch quality - Run the repaired release-validation path and retain redacted evidence showing only the intended historical candidate selects legacy mode.

Findings

  • [P1] Bind legacy mode to immutable release provenance — .github/workflows/openclaw-release-telegram-qa.yml:2598-2613
  • [high] Legacy evidence bypass lacks immutable target binding — .github/workflows/openclaw-release-telegram-qa.yml:2598
Agent review details

Security

Needs attention: The patch broadens a release-evidence provenance exception without retaining a fixed historical identity.

PR surface

Config +10. Total +10 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 1 18 8 +10
Generated 0 0 0 0
Other 0 0 0 0
Total 1 18 8 +10

Review metrics

Metric Value Why it matters
Legacy admission policy 1 immutable SHA gate removed; 1 declaration-selected legacy path added This changes which release candidates can bypass mandatory process-boundary evidence, not merely the format of retained evidence.

Merge-risk options

Maintainer options:

  1. Restore immutable provenance binding (recommended)
    Require the one historical release tag or source SHA in addition to the archive declaration, and add a rejection case for another declared candidate.
  2. Accept a broader legacy exception
    Merge declaration-only selection only if maintainers explicitly intend any trusted eligible candidate with that declaration to bypass process-boundary evidence.
  3. Pause the compatibility rewrite
    Retain the current one-SHA fail-closed exception until the long-term release-evidence contract is agreed.

Technical review

Best possible solution:

Keep the declaration as a candidate-integrity check only if it is paired with an immutable historical tag or exact source-SHA requirement, then prove the frozen candidate is accepted and another declared candidate is rejected.

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

Yes. Source establishes the path: an eligible candidate archive with the valid declaration and matching version reaches the legacy branch without needing the historical SHA; this review did not execute a release workflow.

Is this the best way to solve the issue?

No. The declaration validates candidate content but not the historical identity of the exceptional candidate; immutable provenance must remain part of the admission condition.

Full review comments:

  • [P1] Bind legacy mode to immutable release provenance — .github/workflows/openclaw-release-telegram-qa.yml:2598-2613
    The declaration is checked only against the candidate’s own version, so another eligible candidate can add it and bypass process-boundary evidence. Preserve an immutable historical tag or source-SHA condition for the frozen candidate; this is the still-unfixed prior blocker.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P2: The remaining defect is a bounded release-validation automation regression with no application-runtime behavior change.
  • merge-risk: 🚨 compatibility: The change broadens a single historical compatibility exception into a path that future eligible candidates can select.
  • merge-risk: 🚨 security-boundary: The legacy branch weakens the provenance constraint protecting the release-evidence admission boundary.
  • merge-risk: 🚨 automation: The release finalizer can report acceptable evidence for an unintended candidate after this workflow change.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This is a MEMBER-authored CI workflow PR, so the external-contributor proof gate does not apply; approval still needs focused release-path validation after the provenance repair.

Evidence

Security concerns:

  • [high] Legacy evidence bypass lacks immutable target binding — .github/workflows/openclaw-release-telegram-qa.yml:2598
    A candidate-controlled declaration and matching version can select the legacy branch after normal attestation, weakening the intended release-evidence provenance boundary for later candidates.
    Confidence: 0.98

What I checked:

Likely related people:

  • steipete: Current-main blame attributes the frozen legacy-target exception to Peter Steinberger, and the workflow’s recent history is predominantly his release-QA work. (role: feature owner; confidence: high; commits: 475ea69f2c35, 2a52e45e2bb1, d6a33b539fc6; files: .github/workflows/openclaw-release-telegram-qa.yml)
  • RomneyDa: Dallin Romney has recent Telegram QA workflow history and authored the three commits in this PR. (role: recent area contributor; confidence: high; commits: a8df6e49a7ca, 821e7f47d2be, 5c6381e21c69; files: .github/workflows/openclaw-release-telegram-qa.yml)

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 (2 earlier review cycles)
  • reviewed 2026-08-01T10:20:09.068Z sha 821e7f4 :: found issues before merge. :: [P1] Bind the legacy mode to immutable release provenance
  • reviewed 2026-08-01T11:24:51.060Z sha 97a9832 :: found issues before merge. :: [P1] Bind legacy mode to immutable release provenance

@RomneyDa

RomneyDa commented Aug 1, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 1, 2026
@RomneyDa RomneyDa changed the title fix(release): attest legacy Telegram QA evidence mode fix(ci): accept attested legacy Telegram evidence Aug 1, 2026
@RomneyDa

RomneyDa commented Aug 1, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 1, 2026
@RomneyDa
RomneyDa merged commit 951f130 into main Aug 1, 2026
173 of 181 checks passed
@RomneyDa
RomneyDa deleted the fix/release-telegram-attested-compat branch August 1, 2026 11:54
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* fix(ci): attest legacy Telegram QA evidence mode

* fix(ci): attest Telegram QA evidence contract

* refactor(ci): narrow Telegram evidence compatibility
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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant