Skip to content

feat(app-shell): a create with no named package asks to pick or create one - #38204

Draft
objectstack-fleet[bot] wants to merge 19 commits into
mainfrom
claude/project-thread-dbfcfi
Draft

objectstack-fleet[bot] wants to merge 19 commits into
mainfrom
claude/project-thread-dbfcfi

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#3 · os-tesla · session_01L9qibzywxH36FPH6ayWMUe

Requested by Tesla · project thread

Fixes #38149
Fixes #38206
Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 管理员在设置、应用工作室和业务应用里新建任何东西时,如果地址里没有指定包,控制台会先弹窗让他选一个可写的包或新建一个包,选完才保存;以前这类新建会静默地存成不属于任何包的条目;设置里「职位与权限」页按新建也不再是空白页,而是打开编辑器。
  • 这是「应用工作室」第四阶段的第一步:让每个新建的条目都归属到一个包里,方便之后按包导出和删除。
  • 出错时最坏的情况是某个新建入口多弹一次选包窗口或没有弹窗;取消一定什么都不写,改动只在控制台,可以直接撤回。
  • 无。

What changes

A create whose address names no package now asks the person to pick a package or create one, before anything is written (ADR-0070 D3, ADR-0084's amendment of 2026-11-26). One dialog (PackageCreateAsk.tsx) serves every create path. It offers the packages the server says this caller may write (writable: true on GET /api/v1/packages), never a kernel package. Its "New package…" button reuses the Packages page's create dialog. Cancel writes nothing.

Path Before Now
Setup list, scoped by the list's own heuristic pick create opened in the guessed package asks, with the guess pre-selected
Setup list, ?package= the person named (link or scope selector) create there unchanged, no ask
Setup catalog (?scope=environment): positions, permission sets (Q-a, answered A) live, package-less create New opens the create in the scope; Save asks once; draft in the chosen package, then its publish
Studio's cross-package leg (/studio/~all/metadata/TYPE) create in the first package asks, nothing pre-selected
Item editor deep link /…/TYPE/new with no ?package= draft naming no package (or live for createLive) Save asks first; draft + publish in the answer; the item opens under it
New view / new report in an app whose package cannot be had saved naming no package, plus a "saved outside this app" toast asks
…in a system app (Q-b, answered C) saved naming no package refused with the reason (a view: My views or a business app; a report: a business app)
…where the ensure door refuses the caller (403) saved naming no package refused with the door's reason
Console create-app route (/apps/:app/create-app) saveItem('app') naming no package asks, then draft + publish in the answer
Datasource Sync client object-draft read, then a package-less client save the server's import door, which lands the object in the datasource's package (ruling B)

The open readings I picked:

  • The repair's own-write marker. The list's ?package= repair now writes the location-state key objectui.packagePicked beside the address it repaired. A ?package= is named only when that mark is absent or names a different package. A link and the scope selector write no state, so they stay named. The list's own address writers carry the state through.
  • The console create-app route. A thin wrapper, ConsoleCreateAppPage, keeps the plugin-designer wizard. CreateAppPage gains an optional saveApp(name, app); the wrapper asks, then saves as Studio's new-app door does (first-write-pinned draft, then that one item's publish).
  • The datasource sync landing. POST /api/v1/datasources/:name/external/tables/:remote/import. It is the same external-datasource service as remote-tables and object-draft, and Sync is offered only on a federation source.

The Q-a premise was measured first, as a real kernel test, before any UI was built (position-in-package-binds-outside-sets-38149.dogfood.test.ts, kept in this PR). The setup:

  • a showcase boot;
  • two writable runtime packages;
  • a position created into one of them through the editor's own REST doors (PUT ?mode=draft&package=, then POST …/publish?package=);
  • bound to four sets: one in its own package, one in the other package, one the showcase ships, and one loose set.

Result: 4/4 green. The holder is granted all four sets. A live package-less edit of a set lands on the package's own row. A set the position does not name is not granted. The ablation is in Tests.

The editor holds the chosen package for the form; it never writes it into the address before the save. Measured live: on the ~all leg, a ?package= written first moved the page into the package's area and remounted the form mid-save.

Not in this PR, as the dispatch ordered:

  • No docs/adr/** edit. What 9's marks go to the kernel-close card.
  • No server file and no packages/spec.
  • The view.savedOutsideApp / report.builder.savedOutsideApp i18n keys are kept, only unused.

Surface beyond the claim, each a one-line consequence:

  • packages-io.ts: the ensure door's error carries status.
  • ObjectView.tsx: renders the ask's dialog.
  • ConsoleCreateAppPage.tsx: new.
  • AppContent.tsx: the create-app chunk.
  • plugin-designer/src/index.tsx: the type export.

Setup's access directory reads its own sub-path (#38206)

AccessDirectoryPage read the sub-path below it by slicing ACCESS_DIRECTORY_PATH (the /apps/setup/… alias) off the pathname. The shell serves Setup at its package id (/apps/com.objectstack.setup/…), so there the slice never matched, the sub-path came out empty, and …/position/new rendered the directory's empty shell instead of redirecting to Studio's editor. The page now reads the splat of its own route (useParams()['*'] below component/:ns/:name/*), on every address the shell serves it at. The prefix read stays only for a mount without a splat. accessDirectoryLocation is unchanged.

CI pins on the previous head (4b15ae4), each fixed at its root

Test Root cause Fix
StudioMetadataArea.allList-29566 › create on the ~all leg The leg's New now asks, nothing pre-selected (this PR's ruling); the pin still expected New alone to pick the first package Pin rewritten: New asks, the case picks com.example.crm, Continue opens its create; the ask's package list is stubbed
PackageFormDialog.newAppStep-36748 › the door census The resource list's create-package door moved into the ask's "New package…" Census reads PackageCreateAsk.tsx in place of ResourceListPage.tsx
CreateViewDialog.chartBinding-11576 › Save as view door The case stubbed the authenticated fetch as a no-op, so the package read failed and the create asked (this PR's ruling) The routed app demo answers as a writable package, as in the sibling view tests already retargeted
ObjectView.createViewRefusal-11578, 3 cases Same: no readable package, so the create asked and never PUT Same retarget; the refusal and landing behaviour pinned is unchanged
DatasetDefaultInspector.firstPickKeepsCount-12848, 2 cases A deep-link /new naming no package now asks at Save The address names its package, as the nine editor create tests already do; the seed behaviour pinned is unchanged
AppContent.pseudoRouteSegments › /apps/ghost/create-app (and the same hazard in AppContent.noAppsCta) The create-app route's lazy boundary is now ConsoleCreateAppPage, whose graph loaded inside findByTestId's budget; CI showed the route skeleton still pending Both files pay ../ConsoleCreateAppPage at collection, as they already pay the designer's barrel

My earlier affected-file selection (171 files) missed these. This round ran the whole @object-ui/app-shell and console suite (see Verification).

Tests

All are run at the final head, one union run. The figures are in Verification.

  • New:
    • PackageCreateAsk-38149: list filter, pre-select, Continue gate, Cancel once, New package answers and returns, failed read, a second ask answers the first null.
    • ResourceListPage.createAsk-38149: arrival repair asks with the pick pre-selected; Cancel; a ?package= arrival and a selector choice skip the ask; New disabled while packages load; the catalog's New opens the create in the scope with no ask; the ~all leg asks.
    • ResourceListPage.catalogAsksOnce-38149: the real list and the real editor on Setup's routes. The catalog's New asks nothing. Save asks once, with nothing pre-selected. The save is PUT ?mode=draft&package=app.alpha, then its publish.
    • ResourceEditPage.createAsk-38149: deep-link Cancel writes nothing; position and permission set get draft + publish in the answer and land under it; a named-package control; a refused first save keeps the form and the answer, and the retry asks nothing.
    • runtime-metadata-persistence.createAsk-38149: every resolve outcome, the pick, the cancel, and the no-app control.
    • ConsoleCreateAppPage.createAsk-38149: ask, then draft under the first-write pin, then publish; Cancel writes nothing.
    • ReportNewPage-36692, three new cases: unlisted app asks; cancel; system app refused, with the ensure door never asked.
    • objectViewViewSharing: a cancelled ask writes and says nothing.
    • The dogfood probe above.
    • AccessDirectoryPage.aliasAddress-38206 (设置里新建岗位或权限集打开空白页:访问目录页只认 /apps/setup 地址,控制台用软件包全名时不转去 Studio #38206): at both the package-id address and the setup alias, …/position/new?scope=environment redirects to /studio/~all/metadata/position/new?scope=environment, and …/position gets the environment scope and renders the list.
  • Retargeted pins of the retired package-less create. Each now pins the ask, the refusal, or a named package:
    • liveCreate-7611, positionCreateLive-26192, walledFallback-35624, otherTypesUntouched-35624, createIntoApp-35624, saveAndPublishIntoApp-36409, sameAddress-35624, ReportNewPage-36692 (both ensure-refusal controls), syncNextSteps-30328 (import door), pairCreate-36897;
    • and nine editor create tests that now name their package in the address;
    • four view-create tests: the auth fetch reaches the page's package stub, and the save names demo.
Ablations: each committed, mutated through scripts/ablation-replace.mjs, red, then restored (blob == HEAD, git diff HEAD empty)
Leg Mutation Red
A1 ask list: .filter((p) => p.writable && !p.kernel) becomes .filter(() => true) 4 failed / 12
A2 list: packageNamed dropped (the heuristic pick taken as named) 2 failed / 7
A3 editor: if (createMode && !activePackage) becomes if (false) 5 failed / 8
R1 the system-app refusal line deleted 3 failed / 31
R2 the 403 caller-refused branch becomes if (false) 4 failed / 34
R3 the cancelled-ask throw deleted 4 failed / 20
C1 create-app: if (!packageId) return false; deleted 1 failed / 2
D1 sync: the import door path reverted to /object-draft 3 failed / 4
P1 report: the pick replaced by the app package as is 7 failed / 19
E1 editor: chosenCreatePackageRef.current = chosen; deleted 1 failed / 5
S1 (#38206) AccessDirectoryPage: splat ?? becomes undefined ?? (the prefix read alone) 2 failed / 4: both package-id address cases; both alias cases stay green
A4 catalog: if (envScope) { becomes if (false) { (New asks again) 2 failed / 8: the asks-once case and the catalog's no-ask case
L1 ConsoleCreateAppPage.tsx: a 2.5s top-level wait added (--hold, then --restore) the old route tests: 2 failed / 45, both create-app cases, as on CI; the new ones: 45/45
Probe security-catalog.ts: the source === 'registry' closure guard removed case 2 red: granted pkhome_reviewer_set, showcase_member_default, member_default, storage_attachment_member, missing the other-package, shipped and loose sets

Acceptance notes

  • createLive (permission, position) is now unreachable from the editor's create: every create names a package. The key is registered in builtinComponents.tsx and registry.ts, outside this card's surface. Retiring it is a narrowing, left for a follow-up.
  • The two savedOutsideApp keys are unused now and kept, as ordered. Retiring them is a second, narrowing PR.
  • The ask's pre-select uses the list's heuristic pick and never takes it as the answer. A read-only base appears only once its .custom pair is a listed writable package. A base with no pair is not offered.
  • A view or report ask is titled "Choose a package". The Setup list and editor asks name the type ("Which package should this Position go in?").
  • The AI create path (cloud) is not in this card.
  • The Setup access directory blanked a create (found live in the first half). It is fixed here, as 设置里新建岗位或权限集打开空白页:访问目录页只认 /apps/setup 地址,控制台用软件包全名时不转去 Studio #38206.
  • Found live on the 设置里新建岗位或权限集打开空白页:访问目录页只认 /apps/setup 地址,控制台用软件包全名时不转去 Studio #38206 check: the Setup catalog asked twice. New asked, and Continue opened Studio's editor at /studio/~all/metadata/position/new?scope=environment. Studio's area drops ?package= under the environment scope (areaLocationRedirect), so the answer was lost and Save asked again. Seat ruling A: in the environment scope, the catalog's New does not ask. It opens ./new?scope=environment, and the editor's Save asks once.

Verification

Read first, by risk:

  1. ResourceListPage.tsx handleCreate: which create asks and which goes straight through.
  2. runtime-metadata-persistence.ts resolveRuntimeCreatePackage: refused versus ask.
  3. ResourceEditPage.tsx doSave: the ask, and the held answer.

Two-minute check: boot a showcase, create one writable package, then open /studio/~all/metadata/dashboard and press New. The dialog lists only that writable package, and Continue stays disabled until it is chosen.

#38206 and catalog check: open Setup → Positions and Permissions → Positions and press New. Studio's position editor opens ("Create new"), not a blank page, with no ask. Fill the name, then press Save. It asks once; Continue saves.

Screenshots (light and dark, desktop 1440 and phone 390) are in the project files under objectstack-seat3/shots-38149/, 16 PNGs:

  • the Setup catalog's ask (Positions). This was taken at New, before ruling A; the ask now comes at Save, see below;
  • the ~all leg's ask (Dashboard);
  • an app's Add view ask (a package-less app);
  • a new report's ask.

#38206, live at e9cf656: Setup → Positions and Permissions → Positions loads at /apps/com.objectstack.setup/component/security/access-directory/position?scope=environment. Continue from the then-ask reached /studio/~all/metadata/position/new?scope=environment, where Studio's position editor renders. The screenshot is objectstack-seat3/shots-38149/38206-setup-position-new-editor.png.

The catalog asks once, live at 6b589fc (after the merge of origin/main):

  • New asks nothing 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.
  • No ask after Continue: one ask in total.
  • Screenshots: 38149-catalog-new-opens-editor.png, 38149-catalog-save-asks-once.png, 38149-catalog-saved.png.

Live, on the same boot: the editor's ask on the ~all leg answered PUT …/position/field_dispatcher?mode=draft&package=com.acme.field-ops 200, then POST …/publish?package=com.acme.field-ops 200. It landed on /studio/com.acme.field-ops/metadata/position/field_dispatcher. The read answered _packageId: com.acme.field-ops.

Union test run at head 1e5b3fa: 172 files, 1410 tests, all green
  • cd ui && pnpm exec vitest run --maxWorkers=2 over 171 affected app-shell, plugin-designer and console test files, plus scripts/__tests__/vite-declared-lazy-views.test.ts and check-vi-mock-inherit.test.ts. Through os-verify-lock.sh: 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 (5146), VERDICT command-exit 0.
  • Type checks: @object-ui/i18n exit 0 and @object-ui/plugin-designer exit 0. @object-ui/app-shell (tsc --noEmit, then the test config) exit 0, run after the source-typed fix to sameAddress-35624. The build closure --filter '@object-ui/app-shell^...' --filter '@object-ui/plugin-designer^...' ran first: VERDICT command-exit 0.
  • The dogfood probe: pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 test/position-in-package-binds-outside-sets-38149.dogfood.test.ts, 4/4.
  • Not measured locally: test:repo, CI's Test Core.
After the merge of origin/main, at 6b589fc (head 75fbb8d adds only the changeset line): full app-shell and console suite, 2791 files, 27655 tests, 0 failed
  • The same 12-shard command, each shard VERDICT command-exit 0. Totals: Test Files 2790 passed | 1 skipped (2791), Tests 27646 passed | 9 skipped (27655).
  • The @object-ui/app-shell type-check: VERDICT command-exit 0, 0 error TS.
  • The catalog files (catalogAsksOnce-38149, ResourceListPage.createAsk-38149, ResourceEditPage.createAsk-38149): 13/13 green. Ablation A4: 2 failed / 8, restored to blob == HEAD.
Gates after the merge, at head 75fbb8d: 71 of 71 run, every exit 0
  • Derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack with no paths: 61 paths against merge base bd5407e. Reconciled by --ran: 71 derived famil(ies) accounted for — 71 run, 0 NOT-MEASURED.
  • 68 answered exit 0 on the first pass. Three needed a second run, each for a measuring reason, none a finding:
    • pnpm --dir ui exec vitest run scripts/ was OOM-killed beside a suite shard. Rerun under the lock: Test Files 172 passed | 2 skipped (174), Tests 5145 passed | 2 skipped (5147), VERDICT command-exit 0.
    • check:dual-build-cjs-loads answered PREREQUISITE NOT MET (no dist for studio, client-react, scenarios). Those three were built, then it gave exit 0.
    • check:type-check-debt hit a lock queue-timeout (exit 3). Rerun under the lock: 0 raw tsc error(s) total, none above its recorded number, VERDICT command-exit 0.
  • node scripts/check-nul-bytes.mjs exit 0.
Full app-shell and console suite at head 958d1c1 (before the merge): 2791 files, 27613 tests, 0 failed
  • cd ui && pnpm exec vitest run --maxWorkers=2 --shard=N/12 packages/app-shell/ apps/console/, N = 1 to 12, each through os-verify-lock.sh, each VERDICT command-exit 0.
  • Totals: Test Files 2790 passed | 1 skipped (2791), Tests 27604 passed | 9 skipped (27613).
  • The @object-ui/app-shell type-check (tsc --noEmit, then the test config) at 958d1c1: VERDICT command-exit 0.
  • The 设置里新建岗位或权限集打开空白页:访问目录页只认 /apps/setup 地址,控制台用软件包全名时不转去 Studio #38206 files at 4b15ae4: AccessDirectoryPage.aliasAddress-38206, AccessDirectoryPage, accessDirectory: Test Files 3 passed (3), Tests 52 passed (52).
  • The CI-red files, run first at their 4b15ae4 blobs on this head's source:
    • the 29566, 36748 and 11576 files: 3 failed | 26 passed (29), the same three cases as CI;
    • the 11578 and 12848 files: 5 failed, the same five cases as CI.
    • The two route tests are red on CI only, because it is a load-budget failure. They were shown red locally with ablation L1.
    • At this head, all of them are green.
Gates for the #38206 round at head 958d1c1: 38 of 38 run, every exit 0
  • Derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, given this round's ten paths (git diff --name-only 1e5b3fad94 HEAD). This narrowing is declared: the first half's 71 families ran at 1e5b3fa, below. The 38 equal the list derived for the first 设置里新建岗位或权限集打开空白页:访问目录页只认 /apps/setup 地址,控制台用软件包全名时不转去 Studio #38206 commit alone.
  • Reconciled by --ran: 38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED. Each exit code is captured before any pipe: 38 of 38 EXIT=0.
  • On the way, check:test-source-alias was red on three retargeted files: noAppsCta, the 12848 file and the 29566 file. Each now pays @objectstack/lint at collection, and the gate is green at head.
  • origin/main was merged in afterwards (merge commit b99efee, by git merge, no rebase), on the seat's order.
Gates: the derived local subset at head 1e5b3fa, 71 of 71 run, every exit 0
  • Derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, merge base 9dca109. Reconciled by --ran: 71 derived famil(ies) accounted for — 71 run, 0 NOT-MEASURED.
  • On the way, check:test-source-alias was red on this diff's test files. Each named file 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. Both are green at head.
  • check:dts-closure and check:dual-build-cjs-loads first answered PREREQUISITE NOT MET (no full build in this tree). Both answered exit 0 at head.
  • node scripts/check-platform-checklist.mjs --changed-from origin/main: OK, 0 anchors lost.
  • CI-only families: read from this PR's check-runs.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe

…from outside it

The premise the App Studio create ask rests on: a position saved into a
new writable package still grants its holder another package's set, a
code package's set and a loose set.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…eate pins

The create ask's own tests (the Setup list, the item editor, the console
create's package pick), and the existing pins that held the retired
package-less create moved to the ask, the refusal, or a named package.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…te, and the report's ask and refusal

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…form, never in the address before the save

On Studio's cross-package leg a `?package=` written before the save moved the
page into the package's area and remounted the form. The answer is now held
for the form: a retried Save reuses it, and the item opens under it.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…rit the wizard module's mock, count the create-app chunk

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs.

What this run could not see

Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 3ad3b415997e28d37e74cc50ea05af9fac7faeaf → packageMentionDocs.

…age-id address

The shell serves Setup at its package id, not at the setup alias the page
prefix-read on, so the sub-path came out empty there and Positions, New
rendered a blank page. Read the route's own splat instead.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
The leg's New asks for the package with nothing pre-selected, so the pin
that New alone picked the first package retargets to the ask.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…sk is a package-create door

The Save as view chart case stubbed the authenticated fetch as a no-op, so
the create's package read failed and the create asked instead of saving.
The resource list's create-package door now lives in the create ask.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
The Create View refusal cases and the new-dataset seed cases created with
no readable package, so the create asked instead of saving: the routed
app's package answers the first, the address names one for the second.
The create-app route's lazy boundary is the console wrapper now, so the
two route tests pay its load at collection as they pay the designer's.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
…t Save

The catalog's New asked and wrote the answer into the create's address,
but Studio's area drops ?package= under the environment scope, so the
editor's Save asked a second time. New now opens the create in the scope
and the editor's Save asks.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzywxH36FPH6ayWMUe
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 75fbb8d7de063f1b3eaef918dd4bfbb4c0426c65
Local-runs: none
Security-touching: yes
Rule-change-verified: none

The face is the declaration alone: Clause-②: yes (widening) on the body and the changeset. No packages/spec/src file, no governed path, no narrowing. I read the diff against merge base bd5407ec and the head's check-runs. Nothing was built or run.

① Derived judgments

  • @object-ui/i18n adds 13 studio keys, engine.packageAsk.*, in English and Chinese, the same 13 in each. Nothing is renamed or removed. The kept view.savedOutsideApp and report.builder.savedOutsideApp keys are only unused, as the claim ordered. Their retirement is a later narrowing.
  • @object-ui/plugin-designer adds CreateAppPage's optional saveApp(name, app) prop and exports CreateAppPageProps. With no saveApp the wizard saves through the client as before, so a third-party host's behaviour is unchanged. false keeps the wizard open with nothing written.
  • No server route, spec key or stored row changes. Datasource Sync now calls an existing route, POST /api/v1/datasources/:name/external/tables/:remote/import (packages/rest/src/external-datasource-routes.ts, ledgered datasources.external.import). It answers { object: ImportObjectResult } 201, and ImportObjectResult carries the name and definition the page reads.

② Semver level

Additive on both published packages. Each takes patch, which matches the repo's practice for an additive non-spec change (as on #38185's client method). Check Changeset is green on the head.

③ Boundary flags

  • The declared face holds: every key and the new prop are additive.
  • SQL push-down: none in scope. The diff adds a client list filter over GET /api/v1/packages (writable && !kernel), a single read with no join.
  • The dev's open readings (the repair's own-write mark, the create-app wrapper, the Sync landing) were read as data and checked against the tree. The one place the published text and the code disagree is prose, and it is an L1 finding in the seat's L1 comment on this head, not a contract one.

Implemented-by: claude/project-thread-dbfcfi
Reviewed-by: session_01L9qibwsYQqi3TBx2SFE978

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978

L1-b, the seat's L1 thread for zone o3-studio · 2026-11-28T13:03Z

席位核对 — L1 REWORK @ 75fbb8d7de063f1b3eaef918dd4bfbb4c0426c65

Verdict: REWORK. One behaviour does not match what the changeset publishes, plus two bookkeeping items. Everything else I read holds. The L2 owed by the Clause-②: yes line alone (TIER_DEFAULT) is PASS, in the record beside this comment.

Must fix

R1. Studio's cross-package leg pre-selects a package, and the changeset says it does not.

  • What the PR says:
    • The changeset: "Studio's cross-package leg (/studio/~all/metadata/TYPE): New asks, with nothing pre-selected."
    • The body table and the allList-29566 pin's reason say the same.
    • The body's two-minute check: "Continue stays disabled until it is chosen."
  • What the code does (ResourceListPage.tsx handleCreate): the leg falls through to askPackage({ preselect: pickedPackage, ... }). pickedPackage does not depend on allLeg. On the leg the list still loads the project packages, so pickedPackage is the package owning most rows of the type, else the first. The dialog checks it whenever it is a writable option.
  • The result: on the leg the heuristic pick is checked and Continue is enabled at once. With the two-minute check's single writable package, that package is checked on open.
  • Why no test caught it: both leg cases (ResourceListPage.createAsk-38149 and StudioMetadataArea.allList-29566) click the very option the heuristic picks, so neither can see a pre-select.
  • Fix:
    • Pass preselect: allLeg ? null : pickedPackage.
    • Pin it: on the leg, the ask opens with no option checked and Continue disabled. A fixture where the heuristic would pick a package will show it.
    • If pre-selecting on the leg is wanted after all, that is a ruling change. Then the changeset, the body table and the pin's reason change instead, on the zone's word.

Should fix

R2. The changeset's Sync sentence is true only for a datasource with a package. The changeset says the import door "places it in the datasource's package, instead of a client save naming none". The page's own doc comment at this head says the server lands it in "the datasource's own package, its read-only base's .custom pair, or no package for a datasource that has none". Write the published sentence the way the code comment says it.

R3. Claim file-surface amendment. These paths are outside claim 7234141707's surface:

  • studio-design/packages-io.ts
  • views/ObjectView.tsx
  • console/ConsoleCreateAppPage.tsx
  • console/AppContent.tsx
  • plugin-designer/src/index.tsx
  • ui/scripts/__tests__/vite-declared-lazy-views.test.ts (15 → 16, naming the new lazy view)
  • the existing tests re-pointed in this PR (the nine CI pins and the retired-fallback pins the body lists)

The body names the source files, each with a one-line consequence. I read every hunk, and each is a direct consequence of the card. Still, the claim says "stop on breach", and on #38185 the zone posted the amendment (7238710652). Post one here too, listing them.

Read at this head, holding

  • Shape (l1-face.mjs --pr 38204):
    • Fixes #38149 is right: every create path the card names is in the table.
    • Fixes #38206 is the fold the claim made (7235488099, all five fold gates), so closing it is intended.
    • The face flags the PR as ready, not draft. The ready flip is the seat's: put it back to draft for this round.
  • Q-a premise (position-in-package-binds-outside-sets-38149.dogfood.test.ts): a real kernel boot, through the editor's own REST doors.
    • A position created in package A is granted sets from A, from package B, from the showcase and from loose sets.
    • A set it does not name is not granted.
    • The ablation of the source === 'registry' closure guard turns case 2 red. That is the right control.
  • Q-b C:
    • resolveRuntimeCreatePackage refuses a non-writable kernel-scoped (system/cloud) app before the ensure door is asked.
    • A 403 from the ensure door is caller-refused with the door's reason. Any other failure asks.
    • RuntimeCreateNotSavedError writes nothing, and each of its four callers says it and returns false.
    • onSavedOutsideApp is gone. Its two keys are kept, unused, as ordered.
  • Every create now names a package:
    • createRuntimeMetadata and saveAndPublishRuntimeMetadata pick for any type given ctx.app.
    • Of the callers on the head, only creates pass an app. The in-place saves (handleViewSaveAndPublish, saveInPlace, publicForms) pass none and keep their row's package, as before.
    • The design-mode menu create always names its package.
  • Ruling A (the catalog): New on ?scope=environment opens ./new?scope=environment with no ask. The editor's Save asks once and holds the answer in chosenCreatePackageRef, so a retry asks nothing. The landing adds ?package=, and the address is not written before the save. catalogAsksOnce-38149 runs the real list and the real editor, and ablation A4 is red.
  • 设置里新建岗位或权限集打开空白页:访问目录页只认 /apps/setup 地址,控制台用软件包全名时不转去 Studio #38206: AccessDirectoryPage reads useParams()['*'], with the prefix read kept only for a mount without a splat. Ablation S1 turns the two package-id address cases red and leaves the alias cases green. That is the right split.
  • Nine CI pins: each rewrite pins the ask, the refusal or a named package, and none drops a behaviour assertion. The census (newAppStep-36748) follows the door to PackageCreateAsk.tsx. The walledFallback-35624 pin now asserts the 403 refusal with its reason, no ask and no write, replacing the retired package-less save. It is a re-point to the ruled behaviour, not a loosening.
  • Changeset, sentences read in person: the package-ask sentence, the Setup-list sentence, the catalog half of the leg sentence, the editor sentence, the view/report sentence (system app, 403), the create-app sentence and the 设置里新建岗位或权限集打开空白页:访问目录页只认 /apps/setup 地址,控制台用软件包全名时不转去 Studio #38206 sentence are all true. The leg's "nothing pre-selected" (R1) and the Sync sentence (R2) are not.
  • Checks: 57 success, 12 expected skip, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check are success, and mergeable_state is clean.

Next

A delta L1 and the TIER_DEFAULT delta on the new head. No governed path, and the diff is under 3000 lines (+2383/−346), so Tier H is not owed. The seat lands it after the delta ACCEPT.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants