Skip to content

review follow-ups of PR #37949: App Studio 跨软件包列表里,自建软件包自己建的项显示成「系统自带」 #38061

Done

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibzywxH36FPH6ayWMUe

Filing gate: ① · Source: fleet (L1 ACCEPT 7230833322 on PR #37949, "Out of scope", sent to the zone's filing gate; the dev's own Acceptance note on the PR). Follow-ups of PR #37949 (card #37918, topic #37424), one item so far; later L1/L2 follow-ups of that PR are appended here.
Grade: area:ux · Bug · p3 · reach: measured in a component render on the PR head acbff14dd5 (the #37918 test fixtures, not committed); the route that mounts the list's cross-package leg in today's UI was not traced, so the public-door reproduction is owed first (先测可达性) · evidence below.
Reader: zone o3-studio (seat repo:objectstack#3), one os-dev, after #37949 merges.
Dedupe: open and closed cards searched for studioListSource and "系统自带" under #37424: none.

维护者速读

  • 用户能看到什么变化:在 App Studio 跨软件包的元数据列表里,用户在自己建的(可写)软件包里新建的项,来源标签会错显示成「系统自带」。单个软件包的列表里不会出现(那里所有行同值,来源列隐藏)。
  • 为什么:列表按「是否带软件包编号」判来源,自建包的项和系统包的项都带编号,界面分不出来。
  • 需要你做的:无。修法是否要让自建包的项显示「新建」,开工时先核可达性;若要改文案含义再呈你。

Item 1 — a writable package's own items read 系统自带 in the cross-package leg

  • Mechanism (read at acbff14dd5): the Studio badge comes from studioSourceKind (ui/packages/app-shell/src/views/metadata-admin/studioListSource.ts, called at ResourceListPage.tsx around line 763) on top of classifyProvenance(item, raw?.source) (ResourceListPage.tsx around line 194), which decides from _packageId alone. An item saved through Studio into a writable authored package carries its package id (withRowBinding, packages/metadata-protocol/src/protocol-package-bindings.ts around line 510) exactly like a code-shipped item (mergeArtifactProtection, same file around lines 194–196), so both classify artifact → 系统自带. The server's _provenance: 'org' stamp (stateTenantAuthorship, same file around line 486) is not read by the list.
  • Where it shows: only where the list is unscoped (allLeg, host packageId: null, ResourceListPage.tsx around line 704) and mixes those rows with a package-less runtime row, so the Source column appears. In one package's list scopeListRows (metadataListState.ts around lines 273–281) leaves rows that all read the same, and the column hides.
  • Repro to run first: open the cross-package list of a type that has one item saved into a writable authored package and one package-less item; the authored item's badge reads 系统自带. Record the address used; if no menu or link reaches that leg any more (the ~all directory moved to Setup with App Studio 改版(3-2):「全部软件包」目录 ~all 搬到设置的访问分组,Studio 不再有这个入口 #37565), say so and close this item as unreachable.
  • Fix direction (to measure, not ruled): give the classifier the row's package writability (the packages listing already serves writable) or the served _provenance, so an authored package's own items do not read 系统自带. Which word they should read (新建, or none) follows decision 7's three words; if neither fits, the zone brings the question to the maintainer before code.

Acceptance

  • Reachability recorded; if reachable, the authored item no longer reads 系统自带 (tested, with an ablation), and code-shipped items still do.

Blocked-by: #38150

Activity

  1. added
    bug
    pm:queue
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibzywxH36FPH6ayWMUe

    Claim: PM loop round 2 (zone o3-studio), dispatched now on the maintainer's 01:05Z go-ahead relayed by the seat (small cards go out without waiting for a batch; the reach measurement is the dev's first step)
    Session: session_01L9qibzywxH36FPH6ayWMUe
    Account: os-tesla
    Branch: claude/project-thread-dbfcfi (its PR #37949 merged; restarted from origin/main 815e882)
    Worktree: objectstack-issue-38061
    Domain: domain:ui
    Seat: repo:objectstack#3
    Area: o3-studio
    File surface: ui/packages/app-shell/src/views/metadata-admin/studioListSource.ts, ResourceListPage.tsx (the classifier's call site only), a new test file named for this card, one .changeset/*.md; the studio i18n en/zh only if a word changes. ⛔ No server or packages/spec change. Stop on breach; explain in the report.
    Container & model: S (not mechanical, M treatment), mode:subagent, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: medium (review follow-up, one classifier)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the Studio list's own classifier (studioListSource.ts, objectstack) | no platform path covers it | who reaches it: unverified, a person opening the unscoped cross-package list; the dev measures reach first
    Thread-read: none
    Premise: unverified at reach — reproduced in a component render on PR #37949's head; the public route to the unscoped leg is measured first, and if none reaches it the dev reports premise_still_valid: false with no PR.
    Serial constraints cleared: overlap-check at 815e882 on the surface: #37929 shares ResourceListPage.tsx, merges cleanly.

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · p2 · pm:dispatched · size XS; rationale: in the App Studio cross-package list, items a maker created in their own package are labelled 「系统自带」 (system-provided), measured in a component render. A maker is told their own work is the platform's. That is wrong user-facing text, and UX has no p3 for user-facing defects, so p3 → p2. Recorded 2026-11-28T01:16Z.

  5. added
    domain:ui
    priority:p2
    and removed on Nov 28, 2026
  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibzywxH36FPH6ayWMUe
    os-dev-report

    {
      "issue": 38061,
      "status": "needs_decision",
      "branch": "claude/project-thread-dbfcfi",
      "pr": null,
      "session": "session_01L9qibzywxH36FPH6ayWMUe",
      "premise_still_valid": true,
      "summary": "Reach measured: the defect is reachable and reproduces. Cross-package list /studio/~all/metadata/flow (allLeg: host packageId null, no environment scope; studioAllLegSetupRedirect keeps a non-directory type's list in Studio) rendered through the real StudioDesignSurface on origin/main 815e882b: a flow of a writable authored package (com.acme.crm) reads System-shipped, beside the read-only showcase's flows (System-shipped) and a package-less clone (New). Doors that land there in today's UI (code-read, not browser-driven): Setup > Packages > a package's pending changes > a draft link (/apps/setup/metadata/TYPE/NAME?review=1, PackagesPage) redirects onto the leg's item (setupMetadataStudioPath), whose header close goes to the parent list (detailListHref); also the retired Setup Packaged-automation bookmark (packagedAutomationStudioPath, no package) and any old /apps/APP/metadata/TYPE URL. No code written: the suggested smallest change regresses another surface, measured. The package-less scope (/studio/~org/metadata/flow) narrows to its flows only through ?source=runtime, which the org-scope redirect forces on every address, and the Studio list's source filter IS studioListSource(studioSourceKind(...)). Making a writable package's item read 'new' in the kind therefore puts that package's flows into the package-less scope's list: baseline probe 'authored flow listed in ~org default' = false; with the kind change applied in a scratch probe = true (same render). That breaches the objectui#11553 scope contract ('every flow that belongs to no package') and the claim's file surface (the fix needs the org scope to narrow by package-lessness itself), so this is returned for a decision rather than coded.",
      "tests": "No committed tests (no PR). Scratch probe (not committed; copy of the StudioDesignSurface.packageLessFlows-11553 harness + 3 cases), run as `cd ui && pnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/ReachProbe-38061.test.tsx` under os-verify-lock after `turbo run build --filter=@object-ui/app-shell^... --concurrency=2` (VERDICT command-exit 0, 72 tasks). Baseline: `PROBE location /studio/~all/metadata/flow`; `acme_followup => ...System-shipped`; `showcase_daily_digest => ...System-shipped`; `qa_urgent_alert_clone => ...New`; `PROBE default listed acme_followup? false /studio/~org/metadata/flow?source=runtime`. Probe with the kind forced to 'new' for the authored package's rows (scratch edit at the studioSourceKind call site, reverted, git status clean): `acme_followup => ...New` on ~all, and `PROBE ORG default lists acme_followup? true /studio/~org/metadata/flow?source=runtime` (VERDICT command-exit 0, Tests 2 passed). Also measured: /studio/~org/metadata/flow without ?source is redirected back to ?source=runtime, so the org scope's filter cannot be cleared.",
      "gates": "none run: no diff (worktree clean at 815e882b). No CI check-runs (no PR).",
      "dogfood_battery": "n/a: no PR",
      "mcp_calls": "0",
      "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/38061/comments (this report, via post-stamped relay)",
      "open_questions": [
        {
          "question": "How should a writable (authored) package's own items read in the Studio cross-package list, given that the list's Source kind is also the package-less scope's only narrowing?",
          "options": [
            "A: they read 新建, and the package-less scope narrows to package-less rows by itself (a scope filter on _packageId absent or sys_metadata, the isPackageLessItem reading) instead of through the source filter; ?source=runtime stays in its addresses. Cost: studioListSource.ts + ResourceListPage call site + the org-scope narrowing (StudioMetadataArea host or scopeListRows), outside the claimed surface; about 40 lines plus a new test and a rerun of the packageLessFlows-11553 suite. Writability read from the listed manifests' writable flag (fetchListedPackageManifests), not yet wired into the list.",
            "B: they read 新建 through the kind alone (the suggested smallest change). Measured: the authored package's flows then appear in the package-less scope's list, which opens them as package-less. Small (about 10 lines) but regresses objectui#11553.",
            "C: badge-only: they read 新建 while the filter keeps them under system-shipped. Small, but a 新建 row under the system-shipped filter breaks the badge/filter agreement studioListSource.ts guarantees (and the detail's prev/next order).",
            "D: leave as is and close the item: reach is only through a Setup Packages draft link then close, retired bookmarks, or old URLs; the wrong word stays."
          ],
          "recommendation": "A, because it is the only option that fixes the word without moving rows into the package-less scope; the maintainer also confirms that 新建 is the right one of decision 7's three words for an authored package's own item (D3 defines 新建 relative to a base's .custom pair, and an authored package has no base), and the seat widens the file surface to the org-scope narrowing."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: in the package-less scope the narrowing is the list's source filter, so any row whose provenance reads runtime (a .custom pair item, classifyProvenance's isCustomizationPackage arm) is listed there too though it belongs to a package; read only, not measured as a wrong answer at a public door, and option A would close it with the same narrowing."
      ],
      "line_budget": "n/a: no diff",
      "deviations": "No branch push and no PR: stopped at needs_decision per the suggested route's stop clause and the claim's 'stop on breach' (fix needs the org-scope narrowing outside the file surface). The Setup Packages draft-link door and the retired-bookmark doors are code-read, not browser-driven; the list render itself is measured. Root `pnpm install` and the app-shell dependency-closure build ran in worktree ../objectstack-issue-38061, removed after.",
      "files_changed": []
    }

    Generated by Claude Code

  7. 2 remaining items

  8. removed
    pm:dispatched
    on Nov 28, 2026
  9. removed
    needs-user-decision
    on Nov 29, 2026
  10. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

    Ruling carried · 2026-11-29T09:17Z · this card's open question (dev report 7231630549, decision-box note 7231642648) is answered.

  11. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4

    Triage: half state repaired · no pm state → pm:blocked, with the body line Blocked-by: #38150 added. Rationale: seat repo:objectstack#5's ruling note (09:17Z) took needs-user-decision off and named #38150 B2 as the carrier whose PR closes this card, but left the card in no state for over an hour. #38150 is open and dispatched, so this card waits on it; nothing is dispatched from this card on its own. area:ux · domain:ui · Bug · p2 unchanged.

  12. added
    pm:blocked
    on Nov 29, 2026
  13. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: unlock (daily backstop) · pm:blocked → pm:queue · grade unchanged.
    Every Blocked-by: target is done: #38150 closed completed at 2026-11-30T03:33:52Z. No assignee, no hold, same-repo targets only.

  14. added
    pm:queue
    and removed
    pm:blocked
    on Nov 30, 2026
  15. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmQu29PQequUrXXHYMn
    Close with reading · zone o3-U · 2026-11-30T14:28Z

    Fixed on main by PR #38598 (0124851bae, "#38150 PR-B2"), which carried this card's ruling (Q-f = E, carried here at 2026-11-29T09:17Z): an item of a package the author can write reads 「新建」. The classifier is ui/packages/app-shell/src/views/metadata-admin/studioListSource.ts:14-55 (inWritablePackage → new, from the package list's own writable via useWritablePackageIds). That PR did not close this card, so triage's daily backstop unlocked it.

    Measured in the real app on origin/main f576dee581 (showcase, objectstack dev --ui --seed-admin, Chromium as admin, zh-CN):

    • Made the card's situation: a new authored package com.default.acme-ops (GET /api/v1/packages answers writable: true for it and false for every code package), a flow acme_followup saved into it through Studio (served with _packageId: com.default.acme-ops, no _provenance, the shape the card's mechanism names), and one package-less flow loose_probe saved through PUT /api/v1/meta/flow/loose_probe.
    • Door, clicked through: Setup → 软件包 → the loose-items banner 「有 N 个散落项,不属于任何软件包」 → 「流程(1)」 (/studio/~all/metadata/flow?source=loose) → Source 「全部来源(35)」 = /studio/~all/metadata/flow. The retired /studio/~org/metadata/flow redirects to the same list with ?source=loose.
    • Badges on that list: acme_followup (writable authored package) reads 新建 (data-source-kind=new); all 33 showcase_* flows (code package, not writable) still read 系统自带; the loose flow reads 新建 as before. Filter counts agree: 全部来源 35, 已修改和新建 2, 系统自带 33, 散落项 1.
    • Screenshots: kept with the zone's records (studio-all-flow-source-badges.png, setup-packages-loose-banner.png, studio-all-flow-loose-filter.png).

    Pinned on main: ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.authoredPackageSource-38150.test.tsx (:216 the authored flow reads New and the shipped flow System-shipped on /studio/~all/metadata/flow; :224 the zh-CN words; :237/:252 controls for an unlisted package, a loose row and an unreadable package list). Run at f576dee581: 14 passed (14).

    Closing as completed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions