Skip to content

fix(dashboard): normalize dashboard strict paths to POSIX slashes - #2177

Merged
obviyus merged 1 commit into
openclaw:mainfrom
saiyam-jain-dev:fix/check-dashboard-strict-posix-paths
Nov 11, 2026
Merged

obviyus merged 1 commit into
openclaw:mainfrom
saiyam-jain-dev:fix/check-dashboard-strict-posix-paths

Conversation

@saiyam-jain-dev

@saiyam-jain-dev saiyam-jain-dev commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: on Windows hosts, normalizeFile() in scripts/check-dashboard-strict.mjs returns paths with Windows backslashes (\) from path.normalize(), causing baseline set comparisons in test/check-dashboard-strict.test.ts to fail against POSIX baseline entries.

User Impact

Dashboard strict baseline validation and test assertions evaluate consistent POSIX paths on Windows and Unix systems alike.

Why This Change Was Made

normalizeFile() normalizes path separators using .replaceAll("\\", "/"). This prevents platform path separators from mismatched comparison against DASHBOARD_STRICT_BASELINE_FILES.

Documentation Impact

No documentation changes needed. The strict dashboard migration contract and baseline list remain unchanged. Added changelog fragment changelog.d/check-dashboard-strict-posix-paths.md.

Evidence

  • node --test test/check-dashboard-strict.test.ts: passes 4/4 tests on Windows (previously failed subtests 2 and 4 with AssertionError: ['dashboard\github-api.ts'] vs ['dashboard/github-api.ts']).
  • node scripts/check-dashboard-strict.mjs: exits 0.
  • node scripts/changelog-stitch.mjs --check: passed.
  • oxfmt --check scripts/check-dashboard-strict.mjs changelog.d/check-dashboard-strict-posix-paths.md: passed.
  • oxlint scripts/check-dashboard-strict.mjs: passed with 0 warnings and 0 errors.

Real Behavior Proof

Live CLI execution trace on Windows (Node v22.19.0) demonstrating the changed missing-file diagnostic formatting when a baseline file (dashboard/github-api.ts) is missing from tsconfig.dashboard-strict.json:

> node -v
v22.19.0

> node scripts/check-dashboard-strict.mjs
Error: dashboard strict config is missing baseline files:
dashboard/github-api.ts
    at assertDashboardStrictBaseline (scripts/check-dashboard-strict.mjs:67:11)
    at main (scripts/check-dashboard-strict.mjs:96:3)

The diagnostic formats the missing file with POSIX slashes (dashboard/github-api.ts) rather than platform-specific separators (dashboard\github-api.ts), ensuring cross-platform consistency.

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@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. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 7, 2026
@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR converts normalized dashboard strict-check paths to forward slashes and adds a changelog fragment.

Example: On Windows, dashboard/github-api.ts is removed from the strict configuration.

  • Before: The missing-file diagnostic prints dashboard\github-api.ts, failing the existing portable message assertion.
  • After: The diagnostic prints dashboard/github-api.ts.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, correct change supported by existing regression assertions and focused Windows CLI output.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The updated PR body records the real checker CLI on Windows with Node v22.19.0 and a missing dashboard/github-api.ts configuration entry, producing the changed forward-slash diagnostic; this fulfills the previous review's requested scenario, with coverage limited to that formatting path.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Windows contributors receive native-separator diagnostics that disagree with the checker's existing portable test expectations.
Reason: The change restores cross-platform diagnostic consistency while retaining the original strict-check contract and defaults.

Merge readiness

✅ Ready for maintainer review

This PR is a focused Windows diagnostic-formatting fix that remains necessary on current main, with no actionable defects found.

Priority: P3
Reviewed head: ba264cc9a7128ca1027b8f5d71d5dab034c9c1cb

Before merge

None.

Findings

None.

Agent review details

How this fits together

The development-time strict checker reads TypeScript configuration and compiler diagnostics, checks the configured roots against its baseline, and reports failures for selected dashboard modules.

flowchart LR
  A[Strict TypeScript configuration] --> B[Checker CLI]
  C[Baseline file list] --> D[Path normalization]
  B --> D
  D --> E[Baseline comparison]
  B --> F[Compiler diagnostics]
  F --> D
  D --> G[Selected diagnostics]
  E --> H[Output and exit status]
  G --> H
Loading

Technical review

Best possible solution:

Keep the separator conversion in the existing shared normalization helper while preserving strict baseline enforcement.

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

Current main uses native path normalization while existing tests require forward-slash diagnostic text; the author also supplies the affected Windows CLI scenario, which was not independently executed during this read-only review.

Is this the best way to solve the issue?

The one-line change fixes the shared normalization owner without adding a competing path or weakening baseline checks.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 51e006973ca9.

Provenance checked

  • Dashboard strict-check path normalization keeps the original intent (bd86954: The checker was introduced to enforce a monotonic strict-file baseline and filter compiler diagnostics to selected roots.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P3: This corrects development-time Windows diagnostic formatting and existing test expectations with limited runtime impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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-07T00:01:48.795Z sha ba264cc :: needs real behavior proof before merge. :: none

Reviewed November 6, 2026, 9:11 PM ET / November 7, 2026, 02:11 UTC (Revision 2).

@saiyam-jain-dev

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 7, 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-repro Preliminary submission classification; full source review pending. proof: sufficient Contributor real behavior proof is sufficient. 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. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 7, 2026
@obviyus

obviyus commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Real Windows proof (https://github.com/openclaw/clawsweeper/actions/runs/42971314545): the two affected test files ran on windows-latest, with main's scripts and with this PR plus #2176 applied on current main.

  • main: fails dashboard strict rejects a missing baseline file and names it and dashboard strict requires new files to extend the baseline. The baseline comparison sees dashboard\\github-api.ts instead of dashboard/github-api.ts.
  • this change: test/check-dashboard-strict.test.ts and test/run-node-tests.test.ts pass 15/15.

@obviyus
obviyus merged commit b484f0a into openclaw:main Nov 11, 2026
33 checks passed
obviyus added a commit that referenced this pull request Nov 14, 2026
* fix(review): qualify exact push relay rejection fixture

* fix: report the real checkout inspection failure reason

- Lead the read-only checkout inspection failure message with the runner error when present.
- Keep a redacted 2000-character stdout/stderr tail as context; keep stderr || stdout when no error.
- OpenClaw prints a plugin trust warning to stderr on every run, which hid every inspection reason.
- Add runner tests for OpenClaw and Codex inspection failures.

* fix: qualify the historical OCE harness origin fixture (#2197)

* test: clear dashboard token watchdog after completion (#2196)

Co-authored-by: Ryan Saari <[email protected]>

* fix: qualify exact OCE 5398 JDBC fixture revisions (#2198)

* fix(dashboard): normalize dashboard strict paths to POSIX slashes (#2177)

* fix: use server-issued census observation windows (#2174)

* fix: bound census observations with server-issued query windows

Replace cross-host completion-clock comparisons for negotiated census producers with stored metadata and per-assignment observation windows. Preserve strict legacy fallback, lease/checkpoint/identity fences, stable witnesses, and capacity bounds. Include signed native temporal red/green and rolling-compatibility proof.

Co-authored-by: brokemac79 <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>

* fix: use server-issued census observation windows

Worked on by:
- @brokemac79

Co-authored-by: brokemac79 <[email protected]>
OpenClaw-Publication: 9c3c62ec-951b-43b0-98f9-511dba1829cf

* fix: preserve negotiated census authority across legacy upgrades

Add real workerd cold-restart proof that persisted deployed legacy-v2 checkpoints, cursors, identities and receipts load unchanged and safely continue through negotiated windows. Require the atomic lease mode before accepting any page, including legacy-shaped in-flight data before next issues a witness. Resolves the accepted data-model compatibility proof blocker without state reset or weakened legacy guards.

Co-authored-by: brokemac79 <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>

* Publish openclaw/coverage-observation-window-fix

Worked on by:
- @brokemac79

Co-authored-by: brokemac79 <[email protected]>
OpenClaw-Publication: 281f1b7a-6346-42af-b919-9fd25dd6b736

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: brokemac79 <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>

* fix(test): normalize test runner paths to POSIX slashes (#2176)

* fix: terminal acknowledgement test passes on a timeout instead of the real retry failure (#2199)

* test: exercise terminal acknowledgement retries without delay

* test: use the real retry helper with Retry-After: 0

The retry helper honors Retry-After, so the fixture no longer needs a
patched copy of the helper and request builder. The unchanged workflow
step and helper now run all six attempts without waiting.

Co-authored-by: Ryan Saari <[email protected]>
Co-authored-by: obviyus <[email protected]>

---------

Co-authored-by: Ryan Saari <[email protected]>
Co-authored-by: obviyus <[email protected]>

* improve: shorten reservation workflow test runtime (#2200)

* test: avoid reservation fixture retry waits

* test: record reservation retry waits with a PATH sleep shim

Replace the BASH_ENV sleep function and the hand-maintained per-scenario
attempt table with a sleep shim on the step's PATH. Every recorded delay
is still checked against the workflow's 2n + 0..3 backoff, and the
service-unavailable scenario must record all four waits.

Co-authored-by: Ryan Saari <[email protected]>
Co-authored-by: obviyus <[email protected]>

---------

Co-authored-by: Ryan Saari <[email protected]>
Co-authored-by: obviyus <[email protected]>

* fix(review): stop demanding proof for speculative races and in-flight revocation (#2202)

* fix(review): stop demanding proof for speculative races and in-flight revocation

Authority-chain review now triggers only on changed authorization
decisions; revocation applies to the next request; unproven authority is
no longer a merge gate. P3 findings are advisory, speculative race
machinery without recorded buy-in and preemptive single-use helpers become
findings, and AGENTS.md adopts the matching design rules.

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

* fix(review): keep advisory P3 findings out of the merge readiness gate

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

* fix(review): keep P3-only incorrect verdicts and queued repairs advisory

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

---------

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

* fix: reuse reviewed test credentials after surrounding edits (#2201)

Approve exact previously reviewed synthetic Raw/RawV2 value pairs while retaining detector, decoder, native metadata, verification, and completion checks. Remove hostname-based exemptions and keep normalized Postgres findings blocking.

Validation: full pnpm check, 32 focused tests, 28 native proof cases in an isolated UTM guest, and a clean final committed whole-branch Codex review. The maintainer explicitly waived the hosted ClawSweeper review and approved this merge in the task conversation.

* feat(review): read durable Gitcrawl cluster service context

* fix(review): validate service tokens without control regex

* fix: allow service-backed review-start reservations

* style: format service review-start reservation proof

* fix: allow service-backed review artifact publication

* feat: prepare service context before applying decisions

* fix: preserve parent identity during apply preparation

* fix: wire apply preparation to the shared relation policy

* test: cover service-backed apply and authority drift

* test: hold paired closes without prepared service context

* test: align service apply fixtures with live revision guards

* docs: explain apply preparation failure ownership

* fix: enforce apply retry guards without mutation receipts

* style: format service freshness assertion

* test: exercise service retries with a current review lease

* fix: refresh apply authority after ambiguous writes

* style: format service lease regression fixture

* test: reject exact-event retries after lease revocation

* style: format exact-event retry assertion

---------

Co-authored-by: Mitchell Etzel <[email protected]>
Co-authored-by: Free Wortley <[email protected]>
Co-authored-by: Ryan S <[email protected]>
Co-authored-by: Ryan Saari <[email protected]>
Co-authored-by: Saiyam Jain <[email protected]>
Co-authored-by: RoboClaw <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: brokemac79 <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: obviyus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: sufficient Contributor real behavior proof is sufficient. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants