Skip to content

Record page header-action visible predicates log "No such key: status — check the field names and CEL" on every load for fields the object has #33987

Closed

Description

@objectstack-fleet

Filing class: ① defect (misleading diagnostic) — reach: public door, measured in a browser console. Reader: domain:ui lane (the record page header-action visible predicate evaluation in @object-ui).

Symptom

Every load of a record page whose header actions carry a visible predicate logs one warning per action, for a field the object does have:

[object-ui] A conditional predicate failed to evaluate (page:header action "submit_contract" visible)
and was treated as its safe default: "record.status == \"draft\"". Reason: [runtime] No such key: status
>    1 | record.status == "draft"
                ^. Check the field names and CEL

On objectstack-ai/hotclm (18.5.0, clm_contract record page, any persona) it is 4–6 warnings per page load (submit_contract, withdraw_contract, start_renewal, record_finance_review, …). status and owner_id are real fields; the page then renders the correct buttons, so the predicates evaluate fine once the record is there.

Why (reading, not traced)

The predicates appear to be evaluated once against a record object that has not loaded yet (no keys), and that first evaluation is reported as an authoring error.

Expected

No warning while the record is still loading (evaluate once the record arrives, or treat "record not loaded" as its own state); the "Check the field names and CEL" advice only when a key is really missing from a loaded record.

Business reason

The warning tells an app author their CEL is wrong when it is right. App authors (and AI agents) are told by hotclm's AGENTS.md to read the browser console as evidence; a false "check the field names" sends them to change correct metadata.

Dedupe: objectstack issues (all states) for "conditional predicate failed to evaluate" — 5 hits: QA runs and #9167 (a record:alert block predicate reading a missing field, a different case).


Filed from the hotclm 18.5.0 upgrade browser regression (2026-11-15).

Activity

  1. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:ui · p2 · 2026-11-15T15:45Z

    ⛔ Not a claim.

    Every record page load logs "No such key: status" for a header-action visible predicate whose field the object has, and the predicate falls back to its safe default. So conditional header actions (e.g. submit_contract when record.status == "draft") do not follow their predicate. That is more than a misleading log: an authored visibility rule is not honoured. Measured in a browser on 18.5.0, so p2.

  2. added
    domain:ui
    pm:queue
    priority:p2
    on Nov 15, 2026
  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    Claim: PM loop round 2 · 2026-11-15T16:14Z
    Session: session_01ADHkmQj66qNAyERYxzoNgw (card thread, dev) · seat session_01ADHkmSzhXR4yUAgwq1bQRi
    Account: os-steve (the seat's linked user as GET /user answers it; the card's assignee)
    Branch: claude/project-thread-8ajdlr
    Worktree: objectstack-issue-33987
    Domain: domain:ui
    Seat: domain:ui#2
    File surface: ui/packages/components/src/renderers/layout/containers.tsx (header predicate call sites) and ui/packages/core/src/evaluator/** only if the root cause lives there, their tests, root .changeset/ (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default judgement tier (dispatch-gates --tier: "no path-derived mandate: the surface hits none of the 4 declared glob(s)"), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui/packages/components page:header predicate evaluation (objectstack) | none | every record page whose header actions carry visible/hidden/disabled predicates; app authors read a false CEL error
    Thread-read: 6897088718
    Premise: holds
    Serial constraints cleared: seat 1 #33827 (PR #33983) edits app-shell RecordDetailView.tsx + recordSaveEcho.ts, fenced off; #33988 (seat 2) edits app-shell list header, disjoint; no open PR touches containers.tsx (read 16:12Z)

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

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmQj66qNAyERYxzoNgw
    os-dev-report

    {
     "issue": 33987,
     "status": "done",
     "branch": "claude/project-thread-8ajdlr",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/34035",
     "session": "session_01ADHkmQj66qNAyERYxzoNgw",
     "premise_still_valid": true,
     "summary": "Root cause in ui/packages/components containers.tsx (not core/evaluator): page:header evaluated action predicates against ctx.data ?? {} while the record page hands data null before its read answers, so every record.FIELD predicate faulted No such key and the warn-once report fired on every load. New headerRecordPending (context present, recordId set, data null/undefined): evalHeaderPredicate answers each key fallback without evaluating or reporting (visible/hidden/disabled/pressed), and disabledReasonFor claims no reason while pending. Triage question measured on shipped code: only the pre-load pass was wrong (pending [false,false] with 2 faults, loaded [true,false] = predicates own verdict); after the fix pending 0 faults, loaded verdicts identical.",
     "tests": "new top-level describe in shared harness page-header-predicate-dialect.test.tsx (5 tests: pending/loaded positive, loaded negative, pending hidden+disabled+pressed legs, CONTROL loaded-missing-key warns once, CONTROL no-record-id still faults): file 33/33 pass. components package suite under lock: Test Files 479 passed 1 skipped (480), Tests 4595 passed 24 skipped. Ablations (fix committed first, ui vitest aliases src so no build leg): headerRecordPending forced false -> 3 of 5 new tests red, both CONTROLs green, restored blob == HEAD dbb8ad7e6d9e; disabledReasonFor pending line deleted -> 1 red (aria-describedby), restored blob == HEAD.",
     "gates": "local at a1d4af39: dispatch-gates --commands 37 derived families, each run, all exit 0 (ui scripts/ vitest first exit 1 on unbuilt @objectstack/client entry, re-run after build: 171 files / 5065 tests pass); --ran reconciliation: 37 run, 0 NOT-MEASURED, 0 UNRUN. pnpm --filter @object-ui/components type-check exit 0 (after building the 48-task dependency closure, lock VERDICT command-exit 0). CI families: in_progress at report time (not waited, per order).",
     "line_budget": "151 changed lines (+143/-8) over 3 files vs 3000 human-merge threshold: under",
     "files_changed": [
      ".changeset/33987-header-predicates-pending-record.md",
      "ui/packages/components/src/__tests__/page-header-predicate-dialect.test.tsx",
      "ui/packages/components/src/renderers/layout/containers.tsx"
     ],
     "deviations": [
      "Bounded on-the-spot fix inside the claimed file: disabledReasonFor returns no reason while pending (same defect class: a pending record reported as a fact about the record; same file, same gate families); named in the PR body.",
      "Changeset bumps @object-ui/components and @object-ui/console (patch), following the ui changeset precedent of naming the console that bundles it.",
      "PR body footer uses the AGENTS.md session-URL form, not the harness emoji footer."
     ],
     "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
     "mcp_calls": "4 — issue_read get, issue_read get_comments x2, pull_request_read get; no write tools",
     "api_writes": "2 — relay pr_create (objectstack-ai/objectstack#34035, read-back 5568 bytes sent == stored, assignees os-steve), post-stamped os-dev-report comment on #33987",
     "open_questions": [
      {
       "question": "While pending, a predicate that reads only the host scope (ctx.user.*) now also waits for the record instead of evaluating at once. Keep, or evaluate scope-only predicates silently while pending?",
       "options": [
        "A keep: every header predicate waits for the record (header actions appear together; no wrong-verdict flash from has()/size() on an empty row)",
        "B evaluate quietly while pending and use the verdict only when it does not fault (earlier user-gated buttons; an empty-row verdict like !has(record.x) can flash wrong)"
       ],
       "recommendation": "A, because the card asks to evaluate once the record arrives and B can show a wrong button for the length of the read"
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": []
    }
  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    ACCEPT → PR #34035 comment 6898499564 · 2026-11-15T17:36Z · ready and auto-merge armed.

  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    Landed · 2026-11-15T18:39Z

    reading value
    PR #34035 MERGED as 39fa82b7 on main (Fixes #33987)
    card closed

    State: pm:dispatched removed, assignee cleared.

  8. removed
    pm:dispatched
    on Nov 15, 2026
  9. added a commit that references this issue on Nov 16, 2026
    39fa82b
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

    domain:uipriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions