Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(plugin-detail): an authored record:path with a statusField and no stages derives its stages from the picklist (objectui#11106) - #11147

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-11106-record-path-derive-stages
Sep 29, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-11106-record-path-derive-stages

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11106
Clause-②: no

What changed

An authored record:path node that sets statusField and leaves stages absent now renders the status field's picklist as its stages. Before this change it rendered the "record:path — no stages configured" placeholder. The spec describe for stages reads "Explicit stage definitions (if not using field metadata)", and this package's registration repeats that promise.

  • packages/plugin-detail/src/renderers/record-path.tsx: when schema.stages is undefined, the stages come from deriveStages(ctx.objectSchema, statusField). That is the same function buildDefaultHighlights uses for the synthesized default page. It is imported from ../synth/buildDefaultPageSchema, and no copy of the rule is made. Derived stages then take the same road as authored ones: localizeStageLabels, the picklist translation (translateOptions), then classify().
  • Authored stages win, including an explicit empty list.
  • When the derivation had an object definition and found no picklist options on the field, the placeholder names the field, for example record:path — no stages configured, and field "stage_note" has no picklist options to derive them from. With no definition bound, the placeholder keeps its plain wording.
  • Changeset: '@object-ui/plugin-detail': patch.

Zone 2 measurements (objectui origin/main 84b275c01)

  1. deriveStages does not need to move. It is exported from synth/buildDefaultPageSchema.ts in this same package, and record-details.tsx already imports deriveFieldGroupDetailSections from that module. The renderer imports deriveStages the same way. The synth file is not edited.
  2. Object metadata path. Sibling renderers read the record context's objectSchema: record:details reads ctx.objectSchema.fields, and record:highlights passes ctx?.objectSchema down. Both production hosts bind it. RecordDetailView passes objectSchema={objectDef}, and the Studio PagePreview passes the recordSchema it fetched. The renderer reads that same member, and no fetch is added. record:reference_rail calls dataSource.getObjectSchema, but it does so for other objects' schemas, so it is not the precedent here. A host that binds a dataSource and no objectSchema still gets the placeholder.
  3. Option labels. At @objectstack/spec 17.4.0, SelectOptionSchema.safeParse on { value: 'open', label: { en: 'Open', 'zh-CN': '打开' } } fails with invalid_type at label. A picklist option's label is therefore a plain string. Derived stages still pass through localizeStageLabels (its string arm changes nothing) and then through translateOptions, which localizes them from the app bundle's fieldOptions. The zh pin covers that path.

Tests

New file: packages/plugin-detail/src/renderers/__tests__/record-path.derivedStages-11106.test.tsx, 10 rows. Every row mounts the JSON node { type: 'record:path', properties } through the real SchemaRenderer and this package's registration, inside I18nProvider and RecordContextProvider.

  • en: the picklist options are the stages, in declared order, on both rows. The record's value is the current stage: data-stage-state="current", aria-current="step", accessible name Negotiation, current stage.
  • zh: the app bundle's fieldOptions translate the derived stages, and the current stage announces 方案,当前阶段.
  • Classification: derived stages are classified like authored ones. closed_won is the won terminus, and closed_lost leaves the forward path.
  • ONE RULE: the synthesized default page's own record:path node, from buildDefaultHighlights, renders the same stages as the authored node.
  • Authored stages: explicit stages override the picklist. An explicit empty list keeps the placeholder.
  • No picklist: a text field, or a field the object doesn't declare, keeps the placeholder, and the placeholder names the field.
  • CONTROL: the same node with no objectSchema bound keeps the placeholder.

Ablation. Run after the fix was committed, with ablation-replace.mjs from the objectstack checkout. It replaced the derivation expression with authoredStages: anchor x1 → x0, blob 01af261a277a → 7c5f05728d7c. The new file then read Tests 5 failed | 5 passed (10).

  • The five derivation rows went red: en order, en current, zh, classification and ONE RULE. The authored-stages, no-picklist and control rows stayed green. That is the expected direction.
  • The restore was proven: the blob after restore equals HEAD (01af261a277a), and git diff HEAD is empty.

Gates, all run at 446aaafd7 (this branch's head)

  • pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-detail^...' build: exit 0. It built the dependency closure before any type reading.
  • pnpm exec vitest run packages/plugin-detail/: Test Files 224 passed | 1 skipped (225) and Tests 2202 passed | 8 skipped (2210). The 225 matches git ls-files packages/plugin-detail's test-file count.
  • pnpm --filter @object-ui/plugin-detail type-check (tsc --noEmit && tsc -p tsconfig.test.json): exit 0. tsc -p tsconfig.test.json --listFilesOnly lists both changed .tsx files.
  • pnpm exec eslint --no-inline-config on the 2 changed files: 0 errors. record-path.tsx has 9 warnings, and the base file has the same count and the same rules. Eight are no-explicit-any, and one is react-hooks/preserve-manual-memoization, on the stages memo this diff does not touch. The run is narrowed to these files, and three pieces of evidence back the narrowing:
    • the population is eslint's own files: ['**/*.{ts,tsx}'];
    • the file count, 2, is read from --format json;
    • type-aware linting is off (--print-config shows parserOptions {}), so this diff cannot move the verdict on any untouched file.
    • The repo-wide pnpm lint belongs to CI.
  • node scripts/check-changeset-presence.mjs: 0. check-control-bytes: 0. check-new-cross-file-line-citations: 0, with 0 new citations. check-test-path-roots: 0. check-vi-mock-specifiers: 0. check-changeset-no-major: 0.
  • Declared narrowing: the full pnpm test and other packages' suites belong to CI. No public surface moved: no spec contract, no published exports and no wire shape changed. The console suites that mount record:path pass explicit stages.

Acceptance notes

  • @object-ui/types' RecordPathComponentProps declares stages as required and label: string, which is narrower than the spec row (optional, I18nLabel). The renderer reads schema.stages through unknown so the absent branch is not typed as unreachable. That interface is already carried by the claim-debt ledger (CLAIM_DEBT in scripts/check-spec-symbol-derivation.mjs, objectui#4592). No card is filed.
  • deriveStages derives from any field whose options array is non-empty, not only from select. That is the shared rule, and it is unchanged here, so the default page and an authored page agree.
  • The derivation reads the record context's objectSchema only. A host that binds a dataSource but no objectSchema gets the placeholder. Both production hosts bind it.

This change was made in session https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec (domain:ui seat 2, branch claude/issue-11106-record-path-derive-stages).


Generated by Claude Code

…em from the status picklist (objectui#11106)

When `stages` is absent, `RecordPathRenderer` now derives the stages from
`statusField`'s picklist on the record context's `objectSchema`, through the
same `deriveStages` rule the synthesized default page uses. Authored stages
still win; a field with no picklist options keeps the placeholder, which now
names the field.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
… picklist (objectui#11106)

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
…list (objectui#11106)

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3113.5 KB 3149.4 KB
Main entry chunk (gzip) 149.4 KB 350 KB
Entry file index-Cyjx1g1b.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.13KB 7.95KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 559.68KB 134.21KB
core (index.js) 9.94KB 3.94KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 227.99KB 63.22KB
fields (index.js) 261.28KB 66.40KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.35KB 9.18KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.32KB 11.09KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.58KB 4.90KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.25KB 2.17KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.01KB 3.93KB
plugin-calendar (index.js) 52.17KB 15.06KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 138.73KB 37.05KB
plugin-designer (index.js) 215.78KB 44.42KB
plugin-detail (index.js) 234.78KB 62.36KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 171.16KB 43.75KB
plugin-gantt (index.js) 171.88KB 42.61KB
plugin-grid (index.js) 229.83KB 63.15KB
plugin-kanban (index.js) 48.43KB 15.11KB
plugin-list (index.js) 115.82KB 28.67KB
plugin-map (index.js) 22.90KB 7.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 32.26KB 9.43KB
plugin-tree (index.js) 11.21KB 3.89KB
plugin-view (index.js) 90.43KB 22.76KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 119.55KB 39.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.17KB 2.73KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 22.61KB 7.40KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 3.83KB 1.49KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.26KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.30KB 6.99KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 446aaafd7ca8b55877d068fc2379525cd2e1bb82
Local-runs: none

Inputs read: card objectui#11106 (body, triage 5893796856, claim 5898280434, os-dev-report 5899115118), PR objectui#11147 (body, 3-file list, net diff against main), the check-runs on 446aaafd7 with filter=latest, and, for context only, files at the head through contents/PATH?ref= (record-path.tsx, synth/buildDefaultPageSchema.ts, record-details.tsx, record-highlights.tsx, record-quick-actions.tsx, index.tsx, react/src/context/RecordContext.tsx, types/src/record-components.ts, app-shell/src/views/RecordDetailView.tsx, metadata-admin/previews/PagePreview.tsx, scripts/check-spec-symbol-derivation.mjs, the eight existing record-path tests, AGENTS.md, packages/i18n/README.md). Nothing was checked out, built, run or re-run.

① Derived judgments

Gates on the head, as the check-runs conclude them (42 latest runs):

  • 43 latest runs, all completed at 21:31Z: 40 success, 3 skipped, 0 failure, 0 in progress.
  • success: Test (the aggregate) and Test shards 1/8 through 8/8, Test (dist pins), Type Check, Lint, Build & E2E, Build Docs, Bundle Analysis, Spec Main Shape Gate, Line Citation Gate, Control Byte Scan, Shell Escape Residue Scan, Inert vi.mock Specifier Check, Pre-Install Import Graph Check, README Export Check, Governed Surface Queue Guard, Action Ref Convention, Changeset Declaration, Changeset Bump Policy, Changeset Fixed Group Check, Changeset Claim Re-read, Changeset Overwrite Report, Doc Fence Language Check, Doc Example Id Check, Doc Snippet Type Check, Doc Component Type Check, Internal Docs Link Check, Docs Route Eager Closure Check, Skill Guide Path Check, Skill Eval Token Check, Skill Example Check, Live E2E (informational), label.
  • skipped (not applicable to this diff): Test (coverage), Test (coverage shard N/4), dependabot.
  • The dev's package-scoped runs (vitest over packages/plugin-detail/, the package type-check, eslint on the two changed files, the six check-* scripts) are the report's readings; the Test shards, Type Check and Lint above are the repo-wide verdicts they deferred to CI.
  1. deriveStages is imported, not moved and not copied — right. The diff's file list is record-path.tsx, the new pin file and the changeset; synth/buildDefaultPageSchema.ts is untouched, and at the head its deriveStages body is the base one (null unless def.fields[statusField].options is a non-empty array, else options.map to { value, label }). record-path.tsx adds one import line, import { deriveStages } from '../synth/buildDefaultPageSchema', the same shape record-details.tsx already uses for deriveFieldGroupDetailSections from that module. No second copy of the rule exists in the diff. Triage's "move it to a shared place if needed" was not needed: same package, relative import. The ONE RULE pin mounts the node buildDefaultHighlights emits and the authored node and asserts identical stage texts.

  2. The object definition is useRecordContext().objectSchema — right. const objectSchema = ctx?.objectSchema in the renderer. RecordContextValue.objectSchema?: TObjectSchema is a declared member of the context ("Resolved object metadata schema"), the one record-details reads ((ctx as any).objectSchema) and record-highlights passes down (ctx?.objectSchema). Both production hosts bind it at the head: RecordDetailView passes objectSchema={objectDef} and Studio's PagePreview passes objectSchema={recordSchema ?? undefined}. The diff calls no getObjectSchema, adds no fetch and does not touch dataSource; the card's probe measured 0 getObjectSchema calls and the design keeps it 0.

  3. Derived stages take the authored road — right. The only expression the diff changes is the input of localizeStageLabels inside the rawStages memo: derivesStages ? deriveStages(objectSchema, statusField ?? null) : authoredStages. Downstream is byte-unchanged: the stages memo still applies translateOptions(ctx.objectName, statusField, rawStages), and classify() still runs over stages. The zh pin proves the fieldOptions translation reaches derived stages (方案,当前阶段), the classification pin proves closed_won / closed_lost classify as won / lost, and the en pin proves data-stage-state, aria-current="step" and the composed accessible name on the record's current value — triage pin 1 under en and zh.

  4. Authored stages win, an explicit empty list included — right. "Absent" is authoredStages === undefined, the spec row's .optional(). A JSON document either carries stages or does not; stages: [] carries it, so under "explicit stages still win" a present value wins whatever its length. The author declared zero stages, the placeholder reports exactly that, and, because derivesStages is false there, it does not claim the field lacks a picklist (the pin asserts the text has no picklist). Letting [] fall through to the derivation would make an authored value lose silently to metadata, the opposite of the ruling. Judged right. Residue, not a finding: stages: null is outside the accepted set (.optional() takes undefined only) and also lands on the plain placeholder.

  5. The placeholder's appended English sentence — acceptable in this repo at this head. Triage 5893796856 itself demands "keeps the placeholder, which names the field", so naming the field is the ruled direction. The carrier is a literal, record:path — no stages configured, and field "X" has no picklist options to derive them from, gated to derivesStages && statusField && objectSchema != null. The base string was already an English literal outside the packs, and the sibling family renders its configuration placeholders the same way, in the same dashed-border style: record:details — bind a record to preview, record:quick_actions — no actions configured, and the dynamic record:quick_actions — KEY refused at index N (see console), the closest precedent (an English diagnostic with an interpolated value). AGENTS.md #-1 requires user-facing text to be English; the pack discipline (t('detail.*')) governs the session-locale copy end users read, and every such string in this block (detail.pathLabel, the stage-state names) still goes through t() and is untouched; packages/i18n/README.md records that not every user-facing string resolves through the packs, and the plugin-detail literal census (ActivityTimeline.remainingLiterals.i18n.test.tsx) covers activity content, not the record:X — ... designer placeholders. A catalogue row would be the answer only if that whole family moves into the packs together, which is a family decision and not this card's. Not escalated.

  6. No objectSchema bound — right. deriveStages(undefined, ...) returns null, localizeStageLabels(null) returns [], stages.length === 0, and underivable is false because objectSchema == null, so the plain wording renders. The same holds with no record context at all (ctx null, the palette). The CONTROL pin binds objectSchema: null (mapped to undefined) and asserts the placeholder with zero listitems. This is the correct reading of triage pin 3's boundary: a host that binds nothing gets no derivation and no claim about the field.

  7. A non-picklist or undeclared statusField keeps the placeholder and names it — right. deriveStages returns null for a field without a non-empty options array or for a field the object does not declare; both pins (a text field, an undeclared phase) assert the placeholder plus the quoted field name. Triage pin 3 holds.

  8. The default page is unchanged and agrees. buildDefaultHighlights still writes explicit stages into the node it emits, so that node now takes the authored arm and renders as before; when the derivation yields nothing the default page still emits no record:path node, while an authored node shows the placeholder — consistent with the ruling. index.tsx (excluded by the claim, PR objectui#11086's file) is untouched: the registration description "else derived from field metadata" now holds.

  9. Public surface and accept-set. No exports, package.json, @object-ui/types, spec pin, registration or wire shape moves. RecordPathRendererProps is unchanged. The set of documents the row accepts is unchanged (the spec row already accepted stages absent); only the render of an already-valid document changes. The rawStages memo keys on [derivesStages, authoredStages, objectSchema, statusField, language] as a cost hint; no correctness rests on a memo identity (AGENTS.md [WIP] Enhance every detail of the designer #10 not engaged). The eslint warning the report names (preserve-manual-memoization) sits on the stages memo this diff does not touch.

  10. Pins are runtime readings. Every row mounts { type: 'record:path', properties } through the real SchemaRenderer and this package's registration, inside I18nProvider and RecordContextProvider — the instrument AGENTS.md asks for on a declared-key claim. Ten rows cover triage's three pins plus ONE RULE and CONTROL. The PR body's ablation (derivation expression replaced with authoredStages: 5 derivation rows red, the 5 authored / no-picklist / control rows green, restore proven) is consistent with the diff's structure; it is the dev's reading, not re-run here. None of the eight existing record-path tests at the head mentions the placeholder string (0 hits each), so the report's "no test pinned the old string" holds for this package; the repo-wide answer is the Test shards above.

② Semver level

.changeset/11106-record-path-derived-stages.md declares '@object-ui/plugin-detail': patch. The diff publishes one source file of that package (src/renderers/record-path.tsx), one test file and the changeset; no other released package, no package.json contract field, no @object-ui/types member and no spec pin changes. A key the spec declares and describes takes effect on the authored path; no accepted document is rejected and none is newly accepted. That is a fix: patch is the right level, one changeset as the claim required. Changeset Declaration, Changeset Bump Policy, Changeset Fixed Group Check, Changeset Claim Re-read and Changeset Overwrite Report all conclude success on the head.

Clause-②: no — confirmed. The claim (5898280434) and the PR body both carry Clause-②: no, and the diff agrees: no schema, prop, type or accepted set moves.

③ Boundary flags

open_questions: [] — none to answer.

Deviations (4):

  1. Placeholder wording (English, designer-facing, names the field). Answered in ① item 5: accepted. The field name is what triage asked for; the family precedent is an English literal with interpolation; the new string contains the old one, so any toContain pin elsewhere survives, and an exact-match pin is what the Test shards would have caught.
  2. Commit trailers use the AGENTS.md model-free pair. Read on the PR's three commits: each ends with Co-authored-by: Claude and a Claude-Session: URL. Process, not contract; no gate on the head reads trailers. Accepted.
  3. Dependency-closure build under os-verify-lock via nohup, PID re-read from the process table. Process narration about the dev's own verification; nothing in the diff depends on it, and the head's check-runs are the gate verdicts here. No effect.
  4. Labels plugin and tests from the path labeler. The PR carries exactly those two labels and the label check-run concludes success; zero dev label writes, as reported. Accepted.

Out-of-scope notes (3):

  1. RecordPathComponentProps narrower than the spec row (stages required, label: string). Confirmed at the head in packages/types/src/record-components.ts, and RecordPathComponentProps is listed under @object-ui/types in the CLAIM_DEBT ledger of scripts/check-spec-symbol-derivation.mjs (anchor objectui#4592). Carried by that ledger; the diff reads schema.stages through unknown so the absent branch is not typed unreachable, which is the right handling until the ledger entry is retired. Not this card's; no new card.
  2. deriveStages derives from any field with non-empty options, not only select. Confirmed in the synth body (no type check). The ruling is "the same rule the default page uses"; narrowing or widening it in the renderer would be the second rule the ruling forbids. Acceptance note, no action; a card only if a non-select field with options is measured rendering a wrong path.
  3. A host that binds dataSource but no objectSchema gets the placeholder. Both production hosts bind objectSchema (read at the head); the context's own doc says the palette leaves dataSource undefined. A getObjectSchema self-fetch fallback would add the fetch the ruling did not ask for and a second source of truth. Acceptance note, no card.

Claim exclusions honoured: packages/plugin-detail/src/index.tsx untouched; no open PR conflict on record-path.tsx or the synth file was reported, and the diff touches neither beyond the one renderer. No stop-on-breach was raised.

Implemented-by: claude/issue-11106-record-path-derive-stages
Reviewed-by: session_011p7ikEivgXefNDaE5S5Uec

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review September 29, 2026 21:37
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit 3f61eef Sep 29, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11106-record-path-derive-stages branch September 29, 2026 21:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants