Skip to content

App Studio 改版(4-1):没有软件包的新建先问——选一个或新建一个;设置的权限集和岗位也先问;系统应用里的共享视图和报表拒绝并指路 #38149

In progress

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibzywxH36FPH6ayWMUe

Filing gate: ③ · Source: topic #37424 (ruling 7184753035 on questions 2 and 3, the maintainer's 「同意」 of 2026-11-26T06:44Z; body decision 11 and task 9; ADR-0084's amendment of 2026-11-26, #amendment-2026-11-26-org). Phase order: the ruling fixes only "the UI ask and the kernel close in the same phase, the kernel PR last, no flag". Placing the move door between them comes from the takeover plan (#37424 comment 7216856007), not from a ruling. Sub-issue of #37424 (phase 4).
Grade: area:ux · Feature · p2 · evidence: read on origin/main 815e882 and rechecked at 581ae76. Between them only ResourceListPage.tsx and ResourceEditPage.tsx moved, each by a two-line action-location rename (963–970 and 3036–3043) that shifts no cited line. The cited files are otherwise unchanged since 7e4df28, where the draft was first read. Every UI create path below was read in code. None was driven in a browser, so "what happens" is a code reading unless marked measured (the #37453 probe at a46efa8).
Reader: build at the default judgment tier, by one os-dev subagent in zone o3-studio of seat repo:objectstack#3. Review: the seat's L1 at the default tier. The new i18n keys owe only a Clause-②: yes review, which the lane seat serves at the default tier (scripts/pm/dispatch-gates.mjs:13267–13268). A PR that retires the savedOutsideApp keys (a narrowing) owes one contract-review-tier review. Decisions Q-a and Q-b are answered (see Ruled), so nothing waits on the maintainer before construction. Q-a's answer carries a premise this card measures first (What 7).
Dedupe: searched "package-less" create, "pick or create", "loose items", createLive, CreatePackageDialog (issues, open and closed). Hits:

None asks a create to pick or create a package.

维护者速读

  • 用户能看到什么变化:在任何地方点「新建」,只要页面没有明确说这个东西属于哪个软件包,就先弹出一个选择框:选一个已有的软件包,或者当场新建一个。不再悄悄地存成不属于任何软件包的「散落项」,也不再由系统按「哪个软件包里同类东西最多」之类的规则替你挑一个。
  • 为什么:散落项没有归属,在软件包里找不到,也没法跟着软件包一起导出或删除。你已经裁定「没有软件包的新建要先问」,而且先做这一步,服务端的拦截最后做。
  • 需要你做的:开工前不需要你裁。11 月 28 日你同意了评估里「没地方放」的处理:设置里新建权限集和岗位也先选软件包;系统自带的应用里新建共享视图或报表,拒绝并指向「我的视图」或业务应用。前一条有个前提要先实测:岗位放进软件包以后,还能不能挂别的软件包的权限集。实测不过,施工就停,把分叉拿回来给你。架构决定记录上的标注由你合并。

Ruled (not reopened)

Measured on main: every UI create that can save package-less

"Package-less" means the save request names no package, so the kernel stores package_id null for a name no package holds (#37453 W1, measured 200 at a46efa8).

A. The generic list page and editor (Setup metadata lists, Studio ~all leg)

  1. ResourceListPage.tsx handleCreate, 503–536.
    • 504–507: the Studio area with a package and type object / flow opens MetadataListCreateDialog, which is safe (see C).
    • 509–511: the environment scope (?scope=environment, Setup's catalog) goes to ./new?scope=environment, which names no package by design. See E.
    • 514–516: the Studio area with a package goes to ./new?package=PKG, which is safe.
    • 521–525, the ~all leg: pickedPackage ?? bases[0] is navigated to without asking. CreatePackageDialog opens only when no base exists.
    • 527–530: Setup with zero bases opens CreatePackageDialog (ADR-0070 D3's prompt).
    • 531–534 is dead code. Its test is bases.length > 0 && !activePackage. In Setup (no host, not allLeg), activePackage is pickedPackage, and pickedPackage is non-null whenever projectPackages is non-empty (432–455 ends return best ?? projectPackages[0]?.id ?? null). (The earlier draft called this branch the silent pick; that was wrong.)
    • 535 is the real silent pick: ./new plus pkgSuffix, which carries pickedPackage.
      • pickedPackage resolves in this order: a valid ?package= in the URL, then the current app's package, then the package owning the most rows of this type, then the first package.
      • The repair effect (460–481) writes that pick into the address bar with replace. After the repair, the list cannot tell a heuristic pick from a package the user named.
      • While packages load (projectPackages === null), pkgSuffix is '' (485–490), so 535 goes to ./new with no package. The header New button is not gated on packagesPending (873; the buttons at 919–944 carry no disabled). This is code reading, not measured.
  2. What ADR-0070 D3's prompt lacks. It exists as CreatePackageDialog (imported at 46, mounted at 1508–1512; onCreated goes to ./new?package=ID). It lacks:
    • (a) a pick: it only creates;
    • (b) reach: it is opened on two branches only (524, 528);
    • (c) the editor: the editor never asks (item 3);
    • (d) the server's verdict: the options come from buildPackageScopeOptions (package-scope.ts:17–41), which filters scope system / cloud and does not read the server's writable verdict (unverified whether a non-writable package can slip in);
    • (e) a true docblock: package-scope.ts:9–15 says "the kernel rejects orphan creates with writable_package_required", which is false on main (protocol-save.ts:2129–2131, "A null packageId is still accepted here").
  3. ResourceEditPage.tsx create, the designers' first save.
    • readActivePackageBinding (416–423) reads ?package= off window.location. The create save (2118–2122, 2141–2142) names a package only when the URL carries one. A createLive type (permission, anchors.ts:447–449) with no package is written live.
    • It is reached by 535, by a deep link /apps/setup/metadata/TYPE/new, and by /studio/~all/metadata/TYPE/new (metadataArea.ts:261; AreaOwnCreate, StudioMetadataArea.tsx:335–345).

B. Studio ~org scope

  1. ~org creates nothing. Its host is readOnly (StudioMetadataArea.tsx:444), so no New is drawn (ResourceListPage.tsx:857–858), and ~org/…/new redirects to the list (metadataArea.ts:298). Its designer saves existing loose flows in place, which stays open. It retires with the phase-4 move-door card (a sibling sub-issue of 专题:App Studio 改版(Studio 是开发软件包的入口:左右两栏、软件包切换和概览页、列表页按前端样式、专用色和新名字) #37424).

C. The object and flow create dialogs

  1. MetadataListCreateDialog.tsx is safe.
    • packageId is a required prop (55), mounted only when host.packageId is set (ResourceListPage.tsx:1489).
    • createTarget (83–90) resolves the package or its .custom pair, and both saves name it (141–143, 292–294).

D. Creates outside Studio and Setup's lists

  1. New view in an app. createRuntimeMetadata / saveAndPublishRuntimeMetadata (runtime-metadata-persistence.ts:458–500, 625–640) go through resolveRuntimeCreatePackage(appPackageId) (202–220). The predicate is the app's package, not the object's owner.
    • It returns null when the app has no package, when the app's package is not listed, or when the ensure door refuses: a kernel base answers 409 (packages/metadata-protocol/src/protocol-customization-package.ts:383–385), and there are more refusals at 63–90 (no namespace, namespace too long, non-SemVer, a package held by several apps, the pair namespace taken).
    • The view is then saved package-less. A hint shows only when an app was present (onSavedOutsideApp, 486–490). Only view resolves an app (474, 631).
    • Create callers: ObjectDataPage.tsx:826, objectViewViewCrud.tsx:271, objectViewViewSharing.ts:86. These are not creates and stay open: objectViewViewCrud.tsx:164 and 220, and setup/publicForms.ts:334.
    • Personal views are user data (sys_personal_view, personalViews.ts:4–11) and do not pass this path.
  2. New report. ReportNewPage.tsx:143–165 uses the same resolver. With no package it saves naming none and toasts report.builder.savedOutsideApp.
  3. Console "create app". plugin-designer/src/pages/CreateAppPage.tsx:62 calls client.meta.saveItem('app', …) with no package. It is routed at AppContent.tsx:202 and reached from the no-apps call to action (1514). Studio's door creates the package first (studio-design/newAppDoor.ts:67).
  4. Setup datasource sync. DatasourceResourcePage.tsx:818 calls metaClient.save('object', …) with no package (App Studio 改版(摸底):散落项实测数量、合法的无包写入清单、移入软件包对 ADR-0150 寻址的影响——为 #37424 拍板 2、3 提供读数 #37453 W5), unlike the ruled import landing (W4, rest-route-ledger.ts:520, writeFace: 'external-import'). Whether that door serves the sync's datasources is unverified.
  5. Unrouted or uncalled writers, backstopped by the kernel-close card:
    • plugin-designer MetadataObjectsPage.tsx:324 and MetadataFieldsPage.tsx:981;
    • MetadataService.putMetadataItem (681–689) and its callers;
    • data-objectstack createView (index.ts:6845) and updateDashboard (7472).

E. The environment scope (Setup → Access control → Positions and permissions)

  1. The catalog types. SETUP_CATALOG_TYPES = ['permission', 'position', 'sharing_rule'] (catalog-scope.ts:86).
    • sharing_rule creates are organization data rows (decisions Q-d), not metadata.
    • permission and position go to ./new?scope=environment, open at /studio/~all/metadata/TYPE/new?scope=environment, and save with no package (a set is saved live).
    • The position form offers sets from the whole environment (ResourceEditPage.positionCreate-13337.test.tsx:7–9).

Readings this card takes (said so the reviewer can object)

  • What counts as a named package. These count:

    • the Studio host's package;
    • a ?package= the person put there: on arrival (a link that names it), or by choosing in the scope selector;
    • the in-app save's app package or its pair (resolveRuntimeCreatePackage).

    A heuristic pick does not count: the current app's package, most rows, or first, and the URL the repair wrote from it. Then 535 asks, and the ask pre-selects the heuristic pick. This keeps the 速读 promise. To support it, the repair has to mark its own write (a state flag beside searchParams, or a separate param); the card picks one. The other reading, "the package the selector shows counts", would drop the promise, and is not taken.

What

  1. One ask component, reusing CreatePackageDialog (PackagesPage.tsx), with "choose a package" and "create a new one".

    • The choose list holds the server's writable packages only (writable: true), with the heuristic pick pre-selected. A read-only base is listed as its .custom pair only where the ensure door would create one.
    • Its answer is a package id, and the create continues there. Cancel creates nothing.
  2. ResourceListPage.tsx.

    • 522: ask instead of navigating to pickedPackage ?? bases[0].
    • Delete the dead 531–534.
    • 535: ask unless the package is named (the reading above).
    • Gate the header New on packagesPending.
    • 509–511: Setup's catalog New asks too (Q-a A, What 7).
  3. The editor asks too. ResourceEditPage in create mode, with no readActivePackageBinding() and no environment-scope exemption, opens the ask before the first Save. This covers deep links and ~all's /new.

  4. In-app view and report creates. When resolveRuntimeCreatePackage returns null for a reason other than Q-b's case (a system app where the ensure door refuses), ask instead of saving package-less. Where the ensure door refuses the caller itself (an isolated deployment's tenant admin, 403, runtime-metadata-persistence.ts:194–196), refuse with that reason instead of asking first, because every pick would be refused too. Q-b's case is answered C: refuse with the reason, offering My views or a business app. The onSavedOutsideApp / savedOutsideApp hints retire. Personal views are untouched. A shared view on a platform object made in a business app still lands in that app's pair. When a platform customization package exists, a later card saves this case there instead; this card does not build it.

    Non-view types passed to the two helpers resolve no package (474, 631): make them take the package from the caller.

  5. Console create-app (CreateAppPage.tsx:62): create the package first, as newAppDoor.ts does, or route the CTA to Studio's new-app door. The card picks one and says which.

  6. Setup datasource sync (DatasourceResourcePage.tsx:818): save into the datasource's own package when it has one, else through the server's import landing (W4). Measure first whether the external import door covers these datasources.

  7. Q-a (answered A).

    • First build the probe the decision names. Create a position into a new writable package, bind one other package's set and one loose set, and check a holder's grants (security-catalog.ts:629–642).
      • If it passes, Setup's catalog New asks, the item opens under its package, and createLive (anchors.ts:447–449, ResourceEditPage.tsx:2141) takes the draft-and-publish path.
      • A new set is then a draft until it is published, not live. Check that the permission matrix editor, which today edits live sets outside a package, opens and edits that draft, and say so in the PR.
      • If it fails, stop and return the fork (B, or A with the picker visibly narrowed to the package's closure) through the seat. Do not build either branch.
  8. Stale text. Rewrite package-scope.ts:9–15 so it is true until the kernel-close card lands.

  9. ADR marks (Tier H, so the maintainer merges).

    • ADR-0070 D3's Studio bullet gains a dated note: the ask both picks and creates, wherever a create names no package (ruling 7184753035).
    • ADR-0086 D3/D4 gains a dated note that an admin-authored set lives in a package.
    • Or leave the marks to the kernel-close card and say so in the PR.
  10. Declarations and changeset.

Acceptance

  • Each path in A–E has a test. With no package named, the create opens the ask and writes nothing until a package is chosen or created. With a package named, there is no ask and the save names it. The cases include:
    • the Setup list on arrival with no ?package= (a heuristic pick, written into the URL by the repair): asks, with the pick pre-selected;
    • the Setup list on arrival with ?package=PKG, and after choosing in the selector: no ask;
    • the Setup list during the packages load: New disabled;
    • the ~all leg's New and its /new deep link;
    • the editor reached by a deep link;
    • Add view and Save as view in an app whose package is not listed;
    • a new report outside an app;
    • console create-app;
    • datasource sync.
  • Dead 531–534 removed. Each new test has an ablation (revert the ask and the test fails).
  • Q-a and Q-b carried as answered, each with its own test: the Setup permission set and position create (the probe, and a new set saved as a draft and then published); a shared view and a report made in Setup.
  • These are unchanged, with a control test each: MetadataListCreateDialog, and in-place saves of existing loose rows (the ~org designer, publicForms.ts:334, objectViewViewCrud.tsx:164 and 220).
  • A console walkthrough (light and dark, desktop and phone width) shows the ask on the Setup list, the ~all leg, an app's Add view and a new report, with screenshots on the PR.
  • No server file changes in this card. The kernel refusal is the kernel-close card's.

Activity

  1. added
    enhancement
    priority:p2
    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 3 (zone o3-studio), on the seat's go-ahead after the maintainer answered decisions Q-a / Q-b / Q-d (quoted in the body's Ruled section)
    Session: session_01L9qibzywxH36FPH6ayWMUe
    Account: os-tesla
    Branch: claude/project-thread-dbfcfi (its PR #37949 merged; restarted from origin/main 581ae76)
    Worktree: objectstack-issue-38149
    Domain: domain:ui
    Seat: repo:objectstack#3
    Area: o3-studio
    File surface: ui/packages/app-shell/src/views/metadata-admin/ (ResourceListPage.tsx, ResourceEditPage.tsx, PackagesPage.tsx's CreatePackageDialog or a new ask component beside it, package-scope.ts, catalog-scope.ts, anchors.ts, datasource/DatasourceResourcePage.tsx), ui/packages/app-shell/src/views/runtime-metadata-persistence.ts, ReportNewPage.tsx and the three in-app view create callers the body names, ui/packages/plugin-designer/src/pages/CreateAppPage.tsx (or the CTA route that replaces it), new keys in ui/packages/i18n/src/namespaces/{studio,app}/{en,zh}.ts, new test files named for this card, .changeset/*.md. ⛔ No server file, no packages/spec, no docs/adr/** (What 9's marks are left to the kernel-close card, said in the PR), and the savedOutsideApp keys are not deleted here (their retirement is a narrowing, a second PR). Stop on breach; explain in the report.
    Container & model: L, mode:subagent, model: default tier (dispatch-gates --tier at 581ae76a: no path-derived mandate), effort: high (L, many create paths with design judgement and a measured premise)
    Clause-②: yes (widening)
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: Q-a A rests on a premise NOT MEASURED: a position created into a package can still be granted sets the admin picks from other packages and loose sets. What 7's probe runs first. If it fails, the dev stops with no PR and the fork goes back to the maintainer through the seat.
    Serial constraints cleared: overlap-check at 581ae76 on a probe commit over the surface: merges cleanly with origin/main, no open PR head shares the files. ResourceListPage.tsx and ResourceEditPage.tsx moved since the body was read (#37929's location rename), shifting no cited line.
    Prior rulings read: check-prior-rulings.mjs --card 38149 → surface lines quote #35624 ruling C and its fallback (runtime-metadata-persistence.ts:189, 199), which this card retires on the maintainer's Q-b answer of 2026-11-28T04:26Z, as #35624's record asked; #35955's confirmed-save line (595) is not touched. Governing: ruling 7184753035 Q2, #37424 decision 11, ADR-0084 #amendment-2026-11-26-org, ADR-0070 D3.

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

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 38149,
      "status": "done",
      "branch": "claude/project-thread-dbfcfi",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38204",
      "session": "session_01L9qibzywxH36FPH6ayWMUe",
      "premise_still_valid": true,
      "summary": "I measured the Q-a premise first as a real kernel test, kept in the PR (packages/qa/dogfood/test/position-in-package-binds-outside-sets-38149.dogfood.test.ts, 4/4). A position created into a writable runtime package by draft + publish grants its holder the sets from its own package, from another package, from the shipped showcase, and the loose set. A live package-less edit lands on the package's own row. I then built What 1-8 and 10. One ask dialog (PackageCreateAsk.tsx) lists only packages the server marks writable, never a kernel one, and offers New package. It is used on every create path: Setup lists (the repair's own-write marker is location state objectui.packagePicked), Setup's catalog and the ~all leg, the editor's deep-link create (draft + publish in the answer, the answer held for the form), app views and reports (Q-b C: a system app or the ensure door's 403 refuses with the reason; the savedOutsideApp toasts are gone), the console create-app route (ConsoleCreateAppPage wraps the wizard through a new optional saveApp prop), and datasource Sync (the server import door). Head 1e5b3fad94.",
      "tests": "At head 1e5b3fad94, one union run under os-verify-lock: cd ui && pnpm exec vitest run --maxWorkers=2 over 171 affected app-shell/plugin-designer/console files, plus 2 ui script tests -> VERDICT command-exit 0, Test Files 172 passed (172), Tests 1410 passed (1410). The ui scripts/ family at head: Test Files 172 passed | 2 skipped (174), Tests 5144 passed | 2 skipped. Type checks after building the --filter '@object-ui/app-shell^...' and '@object-ui/plugin-designer^...' closure: i18n=0, plugin-designer=0, app-shell=0 (both tsc passes; first run red on sameAddress-35624 still passing onSavedOutsideApp, fixed). Dogfood probe 4/4. Ablations, each committed, mutated with scripts/ablation-replace.mjs, red, restored (blob == HEAD, git diff HEAD empty): A1 ask filter 4/12 red; A2 list packageNamed 2/7; A3 editor ask 5/8; R1 system-app refusal 3/31; R2 403 branch 4/34; R3 cancel throw 4/20; C1 create-app cancel 1/2; D1 sync door 3/4; P1 report pick 7/19; E1 held answer 1/5; probe: the security-catalog.ts registry closure guard removed turned case 2 red (granted pkhome_reviewer_set, showcase_member_default, member_default, storage_attachment_member; other/shipped/loose sets missing). Live console walkthrough on my own boot: the ~all editor ask answered PUT .../position/field_dispatcher?mode=draft&package=com.acme.field-ops 200 then POST .../publish?package=com.acme.field-ops 200, and the read answered _packageId com.acme.field-ops. 16 screenshots in /mnt/project-files/objectstack-seat3/shots-38149/: Setup catalog ask, ~all ask, app Add view ask, new report ask; light and dark; 1440 and 390.",
      "gates": "Local subset at head 1e5b3fad94: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (merge base 9dca1097b, after merging origin/main) derived 71 commands. All 71 ran, each exit captured before any pipe; all 71 exit 0. --ran reconciliation: 71 derived, 71 run, 0 NOT-MEASURED, 0 UNRUN. Fixed on the way: check:test-source-alias was red, and each named test now pays @objectstack/lint and @object-ui/plugin-detail at collection; check-vi-mock-inherit named the create-app test's factory, which now inherits the real module. check:dts-closure and check:dual-build-cjs-loads first answered PREREQUISITE NOT MET (no full build), then exit 0 at head. Also node scripts/check-platform-checklist.mjs --changed-from origin/main: OK, 0 lost. CI check-runs at report time on 1e5b3fad94: Check Changeset, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI/release/engine gates, scoped x3), Type Check (workspace, source gates, consumer gates, debt ledger), Spec property liveness, Governed Surface Queue Guard, PR-body guards, Check PR Size and filter were all in_progress; the opt-in, queue and schedule checks were completed/skipped.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm. The one dogfood file this PR adds ran 4/4.",
      "mcp_calls": "0",
      "api_writes": "2 — the fleet-write relay pr_create stroke fw-20261128T063757Z-26d6e7 (POST /repos/objectstack-ai/objectstack/pulls draft, then POST /repos/objectstack-ai/objectstack/issues/38204/assignees os-tesla; read-back identical, 12910 bytes); and this os-dev-report comment through scripts/pm/post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/38149/comments). git push is not counted.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: public door — Setup → Positions and Permissions → New (with or without this PR) navigates to /apps/com.objectstack.setup/component/security/access-directory/position/new?scope=environment, which renders an empty page. The shell rewrites /apps/setup/... to /apps/com.objectstack.setup/...; AccessDirectoryPage slices rest only off ACCESS_DIRECTORY_PATH (/apps/setup/component/...), so accessDirectoryLocation never redirects the /new to Studio, and the inner Routes (index, :type) match nothing. Measured live on a showcase boot at head 1e5b3fad94; the base made the same ./new navigation. Seam: renderer:AccessDirectoryPage. dedupe: access-directory blank new, setup positions new empty page, com.objectstack.setup alias access directory",
        "carrier: none · createLive (permission, position) is now unreachable from the editor's create (every create names a package); key in builtinComponents.tsx and registry.ts, outside the surface; noted in Acceptance notes, not filed",
        "carrier: kernel-close card · What 9's ADR marks and the kernel-side refusal of package-less creates, as the dispatch ordered",
        "carrier: cloud · the AI create path",
        "carrier: none · the view.savedOutsideApp / report.builder.savedOutsideApp i18n keys are unused and kept as ordered; their retirement is a narrowing PR"
      ],
      "deviations": "Surface beyond the claim: studio-design/packages-io.ts (the ensure error carries status), ObjectView.tsx (renders the dialogs), new console/ConsoleCreateAppPage.tsx, console/AppContent.tsx (the lazy chunk), plugin-designer/src/index.tsx (the type export), and test edits to 26 existing pins plus ui/scripts/__tests__/vite-declared-lazy-views.test.ts (count 15 to 16). One misstep: pnpm --filter ... build --concurrency=2 passed the flag to the cli build script (exit 2); re-run as --workspace-concurrency=2. The changeset grades all three packages patch, not minor: check-changeset-no-major's ruling A couples level to Metadata-protocol, and none means patch. app-shell's own type-check script sets an 8192 heap for its test tsconfig; that is the package's script, not mine. The dogfood closure was first built with OS_SKIP_DTS=1; the typecheck closure was then rebuilt with declarations."
    }

    Generated by Claude Code

  5. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 38149,
      "status": "done",
      "branch": "claude/project-thread-dbfcfi",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38204",
      "head": "75fbb8d7de",
      "session": "session_01L9qibzywxH36FPH6ayWMUe",
      "premise_still_valid": true,
      "summary": "Ruling A is implemented, and #38206 is still folded in. In the environment scope, Setup's catalog New no longer asks: ResourceListPage handleCreate navigates to ./new?scope=environment, and the editor's Save asks once, with the save naming the chosen package. The ~all leg and the heuristic-pick Setup list still ask at New, unchanged. The catalog case in ResourceListPage.createAsk-38149 was rewritten to no ask at New. The new ResourceListPage.catalogAsksOnce-38149 test mounts the real list and the real editor and asserts: no ask at New, one ask at Save, and then PUT draft plus publish in the chosen package. The changeset bullet is updated. origin/main was merged in, not rebased (merge b99efeea4d, no conflicts). Live, Setup → Positions → New asked exactly once. The PR body file is updated; the body edit is left to you, as ordered.",
      "tests": "Catalog files at 6b589fc6a9: catalogAsksOnce-38149, ResourceListPage.createAsk-38149 and ResourceEditPage.createAsk-38149 are 13/13 green. Ablation A4, through ablation-replace: 'if (envScope) {' became 'if (false) {' (New asks again). The mutation landed (blob 92135175 -> fb7af64b), giving 2 failed | 6 passed (8): the asks-once case and the catalog's no-ask case. Restored: blob == HEAD, git diff HEAD empty. After the merge, the full app-shell and console suite at 6b589fc6a9 (head 75fbb8d7de adds only the changeset line): cd ui && pnpm exec vitest run --maxWorkers=2 --shard=N/12 packages/app-shell/ apps/console/, N=1..12, each VERDICT command-exit 0. Totals: Test Files 2790 passed | 1 skipped (2791), Tests 27646 passed | 9 skipped (27655), 0 failed. That covers every shard, so every file the merge touched. The @object-ui/app-shell type-check gave VERDICT command-exit 0, 0 error TS. Live at 6b589fc6a9 (showcase boot :4719 and console :5219, both stopped after): Setup → Positions and Permissions → Positions loads at /apps/com.objectstack.setup/component/security/access-directory/position?scope=environment. New gives no ask and lands on /studio/~all/metadata/position/new?scope=environment. Save asks, offering com.acme.field-ops and com.acme.partner-portal. Continue sends PUT .../position/live_38149_once?mode=draft&package=com.acme.field-ops 200, then POST .../publish?package=com.acme.field-ops 200, and lands on /studio/~all/metadata/position/live_38149_once?scope=environment. There is no ask after Continue: ASKS TOTAL 1. Screenshots: /mnt/project-files/objectstack-seat3/shots-38149/38149-catalog-new-opens-editor.png, 38149-catalog-save-asks-once.png, 38149-catalog-saved.png.",
      "gates": "After the merge, derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack with no paths (61 paths vs merge base bd5407ec7): 71 commands, run at 75fbb8d7de with exits captured before any pipe. 68 gave EXIT=0 on the first pass, and three were rerun for measuring reasons. pnpm --dir ui exec vitest run scripts/ was SIGKILLed (OOM) beside a suite shard; under the lock it gave Test Files 172 passed | 2 skipped (174), Tests 5145 passed | 2 skipped (5147), VERDICT command-exit 0. check:dual-build-cjs-loads gave exit 3 PREREQUISITE NOT MET (no dist for @objectstack/studio, client-react, scenarios); after building them under the lock it gave exit 0. check:type-check-debt gave exit 3 on a lock queue-timeout; rerun under the lock it said '0 raw tsc error(s) total, none above its recorded number', VERDICT command-exit 0. --ran reconciliation: 71 derived, 71 run, 0 NOT-MEASURED. node scripts/check-nul-bytes.mjs exited 0. The CI type-check programs are NOT MEASURED locally. CI on 75fbb8d7de had not been read at report time (just pushed).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — this os-dev-report comment on #38149 through scripts/pm/post-stamped.mjs (fleet-write relay, POST /repos/objectstack-ai/objectstack/issues/38149/comments). No PR body edit. git push is not counted (1 push, to claude/project-thread-dbfcfi).",
      "deviations": [
        "PR body is left to the seat as ordered. The updated file is /tmp/claude-0/-home-user/051ffef3-2f5a-5046-aa72-7272635b7d1f/scratchpad/issue-38149/pr-body-38206.md (230 lines; first two lines unchanged; Fixes #38149 and Fixes #38206 on lines 4–5; the ending unchanged). It updates the Setup catalog table row and the createAsk test line, and adds the catalogAsksOnce test. It adds the A4 ablation row and rewrites the double-ask Acceptance note as ruling A. It also has the new two-minute check, the live asks-once readings and screenshots, the merge note, and the post-merge suite and gate readings.",
        "The new test's useCanAuthorMetadata mock inherits the real module (importOriginal); a bare factory missed useCanReadAuthoringTrail.",
        "One older screenshot set, 'the Setup catalog's ask (Positions)', shows the ask at New from before ruling A. The body says so; it was not retaken."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Generated by Claude Code

  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibzywxH36FPH6ayWMUe

    Claim amendment (file surface), on L1-b's R3 (7239660486). Claim 7234141707's surface grows by these paths, each a direct consequence of the card, as PR #38204's body records one line apiece:

    • ui/packages/app-shell/src/views/studio-design/packages-io.ts (the ensure error carries its status, so a 403 refuses with the door's reason)
    • ui/packages/app-shell/src/views/ObjectView.tsx (renders the ask and the refusal dialogs for in-app view creates)
    • ui/packages/app-shell/src/console/ConsoleCreateAppPage.tsx (new; wraps the create-app wizard so the package is created first)
    • ui/packages/app-shell/src/console/AppContent.tsx (routes the create-app lazy chunk to it)
    • ui/packages/plugin-designer/src/index.tsx (exports CreateAppPageProps)
    • ui/scripts/__tests__/vite-declared-lazy-views.test.ts (count 15 → 16, naming the new lazy view)
    • the existing tests re-pointed in the PR: the nine CI pins and the retired-fallback pins its body lists.
      Still out: server files, packages/spec, docs/adr/**, and deleting the savedOutsideApp keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxenhancementpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions