You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Package objects: no hosted door relaxes a NOT NULL column after an upgrade declares storage.notNull:false, and the schema-drift remedy "publishing the object applies it" is refused (403 NOT_OVERRIDABLE) #33724
The two lines above record the maintainer's ruling on the framework half (the Turso REMOTE face). Everything below is the filer's text (os-bob), unchanged.
Summary
A field that was storage: { notNull: true } becomes optional in an app package. A database created before the change keeps the NOT NULL column, and every write that leaves the field empty is refused with "… is required". For a package object on 18.4.0:
The remedy text is wrong for sealed objects. The boot's [schema-drift] warning and migrate plan say publishing the object applies it. But PUT /api/v1/meta/object/<obj> answers 403 NOT_OVERRIDABLE: 'object/<obj>' is provided by a managed package and is sealed.
A hosted environment has no door to relax the column.
os package publish --install runs only the additive syncSchemas.
A production boot never alters a column (reconcileAndWarnDrift ignores autoMigrate under NODE_ENV=production).
relax_not_null is needs_confirm.
applyPublishedColumnChanges runs only on the metadata publish, revert, rollback and import doors (metadata-protocolensureObjectStorage), for runtime-authored items.
So the only path is os migrate apply against the environment database, which a cloud tenant cannot run.
Repro (measured on 18.4.0, SQLite)
Build a database with a package object field list_price: Field.currency({ required: true, storage: { notNull: true } }).
Upgrade the package so the field is optional with storage: { notNull: false }.
Restart with objectstack dev.
Log: [schema-drift] crm_product.list_price: the column is NOT NULL but the metadata declares storage: { notNull: false } …
pragma table_info still shows notnull=1.
An insert without the field returns 400 VALIDATION_FAILED "List Price is required".
PUT /api/v1/meta/object/crm_product returns 403 NOT_OVERRIDABLE.
objectstack migrate plan lists ~ crm_product.list_price [relax_not_null] under Needs confirmation. migrate apply --yes returns ✓ Applied 1 change(s) and sets notnull=0. This works locally only.
Expected
Either of these would close it:
Apply the relaxation on install. Relaxing is non-destructive, so a package install or upgrade could apply relax_not_null for columns that the package's own metadata explicitly declares notNull: false.
Offer a hosted door. At minimum, the drift warning and the plan should name a remedy that works for a sealed package object in a hosted environment.
Context
Consumer: steedos-labs/os-project-blackcat-crm#130 (PR #135), where crm_product.list_price lost NOT NULL in a package update. Locally the workaround is os migrate apply. The hosted demo environment cannot relax the column, so grade products cannot be created there.
Release: session_01QsR2jRsWwTRkuRCyQwvpAG · seat clock-out on the maintainer's wind-down order (「当前任务处理完,合并后就下班」 / 「不再认领新卡」) · next: a fresh claim by the next server seat
Resume-from: none (no open branch; the platform half landed as PR #33769)
State: the platform half (PR #33769) is merged and shipped in 18.5.0. The downstream reading on 18.5.0 hosted (comment of 2026-11-16 01:43Z on this card) shows re-saving still answers VALIDATION_. The next claimant's first step is to establish whether the remaining gap is in the framework or on the cloud side, which would route it to repo:cloud. Still p1.
Area o1-B, on the seat's hand-off of this p1. A read of origin/main719b6b53722d, made before claiming, per the predecessor's release 6912493094. ⛔ Not a claim. Nothing is built on this reading.
Verdict: both halves. Each is needed for the downstream symptom of 01:43Z on 18.5.0 hosted.
Cloud half: no framework path relaxes the column on a hosted managed upgrade.
relaxInstallDeclaredNotNull (PR fix(cloud-connection, driver-sql): a package upgrade relaxes the NOT NULL its own declaration makes nullable #33769) has one call site, marketplace-install-local-plugin.ts:4352. Only handleInstall reaches it (:3239), after syncSchemas, when the hot load succeeded. Its entry points are POST /api/v1/marketplace/install-local, os package install, os deploy to a self-hosted target, and installForGrant for UNMANAGED grants only (install-local-door-service.ts:32-36).
A hosted MANAGED install passes the control plane's answer straight through and never touches install-local (cloud-connection-plugin.ts:1422-1455).
os deploy to ObjectOS Cloud asks the control plane to install, then waits for "the environment rebuilds in the background" (deploy.ts:5-7, 34-36). In framework terms that rebuild is a fresh boot.
A boot never relaxes the column, by design (ADR-0113 D5). reconcileAndWarnDrift alters nothing under NODE_ENV=production (driver-sql/src/sql-driver-schema-sync.ts:1445-1449). relax_not_null is needs_confirm (schema-drift.ts:1240-1241). The helper's own doc says it is never called from a boot or a rehydrate (marketplace-install-declared-relaxations.ts:32). The changeset exported it "so a host's own install door can call the same step after its schema sync" (cloud-connection/CHANGELOG.md:32).
⇒ The control plane's managed install/upgrade rebuild must call the helper after its schema sync when the installed version changed. That code is not readable from this repository.
Framework half: the Turso REMOTE face skips the relax even when it is called.
The 17.6 release notes describe this transport as the one every hosted tenant database uses (content/docs/releases/v17/17-6.mdx:57). Its answers table has relax_not_null: 'needs-table-rebuild' (driver-turso/src/turso-driver.ts:687), and applyMigrationEntries skips that row before any DDL runs (:4787-4821).
turso-remote-migration-entries.test.ts:317-334 pins it: the relax comes back skipped and the column stays NOT NULL. os migrate apply cannot relax the column on such a database either.
Not confirmed from here: that the downstream demo environment's database is on the REMOTE face (that is a cloud fact).
The "… is required" message is the database NOT NULL refusal mapped to a validation error (types/src/data-error-classification.ts:2222-2235, objectql/src/not-null-refusal-error.ts:63). The record validator reads only required (record-validator.ts:1262).
Routing.
The cloud half goes to the seat to file the repo:cloud route.
The framework half would make the REMOTE face perform a SQLite table rebuild (create, copy, drop, rename, recreate indexes) on hosted tenant databases. A test pins that this transport does not do it today, and the face has no transactions (ADR-0119 D1). A hard-to-roll-back DDL on hosted data is a maintainer decision, so it goes to the seat and is not built here.
The card stays pm:queue, unclaimed, until both are routed.
Framework half (the REMOTE face performing a table rebuild to relax NOT NULL on hosted data; pinned skipped today, no transactions per ADR-0119 D1) is a hard-to-roll-back DDL on hosted data: it goes to the maintainer through a decision evaluation. Not built until ruled. This card stays unclaimed meanwhile.
Ruling: letter A · maintainer 「A 就地改这一列」 (the option he chose on the decision card) · recorded 2026-11-16T11:24Z
Recorded by the project's decision thread for the framework half of this card. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T11:23:26Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1XCgt71RM3Pab84LN5e9o7hW, card cmsg_01TenzsRopZj4jMbvjX8uz1XKeWWgGkqyBjQZ334zbRGUa, choice record cmsg_01TenzsRopZj4jMbvjX8uz1XSb7NcUR1CY7t7yXyhkNYwB.
Thread-read: 6914072668 (the seat's routing comment, the newest; none added since the analysis). Labels priority:p1, pm:queue, domain:server, lease:A4, unassigned. The cloud half is #34377 and is not ruled here.
The question he was asked
On a hosted environment, after an app upgrade makes a required field optional, the tenant database still refuses an empty value and every save that leaves the field out fails. By which means does the platform lift that constraint on a hosted database, or does it not?
A. The Turso REMOTE face relaxes a NOT NULL column in place, with libSQL's own column statement (ALTER TABLE t ALTER COLUMN c TO c <definition>), and runs no table rebuild. B (the SQLite table rebuild in one atomic batch) and C (the framework does nothing) are not taken.
The parameters below are the ones the analysis attached to A. The thread message that carried the card named them (parameter 4 in full, the other five by name, all six in the analysis file). He chose A without amending any.
Relax only.tighten_not_null, drop_column_default and the type and width entries keep today's answer on this face: skipped, with the face's reason. The statement does not revalidate existing rows, so using it to tighten would leave violating rows in place.
Applied only on a read-back. After the statement, the column is read back: nullable, with the type and the default it had before. Only then is the entry reported applied. A refused statement or a read-back that differs is reported skipped with its reason.
A refusal does not fall back to a rebuild. The build's first step pins the statement against a real sqld (the OS_TEST_SQLD_BIN rig). If a real sqld or a hosted database refuses it, the card comes back to the maintainer once; the seat does not switch to B by itself.
Only nullability changes. The new column definition restates the type and the default the database holds today. Nothing else is aligned on the way.
The local face is untouched. A local SQLite file keeps the existing table rebuild.
⛔ Not taken: B (the same outcome for a full copy of the table, a write lock held for the length of the copy, and a procedure that must restate every column, default and index or lose one silently; the hosted lock time and any server limit on a long batch are unmeasured). C (a shipped p1 with no way out for a hosted tenant). A with an automatic fall-back to B (two paths to pin and maintain, and a refusal is a fact the maintainer should see).
Two corrections to the premise this was routed on
The routing (6913887597, 6914072668) described the framework half as a hard-to-roll-back table rebuild on a face with no transactions. Read on origin/maina8e794f5:
The REMOTE face refuses INTERACTIVE transactions (beginTransaction: 'refused', turso-driver.ts:1074; [Decision] TursoDriver.beginTransaction 的 any 掩盖的是 Liskov 违例 —— 基类声明该服从谁,A 还是 C(重建自 #17878) #18063 ruled B, topic 专题:托管环境上的真事务(远程 libSQL / Turso,元数据提交不半落地)(暂停) #32500 paused). It does have an atomic batch: "A 'write' batch runs inside one transaction on the server" (remote-transport.ts:1352), and it already drops a column with its indexes on hosted data that way (turso-driver.ts:4855-4861). ADR-0119 D1 is about the engine's transaction() degrade and does not bind a batch the driver sends itself.
A table rebuild is not the only means. libSQL's extension documentation (libsql-sqlite3/doc/libsql_extensions.md, "ALTER TABLE ALTER COLUMN") lets the statement amend a column's constraints, and says "existing rows are not rewritten or revalidated". For a relax that is exactly enough: no existing row can violate the relaxed column. The driver sends no ALTER COLUMN today (0 hits in turso-driver.ts and remote-transport.ts).
Effort of the chosen letter
From the analysis's effort column: server lane, one PR. Nearest precedent: PR #23923 (+785/−16, 8 files), which gave this face its first column op (drop_column); an upper bound, not a like-for-like. B was also one PR plus a hosted measurement, so effort did not decide the letter.
Governing text
ADR-0113 D5 (as amended by ADR-0113 D5: name the managed package install as the deliberate relax for a sealed package object #33837): a column stricter than its declaration is relax_not_null, "still needs_confirm, never auto-applied", applied by the deliberate relax (the publish, or the managed install of the package for a sealed object). Unchanged; this ruling decides only how that act reaches the database on this transport.
No text was found ruling that the REMOTE face never alters an existing column, so this was a decision and not an execution question.
Protocol: Metadata-protocol: none. No metadata key is added or changed. The exported REMOTE_DRIFT_OP_ANSWERS row relax_not_null changes from needs-table-rebuild to applied (a widening); the building seat reads Clause-② as usual.
Readings behind the clauses (origin/maina8e794f5; code read, plus one local measurement)
relax_not_null: 'needs-table-rebuild' (packages/drivers/driver-turso/src/turso-driver.ts:687); the skip is pinned at turso-remote-migration-entries.test.ts:290 and :318.
relaxDeclaredNotNull and applyPublishedColumnChanges are both inherited on this face (turso-driver.ts:1141, :1146), so the one row serves the package install, the publish and os migrate apply.
PostgreSQL and MySQL already relax in place (driver-sql/src/sql-driver-schema-sync.ts:512, :541).
This face renders a declared column as its type plus NOT NULL and emits no declared DEFAULT (remote-transport.ts, columnDeclarationSQL).
Measured on the local libSQL engine (npm libsql 0.5.29, SQLite 3.45.1, @libsql/client 0.18.0, a file: database, no network): the in-place statement relaxes the column in about 1 ms at 1,000 and at 1,000,000 rows, a NULL insert then succeeds, the indexes and the row count are unchanged and integrity_check answers ok. A rebuild sent as one write batch takes 189 ms at 100,000 rows and 2,310 ms at 1,000,000, and a batch with one failing statement leaves the table, its rows and its indexes as they were.
Four facets (the analysis the maintainer read)
os-decision-facets
① 项目长远合理性:A 让 libSQL 面与 Postgres/MySQL 面同形(各用自己的就地语句),远程面特例表删一行;B 把整表重建抄到第二个面,特例机器增生;C 永久保留特例。
② 实际业务拉动:有;blackcat-crm 托管演示环境 8 个牌号写入全停(18.5.0,2026-11-16 复测),所有托管租户同类升级与托管发布都会撞;A、B 都满足,均需 #34377 同时落地。
③ 防 AI 犯错:A 被拒即跳过并写明原因、读回才报成功,放宽不产生非法数据;B 漏重述一个属性是静默丢失(本地面 #3696、#11321 出过);C 响亮但无出路。
④ 创业阶段不扩散:A 无新键无新门禁,只限放宽;B 多一套长期维护的重建过程;C 零成本但留 p1。
Prior rulings read: "table rebuild" turso REMOTE, relax_not_null, needs-table-rebuild, turso transaction remote → first 15 of each read; ADR-0113 D5, ADR-0119 D1; #23925, #23816, #23848, #18063, #32481, #32500; thread: 10 comments, no ruling; repo: objectstack-ai/objectstack
自检:只看①选 A;②③④ 是否翻转:否。
Confidence gaps, as stated to the maintainer: the measurement is on the local libSQL engine, not on Turso Cloud and not on an HTTP sqld, so whether a hosted database accepts the statement is unmeasured (parameter 4 exists for that). Whether hosted tenant databases are on the REMOTE face and on libSQL is a cloud fact, asked on #34377 and not answered yet. The Turso documentation site lists only four ALTER TABLE forms on a page that describes its newer engine, so the statement is libSQL's. The Salesforce comparison is from memory.
State
No label changes: the card stays pm:queue, priority:p1, unclaimed, for the repo:objectstack#1 seat, which builds it in its area o1-B. The body gains the Ruled: line.
Claim: PM loop · seat-handed p1, framework half after ruling 6915086281 · 2026-11-16T11:28Z
Session: session_01FEkQ5pHNFS9mn8hS13iGyL
Account: os-project-manager
Branch: claude/issue-33724-remote-relax-not-null
Worktree: objectstack-issue-33724
Domain: domain:server
Seat: repo:objectstack#1
File surface: packages/drivers/driver-turso/src/** (REMOTE_DRIFT_OP_ANSWERS row relax_not_null, the REMOTE face's column drift apply, remote-transport.ts statement and read-back helpers), its tests including turso-remote-migration-entries.test.ts and a real-sqld pin under the OS_TEST_SQLD_BIN rig, content/docs/** only where it states what the REMOTE face applies, .changeset/** (stop on breach; explain in the report). The cloud half is #34377 and is not built here.
Container & model: M, mode:subagent, model: TIER_DEFAULT, effort: high
Clause-②: yes (widening: the exported REMOTE_DRIFT_OP_ANSWERS.relax_not_null changes from needs-table-rebuild to applied, and the REMOTE face newly applies one drift op)
Metadata-protocol: none
Responsibility: objectstack (driver-turso REMOTE face): relax_not_null is skipped, so a hosted tenant database keeps NOT NULL after a package upgrade declares storage.notNull false | PR #33769 relaxes on the install door, but this face skips the op | every hosted tenant on the REMOTE face; steedos-labs/os-project-blackcat-crm demo environment today
Thread-read: 6915086281
Premise: holds (reading 6913887597; ruling 6915086281 corrects two premises of the routing, carried into the order)
Serial constraints cleared: #34336 (this area, packages/cloud-connection) touches no driver-turso file; no other in-flight claim on driver-turso known; the dev runs git merge-tree against every open PR touching packages/drivers/driver-turso before push
Pre-claim lane: domain:server (packages/drivers/driver-turso)
Pre-claim deps: PR #33769 merged (18.5.0); the hosted outcome also needs #34377 (cloud half), which does not block this build
Prior rulings read: maintainer ruling A 6915086281 (「A 就地改这一列」, six parameters); ADR-0113 D5 (as amended by #33837); #23925 / PR #24014 (REMOTE_DRIFT_OP_ANSWERS as the one declaration); #18063 B, #32481, #32500 (no interactive transactions on this face); ADR-0119 D1
{
"issue": 33724,
"status": "blocked",
"branch": "claude/issue-33724-remote-relax-not-null",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34408",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"summary": "Ruling 6915086281 letter A is built in driver-turso. REMOTE_DRIFT_OP_ANSWERS.relax_not_null is now 'applied'. A new private arm, applyRemoteRelaxNotNull, sends libSQL's `ALTER TABLE t ALTER COLUMN c TO DEFINITION`. The definition is cut from the table's stored CREATE TABLE with only its `[CONSTRAINT n] NOT NULL [ON CONFLICT x]` clause removed (new remote-relax-not-null.ts). The statement goes in one write batch with a check that sqlite_master.sql now equals the planned SQL exactly, and a mismatch rolls the batch back. The entry is applied only when the column reads back nullable with the same type, DEFAULT and pk. A refusal is skipped with its reason logged, and nothing falls back to a rebuild. Measured on embedded libSQL (SQLite 3.45.1): its splice ends the old definition at the first comma, so a column whose definition holds a comma (DEFAULT ('a,b'), NUMERIC(10, 2), a comment) is refused whole and left byte-identical. BLOCKED on two things only the PM can clear. (1) Ruling parameter 4's first step, the real-sqld pin, is NOT MEASURED: this container's classifier refused downloading a sqld binary (npm pack @sqld/linux-x64). The pin is written (turso-remote-relax-not-null-sqld.test.ts, gated on OS_TEST_SQLD_BIN), and CI has no sqld. (2) The change falsifies a pin outside the declared file surface, which I did not edit (stop on breach): packages/runtime/src/domains/meta-object-publish-column-changes.test.ts:204 is red on this branch, measured: `expected [] to deeply equal [ 'warning' ]`. The publish now relaxes the remote column end to end. That pin is the only cover of the object-column-changes-not-applied advisory, so its rewrite must keep the advisory covered. The PR stays draft and Test Core will be red on that file until the surface is extended.",
"tests": "At head 342fedfdfa. Under the lock: `pnpm --filter @objectstack/driver-turso build && typecheck && vitest run` on the 4 touched files gave VERDICT command-exit 0, Test Files 3 passed and 1 skipped (the sqld file, no OS_TEST_SQLD_BIN), Tests 33 passed and 2 skipped. tsc --listFiles shows all 4 touched test files in the program. The full suite, `pnpm --filter @objectstack/driver-turso exec vitest run --maxWorkers=2`, gave VERDICT command-exit 0, Test Files 100 passed and 1 skipped, Tests 2562 passed and 36 skipped. Ablations used scripts/ablation-replace.mjs: the subject is imported from src (./turso-driver.js), so no dist leg was needed. Each mutation landed (anchor 1->0, blob e91ad7ca8fe6 -> mutated) and was restored with blob == HEAD and an empty `git diff HEAD`. (1) Check forced true (`= ? THEN 1` -> `= ? OR 1 THEN 1`): 1 failed of 17, the unpredicted-splice pin. The splice that dropped the CHECK was reported applied, which shows the pragma read-back alone cannot see it. (2) relax_not_null back to 'needs-table-rebuild': 4 failed of 23 (apply-limit, in-place relax, check, install door). Outside the surface, measured: `pnpm --filter '@objectstack/runtime^...' build && vitest run src/domains/meta-object-publish-column-changes.test.ts` gave VERDICT command-exit 1, 1 failed and 3 passed: the Turso REMOTE publish pin, as described in summary.",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derived 100 commands for 8 paths at 342fedfdfa (merge base 183a89e34). Each was run with its exit captured before any pipe. `--ran` reconciliation exit 0: 100 derived, 96 run, 4 NOT-MEASURED, 0 UNRUN. 96 exited 0, including check:durability-log-level, check:nul-bytes, check:doc-authoring, check:issue-citations, check:test-source-alias, check:cross-package-test-inputs and check:driver-conformance. NOT MEASURED: spec check:skill-examples and check:dual-build-cjs-loads (exit 3, PREREQUISITE NOT MET, unbuilt packages); check:query-options-erasure and check:type-check-debt (exit 124 at a 400 s timeout on the shared box; CI owns them). PR check-runs on 342fedfdfa at report time: every gate-carrying run in_progress (Check Changeset, Lint x8, Type Check x4, PR-body guards, Governed Surface Queue Guard, Spec property liveness); skipped: 18.x upgrade harness, Packed-tarball smoke, Queue verdict, Borrowed queue verdict, Schedule gate. Expected red: Test Core, on the runtime publish pin named in summary. merge-tree: none needed, since 0 of the 54 open PRs touch packages/drivers/driver-turso.",
"dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3: git push of the branch (not REST); one fleet-write relay pr_create (repository_dispatch to objectstack-ai/objectstack, which ran POST /repos/objectstack-ai/objectstack/pulls, draft, PR #34408, read-back identical, 10498 bytes); one post-stamped comment on #33724 (this report)",
"open_questions": [
{ "question": "How is ruling parameter 4's first step measured, given this container refused downloading a sqld binary?", "options": ["A: the PM or maintainer runs `OS_TEST_SQLD_BIN=/path/to/sqld pnpm --filter @objectstack/driver-turso exec vitest run src/turso-remote-relax-not-null-sqld.test.ts` on a box with sqld and records the answer on the card", "B: the maintainer permits the download (npm pack @sqld/linux-x64) in this container, and a fix round runs the pin here", "C: run the statement once against a hosted Turso database through the cloud lane"], "recommendation": "A or B. The ruling makes this measurement a precondition to landing, and the pin is already written. If sqld refuses the statement, the card goes back to the maintainer under parameter 4." },
{ "question": "Should the file surface extend to the two pins this change makes false?", "options": ["A: extend the surface to packages/runtime/src/domains/meta-object-publish-column-changes.test.ts and packages/cli/src/commands/migrate/apply.remote-face.integration.test.ts. The fix round rewrites the runtime pin to assert the remote publish relaxes the column, with no advisory. It keeps the not-applied advisory covered by a remote column the face refuses, such as a DEFAULT holding a comma made by hand, and turns the cli sqld expectations for memo/relax_not_null from not-applied to applied", "B: land the runtime and cli rewrites as a separate PR in the same queue"], "recommendation": "A, because the PR cannot go green in Test Core without the runtime pin, and the two are one behaviour change." }
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: this card (#33724) · noted, not filed: packages/cli/src/commands/migrate/apply.remote-posture.test.ts:112 and plan.apply-limit.test.ts:210 stub driftApplyLimit with relax_not_null limited. They stay green but describe the pre-ruling posture, and the next fix round should re-point them to tighten_not_null",
"carrier: none · noted, not filed: libSQL's ALTER COLUMN ends the old definition at the first comma after the column name (embedded libSQL, SQLite 3.45.1, measured in this run). This is an upstream libSQL behaviour, and on this face it is a loud refusal and never silent damage (the in-batch check plus rollback). Whether hosted sqld shares it is not measured"
]
}
The dev's report 6917853648 measured that ruling 6915086281 (A) makes three pins outside the declared surface describe the pre-ruling posture. The surface of claim 6915158382 is extended to:
packages/runtime/src/domains/meta-object-publish-column-changes.test.ts: the Turso REMOTE publish now relaxes the column, so that pin asserts the relax with no advisory. The object-column-changes-not-applied advisory stays covered by a remote column the face refuses (a definition holding a comma).
packages/cli/src/commands/migrate/apply.remote-face.integration.test.ts: the sqld expectations for relax_not_null move from not-applied to applied.
packages/cli/src/commands/migrate/apply.remote-posture.test.ts and plan.apply-limit.test.ts: the stubs are re-pointed from relax_not_null to tighten_not_null.
Tests only; no source outside packages/drivers/driver-turso/** changes. Clause-② and Metadata-protocol lines are unchanged. Still open before landing: ruling parameter 4's first step, the real-sqld pin (not measured in this container), with the seat.
{
"issue": 33724,
"status": "blocked",
"branch": "claude/issue-33724-remote-relax-not-null",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34408",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"summary": "Fix round 1 on head a6797ba07c, covering the three pins outside driver-turso that claim amendment 6917885070 added to the surface. Only tests changed. (1) runtime meta-object-publish-column-changes.test.ts: the Turso REMOTE publish now relaxes title in place, with no object-column-changes-not-applied advisory, and a create omitting the field succeeds. The advisory stays covered on the same face by a column whose stored definition was given a comma by hand (CHECK (instr(\"title\", ',') >= 0)); libSQL refuses that relax, the publish answers the advisory, and the column keeps NOT NULL. (2) cli apply.remote-face.integration.test.ts (sqld-gated): the relax names no limit and the plan footer counts 1, not 2. The first --yes apply lands the relax, so memo reads nullable from then on and later cases list only the drop and the tightening. Seven module-top imports were added because check:test-source-alias judges an edited test file; that gate reddened Lint & Repo Gates on cfc0ab8fc2. (3) cli apply.remote-posture.test.ts and plan.apply-limit.test.ts: the stubs limit tighten_not_null alone and apply the relax. Still blocked on ruling parameter 4's first step, the real-sqld pin. It is gated as written and NOT MEASURED, and the seat holds it; no further download was attempted. The PR stays draft.",
"tests": "All under the lock. Build of runtime^..., cli^... and driver-turso: VERDICT command-exit 0. GREEN at a6797ba07c: runtime meta-object-publish-column-changes.test.ts, Test Files 1 passed, Tests 5 passed (5). cli --project unit plan.apply-limit.test.ts + apply.remote-posture.test.ts, Test Files 2 passed, Tests 24 passed (24). cli --project integration apply.remote-face.integration.test.ts, Tests 3 passed and 6 skipped (9); the sqld cases skip without OS_TEST_SQLD_BIN, so they are NOT MEASURED. PREVIOUS-HEAD BEHAVIOUR leg: relax_not_null was set back to 'needs-table-rebuild' through ablation-replace (blob e91ad7ca8fe6 -> 72938d38df31) and driver-turso was rebuilt. ablation-dist-preflight found the marker in 2 built files (dist spells it relax_not_null: \"needs-table-rebuild\"; the tree probe used --source-marker). The runtime file then gave 1 failed and 4 passed: the in-place relax pin went red because the advisory came back, and the refused-relax advisory pin stayed green under both behaviours, as designed. Restore: blob == HEAD, git diff HEAD empty, preflight --absent passes, tree clean. The cli stub files have no driver behaviour to ablate, since each stub declares its own posture.",
"gates": "Round-1 families run locally, exit captured before any pipe: check:route-envelope, check:cross-package-test-inputs, check:nul-bytes, check:test-source-alias, check:undeclared-dep-imports, check:issue-citations and check:doc-authoring exit 0. check:i18n, check:i18n-coverage and check:i18n-walk-parity exit 3 (PREREQUISITE NOT MET, unbuilt packages): NOT MEASURED locally, run by CI in Lint & Repo Gates. The round-0 100-family local run stands for the driver-turso paths. dispatch-gates warned the tree is 12+ commits behind origin/main. main was not merged: no conflict and no main-caused red. CI check-runs on a6797ba07c: 38 success, 15 skipped, 0 failure. They include Test Core success (8/8 shards), Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Dogfood Regression Gate success, Governed Surface Queue Guard success, Live E2E UI success and Test UI success. On cfc0ab8fc2, Lint & Repo Gates failed at check:test-source-alias, which was fixed in a6797ba07c. On 342fedfdfa the Test Core shards were cancelled by the next push.",
"dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "5 this round: git push x2 (not REST); one fleet-write relay issue_patch of PR #34408's body (PATCH /repos/objectstack-ai/objectstack/issues/34408, read-back identical, 13286 bytes); one post-stamped comment on #33724 (this report). Round 0 had one pr_create and one comment.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Fact for the framework half, read from cloud code at origin/maine4750e49322f (2026-11-16T15:26Z): hosted tenant databases are on the Turso REMOTE face.
Provisioning: createDefaultEnvironmentAdapters (packages/service-tenant/src/environment-provisioning.ts:1522) registers only Turso: the live TursoEnvironmentDatabaseAdapter when real Turso credentials are set (production must set them), otherwise a turso-aliased local SQLite adapter for dev/CI, otherwise none. The Turso adapter hands out a libsql:// url, or http:// for a plaintext self-hosted endpoint, both remote urls (connectionUrl, environment-provisioning.ts:352-362).
Runtime: ArtifactEnvironmentRegistry.createDriver (packages/objectos-runtime/src/artifact-environment-registry.ts:819) builds new TursoDriver({ url: databaseUrl, authToken }) with no syncUrl, and TursoDriver.detectMode reads a libsql:// url without syncUrl as remote. cloud's remote-autonumber-hosted.e2e.test.ts pins that the real registry answers transportMode === 'remote' for such a url, and a cloud dev measured transportMode=remote on a hosted tenant driver (report 6918456074 on metadata: an object's fields come back in alphabetical order after save/publish, so the default create form loses the declared field order #32398).
{
"issue": 33724,
"status": "blocked",
"branch": "claude/issue-33724-remote-relax-not-null",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34408",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"head": "709476e32848a551c98be6574fcf1736b90b4cf8",
"summary": "Fix round 2 on head 709476e328 covers review#2 items N1, N2 and N3 only. N1: the changeset names the published widening as TursoDriver.applyMigrationEntries applying relax_not_null, and driftApplyLimit('relax_not_null') answering null, on the remote face. It no longer calls REMOTE_DRIFT_OP_ANSWERS exported. N2: when a batch fails, applyRemoteRelaxNotNull reads the stored table SQL again. If the SQL reads as before, the log says nothing landed. If it no longer reads as before, or cannot be read, the log says the outcome is unknown and the next drift read decides. The log never claims a rollback. N3: a missing column and an already-nullable column each log why nothing was sent. The log texts are pinned with the existing logger.warn spy pattern. The status stays blocked only on M1 (the real-sqld pin) and S1 (the comma class ruling), which are still with the maintainer and untouched. The PR body was not patched; the Fix round 2 section is in summary_for_pr_body.",
"summary_for_pr_body": "## Fix round 2\n\nAnswers review#2 (contract-review FAIL 6920999561 on a6797ba0), items N1, N2 and N3 only. M1 (the real-sqld pin) and S1 (the comma refusal class) are still with the maintainer and untouched. The docs page and the maintainer summary are unchanged.\n\n- **N1, the changeset.** It no longer calls `REMOTE_DRIFT_OP_ANSWERS` exported. It names the published widening as behaviour on the remote face: `TursoDriver.applyMigrationEntries` now applies a `relax_not_null` entry, and `TursoDriver.driftApplyLimit('relax_not_null')` answers `null` where it answered the table-rebuild sentence.\n- **N2, a failed batch's outcome.** The catch in `applyRemoteRelaxNotNull` reads the stored table SQL again before it says anything.\n - If the SQL reads as it did before the send, the log says the batch failed and nothing landed.\n - If the SQL no longer reads as before, the log says the outcome is unknown and the next drift read decides. A transport error that arrives after the server committed lands here.\n - If the SQL cannot be read back, the log also says the outcome is unknown and the next drift read decides.\n - The log never says the batch rolled back.\n- **N3, the early return.** A missing column logs `the table has no such column; nothing was sent`. An already-nullable column logs `the column is already nullable; nothing was sent`. Both lines use the existing `[schema-drift] relax_not_null on TABLE.COLUMN not applied on the Turso REMOTE transport:` warn line.\n\nPins in `turso-remote-migration-entries.test.ts` use the existing `vi.spyOn(driver.logger, 'warn')` pattern; no new framework was added.\n- The converged re-run asserts the already-nullable line for both columns.\n- The comma refusal asserts `the stored table SQL reads as before, so nothing landed`.\n- A new case wraps the transport's `batch`: the real send commits, and then `fetch failed: socket hang up` is thrown. The case asserts four things:\n - the entry is skipped;\n - the column reads nullable;\n - the line says the outcome is unknown and does not say `nothing landed`;\n - the next drift read finds no relax left on that column.\n\n<details><summary>Verification on 709476e328</summary>\n\nAll runs were under the verify lock.\n- Closure build of `@objectstack/driver-turso...`: VERDICT command-exit 0.\n- driver-turso typecheck: passed.\n- Targeted files (migration-entries, remote-relax-not-null, drift-apply-limit, sqld): Test Files 3 passed and 1 skipped; Tests 34 passed and 2 skipped (36). The sqld file is gated and NOT MEASURED, which is M1.\n- Full driver-turso suite: Test Files 100 passed and 1 skipped (101); Tests 2563 passed and 36 skipped (2599); VERDICT command-exit 0.\n\nAblations went through `scripts/ablation-replace.mjs` against `src`, with the anchor hitting 1 time and dropping to 0. Each run was restored to blob == HEAD with `git diff HEAD` empty.\n- `now === stored` forced to `true`: the unknown-outcome case went red, with 1 failed and 17 passed.\n- The already-nullable `skip(...)` replaced by a bare `return false`: the converged case went red, with 1 failed and 17 passed.\n\nQuick gates, all exit 0: check-durability-degradation-log-level, check-nul-bytes, check-test-source-alias, check-changeset-no-major, check-empty-changeset, check-closing-keyword-parity, check-issue-citations.\n</details>\n",
"tests": "All under the lock (slot dev-33724). Closure build driver-turso...: VERDICT command-exit 0. driver-turso typecheck passed. Targeted (migration-entries, remote-relax-not-null, drift-apply-limit, sqld): the first run was red at 1 failed / 33 passed. The new case's last assertion wrongly expected no relax at all, but only price was relaxed and code still had one. The assertion was narrowed to ['code'] (commit 709476e328), and the re-run gave Test Files 3 passed and 1 skipped, Tests 34 passed and 2 skipped (36). The sqld file is gated and NOT MEASURED (M1). Full driver-turso suite: Test Files 100 passed and 1 skipped (101), Tests 2563 passed and 36 skipped (2599), VERDICT command-exit 0. Ablations used ablation-replace against src; the tests import src, so no dist was involved. (1) 'now === stored' forced to 'true': anchor 1->0, blob ab890bfbaec4->dad17829ce49, and the unknown-outcome case went RED (1 failed / 17 passed). (2) The already-nullable skip(...) replaced by 'return false': blob ab890bfbaec4->14f421c65e8d, and the converged case went RED (1 failed / 17 passed). Both restored to blob == HEAD (ab890bfbaec4), with git diff HEAD empty.",
"gates": "Local, with exit captured before any pipe: check-durability-degradation-log-level, check-nul-bytes, check-test-source-alias, check-changeset-no-major --base origin/main, check-empty-changeset --base origin/main, check-closing-keyword-parity and check-issue-citations, all exit 0. dispatch-gates --commands warned that the tree is 19 commits behind origin/main; main was not merged. The round-0 and round-1 local runs stand for the other families. CI on 709476e328: no check-runs were registered yet when this report was read (total_count 0), so NOT MEASURED; the report was not held for CI. Intermediate head 6a05a50aa6: 14 success, 15 skipped and 21 in_progress at read time (Test Core 1-8/8, Build Core and the Lint and Type Check jobs in progress), 0 failure. The previous round's head a6797ba07c: 38 success, 15 skipped, 0 failure.",
"dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "1 this round: one post-stamped relay comment on #33724 (this report). git push x2 is not REST. The PR body was not patched, per the updated common.md rule.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Measurement: ruling 6915086281 parameter 4, first step · real sqld · maintainer chose 「B 放行一个域名,云端测」 · recorded 2026-11-16T15:51Z
Recorded by the project's decision thread for the real-sqld pin of PR #34408. This is how the pin gets measured, not a new letter on the card's question: ruling 6915086281 (letter A, in-place ALTER COLUMN) stands. Thread-read: 6920763007 (the newest comment on the card), and review#2's record 6920999561 on the PR.
What he was asked, and what he chose
The pin was written but not measured, because no cloud container and no CI job had a sqld. Four ways were put to him on a decision card (decision thread cmsg_01TenzsRopZj4jMbvjX8uz1XLTZrsxvQSLh7Kv8mkgaSpu, card cmsg_01TenzsRopZj4jMbvjX8uz1XWPxQuBZDzCGqmKX6wqqMFq):
「A 在有 sqld 的电脑上跑」: a person with sqld runs the command and pastes the output.
「B 放行一个域名,云端测」: he approves one allowed host on the cloud environment, the thread takes sqld from Turso's official image and measures (recommended).
「C 在托管 Turso 库上跑」: one run on a hosted database through the cloud lane.
「D 用 npm 上的第三方包」: the @sqld/linux-x64 npm package, which needs nothing from him but is a third-party repack of a June 2025 pre-release.
He chose B at 2026-11-16T13:43:30Z, and approved the environment change at about 2026-11-16T15:40Z: pkg-containers.githubusercontent.com is now an allowed host of the Default cloud environment.
Two facts about the container that the options rested on (both measured):
github.com/tursodatabase/... answers 403 from the session's GitHub repository scope, not from the network policy. Allowing github.com would not have fetched a release.
ghcr.io was already reachable (token, tags, manifests). Only the host that serves the image layers was refused by the proxy.
The binary
ghcr.io/tursodatabase/libsql-server:v0.24.33, linux/amd64 manifest sha256:756fb4d34447cfa9507dceb3a8e680435d7f2173e2aa680f44a1329e774f7d31, the image's /bin/sqld. Each of the 11 layers matched its digest.
--version: sqld sqld 0.24.33 (40a151bd 2025-12-19); sqlite_version() on it answers 3.45.1.
Kept for later OS_TEST_SQLD_BIN runs at /mnt/project-files/pm-orders/objectstack/sqld/ (the binary, fetch-sqld.sh, comma-probe.mjs, a README).
Result 1: the pin passes. A real sqld accepts the statement.
Head a6797ba07c832692288d361978c8b162714a0d0f, after pnpm install --frozen-lockfile and pnpm --filter '@objectstack/driver-turso...' build (exit 0).
OS_TEST_SQLD_BIN=…/sqld pnpm --filter @objectstack/driver-turso exec vitest run src/turso-remote-relax-not-null-sqld.test.ts --reporter=verbose (exit 0)
✓ … > FIRST: the server accepts the bare statement, and the column reads back nullable with its type and DEFAULT 27ms
[schema-drift] the install of package 'com.acme.crm' applied relax_not_null on sqld_p.price
✓ … > the install door on a remote-mode driver: reported applied on a read-back, rows and index unchanged 63ms
Test Files 1 passed (1)
Tests 2 passed (2)
The first case asserts the stored table SQL after the statement is byte-equal to the expected text, so the server's splice matches the embedded engine's for a comma-free definition. Without OS_TEST_SQLD_BIN the same file reads 2 skipped (measured at 342fedf), so the pass is the server's.
Result 2: the second gated file has one wrong expectation (a test fix, not a refusal)
OS_TEST_SQLD_BIN=…/sqld pnpm --filter @objectstack/cli exec vitest run --project integration src/commands/migrate/apply.remote-face.integration.test.ts --reporter=verbose (exit 1)
(after pnpm --filter '@objectstack/cli...' build, exit 0)
✓ plan: runs, lists the three drifts, says additive work was not examined, and moves nothing
✓ plan, human face: the tightening names the transport's limit, never --allow-destructive; the relax names none; the drop keeps it
✓ apply --yes, human face: the listing names the limit, only the drop is offered a re-run, and the confirmed relax lands
× apply without --allow-destructive: nothing left it cannot apply, keeps the destructive two back, exits 0
→ expected 'nothing_safe_to_apply' to be undefined (apply.remote-face.integration.test.ts:460)
✓ apply --allow-destructive: the drop lands on the server, the tightening it cannot express is named, the verdict is partial
✓ apply --allow-destructive, human face: each entry it could not apply is named by table, column and kind, and the run says PARTIAL
Tests 1 failed | 8 passed (9)
Reading: the relax lands on the server in the case before (that case passes and reads memo nullable). The failing case then has no safe entry left, and apply.ts:667 answers message: 'nothing_safe_to_apply' on that path. The fix round wrote expect(apply.payload.message).toBeUndefined() without a sqld to run it on. The expectation is wrong; the product behaviour is the one the case's title describes. For the building seat: fix the expectation, rerun this file with the binary above, and record it. Review#2's M1 asks for both gated files.
Result 3: the comma class is real on a real sqld (review#2's S1)
comma-probe.mjs, raw @libsql/client against the same server, one table per row, the column "v" followed by another column unless noted:
stored definition of the column
ALTER TABLE … ALTER COLUMN "v" TO <same minus NOT NULL>
table afterwards
"v" REAL NOT NULL DEFAULT 0
accepted
only the NOT NULL clause gone
"v" NUMERIC(10, 2) NOT NULL
refused
byte-identical, still NOT NULL
"v" NUMERIC(10,2) NOT NULL
refused
byte-identical, still NOT NULL
"v" TEXT NOT NULL DEFAULT ('a,b')
refused
byte-identical, still NOT NULL
"v" TEXT NOT NULL CHECK ("v" IN ('a','b'))
refused
byte-identical, still NOT NULL
"v" NUMERIC(10, 2) NOT NULL as the last column
refused
byte-identical, still NOT NULL
The refusal text shows the splice, for example SQLite error: CREATE TABLE "t1" ("id" TEXT PRIMARY KEY, "v" NUMERIC(10, 2), 2) NOT NULL, "z" TEXT): the server ends the old definition at the first comma after the column name, as the embedded engine does. So the dev's note "whether a hosted sqld carries the same splice is not measured" is now measured for sqld 0.24.33: it does. The refusal is clean every time; nothing is half-changed.
Who is in the class, read on the head: the REMOTE face renders a column as TEXT, INTEGER or REAL, plus NOT NULL, with no DEFAULT and no width (remote-transport.tsmapFieldTypeToSQL and columnDeclarationSQL). A column this face created cannot hold a comma, and the card's own case (crm_product.list_price on a hosted environment, which cloud fact 6920763007 puts on this face) is outside the class. A column is inside it only when its table was made some other way: hand-written SQL, or a database built elsewhere and then served over this transport. How many hosted tenants hold such a column is NOT MEASURED.
State
Parameter 4's first step is met for the statement itself: a real sqld accepts it.
Parameter 4 also says a refusal comes back to the maintainer once. The comma class is such a refusal, for a class of columns. It is being put to him now in the same decision thread; his answer will be recorded here.
Measurement addendum to 6921391723 · the same two gated files on the newer head · 2026-11-16T15:53Z
The dev's fix round 2 (report 6921327686, head 709476e32848a551c98be6574fcf1736b90b4cf8) landed on the card two minutes before record 6921391723, which had read the thread through 6920763007 and measured a6797ba0. Both OS_TEST_SQLD_BIN files were run again on 709476e3 (driver-turso rebuilt, exit 0), same sqld 0.24.33 binary:
driver-turso src/turso-remote-relax-not-null-sqld.test.ts exit 0 Tests 2 passed (2)
cli src/commands/migrate/apply.remote-face.integration.test.ts exit 1 Tests 1 failed | 8 passed (9)
× apply without --allow-destructive: nothing left it cannot apply, keeps the destructive two back, exits 0
→ expected 'nothing_safe_to_apply' to be undefined
Same readings as 6921391723: the real-sqld pin passes on the current head, and the one red is the cli case's own expectation at :460 (apply.ts:667 answers message: 'nothing_safe_to_apply' once the relax has landed). The seat can rerun after fixing it with the binary at /mnt/project-files/pm-orders/objectstack/sqld/sqld-0.24.33-linux-x64 (sha256 in the README beside it; copy it to local disk first).
{
"issue": 33724,
"status": "blocked",
"branch": "claude/issue-33724-remote-relax-not-null",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34408",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"head": "715fc6a1fe5ef41fc3fe84a114666d4f8a3f9874",
"summary": "Fix round 3 on head 715fc6a1fe. The only change is the cli gated case 'apply without --allow-destructive' (apply.remote-face.integration.test.ts, formerly :460). Once the relax has landed, the run has no safe entry and apply.ts answers message 'nothing_safe_to_apply'. The expectation now reads toBe('nothing_safe_to_apply'), an exact value, not a pattern that would also pass the old undefined. Against the real sqld 0.24.33 named by record 6921391723 (sha256 verified, executed in this container), both gated files pass under the lock: driver-turso sqld pin 2/2 and cli gated file 9/9. M1 is closed. The status stays blocked only on S1 (the comma class ruling), which is untouched. The PR body was not patched; the Fix round 3 section is in summary_for_pr_body.",
"summary_for_pr_body": "## Fix round 3\n\nM1 is closed by the maintainer's real-sqld measurement (record 6921391723 on a6797ba0, addendum 6921439242 on 709476e3). Official `sqld` 0.24.33 accepts the in-place relax, and the driver-turso pin passes 2/2. That measurement found one wrong expectation in the cli gated file, and this round fixes only that. S1 (the comma class) is untouched and waits for its own ruling.\n\n- **`apply.remote-face.integration.test.ts`, the case \"apply without --allow-destructive\".** The relax lands in the case before it. So this run has no safe entry left, and `apply.ts` answers `message: 'nothing_safe_to_apply'` on that path. The expectation now states that exact value: `toBe('nothing_safe_to_apply')`, where it read `toBeUndefined()`. No pattern was added, so the old expectation's undefined would not pass. No product code changed.\n\n<details><summary>Real-sqld runs on 715fc6a1fe</summary>\n\nThe binary is the one the record names. It was copied to local disk from the project files and checked: sha256 `28d1039e42fbee5ad51e5cd0a6494146cd7bf0309190a85543b98264f6aa816f`, `--version` answers `sqld sqld 0.24.33 (40a151bd 2025-12-19)`. Its path was passed as `OS_TEST_SQLD_BIN`. Both runs were under the verify lock, after a build of the `@objectstack/cli...` and `@objectstack/driver-turso...` closures (VERDICT command-exit 0).\n\n```text\ndriver-turso src/turso-remote-relax-not-null-sqld.test.ts VERDICT command-exit 0\n ✓ FIRST: the server accepts the bare statement, and the column reads back nullable with its type and DEFAULT\n ✓ the install door on a remote-mode driver: reported applied on a read-back, rows and index unchanged\n Test Files 1 passed (1)\n Tests 2 passed (2)\n\ncli --project integration src/commands/migrate/apply.remote-face.integration.test.ts VERDICT command-exit 0\n ✓ CONTROL: plan on a file, human face: the tightening keeps \"--allow-destructive\", the footer is unchanged\n ✓ CONTROL: apply --yes on a file, human face: the tightening keeps \"--allow-destructive\", both destructive entries are offered a re-run\n ✓ CONTROL: apply --allow-destructive on a file: exit 0, every entry applied, nothing skipped\n ✓ plan: runs, lists the three drifts, says additive work was not examined, and moves nothing\n ✓ plan, human face: the tightening names the transport's limit, never --allow-destructive; the relax names none; the drop keeps it\n ✓ apply --yes, human face: the listing names the limit, only the drop is offered a re-run, and the confirmed relax lands\n ✓ apply without --allow-destructive: nothing left it cannot apply, keeps the destructive two back, exits 0\n ✓ apply --allow-destructive: the drop lands on the server, the tightening it cannot express is named, the verdict is partial\n ✓ apply --allow-destructive, human face: each entry it could not apply is named by table, column and kind, and the run says PARTIAL\n Test Files 1 passed (1)\n Tests 9 passed (9)\n```\n\nThe red leg is the measurement record itself: on a6797ba0 and on 709476e3, the old expectation failed with `expected 'nothing_safe_to_apply' to be undefined` at line 460, and the other 8 cases passed.\n\nQuick gates, all exit 0: check-nul-bytes, check-test-source-alias, check-issue-citations, check-closing-keyword-parity.\n</details>\n",
"tests": "Worktree recreated from origin/claude/issue-33724-remote-relax-not-null at 709476e328, then pnpm install --frozen-lockfile (exit 0). Binary: /mnt/project-files/pm-orders/objectstack/sqld/sqld-0.24.33-linux-x64, copied to the scratch dir. sha256sum 28d1039e42fbee5ad51e5cd0a6494146cd7bf0309190a85543b98264f6aa816f matches; chmod +x; --version 'sqld sqld 0.24.33 (40a151bd 2025-12-19)'. Under the lock (slot dev-33724), closure build of @objectstack/cli... and @objectstack/driver-turso...: VERDICT command-exit 0. With OS_TEST_SQLD_BIN set, driver-turso src/turso-remote-relax-not-null-sqld.test.ts --reporter=verbose gave: '✓ FIRST: the server accepts the bare statement, and the column reads back nullable with its type and DEFAULT', '✓ the install door on a remote-mode driver: reported applied on a read-back, rows and index unchanged', 'Test Files 1 passed (1)', 'Tests 2 passed (2)', VERDICT command-exit 0. cli --project integration src/commands/migrate/apply.remote-face.integration.test.ts --reporter=verbose: 9 passed, including '✓ apply without --allow-destructive: nothing left it cannot apply, keeps the destructive two back, exits 0'; 'Test Files 1 passed (1)', 'Tests 9 passed (9)', VERDICT command-exit 0. The red leg is the maintainer's records 6921391723 and 6921439242: the old expectation was 1 failed and 8 passed on a6797ba0 and 709476e3. Test-only change with no product behaviour changed, so no ablation was run.",
"gates": "Local, with exit captured before any pipe: check-nul-bytes, check-test-source-alias, check-issue-citations and check-closing-keyword-parity, all exit 0. Earlier rounds' local runs stand for the other families; main was not merged. CI on 709476e328: 34 success, 17 skipped, 0 failure. Test Core had 4 shards success and 5 cancelled, because the push of 715fc6a1fe superseded that run. CI on 715fc6a1fe at report time: 4 success, 3 skipped, 16 in_progress and 0 failure. Lint, Type Check and Check Changeset were in progress, and Test Core had not registered yet, so it is NOT MEASURED; the report was not held for CI.",
"dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "1 this round: one post-stamped relay comment on #33724 (this report). git push x1 is not REST. The PR body was not patched.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Ruling on parameter 4's return (the comma class) · maintainer 「A 接受这个限制」 · recorded 2026-11-16T16:15Z
Recorded by the project's decision thread. Ruling 6915086281 (in-place ALTER COLUMN, six parameters) stands unchanged; its parameter 4 says a refusal by a real sqld comes back to the maintainer once. This is that return, for the class of columns measured in 6921391723 (review#2's S1, record 6920999561). Thread-read: 6921757949 (the dev's fix round 3, head 715fc6a1, which reports both gated files green against the same sqld 0.24.33, so M1 is closed by the building seat).
What he was asked
Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1XLTZrsxvQSLh7Kv8mkgaSpu, card cmsg_01TenzsRopZj4jMbvjX8uz1X6PL1pZAkcCTrLtLoE6EvwK. The message that carried the card told him: a real sqld refuses the relax for a column whose stored definition holds a comma (NUMERIC(10, 2), a DEFAULT or a CHECK with a comma), the table stays byte-identical and the column stays NOT NULL; the columns the platform itself creates on a hosted database are TEXT, INTEGER or REAL and never hold a comma, so the downstream list_price is not affected; only a table made by hand-written SQL or a database brought in from elsewhere can be in the class; how many hosted columns are in it has not been counted.
The question: 「定一下带逗号的列在托管库上放宽不了时怎么处理?」 The options as he read them:
A. The limit is accepted. On the Turso REMOTE face, a column whose stored definition holds a comma is not relaxed:
The column keeps its NOT NULL and the table is left as it was. No table rebuild is added for this class, so parameter 4's "no fall-back" stands as written.
The apply reports the entry not applied and says why. The documentation names the class.
Columns this face created are outside the class, so the card's own case and every platform-created hosted column are served by the in-place relax.
A real tenant that holds such a column comes back to the maintainer as its own card. Nothing is built for it ahead of that.
⛔ Not taken: B (a rebuild for this class only) and C (hold the PR until the cloud lane counts such columns on hosted).
What this answers for review#2's S1 ("say on the card what such a tenant does"): on this transport, nothing in-product clears it. The operator sees the entry not applied with its reason, and the case goes to the maintainer when a real tenant has one. How the plan listing and the docs line word the class is the building seat's and the reviewer's to settle inside this ruling; the maintainer was told "apply 报未应用并写明原因,文档写明" and nothing more specific.
Scope of the "once": this return is spent for the comma class. A refusal of a comma-free definition, on a real sqld or on a hosted database, would be a different fact and still goes to him under parameter 4.
Protocol: Metadata-protocol: none; no key or value changes with this ruling. Clause-② is unchanged by it.
{
"issue": 33724,
"status": "done",
"branch": "claude/issue-33724-remote-relax-not-null",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34408",
"session": "session_01FEkQ5pHNFS9mn8hS13iGyL",
"premise_still_valid": true,
"head": "00fadc550bb6d2733fe43b0d2a5e1cce91ffbef8",
"summary": "Fix round 4 on head 00fadc550b applies ruling 6922037129 (S1, A, the limit accepted). (1) Confirmed by reading: apply.ts lists every driver-skipped entry under 'NOT applied ... (its log above says why)' and in --json notApplied. The driver's warn line, however, carried only the server's raw SQLite error and did not name the class. It now appends that the column's stored definition holds a comma, that libSQL's ALTER COLUMN ends the old definition at the first comma, and that the column keeps its NOT NULL. This is pinned on the comma case, with a negative pin on the comma-free refused case, and the ablation went red. (2) The cli.mdx Turso remote paragraph names the class and what the operator sees. The changeset uses the same wording and adds the sqld 0.24.33 measurement and the accepted limit. No rebuild fall-back was added. M1 and S1 are both closed, so status is done. The PR body was not patched; summary_for_pr_body holds the Fix round 4 section and a replacement 维护者速读, whose 风险与回滚, 先看, 两分钟验证 and 需要你做的 lines change.",
"summary_for_pr_body": "## Fix round 4\n\nThis round applies ruling 6922037129 (S1, letter A, the limit accepted). On the Turso REMOTE face, a column whose stored definition holds a comma keeps its NOT NULL. The apply lists it as not applied and says why, the docs name the class, and no rebuild fall-back is added.\n\n- **The reason, checked and then sharpened.** The not-applied listing already existed. `os migrate apply` names the entry under \"change(s) were NOT applied — the driver could not perform them on this database (its log above says why)\", and the `--json` document carries it in `notApplied`. The driver's warn line, however, gave only the server's raw SQLite error, which shows the broken splice but never names the class. When the refused definition holds a comma, the line now ends: `The column's stored definition holds a comma, and libSQL's ALTER COLUMN ends the old definition at the first comma after the column's name, so this transport cannot relax it: the column keeps its NOT NULL`.\n - Pinned in `turso-remote-migration-entries.test.ts`: the comma case asserts the sentence.\n - The unpredicted-splice case, whose definition is comma-free, asserts the line does not carry it.\n- **Docs.** `content/docs/deployment/cli.mdx`, in the Turso remote paragraph, now names the class: a DEFAULT or a CHECK with a comma in it, a type width such as `NUMERIC(10, 2)`, or a comment. It also says what the operator sees: the entry listed as not applied, the log saying the definition holds a comma, the column keeping its `NOT NULL`, and no table rebuild. Columns the platform creates on a remote primary are `TEXT`, `INTEGER` or `REAL` with no DEFAULT and no width, so they are outside the class.\n- **Changeset.** It adds that a real `sqld` 0.24.33 refuses such a column the same way, that the logged reason says the definition holds a comma, and that the maintainer accepted the limit, so no rebuild is added. Platform-created columns are outside the class, worded as in the docs.\n\n<details><summary>Verification on 00fadc550b</summary>\n\nAll runs were under the verify lock.\n- Closure build of `@objectstack/driver-turso...`, typecheck and the full driver-turso suite: Test Files 100 passed and 1 skipped (101); Tests 2563 passed and 36 skipped (2599); VERDICT command-exit 0.\n- Real `sqld` 0.24.33 (sha256 `28d1039e42fbee5ad51e5cd0a6494146cd7bf0309190a85543b98264f6aa816f`) with `OS_TEST_SQLD_BIN`, file `turso-remote-relax-not-null-sqld.test.ts`: Tests 2 passed (2); VERDICT command-exit 0.\n- Ablation through `scripts/ablation-replace.mjs`: its condition `plan.definition.includes(',')` was replaced with `false`, so the class sentence was never added; the anchor went 1 to 0. The comma case went red, with 1 failed and 17 passed. The file was restored to blob == HEAD with `git diff HEAD` empty.\n\nGates, all exit 0: check:doc-authoring, check-nul-bytes, check-issue-citations, check-durability-degradation-log-level, check-changeset-no-major, check-empty-changeset, check-closing-keyword-parity, check-doc-route-spelling (advisory), check-docs-section-name.\n</details>\n\nReplacement `## 维护者速读` (whole section; the \"风险与回滚\", \"两分钟验证\" and \"需要你做的\" lines change):\n\n## 维护者速读\n\n- 改了什么:托管库(Turso 远程连接方式)上,\"去掉一列的不能为空\"现在真的会执行:用 libSQL 自带的改列语句就地改这一列,只删掉 NOT NULL 这几个字,不搬数据、不重建表。\n- 为什么改:应用包升级把必填字段改成选填后,托管客户的数据库还在拒绝空值,保存全部失败;裁决 6915086281 选 A(就地改这一列),本 PR 是框架半边。\n- 风险与回滚:只放宽不收紧;语句和\"表定义必须恰好变成预期样子\"的检查放在同一批里,任何意外整批回滚、表一字不变;读回确认才算成功。已知限制(裁决 6922037129,接受):列定义里带逗号的列(DEFAULT 或 CHECK 里有逗号、`NUMERIC(10, 2)` 这类宽度、注释)托管库改不了,保持必填,apply 列为未应用,日志写明\"定义里有逗号\",不重建表;平台自己建的列不带逗号,不受影响。回滚 = revert 本 PR,托管上回到\"跳过\"。\n- 先看:`packages/drivers/driver-turso/src/turso-driver.ts`(`applyRemoteRelaxNotNull`,批内检查、读回与失败时的日志)、`packages/drivers/driver-turso/src/remote-relax-not-null.ts`(从库里存的建表语句切出这一列的定义)、`turso-remote-migration-entries.test.ts` 的 relax 一组。\n- 两分钟验证:`pnpm --filter @objectstack/driver-turso exec vitest run src/turso-remote-migration-entries.test.ts`,预期 18 条全绿,其中 relax 5 条(已应用、逗号被拒且日志点名、提交后传输出错记为结果未知、意外拼接回滚、安装门已应用)。\n- 需要你做的:无,席位落地(真实 sqld 0.24.33 已实测:两份门控文件 2/2、9/9)。\n",
"tests": "All under the lock (slot dev-33724). Build driver-turso..., typecheck and the full driver-turso suite: Test Files 100 passed and 1 skipped (101), Tests 2563 passed and 36 skipped (2599), VERDICT command-exit 0. Real sqld 0.24.33 (sha256 28d1039e42fbee5ad51e5cd0a6494146cd7bf0309190a85543b98264f6aa816f re-verified) on turso-remote-relax-not-null-sqld.test.ts: '✓ FIRST: the server accepts the bare statement, and the column reads back nullable with its type and DEFAULT', '✓ the install door on a remote-mode driver: reported applied on a read-back, rows and index unchanged', Tests 2 passed (2), VERDICT command-exit 0. The cli gated file was not rerun: no cli file changed since round 3's 9/9 on 715fc6a1fe, and the round-4 driver change is in the refusal branch only, which that file does not reach. Ablation: ablation-replace changed the anchor \"const commaClass = plan.definition.includes(',')\" to \"const commaClass = false\" (anchor 1->0). The comma case went RED (1 failed / 17 passed). Restored to blob == HEAD (828ee38d6315), git diff HEAD empty.",
"gates": "Local, with exit captured before any pipe: check:doc-authoring, check-nul-bytes, check-issue-citations, check-durability-degradation-log-level, check-changeset-no-major --base origin/main, check-empty-changeset --base origin/main, check-closing-keyword-parity, check-doc-route-spelling --advisory and check-docs-section-name, all exit 0. CI on 00fadc550b at report time: 6 success, 5 skipped, 15 in_progress, 0 failure; Test Core is not concluded and is NOT MEASURED, and the report was not held for CI. CI on 715fc6a1fe: 37 success, 17 skipped, 0 failure. Test Core shards 3, 6 and 7 of 8 were cancelled because the round-4 push superseded that run; the other 5 succeeded.",
"dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "1 this round: one post-stamped relay comment on #33724 (this report). git push x1 is not REST. The PR body was not patched.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Acceptance notes · review follow-ups of PR #34408 · 2026-11-16T16:59Z
This card stays open after PR #34408 lands (Part of #33724: the cloud half #34377 and the hosted re-save remain), so it carries review#2's two docs nits from PASS 6923055131 for the next PR that touches this text:
N4.content/docs/deployment/cli.mdx and the changeset say platform-created columns on a remote primary have "no DEFAULT". created_at and updated_at are created as TEXT DEFAULT (datetime('now')). Neither is NOT NULL and neither holds a comma, so the conclusion (platform columns are never in the comma class) holds; only the premise is too broad. Reword to "no comma in their definition".
N5. The docs paragraph says what os migrate apply shows for a comma-class column, but not that os migrate plan lists the same relax with no limit (the plan does not read the stored definition). One clause.
Both are prose only. Landing #34408 without them was chosen over a new head, because a new head re-opens both review records.
Release: framework half delivered · 2026-11-16T18:01Z · area o1-B returns this card to the seat repo:objectstack#1.
Landed: PR fix(driver-turso): the REMOTE face relaxes a NOT NULL column in place with libSQL ALTER COLUMN, applied only on a read-back #34408 (Part of #33724) merged through the merge queue as 69949aed. The Turso REMOTE face now relaxes NOT NULL in place with libSQL ALTER TABLE … ALTER COLUMN … TO … (ruling 6915086281, letter A), reports applied only on read-back, and pins the statement on a real sqld 0.24.33 (sqld measurement 6921391723). A column whose definition carries a comma (the comma class) keeps NOT NULL on REMOTE and is reported not-applied with its reason; the docs name the class (ruling 6922037129, 「A 接受这个限制」). L1 ACCEPT 6923152602, contract review PASS 6923055131 (review#2).
Open nits carried here (6923174212, from review#2): N4 (the docs' DEFAULT premise) and N5 (plan wording). Each is a prose follow-up for whoever next touches the REMOTE relax docs.
Standing condition: a refusal of a comma-free definition, on a real sqld or on a hosted tenant, goes back to Leehom through the seat (ruling 6915086281 parameter 4 is spent for the comma class only). It is not absorbed.
Labels in this stroke: pm:dispatched → pm:blocked, lease:o1-B removed, assignee cleared.
So pm:blocked → pm:on-hold. Per the state model, priority:p1 → priority:p3 in the same stroke.
Restart-grade: p1
Restart-when: the first published @objectstack/driver-turso version that contains commit 69949ae is installed on the hosted ObjectOS Cloud environment. Then the cloud lane runs the hosted re-save described above and records the reading here. A pass closes this card as completed. A VALIDATION_ answer returns it to pm:queue at p1.
Probe: npm view @objectstack/driver-turso version, then check whether that release's changelog names #34408. #34377's own Blocked-by: #33724 belongs to the cloud lane, which owns that card. Nothing on it is changed here.
Closed as completed — the remaining hosted read moves to #35262 · 2026-11-19T02:05Z
The framework half landed: PR #34408 (69949aedc1, the Turso REMOTE face relaxes a NOT NULL column in place), per ruling A (6915086281). The cloud call site landed under #34377 (cloud PR #4753). Cloud's pin carries both. The hosted re-save read is now the maintainer card #35262.
Order: Warren, 2026-11-19 00:32Z, objectstack priorities discussion thread: 「可以拆的都同意。」 Rule: #35259 item 7 (the maintainer's step gets its own card; the dev card closes; blocked cards are released).
Activity
fix(cloud-connection, driver-sql): a package upgrade relaxes the NOT …
objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG
Release: session_01QsR2jRsWwTRkuRCyQwvpAG · seat clock-out on the maintainer's wind-down order (「当前任务处理完,合并后就下班」 / 「不再认领新卡」) · next: a fresh claim by the next server seat
Resume-from: none (no open branch; the platform half landed as PR #33769)
State: the platform half (PR #33769) is merged and shipped in 18.5.0. The downstream reading on 18.5.0 hosted (comment of 2026-11-16 01:43Z on this card) shows re-saving still answers VALIDATION_. The next claimant's first step is to establish whether the remaining gap is in the framework or on the cloud side, which would route it to repo:cloud. Still p1.
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Reading · framework vs cloud · 2026-11-16T10:29Z
Area o1-B, on the seat's hand-off of this p1. A read of
origin/main719b6b53722d, made before claiming, per the predecessor's release 6912493094. ⛔ Not a claim. Nothing is built on this reading.Verdict: both halves. Each is needed for the downstream symptom of 01:43Z on 18.5.0 hosted.
relaxInstallDeclaredNotNull(PR fix(cloud-connection, driver-sql): a package upgrade relaxes the NOT NULL its own declaration makes nullable #33769) has one call site,marketplace-install-local-plugin.ts:4352. OnlyhandleInstallreaches it (:3239), aftersyncSchemas, when the hot load succeeded. Its entry points arePOST /api/v1/marketplace/install-local,os package install,os deployto a self-hosted target, andinstallForGrantfor UNMANAGED grants only (install-local-door-service.ts:32-36).cloud-connection-plugin.ts:1422-1455).os deployto ObjectOS Cloud asks the control plane to install, then waits for "the environment rebuilds in the background" (deploy.ts:5-7, 34-36). In framework terms that rebuild is a fresh boot.reconcileAndWarnDriftalters nothing underNODE_ENV=production(driver-sql/src/sql-driver-schema-sync.ts:1445-1449).relax_not_nullisneeds_confirm(schema-drift.ts:1240-1241). The helper's own doc says it is never called from a boot or a rehydrate (marketplace-install-declared-relaxations.ts:32). The changeset exported it "so a host's own install door can call the same step after its schema sync" (cloud-connection/CHANGELOG.md:32).content/docs/releases/v17/17-6.mdx:57). Its answers table hasrelax_not_null: 'needs-table-rebuild'(driver-turso/src/turso-driver.ts:687), andapplyMigrationEntriesskips that row before any DDL runs (:4787-4821).turso-remote-migration-entries.test.ts:317-334pins it: the relax comes backskippedand the column stays NOT NULL.os migrate applycannot relax the column on such a database either.packages[]bundle shape is not the cause here. The helper reads objects throughresolveStackCollection, which falls back topackages[](marketplace-install-declared-renames.ts:153, 159;core/src/stack-collections.ts:167-171). That is unlike marketplace install-local: a composed bundle's seed datasets (packages[i] data) are never loaded on install, reseed or upgrade, so a hosted tenant gets no demo data for a new module #34336's seed reader.types/src/data-error-classification.ts:2222-2235,objectql/src/not-null-refusal-error.ts:63). The record validator reads onlyrequired(record-validator.ts:1262).Routing.
repo:cloudroute.pm:queue, unclaimed, until both are routed.objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pmEYLVFDcQ1Z1CS8H
Routing at 2026-11-16T10:37Z on the area reading 6913887597:
relaxInstallDeclaredNotNullafter schema sync, plus the fact whether hosted tenant DBs are on the Turso REMOTE face.objectstack-fleet commentedon Nov 16, 2026
coordinator#1 · os-project-manager · session_01FEkQ5kGEg1D7Ad44J9VDdQ
Ruling: letter A · maintainer 「A 就地改这一列」 (the option he chose on the decision card) · recorded 2026-11-16T11:24Z
Recorded by the project's decision thread for the framework half of this card. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T11:23:26Z. Decision thread
cmsg_01TenzsRopZj4jMbvjX8uz1XCgt71RM3Pab84LN5e9o7hW, cardcmsg_01TenzsRopZj4jMbvjX8uz1XKeWWgGkqyBjQZ334zbRGUa, choice recordcmsg_01TenzsRopZj4jMbvjX8uz1XSb7NcUR1CY7t7yXyhkNYwB.Thread-read: 6914072668 (the seat's routing comment, the newest; none added since the analysis). Labels
priority:p1,pm:queue,domain:server,lease:A4, unassigned. The cloud half is #34377 and is not ruled here.The question he was asked
On a hosted environment, after an app upgrade makes a required field optional, the tenant database still refuses an empty value and every save that leaves the field out fails. By which means does the platform lift that constraint on a hosted database, or does it not?
The three options on the card, as he read them:
The ruling
A. The Turso REMOTE face relaxes a NOT NULL column in place, with libSQL's own column statement (
ALTER TABLE t ALTER COLUMN c TO c <definition>), and runs no table rebuild. B (the SQLite table rebuild in one atomic batch) and C (the framework does nothing) are not taken.The parameters below are the ones the analysis attached to A. The thread message that carried the card named them (parameter 4 in full, the other five by name, all six in the analysis file). He chose A without amending any.
tighten_not_null,drop_column_defaultand the type and width entries keep today's answer on this face: skipped, with the face's reason. The statement does not revalidate existing rows, so using it to tighten would leave violating rows in place.storage: { notNull: false }on the column (PR fix(cloud-connection, driver-sql): a package upgrade relaxes the NOT NULL its own declaration makes nullable #33769), the publish of an environment-authored object, andos migrate apply. A boot never alters a column (ADR-0113 D5 is untouched).applied. A refused statement or a read-back that differs is reportedskippedwith its reason.sqld(theOS_TEST_SQLD_BINrig). If a realsqldor a hosted database refuses it, the card comes back to the maintainer once; the seat does not switch to B by itself.⛔ Not taken: B (the same outcome for a full copy of the table, a write lock held for the length of the copy, and a procedure that must restate every column, default and index or lose one silently; the hosted lock time and any server limit on a long batch are unmeasured). C (a shipped p1 with no way out for a hosted tenant). A with an automatic fall-back to B (two paths to pin and maintain, and a refusal is a fact the maintainer should see).
Two corrections to the premise this was routed on
The routing (6913887597, 6914072668) described the framework half as a hard-to-roll-back table rebuild on a face with no transactions. Read on
origin/maina8e794f5:beginTransaction: 'refused',turso-driver.ts:1074; [Decision] TursoDriver.beginTransaction 的 any 掩盖的是 Liskov 违例 —— 基类声明该服从谁,A 还是 C(重建自 #17878) #18063 ruled B, topic 专题:托管环境上的真事务(远程 libSQL / Turso,元数据提交不半落地)(暂停) #32500 paused). It does have an atomic batch: "A'write'batch runs inside one transaction on the server" (remote-transport.ts:1352), and it already drops a column with its indexes on hosted data that way (turso-driver.ts:4855-4861). ADR-0119 D1 is about the engine'stransaction()degrade and does not bind a batch the driver sends itself.libsql-sqlite3/doc/libsql_extensions.md, "ALTER TABLE ALTER COLUMN") lets the statement amend a column's constraints, and says "existing rows are not rewritten or revalidated". For a relax that is exactly enough: no existing row can violate the relaxed column. The driver sends noALTER COLUMNtoday (0 hits inturso-driver.tsandremote-transport.ts).Effort of the chosen letter
From the analysis's effort column: server lane, one PR. Nearest precedent: PR #23923 (+785/−16, 8 files), which gave this face its first column op (
drop_column); an upper bound, not a like-for-like. B was also one PR plus a hosted measurement, so effort did not decide the letter.Governing text
relax_not_null, "stillneeds_confirm, never auto-applied", applied by the deliberate relax (the publish, or the managed install of the package for a sealed object). Unchanged; this ruling decides only how that act reaches the database on this transport.tighten_not_null(and every column entry the remote face cannot apply) is printed with the remedyos migrate apply --allow-destructive, which then names it as not applied and exits 1 #23925 / PR fix(cli,driver-turso): os migrate plan on a Turso remote database lists the changes it cannot apply with the transport's limit, not --allow-destructive #24014: what the REMOTE face can apply is declared once, inREMOTE_DRIFT_OP_ANSWERS, read by bothos migrate planand the apply door. Its reason for skipping the rebuild ops is "this transport has no copy of" the rebuild, not a ruling that the face never alters a column.Protocol:
Metadata-protocol: none. No metadata key is added or changed. The exportedREMOTE_DRIFT_OP_ANSWERSrowrelax_not_nullchanges fromneeds-table-rebuildtoapplied(a widening); the building seat reads Clause-② as usual.Readings behind the clauses (
origin/maina8e794f5; code read, plus one local measurement)relax_not_null: 'needs-table-rebuild'(packages/drivers/driver-turso/src/turso-driver.ts:687); the skip is pinned atturso-remote-migration-entries.test.ts:290and:318.relaxDeclaredNotNullandapplyPublishedColumnChangesare bothinheritedon this face (turso-driver.ts:1141,:1146), so the one row serves the package install, the publish andos migrate apply.driver-sql/src/sql-driver-schema-sync.ts:512,:541).NOT NULLand emits no declared DEFAULT (remote-transport.ts,columnDeclarationSQL).libsql0.5.29, SQLite 3.45.1,@libsql/client0.18.0, afile:database, no network): the in-place statement relaxes the column in about 1 ms at 1,000 and at 1,000,000 rows, a NULL insert then succeeds, the indexes and the row count are unchanged andintegrity_checkanswers ok. A rebuild sent as onewritebatch takes 189 ms at 100,000 rows and 2,310 ms at 1,000,000, and a batch with one failing statement leaves the table, its rows and its indexes as they were.Four facets (the analysis the maintainer read)
Confidence gaps, as stated to the maintainer: the measurement is on the local libSQL engine, not on Turso Cloud and not on an HTTP
sqld, so whether a hosted database accepts the statement is unmeasured (parameter 4 exists for that). Whether hosted tenant databases are on the REMOTE face and on libSQL is a cloud fact, asked on #34377 and not answered yet. The Turso documentation site lists only fourALTER TABLEforms on a page that describes its newer engine, so the statement is libSQL's. The Salesforce comparison is from memory.State
pm:queue,priority:p1, unclaimed, for therepo:objectstack#1seat, which builds it in its area o1-B. The body gains theRuled:line.Notify: rulingto therepo:objectstack#1mailbox, PR pm:mailbox — repo:objectstack#1 · os-project-manager #34367.Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Claim: PM loop · seat-handed p1, framework half after ruling 6915086281 · 2026-11-16T11:28Z
Session:
session_01FEkQ5pHNFS9mn8hS13iGyLAccount:
os-project-managerBranch:
claude/issue-33724-remote-relax-not-nullWorktree:
objectstack-issue-33724Domain:
domain:serverSeat:
repo:objectstack#1File surface:
packages/drivers/driver-turso/src/**(REMOTE_DRIFT_OP_ANSWERSrowrelax_not_null, the REMOTE face's column drift apply,remote-transport.tsstatement and read-back helpers), its tests includingturso-remote-migration-entries.test.tsand a real-sqldpin under theOS_TEST_SQLD_BINrig,content/docs/**only where it states what the REMOTE face applies,.changeset/**(stop on breach; explain in the report). The cloud half is #34377 and is not built here.Container & model:
M,mode:subagent,model: TIER_DEFAULT,effort: highClause-②: yes (widening: the exported
REMOTE_DRIFT_OP_ANSWERS.relax_not_nullchanges fromneeds-table-rebuildtoapplied, and the REMOTE face newly applies one drift op)Metadata-protocol: none
Responsibility:
objectstack (driver-turso REMOTE face): relax_not_null is skipped, so a hosted tenant database keeps NOT NULL after a package upgrade declares storage.notNull false | PR #33769 relaxes on the install door, but this face skips the op | every hosted tenant on the REMOTE face; steedos-labs/os-project-blackcat-crm demo environment todayThread-read: 6915086281
Premise: holds (reading 6913887597; ruling 6915086281 corrects two premises of the routing, carried into the order)
Serial constraints cleared:
#34336 (this area, packages/cloud-connection) touches no driver-turso file; no other in-flight claim on driver-turso known; the dev runs git merge-tree against every open PR touching packages/drivers/driver-turso before pushPre-claim lane: domain:server (packages/drivers/driver-turso)
Pre-claim deps: PR #33769 merged (18.5.0); the hosted outcome also needs #34377 (cloud half), which does not block this build
Prior rulings read: maintainer ruling A 6915086281 (「A 就地改这一列」, six parameters); ADR-0113 D5 (as amended by #33837); #23925 / PR #24014 (REMOTE_DRIFT_OP_ANSWERS as the one declaration); #18063 B, #32481, #32500 (no interactive transactions on this face); ADR-0119 D1
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 33724, "status": "blocked", "branch": "claude/issue-33724-remote-relax-not-null", "pr": "https://github.com/objectstack-ai/objectstack/pull/34408", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "summary": "Ruling 6915086281 letter A is built in driver-turso. REMOTE_DRIFT_OP_ANSWERS.relax_not_null is now 'applied'. A new private arm, applyRemoteRelaxNotNull, sends libSQL's `ALTER TABLE t ALTER COLUMN c TO DEFINITION`. The definition is cut from the table's stored CREATE TABLE with only its `[CONSTRAINT n] NOT NULL [ON CONFLICT x]` clause removed (new remote-relax-not-null.ts). The statement goes in one write batch with a check that sqlite_master.sql now equals the planned SQL exactly, and a mismatch rolls the batch back. The entry is applied only when the column reads back nullable with the same type, DEFAULT and pk. A refusal is skipped with its reason logged, and nothing falls back to a rebuild. Measured on embedded libSQL (SQLite 3.45.1): its splice ends the old definition at the first comma, so a column whose definition holds a comma (DEFAULT ('a,b'), NUMERIC(10, 2), a comment) is refused whole and left byte-identical. BLOCKED on two things only the PM can clear. (1) Ruling parameter 4's first step, the real-sqld pin, is NOT MEASURED: this container's classifier refused downloading a sqld binary (npm pack @sqld/linux-x64). The pin is written (turso-remote-relax-not-null-sqld.test.ts, gated on OS_TEST_SQLD_BIN), and CI has no sqld. (2) The change falsifies a pin outside the declared file surface, which I did not edit (stop on breach): packages/runtime/src/domains/meta-object-publish-column-changes.test.ts:204 is red on this branch, measured: `expected [] to deeply equal [ 'warning' ]`. The publish now relaxes the remote column end to end. That pin is the only cover of the object-column-changes-not-applied advisory, so its rewrite must keep the advisory covered. The PR stays draft and Test Core will be red on that file until the surface is extended.", "tests": "At head 342fedfdfa. Under the lock: `pnpm --filter @objectstack/driver-turso build && typecheck && vitest run` on the 4 touched files gave VERDICT command-exit 0, Test Files 3 passed and 1 skipped (the sqld file, no OS_TEST_SQLD_BIN), Tests 33 passed and 2 skipped. tsc --listFiles shows all 4 touched test files in the program. The full suite, `pnpm --filter @objectstack/driver-turso exec vitest run --maxWorkers=2`, gave VERDICT command-exit 0, Test Files 100 passed and 1 skipped, Tests 2562 passed and 36 skipped. Ablations used scripts/ablation-replace.mjs: the subject is imported from src (./turso-driver.js), so no dist leg was needed. Each mutation landed (anchor 1->0, blob e91ad7ca8fe6 -> mutated) and was restored with blob == HEAD and an empty `git diff HEAD`. (1) Check forced true (`= ? THEN 1` -> `= ? OR 1 THEN 1`): 1 failed of 17, the unpredicted-splice pin. The splice that dropped the CHECK was reported applied, which shows the pragma read-back alone cannot see it. (2) relax_not_null back to 'needs-table-rebuild': 4 failed of 23 (apply-limit, in-place relax, check, install door). Outside the surface, measured: `pnpm --filter '@objectstack/runtime^...' build && vitest run src/domains/meta-object-publish-column-changes.test.ts` gave VERDICT command-exit 1, 1 failed and 3 passed: the Turso REMOTE publish pin, as described in summary.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derived 100 commands for 8 paths at 342fedfdfa (merge base 183a89e34). Each was run with its exit captured before any pipe. `--ran` reconciliation exit 0: 100 derived, 96 run, 4 NOT-MEASURED, 0 UNRUN. 96 exited 0, including check:durability-log-level, check:nul-bytes, check:doc-authoring, check:issue-citations, check:test-source-alias, check:cross-package-test-inputs and check:driver-conformance. NOT MEASURED: spec check:skill-examples and check:dual-build-cjs-loads (exit 3, PREREQUISITE NOT MET, unbuilt packages); check:query-options-erasure and check:type-check-debt (exit 124 at a 400 s timeout on the shared box; CI owns them). PR check-runs on 342fedfdfa at report time: every gate-carrying run in_progress (Check Changeset, Lint x8, Type Check x4, PR-body guards, Governed Surface Queue Guard, Spec property liveness); skipped: 18.x upgrade harness, Packed-tarball smoke, Queue verdict, Borrowed queue verdict, Schedule gate. Expected red: Test Core, on the runtime publish pin named in summary. merge-tree: none needed, since 0 of the 54 open PRs touch packages/drivers/driver-turso.", "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3: git push of the branch (not REST); one fleet-write relay pr_create (repository_dispatch to objectstack-ai/objectstack, which ran POST /repos/objectstack-ai/objectstack/pulls, draft, PR #34408, read-back identical, 10498 bytes); one post-stamped comment on #33724 (this report)", "open_questions": [ { "question": "How is ruling parameter 4's first step measured, given this container refused downloading a sqld binary?", "options": ["A: the PM or maintainer runs `OS_TEST_SQLD_BIN=/path/to/sqld pnpm --filter @objectstack/driver-turso exec vitest run src/turso-remote-relax-not-null-sqld.test.ts` on a box with sqld and records the answer on the card", "B: the maintainer permits the download (npm pack @sqld/linux-x64) in this container, and a fix round runs the pin here", "C: run the statement once against a hosted Turso database through the cloud lane"], "recommendation": "A or B. The ruling makes this measurement a precondition to landing, and the pin is already written. If sqld refuses the statement, the card goes back to the maintainer under parameter 4." }, { "question": "Should the file surface extend to the two pins this change makes false?", "options": ["A: extend the surface to packages/runtime/src/domains/meta-object-publish-column-changes.test.ts and packages/cli/src/commands/migrate/apply.remote-face.integration.test.ts. The fix round rewrites the runtime pin to assert the remote publish relaxes the column, with no advisory. It keeps the not-applied advisory covered by a remote column the face refuses, such as a DEFAULT holding a comma made by hand, and turns the cli sqld expectations for memo/relax_not_null from not-applied to applied", "B: land the runtime and cli rewrites as a separate PR in the same queue"], "recommendation": "A, because the PR cannot go green in Test Core without the runtime pin, and the two are one behaviour change." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: this card (#33724) · noted, not filed: packages/cli/src/commands/migrate/apply.remote-posture.test.ts:112 and plan.apply-limit.test.ts:210 stub driftApplyLimit with relax_not_null limited. They stay green but describe the pre-ruling posture, and the next fix round should re-point them to tighten_not_null", "carrier: none · noted, not filed: libSQL's ALTER COLUMN ends the old definition at the first comma after the column name (embedded libSQL, SQLite 3.45.1, measured in this run). This is an upstream libSQL behaviour, and on this face it is a loud refusal and never silent damage (the in-batch check plus rollback). Whether hosted sqld shares it is not measured" ] }objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Claim amendment · file surface · 2026-11-16T13:32Z
The dev's report 6917853648 measured that ruling 6915086281 (A) makes three pins outside the declared surface describe the pre-ruling posture. The surface of claim 6915158382 is extended to:
packages/runtime/src/domains/meta-object-publish-column-changes.test.ts: the Turso REMOTE publish now relaxes the column, so that pin asserts the relax with no advisory. Theobject-column-changes-not-appliedadvisory stays covered by a remote column the face refuses (a definition holding a comma).packages/cli/src/commands/migrate/apply.remote-face.integration.test.ts: the sqld expectations forrelax_not_nullmove from not-applied to applied.packages/cli/src/commands/migrate/apply.remote-posture.test.tsandplan.apply-limit.test.ts: the stubs are re-pointed fromrelax_not_nulltotighten_not_null.Tests only; no source outside
packages/drivers/driver-turso/**changes.Clause-②andMetadata-protocollines are unchanged. Still open before landing: ruling parameter 4's first step, the real-sqld pin (not measured in this container), with the seat.test(runtime, cli): re-point the Turso REMOTE relax pins to the in-pl…
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 33724, "status": "blocked", "branch": "claude/issue-33724-remote-relax-not-null", "pr": "https://github.com/objectstack-ai/objectstack/pull/34408", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "summary": "Fix round 1 on head a6797ba07c, covering the three pins outside driver-turso that claim amendment 6917885070 added to the surface. Only tests changed. (1) runtime meta-object-publish-column-changes.test.ts: the Turso REMOTE publish now relaxes title in place, with no object-column-changes-not-applied advisory, and a create omitting the field succeeds. The advisory stays covered on the same face by a column whose stored definition was given a comma by hand (CHECK (instr(\"title\", ',') >= 0)); libSQL refuses that relax, the publish answers the advisory, and the column keeps NOT NULL. (2) cli apply.remote-face.integration.test.ts (sqld-gated): the relax names no limit and the plan footer counts 1, not 2. The first --yes apply lands the relax, so memo reads nullable from then on and later cases list only the drop and the tightening. Seven module-top imports were added because check:test-source-alias judges an edited test file; that gate reddened Lint & Repo Gates on cfc0ab8fc2. (3) cli apply.remote-posture.test.ts and plan.apply-limit.test.ts: the stubs limit tighten_not_null alone and apply the relax. Still blocked on ruling parameter 4's first step, the real-sqld pin. It is gated as written and NOT MEASURED, and the seat holds it; no further download was attempted. The PR stays draft.", "tests": "All under the lock. Build of runtime^..., cli^... and driver-turso: VERDICT command-exit 0. GREEN at a6797ba07c: runtime meta-object-publish-column-changes.test.ts, Test Files 1 passed, Tests 5 passed (5). cli --project unit plan.apply-limit.test.ts + apply.remote-posture.test.ts, Test Files 2 passed, Tests 24 passed (24). cli --project integration apply.remote-face.integration.test.ts, Tests 3 passed and 6 skipped (9); the sqld cases skip without OS_TEST_SQLD_BIN, so they are NOT MEASURED. PREVIOUS-HEAD BEHAVIOUR leg: relax_not_null was set back to 'needs-table-rebuild' through ablation-replace (blob e91ad7ca8fe6 -> 72938d38df31) and driver-turso was rebuilt. ablation-dist-preflight found the marker in 2 built files (dist spells it relax_not_null: \"needs-table-rebuild\"; the tree probe used --source-marker). The runtime file then gave 1 failed and 4 passed: the in-place relax pin went red because the advisory came back, and the refused-relax advisory pin stayed green under both behaviours, as designed. Restore: blob == HEAD, git diff HEAD empty, preflight --absent passes, tree clean. The cli stub files have no driver behaviour to ablate, since each stub declares its own posture.", "gates": "Round-1 families run locally, exit captured before any pipe: check:route-envelope, check:cross-package-test-inputs, check:nul-bytes, check:test-source-alias, check:undeclared-dep-imports, check:issue-citations and check:doc-authoring exit 0. check:i18n, check:i18n-coverage and check:i18n-walk-parity exit 3 (PREREQUISITE NOT MET, unbuilt packages): NOT MEASURED locally, run by CI in Lint & Repo Gates. The round-0 100-family local run stands for the driver-turso paths. dispatch-gates warned the tree is 12+ commits behind origin/main. main was not merged: no conflict and no main-caused red. CI check-runs on a6797ba07c: 38 success, 15 skipped, 0 failure. They include Test Core success (8/8 shards), Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Dogfood Regression Gate success, Governed Surface Queue Guard success, Live E2E UI success and Test UI success. On cfc0ab8fc2, Lint & Repo Gates failed at check:test-source-alias, which was fixed in a6797ba07c. On 342fedfdfa the Test Core shards were cancelled by the next push.", "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "5 this round: git push x2 (not REST); one fleet-write relay issue_patch of PR #34408's body (PATCH /repos/objectstack-ai/objectstack/issues/34408, read-back identical, 13286 bytes); one post-stamped comment on #33724 (this report). Round 0 had one pr_create and one comment.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 16, 2026
repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9
Fact for the framework half, read from cloud code at
origin/maine4750e49322f(2026-11-16T15:26Z): hosted tenant databases are on the Turso REMOTE face.createDefaultEnvironmentAdapters(packages/service-tenant/src/environment-provisioning.ts:1522) registers only Turso: the liveTursoEnvironmentDatabaseAdapterwhen real Turso credentials are set (production must set them), otherwise a turso-aliased local SQLite adapter for dev/CI, otherwise none. The Turso adapter hands out alibsql://url, orhttp://for a plaintext self-hosted endpoint, both remote urls (connectionUrl,environment-provisioning.ts:352-362).ArtifactEnvironmentRegistry.createDriver(packages/objectos-runtime/src/artifact-environment-registry.ts:819) buildsnew TursoDriver({ url: databaseUrl, authToken })with nosyncUrl, andTursoDriver.detectModereads alibsql://url withoutsyncUrlasremote. cloud'sremote-autonumber-hosted.e2e.test.tspins that the real registry answerstransportMode === 'remote'for such a url, and a cloud dev measuredtransportMode=remoteon a hosted tenant driver (report 6918456074 on metadata: an object's fields come back in alphabetical order after save/publish, so the default create form loses the declared field order #32398).relaxInstallDeclaredNotNull(objectstack#34377, objectstack-ai/cloud#4753, draft) reaches the REMOTE face'srelax_not_null: 'needs-table-rebuild'answer and is skipped on every hosted environment, the downstream demo included, until this card's framework half (PR fix(driver-turso): the REMOTE face relaxes a NOT NULL column in place with libSQL ALTER COLUMN, applied only on a read-back #34408) reaches cloud's pin. The cloud build logs the framework's skip reason meanwhile.objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 33724, "status": "blocked", "branch": "claude/issue-33724-remote-relax-not-null", "pr": "https://github.com/objectstack-ai/objectstack/pull/34408", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "head": "709476e32848a551c98be6574fcf1736b90b4cf8", "summary": "Fix round 2 on head 709476e328 covers review#2 items N1, N2 and N3 only. N1: the changeset names the published widening as TursoDriver.applyMigrationEntries applying relax_not_null, and driftApplyLimit('relax_not_null') answering null, on the remote face. It no longer calls REMOTE_DRIFT_OP_ANSWERS exported. N2: when a batch fails, applyRemoteRelaxNotNull reads the stored table SQL again. If the SQL reads as before, the log says nothing landed. If it no longer reads as before, or cannot be read, the log says the outcome is unknown and the next drift read decides. The log never claims a rollback. N3: a missing column and an already-nullable column each log why nothing was sent. The log texts are pinned with the existing logger.warn spy pattern. The status stays blocked only on M1 (the real-sqld pin) and S1 (the comma class ruling), which are still with the maintainer and untouched. The PR body was not patched; the Fix round 2 section is in summary_for_pr_body.", "summary_for_pr_body": "## Fix round 2\n\nAnswers review#2 (contract-review FAIL 6920999561 on a6797ba0), items N1, N2 and N3 only. M1 (the real-sqld pin) and S1 (the comma refusal class) are still with the maintainer and untouched. The docs page and the maintainer summary are unchanged.\n\n- **N1, the changeset.** It no longer calls `REMOTE_DRIFT_OP_ANSWERS` exported. It names the published widening as behaviour on the remote face: `TursoDriver.applyMigrationEntries` now applies a `relax_not_null` entry, and `TursoDriver.driftApplyLimit('relax_not_null')` answers `null` where it answered the table-rebuild sentence.\n- **N2, a failed batch's outcome.** The catch in `applyRemoteRelaxNotNull` reads the stored table SQL again before it says anything.\n - If the SQL reads as it did before the send, the log says the batch failed and nothing landed.\n - If the SQL no longer reads as before, the log says the outcome is unknown and the next drift read decides. A transport error that arrives after the server committed lands here.\n - If the SQL cannot be read back, the log also says the outcome is unknown and the next drift read decides.\n - The log never says the batch rolled back.\n- **N3, the early return.** A missing column logs `the table has no such column; nothing was sent`. An already-nullable column logs `the column is already nullable; nothing was sent`. Both lines use the existing `[schema-drift] relax_not_null on TABLE.COLUMN not applied on the Turso REMOTE transport:` warn line.\n\nPins in `turso-remote-migration-entries.test.ts` use the existing `vi.spyOn(driver.logger, 'warn')` pattern; no new framework was added.\n- The converged re-run asserts the already-nullable line for both columns.\n- The comma refusal asserts `the stored table SQL reads as before, so nothing landed`.\n- A new case wraps the transport's `batch`: the real send commits, and then `fetch failed: socket hang up` is thrown. The case asserts four things:\n - the entry is skipped;\n - the column reads nullable;\n - the line says the outcome is unknown and does not say `nothing landed`;\n - the next drift read finds no relax left on that column.\n\n<details><summary>Verification on 709476e328</summary>\n\nAll runs were under the verify lock.\n- Closure build of `@objectstack/driver-turso...`: VERDICT command-exit 0.\n- driver-turso typecheck: passed.\n- Targeted files (migration-entries, remote-relax-not-null, drift-apply-limit, sqld): Test Files 3 passed and 1 skipped; Tests 34 passed and 2 skipped (36). The sqld file is gated and NOT MEASURED, which is M1.\n- Full driver-turso suite: Test Files 100 passed and 1 skipped (101); Tests 2563 passed and 36 skipped (2599); VERDICT command-exit 0.\n\nAblations went through `scripts/ablation-replace.mjs` against `src`, with the anchor hitting 1 time and dropping to 0. Each run was restored to blob == HEAD with `git diff HEAD` empty.\n- `now === stored` forced to `true`: the unknown-outcome case went red, with 1 failed and 17 passed.\n- The already-nullable `skip(...)` replaced by a bare `return false`: the converged case went red, with 1 failed and 17 passed.\n\nQuick gates, all exit 0: check-durability-degradation-log-level, check-nul-bytes, check-test-source-alias, check-changeset-no-major, check-empty-changeset, check-closing-keyword-parity, check-issue-citations.\n</details>\n", "tests": "All under the lock (slot dev-33724). Closure build driver-turso...: VERDICT command-exit 0. driver-turso typecheck passed. Targeted (migration-entries, remote-relax-not-null, drift-apply-limit, sqld): the first run was red at 1 failed / 33 passed. The new case's last assertion wrongly expected no relax at all, but only price was relaxed and code still had one. The assertion was narrowed to ['code'] (commit 709476e328), and the re-run gave Test Files 3 passed and 1 skipped, Tests 34 passed and 2 skipped (36). The sqld file is gated and NOT MEASURED (M1). Full driver-turso suite: Test Files 100 passed and 1 skipped (101), Tests 2563 passed and 36 skipped (2599), VERDICT command-exit 0. Ablations used ablation-replace against src; the tests import src, so no dist was involved. (1) 'now === stored' forced to 'true': anchor 1->0, blob ab890bfbaec4->dad17829ce49, and the unknown-outcome case went RED (1 failed / 17 passed). (2) The already-nullable skip(...) replaced by 'return false': blob ab890bfbaec4->14f421c65e8d, and the converged case went RED (1 failed / 17 passed). Both restored to blob == HEAD (ab890bfbaec4), with git diff HEAD empty.", "gates": "Local, with exit captured before any pipe: check-durability-degradation-log-level, check-nul-bytes, check-test-source-alias, check-changeset-no-major --base origin/main, check-empty-changeset --base origin/main, check-closing-keyword-parity and check-issue-citations, all exit 0. dispatch-gates --commands warned that the tree is 19 commits behind origin/main; main was not merged. The round-0 and round-1 local runs stand for the other families. CI on 709476e328: no check-runs were registered yet when this report was read (total_count 0), so NOT MEASURED; the report was not held for CI. Intermediate head 6a05a50aa6: 14 success, 15 skipped and 21 in_progress at read time (Test Core 1-8/8, Build Core and the Lint and Type Check jobs in progress), 0 failure. The previous round's head a6797ba07c: 38 success, 15 skipped, 0 failure.", "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 this round: one post-stamped relay comment on #33724 (this report). git push x2 is not REST. The PR body was not patched, per the updated common.md rule.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 16, 2026
coordinator#1 · os-project-manager · session_01FEkQ5oB7w31u98QDzZdq4X
Measurement: ruling 6915086281 parameter 4, first step · real
sqld· maintainer chose 「B 放行一个域名,云端测」 · recorded 2026-11-16T15:51ZRecorded by the project's decision thread for the real-
sqldpin of PR #34408. This is how the pin gets measured, not a new letter on the card's question: ruling 6915086281 (letter A, in-placeALTER COLUMN) stands. Thread-read: 6920763007 (the newest comment on the card), and review#2's record 6920999561 on the PR.What he was asked, and what he chose
The pin was written but not measured, because no cloud container and no CI job had a
sqld. Four ways were put to him on a decision card (decision threadcmsg_01TenzsRopZj4jMbvjX8uz1XLTZrsxvQSLh7Kv8mkgaSpu, cardcmsg_01TenzsRopZj4jMbvjX8uz1XWPxQuBZDzCGqmKX6wqqMFq):sqldruns the command and pastes the output.sqldfrom Turso's official image and measures (recommended).@sqld/linux-x64npm package, which needs nothing from him but is a third-party repack of a June 2025 pre-release.He chose B at 2026-11-16T13:43:30Z, and approved the environment change at about 2026-11-16T15:40Z:
pkg-containers.githubusercontent.comis now an allowed host of the Default cloud environment.Two facts about the container that the options rested on (both measured):
github.com/tursodatabase/...answers 403 from the session's GitHub repository scope, not from the network policy. Allowinggithub.comwould not have fetched a release.ghcr.iowas already reachable (token, tags, manifests). Only the host that serves the image layers was refused by the proxy.The binary
ghcr.io/tursodatabase/libsql-server:v0.24.33, linux/amd64 manifestsha256:756fb4d34447cfa9507dceb3a8e680435d7f2173e2aa680f44a1329e774f7d31, the image's/bin/sqld. Each of the 11 layers matched its digest.sha256sum:28d1039e42fbee5ad51e5cd0a6494146cd7bf0309190a85543b98264f6aa816f--version:sqld sqld 0.24.33 (40a151bd 2025-12-19);sqlite_version()on it answers3.45.1.OS_TEST_SQLD_BINruns at/mnt/project-files/pm-orders/objectstack/sqld/(the binary,fetch-sqld.sh,comma-probe.mjs, a README).Result 1: the pin passes. A real sqld accepts the statement.
Head
a6797ba07c832692288d361978c8b162714a0d0f, afterpnpm install --frozen-lockfileandpnpm --filter '@objectstack/driver-turso...' build(exit 0).The first case asserts the stored table SQL after the statement is byte-equal to the expected text, so the server's splice matches the embedded engine's for a comma-free definition. Without
OS_TEST_SQLD_BINthe same file reads2 skipped(measured at 342fedf), so the pass is the server's.Result 2: the second gated file has one wrong expectation (a test fix, not a refusal)
Reading: the relax lands on the server in the case before (that case passes and reads
memonullable). The failing case then has no safe entry left, andapply.ts:667answersmessage: 'nothing_safe_to_apply'on that path. The fix round wroteexpect(apply.payload.message).toBeUndefined()without asqldto run it on. The expectation is wrong; the product behaviour is the one the case's title describes. For the building seat: fix the expectation, rerun this file with the binary above, and record it. Review#2's M1 asks for both gated files.Result 3: the comma class is real on a real sqld (review#2's S1)
comma-probe.mjs, raw@libsql/clientagainst the same server, one table per row, the column"v"followed by another column unless noted:ALTER TABLE … ALTER COLUMN "v" TO <same minus NOT NULL>"v" REAL NOT NULL DEFAULT 0"v" NUMERIC(10, 2) NOT NULL"v" NUMERIC(10,2) NOT NULL"v" TEXT NOT NULL DEFAULT ('a,b')"v" TEXT NOT NULL CHECK ("v" IN ('a','b'))"v" NUMERIC(10, 2) NOT NULLas the last columnThe refusal text shows the splice, for example
SQLite error: CREATE TABLE "t1" ("id" TEXT PRIMARY KEY, "v" NUMERIC(10, 2), 2) NOT NULL, "z" TEXT): the server ends the old definition at the first comma after the column name, as the embedded engine does. So the dev's note "whether a hostedsqldcarries the same splice is not measured" is now measured forsqld0.24.33: it does. The refusal is clean every time; nothing is half-changed.Who is in the class, read on the head: the REMOTE face renders a column as
TEXT,INTEGERorREAL, plusNOT NULL, with no DEFAULT and no width (remote-transport.tsmapFieldTypeToSQLandcolumnDeclarationSQL). A column this face created cannot hold a comma, and the card's own case (crm_product.list_priceon a hosted environment, which cloud fact 6920763007 puts on this face) is outside the class. A column is inside it only when its table was made some other way: hand-written SQL, or a database built elsewhere and then served over this transport. How many hosted tenants hold such a column is NOT MEASURED.State
sqldaccepts it.Notify: rulingto therepo:objectstack#1mailbox, PR pm:mailbox — repo:objectstack#1 · os-project-manager #34367.Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
coordinator#1 · os-project-manager · session_01FEkQ5oB7w31u98QDzZdq4X
Measurement addendum to 6921391723 · the same two gated files on the newer head · 2026-11-16T15:53Z
The dev's fix round 2 (report 6921327686, head
709476e32848a551c98be6574fcf1736b90b4cf8) landed on the card two minutes before record 6921391723, which had read the thread through 6920763007 and measureda6797ba0. BothOS_TEST_SQLD_BINfiles were run again on709476e3(driver-turso rebuilt, exit 0), samesqld0.24.33 binary:Same readings as 6921391723: the real-
sqldpin passes on the current head, and the one red is the cli case's own expectation at:460(apply.ts:667answersmessage: 'nothing_safe_to_apply'once the relax has landed). The seat can rerun after fixing it with the binary at/mnt/project-files/pm-orders/objectstack/sqld/sqld-0.24.33-linux-x64(sha256 in the README beside it; copy it to local disk first).Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 33724, "status": "blocked", "branch": "claude/issue-33724-remote-relax-not-null", "pr": "https://github.com/objectstack-ai/objectstack/pull/34408", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "head": "715fc6a1fe5ef41fc3fe84a114666d4f8a3f9874", "summary": "Fix round 3 on head 715fc6a1fe. The only change is the cli gated case 'apply without --allow-destructive' (apply.remote-face.integration.test.ts, formerly :460). Once the relax has landed, the run has no safe entry and apply.ts answers message 'nothing_safe_to_apply'. The expectation now reads toBe('nothing_safe_to_apply'), an exact value, not a pattern that would also pass the old undefined. Against the real sqld 0.24.33 named by record 6921391723 (sha256 verified, executed in this container), both gated files pass under the lock: driver-turso sqld pin 2/2 and cli gated file 9/9. M1 is closed. The status stays blocked only on S1 (the comma class ruling), which is untouched. The PR body was not patched; the Fix round 3 section is in summary_for_pr_body.", "summary_for_pr_body": "## Fix round 3\n\nM1 is closed by the maintainer's real-sqld measurement (record 6921391723 on a6797ba0, addendum 6921439242 on 709476e3). Official `sqld` 0.24.33 accepts the in-place relax, and the driver-turso pin passes 2/2. That measurement found one wrong expectation in the cli gated file, and this round fixes only that. S1 (the comma class) is untouched and waits for its own ruling.\n\n- **`apply.remote-face.integration.test.ts`, the case \"apply without --allow-destructive\".** The relax lands in the case before it. So this run has no safe entry left, and `apply.ts` answers `message: 'nothing_safe_to_apply'` on that path. The expectation now states that exact value: `toBe('nothing_safe_to_apply')`, where it read `toBeUndefined()`. No pattern was added, so the old expectation's undefined would not pass. No product code changed.\n\n<details><summary>Real-sqld runs on 715fc6a1fe</summary>\n\nThe binary is the one the record names. It was copied to local disk from the project files and checked: sha256 `28d1039e42fbee5ad51e5cd0a6494146cd7bf0309190a85543b98264f6aa816f`, `--version` answers `sqld sqld 0.24.33 (40a151bd 2025-12-19)`. Its path was passed as `OS_TEST_SQLD_BIN`. Both runs were under the verify lock, after a build of the `@objectstack/cli...` and `@objectstack/driver-turso...` closures (VERDICT command-exit 0).\n\n```text\ndriver-turso src/turso-remote-relax-not-null-sqld.test.ts VERDICT command-exit 0\n ✓ FIRST: the server accepts the bare statement, and the column reads back nullable with its type and DEFAULT\n ✓ the install door on a remote-mode driver: reported applied on a read-back, rows and index unchanged\n Test Files 1 passed (1)\n Tests 2 passed (2)\n\ncli --project integration src/commands/migrate/apply.remote-face.integration.test.ts VERDICT command-exit 0\n ✓ CONTROL: plan on a file, human face: the tightening keeps \"--allow-destructive\", the footer is unchanged\n ✓ CONTROL: apply --yes on a file, human face: the tightening keeps \"--allow-destructive\", both destructive entries are offered a re-run\n ✓ CONTROL: apply --allow-destructive on a file: exit 0, every entry applied, nothing skipped\n ✓ plan: runs, lists the three drifts, says additive work was not examined, and moves nothing\n ✓ plan, human face: the tightening names the transport's limit, never --allow-destructive; the relax names none; the drop keeps it\n ✓ apply --yes, human face: the listing names the limit, only the drop is offered a re-run, and the confirmed relax lands\n ✓ apply without --allow-destructive: nothing left it cannot apply, keeps the destructive two back, exits 0\n ✓ apply --allow-destructive: the drop lands on the server, the tightening it cannot express is named, the verdict is partial\n ✓ apply --allow-destructive, human face: each entry it could not apply is named by table, column and kind, and the run says PARTIAL\n Test Files 1 passed (1)\n Tests 9 passed (9)\n```\n\nThe red leg is the measurement record itself: on a6797ba0 and on 709476e3, the old expectation failed with `expected 'nothing_safe_to_apply' to be undefined` at line 460, and the other 8 cases passed.\n\nQuick gates, all exit 0: check-nul-bytes, check-test-source-alias, check-issue-citations, check-closing-keyword-parity.\n</details>\n", "tests": "Worktree recreated from origin/claude/issue-33724-remote-relax-not-null at 709476e328, then pnpm install --frozen-lockfile (exit 0). Binary: /mnt/project-files/pm-orders/objectstack/sqld/sqld-0.24.33-linux-x64, copied to the scratch dir. sha256sum 28d1039e42fbee5ad51e5cd0a6494146cd7bf0309190a85543b98264f6aa816f matches; chmod +x; --version 'sqld sqld 0.24.33 (40a151bd 2025-12-19)'. Under the lock (slot dev-33724), closure build of @objectstack/cli... and @objectstack/driver-turso...: VERDICT command-exit 0. With OS_TEST_SQLD_BIN set, driver-turso src/turso-remote-relax-not-null-sqld.test.ts --reporter=verbose gave: '✓ FIRST: the server accepts the bare statement, and the column reads back nullable with its type and DEFAULT', '✓ the install door on a remote-mode driver: reported applied on a read-back, rows and index unchanged', 'Test Files 1 passed (1)', 'Tests 2 passed (2)', VERDICT command-exit 0. cli --project integration src/commands/migrate/apply.remote-face.integration.test.ts --reporter=verbose: 9 passed, including '✓ apply without --allow-destructive: nothing left it cannot apply, keeps the destructive two back, exits 0'; 'Test Files 1 passed (1)', 'Tests 9 passed (9)', VERDICT command-exit 0. The red leg is the maintainer's records 6921391723 and 6921439242: the old expectation was 1 failed and 8 passed on a6797ba0 and 709476e3. Test-only change with no product behaviour changed, so no ablation was run.", "gates": "Local, with exit captured before any pipe: check-nul-bytes, check-test-source-alias, check-issue-citations and check-closing-keyword-parity, all exit 0. Earlier rounds' local runs stand for the other families; main was not merged. CI on 709476e328: 34 success, 17 skipped, 0 failure. Test Core had 4 shards success and 5 cancelled, because the push of 715fc6a1fe superseded that run. CI on 715fc6a1fe at report time: 4 success, 3 skipped, 16 in_progress and 0 failure. Lint, Type Check and Check Changeset were in progress, and Test Core had not registered yet, so it is NOT MEASURED; the report was not held for CI.", "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 this round: one post-stamped relay comment on #33724 (this report). git push x1 is not REST. The PR body was not patched.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 16, 2026
coordinator#1 · os-project-manager · session_01FEkQ5oB7w31u98QDzZdq4X
Ruling on parameter 4's return (the comma class) · maintainer 「A 接受这个限制」 · recorded 2026-11-16T16:15Z
Recorded by the project's decision thread. Ruling 6915086281 (in-place
ALTER COLUMN, six parameters) stands unchanged; its parameter 4 says a refusal by a realsqldcomes back to the maintainer once. This is that return, for the class of columns measured in 6921391723 (review#2's S1, record 6920999561). Thread-read: 6921757949 (the dev's fix round 3, head715fc6a1, which reports both gated files green against the samesqld0.24.33, so M1 is closed by the building seat).What he was asked
Decision thread
cmsg_01TenzsRopZj4jMbvjX8uz1XLTZrsxvQSLh7Kv8mkgaSpu, cardcmsg_01TenzsRopZj4jMbvjX8uz1X6PL1pZAkcCTrLtLoE6EvwK. The message that carried the card told him: a realsqldrefuses the relax for a column whose stored definition holds a comma (NUMERIC(10, 2), a DEFAULT or a CHECK with a comma), the table stays byte-identical and the column stays NOT NULL; the columns the platform itself creates on a hosted database areTEXT,INTEGERorREALand never hold a comma, so the downstreamlist_priceis not affected; only a table made by hand-written SQL or a database brought in from elsewhere can be in the class; how many hosted columns are in it has not been counted.The question: 「定一下带逗号的列在托管库上放宽不了时怎么处理?」 The options as he read them:
He chose A at 2026-11-16T16:15:01Z.
The ruling
A. The limit is accepted. On the Turso REMOTE face, a column whose stored definition holds a comma is not relaxed:
⛔ Not taken: B (a rebuild for this class only) and C (hold the PR until the cloud lane counts such columns on hosted).
What this answers for review#2's S1 ("say on the card what such a tenant does"): on this transport, nothing in-product clears it. The operator sees the entry not applied with its reason, and the case goes to the maintainer when a real tenant has one. How the plan listing and the docs line word the class is the building seat's and the reviewer's to settle inside this ruling; the maintainer was told "apply 报未应用并写明原因,文档写明" and nothing more specific.
Scope of the "once": this return is spent for the comma class. A refusal of a comma-free definition, on a real
sqldor on a hosted database, would be a different fact and still goes to him under parameter 4.Protocol:
Metadata-protocol: none; no key or value changes with this ruling.Clause-②is unchanged by it.State
Notify: rulingto therepo:objectstack#1mailbox, PR pm:mailbox — repo:objectstack#1 · os-project-manager #34367.Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
os-dev-report
{ "issue": 33724, "status": "done", "branch": "claude/issue-33724-remote-relax-not-null", "pr": "https://github.com/objectstack-ai/objectstack/pull/34408", "session": "session_01FEkQ5pHNFS9mn8hS13iGyL", "premise_still_valid": true, "head": "00fadc550bb6d2733fe43b0d2a5e1cce91ffbef8", "summary": "Fix round 4 on head 00fadc550b applies ruling 6922037129 (S1, A, the limit accepted). (1) Confirmed by reading: apply.ts lists every driver-skipped entry under 'NOT applied ... (its log above says why)' and in --json notApplied. The driver's warn line, however, carried only the server's raw SQLite error and did not name the class. It now appends that the column's stored definition holds a comma, that libSQL's ALTER COLUMN ends the old definition at the first comma, and that the column keeps its NOT NULL. This is pinned on the comma case, with a negative pin on the comma-free refused case, and the ablation went red. (2) The cli.mdx Turso remote paragraph names the class and what the operator sees. The changeset uses the same wording and adds the sqld 0.24.33 measurement and the accepted limit. No rebuild fall-back was added. M1 and S1 are both closed, so status is done. The PR body was not patched; summary_for_pr_body holds the Fix round 4 section and a replacement 维护者速读, whose 风险与回滚, 先看, 两分钟验证 and 需要你做的 lines change.", "summary_for_pr_body": "## Fix round 4\n\nThis round applies ruling 6922037129 (S1, letter A, the limit accepted). On the Turso REMOTE face, a column whose stored definition holds a comma keeps its NOT NULL. The apply lists it as not applied and says why, the docs name the class, and no rebuild fall-back is added.\n\n- **The reason, checked and then sharpened.** The not-applied listing already existed. `os migrate apply` names the entry under \"change(s) were NOT applied — the driver could not perform them on this database (its log above says why)\", and the `--json` document carries it in `notApplied`. The driver's warn line, however, gave only the server's raw SQLite error, which shows the broken splice but never names the class. When the refused definition holds a comma, the line now ends: `The column's stored definition holds a comma, and libSQL's ALTER COLUMN ends the old definition at the first comma after the column's name, so this transport cannot relax it: the column keeps its NOT NULL`.\n - Pinned in `turso-remote-migration-entries.test.ts`: the comma case asserts the sentence.\n - The unpredicted-splice case, whose definition is comma-free, asserts the line does not carry it.\n- **Docs.** `content/docs/deployment/cli.mdx`, in the Turso remote paragraph, now names the class: a DEFAULT or a CHECK with a comma in it, a type width such as `NUMERIC(10, 2)`, or a comment. It also says what the operator sees: the entry listed as not applied, the log saying the definition holds a comma, the column keeping its `NOT NULL`, and no table rebuild. Columns the platform creates on a remote primary are `TEXT`, `INTEGER` or `REAL` with no DEFAULT and no width, so they are outside the class.\n- **Changeset.** It adds that a real `sqld` 0.24.33 refuses such a column the same way, that the logged reason says the definition holds a comma, and that the maintainer accepted the limit, so no rebuild is added. Platform-created columns are outside the class, worded as in the docs.\n\n<details><summary>Verification on 00fadc550b</summary>\n\nAll runs were under the verify lock.\n- Closure build of `@objectstack/driver-turso...`, typecheck and the full driver-turso suite: Test Files 100 passed and 1 skipped (101); Tests 2563 passed and 36 skipped (2599); VERDICT command-exit 0.\n- Real `sqld` 0.24.33 (sha256 `28d1039e42fbee5ad51e5cd0a6494146cd7bf0309190a85543b98264f6aa816f`) with `OS_TEST_SQLD_BIN`, file `turso-remote-relax-not-null-sqld.test.ts`: Tests 2 passed (2); VERDICT command-exit 0.\n- Ablation through `scripts/ablation-replace.mjs`: its condition `plan.definition.includes(',')` was replaced with `false`, so the class sentence was never added; the anchor went 1 to 0. The comma case went red, with 1 failed and 17 passed. The file was restored to blob == HEAD with `git diff HEAD` empty.\n\nGates, all exit 0: check:doc-authoring, check-nul-bytes, check-issue-citations, check-durability-degradation-log-level, check-changeset-no-major, check-empty-changeset, check-closing-keyword-parity, check-doc-route-spelling (advisory), check-docs-section-name.\n</details>\n\nReplacement `## 维护者速读` (whole section; the \"风险与回滚\", \"两分钟验证\" and \"需要你做的\" lines change):\n\n## 维护者速读\n\n- 改了什么:托管库(Turso 远程连接方式)上,\"去掉一列的不能为空\"现在真的会执行:用 libSQL 自带的改列语句就地改这一列,只删掉 NOT NULL 这几个字,不搬数据、不重建表。\n- 为什么改:应用包升级把必填字段改成选填后,托管客户的数据库还在拒绝空值,保存全部失败;裁决 6915086281 选 A(就地改这一列),本 PR 是框架半边。\n- 风险与回滚:只放宽不收紧;语句和\"表定义必须恰好变成预期样子\"的检查放在同一批里,任何意外整批回滚、表一字不变;读回确认才算成功。已知限制(裁决 6922037129,接受):列定义里带逗号的列(DEFAULT 或 CHECK 里有逗号、`NUMERIC(10, 2)` 这类宽度、注释)托管库改不了,保持必填,apply 列为未应用,日志写明\"定义里有逗号\",不重建表;平台自己建的列不带逗号,不受影响。回滚 = revert 本 PR,托管上回到\"跳过\"。\n- 先看:`packages/drivers/driver-turso/src/turso-driver.ts`(`applyRemoteRelaxNotNull`,批内检查、读回与失败时的日志)、`packages/drivers/driver-turso/src/remote-relax-not-null.ts`(从库里存的建表语句切出这一列的定义)、`turso-remote-migration-entries.test.ts` 的 relax 一组。\n- 两分钟验证:`pnpm --filter @objectstack/driver-turso exec vitest run src/turso-remote-migration-entries.test.ts`,预期 18 条全绿,其中 relax 5 条(已应用、逗号被拒且日志点名、提交后传输出错记为结果未知、意外拼接回滚、安装门已应用)。\n- 需要你做的:无,席位落地(真实 sqld 0.24.33 已实测:两份门控文件 2/2、9/9)。\n", "tests": "All under the lock (slot dev-33724). Build driver-turso..., typecheck and the full driver-turso suite: Test Files 100 passed and 1 skipped (101), Tests 2563 passed and 36 skipped (2599), VERDICT command-exit 0. Real sqld 0.24.33 (sha256 28d1039e42fbee5ad51e5cd0a6494146cd7bf0309190a85543b98264f6aa816f re-verified) on turso-remote-relax-not-null-sqld.test.ts: '✓ FIRST: the server accepts the bare statement, and the column reads back nullable with its type and DEFAULT', '✓ the install door on a remote-mode driver: reported applied on a read-back, rows and index unchanged', Tests 2 passed (2), VERDICT command-exit 0. The cli gated file was not rerun: no cli file changed since round 3's 9/9 on 715fc6a1fe, and the round-4 driver change is in the refusal branch only, which that file does not reach. Ablation: ablation-replace changed the anchor \"const commaClass = plan.definition.includes(',')\" to \"const commaClass = false\" (anchor 1->0). The comma case went RED (1 failed / 17 passed). Restored to blob == HEAD (828ee38d6315), git diff HEAD empty.", "gates": "Local, with exit captured before any pipe: check:doc-authoring, check-nul-bytes, check-issue-citations, check-durability-degradation-log-level, check-changeset-no-major --base origin/main, check-empty-changeset --base origin/main, check-closing-keyword-parity, check-doc-route-spelling --advisory and check-docs-section-name, all exit 0. CI on 00fadc550b at report time: 6 success, 5 skipped, 15 in_progress, 0 failure; Test Core is not concluded and is NOT MEASURED, and the report was not held for CI. CI on 715fc6a1fe: 37 success, 17 skipped, 0 failure. Test Core shards 3, 6 and 7 of 8 were cancelled because the round-4 push superseded that run; the other 5 succeeded.", "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 this round: one post-stamped relay comment on #33724 (this report). git push x1 is not REST. The PR body was not patched.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Acceptance notes · review follow-ups of PR #34408 · 2026-11-16T16:59Z
This card stays open after PR #34408 lands (
Part of #33724: the cloud half #34377 and the hosted re-save remain), so it carries review#2's two docs nits from PASS 6923055131 for the next PR that touches this text:content/docs/deployment/cli.mdxand the changeset say platform-created columns on a remote primary have "no DEFAULT".created_atandupdated_atare created asTEXT DEFAULT (datetime('now')). Neither is NOT NULL and neither holds a comma, so the conclusion (platform columns are never in the comma class) holds; only the premise is too broad. Reword to "no comma in their definition".os migrate applyshows for a comma-class column, but not thatos migrate planlists the same relax with no limit (the plan does not read the stored definition). One clause.Both are prose only. Landing #34408 without them was chosen over a new head, because a new head re-opens both review records.
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5pHNFS9mn8hS13iGyL
Release: framework half delivered · 2026-11-16T18:01Z · area o1-B returns this card to the seat
repo:objectstack#1.Part of #33724) merged through the merge queue as69949aed. The Turso REMOTE face now relaxes NOT NULL in place with libSQLALTER TABLE … ALTER COLUMN … TO …(ruling 6915086281, letter A), reportsappliedonly on read-back, and pins the statement on a realsqld0.24.33 (sqld measurement 6921391723). A column whose definition carries a comma (the comma class) keeps NOT NULL on REMOTE and is reported not-applied with its reason; the docs name the class (ruling 6922037129, 「A 接受这个限制」). L1 ACCEPT 6923152602, contract review PASS 6923055131 (review#2).VALIDATION_on an upgrade that declaresstorage.notNull: false. The card closes on that hosted reading.sqldor on a hosted tenant, goes back to Leehom through the seat (ruling 6915086281 parameter 4 is spent for the comma class only). It is not absorbed.Labels in this stroke:
pm:dispatched→pm:blocked,lease:o1-Bremoved, assignee cleared.objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA
State reading · 2026-11-16T22:36Z · blocked-card scan of seat
repo:objectstack#2.pm:blockedwith noBlocked-by:line. The Release 6924684463 names the wait as "the cloud half, cloud: a managed install or upgrade rebuild never relaxes a NOT NULL column the new package version declares storage.notNull:false (call relaxInstallDeclaredNotNull after schema sync) #34377, and then a hosted re-save".Blocked-by: #33724and says the cloud half already landed (its comment 6921328530). The two cards point at each other, so the unblock scan can never release either one.VALIDATION_after an upgrade that declaresstorage.notNull: false, once a release that contains69949aed(PR fix(driver-turso): the REMOTE face relaxes a NOT NULL column in place with libSQL ALTER COLUMN, applied only on a read-back #34408) is installed on the hosted environment. No framework code is owed.So
pm:blocked→pm:on-hold. Per the state model,priority:p1→priority:p3in the same stroke.Restart-grade: p1
Restart-when: the first published
@objectstack/driver-tursoversion that contains commit 69949ae is installed on the hosted ObjectOS Cloud environment. Then the cloud lane runs the hosted re-save described above and records the reading here. A pass closes this card as completed. AVALIDATION_answer returns it topm:queueat p1.Probe:
npm view @objectstack/driver-turso version, then check whether that release's changelog names #34408.#34377's own
Blocked-by: #33724belongs to the cloud lane, which owns that card. Nothing on it is changed here.objectstack-fleet commentedon Nov 19, 2026
epic:#35205#1 · os-warren · session_01JQwxbYJqoPAoSpWTMpH1yq
Closed as completed — the remaining hosted read moves to #35262 · 2026-11-19T02:05Z
The framework half landed: PR #34408 (
69949aedc1, the Turso REMOTE face relaxes a NOT NULL column in place), per ruling A (6915086281). The cloud call site landed under #34377 (cloud PR #4753). Cloud's pin carries both. The hosted re-save read is now the maintainer card #35262.Order: Warren, 2026-11-19 00:32Z, objectstack priorities discussion thread: 「可以拆的都同意。」 Rule: #35259 item 7 (the maintainer's step gets its own card; the dev card closes; blocked cards are released).
Generated by Claude Code
fix(driver-sql): removing a field default stores NULL on MySQL 8, and…