Skip to content

Warn on stored data model changes - #279

Merged
clawsweeper[bot] merged 10 commits into
mainfrom
clawsweeper/issue-openclaw-clawsweeper-225
Jun 11, 2026
Merged

clawsweeper[bot] merged 10 commits into
mainfrom
clawsweeper/issue-openclaw-clawsweeper-225

Conversation

@clawsweeper

@clawsweeper clawsweeper Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Closes #225

Summary:

  • add a stored-data-model detector alongside the existing config-surface detector
  • persist data_model_change and data_model_surfaces in durable review report frontmatter
  • render a public warning naming likely persistent surfaces without calling the PR buggy by default
  • block repair/automerge pass markers for material stored-data-model changes unless the report contains adequate migration or upgrade compatibility proof
  • update review prompt guidance for stored schema, migration, vector/embedding metadata, serialized JSON state, cache schema, Durable Object, hosted storage, doctor, repair, and backfill changes

Implementation notes:

  • keep detection scoped to openclaw/openclaw PR files and compact pull-file patches
  • fail closed on truncated pull files or missing/truncated patches for likely data-model surfaces
  • treat SQL DDL/migrations, database schema installers/helpers, persistent cache schemas, Durable Object/storage schema code, serialized JSON state written to disk/database, vector or embedding row identity/query-compatibility metadata, and doctor/migration/repair backfills as candidate surfaces
  • avoid positives for pure query-only changes and non-semantic docs wording

Validation:

  • pnpm check:changed

Release note context:

  • ClawSweeper now surfaces persistent data-model compatibility risk before automerge instead of silently passing material schema changes without migration or upgrade evidence.

ClawSweeper 🐠 replacement reef notes:

fish notes: reasoning high; reviewed against 4784fc0.

@clawsweeper clawsweeper Bot added clawsweeper Tracked by ClawSweeper automation clawsweeper:autogenerated PR created automatically by ClawSweeper clawsweeper:automerge Maintainer opted this ClawSweeper PR into bounded ClawSweeper-reviewed automerge labels Jun 11, 2026
@clawsweeper

clawsweeper Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Codex review: passed. Reviewed June 11, 2026, 9:44 AM ET / 13:44 UTC.

Summary
The PR adds stored-data-model detection for OpenClaw patches, persists detected surfaces, renders compatibility warnings, gates repair/automerge passes on upgrade proof, updates review guidance, and adds focused tests.

Reproducibility: not applicable. This PR adds a new deterministic review guard rather than fixing a current-main runtime bug; focused fixtures exercise the intended behavior.

Review metrics: 3 noteworthy metrics.

  • Changed surface: 3 files affected. The change is contained to review policy, core automation, and unit tests.
  • Test coverage: 524 test lines added. The heuristic detector has substantial positive, negative, proof-parser, rendering, and marker-gating coverage.
  • Current checks: 3 succeeded, 1 in progress. CodeQL and analysis checks passed, while the repository-required pnpm check had not completed.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
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:

  • Wait for the exact-head pnpm check to complete successfully.

Risk before merge

  • [P1] The exact-head pnpm check must finish successfully before merge; it was still running during this review.
  • [P1] Heuristic syntax detection will require incremental maintenance if OpenClaw introduces persistence patterns outside the currently covered forms.

Maintainer options:

  1. Land the current guarded implementation (recommended)
    Merge after the exact-head check succeeds, accepting that future persistence syntax may require incremental detector coverage.
  2. Repair only a concrete check failure
    If pnpm check fails, fix the specific failure without broadening the detector or changing the durable report contract.

Next step before merge

  • [P2] No separate repair job is needed; the existing automerge lane should wait for the exact-head check and merge if it passes.

Security
Cleared: No concrete security or supply-chain concern was found; the diff does not change dependencies, permissions, secrets, workflows, downloads, or third-party code execution.

Review details

Best possible solution:

Keep the focused detector and proof-sensitive needs-human gate, then let the armed automerge path land the exact head after the required repository check succeeds.

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

Not applicable: this PR adds a new deterministic review guard rather than fixing a current-main runtime bug; focused fixtures exercise the intended behavior.

Is this the best way to solve the issue?

Yes. Extending the established config-surface detector, frontmatter, and marker pattern is narrower than creating another review pipeline, and the current head covers the previously identified proof and upsert gaps.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is a normal-priority compatibility and automation safeguard with bounded repository scope.
  • merge-risk: 🚨 compatibility: Detector accuracy determines whether persistent-data upgrade and migration risks receive maintainer-visible scrutiny.
  • merge-risk: 🚨 automation: The patch changes durable review metadata and pass-versus-needs-human markers consumed by repair and automerge workflows.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 🚀 automerge armed: This PR is in ClawSweeper's automerge lane. Not applicable: This ClawSweeper bot-authored internal automation PR is exempt from the external-contributor real-behavior proof gate.
Evidence reviewed

What I checked:

  • Current-head detector: The detector is scoped to openclaw/openclaw, handles current and previous filenames, fails closed for incomplete likely-schema patches, and records deterministic sorted surfaces. (src/clawsweeper.ts:9279, 1865a7949aea)
  • Proof-sensitive automation gate: The parser rejects missing, requested, hypothetical, planned, pending, and explicitly untested migration or upgrade claims; marker and repair-loop logic route insufficiently proven changes to needs-human. (src/clawsweeper.ts:9449, 1865a7949aea)
  • Focused regression coverage: Tests cover SQL DDL, upsert and conflict behavior, stored JSON, embedding metadata, backfills, truncation, query-only and documentation negatives, public warnings, durable fields, proof parsing, and pass-marker blocking. (test/clawsweeper.test.ts:3695, 1865a7949aea)
  • Established pattern provenance: The analogous config-surface detector and repair-loop pass architecture originated in commit 9b08258, which this PR extends rather than duplicating. (src/clawsweeper.ts:9190, 9b08258b9c64)
  • Exact-head checks: CodeQL and both analysis jobs succeeded for the current head; pnpm check was still in progress when inspected. (1865a7949aea)

Likely related people:

  • brokemac79: Commit 9b08258 introduced the config-surface detector and repair-loop pass architecture that this PR directly extends. (role: introduced adjacent behavior; confidence: high; commits: 9b08258b9c64; files: src/clawsweeper.ts, test/clawsweeper.test.ts, prompts/review-item.md)
  • Peter Steinberger: Recent commits repeatedly maintain the central ClawSweeper automation and repair-dispatch paths surrounding this feature. (role: recent area contributor; confidence: medium; commits: 10ed1f76d15d, 62cfa38f9a83, e997f827ae9a; files: src/clawsweeper.ts, test/clawsweeper.test.ts)
  • Dallin Romney: Recent merged work added and refactored bot-owned proof and repair-loop automation adjacent to the marker and gating behavior changed here. (role: recent automation contributor; confidence: medium; commits: 1eb6e0972ebe, df47b34afea3, 5fb902aa24dd; files: src/clawsweeper.ts, test/clawsweeper.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.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. labels Jun 11, 2026
@clawsweeper

clawsweeper Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor Author

ClawSweeper 🐠 automerge status

This repair pass finished without changing the PR. ClawSweeper checked the branch and found no safe patch to push this time.

Executor outcome: no planned fix actions.
Worker summary: No repair remains. this PR was already reviewed, validated, and merged as current main commit 223cd99. All hydrated refs are closed, so no mutation or fix artifact is valid.

Worker actions:

  • keep_closed on #171: skipped - Related historical context with distinct config-surface scope; no action is permitted or needed.
  • keep_closed on #225: skipped - Already closed as fixed by merged this PR; no post-merge close action is valid.
  • keep_closed on this PR: skipped - The canonical PR is already merged into current main, so the requested repair loop is complete and no repair, merge, or comment action remains.

Nothing moved downstream from this pass: no branch update, replacement PR, merge, or re-review.

fish notes: reasoning high; reviewed against 1865a79.

Automerge progress:

  • 2026-06-11 13:26:30 UTC review requested repair 4de136228d86 (structured ClawSweeper marker: fix-required (finding=review-feedback sha=4de136...)
  • 2026-06-11 13:35:30 UTC review queued 8780817d4350 (queued)
  • 2026-06-11 13:40:14 UTC review requested repair 8780817d4350 (structured ClawSweeper marker: fix-required (finding=review-feedback sha=878081...)
  • 2026-06-11 13:45:25 UTC review passed 1865a7949aea (structured ClawSweeper verdict: pass (sha=1865a7949aea840bff1ac2a48418d160de1ab...)
  • 2026-06-11 13:45:59 UTC merged 1865a7949aea (merged by ClawSweeper automerge)

Copy link
Copy Markdown
Contributor

@clawsweeper automerge

Address the current ClawSweeper review findings on this PR, run pnpm run check, re-review the updated head, and continue the repair/review loop until it is merge-ready.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jun 11, 2026
@clawsweeper
clawsweeper Bot force-pushed the clawsweeper/issue-openclaw-clawsweeper-225 branch from 4784fc0 to 1865f85 Compare June 11, 2026 11:55
@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 Jun 11, 2026

Copy link
Copy Markdown
Contributor

@clawsweeper automerge

Resume the existing autonomous repair and re-review loop for the current head after the previous worker timed out. Address the exact-head ClawSweeper findings, run pnpm run check, re-review, and continue until merge-ready.

clawsweeper Bot added 6 commits June 11, 2026 12:38
Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
@clawsweeper
clawsweeper Bot force-pushed the clawsweeper/issue-openclaw-clawsweeper-225 branch from db92922 to f29e122 Compare June 11, 2026 12:45
clawsweeper Bot added 3 commits June 11, 2026 13:05
Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper automerge

Re-run the autonomous repair and review loop for the current head. Address the exact ClawSweeper findings, run pnpm run check, and continue until merge-ready.

Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
@clawsweeper clawsweeper Bot removed the rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. label Jun 11, 2026
@clawsweeper clawsweeper Bot added the rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. label Jun 11, 2026
@clawsweeper
clawsweeper Bot merged commit 223cd99 into main Jun 11, 2026
5 of 7 checks passed
@clawsweeper
clawsweeper Bot deleted the clawsweeper/issue-openclaw-clawsweeper-225 branch June 11, 2026 13:46
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
Summary:
- The PR adds stored-data-model detection for OpenClaw patches, persists detected surfaces, renders compatibility warnings, gates repair/automerge passes on upgrade proof, updates review guidance, and adds focused tests.
- Reproducibility: not applicable. This PR adds a new deterministic review guard rather than fixing a current-main runtime bug; focused fixtures exercise the intended behavior.

Automerge notes:
- Ran the ClawSweeper repair loop before final review.
- Included post-review commit in the final squash: fix(clawsweeper): address review for issue-openclaw-clawsweeper-225 (1)
- Included post-review commit in the final squash: Warn on stored data model changes in reviews
- Included post-review commit in the final squash: fix(clawsweeper): address review for issue-openclaw-clawsweeper-225 (2)
- Included post-review commit in the final squash: Warn on stored data model changes

Validation:
- ClawSweeper review passed for head 1865a79.
- Required merge gates passed before the squash merge.

Prepared head SHA: 1865a79
Review: openclaw#279 (comment)

Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
Approved-by: steipete
Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:autogenerated PR created automatically by ClawSweeper clawsweeper:automerge Maintainer opted this ClawSweeper PR into bounded ClawSweeper-reviewed automerge clawsweeper Tracked by ClawSweeper automation merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

prompt request: warn on stored data model changes

1 participant