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

fix(app-shell): the flow designer stops warning on a source node's own outputs on its out-edges; the Problems panel scan takes the connector registry (objectui#11085) - #11133

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-11085-flow-scope-warnings
Sep 29, 2026

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Part of #11085
Clause-②: no

Two designer surfaces reported a guard reference as "not a reference in scope" although the engine writes it before it evaluates the guard. This PR completes site 2 (both surfaces) and lands the pure half of site 1. Site 1's host wiring is held back on purpose, see "Why Part of, not a full close" below.

Site 2: an edge guard sees its source node's own outputs (complete)

  • inspectors/flow-scope.ts: edgeSourceOutputRefs(draft, edge, connectors) is the one rule for which of the source node's own outputs are in scope on its out-edge: the source's nodeOutputRefs, except on a fault edge (the engine walks it only when the node failed, with nothing written back, and never evaluates its condition) and on an edge leaving the start node (it contributes the trigger record, the rule resolveFlowScope already applies). resolveEdgeScope(draft, edge, locale, connectors) is resolveFlowScope at the source plus those refs, de-duplicated by token.
  • inspectors/useFlowScope.ts: useEdgeScope(draft, edge, connectors) is the React twin: useFlowScope at the source with edgeSourceOutputRefs as its extraRefs. The useFlowScope doc that told edge callers to pass the source id (the defect itself) now routes them to useEdgeScope.
  • inspectors/FlowEdgeInspector.tsx: the guard's picker and its scope note read useEdgeScope.
  • previews/flow-expr-problems.ts: the Problems panel's edge loop reads resolveEdgeScope.

Site 1: the connector registry reaches the Problems panel's scan (pure half only)

  • flowExpressionProblems(draft, locale, connectors) threads the registry into resolveFlowScope for nodes and resolveEdgeScope for edges.
  • buildFlowProblems lives in previews/flow-problems.ts (the order placed it in flow-expr-problems.ts); it takes an optional connectors argument and passes it through.

Why Part of, not a full close

The Problems panel's host, the only caller of buildFlowProblems, is previews/FlowPreview.tsx: its problems memo feeds the Problems panel, the canvas badges, the banner and the red error ring. The dispatch order bars that file (objectui#10862 slice 4 edits it in parallel) and says to stop and report if the host lives there, so the host edit is not made here. It is three lines, and adds nothing beyond this PR's seam:

  1. import useConnectorRegistry from ../inspectors/connector-input-fields.js and hasCommittedConnectorAction from ../inspectors/flow-scope.js;
  2. beside the problems memo: const connectors = useConnectorRegistry(hasCommittedConnectorAction(d));
  3. pass connectors into the buildFlowProblems({ ... }) call and add it to that memo's dependency list.

Until then a guard post.ok == true downstream of a committed connector action still draws the Problems-panel warning (the inspectors accept it since objectui#11084), and objectui#11085 stays open for that half.

Engine premise, re-measured on objectstack origin/main 14f80e23

  • packages/services/service-automation/src/engine.ts, executeNode: on success the step is logged, then the block commented "Write back output variables" sets node.id + '.' + key for every key of result.output, and only after it does traverseNext run.
  • get_record writes its outputVariable inside its executor (builtin/crud-nodes.ts, variables.set(outputVariable, record)), before control returns to traversal.
  • traverseNext selects out-edges with e.type !== 'fault'. On failure the engine sets $error and executes the fault edge's target directly: no condition evaluated, no output written back.

Pins (per site: the reference the engine writes is clean, a reference no node writes still warns)

  • inspectors/flow-scope.test.ts, describe "edge scope — the source node’s own outputs are in scope on its out-edges (objectui#11085)": lead joins the out-edge of a get_record with outputVariable: lead while the node scope is unchanged; a fault edge, a start-node edge and a missing source add none; post.ok joins a connector action's own out-edge only with the registry.
  • previews/flow-expr-problems.test.ts, describe "flowExpressionProblems — references the engine writes (objectui#11085)": site 2 lead.status == 'open' clean on the out-edge, ghost.status still warns, the fault edge still warns; site 1 post.ok == true clean on a node, its own out-edge and a later edge with the registry, reported without it, ghost.ok reported with it.
  • previews/flow-problems.test.ts, describe "buildFlowProblems — the connector registry reaches the expression scan (objectui#11085)".
  • inspectors/FlowEdgeInspector.sourceOutputs-11085.test.tsx: through the real edge inspector wiring, no note for lead.status, a note for ghost.status, a note for lead.status on a fault edge.

Assertions read the verdict's level, target and named root, never the note's wording.

Verification (all at HEAD 2be3ab1a2)

  • pnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/metadata-admin/previews/: 79 files, 1065 tests passed.
  • pnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/metadata-admin/inspectors/: 114 files, 1583 passed, 1 skipped (a pre-existing skipIf in flow-node-config.spec-reconciliation.test.ts).
  • The 22 test files that name a changed module or its consumers (FlowPreview, FlowCanvas, ProblemsPanel, FlowInspector, spec-symbol-parity): 434 passed.
  • pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build exit 0, then pnpm --filter @object-ui/app-shell type-check exit 0; tsc -p tsconfig.test.json --listFilesOnly lists all four touched test files.
  • eslint on the 9 changed TS files (--format json: 9 files): 0 errors, 2 warnings, both no-explicit-any on the pre-existing (draft as any).edges line of FlowEdgeInspector.tsx, a line this diff does not touch. Type-aware linting is not enabled in eslint.config.js (no parserOptions.project / projectService), so this diff cannot move a lint verdict on an untouched file.
  • check-changeset-presence, check-control-bytes, check-new-cross-file-line-citations (0 new), check-vi-mock-specifiers, check-vi-mock-inherit, check-vi-mock-override-shape, check-test-path-roots, check-changeset-claims, check-pending-changeset-literals, check-changeset-no-major, check-changeset-fixed: all exit 0. check-changeset-claims names three pending changesets that mention flow-expr-problems.ts / flow-scope.ts; each paragraph was re-read and none is falsified by this diff.

Ablations (one-shot, objectstack scripts/ablation-replace.mjs wrap mode; the tests import src by relative path, so no dist is on the resolution path)

  1. edgeSourceOutputRefs returns none: 5 red (two flow-scope edge-scope pins, the scan's site-2 lead.status pin, the scan's site-1 own-edge post.ok assertion, the edge inspector's lead.status pin); every control stayed green. Restore proven: blob equals HEAD and git diff HEAD is empty.
  2. buildFlowProblems drops connectors: 1 red (its registry pin). Restore proven.
  3. flowExpressionProblems drops connectors from the node scope: 2 red (the scan's site-1 node pin and the buildFlowProblems registry pin). Restore proven.

Declared narrowing

  • Not run locally: the rest of packages/app-shell and the repo-wide farm, which are CI's. A whole metadata-admin/ run (344 files) was started and stopped after 10 minutes without a verdict: NOT MEASURED, because it held the shared verify lock past the foreground cap while a sibling seat was parked behind it. previews/ and inspectors/ were run whole instead, plus the 22-file reader list; that list is a name grep, so a test reaching these modules only through a registry without naming them is outside it unless it sits in those two directories.

Acceptance notes

  • The file surface grew past the claim's list by two files, both forced: previews/flow-problems.ts (home of buildFlowProblems) and inspectors/useFlowScope.ts (its edge doc would have kept teaching the defect; useEdgeScope lives beside useFlowScope).
  • Unmeasured observation, not filed: an out-edge of the START node resolves the start node's own scope, where trigger fields are bare (status), while downstream nodes read record.status. Whether the engine binds bare trigger fields when it evaluates the start node's out-edge guards was not measured here. The Problems panel skips those edges; only the edge inspector's picker offers the bare spelling. Carrier: none.

Generated by Claude Code

… flow expression scan takes the connector registry

The engine writes a node's outputs before traverseNext evaluates its
out-edge guards, so an edge's scope is the scope at its source plus the
source's own outputs. One rule, edgeSourceOutputRefs, is read by the
Problems panel's edge scan (resolveEdgeScope) and the edge inspector's
note (useEdgeScope). A fault edge keeps the scope at its source: the
engine walks it only when the node failed, with nothing written back.

flowExpressionProblems and buildFlowProblems take an optional connectors
argument and thread it into resolveFlowScope / resolveEdgeScope, so a
committed connector action's declared output keys are judged in scope
when the host passes the registry.

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

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 3 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/10743-studio-screen-visiblewhen-live.md

  • names flow-expr-problems.ts → packages/app-shell/src/views/metadata-admin/previews/flow-expr-problems.ts — edited by this change

    • buildScreenSpec keeps every authored field and carries its visibleWhen raw, as the runtime screen executor sends it to the client. ScreenView — the renderer the flow runner uses — decides it live over the screen's declared fields and the values being collected, so ticking the sibling checkbox or typing a discount above zero reveals the field in the preview exactly as it does for the end user, and the "N fields hidden by their visible when condition" hint follows the values. - The Studio no longer has an evaluator of its own for this key: isFieldVisibleWhen, fieldVisibility and the simulator's evalVisibleWhen are removed. buildScreenSpec takes no variables; hiddenFieldCount takes the built spec and the collected values. - The Debug run's screen step judges SCOPE, never value: unevaluableVisibleWhen names, as an error on the paused step, a field whose predicate references an identifier that is not a field declared on this screen (a run variable such as needsApproval == true, the runtime's vars.* root), does not parse as CEL (a {var} brace), or is a shape registerFlow refuses — with the nearest declared field where one is close. A predicate over a sibling field (discount > 0, record.discount > 0) is not reported; it used to be named as "hidden because it could not be evaluated". A comprehension's iteration variable (["a","b"].exists(t, t == note)) is bound, not a root, and is not reported. - The Problems panel (flow-expr-problems.ts) judges the screen node's fields[].visibleWhen column by that same rule instead of the flow scope: it used to warn that discount "is not a reference in scope at this step" on the sibling-field shape and stay silent on a run variable; it now warns on the run variable (needsApproval is not a field on this screen) and is silent on the sibling. Every other expression slot keeps the flow scope. - The screen field inspector's visibleWhen placeholder is a sibling-field example (createOpportunity == true); it used to read stage == "review", a run-variable shape. - ScreenView exports screenPredicateScope, unchanged, so the Studio reads the bare roots a predicate may name off the renderer's own scope; only the record namespace, which the renderer binds inside evalFieldPredicate, is restated by name.

.changeset/6296-conditionbuilder-subject-vocabulary.md

  • names flow-scope.ts → packages/app-shell/src/views/metadata-admin/inspectors/flow-scope.ts — edited by this change

    The builder built every row subject as record. + field name, plus a fixed record.id / user.* / org.* context list. That is correct for all five files that mount it today — six mount sites, since ActionDefaultInspector mounts it twice — because every one of them is a record-scoped site. It is wrong for a flattened-scoped site such as the flow designer's entry condition, where the trigger record's fields are the top-level evaluation context (bare status) and the prior values arrive as previous.FIELD. This repo's own flow-scope.ts already computes that distinction (fieldPrefix: onStart ? '' : 'record.', includePrevious), and objectstack's packages/formula/src/validate.ts defines the two scopes.

.changeset/flow-entry-condition-builder.md

  • names flow-scope.ts → packages/app-shell/src/views/metadata-admin/inspectors/flow-scope.ts — edited by this change

    The builder is given the trigger record's own vocabulary — bare field names and previous.ANGLE-BRACKETS(field), resolved by flow-scope.ts — rather than the record-scoped default its five other consumers use, so the subjects it offers are the spelling this surface evaluates and teaches. 15 of the 17 entry conditions shipped in the example apps now open as structured rows; the remaining two mix && with a parenthesised || group, which is a grammar limit of the row model and keeps them on raw mode by design.

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Angle-bracketed names in the quoted prose above are rewritten as ANGLE-BRACKETS(name): GitHub deletes tag-shaped fragments from a stored body, and a quote that silently loses the identifier it is about is worse than a visible repair.

Compared the checked-out tree with bf43afafa (merge-base with origin/main): 11 file(s) changed outside .changeset/, read against 1768 pending declaration(s) that publish a body (2374 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3111.1 KB 3149.4 KB
Main entry chunk (gzip) 149.4 KB 350 KB
Entry file index-D_6B0jcE.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.57KB 134.15KB
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.11KB 66.33KB
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.55KB 62.25KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 170.39KB 43.52KB
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) 31.93KB 9.33KB
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

…y for the expression scan

FlowPreview reads the runtime connector registry the way the inspectors
do, only when the draft holds a committed connector_action
(useConnectorRegistry(hasCommittedConnectorAction(d))), and passes it to
buildFlowProblems. A later node's reference to that action's declared
output is then judged in scope on the Problems panel and the canvas
badge, both fed by the one problems list.

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.1 KB 3149.4 KB
Main entry chunk (gzip) 149.4 KB 350 KB
Entry file index-DVA7NqS_.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.57KB 134.15KB
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.11KB 66.33KB
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.55KB 62.25KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 170.39KB 43.52KB
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) 31.93KB 9.33KB
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

…r-output fix

The host now passes the connector registry, so the changeset describes
that user-visible outcome instead of only the new argument.

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.2 KB 3149.4 KB
Main entry chunk (gzip) 149.5 KB 350 KB
Entry file index-Jzv2HDKx.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.11KB 66.33KB
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.55KB 62.25KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 170.39KB 43.52KB
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: a2f67a9b177a8c13002df5a51bae42e25b3a9990
Local-runs: none

Inputs: card objectui#11085 (body, triage 5888978460, claim 5895412336, dev reports 5896152827 and 5898745840, seat answer 5896244537), PR objectui#11133 (body, 12-file list, net diff against main, commit list), and the check-runs on the head with filter=latest. Context reads at the head only: flow-scope.ts, useFlowScope.ts, connector-input-fields.ts, FlowPreview.tsx, FlowCanvas.tsx, src/index.ts, package.json, and the flow inspector / preview modules for remaining scope call sites.

Gate verdicts on the head (filter=latest, read at 21:07Z after the last shard completed): 43 check-runs, all completed; 40 success, 3 skipped (the two coverage matrix placeholders and dependabot), 0 failed, 0 in progress. Among the successes: Lint, Type Check, Test shards 1/8 through 8/8, Test (dist pins), Build and E2E, Spec Main Shape Gate, Changeset Declaration, Changeset Bump Policy, Changeset Claim Re-read, Changeset Fixed Group Check, Control Byte Scan, Line Citation Gate, Inert vi.mock Specifier Check, Governed Surface Queue Guard.

Completion: judged as the seat's answer 5896244537 (route A) directs, on whether the diff at this head completes the card, not on the body's Part of first line. Both sites are live at this head: site 1 (the Problems panel's scan reads the connector registry, host wired in FlowPreview.tsx) and site 2 (an edge guard's scope includes its source node's outputs, one rule, both surfaces).

① Derived judgments

  1. edgeSourceOutputRefs(draft, edge, connectors?) in inspectors/flow-scope.ts — RIGHT. The one rule: the source node's nodeOutputRefs(source, connectors); none when the edge has no source id, when edge.type is fault, when the source is missing, or when the source is the start node. This is the triage's direction on the engine ordering it measured (result.output written back as node.id.key, then traverseNext; fault edges filtered out of traverseNext and walked on failure with no condition and no write-back). The start exclusion mirrors resolveFlowScope's own start skip, which contributes the trigger record instead. The accept set of a node's own scope is unchanged (pinned: resolveFlowScope(flow, 'fetch') still lacks lead).
  2. resolveEdgeScope(draft, edge, locale?, connectors?) — RIGHT. resolveFlowScope at the source plus edgeSourceOutputRefs, de-duplicated by token, trigger carried from the source; a missing source resolves the flow variables alone (pinned). FlowEdgeLike gains an optional type, an internal interface not re-exported.
  3. useEdgeScope(draft, edge, connectors?) in inspectors/useFlowScope.ts — RIGHT. useFlowScope at the source with edgeSourceOutputRefs as its memoized extraRefs (merged before de-dup and grouping, and the refs carry their outputs / loop group ids, so they land in the picker's sections). Hook order is unconditional. The useFlowScope doc that told edge callers to pass the source id (the defect's spelling) now routes them to useEdgeScope.
  4. FlowEdgeInspector.tsx — RIGHT. The guard's picker and its scope note both read useEdgeScope(draft, edge, connectors); the call stays before the if (!edge) return, and the edge's type reaches the fault rule. Pinned through the real wiring (FlowEdgeInspector.sourceOutputs-11085.test.tsx): no note for lead.status, a note for ghost.status, a note for lead.status on a fault edge; assertions read presence by root, not wording.
  5. flowExpressionProblems(draft, locale?, connectors?) — RIGHT. Nodes resolve resolveFlowScope(draft, nodeId, undefined, connectors), edges resolve resolveEdgeScope(draft, edge, undefined, connectors); edges leaving the start node and default edges are skipped as before, consistent with the pure scan's root-only premise. The Problems panel's edge scan and the edge inspector now read the same rule: no per-caller patch (the triage's bar).
  6. BuildFlowProblemsArgs.connectors? and buildFlowProblems passing it through in previews/flow-problems.ts — RIGHT. Optional, so every existing caller is unchanged; the doc names the host's read shape.
  7. Host wiring in previews/FlowPreview.tsx — RIGHT. const connectors = useConnectorRegistry(hasCommittedConnectorAction(d)) beside the problems memo, passed into buildFlowProblems, added to the memo's deps. useConnectorRegistry(enabled) returns its useState array (a stable reference until the fetch resolves, so the memo does not thrash) and its effect returns before fetch when enabled is false: a flow with no committed connector action never reads the registry, pinned by the host test's fourth probe. The one problems list feeds the panel rows, the canvas badges, the error ring and the banner, so the fix reaches both user-visible warning surfaces.
  8. Remaining scope call sites at the head — RIGHT. Among the flow inspector and preview modules, the only other useFlowScope caller is FlowNodeInspector.tsx (a node's own scope, correctly unchanged); no reader derives an edge's scope from edge.source any more.
  9. Pins per site with lit controls — RIGHT, as the triage asked: lead.status clean on the out-edge of a get_record with outputVariable: lead, ghost.status still warns, a fault edge still warns; post.ok clean on a node, its own out-edge and a later edge with the registry, reported without it, ghost.ok reported with it; buildFlowProblems threads the registry. Assertions read level, target and named root.
  10. Merge from main, no rebase — RIGHT. a183a57dc is a two-parent merge of 9fd6c2c6f onto 2be3ab1a2, whose parent 8a5ae3d63 is unchanged; the net diff touches FlowPreview.tsx at +9 / -2 only, so slice 4's two chrome strings from main are kept.
  11. Changeset final paragraph — RIGHT. a2f67a9b1 is .md-only and the paragraph now names the user-visible fix: the Problems panel stops warning on a later node's reference to a committed connector action's declared output, reading the registry only when the draft holds such a node.

② Semver level

.changeset/11085-flow-edge-scope-source-outputs.md declares '@object-ui/app-shell': patch. Matches what the diff publishes: @object-ui/app-shell exports . from src/index.ts, which re-exports none of flow-scope.ts, useFlowScope.ts, flow-problems.ts, flow-expr-problems.ts, FlowEdgeInspector.tsx or FlowPreview.tsx; the new exports (edgeSourceOutputRefs, resolveEdgeScope, useEdgeScope) and the optional connectors arguments are internal to the metadata-admin engine, and the observable change is a bug fix (false designer warnings removed). The changeset gates on the head (Declaration, Bump Policy, Claim Re-read, Fixed Group Check) are green.

Clause-②: no — present in the PR body and correct: no spec schema, prop, type or runtime accept set moves; the designer's scope judgement is brought in line with what the engine already writes.

③ Boundary flags

Round 1 (5896152827):

  • D1, first line Part of #11085 not the Fixes form — ANSWERED by the seat's ruling 5896244537: the body is written once, the host lines land on this claim, the seat closes the card after the merge. At this head both sites are live, so the diff completes the card.
  • D2, title reshaped — ANSWERED: the title describes what the diff does at this head (both halves), no contract effect.
  • D3, surface grew by previews/flow-problems.ts and inspectors/useFlowScope.ts — ACCEPTED as forced: buildFlowProblems lives in flow-problems.ts (the claim mislocated it), and the edge twin belongs beside useFlowScope, whose doc taught the defect; this serves the triage's one-rule bar rather than widening scope.
  • D4, Zone 2 mechanism re-measured and the host read not made in round 1 — ANSWERED by round 2 landing the host read under the seat's answer.
  • D5, whole metadata-admin/ vitest run NOT MEASURED — ANSWERED by the head's check-runs: the Test shards on this head are the gate verdict for the repo-wide run.
  • open_questions[0] (how the host edit lands) — ANSWERED by the seat: route A, taken.

Round 2 (5898745840):

  • D1, an .md-only changeset commit after the code gates ran at bf37480d5 — ACCEPTED: the code is byte-identical between the two, and the check-runs on a2f67a9b1 cover the head directly.
  • D2, the host pin reads the Problems-panel rows and canvas badges, not the banner — ACCEPTED: FlowCanvas.tsx builds bannerErrors from problems.filter(level === 'error'), so a scope warning never reached the banner and an absence assertion there would be vacuous.
  • D3, PR body unchanged, still Part of — ACCEPTED per the seat's ruling; the seat closes the card after the merge.
  • open_questions: none.

Out-of-scope note (both rounds, carrier none): a START node's out-edge resolves the start node's own scope with bare trigger fields; whether the engine binds bare fields when it evaluates the start node's out-edge guards was not measured. Verified pre-existing and untouched by this diff: edgeSourceOutputRefs returns none for a start source, resolveFlowScope(draft, startId) is unchanged, and the Problems panel skips start-source edges, so only the edge inspector's picker offers the bare spelling, as it did before. Not this card's two sites. ESCALATED to the seat as a filing-gate candidate: measure the engine's start-node out-edge guard context before filing; no card exists for it.

Implemented-by: claude/issue-11085-flow-scope-warnings
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:14
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit f75e1f7 Sep 29, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11085-flow-scope-warnings branch September 29, 2026 21:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants