Skip to content

fix(tooling): handle Windows paths in repository checks - #190069

Merged
roboclaw-bot merged 2 commits into
mainfrom
loop/contributor-pr-168956
Nov 1, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
loop/contributor-pr-168956

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Supersedes #168956, thanks @harshitgupta31415.

Related: #168935, #168945.

What Problem This Solves

Fixes false SQLite growth reports, rejected allowed changelog credits, and missed frozen contribution records when repository checks receive Windows paths.

User Impact

Windows contributors get the existing SQLite and attribution policies applied consistently. No runtime changes, migrations, or user actions are required.

Why This Change Was Made

Reuse normalizeChangedPath at filesystem discovery boundaries before existing slash-based classifiers. The replacement is independently implemented against current main; the contributor head was only read with gh pr view/gh pr diff and was never checked out or executed.

Production delta: +7/−8, net −1. Removed the unused strictBotHandle option and its redundant CLI argument; bot-credit behavior remains covered. Test delta: +74, with a dedicated test-line allocation for the three distinct Windows boundary regressions. No new path helper or policy owner.

Evidence

  • Candidate head: 68a1206ed589 (reviewed final local snapshot; both commits preserve the original human co-author).

  • Base: a460b0c1ead257e25296b586b3ad6d46bf47ab81, verified as current main before implementation.

  • Red on the unchanged base: three path.win32 regressions reproduce noncanonical SQLite inventory keys and missed exclusions, rejected allowed mirror credit, and skipped nested frozen records.

  • Green after: node scripts/run-vitest.mjs test/scripts/check-database-worker-ratchet.test.ts test/scripts/check-changelog-attributions.test.ts --maxWorkers=1 — 32 passed; 2.48 seconds Vitest duration, 3.40 seconds wrapper wall time. Existing real-growth and staged-snapshot controls remain green.

  • Frozen PR-tooling closure checks: 2 passed, 33 skipped; 8.81 seconds Vitest duration, 9.92 seconds wrapper wall time.

  • Focused typecheck covering both suites and their imported implementation, scripts/test lint, changed-file formatting, and git diff --check passed.

  • Local Codex autoreview of the final candidate against the pinned base, including unchanged helper/release-owner context: scoped-clean, no actionable P0–P2 findings. The reviewer did not independently execute tests.

  • The first CI head exposed a frozen PR-tooling import-closure failure from the initially selected helper. Reused the existing lightweight normalizer already in that capsule instead of expanding its dependencies.

  • pr-simplify: retained only boundary normalization, dead-option removal, and regressions; no added architecture.

  • Linux host proof simulates Windows filesystem/discovery separators with path.win32; native Windows execution was not performed here. Native Windows execution remains unverified here.

  • Current-head PR CI passed: all 60 planned jobs completed, no failures; 543 seconds overall run time. The required openclaw/ci-gate is green.

Normalize filesystem discovery with the shared repository-path helper before
SQLite exclusions/classification and changelog artifact/mirror checks.
Remove the unused strictBotHandle option without changing credit policy.

Co-authored-by: harshitgupta31415 <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 1, 2026 04:00
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Nov 1, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper review

Credited replacement for #168956. Focused tests and local autoreview are complete; please review the current implementation and Windows boundary regressions.

@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR normalizes discovered Windows paths before SQLite inventory and changelog attribution checks.

Example: The Windows changelog checker discovers CHANGELOG\records\2026.9.4.md containing Thanks @steipete.

  • Before: The nested frozen record is skipped by the slash-based artifact predicate.
  • After: The checker recognizes the record and rejects the forbidden credit with a canonical file path.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported repair with useful regressions and no findings; current-head Windows evidence remains simulated.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; current-head evidence exercises the real checker owners with simulated Windows discovery, while the credited predecessor's native Windows evidence applies to its older head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Windows contributors receive false repository-check failures, while forbidden credits in nested frozen records can escape validation.
Reason: The maintainer-authored direction restores existing cross-platform behavior with a focused repair.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR repairs concrete Windows checker defects still present on current main, with no actionable code findings.

Priority: P2
Reviewed head: 68a1206ed5894fdc0d0dc565650a4396d5d47d4a

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Native Windows execution of both checker commands at the replacement head remains unshown; the reported red-base and green-head regressions simulate Windows separators.
Agent review details

How this fits together

Repository checks discover filesystem and Git paths, classify source files or release artifacts, and report SQLite growth or forbidden changelog credits.

flowchart TD
  A[Filesystem discovery] --> B[Shared path normalization]
  C[Git snapshot paths] --> B
  B --> D[SQLite inventory classifiers]
  B --> E[Changelog artifact predicates]
  D --> F[Repository check results]
  E --> F
Loading

Technical review

Best possible solution:

Normalize discovery paths through the existing shared helper while retaining the current classifiers and attribution policies.

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

Current-main source establishes the separator mismatches, and the linked reports provide native Windows failures; this review executed no target code.

Is this the best way to solve the issue?

Boundary normalization fixes the cause using an existing owner, without changing classification allowances, attribution rules, or adding machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8b47948c8d3c.

Provenance checked

  • SQLite discovery and growth comparison keeps the original intent (3e0672a: Compare working-tree and Git inventories to reject total main-thread SQLite growth without a checked-in baseline.)
  • Split changelog discovery and mirror exemption keeps the original intent (2227743: Validate split release artifacts while preserving approved human credits in mirrors and stricter frozen contribution records.)
  • Removal of unused strictBotHandle option keeps the original intent (567d7d3: Consolidate attribution classification while preserving its behavior; the option became unused in that consolidation.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 3e0672a adds scripts/database-worker-inventory.mjs:242 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3e0672a03521; files: scripts/database-worker-inventory.mjs)
  • Hannes Rudolph: Raw commit 2227743 adds scripts/check-changelog-attributions.mts:59 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2227743f7474; files: scripts/check-changelog-attributions.mts)
  • Dallin Romney: Raw commit 6676ef1 adds scripts/check-changelog-attributions.mts:69 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6676ef1fc9fe; files: scripts/check-changelog-attributions.mts)

PR surface

Tests +74, Other +1. Total +75 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 79 5 +74
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 9 8 +1
Total 5 88 13 +75

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +7/-8; tests +79/-5 Production shrinks while the added tests cover distinct SQLite discovery, allowed-mirror, and forbidden-frozen-record failures.

Root-cause cluster

Relationship: canonical
Canonical: #190069
Summary: This credited replacement addresses the two reports through canonicalization of Windows discovery paths.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Incorrect Windows contributor checks have bounded tooling impact without affecting the core runtime.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Optionally exercise both checker commands on native Windows at this head, confirming unchanged inventory equality and allowed-mirror versus forbidden-record behavior.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-01T04:05:05.050Z sha 9eff454 :: needs maintainer review before merge. :: none

Reviewed November 1, 2026, 12:10 AM ET / 04:10 UTC (Revision 2).

Keep the frozen PR-tooling import closure intact while normalizing native
Windows discovery paths, without importing parser dependencies.

Co-authored-by: harshitgupta31415 <[email protected]>
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@roboclaw-bot
roboclaw-bot merged commit c9569e4 into main Nov 1, 2026
123 of 124 checks passed
@roboclaw-bot
roboclaw-bot deleted the loop/contributor-pr-168956 branch November 1, 2026 04:16
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
)

* fix(tooling): handle Windows paths in repository checks

Normalize filesystem discovery with the shared repository-path helper before
SQLite exclusions/classification and changelog artifact/mirror checks.
Remove the unused strictBotHandle option without changing credit policy.

Co-authored-by: harshitgupta31415 <[email protected]>

* fix(tooling): reuse the lightweight shared path normalizer

Keep the frozen PR-tooling import closure intact while normalizing native
Windows discovery paths, without importing parser dependencies.

Co-authored-by: harshitgupta31415 <[email protected]>

---------

Co-authored-by: harshitgupta31415 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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