|
| 1 | +# Material SQLite Change Discussion Proposal |
| 2 | + |
| 3 | +- Status: proposed; grants no execution or merge authority |
| 4 | +- Owner: OpenClaw maintainers for policy; ClawSweeper maintainers for any later advisory implementation |
| 5 | +- Source of truth: maintainer decision linked from [CSW-138](https://github.com/openclaw/clawsweeper/issues/1234) |
| 6 | +- Last verified: `openclaw/clawsweeper@ce250708c1ea10228f29fc5740cba95460dcdf74` |
| 7 | +- Update when: a maintainer accepts, rejects, or materially changes the proposal; or an approved implementation changes detection behavior |
| 8 | + |
| 9 | +This proposal defines a human discussion checkpoint for material SQLite and |
| 10 | +other durable-store changes in `openclaw/openclaw`. It is not current OpenClaw |
| 11 | +contributor policy, does not re-evaluate historical changes, and does not |
| 12 | +authorize ClawSweeper to block, label, close, or merge a pull request. |
| 13 | + |
| 14 | +## Proposed checkpoint |
| 15 | + |
| 16 | +Before maintainers consider a pull request for merge, its author would open or |
| 17 | +link a maintainer discussion when the pull request does any of the following: |
| 18 | + |
| 19 | +- adds a table, durable store, or persistent projection/cache that changes a |
| 20 | + user-visible result; |
| 21 | +- adds an index with material write, read, or disk-space impact; |
| 22 | +- changes migration, downgrade or upgrade compatibility, backfill, repair, |
| 23 | + retention, import/export, corruption handling, or recovery; |
| 24 | +- changes transactions, locking, writer ownership, reader consistency, |
| 25 | + publication fencing, or cross-process lifecycle; or |
| 26 | +- changes what data is canonical or derived, retained or reconstructible, or |
| 27 | + visible after restart. |
| 28 | + |
| 29 | +Several individually small changes also qualify when their combined data model |
| 30 | +or operational contract cannot be reviewed as an ordinary implementation |
| 31 | +detail. |
| 32 | + |
| 33 | +The discussion should record the owner and purpose, canonical-versus-derived |
| 34 | +classification, schema and compatibility plan, lifetime and retention, writer |
| 35 | +and reader contract, recovery behavior, performance budget, rollback plan, and |
| 36 | +the validation limits. It should also explain why an existing store is not the |
| 37 | +right owner. |
| 38 | + |
| 39 | +## Exclusions and exception route |
| 40 | + |
| 41 | +The checkpoint would not normally apply to a read-only query with unchanged |
| 42 | +semantics, a bounded query-plan improvement on an existing table, or generated |
| 43 | +types, schema baselines, tests, and documentation that only follow an already |
| 44 | +approved decision. A mechanical migration may cite the prior approval instead |
| 45 | +of reopening the design decision. |
| 46 | + |
| 47 | +For an urgent bug, security, or recovery fix, a maintainer could record a |
| 48 | +narrow exception containing the immediate risk, temporary scope, and required |
| 49 | +follow-up discussion. An exception is never inferred from urgency or from CI. |
| 50 | + |
| 51 | +## Proposed ClawSweeper role after approval |
| 52 | + |
| 53 | +If maintainers separately authorize implementation, ClawSweeper would only |
| 54 | +report high-confidence candidates. Candidate evidence may include changed SQL |
| 55 | +DDL, schema or migration files, Kysely/SQLite schema generation, and known |
| 56 | +durable-store entry points. A report would be advisory, non-blocking, and would |
| 57 | +state its evidence and confidence. |
| 58 | + |
| 59 | +The detector would suppress generated or schema-baseline-only changes when the |
| 60 | +functional change links an approval. It would permit a human `not material` |
| 61 | +disposition and recognize a recorded exception. It would not add labels, |
| 62 | +require a new label, alter merge authority, or treat a missing discussion as a |
| 63 | +defect in already-merged work. |
| 64 | + |
| 65 | +The existing `clawsweeper:needs-product-decision` and |
| 66 | +`clawsweeper:needs-maintainer-review` labels are the proposed human decision |
| 67 | +signals. This proposal does not create, apply, or automate either label. |
| 68 | + |
| 69 | +## Approval needed |
| 70 | + |
| 71 | +Before this page can become active policy or before any detector change starts: |
| 72 | + |
| 73 | +1. OpenClaw maintainers must confirm that the policy belongs in OpenClaw's |
| 74 | + contributor/PR process. |
| 75 | +2. They must approve the material-change threshold and exception route. |
| 76 | +3. They must approve reuse of the existing decision labels rather than a broad |
| 77 | + SQLite taxonomy label. |
| 78 | +4. They must separately authorize any ClawSweeper advisory implementation. |
| 79 | + |
| 80 | +Until all four decisions are recorded, normal review remains unchanged. |
0 commit comments