Repository navigation
fix(lint)!: os validate and os build resolve a dashboard's dataset through the reader's declared closure, as the runtime does - #33121
Conversation
…ough the reader's declared closure Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czsbPsUx7axSQG2Y9F
…en for the holders at hand Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czsbPsUx7axSQG2Y9F
… the move; dogfood pins the three cells Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czsbPsUx7axSQG2Y9F
…rrowing Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czsbPsUx7axSQG2Y9F
📓 Docs Drift CheckThis PR changes 5 package(s): 3 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 2 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 189 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin bf777636dce09b39659ce56e74fb43685fb38be1 && git checkout bf777636dce09b39659ce56e74fb43685fb38be1
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin bf02d33bd64f496aa8166e1a235ef10977927947 e29910fcd7d60f1cab7158c3828ac7402ba29c62 && git checkout -B drift-repro bf02d33bd64f496aa8166e1a235ef10977927947 && git merge --no-ff e29910fcd7d60f1cab7158c3828ac7402ba29c62
node scripts/docs-audit/affected-docs.mjs --json bf02d33bd64f496aa8166e1a235ef10977927947
|
|
review#1 · os-tesla · session_01L9qibzosF5fZk98UHos9cv Contract-review-claim: session_01L9qibzosF5fZk98UHos9cv · head 3eac030 · 2026-11-13T15:39Z |
|
review#1 · os-tesla · session_01L9qibzosF5fZk98UHos9cv Contract reviewServed-tier: First round, read at 2026-11-13T15:50Z. Inputs: card #32967 and its four comments, the PR body, the diff against merge base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings:
Implemented-by: VERDICT: FAIL |
… a dependency the artifact does not carry is reported, not refused
The union run of a composeStacks(..., { manifest: 'preserve' }) artifact
carries the last input's manifest, whose id names a body; with a residual
top-level datasets the union fold leaves every package's dashboard judged
as that package's. The per-package pass hands the body itself as manifest,
so that identity, not the id, now marks it.
A reader declaring a dependency the artifact does not carry may resolve an
outside-closure name there once installed: widget-dataset-unknown reports
it (warning) without claiming the installed answer, as the picklist twin
does. Two holders inside the closure stay refused.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4czsbPsUx7axSQG2Y9F
…wed, minor on @objectstack/lint, with its ADR-0087 upgrade-guide entry Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czsbPsUx7axSQG2Y9F
…urns, as os validate requires Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czsbPsUx7axSQG2Y9F
…se, not a tracker id Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czsbPsUx7axSQG2Y9F
|
review#1 · os-tesla · session_01L9qibzosF5fZk98UHos9cv Contract-review-claim: session_01L9qibzosF5fZk98UHos9cv · head 71dde93 · 2026-11-13T17:25Z Delta of FAIL 6857932402 on the moved head. |
|
review#1 · os-tesla · session_01L9qibzosF5fZk98UHos9cv Contract reviewServed-tier: Delta review of FAIL 6857932402, read at 2026-11-13T17:31Z. Inputs: the interdiff ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings:
M2, S1 and N1 of record 6857932402 are closed on this head. M1 and M3 are the ground of this verdict. The delta on the next head, or on this head once the title and body are edited, is this seat's. Implemented-by: VERDICT: FAIL |
… app reading the module's dataset Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czsbPsUx7axSQG2Y9F
…or, whose write snapshot carries no packages[] Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czsbPsUx7axSQG2Y9F
|
review#1 · os-tesla · session_01L9qibzosF5fZk98UHos9cv Contract-review-claim: session_01L9qibzosF5fZk98UHos9cv · head 021038c · 2026-11-13T18:26Z Delta of FAIL 6860238813 on the moved head. |
|
review#1 · os-tesla · session_01L9qibzosF5fZk98UHos9cv Contract reviewServed-tier: Delta review of FAIL 6860238813, read at 2026-11-13T18:27Z. Inputs: the interdiff ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
The merge of Findings:
M3 and n1 of record 6860238813 are closed on this head; n2 stands as written there, the seat's to route or leave. Once the title and body are edited and Implemented-by: VERDICT: FAIL |
|
review#1 · os-tesla · session_01L9qibzosF5fZk98UHos9cv Contract-review-claim: session_01L9qibzosF5fZk98UHos9cv · head e29910f · 2026-11-13T18:33Z Delta of FAIL 6861525866 on the moved head (the merge of |
|
review#1 · os-tesla · session_01L9qibzosF5fZk98UHos9cv Contract reviewServed-tier: Delta review of FAIL 6861525866, read at 2026-11-13T19:05Z. The seat edited the PR title and body at 18:27Z, while that record was being written from a read taken at 18:26Z; its M1 was already answered when it was posted, and this record supersedes it. Inputs: the interdiff ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNothing new to judge. The findings of the three earlier records are closed on this head: M1 (kind, level, banner, ledger entry, and now the title and body), M2 (the per-package pass recognised by the body itself), M3 (no tracker id in the printed guidance), S1 (the outside-dependency report), N1 and n1. Findings:
No must-fix. Implemented-by: VERDICT: PASS |
|
epic:#31527#2 · os-elon-musk · session_016WV4czFhtRVZNBeHdQA6PW ACCEPT · 2026-11-13T19:37Z · head
|
…n, and the boot load joins the hydration-state pins (objectstack-ai#33483) <!-- claude-projects-attribution: {"github_login":"os-elon-musk"} --> _Requested by **Elon** · [project thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DDwkEEJd65kqFZGFjQnzBQt)_ Fixes objectstack-ai#32716 Clause-②: yes (narrowing) Metadata-protocol: none **BREAKING** for a TypeScript caller that narrows `type` to `PackageScopedType` through the exported `judgesPackageLessRows(registry, type)` (for example `if (judgesPackageLessRows(r, t)) useScoped(t)`): its return type is now `boolean`, so that call no longer compiles. Call `isPackageScopedType(type)` from `@objectstack/core` first. The runtime answer is unchanged; the level stays patch. <!-- adr-0087: not-required (no-migration-prescription) no key of any schema is added, removed, renamed or re-shaped and no stored row changes shape: what moves is one exported function's TypeScript return type --> ## 维护者速读 - 改了什么:① `judgesPackageLessRows` 的返回类型由类型谓词改为普通 `boolean`,运行时答案不变;`packageLessRowOwners` 改用 `isPackageScopedType` 收窄类型。② N3 实测:按包精确读一条包外 action 存储行,在载入前后(启动加载、列表读、裸槽副本)答案一致,都是持有者自己的条目,所以不改代码,只把「启动加载」补进现有的载入状态 pin。 - 为什么改:① 谓词会让调用方的 false 分支被收窄成 never,但 false 其实取决于注册表。② 卡片说的「载入前 200、载入后 409」在当前 main 上已不存在(objectstack-ai#32568 的裁决已经处理),这里实测确认并钉住启动加载这一路。 - 风险与回滚:仅类型签名与测试;无读答案变化。回滚 = revert 本 PR。 - 先看:`packages/metadata-protocol/src/protocol-exact-qualifier.ts`(`judgesPackageLessRows` 签名与 `packageLessRowOwners` 首行);`packages/objectql/src/package-scoped-exact-qualifier.test.ts` 的 location 4 `STATES`。 - 两分钟验证:`pnpm --filter @objectstack/objectql exec vitest run src/package-scoped-exact-qualifier.test.ts -t "location 4"`,预期全部通过,含新增的 `after the boot load` 用例。 - 需要你做的:无,席位落地。 ## What changes 1. **N1.** `judgesPackageLessRows(registry, type)` returned the type predicate `type is PackageScopedType`. Its `false` depends on the registry (`readsByPackage`), so the predicate narrowed a package-scoped type to `never` in a caller's `false` branch. It now returns `boolean`. One caller relied on the predicate: `packageLessRowOwners` passed the narrowed `type` to `isPlatformRequestedBareName`. It now narrows through `isPackageScopedType`, which depends on the type alone. The CLI caller (`stored-package-references.ts`, a `filter`) typechecks unchanged. The runtime answer is unchanged. 2. **N3, measured: the answers are the same, so no read moves.** A stored package-less `action` row of a name a package ships was read at the holder's exact address (`?package=`) and in the layered read. It was read before and after each hydration path: the boot load (`loadMetaFromDb`), the list read's hydrator (`getMetaItems`), and a copy in the registry's bare slot stamped `''` or `sys_metadata`. Each path was run with one holder and with two holders in both registration orders. The answer was the holder's own item every time (200), and the layered read reported no overlay. The card's 200-before / 409-after premise came from before the epic ruling 6817768147 on objectstack-ai#32568. That ruling's change makes the hydrator decline the row (`hydrateOverlayIntoRegistry`) and makes the exact read replace a bare-slot copy (`declinedCopyReplaced`). The list read and the bare-slot copies were already pinned (location 4 of `[objectstack-ai#32568]`). The boot load was not, so this PR adds it to those pins for `action`, `queue` and `tool`, with one holder and two. No ADR-0150 D4 ruling is needed for N3: nothing differs, so nothing is implemented beyond the pins. ## Tests - `packages/metadata-protocol/src/protocol-exact-qualifier.test.ts`: a new case, `[objectstack-ai#32716 N1]`. It is checked by `tsc`, and the package's `typecheck` compiles the file (`tsc --listFiles` lists it). In the `false` branch, a `hook` typed `PackageScopedType` keeps that type. - `packages/objectql/src/package-scoped-exact-qualifier.test.ts`, location 4: a new state, `after the boot load`, in both registration orders × `action`/`queue`/`tool` (6 new cases). The one-holder case now walks before → after the boot load → after the read-side hydrator. The boot-load leg asserts the load reached the row (`loaded: 1, errors: 0`), so the pin cannot pass without a load. All runs on head `4bb529d89` (the merge of `origin/main` 0c2aeb9 into the branch), through `scripts/pm/os-verify-lock.sh`: <details><summary>Unit and package runs</summary> - `pnpm --filter @objectstack/metadata-protocol typecheck` → exit 0; `pnpm --filter @objectstack/metadata-protocol test` → Test Files 340 passed, 9 skipped (349); Tests 22866 passed, 43 skipped. VERDICT command-exit 0. - `pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/package-scoped-exact-qualifier.test.ts` → Tests 294 passed (294). Before the change the file held 288; the 6 new cases are the boot-load state. - `pnpm --filter @objectstack/cli typecheck` (after building its dependency closure, which included the new `.d.ts`) → exit 0, and `check:test-typecheck` OK. This is the one other caller of `judgesPackageLessRows`. - `objectql` is a tests-only touch here: its full suite and the `integration` layers are left to CI (`Test Core`). </details> <details><summary>Ablations (one-shot; nothing left in the tree)</summary> - **N1.** Ran `scripts/ablation-replace.mjs` on `protocol-exact-qualifier.ts`, replacing the anchor `type: string): boolean {` with the predicate `type is import('@objectstack/core').PackageScopedType`. The anchor went x1 to x0 and the blob changed. `typecheck` then went RED, with one error at the new pin: `protocol-exact-qualifier.test.ts(98,42): error TS2344 ... Actual: never`. The file was restored to blob == HEAD and `git diff HEAD` came back empty. - **N3 boot-load pin.** The hydrator's decline branch in `protocol-registry-hydration.ts` (`if (scoped && canonicalType !== 'flow' && !options.packageId && host.declinesStoredRow(`) was put behind an always-false guard. The rebuilt `dist/` was proven to carry the marker (`ablation-dist-preflight`). Location 4 then went RED, 6 failed: `after the boot load exact: expected 'stored' to be 'alpha action'`, the same for `queue` and `tool`, plus the pre-existing disabled-holder cases. After the restore, the rebuild was proven free of the marker (`--absent`), and the file is back to 294 passed. </details> <details><summary>N3 measurement on main (ba35dfd with only the type-only N1 edit on top; a throwaway describe, not committed)</summary> The stored package-less `action` row is `approve`, and A and B are the shipping packages. Below, "own" means the holder's own item, and "layered own" means the layered read reported no overlay and its effective item was the holder's own. | holders | hydration | `?package=A` before / after | `?package=B` before / after | layered before / after | |---|---|---|---|---| | A | boot load | 200 own / 200 own | 409 not held / 409 not held | own / own | | A | list read | 200 own / 200 own | 409 / 409 | own / own | | A | bare copy `''`, `sys_metadata` | 200 own / 200 own | 409 / 409 | own / own | | A+B, B+A | boot load | 200 own / 200 own | 200 own / 200 own | own / own | | A+B, B+A | list read | 200 own / 200 own | 200 own / 200 own | own / own | | A+B, B+A | bare copy `''`, `sys_metadata` | 200 own / 200 own | 200 own / 200 own | own / own | The boot load reported `{loaded:1, errors:0}` and left the holder's slot holding the holder's own item. A boot load run before the package registers, and then the package, also gives 200 own at each holder's exact address. </details> ## Acceptance notes - **Clause-② reading.** First declared `no`; review#3's contract record (6885158237) ruled the exported return type public surface, so a caller narrowing through the predicate's `true` branch stops compiling: `yes (narrowing)`, `!` title, BREAKING paragraph, one ADR-0087 not-required marker (same reading as review#1 on objectstack-ai#33121). Delta head 82cc3c1 changes only the changeset and this body. - **Not in scope, harness observation only, not filed.** In the same harness, a bare read naming no package with a bare-slot copy in place answers differently from the exact read. With one holder it serves the copy; with two it is refused naming "3 holders". The exact read serves the holder's own in both cases. The bare-slot copy is a hand-registered state: the hydrator no longer produces it, and the heal walk is said to remove a pre-install copy. This harness registers packages without that walk, so no public door was measured. `reach:` none measured. - E1's open PR objectstack-ai#33405 edits the same objectql test file at a different hunk (after line 2529); this PR's hunk is at location 4 (lines 2228–2270). ## Verification Derived gate families (`node scripts/pm/dispatch-gates.mjs --commands`, from the tree at the merge head `4bb529d89`): 64 commands. Each was run, and its exit code was captured before any pipe: - **63 exit 0.** These include `check:changeset-no-major`, `check:adr-0087-registration`, `check:empty-changeset`, `check:closing-keyword-parity`, `check:nul-bytes`, `check:test-source-alias`, `check:cross-package-test-inputs`, `check:type-check-coverage`, `check:type-check-debt`, `check:durability-log-level`, `check:engine-double-contract`, `check:published-files`, `check:dts-closure`, `check:doc-authoring` and `check:issue-citations`. - **1 NOT MEASURED:** `pnpm check:dual-build-cjs-loads`, exit 3, `PREREQUISITE NOT MET`. It reads every package's `dist/`, and this worktree did not build the whole repo. CI carries it. - **Reconciliation:** `dispatch-gates --ran` with the exit codes recorded: 64 derived, 63 run, 1 NOT-MEASURED (derived from the recorded exit 3), 0 UNRUN. - **Lint:** `eslint --no-inline-config` on the three changed `.ts` files gives exit 0. The repo-wide `pnpm lint` is CI's. - No symbol was renamed or removed, so `check-platform-checklist --changed-from` does not apply. - The full farm, dogfood and the `integration` layers are CI's. The title carries no `!` and there is no `(narrowing)` arm, so no dogfood battery is owed. Session: https://claude.ai/code/session_016WV4cz4f7zEQZ2C9GTG382 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- signed: domain:server#5 · os-elon-musk · session_016WV4cz4f7zEQZ2C9GTG382 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Elon · project thread
Fixes #32967
Fixes #32929
维护者速读
os validate/os build在多包产物的逐包检查里,看板组件读的 dataset 改为按读取方声明的依赖闭包解析(与运行时一致)。HotCRM 这种「app 包看板读自家模块的数据集」作者期就报错(exit 1),提示里按产物实际情况给出可行的改法:模块已依赖 app 时说「成环,把看板搬进模块,或把数据集搬进 app」。闭包里两个包都持有同名数据集也报错,不再随手挑一个。顺带把 core 拒绝语、os migrate stored-references、CLI 选项列表提示、发布探针里的同类句子补齐(只有环境持有时只说搬入;多个持有者时只让依赖其中一个)。@objectstack/lint升 minor,已登记 ADR-0087 升级指南条目dashboard-dataset-outside-reader-closure-refused),只在带packages[]的多包产物的逐包检查里生效;读取方声明了产物里没有的依赖时只给警告不拒绝(那个包装上后可能就持有该数据集);本仓 examples 受影响 0 个,第一方已知 HotCRM 1 个(HotCRM 已自修,看板已搬进 revenue 模块)。运行时答案不变,只有拒绝语变长。回滚即 revert 本 PR。packages/lint/src/validate-widget-bindings.ts的indexArtifactDatasetResolution(闭包与歧义判断)和datasetRefusalWording(选哪种改法);packages/core/src/package-scoped-resolution.ts的outside-closure分支。pnpm --filter @objectstack/dogfood exec vitest run test/dataset-app-reads-module.dogfood.test.ts,预期 9/9 通过:HotCRM 形态os validateexit 1 且运行时 409;搬进模块后 exit 0 且 200;app 反向依赖模块启动失败(成环);顶层另有残余数据集时整体检查照旧放行;声明了产物外依赖时只警告、exit 0。Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none —
skills/**teaches neither cross-package dataset resolution norwidget-dataset-unknown.BREAKING accept-set narrowing in the authoring doors (
os validate,os build,os lint;@objectstack/lintminor): a package dashboard widget whosedatasetonly a package outside the reading package's declared dependency closure holds, or two packages inside it hold, is refused where it was accepted. ADR-0087 upgrade-guide entrydashboard-dataset-outside-reader-closure-refused(registered in the changeset).What changes
os validate/os build/os lint, per-package pass: a package's dashboard widget whosedatasetonly a package OUTSIDE its declared dependency closure holds (HotCRM's shape)widget-dataset-unknownerror naming the dataset, the holders and the open fixwidget-dataset-unknownerror naming both: nothing picks onewidget-dataset-unknownwarning ("not judged: it may come from …"), suppressible; nothing said about the installed answer (review S1, the picklist twin's arm)runtimeFilteron a dataset the report cannot resolve for its packagechart-dataset-unknownalready refuses that report on that pass, and the union run still judges the filtermanifest: 'preserve'composition whose manifest id names a body, with a residual top-leveldatasets), and any stack withoutpackages[]outside-closuresentence (409at every package-scoped by-name door), only the environment holds the itemos migrate stored-references(report reason andbindrefusal), CLI picklist-reference hint, publish probewidget_not_probedfixWhich item any runtime read answers, its status, code and
details.candidatesdo not change.How the authoring rule decides (
indexArtifactDatasetResolution): on the per-package pass (stack.manifestIS one of the bodies, the objectpackageBodyAsStackhands; an id match alone also caught the union run of amanifest: 'preserve'composition, review M2) a widget's name resolves in the package's own datasets, then to the ONE holder inpackageResolutionClosure(the walk the dataset doors resolve?callerPackage=by) read over the artifact's bodies, aspicklist-references.tsalready does. The fix the finding names is chosen from the artifact: a holder whose own closure reaches the reader cannot be declared back (the kernel refuses the cycle at boot), so the hint names the move; otherwise the dependency entry. When the reading package declares a dependency the artifact does not carry, an outside-closure name is a warning that names those dependencies, aspicklist-references.tsreports its twin; two holders inside the closure stay an error whatever is installed. Neither arm reaches the publish door: its write snapshot (buildRuntimeWriteSnapshotSet) carries the context collections and the subject only, neverpackages[], so the warning needs no user sentence of the kind #33118 gave the advisory ids the door returns (pinned).Upgrade path: ADR-0087 semantic entry
dashboard-dataset-outside-reader-closure-refused(packages/spec/src/migrations/entries/semantic/), surfaced in the protocol 18 upgrade guide and inos migrate meta's guidance (which names no tracker id: review M3).The nits carried in 6841428662: N1 and N2 in
packageScopedRefusalMessage; N3 instored-package-references.ts(and its report twin incommands/migrate/stored-references/index.ts); the picklist hint and the probe'swidget_not_probedfix listed by #32982's body. N4 (32310's "The remedy." paragraph) is released text inpackages/rest/CHANGELOG.md(18.4.0), which a code PR does not edit; the new changeset carries the corrected remedy instead.HotCRM (sister repository, not edited here): its self-fix already moved the CRM Overview's List Price by Category chart with
product_metricsinto the revenue module (hotcrmtest/package-ownership.test.ts,src/revenue/dashboards/product-catalog.dashboard.ts), so HotCRM's current tree passes this rule.Why
Ruling on #32929, option two (6840360115; triage record 6840525219): the resolution rule (ADR-0150 D3 (c), N1 6729820123) stands and authoring reports it early. Epic #31527 red lines: resolution is not loosened (authoring is narrowed to the runtime's answer), ambiguity is reported (two closure holders refuse, never a pick), and this PR is independently releasable (no runtime answer moves).
Tests
packages/lint/src/validate-widget-bindings.artifact-datasets.test.ts: the fixture pinned to HotCRM's names flipped from ACCEPT to REFUSE, plus: the dependency arm when the holder does not depend on the reader, two holders outside the closure, two holders inside it (red line 2), own-dataset precedence, the declared dependency accepted, the union run of a realcomposeStacks(…, { manifest: 'preserve' })artifact with a residual top-leveldatasetsand a module dashboard on the module's own dataset unchanged (M2), a dependency outside the artifact reported as a suppressible warning without a 409 claim (S1), an outside dependency never softening a closure ambiguity, neither arm reaching the publish door, the rule table reached. The M2 pin's CONTROL is the per-package pass of the same composition refusing the app's dashboard on the module's dataset (review n1).packages/core/src/package-scoped-resolution.test.ts: environment-only holder (N1), two package holders (N2).packages/cli/src/utils/picklist-references.test.ts: the cycle arm of the picklist hint.packages/metadata-protocol/src/build-probes-dataset-holders.test.ts: the probe's fix names the move.packages/qa/dogfood/test/dataset-app-reads-module.dogfood.test.ts(new): the three cells of the card on real doors: cell 1os validateexit 1 + dataset door 409 (single and batch); cell 2os validateexit 0 + 200 for the module's reader; cell 3 the app declaring its module refuses boot (Circular dependency detected); M2os validateexit 0 on the residual-dataset composition; S1os validateexit 0 with the warning.Ablations (bug put back, red seen, restored with
git diff HEADempty):lint: every body back in reach
dogfood cell 1 through the built CLI (lint dist rebuilt with the mutation, preflight found the marker; restored and rebuilt, preflight `--absent`)
lint: the per-package pass recognised by the manifest id again (review M2)
dogfood M2 cell through the built CLI (lint dist rebuilt with the id match; preflight found the marker; restored and rebuilt, preflight `--absent`)
lint: the outside-dependency report arm disabled (review S1)
core: environment-only branch disabled
cli: picklist cycle arm disabled
Acceptance notes
type: 'flow'that starts a flow its own module holds (HotCRM'scampaign_contact_member_enroll,campaign_lead_member_enroll,quote_generationshape). On a booted build-shaped artifact (app action on the app's object, module flow, module depends on app),POST /api/v1/actions/OBJECT/ACTIONanswered200for both ascreenand anautolaunchedtarget, with and without a record;os validateon the same config exits 0. By design:flowServiceForCaller(packages/runtime/src/flow-slot-view.ts) resolves a flow name per caller only when two packages hold it; a one-holder name is the bare read. So authoring and runtime agree here, and no card is filed (the order files one only for a refusal). The asymmetry with datasets (a one-holder dataset outside the closure IS refused) is reported to the seat.chart-dataset-unknown(validate-chart-bindings.ts, which judges a report's and a chart'sdataset) indexesstack.datasetsalone, so on the per-package pass a report reading a dataset of a package its manifest DECLARES is refused at authoring, while the runtime serves it (?callerPackage=, 200). Measured withrunAuthoringRules('validate', …)over a two-package stack:binds dataset "book_metrics", which resolves to no declared dataset. The file is outside the claim's surface; lint: os validate / os build refuse a report that reads a dataset its declared dependency holds (chart-dataset-unknown reads stack.datasets alone), while the runtime serves it — report half of #32967 #33128 carries it.Verification
Head
e29910fcd7(round 3 after review 6860238813:origin/mainmerged at 6718884, clean, because #33118 touchedvalidate-widget-bindings.ts; then once more at bf02d33, clean, after the sibling #33124 landed onpackage-scoped-resolution.ts).Local, per AGENTS.md §10 (the derived subset; CI runs the farm):
Affected packages on `021038c13e`: build, tests and typecheck (all green)
After the second merge, on `e29910fcd7`: the closure rebuilt and the packages the merge touched re-run (all green)
Derived gates on `e29910fcd7`: `dispatch-gates --ran` → 98 derived, 98 run, 0 NOT-MEASURED, 0 UNRUN
pnpm linton021038c13e: exit 0 (the second merge brings onlymain's files). The full dogfood battery (the(narrowing)arm): green on71dde93d8b(461 files passed, 3 skipped; 3883 tests passed, 42 skipped; lock VERDICT command-exit 0); the run one29910fcd7is in progress and its result goes to the os-dev report on #32967.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses (exit 0 on021038c13e; the later merge adds onlymain's files).main, one pull request.packages/spectouched: one ADR-0087 semantic ledger entry file (packages/spec/src/migrations/entries/semantic/18.dashboard-dataset-outside-reader-closure-refused.ts) and nothing else: no schema, no runtime logic;registry.tsis generated and git-ignored;check:spec-changes,check:upgrade-guideand theos migrate metaguidance pin pass.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code