Repository navigation
fix(review): ignore workflow files in data-model detection - #1267
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 4:11 PM ET / 20:11 UTC. ClawSweeper reviewWhat this changesThe PR excludes Merge readinessKeep this PR open for maintainer review: the exact introduced change narrowly fixes a source-proven false positive, retains fail-closed handling for production renames and truncated data, and now has sufficient exact-head runtime proof. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherClawSweeper’s review classifier reads pull-request file paths and patches to decide whether stored-data migration evidence is required. Its output is written into review reports and affects review, repair, and automerge eligibility. flowchart LR
A[Pull-file paths and patches] --> B[Stored-data classifier]
B --> C[Candidate path boundary]
C --> D[Persistence-signal analysis]
D --> E[Review report]
E --> F[Review and repair eligibility]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the scoped workflow-path exclusion and its regression cases so workflow metadata cannot block unrelated OpenClaw PRs while incomplete or production persistence evidence remains fail-closed. Do we have a high-confidence way to reproduce the issue? Yes: current-main source routes workflow paths through generic persistence matching, and the supplied carrier patch contains Is this the best way to solve the issue? Yes: filtering only workflow definitions at candidate selection fixes the false positive without weakening production-source, documentation, rename, or truncation safeguards. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7f9e3f99e312. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Landed in 5442b1a. Thank you @masatohoshino for identifying the #119762 workflow false positive and helping establish the investigation that led to this conservative replacement. |
Summary
.github/workflows/**from OpenClaw stored-data-model candidate paths.openclaw/openclaw#119762workflow carrier as a regression fixture, plus workflow-only and workflow-to-production rename coverage.Problem
The full eight-file pull-files response for
openclaw/openclaw#119762included workflow metadata in.github/workflows/openclaw-live-and-e2e-checks-reusable.yml. The data-model classifier treated that CI-only YAML as vector/embedding metadata and imposed a stored-data migration-proof gate even though the changed file cannot define an OpenClaw persisted data model.Contributor PR #1081 identified this false-positive family. This replacement deliberately takes only the path-boundary fix; it does not adopt the broader lexical trade-offs from that PR.
Implementation
isDataModelCandidatePathnow excludes.github/workflows/**before semantic matching. The SQLite schema classifier remains on its existing production-source path logic. No OpenClaw workflow was modified.Rename sides are still considered independently: a rename from a workflow into
src/storage/session-state.tswith no patch remainsunknown-data-model-changeand therefore fail-closed.Real Behavior Proof
Claim: CI workflow vocabulary no longer produces an OpenClaw stored-data warning, while conservative detection still holds for production persistence, semantic documentation, workflow-to-production renames, missing production patches, and truncated pull-file lists.
Exercised surface: the built
dist/clawsweeper-change-detection.jsclassifier at head7070f5175eaf3adeba4d9fec4ebb97298d14703f.Scenario and result: after
pnpm run build:all, a controlled Node transcript fetched the live public GitHub pull-files response for #119762 (carrierFiles: 8) and producedcarrier: { change: false, surfaces: [] }. In the same execution, semantic docs and production persistence remainedchange: true; the workflow-to-production rename and missing production patch both remainedunknown-data-model-change; and the truncated file-list case remainedunknown-truncated-pull-files.Commands/environment: Docker Desktop Linux engine via Crabbox
provider=local-container, imagemcr.microsoft.com/playwright:v1.60.0-noble, exact head7070f5175eaf3adeba4d9fec4ebb97298d14703f;crabbox run --provider local-container --local-container-image mcr.microsoft.com/playwright:v1.60.0-noble --no-hydrate --timing-json --script C:/clawsweeper-work/notes/csw-142-aws-crabbox-proof.sh. The in-container script enabled Corepack in the unprivileged user's$HOME/.local/bin, ranpnpm install --frozen-lockfile,pnpm run build:all, the live built-classifier transcript, thennode --test test/pr-surface-policy.test.ts(41/41 pass). Local focused validation also ranpnpm run lint, focusedoxfmt --check, andgit diff --check.Artifact/trace: Docker-backed Crabbox run
run_b498cc9e3038, leasecbx_d237f8be92a9(golden-crab-8c3e), exited 0: install 5.101s, build 3.509s, live-carrier 433ms, focused tests 349ms; total command 10.269s. The lease was released automatically after success.test/fixtures/persistence-classifier-119762.jsonis the fixed carrier regression; the main proof is reproduced from the live public REST payload, not only that fixture. The local read-only committed-range ClawSweeper artifact wasartifacts/csw-142-local-range/0.md, reviewing base7f9e3f99e312dc14e17084e66f23c1590e559b9eand head7070f5175eaf3adeba4d9fec4ebb97298d14703f; it found no code or security finding.Redacted Docker-backed transcript:
Limits: The proof covers the data-model classifier boundary, not a change to any OpenClaw workflow. It fetched only the public GitHub pull-files payload for #119762 and installed the repository's locked dependencies inside the temporary container; it performed no credentialed GitHub mutation, workflow dispatch, or deployment. A separately requested AWS Crabbox attempt (
run_7cc45bfec884) is alternative-provider evidence only and is not claimed as satisfaction of this Docker local-container gate.Validation
pnpm run build:allnode --test test/pr-surface-policy.test.ts— 41 pass, 0 failpnpm run lintpnpm exec oxfmt --check src/clawsweeper-change-detection.ts test/pr-surface-policy.test.ts test/fixtures/persistence-classifier-119762.jsongit diff --check origin/main...HEADpnpm run review -- --local-range --target-repo openclaw/clawsweeper --base origin/main --artifact-dir artifacts/csw-142-local-range— complete, high confidence, no review commentsThe repository-wide
pnpm run checkstopped at the formatter reporting issues across hundreds of untouched repository files; focused formatting for all changed files is clean. This is baseline noise, not changed by this branch.Codex Review
codex review --uncommittedafter formatting — no accepted/actionable findings.codex review --base origin/main— no actionable defects; focused detector suite passes after build..github/actions/setup-codex/action.ymlwas rejected after direct built-classifier reproduction: that.ymlis not a production candidate and returns{ change: false, surfaces: [] }already.Risks and Rollout
The exclusion is intentionally limited to
.github/workflows/**in the data-model classifier. It does not exempt workflows from configuration, security, or workflow review, and it does not relax any production persistence or incomplete-payload fail-closed guard.No merge or automerge is requested by this PR.
Links
openclaw/openclaw#119762.