Skip to content

test(checks): pin changed-format lane coverage for added files - #104771

Merged
steipete merged 1 commit into
mainfrom
claude/chanref-fix-changed-format-gap
Jul 11, 2026
Merged

steipete merged 1 commit into
mainfrom
claude/chanref-fix-changed-format-gap

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #104318

What Problem This Solves

Three program PRs passed remote pnpm check:changed and then failed CI's full-repo format shard on newly added files. Root cause (confirmed): the changed-check plan emitted no oxfmt command at all — no lane owned formatting. #104605 added the format changed files lane yesterday, but nothing pins the behavior, which is how the gap existed silently in the first place.

Why This Change Was Made

Adds the missing regression net (test-only): plan coverage for staged added/modified/deleted paths, plus runtime-verdict tests that execute the exact planned argv with the repo-pinned oxfmt — a misformatted added file fails the lane, a formatted one passes, and deleted paths don't false-positive (the deleted-lines scanner class). The upstream lane fix was verified sound en route (ignore-pattern handling on explicit args, -- handling, missing-path tolerance).

User Impact

Maintainer-facing: the pre-push gate now provably matches CI's format verdict for added files, and can't silently lose its format lane again.

Evidence

  • Before/after on Testbox: pre-fix(tooling): reject misformatted added files in changed checks #104605 plan emitted zero format commands for the exact incident path; current remote-child check:changed fails on a temp-committed misformatted file (tbx_01kx9n4f5k8tcgwnm1685g0qm0) and passes after formatting (tbx_01kx9nfdx7eq83kanhr6605v9v).
  • Final tree: pnpm test test/scripts green (changed-lanes 97/97) + check:changed all lanes (tbx_01kx9pe0gs1hrb0cryfdeqhstt); repo-wide format green up front.
  • Autoreview (codex gpt-5.6-sol, xhigh): clean (0.96).
  • Found en route (separate chip): lint:docker-e2e fails on pristine main — scripts/e2e/sqlite-sessions-transcripts-flip-proof.ts imports ../../src/* (refactor: flip sessions and transcripts to sqlite storage #98236 fallout).

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Jul 11, 2026
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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, 7:17 PM ET / 23:17 UTC.

Summary
Adds staged added/modified/deleted path assertions and pinned-oxfmt runtime-verdict tests to the changed-check test suite.

PR surface: Tests +94. Total +94 across 1 file.

Reproducibility: not applicable. This PR adds regression coverage for an already-merged tooling fix rather than reporting a new current-main product bug. The PR body nevertheless provides a concrete historical before/after Testbox path for the original formatting gap.

Review metrics: 1 noteworthy metric.

  • Runtime verdict scenarios: 3 failure/tolerance cases added. The tests directly pin misformatted added and modified files as failures and missing deleted paths as non-failures, covering the previously silent gap.

Stored data model
Persistent data-model change detected: serialized state: test/scripts/changed-lanes.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster
Patch quality: 🐚 platinum hermit
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:

  • none.

Risk before merge

  • [P1] The PR is behind current main and the shared test file has moved, so the exact merged result should receive the normal merge-ref/check refresh; no production contract drift or concrete three-way-merge regression was found.

Maintainer options:

  1. Decide the mitigation before merge
    Land the focused regression tests after the normal current-head merge/check refresh, preserving coverage for staged path planning and actual added/deleted-file formatter verdicts.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P1] No repair job is needed; the patch has no actionable defect and only needs ordinary maintainer landing checks on the current merge result.

Security
Cleared: The test-only patch introduces no concrete security or supply-chain concern and does not change dependencies, workflows, permissions, secrets, publishing, or production execution paths.

Review details

Best possible solution:

Land the focused regression tests after the normal current-head merge/check refresh, preserving coverage for staged path planning and actual added/deleted-file formatter verdicts.

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

Not applicable: this PR adds regression coverage for an already-merged tooling fix rather than reporting a new current-main product bug. The PR body nevertheless provides a concrete historical before/after Testbox path for the original formatting gap.

Is this the best way to solve the issue?

Yes. Testing both staged-path planning and the actual repository-pinned formatter verdict at the centralized changed-check seam is the narrowest maintainable regression fix and avoids a duplicate verification path.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add P3: This is low-risk maintainer tooling regression coverage with no runtime product behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-labeled PR is exempt from the external-contributor proof gate; it also includes concrete before/after Testbox live output and focused green validation.

Label justifications:

  • P3: This is low-risk maintainer tooling regression coverage with no runtime product behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-labeled PR is exempt from the external-contributor proof gate; it also includes concrete before/after Testbox live output and focused green validation.
Evidence reviewed

PR surface:

Tests +94. Total +94 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 95 1 +94
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 95 1 +94

What I checked:

Likely related people:

  • steipete: Authored the production changed-format lane in commit 986304e and appears throughout the recent changed-check test and module history. (role: introduced behavior and recent area contributor; confidence: high; commits: 986304e540d6, 324e8fff81c6; files: scripts/check-changed.mjs, scripts/changed-lanes.mjs, test/scripts/changed-lanes.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 2776bda into main Jul 11, 2026
78 of 84 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the claude/chanref-fix-changed-format-gap branch July 11, 2026 23:29
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR 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