Skip to content

「已定制」有两种算法:Setup 详情计入排列调整,全部元数据页头和列表筛选不计 #37236

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

④ sub-issue of #36890 · Source: #36908's os-dev report 7153865833, open question N3. Seat repo:objectstack#4 ruled 「A: file a follow-up card」. Part of #36890.

维护者速读

  • 同一个「已定制」,两处数法不一样。Setup > 软件包详情里,「排列调整」(arrangements)算作定制。全部元数据页头的总数、两处列表的「已定制」筛选用的是 customizationTotal(覆盖 + 扩展),不算排列调整。
  • 结果:一个只改了排列的基础包,在 Setup 里显示「已定制」,到了全部元数据页头却是 0,列表的「已定制」筛选也筛不出它。
  • 这一张要先定一个产品口径,再改代码。

What (measured at #37166's head 329ddefc; re-measure on main when claimed)

  • customizationMarks.ts:96-97: customizationTotal = overrides + extensions.
  • DirectoryPage.tsx:246-249: the All metadata header reads it.
  • ResourceListPage:734 and useListOrderedNames:173: the same total gates the 「customized」 filter.
  • The Setup package detail counts arrangements as customizations.

The decision this needs (put to the maintainer through the seat)

  • A. Arrangements join customizationTotal. The header no longer equals the sum of its per-type tiles, because arrangements have no type tile, and lists offer the 「customized」 filter on a base whose only change is an arrangement.
  • B. The Setup detail stops calling arrangements customizations, or names them separately.
  • C. Both surfaces keep their arithmetic but use different words.

Done when

  • One meaning is ruled, every surface above follows it, and a pin holds each surface to it.

Notes

Activity

  1. added
    pm:blocked
    domain:ui
    on Nov 25, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch 2026-11-25T06:35Z.

    Blocked-by: #36908

  3. added
    priority:p2
    and removed on Nov 25, 2026
  4. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Ruled: B · 2026-11-25T09:15Z · by the maintainer, in seat repo:objectstack#4's session. Verbatim: 「#37257 B、#37230 A、#37236 B、#36412 B」.

    「已定制」 has one meaning everywhere: overrides plus extensions, which is customizationTotal. Arrangements are not customizations. The Setup package detail stops counting them under 「已定制」 and names them separately, for example 「已定制 3 项 · 调整排列 2 处」.

    The All metadata header and both lists' 「customized」 filter keep customizationTotal unchanged. A pin holds each of these to the one meaning:

    • the Setup detail;
    • the header;
    • the two filters.

    Size S. The state stays pm:blocked, because the Setup count this compares against arrives with #36908 (PR #37166).

    Blocked-by: #36908

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 25, 2026
  6. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Claim: PM loop round 3
    Session: session_01QSeKYkkwuF6UuFtu85Yd5H
    Account: os-justin
    Branch: claude/issue-37236-customized-meaning
    Worktree: cloud session (its own container)
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-S
    File surface: ui/packages/app-shell/src/views/studio-design/{PackageCustomizationsPanel.tsx,packageCustomizationRows.ts} (the Setup package detail's count and wording) and their tests, pins on customizationTotal's readers (DirectoryPage.tsx header, ResourceListPage.tsx and useListOrderedNames.ts filters), the studio/engine i18n namespaces en + zh, a changeset. ⛔ customizationTotal itself does not change; no server or spec change (stop on breach; explain in the report)
    Container & model: S, mode:cloud, model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate", effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — product-meaning ruling, executed
    Thread-read: 7169837711
    Premise: holds (read on origin/main c2f8bff9). customizedCountOf (packageCustomizationRows.ts:73-74) still counts overrides + extensions + arrangements, and PackageCustomizationsPanel.tsx:100 shows it as 「customized」. customizationTotal (customizationMarks.ts:97) counts overrides + extensions for the header and both filters.
    Pre-claim lane: repo:objectstack seat 4 zone a4-S (sub-issue of epic #36890; cap 3)
    Pre-claim deps: none open (#36908 merged via #37166).
    Prior rulings read: maintainer ruling B (7158100447): 「已定制」 = overrides + extensions everywhere; arrangements are named separately on the Setup detail (e.g. 「已定制 3 项 · 调整排列 2 处」).
    Serial constraints cleared: no open zone PR touches PackageCustomizationsPanel.tsx, packageCustomizationRows.ts or customizationMarks.ts. #37201 and #37338 add keys to i18n/src/namespaces/studio; separate keys, and the dev rebases before push.
    Size: S.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYngAThmzrAhkac86ye
    os-dev-report

    {
      "issue": 37236,
      "status": "done",
      "branch": "claude/issue-37236-customized-meaning",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37351",
      "session": "session_01QSeKYngAThmzrAhkac86ye",
      "premise_still_valid": true,
      "summary": "The Setup → Packages detail now counts 'customized' as customizationTotal (overrides + extensions), the same number the All metadata header and both lists' 'customized' filter read. Arrangements get their own segment (en '{count} rearranged', zh-CN '调整排列 {count} 处'), shown only when the count is above 0. An arrangement-only base reads '0 customized, 2 rearranged, 0 switched off' / '已定制 0 项,调整排列 2 处,已停用 0 项', and its arrangement rows are still listed. customizedCountOf is RETIRED, not delegated: its only job was the second meaning, and keeping a second name for one number leaves the door this drift came through. customizationTotal, the header and both filters are unchanged; each now has a pin. One additive i18n key in en and zh-CN. The unreleased changeset .changeset/36908-remove-studio-home.md is corrected as a declared DELIBERATE CORRECTION, because one of its sentences would have shipped false. The sibling PackagesPage detail-sheet pin from #37166 is updated to the new line. No server, spec or route change.",
      "tests": "Final head c9c1d9e4: four targeted files (Panel, 28568 harness, PackagesPage 34722, customizationMarks): Test Files 4 passed, Tests 77 passed. Scoped set on 08fe4e46 (the same diff before the last rebase, over #37338): every app-shell test that greps the changed code, Test Files 45 passed (45), Tests 661 passed (661). ui scripts/: Test Files 172 passed | 2 skipped, Tests 5130 passed. app-shell type-check: VERDICT command-exit 0. Ablations, one per pin, each through scripts/ablation-replace.mjs (+ counts.arrangements at its call site; anchor x1 -> x0, blob changed, restored to the HEAD blob with git diff HEAD empty; the tests import source, so there is no dist leg): A1 Panel -> 3 failed (mixed, en arrangement-only, zh-CN); A2 DirectoryPage header -> 1 failed (header pin); A3 ResourceListPage filter -> 1 failed (list filter pin); A4 useListOrderedNames -> 1 failed (‹ › names pin). DECLARED NARROWING: the package's full pnpm test (2430 files) was stopped by its recorded PID after 70 minutes, 26 files in. CI Test UI (16 shards) is green on c9c1d9e4.",
      "gates": "Local, on c9c1d9e4: dispatch-gates --commands derived 38. --ran reconciliation exit 0: 38 run, 0 NOT-MEASURED. 37 exit 0. check-empty-changeset exit 1 is the expected DELIBERATE CORRECTION refusal. check:changeset-fixed (outside the derivation) exit 0. type-check-debt re-measure OK. Push gates: check:test-source-alias 0, ui check:i18n-keys 0 (plus i18n-drift 0 and i18n-dead-keys 0), overlap-check VERDICT clean exit 0, check:nul-bytes 0. CI on c9c1d9e4: all eleven required contexts are success (Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate) except Build Core, which was skipped because no core path changed. 44 success, 13 skipped. 1 failure: Check Changeset, the advisory DELIBERATE CORRECTION refusal on .changeset/36908-remove-studio-home.md. It stays red until the seat confirms the correction by its own record (ACCEPT).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/37351/assignees, one stroke, run 45700609543), and this os-dev-report comment via post-stamped.mjs (POST issues/37236/comments). git push (not REST): one force-with-lease push after the rebase over main, a783c2b5 -> c9c1d9e4. All five unshared-branch criteria held: only this session had pushed the branch and no PR was open yet.",
      "open_questions": [
        {
          "question": "How should the arrangement segment be worded and separated?",
          "options": [
            "A: as shipped. en '{count} rearranged' matches the line's other participles and avoids '1 arrangements'. zh-CN uses the ruling's '调整排列 {count} 处'. The line's existing separator joins it.",
            "B: the ruling example's literal ' · ' separator and en '{count} arrangements'"
          ],
          "recommendation": "A. The line keeps one separator, and the en text has no plural bug. The ruling wrote its example with 'e.g.'"
        },
        {
          "question": "Which segments does 'don't show a 0-count segment' cover?",
          "options": [
            "A: as shipped. Only the new arrangements segment is hidden at 0. The customized and switched-off segments keep #37166's always-drawn behaviour, so an arrangement-only base still shows '0 customized', as the card asks.",
            "B: hide every 0 segment, including switched off. That changes #37166's pinned line for every base."
          ],
          "recommendation": "A. B contradicts 'shows 0 customized' and widens the change past this card."
        },
        {
          "question": "Should the changeset correction stay, given that Check Changeset stays red until the seat confirms it?",
          "options": [
            "A: keep it, and the seat confirms by ACCEPT",
            "B: revert the 36908 edit and let this PR's own changeset carry the correction, which leaves a false sentence in the pending release note"
          ],
          "recommendation": "A. os-dev.md names DELIBERATE CORRECTION as the sanctioned route, and the gate is advisory."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: the full @object-ui/app-shell pnpm test (2430 files) cannot finish inside a dev seat's turn on a shared box. Local verification there is always narrowed, and CI Test UI (16 shards) is the only full run."
      ]
    }
  9. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Finalized head for L1 · 2026-11-25T21:41Z · c9c1d9e4 · zone a4-S (#37236 → PR #37351)

    • CI on c9c1d9e4, newest run of each check: 44 success, 13 skipped, 1 red.
      • The red is Check Changeset. It is the DELIBERATE CORRECTION refusal on .changeset/36908-remove-studio-home.md: an unreleased changeset, one of whose sentences would ship false under ruling B. It stays red until the seat confirms the correction in its ACCEPT.
      • K: 5 behind main; merge-tree is clean.
    • Size: +152 / −45, 9 files. check-governed-merges.mjs --pr 37351: not governed and under 3,000, so not Tier H. The zone lands it after ACCEPT.
    • Final report: 7175069802, status done.
    • Zone rulings on the open questions:
      • Q1, wording: A. en 「{count} rearranged」 and zh-CN 「调整排列 {count} 处」, joined by the line's existing separator. The ruling's 「·」 was an example (「例如」), and A avoids 「1 arrangements」.
      • Q2, which zero segments hide: A. Only the new arrangements segment hides at 0. 「已定制 0 项」 stays visible on an arrangement-only base, as ruling B's example implies, and feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's pinned line is unchanged for every other base.
      • Q3, the changeset correction: A, keep it. A false sentence must not ship in the pending release note; the seat confirms it in its ACCEPT.
    • The head is frozen now.
  10. removed
    pm:dispatched
    on Nov 25, 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:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions