Skip to content

fix(release): restore trusted Telegram validation - #104455

Merged
steipete merged 1 commit into
mainfrom
codex/release-telegram-launcher-quote
Jul 11, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/release-telegram-launcher-quote

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where the trusted Telegram release lane could not launch the isolated gateway after the proc-visibility hardening landed. The generated launcher terminated with an unmatched-quote parse error before writing its process identity, blocking beta release validation.

Why This Change Was Made

Removes the apostrophe that escaped the launcher's nested single-quoted Bash program. Adds a regression test that extracts the complete generated launcher and checks it with bash -n, covering the actual artifact that failed in CI.

User Impact

Release operators can run the trusted Telegram validation lane again. No product runtime behavior changes.

Evidence

  • Before: trusted Telegram child 29151532569 failed at launch-runtime with unexpected EOF while looking for matching single quote.
  • After: focused Testbox 29151977746, 16/16 tests passed.
  • git diff --check
  • Autoreview: clean, no accepted/actionable findings.

AI-assisted: yes. The generated change and regression test were reviewed and understood.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 11, 2026
@steipete steipete self-assigned this Jul 11, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 252d54bf5b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +598 to +600
const result = spawnSync("bash", ["-n"], {
encoding: "utf8",
input: launcherSource,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Parse the inner launcher script in the syntax test

When the launcher has a quoting bug inside the inner /bin/bash -ceu program, this check only validates the outer launcher file and does not expand or parse the nested script argument that failed in the release lane. The immediately previous broken launcher with shell's pre-exec still exits 0 under this bash -n assertion, so the regression test would pass on the exact failure it is meant to guard; extract the nested runtime payload or execute through a stubbed launcher path and validate that script too.

Useful? React with 👍 / 👎.

@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. labels Jul 11, 2026
@clawsweeper

clawsweeper Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 11, 2026, 8:12 AM ET / 12:12 UTC.

Summary
The PR removes an apostrophe from a comment embedded in a single-quoted generated Bash launcher and adds a test intended to syntax-check that launcher.

PR surface: Tests +17, Config 0. Total +17 across 2 files.

Reproducibility: yes. The linked live release run shows the unmatched-quote failure at launch-runtime, and history identifies the apostrophe that introduced it.

Review metrics: 1 noteworthy metric.

  • Regression sensitivity: 0 of 1 broken artifacts rejected. The new syntax assertion returns success on current main, so it does not protect against recurrence of the reported failure.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🌊 off-meta tidepool
Patch quality: 🦐 gold shrimp
Result: ready for maintainer review.

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

Rank-up moves:

  • Replace the test with a nested-command assertion that demonstrably fails when the apostrophe is restored and passes on the repaired workflow.

Next step before merge

  • [P1] The protected maintainer-labeled PR should remain in normal maintainer review; its author can make the narrow test correction directly.

Security
Cleared: The diff introduces no permissions, secret access, dependency, downloaded-code, artifact-trust, or supply-chain changes.

Review findings

  • [P2] Make the regression test fail on the broken launcher — test/scripts/openclaw-release-telegram-qa-workflow.test.ts:596-600
Review details

Best possible solution:

Keep the production quote fix, but replace the ineffective outer-script syntax check with a regression that captures or exercises the actual program passed to nested /bin/bash -ceu and proves it fails before the repair and passes afterward.

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

Yes. The linked live release run shows the unmatched-quote failure at launch-runtime, and history identifies the apostrophe that introduced it.

Is this the best way to solve the issue?

No, not as currently tested. The production edit is the narrow root-cause repair, but the proposed regression test cannot distinguish the broken current-main artifact from the fixed artifact.

Full review comments:

  • [P2] Make the regression test fail on the broken launcher — test/scripts/openclaw-release-telegram-qa-workflow.test.ts:596-600
    This parses only the outer launcher file; it does not parse the single-quoted program later passed to /bin/bash -ceu. Running this exact extraction and bash -n against current main also succeeds despite the release-blocking apostrophe, so the test cannot catch this regression. Capture or exercise the nested command argument and assert that program parses.
    Confidence: 0.99

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 1285fd6db457.

Label changes

Label changes:

  • add P2: This is a bounded release-validation regression with no product runtime or end-user behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The PR is marked as maintainer-authored, so the external-contributor proof gate does not apply; the linked failed live run and Testbox/CI results remain supporting validation.

Label justifications:

  • P2: This is a bounded release-validation regression with no product runtime or end-user behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The PR is marked as maintainer-authored, so the external-contributor proof gate does not apply; the linked failed live run and Testbox/CI results remain supporting validation.
Evidence reviewed

PR surface:

Tests +17, Config 0. Total +17 across 2 files.

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

What I checked:

Likely related people:

  • steipete: The launcher hardening, proc-visibility follow-ups, current workflow lines, test history, and proposed repair all trace to this account; CODEOWNERS also routes the workflow surface here. (role: feature owner and recent area contributor; confidence: high; commits: c702719eda74, 93fcfa40ee67, 651aab87f3ee; files: .github/workflows/openclaw-release-telegram-qa.yml, test/scripts/openclaw-release-telegram-qa-workflow.test.ts)
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 a4ee15a into main Jul 11, 2026
122 of 128 checks passed
@steipete
steipete deleted the codex/release-telegram-launcher-quote branch July 11, 2026 12:13
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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