Skip to content

chore(test): remove docs spellcheck source mirror - #133645

Merged
RomneyDa merged 1 commit into
mainfrom
cleanup/docs-spellcheck-source-mirror
Aug 31, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
cleanup/docs-spellcheck-source-mirror

Conversation

@RomneyDa

Copy link
Copy Markdown
Member
Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

The docs-spellcheck unit test copied four shell-script substrings, including an assertion that only checked for a hyphen. It froze argument formatting without executing the wrapper and duplicated the stronger command boundary.

Why This Change Was Made

Removes the shell-text mirror and its unused path constant. The retained test still validates dictionary hygiene, while the repository's docs:spellcheck command owns whether the wrapper passes the dictionary and ignore files correctly to codespell.

User Impact

No user-visible behavior changes. Contributors retain dictionary quality checks without a source-format snapshot of the wrapper.

Evidence

  • node scripts/run-vitest.mjs test/scripts/docs-spellcheck.test.ts — 1 test passed.
  • node scripts/check-changed.mjs -- test/scripts/docs-spellcheck.test.ts — passed.
  • pnpm docs:spellcheck in a disposable codespell environment reached the executable boundary and reported the same five pre-existing corpus findings as current main; this test-only diff neither adds nor suppresses them.
  • git diff --check origin/main...HEAD — passed.
  • Structured Codex autoreview — clean; no accepted/actionable findings (0.99 confidence).
  • Tests: +0/-10; production: +0/-0; net -10 LOC.

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 31, 2026
@clawsweeper clawsweeper Bot added 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 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 8:10 PM ET / August 31, 2026, 00:10 UTC.

ClawSweeper review

What this changes

The PR removes a brittle source-text assertion from the docs spellcheck test while retaining checks that dictionary and ignore-file entries are clean.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open: this is a focused, behavior-neutral test cleanup; current main and the latest release still contain the removed source-format mirror. The member-authored PR also carries the protected maintainer label, so it needs normal maintainer handling rather than automated cleanup.

Priority: P3
Reviewed head: 8f5714a08a0628a93d31e009b19aeb4c1c1ccf6d
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-negative test cleanup with no supported correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored test-only cleanup does not require the external-contributor real-behavior gate; the PR body additionally reports an executable spellcheck run as supplemental evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored test-only cleanup does not require the external-contributor real-behavior gate; the PR body additionally reports an executable spellcheck run as supplemental evidence.
Evidence reviewed 5 items Introduced patch is narrowly test-only: The verified PR-introduced delta removes one 10-line source-format assertion and its unused constant; it leaves the configuration-hygiene test intact.
Wrapper remains the behavior owner: The package command calls the wrapper, whose argument list continues to pass both repository configuration files to codespell.
Current main does not already contain this cleanup: The fetched current-main revision has no change to this test since the pinned PR base and still contains the removed source-text assertion.
Findings None None.
Security None None.

How this fits together

The documentation spellcheck package command invokes a shell wrapper, which supplies the repository’s dictionary and ignore files to codespell. The test suite checks configuration-file hygiene alongside that wrapper.

flowchart LR
A[Package command] --> B[Spellcheck wrapper]
C[Dictionary and ignore files] --> B
B --> D[Codespell]
E[Script test] --> C
D --> F[Documentation findings]
Loading

Decision needed

Question Recommendation
Should this maintainer-authored test cleanup merge once the exact-head required checks complete? Merge after checks: Accept the narrow test cleanup after the pending exact-head checks are green.

Why: The protected maintainer label and MEMBER author association require explicit maintainer handling even though no code defect was found.

Before merge

  • Resolve merge risk (P1) - Exact-head required checks were still in progress, so merge readiness is not established by this review.
Agent review details

Security

None.

PR surface

Tests -10. Total -10 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 0 10 -10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 0 10 -10

Review metrics

Metric Value Why it matters
Production versus test delta production +0, tests -10 The branch only removes a brittle test mirror and does not grow or alter runtime behavior.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the focused cleanup: retain configuration-file hygiene coverage and rely on executable docs:spellcheck validation for wrapper behavior rather than whitespace-sensitive source matching.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the focused cleanup: retain configuration-file hygiene coverage and rely on executable docs:spellcheck validation for wrapper behavior rather than whitespace-sensitive source matching.

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

Not applicable: this PR removes test implementation coupling rather than reporting a runtime defect.

Is this the best way to solve the issue?

Yes: the removed assertions freeze shell formatting, while the package command and wrapper remain the executable behavior boundary and the configuration-hygiene test remains.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is low-risk test-maintenance cleanup with no user-visible behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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: This MEMBER-authored test-only cleanup does not require the external-contributor real-behavior gate; the PR body additionally reports an executable spellcheck run as supplemental evidence.

Label justifications:

  • P3: This is low-risk test-maintenance cleanup with no user-visible behavior change.
  • 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 MEMBER-authored test-only cleanup does not require the external-contributor real-behavior gate; the PR body additionally reports an executable spellcheck run as supplemental evidence.

Evidence

What I checked:

  • Introduced patch is narrowly test-only: The verified PR-introduced delta removes one 10-line source-format assertion and its unused constant; it leaves the configuration-hygiene test intact. (test/scripts/docs-spellcheck.test.ts:13, 8f5714a08a06)
  • Wrapper remains the behavior owner: The package command calls the wrapper, whose argument list continues to pass both repository configuration files to codespell. (scripts/docs-spellcheck.sh:17, fa48aee896a2)
  • Current main does not already contain this cleanup: The fetched current-main revision has no change to this test since the pinned PR base and still contains the removed source-text assertion. (test/scripts/docs-spellcheck.test.ts:14, fa48aee896a2)
  • Feature-history routing: Recorded history shows sustained maintenance of the wrapper and its test, including the current test source and an earlier bash compatibility repair. (scripts/docs-spellcheck.sh:20, fef57f99ba5c)
  • Shipped behavior remains unchanged: Latest release v2026.7.1-2 contains the same wrapper argument list, so this branch does not alter the released spellcheck command’s behavior. (scripts/docs-spellcheck.sh:17, 0790d9f593ad)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vitalii: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Allow the pending exact-head required checks to complete before merging.

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.

@RomneyDa
RomneyDa merged commit daf781a into main Aug 31, 2026
151 checks passed
@RomneyDa
RomneyDa deleted the cleanup/docs-spellcheck-source-mirror branch August 31, 2026 04:13
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 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: XS 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