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

feat(app-shell): wire the flow Start node Entry condition to ConditionBuilder - #6668

Merged
os-sales merged 1 commit into
mainfrom
claude/issue-6226-flow-entry-wiring
Aug 28, 2026
Merged

os-sales merged 1 commit into
mainfrom
claude/issue-6226-flow-entry-wiring

Conversation

@os-sales

Copy link
Copy Markdown
Collaborator

Fixes #6226

The flow designer's Start node Entry condition — the predicate a business admin meets first — now opens in the row-based ConditionBuilder, with raw CEL one click away as the escape hatch. Per the maintainer's 2026-08-25 batch-4 ruling (Option A) and the follow-up decision-inbox ruling that put the prerequisite vocabulary card (#6296 / PR #6659) first.

What changed

Four files, ~40 lines of implementation:

file change
inspectors/flow-node-config.ts new optional conditionBuilder on FlowConfigField; set on the Start node's condition descriptor only
inspectors/useFlowScope.ts re-exports the TriggerScope resolveFlowScope already computes (objectName, fieldPrefix, includePrevious)
inspectors/FlowNodeInspector.tsx passes that scope down (2 lines)
inspectors/FlowNodeConfigField.tsx renders ConditionBuilder for an opted-in field that has a declared vocabulary

The vocabulary is declared, never inferred: flow-scope.ts already computed exactly the shape ConditionSubjectVocabulary needs, so it is passed through rather than recomputed, and the component never guesses a site's scope from the value it is handed. Three conjuncts gate the builder — the descriptor opted in, the site declared a vocabulary, and the field is not in interpolate() template mode — so expression does not silently become a synonym for "record predicate".

Context subjects at this site are empty, not the component's record.id / user.* / org.* default. record is precisely the root flow-scope.ts withholds on the start node, so inheriting the default would make the editor emit the one spelling the findUnknownRefs note rendered directly beneath it flags as out of scope — one panel contradicting its own generated output. A closed property test pins this: every subject the field offers has a root that same check accepts.

Compiled output is unchanged — the same CEL the runtime already evaluates, in the author's own quoting (status == "shipped", double quotes preserved).

The fold-or-fence call on criteria: FENCED

flow-node-config.ts declares two expression gates on the start node — :323 condition ("Entry condition") and :411 criteria ("Entry condition (legacy)"). Both line numbers verified on this branch's own ref. Only condition is wired. Three reasons, in order of weight:

  1. criteria is not an authoring surface. Its showWhen: { field: '__legacy__', equals: [] } never matches, so isFieldVisible renders it only when a value is already stored. Nothing is ever authored into it; its whole job is keeping stored legacy metadata visible instead of falling back to raw JSON.
  2. Its own help text steers authors away — Legacy key — prefer "Entry condition" (condition). Giving the retiring key the better editor pulls in the opposite direction from the migration the field itself asks for.
  3. The builder recompiles wholesale on first edit. Row mode emits compile(rows, join) for the entire predicate, so the first touch would normalise a legacy value in place. The raw input leaves the bytes alone until the author deliberately rewrites them, which is the right behaviour for a key whose intended next move is migration to condition, not polish.

Pinned negatively (LEGACY_CRITERIA.conditionBuilder is undefined, and the field still renders the plain input) so the fence cannot be lost by omission later.

Corpus: before and after, at the flow field

The corpus is the 17 shipped start-node entry conditions (objectstack example apps + the HotCRM example in #6226's body). 15 are within the row grammar; 2 mix && with a parenthesised || group, which is a grammar limit of the row model — explicitly a separate card, so they are pinned as expected-raw and held out of the round-trip denominator rather than flattering it.

measured on row-mode adoption
before the flow Entry condition field 0 / 17 — the field rendered a single-line VariableTextInput; row mode did not exist here
after the flow Entry condition field 15 / 17 (15/15 of the row-eligible set)

⚠️ This is deliberately not #6296's number re-measured. That card's 17-condition sweep mounted ConditionBuilder directly with a subjects object written by the test, so it would have scored identically against a tree where FlowNodeConfigField had never heard of the component — it was blind to its own deliverable. Every assertion here instead runs the whole chain: a real draft → resolveFlowScope → the real descriptor out of FLOW_NODE_CONFIG → the field → the builder. FlowNodeInspector.entryCondition.test.tsx closes the last link by mounting the whole inspector, so "does the inspector actually ask for the vocabulary and hand it down" is measured rather than assumed.

Row mode is asserted structurally (N row controls exist + the compiled-CEL preview that only row mode renders), so an implementation that widened a raw fallback to swallow the corpus would score zero here, not full marks.

Ablation — three cuts, each red on exactly the right assertions

Each cut was proved on disk before it was believed: an anchored count of the injected marker (want 1) and of the text that had to disappear (want 0), plus a blob hash that actually moved. Restoration was proved by observation — git checkout HEAD -- <abs path> (never the bare form, which restores from the index the first checkout already wrote), then blob hash back to its HEAD value and git diff HEAD empty for the path. All three legs ran under a trap … EXIT INT TERM with absolute paths. No rebuild is involved: the mutated modules are reached from the suites by relative specifier, never across a package exports boundary — and a cut going red without a rebuild is itself the proof that the source path is live rather than a stale dist.

Baseline: 44 passed / 0 failed.

cut result what it demonstrates
A — subjects wiring removed, builder kept 7 failed / 37 passed Red on only the vocabulary pins. All 15 corpus round-trips stay green — because parse() accepts bare subjects regardless of vocabulary. This is the #6296 blindness reproduced on demand: the corpus number alone cannot see this card's deliverable, and the vocabulary pins are what actually measure it.
B — ConditionBuilder branch removed 33 failed / 11 passed Corpus, vocabulary and escape-hatch pins red. The 11 survivors are exactly the ones that assert the pre-change control: the four fences, the isPlainTextInput positive control, the corpus-size pin, the brace-error and help-text pins, and the three inspector-level negatives (schedule trigger, object-less trigger, decision branches).
C — descriptor conditionBuilder: true removed 34 failed / 10 passed B's signature plus exactly one test — "a template-mode expression field is never a condition builder", which reads the flag directly. A single-assertion discriminator between "render branch cut" and "descriptor opt-in cut".

Nothing here is a uniform red.

Default-path invariance

The five existing record-scoped consumers pass no subjects and are unchanged. views/metadata-admin/widgets.tsx — one of the five, and the subject of #6247, which sits in the decision box — was not edited (0 hits in git diff origin/main --name-only).

Pinned positively rather than by snapshot: ConditionBuilder.subjectVocabulary.test.tsx's DEFAULT-PATH INVARIANCE block asserts the record. prefix, the record.id / user.* / org.* context, the absence of previous.*, and single-quote emission as positive facts, so changing the default goes red. It ran green in the regression below, alongside the suites of four of the five consumers. (widgets.tsx has no dedicated suite — a pre-existing gap, not one this change introduces; verified with a positive control that the path glob works.)

Fences held

  • decision branch conditions are untouched. They are expression-kind columns in an objectList, rendered by FlowObjectListField's cell arm — different component, different commit protocol (setCell + blur-flush vs commit-on-change). Q2, a separate design decision. Pinned: a decision node's Branches repeater still renders an editable cell and zero builder rows.
  • No operator/grammar vocabulary was extended. The two parenthesised conditions stay on raw mode by design.
  • No new current_user / root bindings. The site declares a vocabulary; it adds no evaluator roots.
  • A schedule / manual / webhook trigger, a record trigger with no object, a recordId lookup and a template-mode collection all keep the control they render today.

Verification — every gate's own verdict line, exit code captured before any pipe

Run at final commit 903d6bec on a clean tree (git status --porcelain -uall and git diff HEAD both empty).

check exit verdict line
pnpm --filter '@object-ui/app-shell^...' build 0 os-verify-lock: VERDICT command-exit 0 · held the lock 163s
pnpm --filter @object-ui/app-shell type-check 0 ran tsc --noEmit && tsc -p tsconfig.test.json, no output
vitest — views/metadata-admin/ + views/studio-design/ 0 Test Files 253 passed (253) · Tests 2467 passed | 1 skipped (2468)
pnpm --filter @object-ui/app-shell lint 0 ✖ 2779 problems (0 errors, 2779 warnings) — whole package, not narrowed; zero of them in the six files this PR touches
node scripts/check-changeset-presence.mjs 0 ✅ 4 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)
node scripts/check-changeset-no-major.mjs 0 ✅ No changeset declares a 'major' bump.
check:control-bytes 0 ✅ check-control-bytes: OK (scanned 5506 tracked text file(s); skipped 85 binary).
check:designer-field-key-parity 0 designer-field-key-parity: OK
check:vi-mock-specifiers 0 ✅ check-vi-mock-specifiers: OK (… 743 relative specifier(s) resolved …)
check:esm-specifiers 0 Specifier leg: no un-ledgered package emits an extensionless relative specifier.
check:i18n-keys 0 Every in-scope call-site key resolves against the en pack (2856 keys) …
check:i18n-drift 0 No en value changed in this range.
check:entry-guard 0 ✓ check:entry-guard: 50 scripts/ file(s) — no entry guard outside the baseline
check:self-import 0 ✅ No package names itself inside its own src/.
check:phantom-deps 0 ✅ Every in-scope import is declared by the package that publishes it.
check:eager-closure 2 NOT MEASURED, not red — see below

check:eager-closure exits 2 on its own prerequisite, and says so in its verdict line: No eager-closure report at apps/console/dist/eager-closure.json, so no ceiling could be weighed against the payload it governs. … This is a broken gauge, not a sensitive gate. It needs a console build this run did not produce; CI builds and runs it. Analytically it is not at risk: inspectors/index.ts already statically imports both FlowInspector (→ FlowNodeInspector → FlowNodeConfigField) and HookDefaultInspector / PageBlockInspector / ActionDefaultInspector (→ ConditionBuilder), so ConditionBuilder was in the same static closure as FlowNodeConfigField before this change and the new import edge adds no module to it. (Checked with a control that lazy boundaries do exist in this tree, so "static" is a finding rather than a grep artifact.)

Narrowings, declared

  • vitest: ran 253 of packages/app-shell's 561 test files — views/metadata-admin/ + views/studio-design/, the blast radius of the diff plus every existing ConditionBuilder consumer. The population was read from vitest list --filesOnly (the tool's own resolution, not an assertion), and membership of each targeted consumer suite confirmed with a working negative control. The full 561-file package run does not fit the container's foreground ceiling; CI runs it.
  • eslint: not narrowed — the whole @object-ui/app-shell package was linted (80s).
  • Type-aware linting is not enabled (tseslint.configs.recommended, no parserOptions.project / projectService), so no untouched file's verdict can move as a consequence of this diff.
  • An earlier probe that grepped the vitest log for per-file names returned false zeros — its negative control also returned zero, because the default reporter prints no file names on success. Re-measured with vitest list. Recording it because the zero looked clean.

Consequence worth naming

Switching this field to the builder replaces the {…} variable data-picker with the builder's subject dropdown (row mode) and CelPredicateField's lint + field autocomplete (raw mode). Flow variables are therefore no longer offered on this one field. None of the 17 shipped entry conditions references a flow variable, and the entry gate is evaluated before seedRunVariables runs, so this is not a measured regression — but it is a real change in what the picker offers, and it is stated rather than left to be discovered.


Generated by Claude Code

…ionBuilder

The flow entry gate is the predicate a business admin meets first, and it was
the one condition field in the product that demanded hand-written CEL in a
single-line box while validations, hooks, actions and page blocks two panels
over got the row builder.

It now renders ConditionBuilder, given the trigger record's DECLARED vocabulary
(bare field names + `previous.<field>` + the whole-record `previous`), taken
from the `TriggerScope` `flow-scope.ts` already computes rather than inferred
from the value. Raw CEL stays one click away as the escape hatch.

The builder is opt-in per descriptor (`conditionBuilder`) and additionally
requires a declared vocabulary at the mount site, so `expression` does not
become a synonym for "record predicate": the legacy `criteria` key, a
schedule/manual/webhook trigger, a loop `collection` template and a `recordId`
lookup all keep the control they render today.

Refs #6226
@github-actions github-actions Bot added the tests label Aug 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 52 chunks) 3236.2 KB 3266.6 KB
Main entry chunk (gzip) 157.3 KB 350 KB
Entry file index-D3u0Uq5l.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) 11.89KB 4.50KB
app-shell (runtime-config.js) 20.61KB 7.35KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
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) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
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) 509.24KB 115.61KB
core (index.js) 5.30KB 2.13KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 173.10KB 47.96KB
fields (index.js) 239.05KB 60.06KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.44KB 1.39KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 33.40KB 8.71KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.95KB 10.97KB
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.55KB 0.62KB
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) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 9.53KB 3.38KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 4.64KB 1.50KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 1.93KB 0.88KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 46.85KB 12.89KB
plugin-charts (index.js) 64.66KB 18.32KB
plugin-chatbot (index.js) 190.33KB 45.10KB
plugin-dashboard (index.js) 133.43KB 34.48KB
plugin-designer (index.js) 212.80KB 43.15KB
plugin-detail (index.js) 245.29KB 62.39KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.01KB 32.23KB
plugin-gantt (index.js) 165.16KB 40.33KB
plugin-grid (index.js) 201.62KB 54.56KB
plugin-kanban (index.js) 53.11KB 14.62KB
plugin-list (index.js) 112.86KB 27.54KB
plugin-map (index.js) 20.09KB 6.62KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.51KB 11.94KB
plugin-timeline (index.js) 26.72KB 7.71KB
plugin-tree (index.js) 9.26KB 3.13KB
plugin-view (index.js) 85.87KB 21.12KB
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.66KB 3.50KB
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) 65.97KB 21.98KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 2.44KB 1.21KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 12.13KB 3.65KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 9.30KB 3.22KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 0.99KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
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 (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.72KB 2.24KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 2.59KB 1.31KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
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 (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 3.40KB 1.71KB
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

@os-sales
os-sales marked this pull request as ready for review August 28, 2026 12:05
@os-sales
os-sales added this pull request to the merge queue Aug 28, 2026

Copy link
Copy Markdown
Collaborator Author

✅ ACCEPT — flipped ready, auto-merge on

Reviewer: domain:ui @ objectui execution seat, PM session 8ca04858-ea8e-5b85-9182-de59aa49e00c. Verified against GitHub and the code tree, not against the report's self-description.

Gate reading: all 29 check runs read, returned count compared against total_count: 29. 26 success, 3 skipped (dependabot and the two un-expanded coverage matrix templates), 0 failing, 0 still running. Ready flipped first, auto-merge second.

Fixes #6226 is in the PR body and is correct. The commit message says Refs, but the body's keyword governs closure, and the card's ruled scope — the Start node's Entry condition — is delivered. decision branch conditions were falsified as same-shape back on 2026-08-25 and are Q2, their own design decision.

⭐ The ablation is the best part of this PR, and it is not the corpus number

Cut A removes the subjects wiring and keeps the builder: 7 failed / 37 passed — and all 15 corpus round-trips stay GREEN, because parse() accepts bare subjects regardless of vocabulary.

That is #6296's blindness reproduced on demand. The seat carried a warning into this dispatch — that the inherited 17-condition criterion was subject-agnostic and would have scored the same against a tree with no subjects prop at all — and instead of merely avoiding the trap, this run built an instrument that demonstrates it. The corpus number cannot see this card's deliverable; the vocabulary pins are what measure it. Cut B (33/11) and Cut C (34/10, differing from B by exactly one test that reads the descriptor flag) complete the discrimination. Nothing is a uniform red.

Corpus at the flow field: 0/17 before → 15/17 after (15/15 of the row-eligible set), with the 2 parenthesised mixed-join conditions pinned expected-raw and held out of the denominator rather than flattering it. Row mode is asserted structurally — N row controls plus the compiled-CEL preview only row mode renders — so a widened raw fallback scores zero here, not full marks.

The fold-or-fence call I demanded: FENCED, and the third reason is the one that decides it

criteria (:411) is not wired. Reasons 1 and 2 (its showWhen: { field: '__legacy__' } never matches so nothing is ever authored into it; its own help text steers authors to condition) are sound but would each be arguable. Reason 3 is not:

The builder recompiles wholesale on first edit. Row mode emits compile(rows, join) for the entire predicate, so the first touch would normalise a legacy value in place. The raw input leaves the bytes alone until the author deliberately rewrites them.

For a key whose intended next move is migration to condition, giving it the better editor pulls against the migration. That makes this a "should not", not a "not yet" — so no follow-up card is owed, and the negative pin (LEGACY_CRITERIA.conditionBuilder is undefined, field still renders the plain input) is what keeps the fence from being lost by omission.

The design decision worth naming

Context subjects at this site are declared empty, not inherited from the component's record.id / user.* / org.* default — because record is precisely the root flow-scope.ts withholds on the start node. Inheriting the default would have made the editor emit the one spelling that the findUnknownRefs note rendered directly beneath it flags as out of scope: one panel contradicting its own generated output. That was the central objection in the 2026-08-25 premise falsification, and a closed property test now pins it — every subject offered has a root that same check accepts.

Three conjuncts gate the builder (descriptor opted in, site declared a vocabulary, field not in template mode), so expression does not silently become a synonym for "record predicate". A schedule/manual/webhook trigger, an object-less record trigger, a recordId lookup and a template-mode collection all keep today's control, each pinned.

Stated rather than left to be discovered

Switching this field to the builder replaces the {…} variable data-picker with the builder's subject dropdown. Flow variables are therefore no longer offered on this one field. None of the 17 shipped entry conditions references one, and the entry gate is evaluated before seedRunVariables runs, so it is not a measured regression — but it is a real change in what the picker offers, and the PR says so.

Also ratified: check:eager-closure reported NOT MEASURED with its own verdict line and an analytic argument (inspectors/index.ts already statically imports both sides, so the new edge adds no module), checked against a control that lazy boundaries do exist in this tree — so "static" is a finding rather than a grep artifact. And a self-reported measurement failure: a first probe grepping the vitest log for per-file names returned false clean zeros because its negative control also returned zero — the default reporter prints no file names on success. Caught by the control, re-measured with vitest list. That is the discipline working exactly as intended.


Generated by Claude Code

Merged via the queue into main with commit f352a69 Aug 28, 2026
29 checks passed
@os-sales
os-sales deleted the claude/issue-6226-flow-entry-wiring branch August 28, 2026 12:18
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Oct 7, 2026
…t moved (objectui#10979) (objectstack-ai#11046)

Fixes objectstack-ai#10979
Clause-②: no — release-note prose only; no accept set or public surface
changes.

## What this does

Eleven pending changesets were named on the card as stating a
present-tense repository count that is false on `main`. Each count was
re-derived here on `main` at `2eaf5be27` (the commit the PM read at
dispatch), with the query printed below and, as its positive control,
the same query at the entry's own landing commit or base.

- **Nine entries re-derive false on `main`.** Each gets one dated note
(2026-09-29), placed directly after the paragraph that holds the counted
sentence. That is the objectui#10877 / PR objectui#10891 form. The note
quotes the sentence, gives the reading at the entry's own landing commit
(or base), names what moved it and in which PR, and gives the
re-measured reading at `2eaf5be27` in the past tense. Two of the nine
(`5134`, `7497`) do not re-derive even at their own base, and their
notes say so instead of claiming the sentence was ever true.
- **Two entries are left untouched** (`9187`, `3965`). Their sentences
re-derive true on `main`; the reasons are in the table.
- Frontmatter is byte-identical in all eleven files, and no existing
line is edited or deleted: `git diff --numstat 2eaf5be HEAD` is 98
insertions, 0 deletions, over 9 files.
- **No new changeset.** The diff is `.changeset/` only, and
`check-changeset-presence` says none is owed (output below).

## The ruling this write relies on

On 2026-09-29, in the `domain:spec @ objectui` seat's chat, the
maintainer chose 「Allow the appended note (Recommended)」. Recorded on
this card as comment `5883370240` (the same text is `5883360525` on
objectui#4356):

> You allow developers to append dated correction notes to pending
.changeset files (appended only, no existing line or frontmatter
edited). ... The same permission also unblocks objectui#10974 and
objectstack-ai#10979, which I dispatch straight away.

## Per entry

Readings are over tracked files at a named commit. "Base" means the
parent of the squash commit, the commit the change landed on.

| Entry | Counted sentence (quoted) | Reading at landing | Reading on
`main` `2eaf5be27` | Query | Outcome |
|:--|:--|:--|:--|:--|:--|
| `7561-filter-builder-operator-trigger-label` | "the spec's alias table
`gt` / `lt` / `eq`, which three schema-catalog entries author today" | 3
catalog files at `9ae871d00` | 0 files; control: the same 3 fixtures
carry `equals` / `less_than` / `greater_than` | Q1 | **Noted.** True at
landing; objectui#6939 (PR objectstack-ai#9558) respelled all seven operators. |
| `component-meta-converge-and-deprecate-alias-5893` | "In-repo,
`PluginComponentMeta` has exactly one occurrence — its own export line"
| 1 line in 1 file at the base `575b71c850`; 13 lines in 5 files at the
landing commit `6d1c15536` itself | 19 lines in 7 files; 1 importing
`.ts` file, this change's own pin | Q2 | **Noted.** True at its base.
Its own pins and prose moved it, then objectui#5674 (PR objectstack-ai#10826) added
more. |
| `6296-conditionbuilder-subject-vocabulary` | "all five files that
mount it today — six mount sites" | 6 sites in 5 files at `88b15fddc` |
7 sites in 6 files | Q3 | **Noted.** objectui#6226 (PR objectstack-ai#6668) mounted it
in `FlowNodeConfigField`, a flattened-scope site. |
| `6487-visibility-advice-per-tier` | "All three in-repo call sites pass
their tier explicitly" | 4 calls in 3 files at `c71e14d1c`, from 3 gates
| 5 calls in 3 files, from 4 gates; all 5 pass a tier | Q4, plus each
call's sixth argument read by hand | **Noted.** objectui#6445 (PR objectstack-ai#6510)
added the `disabled` / `disabledOn` enablement gate. True at landing
only when counting gates; the note says so. |
| `9187-record-highlights-layout-two-values` | "every in-tree `layout:
'grid'` belongs to a different component" (names 3 files) | 8 files at
`96919a459`, 3 of them this change's own | 13 files | Q10 | **Not
noted.** The sentence states no count, and its claim re-derives true:
every hit belongs to `detail-view`, `ai-recommendations`, the
`SchemaForm` tests' form-layout parameter, or this change's own pin and
prose. The parenthetical was already non-exhaustive at landing
(`ai-zero-read-members-retired-8178.test.ts` and
`SchemaForm.gridCellNaming.test.tsx` carried the literal and are not
named), so nothing went false after landing. |
| `list-view-nested-aria-label-i18n-5134` | "the resolver four other
in-repo read sites already use" | 10 other files importing it, 17 call
lines, at the base `e40b8579bd` | 14 other files, 27 call lines | Q5 |
**Noted.** False at its own base too; the note does not claim otherwise.
|
| `3965-mint-box-neutral-container` | "the catalog's 25 remaining
`div`-authoring fixtures (80 nodes) migrate to it" | 86 `div` nodes in
28 files at the base `19f363736e`, and 6 in 3 at `a04d7c65c`: 80 nodes
in 25 files migrated | 6 nodes in 3 files, unchanged | Q11 | **Not
noted.** The figure describes this change's own migration and re-derives
exactly. The residue (the exempt `components-basic-div` pair, 5 nodes,
plus one test string) is unchanged since landing. |
| `queryparams-closed-keys-7497` | "packages, apps, examples, e2e and
scripts trees (4,362 files)" | At the census base `7dcda9cd4` that the
commit message names: 5,203 tracked files, 4,344 TS/JS sources. No
tracked-file reading gives 4,362. | 6,700 tracked files, 5,819 TS/JS
sources | Q6 | **Noted.** False on `main` by any tracked-file reading.
The note does not claim the figure held at its base. The census's zero
was not re-run. |
| `6837-reference-to-arm-deletion` | "`normalizeSchemaReferenceKeys`,
which has exactly two production call sites" | 2 at `045d20ba8` | 3 (2
in `MetadataProvider`, 1 in `ObjectStackAdapter.getObjectSchema`) | Q7 |
**Noted.** objectui#7650 (PR objectstack-ai#8868) added the by-name serve path call. |
| `8450-inspector-select-placeholder` | "13 of the 45 call sites" and
"all 45 call sites, none of which passes a placeholder of its own" | 45
mounts in 13 files at `0c4694437`, 0 passing `placeholder` | 47 mounts
in 13 files, 1 passing `placeholder` | Q8, plus an element scan for a
`placeholder=` attribute | **Noted.** objectui#6830 (PR objectstack-ai#9110) gave the
flow-node select its own placeholder. objectui#7551 (PR objectstack-ai#9972) and
objectui#7597 (PR objectstack-ai#10527) each added a mount that offers a `''` row. The
13 / 32 split is not re-classified, and the note says so. |
| `7415-action-type-input-rename` | "517 JSON files (433 of them the
schema catalog)" | At the base `6411def250`: 433 catalog schema JSON
files, and the control is 127 plain `button` nodes, matching the
sentence. 517, 4,797 and 2,410 do not re-derive from tracked files. |
432 catalog schema JSON files; control 119; the zero still 0 | Q9 |
**Noted.** The re-derivable figure moved (433 to 432). The note names
the base commit and scopes out the rest. |

## Queries, as printed

Each line below was re-run in exactly this form. REV is the commit named
in the table. A match on a tag-shaped name is spelled `\x3c`, because
the body sanitizer eats a literal opening angle bracket.

```bash
# Q1
git grep -lE '"operator"\s*:\s*"(gt|lt|eq)"' REV -- examples/schema-catalog | wc -l
git grep -lE '"operator"\s*:\s*"(equals|less_than|greater_than)"' 2eaf5be -- examples/schema-catalog/src/schemas/components-complex-filter-builder | wc -l
# Q2
git grep -h -c PluginComponentMeta REV | paste -sd+ | bc; git grep -l PluginComponentMeta REV | wc -l
git grep -lE 'import[^;]*PluginComponentMeta' 2eaf5be -- '*.ts' '*.tsx' | wc -l
# Q3
git grep -nP '\x3cConditionBuilder\b' REV -- ':!*.test.*' ':!**/__tests__/**' ':!*.md'
# Q4
git grep -nE 'reportUnresolvableVisibilityPredicate\(' REV -- ':!*.test.*' ':!**/__tests__/**' ':!*.md' ':!packages/react/src/utils/visibilityDiagnostic.ts'
# Q5
git grep -lE 'import \{[^}]*\bresolveI18nLabel\b' REV -- ':!*.test.*' ':!**/__tests__/**' ':!*.md' ':!*.mdx' ':!packages/plugin-list/src/ListView.tsx' | wc -l
git grep -nE '\bresolveInlineI18nLabel\(' REV -- ':!*.test.*' ':!**/__tests__/**' ':!*.md' ':!*.mdx' ':!packages/plugin-list/src/ListView.tsx' | grep -vE '^[^:]+:[^:]+:[0-9]+:\s*(\*|//)' | wc -l
# Q6
git ls-tree -r --name-only REV -- packages apps examples e2e scripts | wc -l
git ls-tree -r --name-only REV -- packages apps examples e2e scripts | grep -cE '\.(ts|tsx|js|jsx|mjs|cjs|mts|cts)$'
# Q7
git grep -nE '\bnormalizeSchemaReferenceKeys\(' REV -- ':!*.test.*' ':!**/__tests__/**' ':!*.md'
# Q8
git grep -nP '\x3cInspectorSelectField\b' REV -- ':!*.test.*' ':!**/__tests__/**' ':!*.md'
# Q9
git ls-tree -r --name-only REV -- examples/schema-catalog/src/schemas | grep -cE '\.json$'
git grep -hoE '"type"\s*:\s*"button"' REV -- ':(glob)examples/**/*.json' ':(glob)apps/console/**/*.json' ':(glob)content/docs/**/*.json' ':(glob)packages/**/*.json' | wc -l
git grep -hoE '"type"\s*:\s*"action:(button|icon)"' REV -- ':(glob)examples/**/*.json' ':(glob)apps/console/**/*.json' ':(glob)content/docs/**/*.json' ':(glob)packages/**/*.json' | wc -l
# Q10
git grep -lE "layout['\"]?\s*:\s*['\"]grid['\"]" REV -- ':!**/CHANGELOG.md'
# Q11
git grep -h -cE '"type"\s*:\s*"div"' REV -- examples/schema-catalog | paste -sd+ | bc
```

At its landing commit or base, each query reproduces the sentence it
tests (the "Reading at landing" column). That is the positive control.
The exceptions are `5134` and `7497`, where no reading reproduces the
figure, and the table says so. The checkout is shallow (boundary
2026-07-20). Every commit named above is inside that window: the landing
commits date from 2026-08-21 to 2026-09-12, and each supersession
ordering was read with `git merge-base --is-ancestor`, which returned
exit 0.

## Verification (head `b9a21e2e4`)

Frontmatter md5 (first 8 hex digits), identical at `2eaf5be27` and at
head for all eleven entries:

| Entry | Frontmatter md5 |
|:--|:--|
| 7561 | `3d9e2a1e` |
| 5893 | `ecedb10c` |
| 6296 | `4cdeb4c7` |
| 6487 | `02817e1c` |
| 9187 (untouched, whole file `64351ea9` at both) | `ecedb10c` |
| 5134 | `c9a085e4` |
| 3965 (untouched, whole file `0dded8e3` at both) | `125d3a04` |
| 7497 | `ecedb10c` |
| 6837 | `9f3f1cc6` |
| 8450 | `4e8ce550` |
| 7415 | `3d9e2a1e` |

- Added lines: 0 angle brackets, 0 control bytes, 0 model identifiers
and 0 line addresses. Every citation is a quoted sentence, a symbol or a
file name.
- `node scripts/check-changeset-presence.mjs` exited 0: "9 file(s)
changed, 0 of them published source … 0 changeset(s) added. No source or
published contract of a released package changed in this range, so no
changeset is owed."
- `node scripts/check-changeset-no-major.mjs` exited 0. `node
scripts/check-changeset-fixed.mjs` exited 0.
- `node scripts/check-changeset-claims.mjs` exited 0. The
self-contradiction reading covers these 9 bodies, and nothing is
negated.
- `node scripts/check-changeset-overwrite.mjs` exited 0 (report-only).
It lists the 9 modified entries, and each one's "declared at base"
equals its "declares now".
- `pnpm check:pending-changeset-literals` exited 0. `pnpm
check:control-bytes` exited 0.
- `pnpm check:new-line-citations` exited 0: "VERDICT
new-cross-file-line-citations: 0 new citation(s)".
- `pnpm check:installed-pin-claims` exited 0.
- `node scripts/check-governed-queue-guard.mjs --test` over the 9 paths
exited 0: "NOT GOVERNED".
- `pnpm exec vitest run` over
`scripts/__tests__/check-changeset-{claims,fixed,no-major,overwrite,presence}.test.ts`,
`check-pending-changeset-literals.test.ts` and
`changeset-polarity-census.test.ts`: Test Files 7 passed (7), Tests 292
passed (292).
- The adjacent suites that walk `.changeset/` (`body-dialect-census`,
`dollar-dialect-alias-census`, `check-installed-spec-pin-claims`,
`check-control-bytes`, `quick-reference-current-release-4143`,
`render-changeset-claims-comment`): Test Files 6 passed (6), Tests 164
passed (164). No test names any of the nine files.

## Acceptance notes

These are observations only. None is filed.

- `6837-reference-to-arm-deletion` carries other present-tense counts
that the card does not name ("Eleven of the sixteen sites", "Three
readers"). They are not measured here.
- `8450`: the "13 of the 45" / "The other 32" classification is not
re-derived. The note says it stays the reading of that change.
- `3965`: "the catalog ratchet closes to zero tolerance for
JSON-authored `div`" reads as absolute, while the `components-basic-div`
exemption (2 fixture files, 5 nodes) stands. This is unchanged since
landing.
- `5134`: at its base, a search for the unaliased `resolveI18nLabel(`
returned four lines, all doc comments. This is recorded as an
observation, not as the source of the figure.

Session: `https://claude.ai/code/session_012UwY3ahMixEFkfTUxMVkYm`
(`domain:spec @ objectui` seat, `mode:subagent` dev run).

---
_Generated by [Claude
Code](https://claude.ai/code/session_012UwY3ahMixEFkfTUxMVkYm)_

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

2 participants