Skip to content

spec(data): a shared NULL-distinct unique conformance case-set, scored by the driver census - #29808

Merged
objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-polo9l
Nov 3, 2026
Merged

objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-polo9l

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

domain:spec#2 · os-support-ai · session_01WGufzhJG3tKnksHVa1krBz

Requested by Yibo Wang · project thread
Fixes #29377
Supersedes #29509 (same commits, resumed on a new branch)
Ruling-ref: 6595804527

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 改了什么:@objectstack/spec/data 新增一套共享的一致性用例 UNIQUE_NULL_DISTINCT_CASES(10 条):唯一键任一列为空(null 或没写)的两条记录都能保存;'' 和相同的非空值照旧冲突;单列 unique 与两列联合唯一索引各有覆盖。驱动一致性普查把它登记为新的一列,6 个驱动各记一条 DEBT 待接入。
  • 为什么改:MongoDB 驱动曾把第二条空值记录拒掉(driver-mongodb: field unique is built as a sparse index, so two explicit null values collide, unlike the NULL-distinct rule of driver-sql and driver-memory #29278,已由 fix(driver-mongodb): two records with a null unique field are both admitted, as on driver-sql and driver-memory #29339 修好),期间普查全绿,因为没有任何用例问这个问题。有了这套用例,下一个驱动或回归再把空值合并成同一个键,就会在普查里被记为未覆盖、在驱动接入后直接变红。
  • 风险与回滚:只新增测试支撑导出,不改任何驱动、schema 或运行时行为。回滚 = revert 本 PR。新增 4 个公开名(见下文 New public names);普查账本多出 6 条 DEBT,已按裁决 6595804527(A,维护者「同意」)原样保留。
  • 先看:packages/spec/src/data/unique-null-distinct-conformance.ts(用例与实测出处);scripts/check-driver-conformance.mjs 新增的 6 条 DEBT;unique-null-distinct-conformance.test.ts 的六种错误读法。
  • 两分钟验证:node scripts/check-driver-conformance.mjs,预期矩阵多出 UNIQUE_NULL_DISTINCT 一列、6 格 DEBT,结尾 OK — 66 covered cell(s), 6 in the DEBT ledger。
  • 需要你做的:无,席位落地。

Resume note

This PR carries #29509's five commits unchanged (head 0c0e86d0, contract review PASS, record 6583589505 on #29509), resumed on this branch because a card thread can push only its own branch. On top: one merge of origin/main @ 25450217 (no conflict; main had not moved scripts/check-driver-conformance.mjs since the old merge base, so the census and the six DEBT rows are byte-identical to #29509), and one regeneration commit for packages/spec/api-surface/data.json and packages/spec/export-origins/data.json (both moved on main; os-regen-merge.sh took main's side and check:generated --fix re-added exactly this PR's four names). The case-set, its test, the changeset and the census are unchanged from 0c0e86d0.

What changes

  • New case-set packages/spec/src/data/unique-null-distinct-conformance.ts, beside value-roundtrip-conformance.ts and readable-ids-conformance.ts, in their shape. Ten cases over two fixture objects: unique_null_single (field-level unique: 'global' on code) and unique_null_compound (declared index { fields: ['region', 'tag'], unique: 'global' }).

    case rows second write
    single_null_null code: null twice admitted
    single_absent_absent code omitted twice admitted
    single_null_absent null, then omitted admitted
    single_equal_value the same string twice refused
    single_empty_string '' twice refused
    compound_one_null (r1, null) twice admitted
    compound_leading_null (null, t2) twice admitted
    compound_one_absent (r3, omitted) twice admitted
    compound_equal (r4, t4) twice refused
    compound_differs_in_one_part (r5, t5a), (r5, t5b) admitted

    The consumption recipe is in the module docblock: sync both objects, create() the first row (must be admitted), create() the second and record refused only when isUniqueViolationError (@objectstack/types) recognises the error, count the rows labelled with the case, and hand both to uniqueNullDistinctDivergence. The count is there because a driver can refuse a write and keep it. Every non-NULL key value belongs to one case, so a suite may run all ten on one synced pair of objects (pinned).

  • Scope spelled 'global' on both surfaces. The scope of unique (ADR-0120 D1, ADR-0131 D1) is a different axis and stays out of this table; 'global' is the one spelling that means the same key on every driver with or without a tenant column. A bare true on a declared index is refused since protocol 18, and the test parses both fixture objects through ObjectSchema.

  • packages/spec/src/data/index.ts: the export * line with its comment.

  • Census registration in scripts/check-driver-conformance.mjs: a CASE_SETS row (file, marker: 'UNIQUE_NULL_DISTINCT_CASES', what), and one LEDGER row per driver (kind: 'DEBT', issue: '#29377'), each with its measured state in why. A history note above LEDGER records why the column opens with six rows (the FILTER_TEXT shape: the contract lands ahead of its suites) and how a row clears (the driver's PR adds the suite and deletes its row; RECONCILED reds a row kept beside a suite). No driver package is touched.

  • Regenerated: packages/spec/api-surface/data.json, packages/spec/export-origins/data.json (four added names each).

  • Changeset .changeset/29377-unique-null-distinct-conformance.md: @objectstack/spec patch.

New public names

Under @objectstack/spec (the data entry), spelled like the sibling case-sets:

UNIQUE_NULL_DISTINCT_CASES

The cases constant and the census marker (the census discovers export const ..._CASES).

UNIQUE_NULL_DISTINCT_OBJECTS

The two fixture objects, as syncSchema takes them (cf. VALUE_ROUNDTRIP_FIELDS, READABLE_IDS_PARENT_OBJECT).

UniqueNullDistinctCase

The row type (cf. ValueRoundTripCase, ReadableIdsCase).

uniqueNullDistinctDivergence

The shared judge, (case, second, stored) => string | null (cf. valueRoundTripDivergence). A pure comparison over two observed values, no runtime logic.

Why

PR #29339 (#29278) made driver-mongodb admit a second null in a unique field. Its old sparse index indexed an explicit null like a value. driver-sql and driver-memory already admitted it, and the census stayed green through the whole divergence because no case-set asked the question. value-roundtrip-conformance.ts describes the same gap for value storage: no case-set, no evidence.

Tests

No existing test was edited. One new file, packages/spec/src/data/unique-null-distinct-conformance.test.ts (23 tests):

  • The table, executed against a reference store written from the declared rule (a NULL in any key part exempts the row; '' is a value): each case alone, and all ten in order on one store.
  • Not vacuous: six wrong readings each fail the table. They are a sparse index (null indexed), null and absent folded onto one value, '' treated as NULL (fails exactly single_empty_string), a compound keyed on its first column, a constraint never checked, and a refusal that keeps the row (both fail exactly the three refused rows).
  • The judge: null only on the expected answer and the expected count.
  • Well-formed: unique names, rows labelled, non-NULL key values owned by one case, both answers on both objects, both objects accepted by ObjectSchema.

Acceptance notes

  • The compound row was measured before it was written. The three drivers agree. driver-memory and driver-sql (better-sqlite3) were run in-process over all ten cases on origin/main @ f95d0dba, judged by uniqueNullDistinctDivergence and isUniqueViolationError: 10 of 10 agree on each (readings below). driver-mongodb was not run against a server here: no mongod binary was reachable in this container (fastdl.mongodb.org is blocked, and fetching the conda-forge build was refused). Its standing readings are PR fix(driver-mongodb): two records with a null unique field are both admitted, as on driver-sql and driver-memory #29339's real-mongod suite (mongod 8.3.7), which covers six of the ten rows: single_null_null, single_absent_absent, single_equal_value, single_empty_string, compound_one_null, compound_equal. The other four follow from the index shape that suite's server-free half pins (a partialFilterExpression admitting only non-NULL types on every key part). Its server-free half ran here: mongodb-unique-null-distinct.test.ts 7 passed, 8 skipped (real-mongod, opt-in). The driver's adoption PR is the measurement for those four.
  • The update door is out of the table. Clearing a unique field to null by update() was measured on driver-mongodb in fix(driver-mongodb): two records with a null unique field are both admitted, as on driver-sql and driver-memory #29339 only, so it is named as absent in the docblock rather than added without a measurement.
  • driver-odata gets a DEBT row like the others, but its syncSchema is a no-op (the remote service owns constraints). Its adoption card decides whether that cell is a suite or an EXEMPT row.
  • The census's own CONSUMED message marks a ledger entry ⛔ MAINTAINER-ONLY. These six rows are what the card asks for (a case-set landing ahead of its drivers), so the maintainer's review of this PR is that agreement.

Verification

Driver measurement, origin/main @ f95d0db (in-process, scratch script outside the tree; carried from #29509)
memory   single_null_null               second=admitted stored=2 agrees
memory   single_absent_absent           second=admitted stored=2 agrees
memory   single_null_absent             second=admitted stored=2 agrees
memory   single_equal_value             second=refused  stored=1 agrees  UNIQUE_VIOLATION
memory   single_empty_string            second=refused  stored=1 agrees  UNIQUE_VIOLATION
memory   compound_one_null              second=admitted stored=2 agrees
memory   compound_leading_null          second=admitted stored=2 agrees
memory   compound_one_absent            second=admitted stored=2 agrees
memory   compound_equal                 second=refused  stored=1 agrees  UNIQUE_VIOLATION
memory   compound_differs_in_one_part   second=admitted stored=2 agrees
memory divergent cases: 0
sql      (same ten rows, same answers; each refusal SQLITE_CONSTRAINT_UNIQUE)
sql divergent cases: 0

Every first write was admitted on both drivers.

Local runs on head 4ee136f (main merged at 2545021)

Heavy runs in one os-verify-lock.sh script, VERDICT command-exit 0 (held 22m32s on a shared box).

run reading
turbo run build --concurrency=2 (whole repo) exit 0 · Tasks 118 successful, 118 total
pnpm --filter @objectstack/spec test exit 0 · Test Files 805 passed (805) · Tests 23903 passed, 1 todo
pnpm --filter @objectstack/spec test:repo exit 0 · Test Files 89 passed (89) · Tests 1522 passed
node scripts/check-driver-conformance.mjs exit 0 · OK — 66 covered cell(s), 6 in the DEBT ledger, 0 exempt
pnpm --filter @objectstack/spec check:generated exit 0 (after --fix re-added this PR's four names to api-surface/data.json and export-origins/data.json)
dispatch-gates --commands (100 families, after the full build) 100 exit 0; --ran: 100 derived, 100 run, 0 NOT-MEASURED, 0 UNRUN
check-changeset-no-major.mjs --base origin/main --event (this body) exit 0 · Clause-②: yes (widening) · Metadata-protocol: none · level stays patch (a non-protocol change)

Before opening, origin/main had moved 13 commits to 0e4b0fa4; git merge-tree against it reports no conflict, and none of the 13 touches the census, packages/spec/src/data/index.ts or the two generated files.
No ablation: the diff changes no behaviour a test pinned before. The new test proves the table is not vacuous with six wrong readings instead (see Tests).

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (Test-support constants and a pure judge, as in value-roundtrip-conformance.ts.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (eslint over the four touched source files locally; the repo-wide run is CI's.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

Generated by Claude Code

…d by the driver census

UNIQUE_NULL_DISTINCT_CASES in packages/spec/src/data: two rows whose unique
key holds a NULL in any key part both land, '' and equal values collide, on a
field-level unique and a declared two-column unique index. Its test runs the
table against a reference store and proves six wrong readings each fail it.
The census registers the column with one tracked DEBT row per driver; no
driver package changes.

Claude-Session: https://claude.ai/code/session_01ADHkmR216nE71oPFuQMyRt
Co-authored-by: Claude <noreply@anthropic.com>
…istinct case-set

Claude-Session: https://claude.ai/code/session_01ADHkmR216nE71oPFuQMyRt
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation protocol:data tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

18 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 3 changed file(s) yielded no anchor (packages/spec/api-surface/data.json, packages/spec/export-origins/data.json, packages/spec/src/data/index.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 3 changed file(s) yielded no anchor (packages/spec/api-surface/data.json, packages/spec/export-origins/data.json, packages/spec/src/data/index.ts) — pages documenting those are invisible to this run
  • 6 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 61 of 219 client-bound route-ledger rows — the other 158 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 158: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 55 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 103 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 168 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 0e4b0fa411de344a0c2f38500255c68fc1cdfdf2 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 151d96804ae7c5cabfb8a3cb3587987781e9eb00 — the merge of head 4ee136f065201c8f6edbd7856a651ac212b2f86b into base 0e4b0fa411de344a0c2f38500255c68fc1cdfdf2, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 151d96804ae7c5cabfb8a3cb3587987781e9eb00 && git checkout 151d96804ae7c5cabfb8a3cb3587987781e9eb00
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 0e4b0fa411de344a0c2f38500255c68fc1cdfdf2 4ee136f065201c8f6edbd7856a651ac212b2f86b && git checkout -B drift-repro 0e4b0fa411de344a0c2f38500255c68fc1cdfdf2 && git merge --no-ff 4ee136f065201c8f6edbd7856a651ac212b2f86b

node scripts/docs-audit/affected-docs.mjs --json 0e4b0fa411de344a0c2f38500255c68fc1cdfdf2

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · os-support-ai · session_01WGufzhJG3tKnksHVa1krBz

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4ee136f065201c8f6edbd7856a651ac212b2f86b
Local-runs: none
Scope: packages/spec/src/data/index.ts, packages/spec/src/data/unique-null-distinct-conformance.ts + packages/spec/src/data/unique-null-distinct-conformance.test.ts, scripts/check-driver-conformance.mjs, .changeset/29377-unique-null-distinct-conformance.md, packages/spec/api-surface/data.json, packages/spec/export-origins/data.json, scripts/check-changeset-no-major.mjs, packages/spec/src/data/field.zod.ts, packages/spec/src/data/object.zod.ts, packages/types/src/unique-violation.ts, packages/drivers/driver-memory/src/memory-unique-constraint.ts, packages/drivers/driver-memory/src/memory-driver.ts, packages/drivers/driver-sql/src/schema-drift.ts, packages/drivers/driver-sql/src/sql-driver-schema-sync.ts, packages/drivers/driver-sql/src/sql-driver.ts, packages/drivers/driver-mongodb/src/mongodb-schema.ts, packages/drivers/driver-mongodb/src/mongodb-driver.ts, packages/drivers/driver-mongodb/src/mongodb-unique-null-distinct.test.ts, packages/drivers/driver-odata/src/odata-driver.ts

Delta record over 6583589505 (PR #29509, head 0c0e86d0, PASS at this tier). PR #29808 supersedes #29509 under ruling 6595804527 (letter A: the six DEBT rows ride as built). This record re-judges only what changed between the two heads and what origin/main brought in between the two merge bases; every ① to ④ judgment of 6583589505 that this record does not name is adopted unchanged, on the measurement below that the hunks it judged are the same hunks.

Inputs: card #29377 (ruling 6595804527, claim 6595859623, dev report 6596443147, hand-off 6589445500, the earlier claim, amendment and Decision-needed), PR #29808 body and files, the net diff origin/main...4ee136f0 (merge base 25450217, 7 files, +594/−6), the superseded net diff 6af3d295...0c0e86d0 (7 files, +594/−6), the check-runs on 4ee136f0 and its PR-body-guards job log, origin/main @ 0e4b0fa4, and the cited code read with git show. Read-only: no worktree, build, test or gate was run; the dev report's local-run table was not an input to any judgment.

① Derived judgments

  1. Same change, file by file. The seven paths are the same set in both net diffs, and five of the seven are the same blob at both heads: unique-null-distinct-conformance.ts (3b9bca66), its test (95d5b585), the changeset (41726e9e), scripts/check-driver-conformance.mjs (6d2649e8) are identical bytes, and the diff-of-diffs over index.ts, the two source files, the test, the changeset and the census is empty but for one hunk header on index.ts (@@ -144 became @@ -149: main added export { isListComparandOperator } five lines above, commit df8d020). The index.ts hunk itself (the comment and the export * from './unique-null-distinct-conformance' line, between value-roundtrip-conformance and date-macros.zod) is the same text. The two generated files differ from 0c0e86d0 only because main moved them: against each head's own base the hunk adds exactly the same four lines (UNIQUE_NULL_DISTINCT_CASES (const), UNIQUE_NULL_DISTINCT_OBJECTS (const), UniqueNullDistinctCase (interface), uniqueNullDistinctDivergence (function) in api-surface; the four src/data/unique-null-distinct-conformance.ts#… origins in export-origins) at the same alphabetical slots, three lines lower. No hunk differs in content; the net diff carries nothing the merges brought that is not on main (the net stat is the same +594/−6 over the same seven paths).
  2. Main did not move what the earlier record read. Between the old base 6af3d295 and origin/main @ 0e4b0fa4 (179 commits) zero commits touch scripts/check-driver-conformance.mjs (blob a4ecf114 at both bases and on main), packages/types/src/unique-violation.ts, memory-unique-constraint.ts, memory-driver.ts, sql-driver-schema-sync.ts, schema-drift.ts, mongodb-schema.ts, mongodb-driver.ts, mongodb-unique-null-distinct.test.ts, odata-driver.ts, value-roundtrip-conformance.ts or readable-ids-conformance.ts. The one commit on sql-driver.ts (3ff7fb7, the list-comparand split) adds or removes no line naming unique, UNIQUE or an index. The four commits on field.zod.ts and three on object.zod.ts change no unique, indexes or nullSafe line (one TSDoc sentence mentions "unique-covered"); UniqueScopeSchema and the declared-index shape the fixtures parse through are as the earlier record read them, so ① items 2 to 4 and 7 of 6583589505 hold on this base.
  3. Census and ledger still reconcile on this base. origin/main exports eleven *_CASES constants from *-conformance.ts under spec/src/data (AGGREGATION, FILTER_COMPARAND_TYPE, FILTER_LOGIC, FILTER_TEXT, PAGINATION, PAGINATION_UNORDERED, PAGINATION_ZERO_LIMIT, READABLE_IDS, TEMPORAL, TEMPORAL_TIME, VALUE_ROUNDTRIP); the head's CASE_SETS names those eleven plus UNIQUE_NULL_DISTINCT_CASES, and no other *-conformance.ts on main exports a _CASES name (bulk-write-hook-conformance.ts was present at the old base and exports none). packages/drivers/ on main is still the six packages the six DEBT rows name (memory, mongodb, odata, sql, sqlite-wasm, turso); no driver was added or removed. CLASSIFIED and RECONCILED hold as they did.
  4. packages/spec/src/data/index.ts exports: no collision. git grep on origin/main for the four names and for unique-null-distinct matches no file content, and the only paths spelled that way are packages/drivers/driver-mongodb/src/mongodb-unique-null-distinct.test.ts and .changeset/29278-mongodb-unique-null-distinct.md (the fix(driver-mongodb): two records with a null unique field are both admitted, as on driver-sql and driver-memory #29339 changeset); main's one addition to the barrel (isListComparandOperator) is a different name at a different slot. The head's generated api-surface and export-origins equal main's plus exactly the four names, which is what check:generated must find current.
  5. The merge commits are clean. e953a404 and ea07aeb0 are the only commits between 0c0e86d0 and the regen commit 4ee136f0; the net diff against main shows the seven paths and nothing else, so neither merge dropped a main-side hunk or carried a branch-side one outside the claim's surface.

② Semver level

@objectstack/spec: patch, unchanged. Changeset and PR body both declare Clause-②: yes (widening) and Metadata-protocol: none line-initially, agreeing with the claim 6595859623. Read against scripts/check-changeset-no-major.mjs on main: the level is decided by the Metadata-protocol: kind alone (none grades every introduced entry patch; the yes (widening) arm is read for the contract-review face and the ADR-0087 signal, and its self-test pins yes (widening) beside none as none-clean), and a declared none is refused only when a packages/spec/authorable-surface/ or authorable-defaults/ shard moves (PROTOCOL_BASELINE_ROOTS). packages/spec/api-surface/ and export-origins/ are in neither root, so the moved api-surface shard is invisible to that gate, as it should be: it records a public-surface widening, not an authorable key. AGENTS.md Post-Task Checklist step 3 says the same (a non-protocol widening ships patch). Check Changeset on this head concluded success. No ADR-0087 disposition is owed.

③ Boundary flags

  • PR-body guards job is red on this head, on a condition that has since cleared, not on the diff. Job 125750359932 (run 41585645467, started 05:44:20Z) failed with "spec(data): add a shared NULL-distinct unique conformance case-set beside value-roundtrip and the filter sets, so every driver proves two NULLs do not collide #29377 is already claimed by spec(data): a shared NULL-distinct unique conformance case-set, scored by the driver census #29509 (draft)"; PR spec(data): a shared NULL-distinct unique conformance case-set, scored by the driver census #29509 was closed at 05:47:07Z, three minutes after the run started. The guard's own text says it re-runs on edited and synchronize and goes green once the conflict is gone. It is not among the ten contexts main's ruleset requires (TypeScript Type Check, Test Core, Build Core, Lint & Repo Gates, Governed Surface Queue Guard, Lint UI, Build & E2E UI, Type Check UI, Test UI, Live E2E UI). Landing step for the seat: trigger the re-run (an edit to the PR body suffices) and read it green before arming; no head change is needed. The same job also warned that the newest Claim: on spec(data): add a shared NULL-distinct unique conformance case-set beside value-roundtrip and the filter sets, so every driver proves two NULLs do not collide #29377 carries no parseable Branch: line (6595859623 writes Branch: \claude/project-thread-polo9l` (card thread, …), a parenthetical after the value) and that the branch name does not name the issue (the measured platform exception the claim records); both are warnings, not failures, and the seat may want a bare Branch:` line in a claim amendment so the single-writer guard can read it.
  • Ruling 6595804527 (letter A) is applied as ruled: the census row and the six DEBT rows are byte-identical to the head that record 6583589505 judged and the Decision-needed described; nothing was added, dropped or re-worded. The ⛔ MAINTAINER-ONLY marker on ledger growth is satisfied by the maintainer's 「同意」 on that comment, and the PR body carries Ruling-ref: 6595804527.
  • Not a governed-surface PR: no path under docs/adr/**, .claude/**, skills/**, .github/workflows/**, AGENTS.md, CLAUDE.md or docs/NORTH-STAR.md; the Governed Surface Queue Guard concluded success. Head repo is objectstack-ai/objectstack (not a fork).
  • Check-runs on 4ee136f0, polled to completion, last read 2026-11-03T06:10:12Z: 64 runs, 0 pending, 54 success, 9 skipped, 1 failure, 0 cancelled. The one failure is the PR-body guards job above. Every context main's ruleset requires concluded: Type Check (workspace, consumer gates, debt ledger, source gates), Test Core (plan plus 8 of 8 shards and the roll-up), Build Core, every Lint lane (ESLint, CI/release/engine, PM dispatch-gates, docs and code guards, repo and tooling gates, the three scoped lanes), Governed Surface Queue Guard, Build and E2E UI, Type Check UI, Test UI (16 of 16 and the roll-up) and Live E2E UI all success; Lint UI concluded skipped (no ui/ path in the diff). The verdict below is on the tree; landing still waits on the re-run of the PR-body guards job reading green.
  • Author: the relay (objectstack-fleet[bot]), executor session session_01WGufzfXhPVhbNCfA7cqGdi, on claude/project-thread-polo9l.

④ Design judgment

  • packages/spec/src/data/unique-null-distinct-conformance.ts: same blob as 0c0e86d0, and the drivers it cites (memory uniqueKeyOf, sql uniqueIndexesFromFields and syncDeclaredIndexes, mongodb nullDistinctUniqueOps, isUniqueViolationError) are unmoved on main since the old base, so the ten rows are still measured values or controls against the code as it reads today. Holds, as 6583589505 ④ found.
  • packages/spec/src/data/index.ts: one export * with its provenance comment, still placed with the other conformance tables after main's own barrel addition. Holds.
  • scripts/check-driver-conformance.mjs: byte-identical to the judged head, on a main that did not touch the census, the driver axis or any sibling case-set. Holds.
  • Non-blocking follow-ups carry over unchanged from 6583589505 (a compound_empty_string row, the update door, one clause on fix(driver-mongodb): two records with a null unique field are both admitted, as on driver-sql and driver-memory #29339's bare-true readings), for the adoption cards.

Implemented-by: claude/project-thread-polo9l
Reviewed-by: session_01WGufzhJG3tKnksHVa1krBz

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · os-support-ai · session_01WGufzhJG3tKnksHVa1krBz

席位核对 — ACCEPT · domain:spec#2 · head 4ee136f065201c8f6edbd7856a651ac212b2f86b

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 3, 2026 06:14
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 31204d1 Nov 3, 2026
68 of 69 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-polo9l branch November 3, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:data size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant