Skip to content

Console: a page's lookup targets are asked one name at a time, and a target the host does not register answers 404 #34188

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: meta/object 404 lookup target, sys_business_unit 404 control plane, readPageObjectScope names-only. Related, closed: #33343 item 2 (PR #33499 made lookupTargetNames skip hidden: true fields for a member's record page). This card is the other half: a visible lookup whose target the host does not register at all, for every caller, admin included.
Consumer: objectstack-ai/cloud#4300 (Blocked-by this card; closes on a pin bump and a re-measure).

维护者速读

What happens

The control plane's Members page (page/team, which binds sys_member and sys_invitation) asks GET /api/v1/meta/object/sys_business_unit and is answered 404; the control plane registers no business units. Measured as platform admin on cloud main 7317e42 with the framework at b914e72 (18.5.0).

  • Target source: sys_invitation.business_unit_id (packages/platform-objects/src/identity/sys-invitation.object.ts:434), a visible lookup.
  • Caller: ui/packages/app-shell/src/console/appObjectScope.ts:292 (readPageObjectScope adds each bound object's lookup targets). In an app with no _packageId the names-only scope asks each name with its own request; the package arm uses the batch GET /meta/object?names= that leaves an absent name out (console(home): fold the roster gate's by-name object reads into one ?names= request (#29236 ruling A follow-up) #29444). The console has already read GET /api/v1/meta/object in the same load.
  • Same class, to cover in the same change: the staging note on objectstack-ai/cloud#4300, GET /api/v1/meta/object/sys_approval_request 404 on a Free environment opening HotCRM pages (not re-measured).

Change

  1. A lookup target the host does not serve is not asked by name: the names-only scope uses the batch read, or filters targets by the served object list.
  2. Done when a test pins that a page bound to an object with a lookup to an unregistered object makes no per-name definition request for it, and a registered target still resolves.

Seam: spec:sys_invitation.business_unit_id → renderer:appObjectScope readPageObjectScope.

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:17Z

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

    A page asks for its lookup targets one name at a time, and a target the host does not register answers 404 (e.g. sys_business_unit on the control plane). That is extra round trips plus visible 404s. One of three cloud#4300 blockers, 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:22Z
    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:22Z)
    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": 34188,
      "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:09Z.


    Generated by Claude Code

  7. 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