This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(fields): a user reference that resolved to nothing says so (objectui#8434) - #8698
Merged
os-justin merged 1 commit intoSep 9, 2026
Merged
Conversation
…ectui#8434)
`UserCellRenderer`'s first branch printed any primitive as plain truncated
text under the comment "Primitive value: just display the ID/username as
text". On a `user` field that premise is wrong: `user` is a lookup specialised
to `sys_user`, so a primitive arriving there means precisely that nothing
turned the reference into a person. Printing it as displayable text rendered
"resolution failed" as "resolution succeeded".
Measured on the merged tree before changing anything, in one mounted tree:
`'Ada Lovelace'`, `'u_1'` and an opaque ULID each rendered as
`<span class="block max-w-full truncate" title="…">…</span>` — byte-identical
to what a `text` cell prints — while an expanded reference object rendered
avatar + name. The only difference between "we resolved a person" and "we
resolved nothing" was the ABSENCE of the avatar, which is a subtractive signal.
Such a cell now keeps the raw value visible and adds a stated affordance beside
it: a muted marker glyph plus a sentence, keyed `detail.unresolvedReference` in
all ten locale packs. The multi-value shape gets the same treatment, so the
field is not honest on one input shape and silent on the other.
The sentence is deliberately epistemic. This branch has two populations and the
renderer cannot tell them apart — it has no resolver, unlike
`LookupCellRenderer`. An unexpanded `sys_user` id is the legitimate stored form
(`packages/core/src/utils/expand-fields.ts`: "a `user` column that is NOT
requested for expansion comes back as a raw user id", objectui#2032); a name
written into the column is dirty data. "Not found" would be false for the
first, so the affordance states only what is true of both: this screen did not
resolve it.
Display only. An expanded reference still renders avatar + name, a reference
object carrying only an id still draws its avatar, `{}` still prints the
coerced text (objectui#8596's boundary), and neither the edit form nor the
save-side `reference_not_found` refusal is touched.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
os-justin
marked this pull request as ready for review
September 8, 2026 23:15
os-justin
enabled auto-merge
September 8, 2026 23:15
This was referenced Sep 8, 2026
Contributor
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
os-justin
pushed a commit
that referenced
this pull request
Sep 9, 2026
… could not check, and correct its consumer list by four
The docblock over `EXPANDABLE_FIELD_TYPES` said an unexpanded `user` id
"renders as `—`". Measured on `da5e4f69e` by resolving each family through
`getCellRenderer` and rendering three unexpanded primitives:
| unexpanded value | lookup / master_detail / tree | user |
|----------------------|-------------------------------|------------------|
| 'u_1' | u_1, plain truncated span | u_1, same span |
| '01HQZX9K2M4N6P8R' | muted em-dash | the raw ULID |
| 'Ada Lovelace' | Ada Lovelace, plain span | the raw string |
Wrong twice over. `user` never drew the em-dash at all — `UserCellRenderer`
has no resolver, no `useLookupName`, no `isLikelyOpaqueId`. And the three
families that do draw it draw it only for values `isLikelyOpaqueId` accepts,
a qualifier the sentence never carried and the whole content of the
behaviour. The opening paragraph carried the same claim ("a bare id
placeholder") and is corrected with it.
The claim is DROPPED rather than rewritten. `@object-ui/core` does not depend
on `@object-ui/fields` in dependencies, peerDependencies or devDependencies,
so no test that can reach this file can render the cell a rewrite would
describe, and nothing here compares a docblock to rendered output: a
replacement would be checked by whatever checked the last one. Its shelf life
was measured too — PR #8698 sits in the merge queue rewriting the `user`
column of that table (on its head `3692f7218` all three primitives render an
unresolved-reference affordance that keeps the raw value; the other three
families are byte-identical on both trees), so a corrected sentence would
have been stale before it landed. The storage claim, which is the half this
set actually depends on and the half its tests can check, is kept.
The consumer list in the same docblock is a hand-kept claim of the same
class, and it was stale by four: objectui#5874 / #6064 converged four more
private copies — resolveActionParams, HeaderHighlight, RecordDetailDrawer,
ObjectKanban — while correcting the previous "fourth and last" claim, and
never added them here. Added, plus a re-derivation recipe: one `git grep`
over the whole tree with no pathspec, its measured counts, and the note that
the sweep was controlled by planting a reader under apps/console/src/ and
confirming the same command found it.
Comment-only; no behaviour. The changeset declares an empty frontmatter —
`check-changeset-presence` requires a declaration for published source even
when nothing releases.
Part of objectui#8693
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
os-justin
deleted the
claude/issue-8434-unresolved-user-reference-honesty
branch
September 9, 2026 00:57
akarma-synetal
pushed a commit
to akarma-synetal/objectui
that referenced
this pull request
Sep 9, 2026
… could not check, and correct its consumer list by four (objectstack-ai#8717) The docblock over `EXPANDABLE_FIELD_TYPES` said an unexpanded `user` id "renders as `—`". Measured on `da5e4f69e` by resolving each family through `getCellRenderer` and rendering three unexpanded primitives: | unexpanded value | lookup / master_detail / tree | user | |----------------------|-------------------------------|------------------| | 'u_1' | u_1, plain truncated span | u_1, same span | | '01HQZX9K2M4N6P8R' | muted em-dash | the raw ULID | | 'Ada Lovelace' | Ada Lovelace, plain span | the raw string | Wrong twice over. `user` never drew the em-dash at all — `UserCellRenderer` has no resolver, no `useLookupName`, no `isLikelyOpaqueId`. And the three families that do draw it draw it only for values `isLikelyOpaqueId` accepts, a qualifier the sentence never carried and the whole content of the behaviour. The opening paragraph carried the same claim ("a bare id placeholder") and is corrected with it. The claim is DROPPED rather than rewritten. `@object-ui/core` does not depend on `@object-ui/fields` in dependencies, peerDependencies or devDependencies, so no test that can reach this file can render the cell a rewrite would describe, and nothing here compares a docblock to rendered output: a replacement would be checked by whatever checked the last one. Its shelf life was measured too — PR objectstack-ai#8698 sits in the merge queue rewriting the `user` column of that table (on its head `3692f7218` all three primitives render an unresolved-reference affordance that keeps the raw value; the other three families are byte-identical on both trees), so a corrected sentence would have been stale before it landed. The storage claim, which is the half this set actually depends on and the half its tests can check, is kept. The consumer list in the same docblock is a hand-kept claim of the same class, and it was stale by four: objectui#5874 / objectstack-ai#6064 converged four more private copies — resolveActionParams, HeaderHighlight, RecordDetailDrawer, ObjectKanban — while correcting the previous "fourth and last" claim, and never added them here. Added, plus a re-derivation recipe: one `git grep` over the whole tree with no pathspec, its measured counts, and the note that the sweep was controlled by planting a reader under apps/console/src/ and confirming the same command found it. Comment-only; no behaviour. The changeset declares an empty frontmatter — `check-changeset-presence` requires a declaration for published source even when nothing releases. Part of objectui#8693 Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8434
UserCellRenderer's first branch printed any primitive as plain truncated text, under a comment stating its premise: "Primitive value: just display the ID/username as text". On auserfield that premise is wrong —useris a lookup specialised tosys_user, so a primitive arriving there means precisely that nothing turned the reference into a person. It rendered "resolution failed" as "resolution succeeded."⭐ Step one was reproduction — the card had never been executed
The card said so twice ("NOT executed — no rig, no browser"; the edit-form half "inferred"). All three readings triage required were taken on the merged tree at
da5e4f69e, before anything was changed.Reading 1 — what an unresolvable
uservalue actually renders in record detail. Confirmed, and worse than "no avatar": byte-identical to atextcell.Reading 2 — the edit form. The one behaviour nobody had confirmed in code. Confirmed, with a control. Mounting
UserFieldin a form host holding the value in state:'Ada Lovelace',findOneresolves nothingSelect…"Ada Lovelace"'u_1',findOneDOES resolve itAL+Ada Lovelace"u_1"So yes — the form really is blank, and it really does submit the invisible original value.⚠️ My first attempt at this reading was void: both legs printed
Select…because myfindOnestub returnednullon both. Re-run with a discriminating control; the table above is the second run. The edit form is not changed here — this card is display-only — but the reading is recorded because it had never been taken.Reading 3 — the positive control, in the same mounted tree: an expanded reference object renders avatar (initials
AL) + name. Without it, readings 1 and 2 could not be told from "this field is broken in general."~2067:2112f76f4362:2151HEAD~1(pre-#8679):2228da5e4f69e, the merged tree — this PR's basegit diff HEAD~1 HEAD -- packages/fields/src/index.tsxcontains zero occurrences oftypeof value !== 'object': #8679 added 77 lines above the branch and left it byte-identical, as expected — its subject is{}, this card's is a string that failed to resolve.The fix — the weak arm, as called
Keep the raw value visible and add a stated affordance beside it: a muted marker glyph plus a sentence, keyed
detail.unresolvedReferencein all ten locale packs. The multi-value shape gets the same treatment, so the field is not honest on one input shape and silent on the other.Strictly information-adding: nothing that was on screen is removed, no other surface changes, and the raw string — the only clue for diagnosing an existing dirty row — stays readable.
⭐ The branch has TWO populations, and saying so is the finding
The PM asked me to establish whether the legitimate case the old comment describes exists before assuming the branch has only one population. It does, and the repo names it:
sys_userid — the legitimate stored form. The record exists.reference_not_found.Measured:
'Ada Lovelace','u_1'and an opaque ULID render byte-identically.UserCellRendererhas no resolver at all — nouseLookupName, noisLikelyOpaqueId, unlikeLookupCellRenderer— so it cannot tell them apart.⇒ Marking both is correct, but the sentence must be epistemic. "Not found" would be false for population 1 — the same class of defect this card repairs, aimed the other way. So the affordance states only what is true of both: this screen did not resolve it.
THE SENTENCEin the pin asserts the wording does not match/not found|does not exist|no such|invalid|missing/i, which is the assertion a careless escalation trips over.Verification
Everything asserts rendered output, never that a branch exists. Counting is at the seam, never
queryByText..rounded-fullmatches two nodes per avatar — Radix'sAvatar.Rootand theAvatarFallbackinside it. objectui#8596's census navigates withquerySelector(first match) and so never had to notice; counting does. All five positive-control legs failedexpected 1, got 2before the seam was narrowed to.rounded-full.overflow-hidden.the avatar seam counts one node per avatarpins the arithmetic so the next reader does not re-derive it.Ablation — read site mutated, three legs, all from the committed tree
Mutations land on the read site in
UserCellRenderer, never on a pin. Each leg proves the mutation on disk in both directions (anchor count 1→0, marker 0→1), againstgit hash-objectvs the HEAD blob0d6307af…, plus a line-total gate (3584 unchanged), and restores by state (git diff HEADempty and the blob back to the HEAD blob). Per-test classification from vitest's JSON reporter.return <TruncatedText text={String(value)} />if (true)— everything is unresolvedif (false)— nothing isALL/NONEare the caricature — the mutation that makes the code answer the same thing for everything — run both ways.BUGis the leg that matters: it is the only one that killsADDITIVE, NOT SUBTRACTIVE, on the death stringwhich is the card's grading sentence, observed failing. Across the three legs all 16 assertions have been observed to fail; none is a leg that landed without discriminating, and none is void.
Death strings counted separately per leg;
NONEproducedTypeError: Cannot read properties of undefined (reading 'getAttribute')×4 — a navigation-target death, distinct from the assertion deaths, which is why the pins assert the false claim's absence first.Runs
packages/fields+packages/i18n: 212 files / 3636 tests passed,VERDICT command-exit 0.plugin-dashboard,plugin-grid,plugin-detail,plugin-list): 365 files / 3441 tests passed,VERDICT command-exit 0.type-checkfor both packages:tsc --noEmit && tsc -p tsconfig.test.json, Done. The new pin is in that program — confirmed with--listFiles(1 hit), so this is not a NOT MEASURED.eslint ., no narrowing needed): 4574 files, 0 errors, exit 0.check:i18n-keys✅ (and it now judges this call site — literal keys resolving went 2734 → 2735, dynamic report-only 66 → 65),check:i18n-drift✅,check:i18n-dead-keys✅,check:control-bytes✅ (+ a manual control-byte scan of every changed file),check:icon-record-names✅,check:phantom-deps✅,check:unused-deps✅,changeset:check✅,check-changeset-presence✅.check:eager-closure— NOT MEASURED, exit 2 with "No eager-closure report at apps/console/dist/eager-closure.json": a missing prerequisite, not a red gate. Declared to CI. The expected delta is one additional lucide icon from a moduleindex.tsxalready imports eagerly, plus ten one-line locale strings, against ~45.8 KB gzipped of headroom (ceiling 3,597,000 over baseline 3,551,191).CircleHelpwas the first choice and is retired from lucide's runtimeiconsrecord while still importing and rendering fine as a component.CircleQuestionMarkis the live spelling;check:icon-record-namesdocuments exactly this failure mode.The three fences
??fallback. It changes what the screen says about a value it already received. Honest display, not tolerance.packages/fields/src/index.tsxand the locale packs changes;reference_not_foundis not in the diff.usercolumn is not requested for expansion — no dirty data required. Existing rows, hand-authored metadata and future generators supply population 2.Out of scope, filed not fixed
expand-fields.tsdocuments a rendering behaviourUserCellRendererhas never had — an unexpandeduserid printed as bare text, not as "—" #8693 —expand-fields.tsdocuments a rendering behaviourUserCellRendererhas never had (the"—"clause). Measured false on this base; the"—"belongs toLookupCellRenderer. Comment-only, but in@object-ui/core, which would pull a second published package into this diff for a comment.LookupCellRendereranswers one epistemic state two opposite ways: a name-shaped unresolvable reference prints as a confident name, an opaque-shaped one loses its raw value to a muted dash #8695 —LookupCellRendereranswers the same epistemic state two opposite ways: a name-shaped unresolvable reference prints as a confident name (this card's defect verbatim, one renderer over), while an opaque-shaped one loses its raw value to a muted dash (the evidence-destruction triage warned about). Bigger surface —lookup/master_detail/tree— and it has a resolveruserdoes not, so it is a genuinely different decision.Dedup channel declared:
/search/*is refused by the egress proxy andsearch_issuesreturns false zeros on this repo, so this was REST label-scoped listing (package: fields,package: core,state=all) plus local grep over titles and bodies, with issue 8434 itself as the control word that must hit — it did. 30 unique issues; no duplicate of either finding.🤖 Generated with Claude Code
https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
Generated by Claude Code