Skip to content

fix(app-shell,console): the shell package list, AI chat lists and studio-design reads and writes send the stored bearer token - #37185

Merged
objectstack-fleet[bot] merged 19 commits into
mainfrom
claude/issue-37080-bearer-only-shell-fetch
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 19 commits into
mainfrom
claude/issue-37080-bearer-only-shell-fetch

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Fixes #37080

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:浏览器里只剩登录令牌(会话 Cookie 被替换、拦截或清掉)的用户,侧边栏、应用头部、命令面板和 Studio 入口里的应用包列表不再消失,AI 对话列表、建议权限绑定、提交历史、草稿面板等也正常加载;只用 Cookie 登录的用户看不到任何变化。
  • 为什么做:控制台其它请求都会带上登录令牌,这一批读写漏带,属于"控制台登录状态体验"这一块的缺陷,替所有处于这种登录状态的用户解决,并加了一道测试防止以后再写出漏带令牌的请求。
  • 出错会怎样:最坏情况是这些地方重新读不到数据,与修复前一样;不改服务端接受什么、不改登录方式,可以直接撤回。
  • 要你做什么:无。

What changes

Same-server /api/ reads and writes in app-shell and the console that called the bare global fetch with credentials: 'include' (the session cookie and nothing else) now go through createAuthenticatedFetch from @object-ui/auth, exactly as #37077 did for the Setup pages: built per call (createAuthenticatedFetch()(input, init), a local authFetch in each module), credentials: 'include' kept on every call, so the cookie still rides along and a 401 now reaches the console's session-ended check. No second auth-fetch helper and no new export. Nothing changes in what the server accepts.

The measured case: under a bearer-only session, readPackagesPayload (GET /api/v1/packages, the session's held package list read by the sidebar, the app header, the command palette and the Studio entries) sends the bearer and the list loads (pinned below).

The family, measured at origin/main 63ab479

79 non-test files under ui/packages/app-shell/src and ui/apps/console/src contain credentials: 'include'. Read call by call (AST scan of every credentials: 'include' property and the call it is handed to):

Converted here: 64 calls in 39 files.

File Calls
app-shell/.../studio-design/packages-io.ts readPackagesPayload (GET /api/v1/packages, the measured case), ensureCustomizationPackage, duplicatePackage
app-shell/.../studio-design/packageCustomizations-io.ts, PackageSwitcher.tsx, AutomationsPillar.tsx, FlowItemMoreMenu.tsx 1 each (customizations read, switcher list, automation status, flow clone)
app-shell/src/hooks/useConversationList.ts 4 (list, detail, rename, delete)
app-shell/src/hooks/useChatConversation.ts 3 (read, create, update)
app-shell/src/console/ai/buildDebugApi.ts 1 (build-debug report)
app-shell/src/hooks/useAiUsage.ts 1
app-shell/src/services/suggestedBindingsApi.ts 4 (list, confirm, dismiss, reopen)
app-shell/src/preview/commitHistory.ts 2 (timeline, revert)
app-shell/src/preview/DraftChangesPanel.tsx, UnpublishedAppBar.tsx, usePendingDrafts.ts 2, 1, 1
app-shell/src/preview/flowDraftChecks.ts the default transport (opts.fetchImpl ?? createAuthenticatedFetch())
app-shell/src/views/changeOwner.ts the fallback transport (apiFetch ?? createAuthenticatedFetch())
app-shell/src/views/metadata-admin/ PackageFormDialog.tsx, catalog-activation.ts, permission-set-clone.ts, sharing-rule-catalog.ts 1, 2, 1, 1
app-shell/src/views/metadata-admin/inspectors/ FlowReferenceField.tsx, connector-input-fields.ts 2, 1
app-shell/src/views/metadata-admin/previews/ FlowRunsPanel.tsx, useFlowNodePalette.ts, PagePreview.tsx 1, 1, 2
app-shell/src/views/setup/ packagedActionLedger.ts, packagedFlowLedger.ts 2, 1
app-shell/src/hooks/ useRecordApprovals.ts, sharedUserFeeds.ts, useInboxBell.ts 1 each
app-shell/src/console/ AppNoAccessEmptyState.tsx, connect/ConnectAgentWidget.tsx, deployment-notice/deploymentNoticeState.ts 1, 2, 2
app-shell/src/console/marketplace/marketplaceApi.ts 5 same-server calls onto the existing serverFetch (/cloud-connection/install, install-namespace, installation, and on the control plane its own install_package action and installed-state route)
app-shell/src/layout/designModeMenuSave.ts 1 (/api/v1/i18n/locales)
app-shell/src/layout/ContextSelectors.tsx 1, with { sameOriginOnly: true }: the endpoint is author-written (optionsSource.endpoint) and may name another host
console/src/pages/developer/ AgentConnectSection.tsx, IntegrationsPage.tsx 2, 1
console/src/pages/auth/DeviceAuthPage.tsx 3 (claim, approve, deny: a signed-in act)

Of the card's named ones: packages-io.ts readPackagesPayload, useConversationList, useChatConversation, suggestedBindingsApi and the studio-design writes (ensure-customization, duplicate, customizations, flow clone) are all converted. suggestedBindingsApi, useRecordApprovals, sharedUserFeeds, useInboxBell, ConnectAgentWidget, deploymentNoticeState and three marketplaceApi calls already set the bearer header by hand (authHeaders / bearerAuthHeaders / withEnvAuth), so those were not cookie-only; they are converted anyway for the session-ended check and the one mechanism, and their hand-rolled header is left in place (the wrapper sets the same value).

Already authenticated or injected (not the family): 24 files. settings/api.ts, AuditLogPage.tsx, approvalsApi.ts, studioEntry.ts, ExcelImportBar.tsx, CloudAiModelStatus.tsx, useEnvironmentEntitlements.ts, storageUsageEndpoint.ts, ImpersonationBanner.tsx, useImpersonationExit.ts, RecordAttachmentsPanel.tsx, RecordDetailView.tsx, useConsoleActionRuntime.tsx, AccessExplainPanel.tsx, MetadataTypeActions.tsx, PackagesPage.tsx, DatasourceResourcePage.tsx, personalViews.ts, connectorConnections.ts, connectorCredentials.ts, and the injected transports of myPreferences.ts, slackDoors.ts, orgEnvironments.ts, useLauncherApps.tsx. App.tsx names the string in a comment only.

Left, on the pin's shrink-only list: 21 calls in 15 files, each with its reason in the pin (sameServerFetch.bearer.ratchet.test.ts, ALLOWED):

  • console/src/LocalizationFetchProvider.tsx (1) and console/src/languageSeed.ts (not counted by the pin: it hands sharedGetJson a transport argument that may be undefined): the boot read of /api/v1/auth/me/localization, shared in flight by a key built from the init with the early request index.html sends. A session it cannot see reads authenticated: false and falls back to the browser language rather than failing. Its transport is its own decision (Acceptance notes).
  • console/src/components/FormPage.tsx (1): the bare channel is the public form route's on purpose.
  • console/src/lib/auth-preflight.ts, console/src/lib/early-discovery.ts (1 each): set the bearer header themselves on purpose.
  • console/src/pages/auth/OAuthConsentPage.tsx (3), followAuthorize.ts (1), handoffClientName.ts (1): the OAuth hand-off, whose authorize step is a top-level navigation that can only carry the cookie.
  • console/src/pages/auth/SetupPage.tsx, app-shell/src/console/auth/bootstrapStatus.ts, console/src/pages/auth/VerifyEmailPage.tsx, app-shell/src/chrome/ConditionalAuthWrapper.tsx, app-shell/src/runtime-config.ts (1 each): read before or without a session.
  • app-shell/src/console/ai/AiChatPage.tsx (1): an open PR (feat(console): conversation focus — a pinned record in the chat request, shown as a chip, kept across navigation #37123) edits this file; its call moves with that work.
  • app-shell/src/console/marketplace/marketplaceApi.ts (5): each targets getCloudBase() || SERVER_URL, the cloud control plane's own origin whenever one is configured, which must never see this runtime's bearer.
  • app-shell/src/views/metadata-admin/previews/ActionPreview.tsx (1): the test request of an api action preview, sent to the author-written target; its transport is not decided here.

The other two fenced files hold no family call: RecordDetailView.tsx and useConsoleActionRuntime.tsx already route every credentials: 'include' call through their authFetch. Neither was edited.

Tests

  • ui/packages/app-shell/src/sameServerFetch.bearer.ratchet.test.ts (new, the enumeration pin; runs in Test UI, app-shell's unit project): parses every non-test source file of both trees with the TypeScript parser and refuses a bare cookie-only call (the transport is the global fetch, window.fetch, globalThis.fetch, self.fetch, one of those as a ?? / || fallback, or sharedGetJson without its transport argument; the init carries credentials: 'include', inline or as a const of the file, as const included). The URL is not judged: a call that must stay bare is a counted row with its reason. Four cases: the scan reads both trees (more than 500 and 100 files); a 13-case detector battery (each bare spelling found, each authenticated one not); every bare call is a counted row; every row is still exact (a file that sheds a call must shrink its row).
  • ui/packages/app-shell/src/views/studio-design/packages-io.bearerSession.test.ts (new): against a server that refuses any request without the bearer, with a token stored, fetchPackages loads the list and its one request carries Authorization: Bearer TOKEN and credentials: 'include'; fetchListedPackageIds likewise; the duplicate write, the commit timeline and revert, suggested bindings and the build-debug report carry the bearer. Each with a cookie-only control (no token stored: no Authorization, credentials: 'include').

Test doubles that moved (118 files, no assertion weakened):

  • 102 files: hand-rolled Response doubles ({ ok, status, json }) gain headers: new Headers(), the headers a real Response carries and the authenticated fetch reads (set-auth-token), as fix(console): Settings, Packages, Audit Log and the connector pages send the stored bearer token #37077 did. The 102nd, StudioPaletteGroups.surfaceScope-36900 (the command-palette suite that reached main after round 0), doubles GET /api/v1/packages: without the headers the converted readPackagesPayload threw on the double and the palette drew no Packages group. For fetchInstalledPackageRow-7881 and StudioDesignSurface.readOnlyPosture-12453 the headers are added at the one stub instead of each answer.
  • 8 files whose @object-ui/auth mock answered createAuthenticatedFetch: () => vi.fn() (a transport that answers nothing) now hand the authenticated fetch's requests to the global fetch the file already stubs: the four RecordApprovalsPanel suites and RecordDetailView editLockedByState-32756, phoneFace-27058, userActionPredicates, harness.
  • 5 RecordDetailView approval suites whose authFetchSpy stands for the action door: approvals reads (now through the authenticated fetch too) are handed to the file's wire double, as before (approvalRecallGate, accessEndedAfterDecision-26589, approvalDeclaredActions, approvalLock-12220, approvalLock-25934).
  • StudioRoute.searchPalette-11863 (console): its auth mock answers the Studio permissions read and hands every other request (the package list) to the wire double.
  • 3 assertions read the init the wire received (the last two files are also among the 101): useConversationList and BuildDebugDrawer assert { credentials: 'include', headers: expect.any(Headers) } (exact keys, as before); DraftChangesPanel.flowChecks-34818 reads Accept-Language off a Headers.
  • RecordDetailView.headerApiInterpolation: the flow-trigger case asserts exactly one call to the trigger door, filtered by its path, since the page's own reads now share that spy.

Acceptance notes

  • Same defect family outside the two trees, not touched (the card scopes the plugin-* hooks out unless measured here): credentials: 'include' with the bare fetch remains in ui/packages/plugin-chatbot (useAgents, useAiModels, useHitlInChat, usePendingActions), plugin-detail (queueClaim, stageChangeStarts, useRecordEditable), plugin-grid (useRecordCrudVerdicts, useRowApprovalLocks), plugin-dashboard (DatasetWidget), plugin-charts (ObjectChart), fields (ShareableObjectRefField, preferenceOptions), components (ShareDialog) and permissions (MePermissionsProvider). Not each read call by call.
  • A bare fetch('/api/…') with no init at all is cookie-only as well (the default same-origin credentials) and is outside the pin's spelling: views/metadata-admin/widgets.tsx fetchFieldSelectorOptions (GET /api/v1/objects/:name/fields).
  • LocalizationFetchProvider and languageSeed read /api/v1/auth/me/localization cookie-only; under a bearer-only session that read answers anonymously and the console falls back to the browser language instead of the user's own locale. Not measured in a browser; left because the request key is shared with the early request index.html sends.
  • The hand-rolled bearer helpers left beside converted calls (authHeaders in suggestedBindingsApi, bearerAuthHeaders, withEnvAuth) are now redundant there; not removed here.

Verification

The measured case and the pins (green at the head)

packages-io.bearerSession.test.ts and the ratchet are in the rerun below (all green). The ratchet's detector battery first went red on a real detector issue: at a script's top level await (x)(…) parses as a call of await, so the (apiFetch ?? fetch) case read 0; the cases now run inside an async function.

Ablation: one conversion reverted, both pins red

Through scripts/ablation-replace.mjs on packages-io.ts: anchor const res = await authFetch('/api/v1/packages', { hit 1 → 0, blob d3c93d771344 → 42f8862ba05e; the ratchet and the bearer-session file run under the lock:

FAIL sameServerFetch.bearer.ratchet.test.ts > every bare cookie-only call is a counted row of the shrink-only allow-list
  + "packages/app-shell/src/views/studio-design/packages-io.ts:398 :: fetch('/api/v1/packages', …)"
FAIL packages-io.bearerSession.test.ts > loads the package list, sending the stored bearer beside the cookie
FAIL packages-io.bearerSession.test.ts > answers the listed-id read from the same authenticated request
Test Files  2 failed (2)
     Tests  3 failed | 14 passed (17)

The cookie-only control stayed green. Restored: blob d3c93d771344 equal to HEAD, git diff HEAD empty.

Suites

The whole @object-ui/app-shell and @object-ui/console suites, under the shared verify lock, in six shards (cd ui && pnpm exec vitest run --maxWorkers=3 --shard=k/6 packages/app-shell apps/console) at 32505939 (the final source; only test files changed after it). These are the readings BEFORE the doubles moved, and they are how the moved doubles were found:

shard 1/6: Test Files  21 failed | 440 passed (461) · Tests  121 failed | 4304 passed (4425)
shard 2/6: Test Files  16 failed | 446 passed (462) · Tests  64 failed | 4352 passed | 1 skipped (4417)
shard 3/6: Test Files  23 failed | 439 passed (462) · Tests  104 failed | 4111 passed (4215)
shard 4/6: Test Files  17 failed | 445 passed | 1 skipped (463) · Tests  87 failed | 4383 passed | 8 skipped (4478)
shard 5/6: Test Files  26 failed | 436 passed (462) · Tests  116 failed | 4636 passed (4752)
shard 6/6: Test Files  14 failed | 448 passed (462) · Tests  77 failed | 4286 passed (4363)

The 117 failing files are exactly the 117 moved doubles. Each was re-run after its fix (the two new pin files with them): Test Files 116 passed | 3 failed (119), then the three fixed again Test Files 3 passed (3). After the last two type fixes Test Files 2 passed (2), and after the collection-time imports the 34 files that gained one Test Files 34 passed (34) / Tests 319 passed (319), at 5dde589a8c. The 2,655 files that passed in the shards were not edited. A full re-run after the fixes was not done locally (NOT MEASURED, reason: about 90 minutes of shared lock); Test UI runs the full affected set on this PR.

Type-check through turbo (dependency closure built): @object-ui/app-shell and @object-ui/console type-check Tasks: 77 successful, 77 total at 3080a68173; @object-ui/app-shell again at 5dde589a8c after the last test edits, Tasks: 69 successful, 69 total. The first run found two type errors in my test edits (a typed tuple, an object literal against a declared parameter type), fixed in 3080a68173.

pnpm --dir ui exec vitest run scripts/ after building the seven @objectstack packages as Test UI does: Test Files 172 passed | 2 skipped (174), Tests 5131 passed | 2 skipped (5133).

Gates

node scripts/pm/dispatch-gates.mjs --commands (no paths, merge base 63ab4794): 39 families. All 39 run locally, each exit captured before any pipe; 37 lock-free families re-run at 5dde589a8c, all exit 0; pnpm check:type-check-debt exit 0 (0 raw tsc error(s) total, none above its recorded number); the ui scripts/ suite above exit 0. Reconciled: dispatch-gates --ran: 39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero).

check:test-source-alias first went red on the edited suites (exit 1): 34 of them reach a dynamic import('@objectstack/lint'), import('@objectstack/formula') or import('@object-ui/plugin-detail') in the source under test with no collection-time load. Each gained the module-top side-effect import the gate prescribes (5dde589a8c), then exit 0.

overlap-check before every push: at 4a990ef7 it merges cleanly with origin/main (93bd4595) and with #37204, #37188 and #37148, and exits 1 on textual conflicts with three open Studio PRs that edit the same test files: #37166, #37168, #37169 (in StudioDesignSurface.*, BuilderLanding.*, CommandPalette.studioScope-11863, StudioRoute.searchPalette-11863, and #37166/#37169 also in PackageSwitcher.tsx, FlowItemMoreMenu.tsx). Whichever lands second takes the merge.

Round 1: main merged at 3b4f0b9, re-measured at e055596

CI at 5dde589a was red on two causes, both from main moving (the ⌘K palette work):

  • check:test-source-alias exit 1: four edited suites (StudioDesignSurface entryReadsOnce-11797, itemDraftLine-12725, notFound-26708, readOnlyPosture-12453) now reach import('@object-ui/plugin-detail') through the surface's command palette and its record preview. Each gained the prescribed module-top import '@object-ui/plugin-detail'; (38 files carry a collection-time import in all). Then exit 0.
  • StudioPaletteGroups.surfaceScope-36900: 3 failed, 8 passed; after its package-list double gained headers (above), 11 passed. No assertion changed.

Readings at e0555965, under the shared verify lock:

ratchet + bearer-session pin + main's 35 incoming app-shell/console test files + the 5 edited files:
  Test Files  41 passed (41) · Tests  394 passed (394)
whole @object-ui/app-shell + @object-ui/console (cd ui && pnpm exec vitest run --maxWorkers=3 packages/app-shell/ apps/console/):
  Test Files  1 failed | 2779 passed | 1 skipped (2781) · Tests  2 failed | 26745 passed | 9 skipped (26756)

The one failing file is ReportNewPage-36692.test.tsx, which this branch does not touch (nor its page); it passed 3 of 3 runs alone (Tests 6 passed (6) each). Its second failure received the first case's save call, late: its cases flush by setTimeout(0) rounds while the page loads its Han romanizer lazily, so on a loaded box the save can land after the case ends.

@object-ui/app-shell type-check through turbo: Tasks: 69 successful, 69 total. pnpm --dir ui exec vitest run scripts/: Test Files 172 passed | 2 skipped (174), Tests 5131 passed | 2 skipped (5133).

Gates: dispatch-gates --commands (merge base 3b4f0b98): 39 families, all run, each exit captured before any pipe, all exit 0. check:type-check-debt first answered exit 3 (its closure build queued behind the suite above and never got the lock: not measured), then exit 0 under the lock (0 raw tsc error(s) total, none above its recorded number). dispatch-gates --ran: 39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero …).

Read first

  1. ui/packages/app-shell/src/sameServerFetch.bearer.ratchet.test.ts: the detector and the ALLOWED rows (each reason is a claim about a call left bare).
  2. ui/packages/app-shell/src/layout/ContextSelectors.tsx: the one conversion with sameOriginOnly, because its URL is author-written.
  3. ui/packages/app-shell/src/console/marketplace/marketplaceApi.ts: which calls moved onto serverFetch and which stay bare because they may target the cloud origin.

Two-minute check: cd ui && pnpm exec vitest run packages/app-shell/src/sameServerFetch.bearer.ratchet.test.ts packages/app-shell/src/views/studio-design/packages-io.bearerSession.test.ts, expect Test Files 2 passed (2).

Round 2: main merged at 93bd459, re-measured at 4a990ef
  • feat(studio): a permission set opens full-screen at its metadata address; the sharing overview gets its own route #37089 landed on main after round 1 and left this PR conflicting in StudioDesignSurface.notFound-26708 and StudioDesignSurface.readOnlyPosture-12453: both sides add the same import '@object-ui/plugin-detail'; with a different comment. The merge (48321c62) keeps one import with main's comment, so against main those two files differ only by round 0's doubles.
  • Main's ten new commits add no credentials: 'include' line under ui/packages/app-shell/src or ui/apps/console/src, and their one new hand-rolled Response double already carries headers: new Headers().
  • The two changesets (4a990ef7) now name every converted door in user terms (flow clone, permission-set clone, page preview, the no-access state and the design-mode language list were missing) and claim only "the other same-server console requests", since the 21 listed calls stay cookie-only.

Readings at 4a990ef7, under the shared verify lock (packages/spec moved on main: the seven @objectstack packages Test UI builds were rebuilt first, and pnpm --filter @objectstack/spec check:generated reads All 14 generated artifacts are up to date):

the ratchet, the bearer-session pin, the 5 test files edited in round 1, every existing test file the merge touched
in the two trees, and the suites named for each source file it touched:
  Test Files  311 passed (311) · Tests  2133 passed (2133)

check:test-source-alias exit 0. @object-ui/app-shell type-check through turbo: Tasks: 69 successful, 69 total. dispatch-gates --commands (merge base 93bd4595): the same 39 families, all run, each exit captured before any pipe, all exit 0 (check:type-check-debt: 0 raw tsc error(s) total, none above its recorded number; the ui scripts/ suite Test Files 172 passed | 2 skipped (174)). dispatch-gates --ran: 39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero …). The whole app-shell and console suites were not re-run this round (NOT MEASURED, reason: about 70 minutes of shared lock for a merge that changed no source line of this PR); Test UI runs the affected set on this PR.


Generated by Claude Code

…rites through the authenticated fetch (WIP)

Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D
Co-authored-by: Claude <noreply@anthropic.com>
… fetch ratchet; changesets (WIP)

Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D
Co-authored-by: Claude <noreply@anthropic.com>
…ticated fetch; the ratchet reads 'include' as const (WIP)

Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D
Co-authored-by: Claude <noreply@anthropic.com>
… fetch reads them (WIP, shard 1 of 6)

Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D
Co-authored-by: Claude <noreply@anthropic.com>
…stub, clear of a sibling PR's lines

Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D
Co-authored-by: Claude <noreply@anthropic.com>
…ers read off a Headers, the record-lock read)

Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D
Co-authored-by: Claude <noreply@anthropic.com>
…ouble gains headers in its one stub

Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D
Co-authored-by: Claude <noreply@anthropic.com>
…gin-detail load at collection (check:test-source-alias)

Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D
Co-authored-by: Claude <noreply@anthropic.com>
…alette's plugin-detail load at collection (check:test-source-alias)

Claude-Session: https://claude.ai/code/session_01QSeKYnV6DdKeTL414FFGnp
Co-authored-by: Claude <noreply@anthropic.com>
…converted authenticated read (headers)

The package list now goes through createAuthenticatedFetch, which reads the
response's set-auth-token header; the double carried none, so the read threw
and the palette drew no Packages group.

Claude-Session: https://claude.ai/code/session_01QSeKYnV6DdKeTL414FFGnp
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

Final head for L1 (fix round 1, cloud session session_01QSeKYnV6DdKeTL414FFGnp) · area a4-U · 2026-11-25T04:36Z
Head-sha: e0555965eb88dc705cd855f39fd804a2e03ff2ba

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head e0555965eb88dc705cd855f39fd804a2e03ff2ba · 2026-11-25T04:44Z

  • Shape (l1-face.mjs --pr 37185, exit 0, clean):
    • open, draft, base main;
    • first line Fixes #37080, and no keyword binds another card;
    • no content/docs/releases/ path, and no +0/-0 file.
  • Size: +1106/-290 = 1,396 lines in 161 files. That is under 3,000, so it is not Tier H by size. The tier is L,
    per the claim correction.
  • Governed paths: none. No .github/workflows, .claude, skills/, docs/adr or AGENTS.md.
  • Surface:
    • everything is under ui/packages/app-shell/src, ui/apps/console/src and .changeset/;
    • the claim's three fenced files (AiChatPage.tsx, RecordDetailView.tsx, useConsoleActionRuntime.tsx) are
      not edited.
  • Done-when 1 (same-server /api/ calls go through createAuthenticatedFetch, built per call, with
    credentials: 'include' kept):
    • read in the source diff: 64 calls in 39 files, each init unchanged;
    • no new helper, and no export line touched.
    • Red on revert:
      • the ratchet flags any reverted direct call, ?? fallback or marketplace serverFetch call;
      • packages-io.bearerSession.test.ts pins the measured readPackagesPayload under a bearer-only server, with a
        cookie-only control;
      • the round-0 ablation in the PR body shows both red.
    • One exception: N1.
  • Done-when 2 (one enumeration pin):
    • sameServerFetch.bearer.ratchet.test.ts is a test, not a CI gate, as the claim says;
    • it is parsed by the TS parser over both trees and is shrink-only;
    • it has an exactness case and a 13-case detector battery.
    • The allow-list is 21 calls in 15 files, read as stated. No verdict on any row; it stays as it is.
  • Test doubles:
    • I spot-read the moved doubles: headers: new Headers(), re-pointed auth mocks, and the reads switched to
      Headers. No assertion is weakened.
    • Round 1 is test-side only: 4 module-top @object-ui/plugin-detail imports and the headers on the
      surfaceScope-36900 double.
  • i18n vs @object-ui/i18n@18.6.0:
    • the PR diff has 0 paths under ui/packages/i18n, and 0 changed t( / tFormat( lines;
    • no released key is removed or renamed.
  • Published exports and types:
    • @object-ui/console (published) changes transport only, in 3 files;
    • @object-ui/app-shell is private;
    • no barrel or packages/spec change, so no contract face.
  • Declarations:
    • Clause-②: no and Metadata-protocol: none are correct, in the PR body and both changeset bodies;
    • Skills-docs is not owed.
  • Changesets:
    • one per moved package: console patch and app-shell patch;
    • I checked them sentence by sentence against the diff;
    • the titles are in user terms.
    • Nits: N3.
  • 维护者速读: 4 Chinese business lines with no code names. Each claim matches the diff: the package list, chat
    lists, suggested bindings, commit history and draft panel; cookie sessions unchanged; server unchanged; no
    maintainer action.
  • Check-runs at head:
    • 55 in all: 40 success, 15 skipped (expected), 0 failed, 0 pending;
    • Lint & Repo Gates, TypeScript Type Check, Type Check UI, Test UI (aggregate and 9 planned shards), Build & E2E UI
      and Live E2E UI all succeeded.
  • K = 10: merge base 3b4f0b98, origin/main 93bd4595.
  • Overlap (git merge-tree against each head):
  • S1 (should-fix) — the PR is mergeable_state: dirty against current main (feat(studio): a permission set opens full-screen at its metadata address; the sharing overview gets its own route #37089 landed after the round-1 merge).
    • Fix in a patch round: merge origin/main and keep one comment in the two conflicting test headers.
    • Main's other 9 commits since 3b4f0b98 add no credentials: 'include' call and no header-less double in the
      two trees, so I expect a comment-only merge.
    • Re-read the merge commit only, and check the check-runs at the new head before ready or queue.
  • N1 — the ratchet does not follow the flowDraftChecks.ts alias.
    • const doFetch = opts.fetchImpl ?? createAuthenticatedFetch() is followed by a doFetch(…) call, and the
      ratchet does not see through that alias.
    • DraftChangesPanel.flowChecks-34818 now reads through new Headers(…), so it is green either way.
    • That one conversion is therefore not red on revert. The card's enumerated spelling (an inline
      fetch('/api/…', {credentials})) is still covered.
  • N2 — feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 adds PackageCustomizationsPanel.test.tsx, which doubles the customizations read with a header-less
    Response.
  • N3 — the changeset wording.
    • The app-shell body's list omits a few converted doors: flow clone, permission-set clone, page preview, the
      no-access state and the design-mode locale list.
    • "as every other console request does" is slightly broad, since 21 listed calls stay bare by design.
    • The body also leans on implementation names. It is not wrong; tighten it if a round is open anyway.
  • N4 — the AiChatPage.tsx row's reason ("an open pull request edits this file") is stale.

…arer-only-shell-fetch

# Conflicts:
#	ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.notFound-26708.test.tsx
#	ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.readOnlyPosture-12453.test.tsx
…r in user terms, and claim only the same-server console requests

Claude-Session: https://claude.ai/code/session_01QSeKYnV6DdKeTL414FFGnp
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

Final head for the delta read (patch round 2, cloud session session_01QSeKYnV6DdKeTL414FFGnp) · area a4-U · 2026-11-25T05:42Z
Head-sha: 4a990ef7e17c98c011b6a795645c6dc7e89e3bfb

  • S1 (from ACCEPT 7153130491): origin/main 93bd459 merged as 48321c62, and mergeable_state is now clean.
  • N3: both changesets rewritten in user terms.
    • The app-shell list names flow clone, permission-set clone, page preview, the no-access state and the design-mode language list.
    • The over-broad claim now reads "the other same-server console requests", with a line that a few requests stay cookie-only.
  • Not touched: the allow-list and every row reason (including action-preview and AiChatPage), and the flowDraftChecks alias (N1). N1 and N4 go on a follow-up card after landing.
  • Readings at this head, from the dev:
    • ratchet, measured pin, round-1 files and every file the merge touched: 311 files, 2133 tests passed;
    • app-shell type-check: 69/69;
    • ui scripts/: 5130 tests passed;
    • spec check:generated up to date;
    • 39 gate families, all exit 0.
      The whole app-shell + console suite was not re-run locally; CI's Test UI covers it and is green.
  • Check-runs at this head: 41 success, 17 skipped. One Check Changeset run was cancelled, superseded by a later run of the same check that succeeded (138999284127). 0 failing or pending.
  • Handed to the seat session for the delta read. The zone lands it after that.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 4a990ef7e17c98c011b6a795645c6dc7e89e3bfb · 2026-11-25T05:43Z

Delta L1 over 7153130491 at e0555965, requested in zone a4-U's note 7154071424.

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

Landing · area a4-U · 2026-11-25T05:45Z · head 4a990ef7e17c98c011b6a795645c6dc7e89e3bfb

reading value
L1 delta ACCEPT 7154089943 (seat repo:objectstack#4) on this head, over ACCEPT 7153130491; no L2 owed
check-governed-merges.mjs --pr 37185 NOT governed · 1,399 changed lines ≤ 3000
overlap-check.mjs merges cleanly with origin/main. Textual overlaps remain with open Studio PRs (#37166, #37168, #37169). Per the seat's order, the first ready lands first, and those resolve when they merge main. a4-S is notified, and N2 (PackageCustomizationsPanel.test.tsx headers) is with them.
check-runs at this head 41 success, 17 expected skip, 0 failed, 0 pending (one Check Changeset run cancelled and superseded by a success)
K 7 (under 15), so no merge of main first

State change: ready for review + auto-merge armed; the queue lands it. On MERGED the card #37080 closes through Fixes #37080. Then this zone files the "review follow-ups of PR #37185" card for N1 and N4, and archives the card's cloud session.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 25, 2026 05:45
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit ad604c1 Nov 25, 2026
59 of 60 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-37080-bearer-only-shell-fetch branch November 25, 2026 06:07
os-justin pushed a commit that referenced this pull request Nov 25, 2026
…llscreen

Two conflicts, both a collection-time comment beside an import both sides
kept (entryReadsOnce-11797, itemDraftLine-12725): main's comment taken.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYoFqGdRM9Qmg7M2o2B
os-justin pushed a commit that referenced this pull request Nov 25, 2026
…h beside the flow's ⋯ menu)

Claude-Session: https://claude.ai/code/session_01QSeKYnHH41MS5hWVGPia4F
Co-authored-by: Claude <noreply@anthropic.com>
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