Skip to content

feat(lint): SAFETY-comment assertion ratchet + repo deslop skill - #124359

Merged
steipete merged 9 commits into
mainfrom
steipete/chained-drain-ratchet
Aug 16, 2026
Merged

steipete merged 9 commits into
mainfrom
steipete/chained-drain-ratchet

Conversation

@steipete

@steipete steipete commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

New TypeScript assertions can silently add type-trust debt because the repository has no prospective guard requiring authors to document the invariant that makes an assertion safe. Existing assertion debt is too broad to fix atomically, and AI cleanup passes are not currently available as a concise repo-local workflow.

Why This Change Was Made

This adds a TypeScript-AST assertion ratchet that shares the chained-assertion production roots, test exclusions, and debt ledger; existing unannotated assertions are grandfathered by deterministic per-file counts, while every new non-const assertion requires a // SAFETY: invariant. It also adds the repo-local /deslop checklist for behavior-preserving diff cleanup before autoreview.

The initial baseline contains 4,439 files and 14,386 grandfathered assertions. This is intentionally a debt ledger: counts can only shrink after the baseline lands, verified renames retain their allowance, and --prune removes reduced debt.

This PR is an explicit maintainer-approved exception to the usual clean-scope/no-baseline rule for new lint checks. The requested invariant is repository-wide prospective enforcement: scripts/check-assertion-safety-ratchet.mts owns the debt, config/assertion-safety-baseline.txt is its shrink-only burn-down ledger, and the removal condition is zero remaining baseline entries. Narrowing to a clean subtree would not enforce the requested repository-wide contract.

AI-assisted: yes. I reviewed the implementation and ran the repository autoreview workflow to a clean result.

User Impact

There is no runtime behavior change. Contributors get an actionable preflight failure when new production assertions lack a stated safety invariant, and agents can run a focused repo-local cleanup pass before autoreview.

Evidence

  • Real in-tree failure demo (scratch file removed afterward):

    Uncommented type assertions exceed the grandfathered per-file baseline:
      src/assertion-safety-ratchet-demo.ts: 1 > 0
    Every new non-const type assertion needs // SAFETY: <invariant> above it or on the same line.
    
  • node --import tsx scripts/check-assertion-safety-ratchet.mts

    assertion SAFETY ratchet OK: 4439 files, 14386 grandfathered assertions.
    
  • node scripts/run-vitest.mjs test/scripts/check-assertion-safety-ratchet.test.ts test/scripts/check.test.ts test/scripts/oxlint-boundary-guards.test.ts — 10 tests passed across 2 shards.

  • node scripts/run-vitest.mjs test/scripts/check-assertion-safety-ratchet.test.ts test/scripts/changed-lanes.test.ts test/scripts/check.test.ts — 157 tests passed, including staged/worktree planner selection and inline-comment bypass coverage.

  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/config-controls-visual.e2e.test.ts ui/src/e2e/claude-sessions.e2e.test.ts — 11 tests passed after repairing two current-main E2E owner races exposed by CI.

  • node scripts/check-changed.mjs — passed scripts/test typechecks, scripts lint, formatting, package guards, and boundary checks. No remote provider was ready, so the wrapper used its documented local fallback after lock backoff.

  • AUTOREVIEW=.claude/skills/autoreview/scripts/autoreview "$AUTOREVIEW" --mode branch --base origin/main — clean; no accepted/actionable findings.

  • Baseline determinism: 4,439 sorted nonzero entries, totaling 14,386 assertions.

  • Exact-head CI: https://github.com/openclaw/openclaw/actions/runs/31927289672 — green at 8520e54803a0283f1289e31ba38e45fd367177cf.

@clawsweeper

clawsweeper Bot commented Aug 16, 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 scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Aug 16, 2026
@steipete
steipete marked this pull request as ready for review August 16, 2026 02:30
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 16, 2026, 12:57 AM ET / 04:57 UTC.

ClawSweeper review

What this changes

Adds a TypeScript AST-based assertion-safety ratchet with a shrink-only baseline, wires it into preflight checks, adds an internal diff-cleanup skill, and stabilizes a Control UI E2E wait.

Merge readiness

⚠️ Needs maintainer review before merge - 3 items remain

Keep open: one SAFETY marker can currently approve multiple assertions, so the proposed ratchet does not enforce its per-assertion invariant.

Priority: P3
Reviewed head: 8520e54803a0283f1289e31ba38e45fd367177cf

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The contributor evidence is strong, but the per-assertion enforcement gap blocks merge.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR body supplies an after-fix terminal demonstration of both the expected failure and a clean full-tree run, plus exact-head CI; redact any future terminal evidence.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body supplies an after-fix terminal demonstration of both the expected failure and a clean full-tree run, plus exact-head CI; redact any future terminal evidence.
Evidence reviewed 7 items Per-assertion bypass: The scanner records only whether a SAFETY comment exists on a physical line or preceding standalone line, then treats every assertion on that line as documented; one comment can therefore approve multiple unrelated assertions.
Enforcement integration: The changed-file planner invokes the ratchet for governed source and its supporting files, while the aggregate preflight includes it unconditionally.
Current-main comparison: The PR head is not contained by a local branch, and supplied GitHub context identifies it as open and unmerged; current main therefore does not already provide this feature.
Findings 1 actionable finding [P1] Require a distinct SAFETY comment for each assertion
Security None None.

How this fits together

Contributor preflight checks inspect changed and full-repository TypeScript before code lands. The new scanner compares unsafe assertions with a baseline ledger and reports failures through aggregate and changed-file validation.

flowchart LR
A[Production TypeScript] --> B[Assertion scanner]
C[Baseline ledger] --> B
D[Changed-file planner] --> E[Preflight command]
B --> E
E --> F[Contributor feedback]
Loading

Before merge

  • Require a distinct SAFETY comment for each assertion (P1) - The scanner stores only line membership, so const first = value as First; const second = value as Second; // SAFETY: ... marks both assertions safe. A comment must be consumed by one assertion; otherwise the ratchet accepts an undocumented assertion whenever it shares that line or a preceding marker line.
  • Resolve merge risk (P1) - Until the marker is uniquely consumed, a passing automated preflight can still accept undocumented assertions that share a line with another assertion.
  • Complete next step (P2) - A narrow, source-proven scanner repair and focused regression coverage can resolve the sole blocking finding.

Findings

  • [P1] Require a distinct SAFETY comment for each assertion — scripts/check-assertion-safety-ratchet.mts:67-73
Agent review details

Security

None.

PR surface

Tests +155, Docs +24, Config +1, Other +4973. Total +5153 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 156 1 +155
Docs 1 24 0 +24
Config 1 1 0 +1
Generated 0 0 0 0
Other 6 5173 200 +4973
Total 12 5354 201 +5153

Review metrics

Metric Value Why it matters
Production versus test LOC production/tooling +532, policy ledger +4,442, tests +155, internal skill docs +24 The repository-wide ledger dominates the diff; the executable checker and its tests are a smaller but material automation change.
Initial assertion ledger 4,439 files and 14,386 grandfathered assertions This is the continuing cost and coverage boundary of the new full-tree preflight.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/check.mts, vector/embedding metadata: scripts/check.mts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Enforce one marker per assertion (recommended)
    Change the scanner so each SAFETY comment is consumed by one assertion and add focused regressions before merging.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Require each SAFETY comment to be consumed by exactly one assertion, add same-line and preceding-line multi-assertion regressions, and rerun the focused ratchet and changed-plan tests.

Technical review

Best possible solution:

Associate each SAFETY marker with exactly one assertion node, retain the approved shrink-only ledger, and cover same-line and preceding-line multi-assertion cases.

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

Yes, from source: place two non-const assertions on one line with one trailing SAFETY marker, and both pass the line-membership check.

Is this the best way to solve the issue?

No. The baseline and shared scope are coherent under the documented exception, but line-level marker tracking is too broad for the stated per-assertion contract.

Full review comments:

  • [P1] Require a distinct SAFETY comment for each assertion — scripts/check-assertion-safety-ratchet.mts:67-73
    The scanner stores only line membership, so const first = value as First; const second = value as Second; // SAFETY: ... marks both assertions safe. A comment must be consumed by one assertion; otherwise the ratchet accepts an undocumented assertion whenever it shares that line or a preceding marker line.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is contributor-facing lint and workflow infrastructure with no runtime product behavior change.
  • merge-risk: 🚨 automation: The PR adds a full-tree AST scan and changes both aggregate and changed-file preflight selection.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (terminal): The PR body supplies an after-fix terminal demonstration of both the expected failure and a clean full-tree run, plus exact-head CI; redact any future terminal evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies an after-fix terminal demonstration of both the expected failure and a clean full-tree run, plus exact-head CI; redact any future terminal evidence.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs test/scripts/check-assertion-safety-ratchet.test.ts test/scripts/changed-lanes.test.ts test/scripts/check.test.ts.
  • [P1] node scripts/check-changed.mjs --dry-run -- scripts/check-assertion-safety-ratchet.mts test/scripts/check-assertion-safety-ratchet.test.ts.
  • [P1] node --import tsx scripts/check-assertion-safety-ratchet.mts.

What I checked:

  • Per-assertion bypass: The scanner records only whether a SAFETY comment exists on a physical line or preceding standalone line, then treats every assertion on that line as documented; one comment can therefore approve multiple unrelated assertions. (scripts/check-assertion-safety-ratchet.mts:67, 8520e54803a0)
  • Enforcement integration: The changed-file planner invokes the ratchet for governed source and its supporting files, while the aggregate preflight includes it unconditionally. (scripts/check-changed.mts:606, 8520e54803a0)
  • Current-main comparison: The PR head is not contained by a local branch, and supplied GitHub context identifies it as open and unmerged; current main therefore does not already provide this feature. (8520e54803a0)
  • Feature provenance: Blame attributes the new changed-file ratchet selection to the PR head; nearby shared planner behavior is recent tooling work by the same contributor. (scripts/check-changed.mts:608, 8520e54803a0)
  • Dependency boundary: The checker directly imports the repository-pinned TypeScript compiler API, but this review finding follows its own line-based comment bookkeeping rather than an unverified compiler API behavior; the lockfile pins TypeScript 6.0.3. (pnpm-lock.yaml:219, 8520e54803a0)
  • Codex boundary: The changed checker imports local modules and TypeScript only; it does not import, execute, or claim compatibility with a Codex runtime or protocol, so sibling Codex inspection is not applicable. (scripts/check-assertion-safety-ratchet.mts:1, 8520e54803a0)

Likely related people:

  • steipete: Peter Steinberger authored the current PR head and nearby current-main changed-check planner history, including the final ratchet-bypass commit. (role: recent tooling contributor; confidence: high; commits: 8520e54803a0, e2e070c927a6; files: scripts/check-assertion-safety-ratchet.mts, scripts/check-changed.mts)
  • Sash Zats: History identifies Sash Zats as the author of the existing Oxlint boundary-guard surface whose scope policy this PR centralizes. (role: adjacent guard author; confidence: medium; commits: ff95d0c2694f; files: scripts/oxlint-boundary-guards.mjs)

Rank-up moves

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

  • Bind each marker to one assertion and add the two multi-assertion regressions.
  • Rerun the focused ratchet/planner tests and post the resulting terminal output if the PR body changes.

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.

History

Review history (8 earlier review cycles)
  • reviewed 2026-08-16T02:37:48.401Z sha 447e8caefe4f6e82e0e6fe948c2d6e7d71e662a8 :: found issues before merge. :: [P2] Start the assertion rule in a clean scope
  • reviewed 2026-08-16T02:46:45.635Z sha 447e8caefe4f6e82e0e6fe948c2d6e7d71e662a8 :: found issues before merge. :: [P1] Run the ratchet in normal PR validation | [P2] Start the assertion rule in a clean scope
  • reviewed 2026-08-16T03:27:14.086Z sha df912c8953ec7ea9fe5f96f7d71e1ce8350f1092 :: needs changes before merge. :: [P1] Run the ratchet in changed-file validation
  • reviewed 2026-08-16T03:46:20.397Z sha 891e2dc838921671e5ae5d93438c4ecf46a9cf81 :: found issues before merge. :: [P1] Run the ratchet in changed-file validation | [P1] Preserve per-assertion SAFETY enforcement
  • reviewed 2026-08-16T04:00:18.030Z sha 70f6cc4ebb66594c1d34ae1327cc4ef9ca65d77a :: found issues before merge. :: [P1] Run the ratchet in changed-file validation
  • reviewed 2026-08-16T04:24:43.093Z sha 127578f2285e192f8971c5f610cd81f5fd2d117c :: found issues before merge. :: [P1] Run the ratchet in changed-file validation | [P1] Bind a SAFETY comment to its assertion
  • reviewed 2026-08-16T04:35:49.203Z sha 127578f2285e192f8971c5f610cd81f5fd2d117c :: found issues before merge. :: [P1] Run the ratchet in changed-file validation | [P1] Bind each SAFETY comment to one assertion | [P1] Detect replacement of grandfathered assertion debt
  • reviewed 2026-08-16T04:47:52.262Z sha 8520e54 :: needs maintainer review before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Addressing the ClawSweeper rank-up moves before landing:

  • Clean-scope/no-baseline finding — intentionally skipped as an explicit maintainer policy exception. This task specifically requires repository-wide prospective enforcement while grandfathering existing debt. The PR body now names scripts/check-assertion-safety-ratchet.mts as debt owner, config/assertion-safety-baseline.txt as the shrink-only burn-down ledger, and zero remaining entries as the removal condition. A clean subtree would not enforce the requested repository-wide invariant.
  • Performance/automation merge risk — satisfied. The full current-tree AST scan matches 4,384 sorted baseline entries / 14,156 assertions; the checker is wired into the parallel preflight. Exact-head CI is green: https://github.com/openclaw/openclaw/actions/runs/31922071717.
  • Exact-head source/proof availability — satisfied. CI inspected head 447e8caefe4f6e82e0e6fe948c2d6e7d71e662a8. Focused Vitest proof passed 10 tests across two shards, node scripts/check-changed.mjs passed, and branch autoreview completed clean with TruffleHog clean.
  • Dependency/parser contract — satisfied. The checker uses the repository-pinned TypeScript compiler API ([email protected]) already installed by the requested pnpm install; AST semantics and scope exclusions are covered by the focused fixture.
  • Protected maintainer PR/manual next step — acknowledged. This is maintainer-authored and will use the repository scripts/pr review/prepare/merge flow; no automated repair path is requested.

No code change is needed for the remaining review item because changing to a narrow clean scope would contradict the approved deliverable.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 16, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready verification for head 447e8caefe4f6e82e0e6fe948c2d6e7d71e662a8:

  • node --import tsx scripts/check-assertion-safety-ratchet.mts — pass: 4,384 files / 14,156 grandfathered assertions.
  • In-tree scratch assertion demo — failed as required with src/assertion-safety-ratchet-demo.ts: 1 > 0; scratch file removed.
  • node scripts/run-vitest.mjs test/scripts/check-assertion-safety-ratchet.test.ts test/scripts/check.test.ts test/scripts/oxlint-boundary-guards.test.ts — 10 tests passed across two shards.
  • node scripts/check-changed.mjs — pass through the documented local fallback after no remote provider was ready; scripts/test typechecks, scripts lint, formatting, package guards, and boundary checks passed.
  • .claude/skills/autoreview/scripts/autoreview --mode branch --base origin/main — clean; TruffleHog clean; no accepted/actionable findings.
  • Exact-head CI run https://github.com/openclaw/openclaw/actions/runs/31922071717 — green.
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 124359 — pass with GATES_MODE=hosted_exact_or_recent_parent, reusing exact-head hosted CI; no remote lease was needed.
  • scripts/pr review-validate-artifacts 124359 — READY FOR /prepare-pr, zero findings.

ClawSweeper's clean-scope move is intentionally skipped under the explicit maintainer policy exception documented in the PR body and #124359 (comment). Known proof gaps: none.

@steipete
steipete force-pushed the steipete/chained-drain-ratchet branch from 447e8ca to df912c8 Compare August 16, 2026 03:06
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The branch was rebased after main narrowed the chained-assertion debt ledger. The conflict was resolved by preserving main's newer file-specific exclusions in the shared scope module, the initial SAFETY baseline was regenerated from that exact policy (4,417 files / 14,261 assertions), focused tests and check-changed are green, and branch autoreview is clean. New head: df912c8953e.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Aug 16, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The prior exact-head run exposed deterministic current-main UI E2E owner races outside this PR's original scope. The tests now wait for the stable capability/adoption boundaries instead of a lazy-mounted panel or a pre-armed timer. Focused UI E2E proof (11 tests), expanded check-changed, and final branch autoreview are green. New head: 891e2dc8389.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 16, 2026
@steipete
steipete force-pushed the steipete/chained-drain-ratchet branch from 891e2dc to 70f6cc4 Compare August 16, 2026 03:55
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Rebased again onto current main. Main's latest file-specific assertion exclusions are preserved in the shared scope, the initial SAFETY baseline is regenerated (4,425 files / 14,285 assertions), and main's independently landed browser E2E fix is retained. Our remaining Claude terminal test now waits for session adoption before advancing the readiness deadline. Focused UI E2E, expanded check-changed, and branch autoreview are green. New head: 70f6cc4ebb6.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@steipete
steipete force-pushed the steipete/chained-drain-ratchet branch from 70f6cc4 to 127578f Compare August 16, 2026 04:19
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

All known chained-assertion drain PRs are now landed and preserved as file-specific exclusions in the shared scope. The initial SAFETY baseline is regenerated at 4,439 files / 14,386 assertions, the remaining Claude terminal adoption wait is green alongside main's independently landed browser E2E fix, and 21 focused tests, expanded check-changed, plus branch autoreview are clean. Stabilized head: 127578f2285.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 16, 2026
@steipete
steipete force-pushed the steipete/chained-drain-ratchet branch from 127578f to 8520e54 Compare August 16, 2026 04:43
@steipete

steipete commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Final ClawSweeper disposition and land-ready verification for head 8520e54803a0283f1289e31ba38e45fd367177cf:

  • Both prior P1 findings are fixed: normal check:changed selects the assertion ratchet with staged/worktree parity, and preceding-line SAFETY markers must be comment-only.
  • ClawSweeper reports zero actionable findings. Its optional exact-head-access rank-up is satisfied by maintainer-side local source inspection, clean TruffleHog-backed branch autoreview, and exact-head CI.
  • node --import tsx scripts/check-assertion-safety-ratchet.mts — pass: 4,439 files / 14,386 assertions.
  • In-tree scratch assertion demo — failed as required with src/assertion-safety-ratchet-demo.ts: 1 > 0; scratch file removed.
  • Focused ratchet/planner/aggregate tests — 157 passed.
  • Focused UI E2E tests — 11 passed; the Claude terminal wait uses the adopted tab boundary, while main's independently landed browser fix is preserved.
  • node scripts/check-changed.mjs — pass through the documented local fallback, visibly including check:assertion-safety --base origin/main; typechecks, full core lint, scripts lint, formatting, package guards, and dead-export scans passed.
  • .claude/skills/autoreview/scripts/autoreview --mode branch --base origin/main — clean; TruffleHog clean; no accepted/actionable findings.
  • Exact-head CI https://github.com/openclaw/openclaw/actions/runs/31927289672 — green.

The clean-scope/no-baseline policy remains the explicit maintainer exception documented in the PR body, with the shrink-only ledger owned by the checker and removed at zero entries. Known proof gaps: none.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 16, 2026
@steipete
steipete merged commit 203aafc into main Aug 16, 2026
206 checks passed
@steipete
steipete deleted the steipete/chained-drain-ratchet branch August 16, 2026 05:03
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 17, 2026
…nclaw#124359)

* feat(lint): add SAFETY-comment assertion ratchet

* feat(skills): add repo deslop skill

* fix(lint): refresh initial assertion baseline

* chore(lint): align assertion baseline with main

* chore(lint): sync baseline with current assertion ledger

* test(ui): stabilize Control UI E2E waits

* chore(lint): sync narrowed assertion ledger

* chore(lint): sync fully drained assertion ledger

* fix(lint): close assertion ratchet bypasses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant