Skip to content

improve(ci): run temp path guard in hosted checks - #129000

Merged
vincentkoc merged 1 commit into
mainfrom
improve/ci-temp-guard-parity
Aug 25, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
improve/ci-temp-guard-parity

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a problem where the required hosted guard shard omitted check:temp-path-guardrails, allowing weak temporary-path identifiers to reach late release validation even though the local aggregate check and release pretag check already reject them.

Why This Change Was Made

Runs the existing guard in the hosted guards shard before duplicate scanning. Current targets fail closed when the package script is missing, while frozen release targets retain an explicit compatibility skip.

User Impact

Maintainers receive the same temporary-path safety signal in ordinary hosted CI instead of discovering it during release qualification.

Evidence

  • parent fix landed through fix(gateway): use secure telemetry jitter #128998
  • rebased onto exact main 7c71d417fba20b95d42252f265cea24c25635af2
  • exact PR head 4ea459578f20103c5d7e3fa7a3fd9589ea943f7f
  • pnpm check:temp-path-guardrails
  • node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts -t "runs temp path guardrails in the hosted guard shard": 1 passed, 130 skipped
  • pnpm format:check -- .github/workflows/ci.yml test/scripts/ci-workflow-guards.test.ts
  • git diff --check origin/main...HEAD

The AWS Crabbox pnpm check:workflows pre-commit fallback hung twice inside actionlint without producing a lint diagnostic. The bounded retry reached its 10-minute limit with one actionlint worker blocked at 0% CPU; its log SHA-256 is 8e37ed8c635dfe4981ddffbaa77a8f4261b03216979681a79b990c9394a0067b. Exact-head hosted Workflow Sanity / actionlint is therefore the authoritative workflow-lint proof for this head.

Exact-head hosted proof

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc vincentkoc self-assigned this Aug 25, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 25, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 25, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Aug 25, 2026
@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 2:43 AM ET / 06:43 UTC.

ClawSweeper review

What this changes

Adds the existing temporary-path safety guard to the hosted CI guards shard, with fixture coverage for current, frozen, and missing-script targets.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

No blocking code defect found. This maintainer-owned, protected PR should remain open until the exact-head hosted check-guards and actionlint results finish successfully.

Priority: P3
Reviewed head: 4ea459578f20103c5d7e3fa7a3fd9589ea943f7f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and well-covered; its readiness depends on the still-pending exact-head workflow checks.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored CI-only patch has focused terminal validation in its body; exact-head hosted checks remain the relevant 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 maintainer-authored CI-only patch has focused terminal validation in its body; exact-head hosted checks remain the relevant merge gate.
Evidence reviewed 6 items Hosted entry point: The check-shard matrix maps check-guards to the guards task, which owns this command sequence.
Owner-boundary implementation: The guards task invokes the existing package script when present, skips only frozen targets, and fails current targets that lack the script.
Existing command contract: The repository package script delegates the guard to scripts/check-temp-path-guardrails.ts; the local aggregate check also includes this guard.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts -t "runs temp path guardrails in the hosted guard shard"

Result: PASS (completed)

node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts -t "runs temp path guardrails in the hosted guard shard"
runner@runnervm76f27:/tmp/clawsweeper-live-proof-129000-Dnon82/target$ node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts -t "runs temp path gu
ardrails in the hosted guard shard"
node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts -t "runs temp path guardrails in the hosted guard shard"
[test] starting test/vitest/vitest.tooling.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-129000-Dnon82/target

 ✓  tooling  test/scripts/ci-workflow-guards.test.ts (131 tests | 130 skipped) 490ms
     ✓ runs temp path guardrails in the hosted guard shard  488ms

 Test Files  1 passed (1)
      Tests  1 passed | 130 skipped (131)
   Start at  06:44:00
   Duration  1.23s (transform 463ms, setup 61ms, import 323ms, tests 490ms, environment 0ms)

[test] passed 1 Vitest shard in 6.89s
runner@runnervm76f27:/tmp/clawsweeper-live-proof-129000-Dnon82/target$ node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts -t "runs temp path gu
ardrails in the hosted guard shard"
































Assertions:

  • PASS expect_output: 1 passed

How this fits together

GitHub Actions partitions repository validation into check shards. The guards shard reads package scripts and runs safety checks early, before later release qualification would otherwise discover the same violation.

flowchart LR
A[Pull request checkout] --> B[Hosted CI guards shard]
B --> C[Package-script lookup]
C --> D[Run temporary-path guard]
C --> E[Frozen target compatibility skip]
D --> F[Early CI safety signal]
E --> F
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head hosted actionlint and check-guards results were still in progress in the supplied rollup, so workflow acceptance is not yet proven.
  • Resolve merge risk (P1) - The workflow production delta is +8 lines; it is proportionate only because each guard needs its own explicit frozen-target compatibility contract at the owning CI boundary.
  • Complete next step (P2) - This maintainer-owned, protected PR needs normal exact-head CI confirmation and maintainer handling, not an automated repair.
Agent review details

Security

None.

PR surface

Tests +90, Config +8. Total +98 across 2 files.

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

Review metrics

Metric Value Why it matters
Production versus test LOC workflow production +8, test support +90 The production conditional is small and its fixture covers the three package-script compatibility outcomes.

Stored data model

Persistent data-model change detected: migration/backfill/repair: test/scripts/ci-workflow-guards.test.ts, serialized state: test/scripts/ci-workflow-guards.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete exact-head workflow verification (recommended)
    Wait for this head’s check-guards and actionlint results to pass before merge because the patch changes required CI execution.

Technical review

Best possible solution:

Keep one canonical hosted invocation of the existing guard, retaining the explicit frozen-target exception and current-target fail-closed behavior once exact-head checks pass.

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

Yes, from source: the focused fixture executes the actual guards-shell body for present, frozen-missing, and current-missing package-script states; it was not rerun in this read-only review.

Is this the best way to solve the issue?

Yes. Reusing the existing guard in its owning hosted guards shard avoids a duplicate implementation and mirrors the adjacent explicit frozen-target compatibility pattern.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a contained CI safety-check parity repair with no direct runtime-user impact.
  • merge-risk: 🚨 automation: The PR changes a required hosted CI shard’s command selection and fail-closed behavior.
  • 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 maintainer-authored CI-only patch has focused terminal validation in its body; exact-head hosted checks remain the relevant merge gate.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Current blame attributes the changed guard route and its fixture to this contributor, and commit e27433c shows recent work on the same CI workflow and test surface. (role: recent CI workflow contributor; confidence: high; commits: 4ea459578f20, e27433c22ed7; files: .github/workflows/ci.yml, test/scripts/ci-workflow-guards.test.ts)

Rank-up moves

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

  • Confirm successful exact-head check-guards and actionlint results.

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 (3 earlier review cycles)
  • reviewed 2026-08-25T04:12:15.672Z sha 0f3bfc7 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T04:55:09.568Z sha 0f3bfc7 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T06:13:51.601Z sha 0f3bfc7 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 25, 2026
Base automatically changed from fix/native-telemetry-jitter to main August 25, 2026 06:07
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Aug 25, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 25, 2026
@vincentkoc
vincentkoc force-pushed the improve/ci-temp-guard-parity branch from 0f3bfc7 to 4ea4595 Compare August 25, 2026 06:39
@openclaw-barnacle openclaw-barnacle Bot removed the gateway Gateway runtime label Aug 25, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 25, 2026 06:39
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head: 4ea459578f20103c5d7e3fa7a3fd9589ea943f7f

The parent has landed, this branch is rebased to current main, and the PR body now records focused proof plus the AWS Crabbox actionlint process hang. Please evaluate the exact hosted actionlint result for this head.

@clawsweeper

clawsweeper Bot commented Aug 25, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc merged commit 7ba58ab into main Aug 25, 2026
228 of 229 checks passed
@vincentkoc
vincentkoc deleted the improve/ci-temp-guard-parity branch August 25, 2026 07:51
@vincentkoc

Copy link
Copy Markdown
Member 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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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