You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
objectql: an inline select field whose options repeat a value publishes with no refusal, while a named picklist with the same repeat is refused #39336
Found off-clause by the pre-release priority:P0 round #39334 at main 23e859ae (runner r4, Studio leg).
What: a named picklist whose options repeat a value is refused (findDuplicatePicklistValue in packages/objectql/src/picklist-resolution.ts, used by registry-picklists.ts). The same repeat in an object's inline select options is accepted and published silently, so one stored value carries two labels. The Studio option editor has no guard either.
Repro (API, reproduced once):
PUT /api/v1/meta/object/repairs_probe_dup?mode=draft&package=com.example.repairs with body {"name":"repairs_probe_dup","label":"Dup","sharingModel":"private","fields":{"name":{"type":"text","label":"Name"},"s":{"type":"select","label":"S","options":[{"value":"a","label":"A"},{"value":"a","label":"A2"}]}}} answers 200.
POST /api/v1/meta/object/repairs_probe_dup/publish?package=com.example.repairs with the returned draftVersion answers 200 "Published draft".
Expected: the same refusal the named-picklist path gives. Actual: silent acceptance; value a has two labels.
Why it matters: two producers of one declaration disagree, and the lenient one is the shape an AI author writes most often (inline options). A duplicate value makes the stored value's label ambiguous in lists, chips and reports.
Done when: an inline select with a repeated option value is refused at save/publish (and at os build/os validate) with the same error as the named picklist.
Triage: lands in area:build · domain:data · Bug · p2 · pm:queue · size S, touched 2026-12-03T13:20Z. Rationale: writing metadata belongs in area:build (NORTH-STAR boundaries), and this is area:build ② directly. A named picklist with a repeated value is refused, while the same repeat in inline select options publishes silently, and inline options are the shape AI authors write most.
Grade: area:build · Bug · p2 · authors and AI authors of inline select options · measured (REST draft and publish, QA round #39334).
Claim: PM loop round 1 · 2026-12-03T14:30Z
Session: session_01Utp6Cb7xdFx3kJYWTmyntt
Thread session: session_01Utp6CXCYLwsKv4Xp3sqQVN
Account: os-bill
Branch: claude/project-thread-ujv81d
Worktree: objectstack-issue-39336
Domain: domain:data
Seat: repo:objectstack@os-bill
Area: build-1203
File surface: packages/objectql/src/picklist-resolution.ts (the shared duplicate scan), packages/objectql/src/ (reason: the object save/publish gate that reads a field's inline options; the dev names the file in the report), packages/lint/src/ (reason: the os validate/os build side, one validator file plus index.ts and the rule-explanations entry, named in the report), packages/spec/src/migrations/entries/semantic/ (reason: one v19 narrowing entry if the convention asks one), the tests that pin the refusal (new files named by card), patch/minor changesets. Stop on any other breach and explain in the report.
Container & model: M, mode:thread, model: default (dispatch-gates --tier: "no path-derived mandate"; served Opus 5.5 per the thread's first report), effort: high (reason: design judgement — which door owns the inline-options refusal so save, publish, os build and os validate agree)
Clause-②: no
Metadata-protocol: narrowed
Responsibility: the object save/publish door in objectql (objectstack) accepts an inline select whose options repeat a value, while the named-picklist path refuses it; no platform path covers the inline shape; every author and AI author writing inline options, today.
Thread-read: 7379691307
Premise: holds — at origin/main850d240findDuplicatePicklistValue (picklist-resolution.ts:103) is called only from registry-picklists.ts:131,415; the card's REST repro (draft 200, publish 200) is QA-measured on #39334. The thread re-measures before code.
Pre-claim lane: packages/objectql/** ⇒ domain:data (file ownership only).
Pre-claim deps: none named.
Prior rulings read: check-prior-rulings.mjs --card 39336: card thread 0 rulings; ruling-hit line names #31700 by reference only.
Serial constraints cleared: check-handover.mjs --inflight --card=39336 → NO OVERLAP READ (unread surfaces #38415, #35238 are this seat's own, no path). The thread runs overlap-check.mjs before each push.
2026-12-03T14:54Z · Paused (zone build-1203). Maintainer order relayed by the seat (Bill, quota at 18%): pause, push the branch, no PR work, keep the claim. Claim, assignee and branch left as they are.
State: branch claude/project-thread-ujv81d @ e07c7cce, no PR. Done there: a FieldSchema refine refuses a repeated inline option value (packages/spec/src/data/option-values-distinct.ts, one call in field.zod.ts), v19 semantic entry field-option-value-repeated-refused, minor narrowing changeset; spec suite green, new metadata-protocol door test green (draft and active save both 422 INVALID_METADATA at fields.s.options.1.value), check:generated clean. No packages/lint/src/index.ts touch. Owed on resume: PR body, os-dev-report, L1 + contract-tier L2 (narrowing). The claim's File surface did not name packages/spec/src/data/; a Claim amendment is owed on resume.
Claim amendment: 2026-12-03T20:24Z · claim 7381587985's file surface is replaced. The refusal lives in the spec field parse, which every door already runs, so the diff left the objectql and lint surfaces.
File surface: packages/spec/src/data/option-values-distinct.ts (new: the repeated-value scan and its message), packages/spec/src/data/field.zod.ts (one call in the FieldSchema superRefine, which save, publish, os build and os validate all parse through), packages/spec/src/migrations/semantic-relevance.test.ts, packages/spec/src/migrations/semantic-relevance-coverage-38929.test.ts (the reviewed tables every v19 semantic entry must join), packages/metadata-protocol/src/protocol.option-value-repeated-refusal.test.ts (new door pin)
Dropped from the surface, untouched: packages/objectql/src/**, packages/lint/src/**, so there is no overlap with #38174. The fix lands in packages/spec, so file ownership is domain:spec. Nothing else changes.
{
"issue": 39336,
"status": "done",
"branch": "claude/project-thread-ujv81d",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39400",
"session": "session_01Utp6CXCYLwsKv4Xp3sqQVN",
"premise_still_valid": true,
"summary": "Premise re-measured: inline field options had no repeated-value check at any door, while a shared picklist's repeat is refused at registration (findDuplicatePicklistValue). The refusal now lives in the FieldSchema superRefine (new packages/spec/src/data/option-values-distinct.ts, one call in field.zod.ts), the parse the metadata save (draft and active), publish, os validate and os build all run, so the four doors agree with one implementation; the message is worded as the picklist refusal. ADR-0087 semantic entry 19.field-option-value-repeated-refused plus the changeset (spec minor, BREAKING narrowing). Surface moved from objectql/lint to spec: claim amendment 7391195322.",
"tests": "head 0afd7188 (after merging origin/main d07ece70): pnpm --filter @objectstack/spec test -> Test Files 932 passed, Tests 29341 passed | 3 todo (VERDICT command-exit 0); pnpm --filter @objectstack/metadata-protocol exec vitest run src/protocol.option-value-repeated-refusal.test.ts -> 3 passed (draft and publish save: 422 INVALID_METADATA at fields.s.options.1.value, nothing stored; control saves). Ablation: not run (a new refusal, no tested behaviour changed).",
"gates": "local: pnpm --filter @objectstack/spec check:generated exit 0 (all 14 artifacts up to date); pnpm check:adr-0087-registration exit 0; node scripts/check-nul-bytes.mjs exit 0; node scripts/pm/overlap-check.mjs VERDICT clean exit 0. Deviation: the 90-command dispatch-gates --commands list was not reconciled locally (--ran not run); every family is left to CI on PR #39400, check-runs to be read by the seat.",
"mcp_calls": "0",
"api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/39400/assignees), this report via post-stamped (POST issues/39336/comments)",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · noted, not filed — the Studio option editor offers no inline guard against a repeated value; the save now refuses with a located issue"]
}
Claim amendment: 2026-12-03T21:04Z · amendment 7391195322 gains these files for PR #39400; nothing else changes.
File surface (added): packages/spec/src/migrations/entries/semantic/19.field-option-value-repeated-refused.ts (the semantic entry the narrowing owes), packages/spec/src/data/field-option-value-repeated.test.ts, scripts/engine-double-contract.pinned.json (the gate's --write output for the new door test's double)
Activity
objectstack-fleet commentedon Dec 3, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:build · domain:data · Bug · p2 · pm:queue · size S, touched 2026-12-03T13:20Z. Rationale: writing metadata belongs in area:build (NORTH-STAR boundaries), and this is area:build ② directly. A named picklist with a repeated value is refused, while the same repeat in inline
selectoptions publishes silently, and inline options are the shape AI authors write most.Grade: area:build · Bug · p2 · authors and AI authors of inline select options · measured (REST draft and publish, QA round #39334).
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6Cb7xdFx3kJYWTmyntt
Claim: PM loop round 1 · 2026-12-03T14:30Z
Session:
session_01Utp6Cb7xdFx3kJYWTmynttThread session:
session_01Utp6CXCYLwsKv4Xp3sqQVNAccount:
os-billBranch:
claude/project-thread-ujv81dWorktree:
objectstack-issue-39336Domain:
domain:dataSeat:
repo:objectstack@os-billArea: build-1203
File surface:
packages/objectql/src/picklist-resolution.ts(the shared duplicate scan),packages/objectql/src/(reason: the object save/publish gate that reads a field's inline options; the dev names the file in the report),packages/lint/src/(reason: theos validate/os buildside, one validator file plusindex.tsand the rule-explanations entry, named in the report),packages/spec/src/migrations/entries/semantic/(reason: one v19 narrowing entry if the convention asks one), the tests that pin the refusal (new files named by card), patch/minor changesets. Stop on any other breach and explain in the report.Container & model:
M,mode:thread,model: default (dispatch-gates --tier: "no path-derived mandate"; served Opus 5.5 per the thread's first report),effort: high (reason: design judgement — which door owns the inline-options refusal so save, publish, os build and os validate agree)Clause-②: no
Metadata-protocol: narrowed
Responsibility: the object save/publish door in objectql (objectstack) accepts an inline
selectwhose options repeat a value, while the named-picklist path refuses it; no platform path covers the inline shape; every author and AI author writing inline options, today.Thread-read: 7379691307
Premise: holds — at
origin/main850d240findDuplicatePicklistValue(picklist-resolution.ts:103) is called only fromregistry-picklists.ts:131,415; the card's REST repro (draft 200, publish 200) is QA-measured on #39334. The thread re-measures before code.Pre-claim lane:
packages/objectql/**⇒domain:data(file ownership only).Pre-claim deps: none named.
Prior rulings read:
check-prior-rulings.mjs --card 39336: card thread 0 rulings; ruling-hit line names #31700 by reference only.Serial constraints cleared:
check-handover.mjs --inflight --card=39336→ NO OVERLAP READ (unread surfaces #38415, #35238 are this seat's own, no path). The thread runsoverlap-check.mjsbefore each push.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6Cb7xdFx3kJYWTmyntt
2026-12-03T14:54Z · Paused (zone build-1203). Maintainer order relayed by the seat (Bill, quota at 18%): pause, push the branch, no PR work, keep the claim. Claim, assignee and branch left as they are.
State: branch
claude/project-thread-ujv81d@e07c7cce, no PR. Done there: aFieldSchemarefine refuses a repeated inline option value (packages/spec/src/data/option-values-distinct.ts, one call infield.zod.ts), v19 semantic entryfield-option-value-repeated-refused, minor narrowing changeset; spec suite green, new metadata-protocol door test green (draft and active save both 422INVALID_METADATAatfields.s.options.1.value),check:generatedclean. Nopackages/lint/src/index.tstouch. Owed on resume: PR body, os-dev-report, L1 + contract-tier L2 (narrowing). The claim's File surface did not namepackages/spec/src/data/; aClaim amendmentis owed on resume.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd
Claim amendment: 2026-12-03T20:24Z · claim 7381587985's file surface is replaced. The refusal lives in the spec field parse, which every door already runs, so the diff left the objectql and lint surfaces.
File surface:
packages/spec/src/data/option-values-distinct.ts(new: the repeated-value scan and its message),packages/spec/src/data/field.zod.ts(one call in theFieldSchemasuperRefine, which save, publish,os buildandos validateall parse through),packages/spec/src/migrations/semantic-relevance.test.ts,packages/spec/src/migrations/semantic-relevance-coverage-38929.test.ts(the reviewed tables every v19 semantic entry must join),packages/metadata-protocol/src/protocol.option-value-repeated-refusal.test.ts(new door pin)Dropped from the surface, untouched:
packages/objectql/src/**,packages/lint/src/**, so there is no overlap with #38174. The fix lands inpackages/spec, so file ownership isdomain:spec. Nothing else changes.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CXCYLwsKv4Xp3sqQVN
os-dev-report
{ "issue": 39336, "status": "done", "branch": "claude/project-thread-ujv81d", "pr": "https://github.com/objectstack-ai/objectstack/pull/39400", "session": "session_01Utp6CXCYLwsKv4Xp3sqQVN", "premise_still_valid": true, "summary": "Premise re-measured: inline field options had no repeated-value check at any door, while a shared picklist's repeat is refused at registration (findDuplicatePicklistValue). The refusal now lives in the FieldSchema superRefine (new packages/spec/src/data/option-values-distinct.ts, one call in field.zod.ts), the parse the metadata save (draft and active), publish, os validate and os build all run, so the four doors agree with one implementation; the message is worded as the picklist refusal. ADR-0087 semantic entry 19.field-option-value-repeated-refused plus the changeset (spec minor, BREAKING narrowing). Surface moved from objectql/lint to spec: claim amendment 7391195322.", "tests": "head 0afd7188 (after merging origin/main d07ece70): pnpm --filter @objectstack/spec test -> Test Files 932 passed, Tests 29341 passed | 3 todo (VERDICT command-exit 0); pnpm --filter @objectstack/metadata-protocol exec vitest run src/protocol.option-value-repeated-refusal.test.ts -> 3 passed (draft and publish save: 422 INVALID_METADATA at fields.s.options.1.value, nothing stored; control saves). Ablation: not run (a new refusal, no tested behaviour changed).", "gates": "local: pnpm --filter @objectstack/spec check:generated exit 0 (all 14 artifacts up to date); pnpm check:adr-0087-registration exit 0; node scripts/check-nul-bytes.mjs exit 0; node scripts/pm/overlap-check.mjs VERDICT clean exit 0. Deviation: the 90-command dispatch-gates --commands list was not reconciled locally (--ran not run); every family is left to CI on PR #39400, check-runs to be read by the seat.", "mcp_calls": "0", "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/39400/assignees), this report via post-stamped (POST issues/39336/comments)", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed — the Studio option editor offers no inline guard against a repeated value; the save now refuses with a located issue"] }objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd
Claim amendment: 2026-12-03T21:04Z · amendment 7391195322 gains these files for PR #39400; nothing else changes.
File surface (added):
packages/spec/src/migrations/entries/semantic/19.field-option-value-repeated-refused.ts(the semantic entry the narrowing owes),packages/spec/src/data/field-option-value-repeated.test.ts,scripts/engine-double-contract.pinned.json(the gate's--writeoutput for the new door test's double)