Skip to content

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

Closed

Description

@os-bob

coordinator#1 · os-project-manager · session_01FEkQ5kGEg1D7Ad44J9VDdQ

Ruled: 6915086281 · letter A · 2026-11-16T11:26Z

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:

  1. 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.
  2. 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-protocol ensureObjectStorage), 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)

  1. Build a database with a package object field list_price: Field.currency({ required: true, storage: { notNull: true } }).
  2. Upgrade the package so the field is optional with storage: { notNull: false }.
  3. 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".
  4. PUT /api/v1/meta/object/crm_product returns 403 NOT_OVERRIDABLE.
  5. 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.

Activity

  1. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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.

  2. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 16, 2026
  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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/main 719b6b53722d, 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.

    1. 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.
    2. 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).
    3. Not the cause:

    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.
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5pmEYLVFDcQ1Z1CS8H

    Routing at 2026-11-16T10:37Z on the area reading 6913887597:

  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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, 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?

    The three options on the card, as he read them:

    • 「A 就地改这一列」: 「用托管库自带的改列语句只去掉这一列的限制,不搬数据;先在真实 sqld 上钉住,被拒回到你这里一次。」 (recommended)
    • 「B 整表重建」: 「建新表、拷全部数据、换名、重建索引,一个原子批;拷贝期间挡写入,先测托管耗时再建造。」
    • 「C 框架不做」: 「只把提示文字改对;托管库由云端运维逐库手工放宽,下游演示环境继续等。」

    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.

    1. 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.
    2. The doors do not change. Three acts reach the relax, as today: a managed install or upgrade of a package that declares 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, and os migrate apply. A boot never alters a column (ADR-0113 D5 is untouched).
    3. 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.
    4. 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.
    5. Only nullability changes. The new column definition restates the type and the default the database holds today. Nothing else is aligned on the way.
    6. 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/main a8e794f5:

    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

    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/main a8e794f5; 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


    Generated by Claude Code

  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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_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

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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"
      ]
    }
  9. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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. 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.

  10. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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": []
    }
  11. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9

    Fact for the framework half, read from cloud code at origin/main e4750e49322f (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).
    • Consequence: the cloud call to relaxInstallDeclaredNotNull (objectstack#34377, objectstack-ai/cloud#4753, draft) reaches the REMOTE face's relax_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.
  12. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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": []
    }
  13. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    coordinator#1 · os-project-manager · session_01FEkQ5oB7w31u98QDzZdq4X

    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.
    • sha256sum: 28d1039e42fbee5ad51e5cd0a6494146cd7bf0309190a85543b98264f6aa816f
    • --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.ts mapFieldTypeToSQL 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


    Generated by Claude Code

  14. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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 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).


    Generated by Claude Code

  15. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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": []
    }
  16. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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 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 接受这个限制」: 「这类列保持必填,apply 报未应用并写明原因,文档写明;平台自己建的列不受影响,PR 继续走复审。真有租户撞上再回到你这里。」 (recommended)
    • 「B 这类列改走整表重建」: 「只对带逗号的列建新表、拷全部数据、换名;拷贝期间挡写入,托管耗时没测过,要多维护一套重建流程,PR 落地推后。」
    • 「C 先查托管库再定」: 「请云端车道查现有托管库里有多少这类列,查完再回来定;这期间 PR 不落地,下游演示环境继续等。」

    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:

    1. 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.
    2. The apply reports the entry not applied and says why. The documentation names the class.
    3. 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.
    4. 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.

    State


    Generated by Claude Code

  17. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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": []
    }
  18. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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:

    • 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.

  19. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    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.

    Labels in this stroke: pm:dispatched → pm:blocked, lease:o1-B removed, assignee cleared.

  20. added
    pm:blocked
    and removed
    pm:dispatched
    on Nov 16, 2026
  21. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

    State reading · 2026-11-16T22:36Z · blocked-card scan of seat repo:objectstack#2.

    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.

  22. added
    pm:on-hold
    and removed
    pm:blocked
    priority:p1
    on Nov 16, 2026
  23. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    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

  24. removed
    pm:on-hold
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cloudbugdomain:serverpriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions