Skip to content

fix(release): isolate private Telegram QA harness - #120088

Merged
vincentkoc merged 1 commit into
mainfrom
fix/package-telegram-private-qa-harness
Aug 7, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/package-telegram-private-qa-harness

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a release-check failure where Telegram package acceptance loaded a private QA runtime that is intentionally absent from the npm candidate, causing the candidate test to stop before scenarios ran.

Why This Change Was Made

The trusted workflow checkout now builds and mounts its private QA runtime separately while the package candidate remains authoritative for the CLI, /app/dist, dependencies, and public plugin SDK. Only the two ephemeral container manifests receive the private qa-runtime export; the public npm package remains unchanged.

User Impact

No shipped product behavior changes. Maintainers can run Telegram acceptance against an immutable package candidate without publishing private QA files or coupling the harness to the candidate source SHA.

Evidence

  • node scripts/run-vitest.mjs test/scripts/npm-telegram-live.test.ts test/scripts/package-acceptance-workflow.test.ts (186 passed)
  • actionlint .github/workflows/package-acceptance.yml .github/workflows/npm-telegram-beta-e2e.yml
  • bash -n scripts/e2e/npm-telegram-live-docker.sh
  • node --check scripts/e2e/lib/npm-telegram-live/prepare-package.mjs
  • targeted oxfmt --check and git diff --check
  • Blacksmith Testbox tbx_01kzcssdx17k9tns7jv3bw385k: private qaRuntime build and both artifact assertions passed
  • fresh autoreview: clean, no accepted/actionable findings

AI-assisted: yes. The complete diff and validation results were reviewed before submission.

@vincentkoc vincentkoc self-assigned this Aug 7, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: S maintainer Maintainer-authored PR labels Aug 7, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 7, 2026 00:32
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 7, 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: 🐚 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 7, 2026
@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 9:40 PM ET / August 7, 2026, 01:40 UTC.

ClawSweeper review

What this changes

Builds the private Telegram QA runtime from the trusted harness checkout and exposes it only to Docker test manifests while retaining the installed npm package as the system under test.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for normal maintainer handling: current main still has the package-acceptance boundary failure, and this PR’s targeted harness-side repair appears correct. The member-authored, maintainer-labeled PR should merge only after refreshed exact-head release acceptance evidence.

Priority: P2
Reviewed head: 1c6bd66159993f8770d3d4117db184c83475dc67

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has a coherent owner-boundary repair and focused coverage; exact-head release acceptance remains the material confidence check.
Proof confidence 🌊 off-meta tidepool Not applicable: This is member-authored internal release automation; the PR body reports Testbox artifact assertions, while exact-head release acceptance remains the merge gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is member-authored internal release automation; the PR body reports Testbox artifact assertions, while exact-head release acceptance remains the merge gate.
Evidence reviewed 6 items Current-main failure mechanism: The QA gateway imports the private qa-runtime entry while the published package excludes that output, so an artifact-only package candidate cannot resolve the harness dependency.
Package boundary: The package manifest deliberately excludes qa-runtime from npm contents; the harness must not obtain it from the candidate package.
Owner-boundary repair: The PR builds the private runtime from the trusted checkout, mounts it read-only, and adds its export only to two ephemeral manifests while preserving the candidate distribution path.
Findings None None.
Security None None.

How this fits together

Package acceptance resolves an immutable npm candidate, then runs Telegram scenarios in Docker. Private QA runtime code is intentionally built from the trusted harness checkout while the installed package remains the tested CLI and distribution.

flowchart LR
  A[Package candidate] --> B[Package acceptance]
  C[Trusted harness ref] --> D[Private QA runtime build]
  B --> E[Telegram Docker runner]
  D --> E
  E --> F[Installed candidate CLI and distribution]
  E --> G[Telegram QA results]
Loading

Before merge

  • Resolve merge risk (P1) - The branch is behind current main and the supplied checks are incomplete; refresh the exact-head package-acceptance and Telegram Docker run before merge because this changes credentialed release automation.
  • Complete next step (P2) - No mechanical repair remains; the protected maintainer PR needs a refreshed exact-head release-acceptance review.
Agent review details

Security

None.

PR surface

Tests +56, Config +10, Other +15. Total +81 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 68 12 +56
Docs 0 0 0 0
Config 2 11 1 +10
Generated 0 0 0 0
Other 2 16 1 +15
Total 6 95 14 +81

Review metrics

Metric Value Why it matters
Production versus test delta production +25 net (27 added, 2 removed); tests +56 net (68 added, 12 removed) The production growth is scoped to the necessary trusted-harness boundary, with focused tests covering the two-manifest and candidate-isolation invariants.

Merge-risk options

Maintainer options:

  1. Refresh exact-head release acceptance (recommended)
    Run the combined package-acceptance and Telegram Docker path on the refreshed head to confirm the private build, mount, and immutable candidate boundary together.

Technical review

Best possible solution:

Rebase or refresh against current main, then demonstrate one exact-head run where the trusted private runtime is mounted while the npm candidate remains authoritative.

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

Yes, from source: current main imports a qa-runtime entry that the npm package deliberately omits, while the Docker path redirects execution to that installed candidate. The review did not execute the credentialed release scenario.

Is this the best way to solve the issue?

Yes. Building the private runtime from the trusted harness checkout and exposing it only through ephemeral Docker manifests preserves the package candidate as the system under test instead of publishing or overlaying private QA files.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded repair for release acceptance rather than a shipped runtime regression.
  • merge-risk: 🚨 automation: The PR changes package-acceptance and credentialed Telegram QA workflow behavior that ordinary unit checks do not fully exercise.
  • 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 is member-authored internal release automation; the PR body reports Testbox artifact assertions, while exact-head release acceptance remains the merge gate.

Evidence

What I checked:

Likely related people:

  • steipete: Recent main history attributes the existing package-candidate and Docker harness boundary to this release-harness work. (role: recent harness boundary author; confidence: high; commits: 08a3f5f94946, 154d1277e12e; files: .github/workflows/package-acceptance.yml, scripts/e2e/npm-telegram-live-docker.sh)
  • vincentkoc: Authored this repair and prior merged release-validation work in the same workflow area. (role: recent release-automation contributor; confidence: medium; commits: b45ca07ec947, cbe3731f7723; files: .github/workflows/npm-telegram-beta-e2e.yml, .github/workflows/package-acceptance.yml)

Rank-up moves

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

  • Refresh the branch and attach exact-head package-acceptance plus Telegram Docker evidence, redacting any private endpoints or credentials.

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 (1 earlier review cycle)
  • reviewed 2026-08-07T00:37:33.085Z sha 51376dd9b61be184c0576d7fd56c74690feab285 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as draft August 7, 2026 00:53
@vincentkoc
vincentkoc marked this pull request as ready for review August 7, 2026 00:54
@vincentkoc
vincentkoc force-pushed the fix/package-telegram-private-qa-harness branch from 51376dd to 1c6bd66 Compare August 7, 2026 01:14
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc

Copy link
Copy Markdown
Member Author

Rank-up move disposition:

@vincentkoc
vincentkoc merged commit 2013123 into main Aug 7, 2026
104 checks passed
@vincentkoc
vincentkoc deleted the fix/package-telegram-private-qa-harness branch August 7, 2026 02:03
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit to VACInc/openclaw that referenced this pull request Aug 7, 2026
* origin/main: (58 commits)
  fix(test): restart shared gateway after migration convergence (openclaw#120089)
  fix(ui): make active-run steering reliable (openclaw#120083)
  fix(telegram): preserve voice fallback text
  test(swift): preserve queued websocket frames (openclaw#120106)
  fix: reject missing oxlint shard selectors (openclaw#120096)
  test(channels): align prerelease fallback catalog spec (openclaw#120092)
  fix(node-cli): warn when systemd user lingering is disabled after install (openclaw#118430)
  fix(diagnostics): preserve CLI turn usage totals (openclaw#120100)
  fix(gateway): derive lock and coordinator paths from the resolved state dir (openclaw#120110)
  fix(release): isolate private Telegram QA harness (openclaw#120088)
  test(agents): exercise execution attribution ingress guard
  fix(gateway): defer attribution until admission succeeds
  refactor(agents): centralize exact execution attribution
  fix(google): accept base64url provider media (openclaw#116204)
  fix(plugins): warn when registerHook uses a typed hook event name (openclaw#118601)
  fix(canvas): serve Content-Length on A2UI HEAD responses (openclaw#117961)
  fix(gateway): make doctor dreaming timestamp comparators NaN-safe (openclaw#118749)
  fix(heartbeat): explain target-none skips (openclaw#119689)
  fix(security): stop recommending retired install-policy bypasses (openclaw#120011)
  fix(plugins): preserve startup release during repair (openclaw#120085)
  ...

# Conflicts:
#	CHANGELOG.md
#	src/config/sessions/session-accessor.sqlite-transcript-write.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling 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. scripts Repository scripts size: S 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