Skip to content

fix(ci): repair crabbox hydrate replay - #85706

Merged
vincentkoc merged 1 commit into
mainfrom
fix-crabbox-hydrate-local-action
May 23, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-crabbox-hydrate-local-action

Conversation

@vincentkoc

@vincentkoc vincentkoc commented May 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • split Crabbox hydration into a default local-Actions-compatible hydrate job and an explicit hydrate-github job for GitHub-runner secret hydration
  • inline Node/Corepack/pnpm setup for local replay and persist Corepack cache env into the Crabbox run marker
  • add workflow regression coverage and a changelog entry

Verification

  • git diff --check
  • AWS Crabbox normal hydration, no --no-hydrate: run_544138b399b1, lease cbx_1ecbf2a46756, provider AWS c7a.8xlarge
    • pnpm test:serial test/scripts/package-acceptance-workflow.test.ts test/scripts/docker-e2e-plan.test.ts src/agents/model-auth.test.ts src/agents/model-provider-auth.test.ts
  • AWS Crabbox changed gate: run_d0b92c80e486, lease cbx_b8843d2e0284, provider AWS c7a.8xlarge
    • reconstructed a minimal remote Git object graph because Crabbox sync intentionally does not copy local .git
    • pnpm check:changed passed; the reconstructed sparse tree over-classified the diff, so this ran broader lanes than the patch requires
  • Autoreview: AUTOREVIEW_AUTO_TESTS=0 AUTOREVIEW_OPENCLAW_MAINTAINER_VALIDATION=1 .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main -> clean, no accepted/actionable findings

Real behavior proof

Behavior addressed: AWS Crabbox default hydration no longer fails before command execution on repo-local composite action replay, while GitHub-runner hydration still has a provider-secret path.

Real environment tested: AWS Crabbox Linux c7a.8xlarge, lease cbx_1ecbf2a46756, run run_544138b399b1, using the default configured hydration workflow without --no-hydrate.

Exact steps or command run after this patch: pnpm test:serial test/scripts/package-acceptance-workflow.test.ts test/scripts/docker-e2e-plan.test.ts src/agents/model-auth.test.ts src/agents/model-provider-auth.test.ts through node scripts/crabbox-wrapper.mjs run --idle-timeout 90m --ttl 240m --timing-json --shell -- ....

Evidence after fix: Crabbox printed using local Actions workspace ..., then the focused workflow/auth tests passed: tooling shard 2 files / 52 tests, agents shard 2 files / 63 tests, exit 0.

Observed result after fix: local Actions hydration reached the command phase and executed the requested pnpm tests successfully; the prior failures on ./.github/actions/setup-node-env, check-latest, 24.x, secrets.*, and Corepack cache path did not recur.

What was not tested: full --github-runner --job hydrate-github secret hydration was not run because the local Blacksmith/Testbox CLI remains unauthenticated in this session; the workflow path is covered structurally by tests and autoreview.

@vincentkoc vincentkoc self-assigned this May 23, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels May 23, 2026
@clawsweeper

clawsweeper Bot commented May 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

Latest ClawSweeper review: 2026-05-23 11:33 UTC / May 23, 2026, 7:33 AM ET.

Workflow note: Future ClawSweeper reviews update this same comment in place.

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.

Summary
Splits Crabbox hydration into a default local-replay hydrate job and an explicit secret-backed hydrate-github job, updates .crabbox.yaml guidance, adds workflow regression coverage, and records a changelog entry.

Reproducibility: no. high-confidence live current-main repro was run in this read-only review. Source inspection shows current origin/main default hydration invokes a repo-local composite action and secret env, while the PR body provides AWS Crabbox before/after-style proof for the local replay failure class.

PR rating
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster
Patch quality: 🐚 platinum hermit
Summary: The patch is focused and has strong default-lane proof, with merge confidence mainly limited by the unrun secret-backed hydration lane.

Rank-up moves:

  • Record a hydrate-github smoke or explicit maintainer acceptance of structural-only coverage for that path.
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.

Real behavior proof
Sufficient (live_output): The PR body includes AWS Crabbox run IDs, the exact post-patch command, observed successful command-phase execution, and the remaining untested secret-backed lane.

Risk before merge

  • The secret-backed hydrate-github path is structurally covered but was not exercised in a full GitHub-runner secret hydration run.
  • The default hydrate job intentionally stops passing provider secrets, so any existing operator flow that expected secrets through the default job must switch to --job hydrate-github.

Maintainer options:

  1. Smoke the secret-backed lane
    Run crabbox actions hydrate --github-runner --job hydrate-github or an equivalent secret-backed workflow smoke and record the run ID before merge.
  2. Accept structural coverage
    Maintainers can land with the AWS local-replay proof and structural tests if they explicitly accept the unrun hydrate-github path for this repair.
  3. Keep draft for CI owner review
    Leave the PR open until a CI owner confirms the default non-secret hydration behavior is the intended operator contract.

Next step before merge
This maintainer-labeled draft CI workflow PR should stay in maintainer review for the secret-backed hydration proof or explicit risk acceptance, not an automated repair lane.

Security
Cleared: The diff touches secret hydration wiring but reduces default secret exposure and preserves the existing secret-backed path; I found no concrete new security or supply-chain regression.

Review details

Best possible solution:

Land after the CI owner accepts the local-replay versus secret-hydration split, preferably with either a recorded hydrate-github smoke or an explicit note that structural coverage is enough for that lane.

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

No high-confidence live current-main repro was run in this read-only review. Source inspection shows current origin/main default hydration invokes a repo-local composite action and secret env, while the PR body provides AWS Crabbox before/after-style proof for the local replay failure class.

Is this the best way to solve the issue?

Likely yes for the default local replay failure: inlining only the local-compatible setup while preserving a separate secret-backed job is a narrow workflow fix. The remaining judgment is whether structural coverage is enough for the explicit hydrate-github path.

Label changes:

  • add P2: This is a focused CI automation repair with limited user-facing blast radius but meaningful maintainer workflow impact.
  • add merge-risk: 🚨 compatibility: The default Crabbox hydration job no longer carries provider secrets, so existing secret-dependent default-hydrate workflows may need to select hydrate-github.
  • add merge-risk: 🚨 automation: The diff changes GitHub Actions hydration and Crabbox replay behavior, where green unit checks do not fully prove the remote automation path.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes AWS Crabbox run IDs, the exact post-patch command, observed successful command-phase execution, and the remaining untested secret-backed lane.
  • add rating: 🐚 platinum hermit: Current PR rating is 🐚 platinum hermit because proof is 🦞 diamond lobster, patch quality is 🐚 platinum hermit, and The patch is focused and has strong default-lane proof, with merge confidence mainly limited by the unrun secret-backed hydration lane.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body includes AWS Crabbox run IDs, the exact post-patch command, observed successful command-phase execution, and the remaining untested secret-backed lane.

Label justifications:

  • P2: This is a focused CI automation repair with limited user-facing blast radius but meaningful maintainer workflow impact.
  • merge-risk: 🚨 compatibility: The default Crabbox hydration job no longer carries provider secrets, so existing secret-dependent default-hydrate workflows may need to select hydrate-github.
  • merge-risk: 🚨 automation: The diff changes GitHub Actions hydration and Crabbox replay behavior, where green unit checks do not fully prove the remote automation path.
  • rating: 🐚 platinum hermit: Current PR rating is 🐚 platinum hermit because proof is 🦞 diamond lobster, patch quality is 🐚 platinum hermit, and The patch is focused and has strong default-lane proof, with merge confidence mainly limited by the unrun secret-backed hydration lane.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body includes AWS Crabbox run IDs, the exact post-patch command, observed successful command-phase execution, and the remaining untested secret-backed lane.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes AWS Crabbox run IDs, the exact post-patch command, observed successful command-phase execution, and the remaining untested secret-backed lane.

What I checked:

  • PR metadata: GitHub API shows the PR is open, draft, labeled maintainer, and authored from head SHA 8cdb173b7f511c817f4a2dc2988d1d9c3be84029. (8cdb173b7f51)
  • Current main behavior: Current origin/main still has a single hydrate job that invokes the repo-local .github/actions/setup-node-env composite and passes provider secrets into the provider hydration helper. (.github/workflows/crabbox-hydrate.yml:51, 353dfeb108d7)
  • Proposed workflow split: The PR head makes default hydrate skip only hydrate-github, inlines Node/Corepack/pnpm setup, runs the provider helper without secret env, and adds an explicit hydrate-github job for the old secret-backed path. (.github/workflows/crabbox-hydrate.yml:44, 8cdb173b7f51)
  • Secret-backed lane preserved: The new hydrate-github job keeps the repo-local setup action and provider secret env, with its marker defaulting the job name to hydrate-github. (.github/workflows/crabbox-hydrate.yml:267, 8cdb173b7f51)
  • Regression coverage: The new package acceptance test asserts the default Crabbox job remains hydrate, that local replay has inline setup and no secret env, and that hydrate-github retains FACTORY_API_KEY secret wiring. (test/scripts/package-acceptance-workflow.test.ts:109, 8cdb173b7f51)
  • Validation state: The PR body records AWS Crabbox run IDs for default hydration and changed-gate proof, and the head check-runs include successful Real behavior proof, actionlint, and no-tabs checks. (8cdb173b7f51)

Likely related people:

  • vincentkoc: Authored recent merged CI changes touching Crabbox hydration, .crabbox.yaml, and the package acceptance workflow, and this PR continues that exact surface. (role: recent area contributor; confidence: high; commits: 0e6f314dbb1f, cc6c3728c7f6, 1e21121021e8; files: .crabbox.yaml, .github/workflows/crabbox-hydrate.yml, test/scripts/package-acceptance-workflow.test.ts)
  • steipete: Recent path history for .github/workflows/crabbox-hydrate.yml includes several Crabbox pnpm-store and shell setup commits by this contributor. (role: recent Crabbox workflow contributor; confidence: medium; commits: 0241a6e7aecc, 755263499672; files: .github/workflows/crabbox-hydrate.yml)
  • RomneyDa: Recent package acceptance workflow history includes a merged release-validation workflow test alignment touching the same test harness area. (role: adjacent workflow test contributor; confidence: low; commits: 423f525438b1; files: test/scripts/package-acceptance-workflow.test.ts)

Codex review notes: model gpt-5.5, reasoning high; reviewed against 353dfeb108d7.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. labels May 23, 2026
@clawsweeper

clawsweeper Bot commented May 23, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

✨ Hatched: 🥚 common Moonlit Patch Peep

Hatch command

Comment @clawsweeper hatch when this PR is hatchable.

Hatchability rules:

  • Merged PRs are hatchable.
  • Open PRs are hatchable when they are status: 👀 ready for maintainer look, status: 🚀 automerge armed, or labeled clawsweeper:automerge.
  • Closed unmerged PRs are hatchable only when one of those hatchable labels is still present in the durable record.

Rarity: 🥚 common.
Trait: sniffs out flaky tests.
Image traits: location green-check meadow; accessory lint brush; palette rose quartz and slate; mood proud; pose leaning over a miniature review desk; shell frosted glass shell; lighting warm desk-lamp glow; background smooth stones and checkmarks.
Share on X: post this hatch
Copy: My PR egg hatched a 🥚 common Moonlit Patch Peep in ClawSweeper.

What is this egg doing here?
  • Eggs appear after the PR passes real-behavior proof. It is here for vibes, not verdicts: it does not change labels, ratings, merge decisions, or automation.
  • The shell reacts to review momentum: open follow-up work warms it up, re-review makes it wobble, and a clean final review lets it hatch.
  • Hatchability usually comes from sufficient real-behavior proof, no blocking P0/P1/P2 findings, no security attention needed, and clean correctness. A merged PR is already final, so merge makes the egg hatchable independently.
  • The hatch is seeded from this repository and PR number, so the same PR keeps the same creature; the reviewed head SHA can only change safe visual details.
  • Rarity is just collectible sparkle: 🥚 common, 🌱 uncommon, 💎 rare, ✨ glimmer, and 🌈 legendary.

@vincentkoc
vincentkoc force-pushed the fix-crabbox-hydrate-local-action branch from 8cdb173 to a07c3cb Compare May 23, 2026 11:44
@vincentkoc
vincentkoc marked this pull request as ready for review May 23, 2026 11:45
@vincentkoc
vincentkoc force-pushed the fix-crabbox-hydrate-local-action branch from a07c3cb to f094a0e Compare May 23, 2026 11:55
@vincentkoc
vincentkoc merged commit 0d7d99b into main May 23, 2026
83 checks passed
@vincentkoc
vincentkoc deleted the fix-crabbox-hydrate-local-action branch May 23, 2026 12:02
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
galiniliev pushed a commit to galiniliev/openclaw that referenced this pull request May 25, 2026
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR proof: sufficient ClawSweeper judged the real behavior proof convincing. 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