Skip to content

Studio settings tab shows the controlled_by_parent refusal verbatim: ADR reference and English text reach end users #36526

Closed

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

Filed as a finding by seat repo:objectstack#2 from the #36512 dev's report (card comment 7082981555, open_questions[1]), relayed by area s2-C. Not triaged; not claimed.

What

packages/spec/src/data/controlled-by-parent-master.ts builds the controlled_by_parent refusal messages with an ADR citation in the text. The citations are at lines 231, 248 and 288 on main: "ADR-0055 §1: since @objectstack/spec 18, a controlled-by-parent object derives its master from …".

The Studio object settings tab shows this message verbatim. That is the intended design of objectui#12326: the refusal is the author-facing explanation. So when an author picks "controlled by parent" on an object with no usable master_detail field, the page shows:

  • an internal ADR reference, which a metadata author has no reason to know, and
  • English text on a zh UI, because the message is not localised.

Why it matters

The message reaches end users of Studio, not only lint or CLI output. An ADR section number is a developer citation, not product copy, and the untranslated text breaks the zh surface.

Where the fix likely lands

domain:spec (the message text and any message code a UI could localise from), possibly with a ui half that renders a localised string keyed by a code instead of the raw text. The fix is not decided here. PR for #36512 does not touch spec and only names this in its Acceptance notes.

Re-check

grep -n "ADR-0055 §1" packages/spec/src/data/controlled-by-parent-master.ts (non-zero hits on message lines = still present).

Activity

  1. added
    finding
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:spec (packages/spec/src/data/controlled-by-parent-master.ts, with a possible ui half) · pm:queue; rationale: area:ux (wording and i18n) · Bug · the controlled_by_parent refusal text carries an internal 「ADR-0055 §1」 citation and is shown verbatim, in English, on the Studio object settings tab, so an author picking 「controlled by parent」 reads an ADR number and English text in a zh-CN session. It touches topic #36510 (Studio wording, #36512) → p2 as the seat suggested · size S. On request from repo:objectstack#2 (#32588 comment 7083034463).

  3. added
    domain:spec
    pm:queue
    priority:p2
    on Nov 22, 2026
  4. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSBA2pE8xHD9x1XEXj

    Claim: PM loop round 1 (card thread of seat repo:objectstack#2, reporting to area s2-C)
    Session: session_01ADHkmSBA2pE8xHD9x1XEXj
    Thread session: session_01ADHkmSBA2pE8xHD9x1XEXj
    Account: os-steve
    Area: s2-C
    Branch: claude/issue-36526-cbp-refusal-business-wording
    Worktree: objectstack-issue-36526
    Domain: domain:spec
    Seat: repo:objectstack#2
    File surface: packages/spec/src/data/controlled-by-parent-master.ts, packages/spec/src/data/object.zod.ts (the refinement's addIssue), packages/spec/src/stack.zod.ts (the extension-merge addIssue), message pins in packages/{spec,lint,objectql,metadata-protocol,verify,plugins/plugin-security}/**/*.test.ts that assert the old text, ui/packages/app-shell/src/views/studio-design/{owd-sharing.ts,ObjectSettingsPanel.tsx} + their tests, ui/packages/i18n/src/namespaces/studio/{en,zh}.ts (and sibling locales if the namespace requires full key parity), packages/spec/src/api/error-code-ledger.zod.ts only if the dev's route adds a ledger code, root .changeset/. Never docs/adr/** or skills/** (ADR sentences ride carrier: #36086).
    Container & model: M, mode:thread, model: default tier (dispatch-gates --tier at 87c7bbaf: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s)"), effort: high
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: platform code in objectstack-ai/objectstack (spec refusal text + Studio settings panel) | none — the panel prints the spec message verbatim by design (objectui#12326) | every Studio author who picks "controlled by parent" without one usable master_detail, today, including zh-CN sessions
    Thread-read: 7083050506
    Premise: holds
    Serial constraints cleared: overlap-check at origin/main 87c7bba VERDICT clean: #36543 and #36519 share ui/packages/i18n/src/namespaces/studio/{en,zh}.ts, #36525 and #36517 share packages/spec/src/data/object.zod.ts; all merge cleanly; re-run before every push.

    Pre-claim lane: spec + ui halves; packages/spec/src/data/controlled-by-parent-master.ts (domain:spec) and ui/packages/app-shell/src/views/studio-design/owd-sharing.ts (domain:ui); both stay with this seat under area-lease 留道.
    Pre-claim deps: the card names no Blocked-by: and no "after #N"; hot files per overlap-check above.
    Prior rulings read: controlled_by_parent,adr-0055 §1,refusal → 35 hits; ADR-0055 Decision §1–§4 decide the one-master RULE, none decides the refusal's wording; sibling #36512 (closed) already removed ADR numbers from the settings tab copy, same direction; thread: none; repo: objectstack-ai/objectstack.

    Premise reading: grep -n "ADR-0055 §1" packages/spec/src/data/controlled-by-parent-master.ts at 87c7bba → message lines 231, 248, 288 still carry "ADR-0055 §1: since …"; owd-sharing.ts cbpMasterRefusal returns the issue message and ObjectSettingsPanel.tsx renders it in owd-cbp-refusal verbatim.

    Scope (seat ruling): the whole card, not the narrow "drop the ADR citation" arm. The refusal carries a machine-readable code; the Studio panel renders business wording from that code through i18n (zh included); the published English refusal text also loses the ADR number. Clause-② is yes on the new ui language-pack keys (and on any new ERROR_CODE_LEDGER code, if the route adds one); the dev measures the published closure and reports it.

  5. added
    pm:dispatched
    and removed
    pm:queue
    finding
    on Nov 22, 2026
  6. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSBA2pE8xHD9x1XEXj

    Claim: PM loop round 1, amended — Branch line only (card thread of seat repo:objectstack#2, reporting to area s2-C)
    Session: session_01ADHkmSBA2pE8xHD9x1XEXj
    Thread session: session_01ADHkmSBA2pE8xHD9x1XEXj
    Account: os-steve
    Area: s2-C
    Branch: claude/project-thread-h6ofg9 (this card thread's assigned branch; supersedes claude/issue-36526-cbp-refusal-business-wording in comment 7086868883, which was never pushed)
    Worktree: objectstack-issue-36526
    Domain: domain:spec
    Seat: repo:objectstack#2
    File surface: packages/spec/src/data/controlled-by-parent-master.ts, packages/spec/src/data/object.zod.ts (the refinement's addIssue), packages/spec/src/stack.zod.ts (the extension-merge addIssue), message pins in packages/{spec,lint,objectql,metadata-protocol,verify,plugins/plugin-security}/**/*.test.ts that assert the old text, ui/packages/app-shell/src/views/studio-design/{owd-sharing.ts,ObjectSettingsPanel.tsx} + their tests, ui/packages/i18n/src/namespaces/studio/{en,zh}.ts (and sibling locales if the namespace requires full key parity), packages/spec/src/api/error-code-ledger.zod.ts only if the dev's route adds a ledger code, root .changeset/. Never docs/adr/** or skills/** (ADR sentences ride carrier: #36086).
    Container & model: M, mode:thread, model: default tier (dispatch-gates --tier at 87c7bbaf: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s)"), effort: high
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: platform code in objectstack-ai/objectstack (spec refusal text + Studio settings panel) | none — the panel prints the spec message verbatim by design (objectui#12326) | every Studio author who picks "controlled by parent" without one usable master_detail, today, including zh-CN sessions
    Thread-read: 7086868883
    Premise: holds
    Serial constraints cleared: overlap-check at origin/main 87c7bba VERDICT clean: #36543 and #36519 share ui/packages/i18n/src/namespaces/studio/{en,zh}.ts, #36525 and #36517 share packages/spec/src/data/object.zod.ts; all merge cleanly; re-run before every push.

    Pre-claim lane: spec + ui halves; packages/spec/src/data/controlled-by-parent-master.ts (domain:spec) and ui/packages/app-shell/src/views/studio-design/owd-sharing.ts (domain:ui); both stay with this seat under area-lease 留道.
    Pre-claim deps: the card names no Blocked-by: and no "after #N"; hot files per overlap-check above.
    Prior rulings read: controlled_by_parent,adr-0055 §1,refusal → 35 hits; ADR-0055 Decision §1–§4 decide the one-master RULE, none decides the refusal's wording; sibling #36512 (closed) already removed ADR numbers from the settings tab copy, same direction; thread: none; repo: objectstack-ai/objectstack.

    Premise reading: grep -n "ADR-0055 §1" packages/spec/src/data/controlled-by-parent-master.ts at 87c7bba → message lines 231, 248, 288 still carry "ADR-0055 §1: since …"; owd-sharing.ts cbpMasterRefusal returns the issue message and ObjectSettingsPanel.tsx renders it in owd-cbp-refusal verbatim.

    Scope (seat ruling): the whole card, not the narrow "drop the ADR citation" arm. The refusal carries a machine-readable code; the Studio panel renders business wording from that code through i18n (zh included); the published English refusal text also loses the ADR number. Clause-② is yes on the new ui language-pack keys (and on any new ERROR_CODE_LEDGER code, if the route adds one); the dev measures the published closure and reports it.

  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSBA2pE8xHD9x1XEXj
    os-dev-report

    {
      "issue": 36526,
      "status": "done",
      "branch": "claude/project-thread-h6ofg9",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36579",
      "head_sha": "2d20f933cef0007ba3da79bf28e8d48f6f35d65f",
      "session": "session_01ADHkmSBA2pE8xHD9x1XEXj",
      "premise_still_valid": true,
      "summary": "Spec: both controlled_by_parent master raise sites (ObjectSchema refinement, defineStack extension-merge gate) now stamp params { code: CONTROLLED_BY_PARENT_MASTER_INVALID, shape } on the zod issue; the code is a new exported const registered in ERROR_CODE_LEDGER under @objectstack/spec, with a ControlledByParentMasterIssueParams type; the three message arms drop 'ADR-0055 §1: ' and read 'Since @objectstack/spec 18, ...' (prescriptions unchanged; card re-check grep hits docblocks only). Studio: cbpMasterRefusal still parses ObjectSchema on the probe and returns { message, shape, fields }, reading the shape only when params.code matches; ObjectSettingsPanel renders one studio-namespace row per shape (en + zh, engine.studio.settings.cbpRefusal*), naming fields by label, falling back to the spec message. Assumption A confirmed (no params before), B followed (plugin.zod.ts precedent), C confirmed stale and corrected in the owd-sharing docblock, D: only object.test.ts (4 pins) asserted the old text; ui tests changed because the panel no longer shows spec text.",
      "route": "new ledger code + existing shape vocabulary as sub-discriminator, read off the save door's own parse; reason: the shape alone does not identify the refusal family on an arbitrary issue, and ADR-0112 registers a code that ships in dist",
      "files_changed": [
        ".changeset/36526-cbp-refusal-business-wording.md",
        "content/docs/references/api/automation-api.mdx (generated)",
        "content/docs/references/api/contract.mdx (generated)",
        "content/docs/references/api/error-code-ledger.mdx (generated)",
        "packages/spec/api-surface/data.json (generated)",
        "packages/spec/export-origins/data.json (generated)",
        "packages/spec/src/api/error-code-ledger.zod.ts",
        "packages/spec/src/data/controlled-by-parent-master.ts",
        "packages/spec/src/data/object.test.ts",
        "packages/spec/src/data/object.zod.ts",
        "packages/spec/src/stack-cbp-extension-master.test.ts",
        "packages/spec/src/stack.zod.ts",
        "ui/packages/app-shell/src/views/studio-design/ObjectSettingsPanel.cbpRequiredMaster-12326.test.tsx",
        "ui/packages/app-shell/src/views/studio-design/ObjectSettingsPanel.tsx",
        "ui/packages/app-shell/src/views/studio-design/owd-sharing.test.ts",
        "ui/packages/app-shell/src/views/studio-design/owd-sharing.ts",
        "ui/packages/i18n/src/namespaces/studio/en.ts",
        "ui/packages/i18n/src/namespaces/studio/zh.ts"
      ],
      "line_budget": "18 files, +427 / -50 vs origin/main ad50d611a (generated artifacts included: +8/-2)",
      "tests": "Changed tests: packages/spec/src/data/object.test.ts (2 toMatch + 2 toContain pins on the old 'ADR-0055 §1:' / 'since @objectstack/spec 18' text), ui owd-sharing.test.ts (3 equality pins now compare .message), ui ObjectSettingsPanel.cbpRequiredMaster-12326.test.tsx (2 cases expected spec text verbatim, now the business row). New: object.test.ts params {code, shape} on 5 reachable shapes + no 'ADR-' in message; stack-cbp-extension-master.test.ts params on the extension issue; owd-sharing.test.ts shape + fields per shape, shape equals the save-door issue's, key map covers 6 shapes; panel test new describe renders 4 shapes in en-US and zh-CN with exact row text. Runs: pnpm --filter @objectstack/spec test 875 files / 27973 tests passed (pre-merge a6b5ec9b2); ui studio-design dir + studio-namespace 356 files / 2791 passed (pre-merge bc5a55626); downstream metadata-protocol 2/50, objectql 2/38, plugin-security 4/187, lint 5/826 passed; post-merge at 2d20f933c: spec src/data + stack + ledger 191 files / 6806 passed, ui 5 files / 80 passed; spec typecheck, i18n type-check, app-shell type-check exit 0. Ablation (object.zod.ts refinement code -> 'ABLATION_36526' via ablation-replace.mjs, anchor 1->0, blob 723be4e61c3b->3889e32b7048, rebuilt, dist-preflight marker in 2 files): spec 1 failed/227 passed, ui 11 failed/30 passed; restore blob==HEAD, git diff HEAD empty, rebuilt, --absent preflight clean over 614 files, tree clean.",
      "gates": "dispatch-gates --commands at 2d20f933c: 126 derived; 125 exit 0, 1 NOT MEASURED: pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (needs every package's dist; no full build here; CI carries). check:skill-examples first exit 3 (client-react unbuilt), rebuilt client-react, re-run exit 0. --ran reconciliation: 126 accounted, 125 run, 1 NOT-MEASURED, 0 UNRUN. File: /mnt/project-files/objectstack-seat2/36526-gates-ran.txt. spec check:generated: all 14 up to date. overlap-check at 2d20f933c: VERDICT clean exit 0. PR check-runs at hand-off: in_progress (Check Changeset, Lint *, Type Check *, Governed Surface Queue Guard, PR-body guards, Spec property liveness); UI/Test/Build jobs not yet listed.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "deviations": [
        "Two pushes (61594ad2 first push, 2d20f933c post-merge) went out before overlap-check; overlap-check was run right after each, VERDICT clean exit 0 both times.",
        "The derived gates (including pnpm --dir ui exec vitest run scripts/) ran from a sequential runner outside os-verify-lock.",
        "Regenerated artifacts outside the named file fence, forced by check:generated: content/docs/references/api/{automation-api,contract,error-code-ledger}.mdx, packages/spec/{api-surface,export-origins}/data.json.",
        "维护者速读 written as four lines per .claude/agents/os-dev.md, not six as the dispatch said (os-dev.md wins on conflict).",
        "Changeset level patch on all three packages: Metadata-protocol none sets the level (AGENTS.md Post-Task step 3), Clause-② yes kept verbatim.",
        "Fetched commit 621a487607 into the shared object store so check-plugin-teardown-shape --self-test could read its pinned fixture (shallow clone).",
        "packages/verify parent-write-reach.test.ts not run: verify not built; its ADR-0055 §1 hits are comments.",
        "Full spec and full studio-design suites ran before merging origin/main; only targeted suites were re-run after the merge."
      ],
      "mcp_calls": "0",
      "api_writes": "2 relay dispatches — pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/36579/assignees [os-steve]); post-stamped comment (POST /issues/36526/comments). git push x3 not counted (not REST).",
      "open_questions": [
        {
          "question": "needs contract review (L2): spec schema refusal + Clause-② yes, head 2d20f933cef0007ba3da79bf28e8d48f6f35d65f (new ERROR_CODE_LEDGER code, new exports CONTROLLED_BY_PARENT_MASTER_INVALID + ControlledByParentMasterIssueParams, issue params on two raise sites, message text change)",
          "options": [
            "A review at this head",
            "B review after CI converges"
          ],
          "recommendation": "A — the diff is final pending CI"
        },
        {
          "question": "Public name of the new code",
          "options": [
            "A CONTROLLED_BY_PARENT_MASTER_INVALID (shipped)",
            "B CONTROLLED_BY_PARENT_MASTER_UNRESOLVED"
          ],
          "recommendation": "A, because master-not-writable is not an unresolved master, and INVALID matches the ledger's *_INVALID family"
        },
        {
          "question": "Public name of the params type",
          "options": [
            "A ControlledByParentMasterIssueParams (shipped)",
            "B no exported type; document the params shape only"
          ],
          "recommendation": "A, so a reader types params without restating the shape union"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: named producer: Studio settings tab probe (ui owd-sharing.ts cbpMasterRefusal reduces relationship fields to type/reference/required) · evidence: on spec dist built from a6b5ec9b2 (the refusal code is unchanged at 2d20f933c), ObjectSchema.safeParse of a controlled_by_parent object whose one required master_detail carries readonly: true fails with params {code: CONTROLLED_BY_PARENT_MASTER_INVALID, shape: 'master-not-writable'}, while the same object as the probe builds it parses success: true, so the settings tab shows no refusal for an object the save door refuses · dedupe words: controlled_by_parent, master-not-writable, readonly master, Studio settings, owd-cbp-refusal"
      ]
    }
  8. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSBA2pE8xHD9x1XEXj
    os-dev-report

    {
      "issue": 36526,
      "status": "done",
      "round": "patch round 1 (delta to comment 7088255262)",
      "branch": "claude/project-thread-h6ofg9",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36579",
      "head_sha": "ca3ebc278c3ec6f82b8f2e19acb50724d4187e3c",
      "session": "session_01ADHkmSBA2pE8xHD9x1XEXj",
      "summary": "Folded the out-of-scope finding into the PR. In owd-sharing.ts cbpMasterRefusal, the probe now copies readonly and system onto master_detail fields when they are booleans, exactly as written. The flag list is hard-coded as CBP_UNWRITABLE_MASTER_FLAGS, with a comment naming the spec's module-private UNWRITABLE_MASTER_FLAGS; no new spec export. A readonly or system master now shows the master-not-writable row in en and zh. The PR body moves that bullet from Acceptance notes to What changes and keeps the master-not-required note.",
      "files_changed": [
        "ui/packages/app-shell/src/views/studio-design/owd-sharing.ts",
        "ui/packages/app-shell/src/views/studio-design/owd-sharing.test.ts",
        "ui/packages/app-shell/src/views/studio-design/ObjectSettingsPanel.cbpRequiredMaster-12326.test.tsx"
      ],
      "line_budget": "round delta: 3 files, commit ca3ebc278",
      "tests": "Targeted ui suites (owd-sharing, cbpRequiredMaster-12326 panel, businessWording-36512, PackageOwdOverviewPanel cbpRequiredMaster-12326, studio-namespace): 5 files / 85 tests passed. pnpm --filter @object-ui/app-shell type-check exit 0. New: panel en+zh cases for a readonly required master and a system required master (master-not-writable row); owd-sharing shape master-not-writable naming the master for both flags, no refusal when both are false; spec-parity cases for a readonly required master and a system optional master. Ablation: ablation-replace.mjs replaced the flag copy with a no-op (anchor 1 -> 0, blob fb3c3868fd74 -> bd773cd5b26b; the tests read this source directly, so no build). Result: 5 failed / 41 passed, the five new readonly/system cases. Restore: blob back to the HEAD blob fb3c3868fd74, git diff HEAD empty, git status --porcelain empty.",
      "gates": "dispatch-gates --commands at ca3ebc278: 126 families, identical to the 2d20f933c list (comm shows 0 added, 0 removed), so no family is newly touched and none was re-run. --ran reconciliation of /mnt/project-files/objectstack-seat2/36526-gates-ran.txt at ca3ebc278: 126 accounted, 125 run, 1 NOT-MEASURED (pnpm check:dual-build-cjs-loads, prerequisite), 0 UNRUN. overlap-check at ca3ebc278 before the push: VERDICT clean exit 0.",
      "deviations": [
        "The PR body update carries the relay's required trailer as its last line, an HTML comment with the seat signature (dispatch.mjs: a rewritten PR body is signed on its last line); the original dispatch said no other HTML comments.",
        "Not merged with origin/main 06c3e5ac5 (it moved after the PR opened): there is no conflict or main-caused red, and overlap-check against it is clean.",
        "The worktree was re-created for this round and is removed again at the end."
      ],
      "mcp_calls": "0",
      "api_writes": "this round: 2 relay dispatches. issue_patch on #36579 (PATCH /repos/objectstack-ai/objectstack/issues/36579 body; read back identical, 9973 bytes) and this post-stamped comment (POST /issues/36526/comments). git push x1 not counted.",
      "open_questions": [
        {
          "question": "needs contract review (L2): spec schema refusal + Clause-② yes, head ca3ebc278c3ec6f82b8f2e19acb50724d4187e3c (the spec half is unchanged since 2d20f933c; this round touches ui only)",
          "options": [
            "A review at this head"
          ],
          "recommendation": "A"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  9. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSBA2pE8xHD9x1XEXj

    Claim: PM loop round 1, amended again — Branch line only (card thread of seat repo:objectstack#2, reporting to area s2-C)
    Session: session_01ADHkmSBA2pE8xHD9x1XEXj
    Thread session: session_01ADHkmSBA2pE8xHD9x1XEXj
    Account: os-steve
    Area: s2-C
    Branch: claude/project-thread-h6ofg9 (this card thread's harness push branch, the platform exception to the issue-branch shape; PR #36579. The earlier claim comments 7086868883 and 7086886723 are superseded: the second named the never-pushed issue branch in its parenthesis.)
    Worktree: objectstack-issue-36526
    Domain: domain:spec
    Seat: repo:objectstack#2
    File surface: packages/spec/src/data/controlled-by-parent-master.ts, packages/spec/src/data/object.zod.ts (the refinement's addIssue), packages/spec/src/stack.zod.ts (the extension-merge addIssue), message pins in packages/{spec,lint,objectql,metadata-protocol,verify,plugins/plugin-security}/**/*.test.ts that assert the old text, ui/packages/app-shell/src/views/studio-design/{owd-sharing.ts,ObjectSettingsPanel.tsx} + their tests, ui/packages/i18n/src/namespaces/studio/{en,zh}.ts (and sibling locales if the namespace requires full key parity), packages/spec/src/api/error-code-ledger.zod.ts only if the dev's route adds a ledger code, root .changeset/. Never docs/adr/** or skills/** (ADR sentences ride carrier: #36086).
    Container & model: M, mode:thread, model: default tier (dispatch-gates --tier at 87c7bbaf: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s)"), effort: high
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: platform code in objectstack-ai/objectstack (spec refusal text + Studio settings panel) | none — the panel prints the spec message verbatim by design (objectui#12326) | every Studio author who picks "controlled by parent" without one usable master_detail, today, including zh-CN sessions
    Thread-read: 7088483396
    Premise: holds
    Serial constraints cleared: overlap-check at origin/main 87c7bba VERDICT clean: #36543 and #36519 share ui/packages/i18n/src/namespaces/studio/{en,zh}.ts, #36525 and #36517 share packages/spec/src/data/object.zod.ts; all merge cleanly; re-run before every push.

    Pre-claim lane: spec + ui halves; packages/spec/src/data/controlled-by-parent-master.ts (domain:spec) and ui/packages/app-shell/src/views/studio-design/owd-sharing.ts (domain:ui); both stay with this seat under area-lease 留道.
    Pre-claim deps: the card names no Blocked-by: and no "after #N"; hot files per overlap-check above.
    Prior rulings read: controlled_by_parent,adr-0055 §1,refusal → 35 hits; ADR-0055 Decision §1–§4 decide the one-master RULE, none decides the refusal's wording; sibling #36512 (closed) already removed ADR numbers from the settings tab copy, same direction; thread: none; repo: objectstack-ai/objectstack.

    Premise reading: grep -n "ADR-0055 §1" packages/spec/src/data/controlled-by-parent-master.ts at 87c7bba → message lines 231, 248, 288 still carry "ADR-0055 §1: since …"; owd-sharing.ts cbpMasterRefusal returns the issue message and ObjectSettingsPanel.tsx renders it in owd-cbp-refusal verbatim.

    Scope (seat ruling): the whole card, not the narrow "drop the ADR citation" arm. The refusal carries a machine-readable code; the Studio panel renders business wording from that code through i18n (zh included); the published English refusal text also loses the ADR number. Clause-② is yes on the new ui language-pack keys (and on any new ERROR_CODE_LEDGER code, if the route adds one); the dev measures the published closure and reports it.

  10. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSBA2pE8xHD9x1XEXj
    os-dev-report

    {
      "issue": 36526,
      "status": "done",
      "round": "patch round 2 (L2 record 7088626814: S1, S2, N1, N2); delta to comment 7088483396",
      "branch": "claude/project-thread-h6ofg9",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36579",
      "head_sha": "c8366b960e5b35e99660382c43173d1314116685",
      "session": "session_01ADHkmSBA2pE8xHD9x1XEXj",
      "summary": "S1: refusalFields names the master of a master-not-writable refusal the way the parse reads it: the one master_detail with required === true, else the only master_detail. The docblock says which reading it uses and why. A flagged master that writes no required is now named in en and zh, where before {field} rendered empty. S2: the const's JSDoc, the ledger row comment and the changeset now say the code is visible on the zod issue (safeParse, the Studio path) and on defineStack's STACK_SCHEMA_INVALID issues. They also say it is NOT on the metadata save door's 422 INVALID_METADATA, whose zodIssuesToMetadataIssues entries keep path/message/code('custom') only. The save door is unchanged. N1: cbpMasterRefusal selects the issue whose params.code is the spec's code and falls back to the path filter only when none carries it. N2: the en required-lookup-only wording is split into a one-field row (cbpRefusalRequiredLookupOnly) and a several-field row (new key cbpRefusalRequiredLookupsOnly, en and zh); the panel picks the latter when more than one field is named. The PR body is updated; the naming note (ruling 7088548226) and the governing-claim acceptance line are kept.",
      "files_changed": [
        ".changeset/36526-cbp-refusal-business-wording.md",
        "packages/spec/src/api/error-code-ledger.zod.ts (comment)",
        "packages/spec/src/data/controlled-by-parent-master.ts (JSDoc)",
        "ui/packages/app-shell/src/views/studio-design/owd-sharing.ts",
        "ui/packages/app-shell/src/views/studio-design/ObjectSettingsPanel.tsx",
        "ui/packages/app-shell/src/views/studio-design/owd-sharing.test.ts",
        "ui/packages/app-shell/src/views/studio-design/ObjectSettingsPanel.cbpRequiredMaster-12326.test.tsx",
        "ui/packages/i18n/src/namespaces/studio/en.ts",
        "ui/packages/i18n/src/namespaces/studio/zh.ts"
      ],
      "line_budget": "round delta: commit c8366b960, 9 files",
      "tests": "Spec: build, typecheck, and object.test + stack-cbp-extension-master.test + error-code-ledger.test + controlled-by-parent-master.test: 4 files / 301 tests passed; check:generated all 14 up to date. The STACK_SCHEMA_INVALID claim was measured on this head's dist: defineStack with a no-master object throws STACK_SCHEMA_INVALID 422, and its issue at objects.0.sharingModel carries params {code: CONTROLLED_BY_PARENT_MASTER_INVALID, shape: no-master}. UI: the five targeted files passed with 87 tests; i18n type-check and app-shell type-check exit 0. New cases: an owd-sharing case for omitted required plus readonly/system naming the master; panel en and zh cases for a readonly master that writes no required (names the field) and for two required lookups (several-field row). Ablation: ablation-replace.mjs made the only-master_detail arm return [] (anchor 1 -> 0, blob be67de10e803 -> 25dda5fdf07b; source read directly, no build). Result: 2 failed / 46 passed, the two omitted-required cases. Restore: blob back to the HEAD blob, git diff HEAD empty, git status --porcelain empty.",
      "gates": "dispatch-gates --commands at c8366b960: the same 126 families as before (0 added, 0 removed), so none is newly touched. The 12 that read the changed text were re-run and all exited 0: check:error-code-casing, check:dispatcher-error-vocabulary, check:error-status-conformance, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration, check:doc-authoring, check:nul-bytes, check:issue-citations, spec check:error-code-provenance, spec check:api-surface, ui vitest scripts/. Their recorded lines were already exit 0, so the file is unchanged. --ran reconciliation of /mnt/project-files/objectstack-seat2/36526-gates-ran.txt at c8366b960: 126 accounted, 125 run, 1 NOT-MEASURED (check:dual-build-cjs-loads, prerequisite), 0 UNRUN. overlap-check before the push: VERDICT clean exit 0 (origin/main 84853fd18, #36580, #36525, #36386).",
      "deviations": [
        "Not merged with origin/main 84853fd18: there is no conflict or main-caused red, and overlap-check is clean.",
        "N1 has no dedicated test: the reduced probe raises no second custom issue at those paths today, so no fixture can tell the two selections apart."
      ],
      "mcp_calls": "0",
      "api_writes": "this round: 2 relay dispatches. issue_patch on #36579 (PR body; read back identical, 13252 bytes) and this post-stamped comment (POST /issues/36526/comments). git push x1 not counted.",
      "open_questions": [
        {
          "question": "delta L2 review of S1 and S2 at head c8366b960e5b35e99660382c43173d1314116685",
          "options": [
            "A review at this head"
          ],
          "recommendation": "A"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · Seam: spec:CONTROLLED_BY_PARENT_MASTER_INVALID on the zod issue params → runtime:packages/metadata-protocol/src/protocol-metadata-issues.ts zodIssuesToMetadataIssues (entry built at ~278 as {path, message, code: issue.code}) · reach: public door: the metadata save of a controlled_by_parent object with no master answers 422 INVALID_METADATA whose issues[] entry has code 'custom' and no params, so a client of the save door (not Studio, which parses locally) cannot read the registered code or the shape and has only the English message; read from the code at c8366b960, not exercised over HTTP in this round · contract: the ledger registers the code as the refusal's published face · dedupe words: zodIssuesToMetadataIssues, params, INVALID_METADATA, CONTROLLED_BY_PARENT_MASTER_INVALID, issue code custom"
      ]
    }
  11. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSBA2pE8xHD9x1XEXj

    ACCEPT → PR #36579 comment 7089454436 (head c8366b9; L2 delta PASS 7089038764). Out-of-scope finding filed: #36594. Landing is the seat's (spec contract surface).

  12. removed
    pm:dispatched
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:specpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions