Skip to content

fix(console): confirm the install-local door's unique-scope and access refusals, and the org card's - #39219

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-6gtzqr
Dec 3, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-6gtzqr

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread
repo:objectstack@os-bill · os-bill · session_01Utp6Cb2GKmDs8GGmGrdccJ

Fixes #39183

Clause-②: no
Metadata-protocol: none

维护者速读

What changes

The install-local door (packages/cloud-connection/src/marketplace-install-local-plugin.ts) stops an install 409 for three decisions, one at a time, in this order on main 6a3e3ac5:

  1. UNIQUE_SCOPE_CONFIRMATION_REQUIRED (:3600-3628, ADR-0120 D5e): details.findings[] each with id and describe; confirmed by confirmGlobalUniques, the listed ids (confirmWith.body). Confirming some ids still stops on the rest, so the console sends exactly the listed ones.
  2. ACCESS_UPGRADE_CONFIRMATION_REQUIRED (:5034-5065, ADR-0126 §6 wall 3): details.findings[].describe + details.findingSet; confirmed by confirmAccessUpgrade.
  3. SCHEMA_UPGRADE_CONFIRMATION_REQUIRED: confirmed by confirmSchemaUpgrade (Package upgrades with field changes still fail through the console's install-local door and the tenant-runtime install door (schema-upgrade confirmation family) #39149).

A confirmation is recorded by the door only when the install goes through, so each resend carries every confirmation sent before it.

  • New installConfirmations.ts. installConfirmRefusalOf(error) reads which family stopped the install and its findings with what confirms them (or refusal: null when the answer lists nothing confirmable); confirmationsWith(sent, refusal) adds that family's confirmation to the ones already sent (a re-refused family's token is replaced by the fresh one). The schema family delegates to schemaUpgradeRefusalOf.
  • New InstallConfirmFindings.tsx. The schema family renders the Package upgrades with field changes still fail through the console's install-local door and the tenant-runtime install door (schema-upgrade confirmation family) #39149 SchemaUpgradeFindings; uniques and access findings render one line each in the door's own describe sentence (what the CLI prints), under a refusal line, a heading and an intro.
  • marketplaceApi.ts. installLocal takes confirmAccessUpgrade and confirmGlobalUniques (all three overloads), each sent only when set.
  • MarketplacePackagePage.tsx. localSchemaRefusal becomes localConfirm: { packageId, pending, sent }. runInstallLocal sends confirmationsWith(sent, pending); on any of the three refusals the confirm in front of the local Install (install-preview-dialog) opens again with that refusal's findings and a family-specific button. A refusal with no findings says, in the console's words, that the install cannot be confirmed from the console. Opening the confirm from the page starts over.
  • MarketplacePage.tsx, catalog org card (scope comment 7361476765). doOrgInstall(pkg, confirmations) sends the confirmations on install-local; on any refusal a new org-install-confirm-dialog draws the findings and its button installs again with them confirmed; Cancel installs nothing. On a hosted environment the tenant-runtime door forwards only confirm_schema_upgrade (Package upgrades with field changes still fail through the console's install-local door and the tenant-runtime install door (schema-upgrade confirmation family) #39149), so the card confirms the schema family there; a uniques or access refusal on that branch keeps the door's message.
  • i18n. marketplace.install.uniqueScope.* and marketplace.install.accessUpgrade.* (heading, intro, refused, refusedUnreadable, confirm) and marketplace.org.confirmTitle, in all 11 marketplace locales; zh-Hant regenerated with gen:zh-hant.

Enumeration pin from the card: git grep -n "confirmAccessUpgrade\|confirmGlobalUniques\|ACCESS_UPGRADE_CONFIRMATION\|UNIQUE_SCOPE_CONFIRMATION" -- 'ui/**' ':!*test*' → 0 hits on main, 24 on this head.

Tests

ui/packages/app-shell/src/console/marketplace/__tests__/MarketplaceInstallConfirmFamilies-39183.test.tsx (8 new; real pages, real installLocal/installPackage, real runtime-config boot; only fetch and the org card's catalog lists stubbed):

  • Package page: uniques → access → schema, each drawn in turn, and the four requests' bodies pinned: {packageId}, +confirmGlobalUniques: [ids], +confirmAccessUpgrade, +confirmSchemaUpgrade, then success.
  • Package page: an access refusal answered again resends the fresh token, not the stale one.
  • Package page: Cancel installs nothing; the page's Install then starts over with no confirmation.
  • Package page: an access refusal with no findings says accessUpgrade.refusedUnreadable and opens no confirm.
  • Org card install-local: uniques then access confirmed in the card's confirm, the resend carrying both, then installed.
  • Org card install-local: Cancel installs nothing.
  • Org card hosted: a relayed schema refusal is confirmed, its token sent as confirm_schema_upgrade.
  • CONTROL org card hosted: an access refusal keeps the door's message and opens no confirm.
Local runs (head c22348d)
Ablations (committed first, mutated with `scripts/ablation-replace.mjs`, restored to the HEAD blob, `git diff HEAD` empty)
  • A1 package page sends no ...confirmations → 2 red (three-family chain, stale access token), 6 green.
  • A2 confirmationsWith drops earlier confirmations on access → 2 red (package-page chain, org-card chain), 6 green.
  • A3 org card hosted branch sends no confirmSchemaUpgrade → 1 red (hosted schema), 7 green.
  • A4 installLocal body without confirmGlobalUniques → 2 red (both chains), 6 green.
  • A5 org card confirms every family on the hosted branch → 1 red (CONTROL hosted access), 7 green.
Derived gates run locally (the rest to CI)
EXIT=0 :: node scripts/check-changeset-no-major.mjs --base origin/main
EXIT=0 :: node scripts/check-empty-changeset.mjs --base origin/main
EXIT=0 :: node scripts/check-closing-keyword-parity.mjs
EXIT=0 :: node scripts/check-issue-citations.mjs
EXIT=0 :: node scripts/check-comment-mask-adoption.mjs
EXIT=0 :: node scripts/check-comment-mask-corpus.mjs
EXIT=0 :: node scripts/check-sdui-manifest.mjs
EXIT=0 :: node scripts/docs-audit/check-affected-docs.mjs
EXIT=0 :: node scripts/check-adr-0087-registration.mjs --base origin/main

Changed lines: 982 (+950 / -32) vs the 3000 threshold: under.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6Cb2GKmDs8GGmGrdccJ

…s refusals, and the org card's

The install-local door stops an install for three decisions in turn
(unique scope, access upgrade, schema upgrade). The console confirmed only
the schema family, on the package page. Both install-local callers now
read all three refusals, draw each one's findings, and resend with every
confirmation given so far; the catalog org card gets the same confirm, and
on a hosted environment confirms the schema family through the
tenant-runtime door.

Claude-Session: https://claude.ai/code/session_01Utp6Cb2GKmDs8GGmGrdccJ
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 3, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

维护者速读

  • 改了什么 — 控制台本地安装遇到「唯一性范围」「访问权限升级」「字段变更」三类需确认的拒绝时,按服务端顺序逐一显示、确认后带上之前全部确认重发;目录页组织卡也有了同样的确认框(托管环境只能确认字段变更一类)。
  • 要你做什么 — 无,席位自行落地(非受管面)。
  • 范围外 — 无。
  • 席位意见 — ACCEPT。

席位核对

ACCEPT · head c22348d8ea624cd134ac5458a95db2dc6662336f · repo:objectstack@os-bill

  1. Shape: 18 files (982 lines) inside claim 7362853751 and scope note 7361476765; Clause-②: no (@object-ui/app-shell private; @object-ui/i18n adds strings only), Metadata-protocol: none.
  2. Premises measured: os-dev report 7363267980; the seat's L1 read each family's resend body against the door (marketplace-install-local-plugin.ts) and the CLI: unique scope sends the pending finding ids, access sends findingSet, schema its token; each resend carries every earlier confirmation, because the door records none until the install goes through.
  3. Gates: 60 check-runs: 45 success, 15 expected skips, 0 failed, 0 running; mergeable clean. No contract face, so no L2 is owed.
  4. Accepted deviations: nits: no org-card install-local schema-refusal test (the package page pins it through the same helpers); the refusal code is matched case-insensitively.
  5. Out of scope: none. Skills-docs: none.
  6. Landing: not governed; the seat lands it (ready + auto-merge).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

Landing · 2026-12-03T00:58Z · seat ACCEPT 7363806301 at head c22348d8ea624cd134ac5458a95db2dc6662336f; 45 success, 15 expected skips, 0 failed. Not governed, no contract face. Ready + auto-merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 3, 2026 00:59
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 9743edf Dec 3, 2026
61 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-6gtzqr branch December 3, 2026 01:52
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/l tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local package installs that need an access-upgrade or unique-scope confirmation fail in the console with no confirm path (install-local door)

2 participants