Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(app-shell): retire DEFAULT_UPGRADE_URL, so no server upgrade URL means no upgrade CTA - #10517

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-10437-retire-default-upgrade-url
Sep 25, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-10437-retire-default-upgrade-url

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #10437
Clause-②: no

What changed

DEFAULT_UPGRADE_URL ('/settings/billing') is deleted from packages/app-shell/src/environment/entitlements.ts, along with all five places that read it. The control plane names the upgrade destination:

  • entitlementDialogFromError (the 403 path): when error.details.upgrade_url is present, the "Upgrade plan" CTA links to it verbatim. When it is absent or empty, the spec carries no cta, and the dialog still explains the gate. The same function already handled contact_url this way.
  • upgradeDialogSpec (the proactive prompt): when state.upgradeUrl is present, the prompt gets a CTA. When it is absent, the prompt has no cta.
  • useEnvironmentEntitlements: the summary's upgradeUrl passes through verbatim, like its sibling contactSalesUrl. The row-derived and unknown states carry no URL. EnvironmentEntitlementsState.upgradeUrl becomes optional.
  • EnvironmentEntitlementDialog: no code change. It already renders the CTA only when spec.cta exists. Its header comment cited /settings/billing as a URL that "always lands on the real page". That sentence now states the rule: no URL, no CTA.

This follows objectui#7273, which removed the tenant Console's hard-coded upgrade fallback so that "no upstream value ⇒ no link at all" (the onUpgrade guard in AiChatPage and the AI usage ring's showCta). The PR introduces no new pattern and no new i18n keys. DEFAULT_UPGRADE_URL was not re-exported from the package entry, so the published exports surface does not move. Tree-wide git grep DEFAULT_UPGRADE_URL now returns 0 hits (control: decideEnvironmentCta hits in 3 files).

Why the path was dead

The CTA is a full-page anchor resolved against apiBase, the control-plane origin. The Console declares settings only as a child route of /organizations/:slug (the DefaultSettingsPage route in apps/console/src/App.tsx). The control plane mounts its console under /_console. No router serves /settings/billing.

Triage guard: what the control plane sends (measured, with a reading gap)

Triage asked for a check of what cloud supplies before the fallback is removed. These sources could be read:

  • objectstack-ai/cloud is unreadable from this session. GET /repos/objectstack-ai/cloud/issues/1869 answers 403: "GitHub access to this repository is not enabled for this session". The emitter of upgrade_url / upgradeUrl on the entitlement surfaces could not be read at its source. This is a declared reading gap.
  • @objectstack/spec declares neither key anywhere. objectstack origin/main fa00ebf packages/spec has 0 hits (control: ApiErrorSchema hits in the same tree). @objectstack/spec@17.4.0 also has 0 hits; that is npm latest and the version this repo installs (control: ApiErrorSchema hits in its dist). The entitlement wire shape is owned by cloud, and there is no spec declaration to align to.
  • objectstack's RuntimeConfigPlugin (packages/cloud-connection) states the same contract. For its adjacent upgradeUrl key on GET /api/v1/runtime/config, it says the key is absent by default and that "the Console reads 'no key' as 'no link'". It also names a relative path such as /settings/billing as "the control plane's own current upgrade_url dialect". That is second-hand evidence that the cloud emitter currently sends a value on the 403 path.
  • This repo's own fixtures assume the server sends the URL. useConsoleActionRuntime.test.tsx models the 403 as details: { upgrade_url: '/settings/billing', plan: 'free' }.

This does not swap a tolerant default for a hard failure. When the server omits the URL, the dialog still opens with its title and body, and only the link is withheld. Before this change, that link was a full-page navigation to a path no router serves. When the server does send a URL, behaviour is unchanged; the control pins below prove this on the base.

Triage's p2 question is NOT MEASURED. Whether real hosts hit the default (a cloud summary or 403 without a URL) is a fact about the cloud emitter, which cannot be read here. One structural reading does hold. The row-derived and unknown states never reach the upgrade prompt: decideEnvironmentCta returns upgrade_for_development only when canCreateDevelopmentEnv === false, and only the summary sets that. So the hook's three reads of the default were dead for the dialog. The default could reach a user only through a summary or a 403 that carried no URL.

Tests: red on the base, green on the head

New pins, all in packages/app-shell/src/environment/__tests__/:

  • entitlements.test.ts, block no server upgrade_url ⇒ no upgrade CTA (objectui#10437): covers DEV_ENV_PLAN_LOCKED and DEV_ENV_LIMIT without a URL, and an empty-string URL. The control is a server URL becoming the CTA verbatim. Under upgradeDialogSpec: one pin withholds the CTA with no upgradeUrl, one control passes a summary URL through, and one parity pin checks the no-URL case.
  • useEnvironmentEntitlements.test.tsx, block no synthesized upgrade URL (objectui#10437): a summary without a URL, the derived state and the unknown state each carry no URL. The derived and unknown pins assert that the key is ABSENT. The control is a summary URL passing through verbatim.
  • EnvironmentEntitlementDialog.test.tsx, block no server URL, no upgrade CTA (objectui#10437): this block goes through the real builders into the real dialog. A 403 without a URL renders no anchor, and neither does the proactive prompt from a state without a URL. The control is a server URL rendering an anchor to exactly that URL.

The control pins use a server URL that deliberately differs from the retired default, so a CTA that carries it can only have come from the server.

Red leg. The implementation was committed first. Then the three implementation files were checked out at base 660d31185, and the on-disk blob hashes were confirmed equal to base (DEFAULT_UPGRADE_URL counted 3 times in entitlements.ts). The new tests were kept. The run was under a trap restore. vitest run of the three test files gave Test Files 3 failed (3), Tests 11 failed | 34 passed (45). The 11 failures are exactly the no-URL pins, and each failed on the retired default:

  • expected { label: 'Upgrade plan', …(1) } to be undefined, where the received value carries "url": "/settings/billing"
  • the anchor href="/settings/billing", which was expected to be null
  • the hook's '/settings/billing', which was expected to be undefined, or its upgradeUrl key being present

The controls passed on the base. Restore was git checkout HEAD -- …. After it, git diff HEAD was empty and all three blob hashes equalled HEAD's.

Green. vitest run packages/app-shell/src/environment/ packages/app-shell/src/hooks/__tests__/useConsoleActionRuntime.test.tsx gave Test Files 7 passed (7), Tests 117 passed (117).

Fixture triage.

  • entitlements.test.ts: two strictness pins proved that a sibling key is ignored by asserting cta.url === DEFAULT_UPGRADE_URL. They now assert that cta is undefined. That is stronger: reading a sibling upgrade_url would now produce a CTA and turn them red. The old pin "falls back to a default upgrade_url when the server omits one" is replaced by the no-URL block. The localization pin asserts the CTA label, so it now sends a server upgrade_url.
  • EnvironmentListToolbar.test.tsx: its UNRESOLVED fixture mirrors the hook's unknown state, which no longer carries a URL, so the fixture's upgradeUrl is dropped. This file is next to the claimed ones and is declared here: one line changed, no assertion changed.
  • Other fixtures that pass upgradeUrl: '/settings/billing' model a server-supplied value and still do.

Gates, all at head 6bbeebfc4

  • App-shell tests. pnpm exec vitest run packages/app-shell/ gave Test Files 1 failed | 783 passed | 1 skipped (785), Tests 1 failed | 7748 passed | 9 skipped (7758). The one failure is outside this diff; see Acceptance notes.
  • Type check. pnpm --filter @object-ui/app-shell type-check exited 0, and the script name type-check was echoed. It ran after the dependency closure was built with pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build (exit 0). A --listFiles run of tsconfig.test.json lists all six environment/__tests__ files.
  • Changeset presence. node scripts/check-changeset-presence.mjs exited 0. It found 7 source files of 1 released package changed and 1 changeset declared: .changeset/10437-retire-default-upgrade-url.md ('@object-ui/app-shell': patch).
  • Line citations. pnpm check:new-line-citations printed VERDICT new-cross-file-line-citations: 0 new citation(s) and exited 0.
  • Control bytes. pnpm check:control-bytes printed OK and exited 0.
  • Other lock-free gates, each exit 0: pnpm changeset:check, check:changeset-claims, check:pending-changeset-literals, check:test-path-roots, check:i18n-keys, check:esm-specifiers, check:self-import, check:unreferenced-sources, check:handler-key-reads, check:phantom-deps, node scripts/check-vi-mock-override-shape.mjs and node scripts/markdown-test-inputs.mjs --changed.
  • Doc and README gates. None were run, because the diff touches no .md or docs file other than the changeset, and no export.

Lint, narrowed to the 7 changed .ts/.tsx files and declared. The narrowing rests on three pieces of evidence:

  1. The population comes from eslint itself: eslint --print-config resolves 116 to 119 rules for each file, so all 7 are in scope and none is ignored.
  2. --format json reports 7 files, 0 errors and 15 warnings. Every warning is on a line this diff does not add (no-explicit-any, set-state-in-effect, only-export-components). The added lines contain no any and no setState.
  3. Type-aware linting is not enabled: parserOptions.project and projectService are absent in every file's resolved config, and no eslint-rules/ rule reads the filesystem. So this diff cannot move the verdict on any untouched file.

The repo-wide pnpm lint is left to CI.

Acceptance notes

  • An unrelated test failed once in the full app-shell run. packages/app-shell/src/console/__tests__/AppContent.inaccessibleAppStrand.test.tsx, test "bounces to the DECLARED landing where the deployment declares one (objectui#7373)", was stopped by the network-escape guard: it reached a real socket at http://localhost:3000/api/v1/meta (plus /meta/package and /meta/diagnostics). The same file rerun alone at the same head gave Tests 6 passed (6). This diff does not touch that file or any metadata fetch path. It is recorded in the report as a candidate finding; the seat decides whether to file it.
  • The cloud half is independent and is not addressed here. objectstack-ai/cloud#1869 (the emitter's UPGRADE_URL literal) remains open; the card declares the two halves land in either order.

Generated by Claude Code

…ns no upgrade CTA

The entitlement dialog filled a missing `upgrade_url` (403 details) or
`upgradeUrl` (entitlement summary) with a client-side `/settings/billing`,
a path no router serves. The destination is the control plane's to name:
when it sends one the CTA links to it verbatim, when it sends none the
dialog explains the gate and offers no link. The entitlement state no
longer carries a synthesized URL; the row-derived and unknown states
have none.

Claude-Session: https://claude.ai/code/session_014mXUNuFomfj24w7s1pZzhN
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3044.5 KB 3104.5 KB
Main entry chunk (gzip) 147.8 KB 350 KB
Entry file index-0DpY9H6Y.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.68KB 6.20KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.52KB 3.45KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.13KB 7.95KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 544.62KB 130.17KB
core (index.js) 9.22KB 3.71KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 223.86KB 62.25KB
fields (index.js) 256.68KB 65.01KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.28KB 11.09KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.01KB 3.93KB
plugin-calendar (index.js) 51.22KB 14.56KB
plugin-charts (index.js) 74.95KB 20.88KB
plugin-chatbot (index.js) 198.36KB 47.20KB
plugin-dashboard (index.js) 133.59KB 35.39KB
plugin-designer (index.js) 216.25KB 44.39KB
plugin-detail (index.js) 232.25KB 61.40KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 146.50KB 37.51KB
plugin-gantt (index.js) 168.43KB 41.50KB
plugin-grid (index.js) 215.49KB 58.91KB
plugin-kanban (index.js) 49.30KB 15.39KB
plugin-list (index.js) 114.48KB 28.29KB
plugin-map (index.js) 21.83KB 7.07KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.55KB 11.99KB
plugin-timeline (index.js) 30.64KB 8.94KB
plugin-tree (index.js) 10.52KB 3.69KB
plugin-view (index.js) 88.00KB 21.97KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 114.58KB 37.60KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.03KB 1.86KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.78KB 2.56KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 18.27KB 6.20KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 17.15KB 6.32KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 6bbeebfc43ebe96ae11baf25c304907a03dfc3f9

① Derived judgments

  • Branch state. git rev-parse refs/review/pr-10517 = 6bbeebfc4 (matches). Merge-base with refs/review/main = 660d31185. 8 files, +202/−36, single commit.
  • Reads gone. git grep DEFAULT_UPGRADE_URL refs/review/pr-10517 = 0 hits; on refs/review/pr-10517~1 = 10 lines in 3 files (decl entitlements.ts:48; reads :118, :243; hook :25 import, :93, :114, :122; test :14, :100, :143). Lit control decideEnvironmentCta = 3 files at head. /settings/billing at head survives only in test fixtures modelling a server-sent value (EnvironmentListToolbar{,.deepLinkArming,.deepLinkOverflow}.test.tsx, entitlements.test.ts, EnvironmentEntitlementDialog.test.tsx resolveCtaHref pins, useConsoleActionRuntime.test.tsx:233,272), the changeset, and CHANGELOG.md:4624 (history). Non-test grep of upgradeUrl hits only environment/entitlements.ts, environment/useEnvironmentEntitlements.ts and the changeset: nothing else synthesizes the path.
  • Triage guard, what could be read. objectstack origin/main 226e00c0: packages/cloud-connection/src/runtime-config-plugin.ts:23-45 states the runtime-config upgradeUrl is absent by default, rendered "only when the key is present", and calls a relative path "the control plane's own current upgrade_url dialect" (refused there). packages/spec = 0 hits for upgrade_url|upgradeUrl (control ApiErrorSchema = 25 files). npm @objectstack/spec@17.4.0 (latest, and the version pnpm-lock.yaml:4213 installs) dist = 0 hits (control 16 files). The card body (cloud seat, cloud main @ 99e9c40f) says the emitter carries an UPGRADE_URL literal, so the 403 path most likely always sends a value. objectstack-ai/cloud is 403 here; the PR body declares that gap in its own words. Summary-endpoint behaviour (data.upgradeUrl) stays unmeasured on every readable source.
  • Not a hard failure. EnvironmentEntitlementDialog.tsx:86-101 renders title and message unconditionally and the CTA only under spec?.cta &&; the new dialog pins go through the real builders and assert title text present plus queryByRole('link') null.
  • Router. apps/console/src/App.tsx:345 /organizations/:slug with :353 child settings; no top-level /settings; :419 * redirects to /. The control plane's own router could not be read; that half rests on the card's premise and objectui#7273's body.
  • p2 question. PR body: "NOT MEASURED", with the structural reading that derived/unknown states never reach the prompt. No note was written on the card; triage asked for one only if the answer was p2, so p3 stands. Non-blocking.
  • Shape. Mirrors contact_url exactly: entitlements.ts:121 vs :122 use the same typeof === 'string' && truthy ? value : '', and :140-142 vs :133-135 the same x ? {label,url} : undefined; upgradeDialogSpec :249-251 identical. objectui#7273's body: "render no link at all". No new pattern, no new i18n keys.
  • Derived/unknown never reach the prompt. decideEnvironmentCta returns upgrade_for_development only on canCreateDevelopmentEnv === false; hook's derived and unknown branches set it undefined; EnvironmentListToolbar.tsx:174 and :199/:220 call upgradeDialogSpec only inside ctaKind === 'upgrade_for_development'. True.
  • Pins. Static reasoning on base source: no-URL 403 yields cta.url '/settings/billing' so toBeUndefined is red; empty-string pin red ('' ? … : DEFAULT); hook 'upgradeUrl' in state red (key present with DEFAULT); summary-without-URL red. Green at head by construction and CI Test shards 1-8 success. Control URL https://cloud.example.com/_console/apps/cloud_control/page/pricing differs from the retired default and, with apiBase="", renders href verbatim: real. The two strictness pins moved from cta.url === DEFAULT to cta undefined, which is stronger (a sibling upgrade_url: '/sibling' read would now produce a CTA). EnvironmentListToolbar.test.tsx UNRESOLVED: one line, used only at :123, whose assertions are label, skeleton and upgrade-button absence; no assertion weakened. Red-leg counts not re-run (order forbids); taken as the implementer's words.
  • Non-regression note. The summary path passes data.upgradeUrl through with no typeof guard, unlike the 403 path; base did data.upgradeUrl || DEFAULT, equally unguarded, and contactSalesUrl matches. Pre-existing.

② Semver level

  • Source head packages/app-shell/src/index.ts (469 lines): 0 hits for environment|entitlement|EnvironmentEntitlement|useEnvironmentEntitlements; no export *. It exports ObjectView (:209), which imports the hook internally; dist/views/ObjectView.d.ts has 0 Entitlement mentions.
  • Published @object-ui/app-shell@17.6.0 (npm latest, npm pack): exports is . and ./styles.css only, no wildcard, so dist/environment/entitlements.d.ts (upgradeUrl: string at :107) is unreachable by specifier. dist/index.d.ts (77 lines): 0 hits for environment/entitlement. Across all dist .d.ts, EnvironmentEntitlementsState appears only in environment/{entitlements,EnvironmentListToolbar,useEnvironmentEntitlements}.d.ts; hooks/useConsoleActionRuntime.d.ts imports only EntitlementDialogSpec/State (unchanged; cta? already optional) and is not on the entry. Published src/ holds styles.css only.
  • Conclusion: the retyped member is not on the package face on source or dist, so a consumer cannot name it; patch with Clause-②: no holds. AGENTS.md §9 版本号策略 (lines 267-273) is not triggered.
  • Changeset prose: each sentence checks against the diff, EnvironmentEntitlementDialog.tsx, App.tsx:345/353 and objectui#7273. Two clauses ("the control plane mounts its console under /_console", "no router serves that path") state the cloud half as fact where the PR body declares it unread; minor, since the card and fix(app-shell,plugin-chatbot): repair the three breaks at the AI paywall moment #7273 carry that premise. The upgradeUrl?: string retype is absent from the changeset and present in the PR body; acceptable given it is off the face.

③ Boundary flags

Implemented-by: claude/issue-10437-retire-default-upgrade-url
Reviewed-by: session_014mXUNuFomfj24w7s1pZzhN

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review September 25, 2026 07:02
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit 2a62360 Sep 25, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-10437-retire-default-upgrade-url branch September 25, 2026 07:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

1 participant