Skip to content

fix(config): keep Workboard PostgreSQL upgrades readable - #194648

Merged
roboclaw-bot merged 3 commits into
mainfrom
roboclaw/of-194626-workboard-pg
Nov 7, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
roboclaw/of-194626-workboard-pg

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Both review scenarios reproduced red at 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.
  • Final named config, database-port and read-worker run: 37 tests passed, 68.73 s wall under timeout 150s, with fresh config/admission reads, the exact published database shape, backups, and retained include bytes.
  • Real PostgreSQL 17 proof: the named Workboard port round-trip test passed twice on Blacksmith Testbox. It asserts the SQLite default is already on disk before physical publication, checks fresh selection in both directions, and compares every Workboard table cell. Final run: 12.945 s test, 46.79 s Vitest, 60.74 s remote command total. Testbox allocation, lease tbx_01m6vc9e40ha5jqwt8k4fhf8pz; source inputs SHA256-verified and lease stopped. Subsequent projection extraction preserves the tested behavior and is covered by final local regressions.
  • Added exactly 146 test LF lines for OF3; dedicated PR allocation is 239 total. No shared baseline/allocation growth. Wrapper inventory regression passes (1 selected case, 5.92 s wall).
  • Touched-file lint/typechecking passes for all nine changed TypeScript files. Final format and diff checks pass. Every local test/check used timeout; no broad suites, containers, packaging, or staging ran on the production host in OF3.
  • Independent autoreview of the complete staged candidate against 551f78257728, including reader/writer/port/state context: scoped-clean at P0–P2 after addressing the include finding.
  • MISSING: published-package 2026.11.1-to-candidate upgrade, foreground Gateway startup, and interrupted-port resume. The real PostgreSQL command test above proves the port round-trip, not those broader flows.
  • Exact-head CI run 42391379172 passed on 2568652eeab8: 58 successful jobs, 27 skipped, including all three PostgreSQL conformance shards and baseline ratchets. Both required openclaw/ci-gate statuses passed. Darwin proof and build artifacts also passed on this head. No CI reruns or repair pushes were needed.

@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime commands Command implementations size: S labels Nov 7, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 7, 2026
@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 2d43794fd658c3c9331b33300dd703054ea2466f, but the PR head is now 474dd9a987c2db1673781b9e194df0bf912cfbcb. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-07T15:03:36.991Z sha 2d43794 :: blocked before merge. :: [P1] Include the new helper in the extracted PR wrapper inventory | [P2] Preserve the legacy preimage and persist the repair through Doctor

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 7, 2026
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 7, 2026
@roboclaw-bot
roboclaw-bot merged commit 71ec4d2 into main Nov 7, 2026
157 of 158 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/of-194626-workboard-pg branch November 7, 2026 17:28
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime P1 High-priority user-facing bug, regression, or broken workflow. scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Workboard ported to PostgreSQL on 2026.11.1 makes the config unreadable after upgrading to 2026.11.5-beta.1

1 participant