Skip to content

Console: the home page asks the deployment notice on a host that does not compose it, and is answered 503 #34186

Closed

Description

@objectstack-fleet

repo:cloud#1 · os-warren · session_01JQwxbYK6SZCmyzbGnrvmkk

Filing gate: ① found while measuring objectstack-ai/cloud#4300 (hosted console calls to routes the host does not serve). Dedupe: deployment notice 503 hosted, not composed on this host, deployment/notice runtime config return no open card (closed #32643, #32798 are about the notice's content, not where it is asked).
Consumer: objectstack-ai/cloud#4300 (Blocked-by this card; closes on a pin bump and a re-measure).

维护者速读

  • 要做的:控制台只在宿主确实组装了「部署提示」时才去请求它。
  • 为什么:托管环境不组装这个提示(它讲的是自托管部署者自己磁盘上的数据库、密钥和环境变量),控制台首页每次加载对管理员请求两次,得到 503。
  • 需要你做的:无。

What happens

On a hosted ObjectOS environment the console home asks GET /api/settings/deployment/notice twice per load for an administrator and is answered 503 SERVICE_UNAVAILABLE ("not composed on this host"). Measured on cloud main 7317e42 with the framework at b914e72 (18.5.0), run-stack --with-ui --prod-like --seed, headless Chromium.

  • Caller: ui/packages/app-shell/src/console/deployment-notice/deploymentNotice.ts:92, from DeploymentNotice.tsx:96; the only gate is isAdmin.
  • Server: packages/services/service-settings/src/settings-routes.ts:483 answers 503 when opts.deploymentNotice is absent. SettingsServicePlugin wires it; a host that mounts the settings family itself (cloud's EnvSettingsRoutesPlugin) does not, by design.

Change

  1. GET /api/v1/runtime/config (or discovery) states whether the deployment notice is served, derived from the composition the way features.installLocal is derived from what is mounted.
  2. The console reads the notice only when it says so.
  3. Done when a test pins both arms: composed (the notice is read) and not composed (no request is made).

Seam: runtime:service-settings registerSettingsRoutes(deploymentNotice) → renderer:DeploymentNotice.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first-touch audit → domain:ui · p2 confirmed · pm:blocking · 2026-11-16T00:16Z

    ⛔ Not a claim. Requested by repo:cloud#1 (mailbox comment 6903784738).

    The console home asks for the deployment notice on a host that does not compose it, and the hosted console shows a 503 in its network log on every load. It is one of three hosted-console calls to routes the host does not serve (cloud#4300 is blocked on it). User-visible errors on every hosted home load, so p2. ui#1 is knocked.

  3. added
    pm:blocking
    on Nov 16, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Claim: PM loop round 11 · 2026-11-16T00:21Z
    Session: one card thread for the set #34186 + #34187 + #34188, opened under seat session_01ADHkmT2NE3iyG1o6TDg3sf. Its dev session is stamped on the PR.
    Account: os-steve
    Branch: the card thread's claude/project-thread-* branch, named on the PR
    Domain: domain:ui
    Seat: domain:ui#1
    File surface: ui/packages/app-shell/src/console/deployment-notice/**, ui/packages/app-shell/src/console/marketplace/MarketplacePage.tsx, ui/packages/app-shell/src/console/appObjectScope.ts, ui/packages/app-shell/src/runtime-config.ts (and the MetadataProvider module only if the batch names hand-off must open to the names-only arm); packages/services/service-settings/src/**, packages/cloud-connection/src/runtime-config-plugin.ts, the features block of packages/cli/src/commands/serve.ts; their tests; root .changeset/. packages/spec/** read-only.
    Container & model: M, mode:thread, model: default tier, effort: high
    Clause-②: yes for #34186 (new served key features.deploymentNotice, name ruled by the seat; declaration face, TIER_DEFAULT record at review). No for #34187 and #34188 (requests withheld, no surface added).
    Metadata-protocol: none
    Responsibility: the hosted console asks three routes its host does not serve (deployment notice 503, install-local 404, unregistered lookup target 404) | measured by repo:cloud#1 on cloud main 7317e42 with the framework at 18.5.0 | every hosted environment's console, and cloud#4300 (Blocked-by these cards)
    Thread-read: none
    Premise: each symptom measured first on main; root fixes a hosted host gets by bumping the framework, with no cloud-side change
    Serial constraints cleared: no other pm:dispatched domain:ui card and no open PR touches these files (PR heads read 2026-11-16T00:21Z)
    Scope: the set as triage asked (assist request on mailbox #33917, comment 6903847678). One PR: Fixes #34186, Fixes #34187, Fixes #34188; pins + CONTROLs + ablations per card. Order: /mnt/project-files/ui-seat1/standard-order.md + 34186-set-delta.md. Priority p2, pm:blocking.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmQYCGiBcbEeLv3QcCs
    os-dev-report

    {
      "issue": 34186,
      "status": "done",
      "branch": "claude/project-thread-5try4s",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34240",
      "session": "session_01ADHkmQYCGiBcbEeLv3QcCs",
      "premise_still_valid": true,
      "summary": "One PR fixes the set. #34186: SettingsServicePlugin registers its notice door as the kernel service `settings.deployment-notice` where it mounts the routes with it; RuntimeConfigPlugin serves `features.deploymentNotice` from that registration per request, after `...features`, so no host option can declare it. The CLI serve path uses the same plugin. The console parses it `!== false` (absent = true), and DeploymentNotice asks only when it is true, after isAdmin. #34187: the catalog side load asks listLocalInstalls() only when features.installLocal is true. #34188: in the names-only arm, lookup targets the route has not asked are first asked in ONE `meta/object?names=` batch read (the #29444 hand-off); only the served ones are then read by name. The package arm is unchanged. Premise correction: the card says the package arm batches, but measured it reads off-package targets BY NAME (existing pin 'CONTROL: the same lookups drawn ask every target by name'), so HotCRM's `sys_approval_request` (a packaged app) is most likely NOT covered.",
      "tests": "Reproduction on main = each ablation leg (fix reverted to main's code). Before → after: #34186 server: key absent → true with the door / false without (the hosted arm's notice route answers 503 to an admin, pinned); console: 1 notice request with deploymentNotice:false → 0. #34187: 1 GET install-local with installLocal:false → 0, catalog still drawn. #34188: object/sys_business_unit asked by name on the page and on the object route → 0 by-name, 1 batch `object?names=sys_business_unit,sys_user`. Ablations (scripts/ablation-replace.mjs under os-verify-lock, each mutation landed and restored, `git diff HEAD` empty): A1a server flag dropped → 3/3 red; A1b console gate dropped → 1 red / 17 green; A2 side load ungated → 1 red, CONTROL green; A3 presence read bypassed → 3 red (2 new pins + amended CONTROL), 9 green incl. the registered-target CONTROL. Runs: ui consumers 195 files, Tests 1653/1653, VERDICT command-exit 0; service-settings 75 files, 1477/1477; cloud-connection 83 files (the new pin re-run 3/3 after the admin-context fix); typecheck service-settings + cloud-connection exit 0; app-shell type-check not clean locally only because the @object-ui dists are unbuilt (TS2307; no diagnostic on a changed line).",
      "gates": "dispatch-gates --commands derived 78; each run on head f1521e97, recorded CMD :: exit N; --ran: 78 run, 0 NOT-MEASURED, all exit 0. The first round (earlier head) had check:test-source-alias exit 1 (fixed in f1521e97: module-top lint import in two AppContent harnesses), check-plugin-teardown-shape --self-test exit 3 (shallow clone; fixture sha fetched), check:dual-build-cjs-loads exit 3; all exit 0 in the final round. CI check-runs not yet read (draft, not waited on).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "6 — mcp__github__issue_read ×6 (reads only)",
      "api_writes": "5 — POST /repos/objectstack-ai/objectstack/pulls and POST /issues/34240/assignees (relay pr_create, one stroke); POST /issues/34186/comments, /issues/34187/comments, /issues/34188/comments (this report, post-stamped; one PR closes three cards, so one report per card)",
      "files_changed": "16 files, +619/−18: source 7 (+129/−9: runtime-config-plugin.ts, deployment-notice.ts, settings-service-plugin.ts, runtime-config.ts, DeploymentNotice.tsx, MarketplacePage.tsx, appObjectScope.ts); tests 8 (3 new pin files/describes + 5 forced harness edits); 1 changeset",
      "line_budget": "source +129/−9; no skills/** or governed path touched",
      "deviations": [
        "Pin assignment: the cards ask for review to be requested of os-steve; per os-dev rules pr_create assigns and requests nobody (the seat requests review after ACCEPT). os-steve was set as assignee only.",
        "Forced test edits: 5 harness getItems mocks taught `options.names` (named in the PR body); two AppContent harnesses gained `import '@objectstack/lint'` at module top for check:test-source-alias (the reach predates this PR).",
        "No change in packages/cli/src/commands/serve.ts: its serve path boots the same RuntimeConfigPlugin (Serve.RUNTIME_CONFIG_OPTIONS), so it serves the key without an edit."
      ],
      "open_questions": [
        {
          "question": "Extend the presence read to the package arm, so a lookup target a packaged app's package list does not hold (HotCRM's sys_approval_request on cloud#4300's staging note) is batch-probed before a by-name read?",
          "options": [
            "A: follow-up card for the package arm, same servedLookupTargets shape over the off-package names",
            "B: leave it; accept the 404 for packaged apps"
          ],
          "recommendation": "A, because it is the same class and the order kept this arm out of scope only by instruction; the cloud#4300 re-measure will likely still show the sys_approval_request 404."
        },
        {
          "question": "A bundle-held lookup target in a packageless app now costs one network `?names=` read before its bundle-answered by-name read. Should MetadataProvider's batch names scope answer bundle-held names from the bundle?",
          "options": [
            "A: follow-up in MetadataProvider's NAMES_BATCH_SCOPE read: skip names the app bundle holds",
            "B: accept one batch read per name set per session"
          ],
          "recommendation": "B for now, A only if a measured cold-load regression shows up: the batch entry is shared and asked once per name set."
        },
        {
          "question": "A page's `requiresObject` naming an object the host does not register is still read by name (gone_obj in the 29416 harness). Same class, different path; none of the three cards names it.",
          "options": [
            "A: file a sibling card",
            "B: drop"
          ],
          "recommendation": "A, a small card on the requiresObject path using the same presence read."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · reach: public door — a packaged app's page asks GET /api/v1/meta/object/<target> for an off-package lookup target the host does not register and gets 404 (appObjectScope package arm; existing pin 'CONTROL: the same lookups drawn ask every target by name') · dedupe words: package arm lookup target by name 404",
        "class: b · reach: public door — requiresObject naming an unregistered object is read by name and answers 404 (AppContent.packagelessReads-29416 harness, gone_obj) · dedupe words: requiresObject unregistered by-name 404"
      ]
    }

    Stamped 2026-11-16T02:08Z.


    Generated by Claude Code

  7. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Landed · #34186, #34187, #34188

    PR #34240 MERGED at 2026-11-16T03:35Z through the merge queue. It carried Fixes for all three cards, so the platform closed them. What it delivered:

    Follow-ups: the package-arm lookup targets and requiresObject are on #34244. The hosted re-measure for cloud#4300 happens on its pin bump.

    State change: pm:dispatched and the assignee are taken off the three closed cards in this stroke.

  8. removed
    pm:dispatched
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdomain:uipm:blockingpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions