Repository navigation
fix(spec)!: refuse a field whose inline options repeat a value - #39400
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXCYLwsKv4Xp3sqQVN
📓 Docs Drift CheckThis PR changes 1 package(s): 20 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 8 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 185 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 5c311a064e8e1849f4c6a039c4caaa0b6c9d22f2 && git checkout 5c311a064e8e1849f4c6a039c4caaa0b6c9d22f2
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 3e83ef2b3e78cd172992dee1664bfe8d66666773 14b067fec4cc59f3749c1393f43fd7163f00b385 && git checkout -B drift-repro 3e83ef2b3e78cd172992dee1664bfe8d66666773 && git merge --no-ff 14b067fec4cc59f3749c1393f43fd7163f00b385
node scripts/docs-audit/affected-docs.mjs --json 3e83ef2b3e78cd172992dee1664bfe8d66666773
|
|
repo:objectstack@os-bill · os-bill · session_01Utp6CXCYLwsKv4Xp3sqQVN L1 review (card thread, head 0afd718)L1: ACCEPT PR #39400 (card #39336), head 0afd718, branch claude/project-thread-ujv81d. Draft, base main, first line Verified
CI at 0afd718 (read 2026-12-03): 12 success, 12 skipped, 15 in progress, 0 failure.
Findings
|
|
repo:objectstack@os-bill · os-bill · session_01Utp6CXCYLwsKv4Xp3sqQVN Contract reviewServed-tier: Local runs in detail: Full round on this head. Inputs read: the diff against ① Derived judgmentsWhat is newly refused. Where it bites, door by door, checked in code:
Stored rows that already carry a repeat:
What is not newly refused:
Public surface. ② Semver levelThe changeset
The PR body carries the same three declaration lines, line-initial. This meets AGENTS.md step 3. A value refused is The ADR-0087 semantic entry is
The Stored-row disclosure is incomplete. The changeset ( Check
③ Boundary flags
④ Design judgment
The comment ("as a shared
The stack case pins both
Findings:
No must-fix. Check-runs on this head (read 2026-12-03 ~20:45Z; CI was still running, not waited on):
The queue condition "PR check 全绿" is not yet met on this head. The seat reads it before requesting the queue. Implemented-by: VERDICT: PASS |
…nsion row in the upgrade text Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXCYLwsKv4Xp3sqQVN
…e option-value door test Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXCYLwsKv4Xp3sqQVN
|
repo:objectstack@os-bill · os-bill · session_01Utp6CXCYLwsKv4Xp3sqQVN Contract reviewServed-tier: Delta review. Round 1 is the record on Local probes on this head, from a detached checkout:
① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
It is the L1 nit, and it holds. Round-1 findings:
New:
No must-fix. Check-runs on this head (read 2026-12-03 shortly after the push; 28 runs, CI still running, not waited on):
On the round-1 head these were red:
Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CXCYLwsKv4Xp3sqQVN Contract reviewServed-tier: Second delta review. The previous record is the delta on Local probes on this head (detached checkout of the branch tip):
① Derived judgmentsThe accept set is unchanged. The test file's one new line changes when the ② Semver levelThe changeset is still The stored-row paragraph (
③ Boundary flags
④ Design judgment
Findings:
No must-fix. No should-fix open. Check-runs on this head (read shortly after the push; 28 runs, CI still running, not waited on):
On the previous head
The queue condition (every PR check green) still has to be read on this head before the queue. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd 维护者速读
席位核对ACCEPT · head
|
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Review request: 2026-12-03T21:06Z · |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 47217508276 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 47220049064 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 47223390173 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Correction · 2026-12-04T00:48Z · the landing record 7396246676 read the human half wrongly: this PR carries no APPROVED review from os-zhuang. os-zhuang's earlier act on it was an enqueue (22:26Z), which the seat's re-arm replaced, so the merge group of 00:01Z was refused by the narrowing leg ("no authorized APPROVED review is on record"; run 47232429124) and the PR left the queue. The record half stands (fable PASS 7396141836 at head |
…able package Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CXCYLwsKv4Xp3sqQVN
|
我批准了,你审核之后可以直接落地 |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 47275519251 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Back to rework · 2026-12-04T06:11Z · |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 47278551588 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cxiJF5PkqquFk98Bh7 Contract reviewServed-tier: Delta record on the earlier PASS at What moved, read from the tree: two first-parent commits. ① Derived judgments
② Semver levelUnchanged. The changeset is byte-identical and still matches what the diff publishes: Clause-②: no (narrowing) — unchanged on the PR body and the changeset. ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
The four nits of the earlier record (N1 message wording, N2 entry surface, N3 one issue per field, N4 option lists outside this card) are untouched by the delta and stay open as nits. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Landing · 2026-12-04T06:44Z · head
State: the seat arms auto-merge. On merge, #39336 closes and the queue-signature issue #39508 can be closed as this PR's own conflict, not a flake. |
Requested by Bill · project thread
Fixes #39336
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none —
skills/objectstack-data/references/examples-objects.mdteaches inline select options and already declares each value once; the refusal names the value, both entries and the fix维护者速读
What changes
packages/spec/src/data/option-values-distinct.ts:findRepeatedOptionValue(options)(first value declared twice, with both positions) andrepeatedOptionValueMessage(repeat)(worded as the shared-picklist refusal inpackages/objectql/src/picklist-resolution.ts: "would carry the value 'a' twice … Remove the repeated value, or give the new option a value of its own.").packages/spec/src/data/field.zod.ts: one call in theFieldSchemasuperRefine. Any field whoseoptionsis an array is judged (select, radio, multiselect, checkboxes, a lookup's static options), on objects and object extensions alike. The issue is located atoptions.INDEX.valueof the second entry.ObjectSchema(saveMetaItem→ 422INVALID_METADATAwith curatedissues), andos validate/os buildparse the stack with the same schema. One rule at that door makes all four agree with no second implementation. Claim amendment 7391195322 records the surface.19.field-option-value-repeated-refused(relevantWhen: objects, objectExtensions), joined to the two reviewed relevance tables.@objectstack/specminor, BREAKING, FROM → TO and one-line fix, ADR-0087 marker.Tests
packages/spec/src/data/field-option-value-repeated.test.ts: refusal located at the repeated entry (select; radio / multiselect / checkboxes), the card repro atObjectSchema, the stack parse (ObjectStackDefinitionSchema, theos validate/os buildparse) in an object and an object extension, theField.select(['In Progress', 'in progress'])string form, controls (distinct values; one label on two values), the scan's order and skipping.packages/metadata-protocol/src/protocol.option-value-repeated-refusal.test.ts: the save door,mode: 'publish'andmode: 'draft', answers 422INVALID_METADATAwith one issue atfields.s.options.1.valueand stores nothing; control saves.0afd7188(after merging main):pnpm --filter @objectstack/spec test932 files / 29341 passed; the door test 3 passed;pnpm --filter @objectstack/spec check:generatedall up to date;pnpm check:adr-0087-registrationgreen;check-nul-bytesclean;overlap-check.mjsclean (origin/main and feat(spec,app-shell)!: review follow-ups of #39207 — a navigation keywords list is never empty, and a cleared menu label keeps the entry's keywords #39356 merge cleanly).Acceptance notes
options: [arrays inexamples/**,packages/**,ui/apps/**,ui/packages/**(about 2,000 arrays) found no repeated value outside test fixtures, plus a slug check of theField.select([...])string forms (34 sites, none colliding). No fork to report.findDuplicatePicklistValue) is untouched: it judges values across contributions (list plus extensions), which a single field parse cannot see.choice-without-optionsrefusal beside it); no conversion can choose between the two labels.Verification
Read first:
packages/spec/src/data/option-values-distinct.ts, the new block infield.zod.ts(searchoption-values-distinct.ts says why), the door test.Two-minute check:
pnpm --filter @objectstack/spec exec vitest run src/data/field-option-value-repeated.test.ts→ 9 passed.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CXCYLwsKv4Xp3sqQVN