Repository navigation
fix(config): keep Workboard PostgreSQL upgrades readable - #194648
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 8, 2026
…4648) A Workboard-only PostgreSQL setting published in 2026.11.1 stays readable after upgrading and keeps its Workboard-only meaning. Populated SQLite shared state is never switched to PostgreSQL implicitly, an empty shared state is not mistaken for the legacy shape, and the intent survives a scoped Workboard database port (fixes openclaw#194626). Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: steipete <[email protected]>
RomneyDa
added a commit
that referenced
this pull request
Nov 18, 2026
A Workboard-only PostgreSQL setting published in 2026.11.1 stays readable after upgrading and keeps its Workboard-only meaning. Populated SQLite shared state is never switched to PostgreSQL implicitly, an empty shared state is not mistaken for the legacy shape, and the intent survives a scoped Workboard database port (fixes #194626). Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: steipete <[email protected]> (cherry picked from commit 71ec4d2) Co-authored-by: RomneyDa <[email protected]>
maplel
pushed a commit
to maplel/openclaw
that referenced
this pull request
Nov 24, 2026
…law#194384) * docs: clarify PostgreSQL conformance coverage * fix(cron): keep one-shot finalization working on PostgreSQL 16 * test(database): reuse cron conformance for JSON conversion regression * test(postgres): accept fractional explain row counts (cherry picked from commit 7ab0143) Release adaptation: Only engine-owned jsonValue and retained cron enabled JSON replacement; preserve native boolean type with PG16 explicit ::json and SQLite json(). Omit unrelated PG docs/EXPLAIN test edits; retained one-shot enabled-transition caller present on baseline. Follow-up dispositions: e029e18 docs: document isolated PostgreSQL restore drills (openclaw#202704); 49f0740 fix(database): report disabled memory after a port (openclaw#202630); a80b564 fix: keep database workers healthy after silent connection loss (openclaw#201856); 3d91af2 fix(config): reject reserved PostgreSQL schema prefixes (openclaw#202097); 835d722 fix: catch incompatible ownership before porting to SQLite (openclaw#202101); 67796a6 fix: keep scheduled Git backups current on PostgreSQL (openclaw#201870); cc849dd fix: recover lease heartbeats after a PostgreSQL connection loss (openclaw#201858); 6594caf fix: prepare macOS runtime pins without the PostgreSQL secret (openclaw#202102); 6ca56cd docs: clarify PostgreSQL storage and backup coverage (openclaw#202086); a079190 fix(postgres): chat history slows under concurrent reads (openclaw#190129); 2ff4256 feat(database): keep PostgreSQL rollback captures in PostgreSQL (openclaw#196236); 96c685b feat(backup): restore PostgreSQL stores into a staging database for restore drills (openclaw#194808); fb83d65 fix: reduce transcript allocation when preparing native context seeds; 71ec4d2 fix(config): keep Workboard PostgreSQL upgrades readable (openclaw#194648); b6ed907 perf(sessions): persist active transcript facts for hydration (openclaw#193682) Validation: Baseline cron generated json(bound text) on PostgreSQL where json(text) is unavailable; helper and focused boolean regression retained. Exact PostgreSQL16 server proof unavailable; focused SQLite/helper tests queued. diff check passed. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 38fdd9b52704d588d9ca24ef8e391d644961c985) (cherry picked from commit fb935e6912388314851b05cb698ef038b83bbd07)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes #194626. Upgrading a published 2026.11.1 Workboard PostgreSQL installation selects PostgreSQL for populated SQLite shared state, making config reads and Doctor fail.
User Impact
The released Workboard-only setting keeps its meaning without a manual edit: shared state and other families stay on SQLite. Saving config records explicit engine intent through the normal backup flow; scoped Workboard ports preserve that intent before moving data. Empty shared-state files and explicit current engine selections retain their meaning. Reads only log a warning; no schema or protocol version bump.
Why This Change Was Made
The common config resolver recognizes the published database shape only with populated, unanchored SQLite shared state and a PostgreSQL Workboard anchor. The state owner supplies the population check in the existing artifact-preserving child inspector. The config writer preserves canonical engine fields as root-owned siblings of includes, leaving included connection references intact. Database-port preflight persists those fields before source capture, so publication and recovery do not depend on an anchor that the port replaces.
The simplification pass retained one normalization owner, moved write projection into that owner, and reused physical inspection/cleanup rather than adding another reader or cache. Whole PR production delta: +161/-12 lines; the private worker mode accounts for the additional boundary plumbing. The earlier extracted-wrapper CI failure is fixed by including the helper in the existing inventory.
Evidence
474dd9a987c2: empty existing SQLite was misclassified, and a Workboard publication left global PostgreSQL persisted. Include publication regressions also reproduced the lost-intent failure before repair.timeout 150s, with fresh config/admission reads, the exact published database shape, backups, and retained include bytes.tbx_01m6vc9e40ha5jqwt8k4fhf8pz; source inputs SHA256-verified and lease stopped. Subsequent projection extraction preserves the tested behavior and is covered by final local regressions.timeout; no broad suites, containers, packaging, or staging ran on the production host in OF3.551f78257728, including reader/writer/port/state context: scoped-clean at P0–P2 after addressing the include finding.2568652eeab8: 58 successful jobs, 27 skipped, including all three PostgreSQL conformance shards and baseline ratchets. Both requiredopenclaw/ci-gatestatuses passed. Darwin proof and build artifacts also passed on this head. No CI reruns or repair pushes were needed.