Skip to content

Commit ed20a56

Browse files
authored
docs: propose material SQLite discussion checkpoint (#1235)
1 parent ce25070 commit ed20a56

3 files changed

Lines changed: 87 additions & 0 deletions

File tree

‎config/documentation-site.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
"lifecycle": "proposed",
6363
"banner": "This is an unapproved proposal, not current operator guidance."
6464
},
65+
{
66+
"path": "sqlite-change-policy-proposal.md",
67+
"lifecycle": "proposed",
68+
"banner": "This is an unapproved policy proposal; it grants no review, label, or merge authority."
69+
},
6570
{
6671
"path": "repair/containment-validation-todo.md",
6772
"lifecycle": "historical",

‎docs/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ poster or WebP over accumulated before/after sets.
150150
- [Obsolescence policies](obsolescence-close-policies.md) — active policy map
151151
- [Unsponsored feature policy](unsponsored-feature-close-policy.md) — active
152152
- [Product direction policy](product-direction-close-policy.md) — active
153+
- [Material SQLite change discussion proposal](sqlite-change-policy-proposal.md)
154+
— proposed; maintainer decision required before any enforcement
153155
- [Author PR budget policy](author-pr-budget-close-policy.md) — active
154156
- [Stalled PR policies](stalled-pr-close-policies.md) — active
155157

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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

Comments
 (0)