Skip to content

console: the record page offers the retired sys_comment.reactions column PATCH to a member refused sys_comment_reaction (400 INVALID_FIELD) #33521

Closed

Description

@objectstack-fleet

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

Follow-up of #33343 item 2 (PR #33499), filed on seat 5's instruction. ⛔ Not a claim.

Gap (measured live on main ba35dfd, showcase boot, stock member)

  • The record page picks the reaction column store when sys_comment_reaction reads as absent (ui/packages/app-shell/src/views/RecordDetailView.tsx, around line 3179). A member refused that object (no grant, so its definition answers 404) lands there too.
  • The column store offers the reaction control under feedReactionColumn = update on sys_comment, which member_default grants.
  • Clicking it PATCHes sys_comment.reactions, a column retired by migration 18: PATCH /api/v1/data/sys_comment/ID {reactions} answers 400 INVALID_FIELD "Unknown field reactions on object sys_comment". (POST /api/v1/data/sys_comment_reaction answers 403 for the same member.)

Expected

Offer the column PATCH only where sys_comment_reaction is genuinely undeployed, never where the caller is merely refused it or the column is retired. Keep the column path itself: the cloud's v17 pin still needs it. A refused caller gets no reaction control (or a read-only one), not a request that is bound to fail.

Separate decision (not this card)

Whether every member should get read + create on sys_comment_reaction (member_default) is a maintainer decision now with Elon (#22566 left the shipped set open). This card fixes the console either way.

Do

  1. Pin on main: refused member → column store → control offered → 400. CONTROLs: object undeployed → column path still used; grant held → records store.
  2. Tell "undeployed" apart from "refused" in the store pick, with no new server signal if the existing meta/grant reads suffice; else stop and report.

Grade p2 (a stock member sees a control that always fails). Clause-②: no expected. Metadata-protocol: none.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cy1y7UNVbT2QAdmgdn
    Claim: area-lease pilot #33059, area E1 · 2026-11-15T02:07Z
    Branch: claude/area-E1-33521
    Account: os-elon-musk
    Clause-②: no
    Metadata-protocol: none

  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
     "issue": 33521,
     "status": "done",
     "branch": "claude/area-E1-33521",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/33591",
     "head_sha": "b3eecbde15315588da573be114cd0f361cb44cca",
     "session": "session_016WV4cy1y7UNVbT2QAdmgdn",
     "premise_still_valid": true,
     "summary": "The record page took the sys_comment.reactions column store whenever sys_comment_reaction could not be read, and a refusal reads exactly like an undeployed object (the meta door answers both as absent, the grants name neither). The discriminator is sys_comment's own served definition: the column left sys_comment in the same release that added sys_comment_reaction (plugin-audit 18.0.0, migration entry sys-comment-reactions-column-retired), so the page now takes the column store only where sys_comment declares `reactions`, and otherwise takes a new `none` store (no reaction control, no reaction read, no request). useObjectPresence also returns the served `definition` (additive optional field) so the page reads sys_comment's fields without a second registry read; the sys_comment definition is asked only when the reaction object is unread. Stacked on #33499 (not merged at PR creation): branch cut from origin/claude/area-E1-33343 e7b95effb8, PR opened against main saying so; the PR diff shows #33499's two commits until it lands.",
     "tests": "Premise/ablation (unit level, on the committed fix): node scripts/ablation-replace.mjs anchor ': declaresReactionsColumn(commentPresence.definition)' -> ': true' (the pre-fix pick; anchor x1->x0, blob a63343be76->71513b9976): feedGrant-12082 'Tests 2 failed | 27 passed (29)', both refused pins red on expect(addReaction(view)).toBeNull() (control offered to a refused caller on a framework with the object); CONTROL undeployed and CONTROL grant held green; restore blob == HEAD a63343be76, git diff HEAD empty. Click-to-PATCH on the refused path is not separately measured at unit level: it is the same column handler the CONTROL-undeployed pin drives (one sys_comment update naming reactions); the 400 INVALID_FIELD is the card's live reading. Final (head b3eecbde15, from ui/): pnpm exec vitest run --maxWorkers=2 over feedGrant-12082, reactionRecords-12078, reactionKeepIds-11019, reactionWriteFailure-10899, reactionsCommentRowsOnly-11035 + packages/app-shell/src/hooks: 'Test Files 104 passed (104) / Tests 952 passed (952)', lock VERDICT command-exit 0. Before fixture triage the four column-store suites were 13 red (their registry listed no sys_comment at all); fixtures now serve the pre-18 sys_comment declaring reactions (missing declaration added, no assertion changed). New pins (feedGrant-12082 top-level describe): refused by grants -> no control/no chip/no column write/no reaction read/no create; no perms provider + registry absent -> no control/no column write; CONTROL undeployed -> column write once; CONTROL grant held -> records store, own-row create.",
     "gates": "Local: pnpm --filter @object-ui/app-shell type-check (src + tsconfig.test.json) exit 0 after building its dep closure; eslint --no-inline-config on the 7 changed ui files: 0 errors (warnings only); pnpm check:test-source-alias exit 0; pnpm check:nul-bytes exit 0; pnpm check:cross-package-test-inputs exit 0; check-empty-changeset --base origin/main exit 0; check-changeset-no-major exit 0; check-adr-0087-registration exit 0; check-closing-keyword-parity exit 0. dispatch-gates --commands (tree b3eecbde15) named 37 commands; the rest were left to CI per the 21:14Z addendum (NOT MEASURED locally: the remaining derived families, full Test UI / Lint UI / Type Check UI). CI on b3eecbde15 at 02:10Z: all gate-carrying jobs in_progress (Lint · ESLint, Type Check · workspace, Check Changeset, PR-body guards, Governed Surface Queue Guard, ...), opt-in/queue jobs skipped.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "3 — git push (branch claude/area-E1-33521, not REST); claim comment on #33521 via post-stamped.mjs (relay, read-back identical); pr_create #33591 via fleet-write/dispatch.mjs (relay, body 6293 bytes identical, assignee os-elon-musk); plus this os-dev-report comment on #33521 via post-stamped.mjs",
     "open_questions": [],
     "decisions_needed": [
      {
       "question": "AGENTS.md multi-agent §2 says a stacked series is not a supported form (branch off main literally); this order said branch from origin/claude/area-E1-33343. Land #33499 first, or have this branch merge origin/main once #33499 lands?",
       "options": [
        "A: land #33499, then merge origin/main into claude/area-E1-33521 so the diff shrinks to this PR's three commits",
        "B: retarget nothing; land #33591 carrying #33499's commits"
       ],
       "recommendation": "A, because the stacked commits are already in the merge queue and a merge of main afterwards leaves this PR's own delta alone"
      },
      {
       "question": "A refused caller now sees no reactions at all (no read-only counts): showing counts would need read on sys_comment_reaction, which is what the caller lacks. Should refused callers get counts through some server aggregate?",
       "options": [
        "A: keep none (this PR)",
        "B: file a server card for a read-only reaction count door"
       ],
       "recommendation": "A, because the card asks for no new server signal and the stock member gets the records store after #33584"
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": []
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdomain:serverpm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions