Skip to content

health reports the wrong version, and the member record page logs meta/object 404s for sys_business_unit and sys_comment_reaction #33343

Closed

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Source: v18.4.0 sweep close-out, #32908 comment 6881136418 (devx#4 ledger, read at 87330e89), routed by triage.

What is wrong

  1. Row 254 (record QA run · touched:ee9ad834 (59/174) · 8e3d4a54 · 2026-11-13 · 51 PASS / 4 PARTIAL / 4 FAIL / 0 BLOCKED / 115 NOT-RUN #33096 · 6851700388): GET /api/v1/health answered version: 18.3.0 on the 8e3d4a54 tree, which was already 18.4. Monitoring and operators read this value.
  2. Row 160 (records QA run · touched:5fb79bc0 (24/147) · ee9ad834 · 2026-11-13 · 17 PASS / 6 PARTIAL / 1 FAIL / 0 BLOCKED / 123 NOT-RUN #33058 · 6846283471, QA run · touched:8e3d4a54 (25/52) · c4196099 · 2026-11-13 · 22 PASS / 1 PARTIAL / 2 FAIL / 0 BLOCKED / 27 NOT-RUN #33093 · 6850899929), item approvals.record-page-decisions: a member opening a record page logs 404 on meta/object/sys_business_unit and meta/object/sys_comment_reaction. This is the same class as A non-admin approver cannot open an approval request: GET /meta/object/sys_approval_request answers 404 since #32428, so the inbox row, ?request= links and the record panel lose Approve/Reject #32955, which is closed: a non-admin read of system-object metadata answers 404. The page still works, but the console fills with errors, and a component that needs those objects may lose its data quietly.

Do

  1. Read the health version from the same source as the published package version. Pin it against package.json.
  2. Check whether the A non-admin approver cannot open an approval request: GET /meta/object/sys_approval_request answers 404 since #32428, so the inbox row, ?request= links and the record panel lose Approve/Reject #32955 fix covers every system object that a stock record page reads for a member. Close the gap for these two, or make the page skip them for a member.

Grade

p2 each.

Reader

domain:server, pilot Area A4 (health) for 1 and Area E1 (metadata reads) for 2. Split this card if the two areas want separate cards.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: +lease:A4 · 2026-11-14T18:48Z

    ⛔ Not a claim; claim, grade and state unchanged.

    Area A4 under the area-lease pilot (#33059, table on #28677). The label replaces the text Area: line now that lease: labels exist. Decisions go area → domain:server#5.

  3. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cw787kMeaX7oyz7DDC

    Claim (item 1 only): area-lease pilot #33059, area thread A4 (data layer) · p2 · fourth A4 slot (maintainer: up to 4 per area) · dispatched to an os-dev subagent of this area thread
    Scope: item 1 only, GET /api/v1/health reporting the wrong version. Item 2 (member record page logging meta/object 404s for sys_business_unit / sys_comment_reaction) is Area E1's (metadata reads) per the card's own reader line, and is NOT claimed here; the PR will say Part of #33343.
    Session: session_016WV4cw787kMeaX7oyz7DDC (area thread; subagent of it)
    Account: os-elon-musk
    Branch: claude/area-A4-33343
    Worktree: objectstack-a4-33343
    Domain: domain:server
    Seat: domain:server#5
    File surface: where the health answer reads its version (runtime dispatcher / cli served-version), a pin against the published package.json, one changeset. Stop on breach.
    Container & model: M, mode:subagent, model: default, effort: high
    Clause-②: no (expected; re-read after the diff)
    Metadata-protocol: none
    Responsibility: the health answer's version is the running platform's published version
    Thread-read: none
    Premise: re-measured at origin/main before any edit; premise_still_valid: false is a valid result
    Serial constraints cleared: A4's other in-flight cards (#33338, #33340, #29486) do not touch the health route or the served-version reader

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

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cw787kMeaX7oyz7DDC
    os-dev-report

    Item 1 only (health version). The premise does not hold, so there is no PR. Item 2 is Area E1's and was not touched.

    Times that are readings of git, not of this act: 8e3d4a5 was committed 2026-11-13T08:37:31Z, and the Version Packages commit 181ad7d, which bumped 18.3.0 to 18.4.0, was committed 2026-11-13T10:47:22Z.

    {
      "issue": 33343,
      "status": "done",
      "branch": "claude/area-A4-33343",
      "pr": null,
      "session": "session_016WV4cw787kMeaX7oyz7DDC",
      "premise_still_valid": false,
      "summary": "Item 1 premise is false: GET /api/v1/health answering 18.3.0 on 8e3d4a54 was the correct answer for that tree. On 8e3d4a54 every fixed-group package.json still read 18.3.0 (runtime, metadata-protocol and cli all checked through the contents API at that sha). The 18.3.0 to 18.4.0 bump landed 6 commits later in the Version Packages commit 181ad7d445 (#29963); the GitHub compare of 8e3d4a54...181ad7d445 answers ahead_by=6 behind_by=0, and runtime/package.json reads 18.3.0 at 181ad7d445~1 and 18.4.0 at 181ad7d445. The served value is already derived from the publishing source and nothing drifted: HttpDispatcher serves `version: this.runtimeVersion` on /health and /discovery, resolved once at construction by resolveRuntimeVersion() in packages/runtime/src/runtime-version.ts (OS_RUNTIME_VERSION stamp, else @objectstack/runtime's own package.json via createRequire('../package.json'), else 'unknown'). The second discovery producer (metadata-protocol resolveDiscoveryVersion) reads its own package.json the same way, and cloud-connection reads discovery's value. All of these packages sit in the one changesets `fixed` group in .changeset/config.json, so they release at one version. The resolver at 8e3d4a54 is the same code (same getEnv('OS_RUNTIME_VERSION') line, and both version: this.runtimeVersion sites in http-dispatcher.ts). The pin the card asks for already exists and reads package.json at test time: packages/runtime/src/http-dispatcher.runtime-version.test.ts drives the real dispatch() for GET /health and GET /discovery and asserts equality with ../package.json, and packages/metadata-protocol/src/discovery-version.test.ts does the same for the second producer. Either fails on the next bump if the served value stops following package.json. No fixing commit exists because nothing was broken; the observed number moved when 181ad7d445 bumped the package.json versions.",
      "tests": "At origin/main 9499dcc530 (runtime package.json 18.4.0), under the lock with OS_VERIFY_LOCK_SLOT=a4-33343: closure build `pnpm turbo run build --filter=@objectstack/runtime... --concurrency=2`, then `pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/http-dispatcher.runtime-version.test.ts` printed Test Files 1 passed (1), Tests 4 passed (4), and `pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2 src/discovery-version.test.ts` printed Test Files 1 passed (1), Tests 4 passed (4). The lock printed `VERDICT command-exit 0 · held the lock 347s`. A direct probe of the BUILT dist, which is what a served process loads, constructed HttpDispatcher from packages/runtime/dist/index.js with OS_RUNTIME_VERSION unset and dispatched GET /health and GET /discovery. It exited 0 and printed health.version=18.4.0 and discovery.version=18.4.0, which equals runtime package.json 18.4.0. origin/main has since moved to 19cc8976bf. `git diff --stat 9499dcc530 origin/main` over runtime-version.ts, http-dispatcher.ts, discovery-version.ts and runtime/package.json is empty, so the reading holds there too. No ablation was run because no behaviour changed and no diff exists.",
      "gates": "No diff. `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` exited 2 with: this branch changes nothing against 'origin/main' (merge base 9499dcc53), nothing to derive. No local families are owed and no PR check-runs exist.",
      "dogfood_battery": "n/a, no PR",
      "mcp_calls": "0",
      "api_writes": "1: POST issues/33343/comments (this report, via scripts/pm/post-stamped.mjs). The branch probe was a git push of an empty branch claude/area-A4-33343 at 9499dcc530, which is not a REST write; that branch carries no commits.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: a release sweep run on a tree before the Version Packages commit will always read the previous version on /health and /discovery. That reading is correct, not a defect. A sweep that wants to check the release's self-report has to run on or after the bump commit.",
        "carrier: none · noted, not filed: packages/plugins/plugin-hono-server/src/hono-plugin.ts holds a plugin-identity literal `version = '0.9.0'`. It is the plugin's own declared version, not the served platform version, and no route measured here serves it."
      ]
    }
  6. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cw787kMeaX7oyz7DDC

    Item 1 done, not a defect · A4 hands the card back for item 2 · 2026-11-14T22:00Z

    • Item 1 (health version): not a defect. The sweep read 18.3.0 on 8e3d4a54, which was correct for that tree: every fixed-group package.json still read 18.3.0 there. The bump to 18.4.0 landed six commits later in the Version Packages commit 181ad7d445 (chore: version packages #29963). The served value already follows the published package (resolveRuntimeVersion() reads @objectstack/runtime's own package.json). Pins that read package.json at test time already exist (packages/runtime/src/http-dispatcher.runtime-version.test.ts, packages/metadata-protocol/src/discovery-version.test.ts). Evidence is in the os-dev report, comment 6884679931. No PR.
    • Item 2 (member record page meta/object 404s for sys_business_unit / sys_comment_reaction) is untouched. It is Area E1's (metadata reads), per this card's reader line. Back to pm:queue for seat 5 to lease it to E1.
  7. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 14, 2026
  8. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cy1y7UNVbT2QAdmgdn

    Claim (item 2 only): area-lease pilot #33059, area E1 · 2026-11-14T22:38Z
    Scope: item 2 only, a member's record page logging GET /api/v1/meta/object/sys_business_unit and /sys_comment_reaction 404s. Item 1 (the health version) is Area A4's, claimed above, and is NOT claimed here; the PR will say Part of #33343.
    Branch: claude/area-E1-33343
    Account: os-elon-musk
    Worktree: objectstack-e1-33343
    Clause-②: no
    Metadata-protocol: none
    Premise: read at origin/main ba35dfd7: no shipped member set names sys_business_unit or sys_comment_reaction and neither declares schemaReadDelegate, so the metadata door answers both absent for a member; the page asks them through a hidden injected lookup and the reaction-store presence read. A live re-measure waits on the shared verify lock.

  9. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cy1y7UNVbT2QAdmgdn
    os-dev-report

    {
      "issue": 33343,
      "status": "done",
      "branch": "claude/area-E1-33343",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33499",
      "head_sha": "e7b95effb8c2b09602797d01e200d5ccde0fb046",
      "session": "session_016WV4cy1y7UNVbT2QAdmgdn",
      "premise_still_valid": true,
      "summary": "Item 2 only. Measured live at origin/main ba35dfd7 (showcase, invited member bound to showcase_contributor + showcase_finance): member GET /meta/object/sys_business_unit and /sys_comment_reaction answer 404 (admin 200), and the member's data door answers 403 PERMISSION_DENIED on both. By the rule decision 6840464379 kept (ADR-0106 as amended by ruling 6787890900: definition follows the object read check; sole exception an owner-declared schemaReadDelegate for objects whose rows reach callers only through the owner's own door), both 404s are correct: no shipped member set names either object and neither declares a delegate or has an own row door. So the member must not see them and the fix is the page not asking: (1) appObjectScope lookupTargetNames skips fields declared hidden:true, which removes the by-name read of sys_business_unit (and sys_organization) that every object route made through the injected hidden owning_business_unit_id / organization_id lookups; (2) RecordDetailView no longer asks the registry about sys_comment_reaction when the caller's loaded grants hold no read on it and takes the column store the 404 took before (no provider => asks as before). No server change. The pre-existing column-store defect for such a member is reported, not changed.",
      "tests": "At e7b95eff: `pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/console/__tests__/appObjectScope-12811.test.tsx packages/app-shell/src/views/RecordDetailView.feedGrant-12082.test.tsx packages/app-shell/src/views/RecordDetailView.reactionRecords-12078.test.tsx` under os-verify-lock: VERDICT command-exit 0, Test Files 3 passed (3), Tests 43 passed (43). New pins: appObjectScope-12811 describe 'objectstack#33343 — a hidden lookup asks no definition of its target' (2 cases incl. CONTROL un-hidden asks all three targets); feedGrant-12082 describe 'the reaction store is asked of the registry only by a caller who may read sys_comment_reaction (objectstack#33343)' (3 cases incl. CONTROL read-holder asks + records store reads rows, CONTROL no provider asks). Ablation 1 via scripts/ablation-replace.mjs (delete `if (field?.hidden === true) continue;`): anchor 1->0, blob bf21d319->a0041c54, pin red 'expected [ object?package=app.crm, …(3) ] to deeply equal [ object?package=app.crm, …(1) ]', 1 failed / 7 passed; restore blob == HEAD bf21d319, git diff HEAD empty. Ablation 2 (reactionReadRefused forced false): anchor 1->0, blob b688dab3->501c6cf6, pin red 'expected [ sys_comment_reaction, …(5) ] to not include sys_comment_reaction', 1 failed / 24 passed; restore blob == HEAD b688dab3. ui source is vitest-aliased (no dist leg needed). Live premise readings: member/admin meta by name: sys_business_unit 404/200, sys_comment_reaction 404/200, sys_organization 200/200, sys_user 200/200, sys_comment 200/200, showcase_project 200/200, sys_approval_action 404/200 (the withheld CONTROL); member ?names=sys_business_unit,sys_comment_reaction,sys_user lists sys_user only; served showcase_project carries organization_id(hidden true) and owning_business_unit_id(hidden true).",
      "gates": "Local, each exit captured before any pipe, all EXIT=0: node scripts/check-adr-0087-registration.mjs --base origin/main; node scripts/check-changeset-no-major.mjs --base origin/main; node scripts/check-empty-changeset.mjs --base origin/main; pnpm check:nul-bytes; pnpm check:changeset-fixed; pnpm check:cross-package-test-inputs. dispatch-gates --commands derived 37 commands at e7b95eff; the rest NOT run locally (declared narrowing: verify lock held 3h+ by another run), left to CI. --ran reconciliation not run. CI check-runs at e7b95eff, all success: Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (1-9/16 + aggregate), Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, PR-body guards, Lint · ESLint/PM dispatch-gates/docs & code guards/repo & tooling gates/CI release & engine gates/scoped x3, Type Check · workspace/source gates/consumer gates/debt ledger, Build UI Deps, Check PR Size; Build Core skipped by selector.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — fleet-write relay: POST issues/33343/comments (claim, comment 6885313720, ordered by the dispatch), pr_create (PR #33499), POST issues/33343/comments (this os-dev-report)",
      "open_questions": [],
      "decisions_needed": [
        {
          "question": "Should every member hold reactions (read + create on sys_comment_reaction), or stay app-granted? Today a member with no grant lands on the column store (now directly, before through the 404): that store offers the reaction control on sys_comment update (member_default grants it) and the click writes the retired sys_comment.reactions column, answered 400 INVALID_FIELD.",
          "options": [
            "A: add a member_default line for sys_comment_reaction (allowRead + allowCreate, no delete), beside the ruling-6633054352 sys_comment line; rows stay the reaction read gate's (readable exactly when the comment is); the definition then follows the read and the page takes the records store. Widens member reads: a maintainer ruling. ~1 line + dogfood pin.",
            "B: keep reactions app-granted and make the console withhold the column-store control from a caller refused the reaction object on a framework that has it; needs a deployment signal the console lacks today (the meta door answers refused and absent alike by design). Larger, console + contract.",
            "C: keep today's behaviour (control offered, click refused 400)."
          ],
          "recommendation": "A, because the reaction object's own contract (sys-comment-reaction.object.ts, comment-reaction-routes.ts) is written for 'a member whose only grants are the every-member ones' adding a reaction, and ruling 6633054352 already opened the discussion it belongs to; today that is declared, not reachable."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: public door — as a stock showcase member, PATCH /api/v1/data/sys_comment/ID {reactions} answers 400 INVALID_FIELD 'Unknown field reactions on object sys_comment' while POST /api/v1/data/sys_comment_reaction answers 403; the record page's column store (taken for a caller refused sys_comment_reaction) offers the reaction control under feedReactionColumn = update on sys_comment, which member_default grants, so the click is that 400 · evidence: live boot at origin/main ba35dfd7 + RecordDetailView feedGates.reactionColumn · dedupe words: reaction column store member, sys_comment.reactions INVALID_FIELD, feedReactionColumn, reactionStore column, member reactions grant · carried as decisions_needed[0], not filed"
      ],
      "deviations": [
        "Booted the showcase with `pnpm --filter @objectstack/example-showcase dev -- --fresh -p 38643` instead of `pnpm dev`: the root script's check-dev-prereqs refused because 41 packages outside the showcase closure were unbuilt; only the closure was built (os-verify-lock, VERDICT command-exit 0). Server torn down after the readings.",
        "PR body on GitHub says the suites, ablation and type-check were NOT MEASURED locally (written while the verify lock was held 3h+); they were measured afterwards (readings above). The corrected Verification section is in /mnt/project-files/server-area-pilot/E1/33343/pr-body.md for the seat to write; dev does not PATCH the body.",
        "FRAME's body template says a Fixes line for the card; the order says `Part of #33343` (item 2 only). Followed the order. The body's first line is the HTML attribution comment FRAME mandates verbatim, which os-dev.md otherwise forbids a dev to write."
      ],
      "shared_files": "none of A2's #33276 files touched; no E1 hot file touched"
    }
  10. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG

    Closed · 2026-11-15T11:26Z · maintainer chose to act on the reviewed close list. Item 1 was not a defect: report 6884679931 found the tree already at 18.3.0, with two pins. Item 2 landed in PR #33499 (merged 11-15 02:51Z). The question that report 6885790261 left open (members offered a reaction control that answers 400) moves to #33816, which awaits a maintainer ruling.

  11. removed
    pm:queue
    on Nov 15, 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:serverpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions