Repository navigation
refactor(types)!: delete ActionExecutor and the Batch Operations pair nothing reads - #31056
Conversation
…ng reads SpecDashboardHeader, SpecDashboardHeaderAction, SpecFormView, SpecListColumn, SpecPageComponent, SpecPageRegion and SpecPageVariable leave the @object-ui/types entry. They were type-only aliases of @objectstack/spec/ui types with no reader in the workspace or in hotcrm; the unprefixed upstream names stay the import to use. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibyZMb3aNnWtD2ukQXx
…es nothing reads" This reverts commit fa03472. The seven aliases re-export a subpath of another workspace package, which the ADR-0087 registration gate cannot resolve, so their retirement waits on a ruling for that case. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibyZMb3aNnWtD2ukQXx
… nothing reads ActionExecutor, BatchOperationConfig and BatchOperationSummary leave ui-action.ts and the @object-ui/types entry. They were TypeScript-only shapes with no reader in the workspace or in hotcrm; the Transaction Support block beside them stays, core's TransactionManager reads it. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibyZMb3aNnWtD2ukQXx
|
domain:ui#3 · os-tesla · session_01L9qibxW6qraU2Z3mwupUGp Contract-review-claim: session_01L9qibxW6qraU2Z3mwupUGp · head 697756b · 2026-11-06T23:28Z |
|
domain:ui#3 · os-tesla · session_01L9qibxW6qraU2Z3mwupUGp Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flagsNone. No governed surface, no ④ Design judgmentDead surface only. Implemented-by: VERDICT: PASS |
|
domain:ui#3 · os-tesla · session_01L9qibxW6qraU2Z3mwupUGp 维护者速读
席位核对 — ACCEPT · head 697756b
|
…yCache from the entry (objectstack-ai#33666) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X4J9JiPq8zKVvbcBFubCvK6)_ Part of objectstack-ai#25921 Clause-②: no (narrowing) Metadata-protocol: none Skills-docs: none (the name appears under neither `skills/**` nor `content/docs/**`) ## 维护者速读 - 改了什么:`@object-ui/data-objectstack` 的根入口不再导出只给测试用的 `clearSharedDiscoveryCache`(清空适配器按来源缓存的 discovery 文档)。缓存这一小段代码原样搬进包内新模块 `sharedDiscovery.ts`,`getSharedDiscovery` 照旧从入口导出;38 个测试改为从该模块直接引入。这是 objectstack-ai#25921 第 18 批,补完卡上「reset* 测试助手移出公共入口」那一条的最后一项(前 8 个早已移出)。 - 为什么改:两个仓库里除测试外没有任何代码、文档或技能调用它;留在入口上会被当成公开 API 承诺。做法与之前移出 `resetRuntimeConfigForTesting`、`__clearRecordEditableCache` 等助手一致。 - 风险与回滚:运行时行为零变化(搬移是逐字的,适配器仍走同一份缓存);测试断言一行未改。外部 npm 宿主若从入口 import 这个助手会编译失败(未实测,changeset 写了 BREAKING 与替代写法)。`!` patch,回滚即 revert 本 PR。 - 先看:`ui/packages/data-objectstack/src/sharedDiscovery.ts`、`ui/packages/data-objectstack/src/index.ts`(缓存段与新增 import)、`.changeset/25921-data-objectstack-shared-discovery-cache-helper.md`。 - 两分钟验证:`node scripts/check-adr-0087-registration.mjs --base origin/main`,预期该名字 `verified`、退出 0。 - 需要你做的:无,席位落地。 ## What changes Batch 18 as named in the seat's amendment 6888438983 on claim 6888311800 (census `/mnt/project-files/pm-orders/ui/25921-b18-census.md`, objectstack `origin/main` `6e287974`, hotcrm `2492ac6`). - **New `ui/packages/data-objectstack/src/sharedDiscovery.ts`**: the per-origin discovery cache block (the `discoveryCache` Map, `getSharedDiscovery`, `clearSharedDiscoveryCache`), moved verbatim from `index.ts` under a short module header. - **`ui/packages/data-objectstack/src/index.ts`**: imports `getSharedDiscovery` from the module for `ObjectStackAdapter.connect()` and re-exports it unchanged. `clearSharedDiscoveryCache` leaves the entry; in its place sits the "test-only and stays off the barrel" comment its siblings carry in app-shell, types and plugin-detail. `serverOriginOf`, which sat between the moved lines, stays in `index.ts`. - **38 test files, import lines only**: 28 in `data-objectstack/src` now import the helper from `./sharedDiscovery`; 10 in console (4), app-shell (4) and react (2) import it by relative source path, the spelling those packages already use for `resetRuntimeConfigForTesting`, `resetInflightGetsForTesting` and `__clearRecordEditableCache`. ui vitest aliases `@object-ui/data-objectstack` to the package `src`, so the adapter and the helper resolve to one module instance. No assertion changes. - **`ui/packages/app-shell/src/views/metadata-admin/previews/canvasDataSource-27585.test.tsx`**, beyond its import line: two module-top side-effect imports, `@objectstack/lint` and `@objectstack/formula`, that `check:test-source-alias` asks of an edited test reaching those lazy loads (see Verification, round 1). The amendment named import-line edits only; this is the gate's prescribed fix for a file the batch had to touch. - **Changeset** `.changeset/25921-data-objectstack-shared-discovery-cache-helper.md`: `!` patch, BREAKING, FROM/TO, one `runtime-export-retired` marker (FROM spans 1:1), both declaration lines. ## Why The card's recommendation "Move the nine `reset*` helpers into `@object-ui/test-support` or tag them `@internal`" was done for eight helpers (objectui#13453 and objectstack-ai#28544); `clearSharedDiscoveryCache` was left as item B2 and carried as open in the landing notes through objectstack-ai#31056. The census found zero non-test callers in either repo, and no README, docs page, skill, changeset or CHANGELOG naming it. ## Tests - Census (one `rg -w -F` pass per repo): the helper's only hits outside the package are the 10 test files above; hotcrm 0. Positive control in the same block: `getSharedDiscovery` has non-test readers outside the package (`ui/apps/console/src/languageSeed.ts`, `ui/packages/app-shell/src/chrome/ConditionalAuthWrapper.tsx`) and stays exported. - Reverse probe: the TypeScript checker's export list of `src/index.ts` goes 127 → 126, exactly `clearSharedDiscoveryCache` gone, nothing added. The built `dist/index.js`, imported at runtime, has no `clearSharedDiscoveryCache` key and still has `getSharedDiscovery` and `ObjectStackAdapter`. A probe compiled against the built `dist/index.d.ts` answers TS2305 for the helper and nothing on the control line (`getSharedDiscovery`, `ObjectStackAdapter`). - Under the lock: `pnpm --workspace-concurrency=2 --filter '@object-ui/data-objectstack...' build` then its `type-check` (its tsconfig includes the in-package tests): VERDICT command-exit 0. `--filter '@object-ui/console...' build` then `type-check` of `@object-ui/react`, `@object-ui/app-shell` and `@object-ui/console` (each runs its `tsconfig.test.json` or equivalent): VERDICT command-exit 0. - `pnpm --dir ui exec vitest run --maxWorkers=2 packages/data-objectstack/` plus the 10 cross-package test files, under the lock: VERDICT command-exit 0, Test Files 131 passed (131), Tests 1475 passed (1475). - No test added or removed, and no ablation: the diff moves code verbatim and unexports one test-only helper; no tested behaviour changes. ## Acceptance notes - The moved helper keeps its original one-line JSDoc ("Test/dev helper to drop the cache (e.g. on logout or origin change)"), verbatim per the amendment; nothing outside tests calls it. - Follow-ups noted on the claim amendment, not in this batch: the `runner` move under `apps/` or `examples/`, and 57 newly CONFIRMED i18n keys that are not the card's 122. ## Verification <details><summary>Derived gates on HEAD 85ef16b (38/38, all exit 0, --ran reconciled)</summary> `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran ran.list` (each line `CMD :: exit N`) → "38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)". Each command ran with stdin closed and its exit code captured before any pipe. - `node scripts/check-adr-0087-registration.mjs --base origin/main` exit 0: `not-required (runtime-export-retired) -- verified: @object-ui/data-objectstack#clearSharedDiscoveryCache`; `--self-test` exit 0 - `node scripts/check-changeset-no-major.mjs --base origin/main`, `check-empty-changeset.mjs --base origin/main` (+ `--self-test`), `check-closing-keyword-parity.mjs` (+ `--self-test`), `check-comment-mask-corpus.mjs`, `check-sdui-manifest.mjs` (+ `--self-test`), `ci/snapshot-next.mjs --self-test`, `pm/release-rehearsal-clone.mjs --self-test`, `release-pending-publish.mjs --self-test`: exit 0 - `pnpm --dir ui exec vitest run scripts/` under the lock → Test Files 171 passed | 2 skipped (173), Tests 5062 passed | 2 skipped (5064) - `pnpm check:type-check-debt` under the lock → exit 0 ("0 raw tsc error(s) total, none above its recorded number") - `pnpm check:cross-package-test-inputs` exit 0 ("32 package(s) read outside themselves, all declared") - `pnpm check:test-source-alias` exit 0 (see round 1 below) - `pnpm --filter @objectstack/spec run check:duration-unit-keys`, `check:error-code-provenance`; `pnpm check:changeset-gate-self-tests`, `check:closed-ceremony-text`, `check:dispatcher-error-vocabulary`, `check:driver-memory-census`, `check:engine-double-contract`, `check:error-status-conformance`, `check:gitlink-declared`, `check:nul-bytes`, `check:published-files`, `check:query-options-erasure`, `check:refd-timer-probe`, `check:registry-log-declared`, `check:rest-log-spy-declared`, `check:skill-identifier-liveness`, `check:tier-file-adoption`, `check:type-check-coverage`, `check:undeclared-dep-imports`, `check:watch-hint-literal`, `check:where-matcher`: exit 0 Round 1 on 20126db (same 38): 37 exit 0, `pnpm check:test-source-alias` exit 1. It judges a test file a change edits, and the edited `canvasDataSource-27585.test.tsx` reaches `import('@objectstack/lint')` and `import('@objectstack/formula')` inside function bodies (the object picker under the dataset form). Commit 85ef16b adds the two module-top side-effect imports the gate prescribes, the spelling three `AppContent.*` tests in app-shell already use; that file then passes 5/5 under the lock, and the whole list was rerun on 85ef16b above. Outside the derivation: `node scripts/check-platform-checklist.mjs --changed-from origin/main` exit 0 (0 anchored files); `pnpm --dir ui run check:new-line-citations` exit 0 (0 new citations). </details> <details><summary>Full dogfood battery on HEAD 85ef16b</summary> `bash scripts/pm/os-verify-lock.sh -c "pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test"` → `os-verify-lock: VERDICT command-exit 0` (held 41m18s) · Test Files 467 passed | 3 skipped (470) · Tests 3953 passed | 42 skipped (3995) · no failure. </details> ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. (one module file, `sharedDiscovery.ts`, camelCase like its siblings) - [x] 3. No formatter ran; `pnpm lint` passes. (lint is CI's run) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (the 维护者速读 block is the fleet's required Chinese summary) --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5oqJ6hpya34gYbwBaJ)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5oqJ6hpya34gYbwBaJ --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
Requested by Tesla · project thread
Part of #25921 (batch 11, claim 6696974190 with amendments 6697003965 naming the branch, 6697084388 naming the first batch and amendment 3 renaming it to this one; the card's other open items stay on it)
Clause-②: no (narrowing)
Metadata-protocol: none
维护者速读
@object-ui/types的ui-action.ts删除 3 个没人读的类型:ActionExecutor,以及 "Batch Operations" 一组的BatchOperationConfig、BatchOperationSummary。@object-ui/core的ActionRunner执行,留着会被当成 UI 协议包的公开承诺。TransactionManager在用)原样保留。对外部 npm 使用者是破坏性变更,带一个!patch changeset(BREAKING、FROM/TO、ADR-0087runtime-export-retired3 个)。回滚即 revert 本 PR。ui/packages/types/src/ui-action.ts(删掉的三个声明与新注释)、.changeset/25921-types-action-executor-batch-ops.md(迁移说明)、ui/packages/types/src/index.ts(入口列表与注释)。git grep -lw -e ActionExecutor -e BatchOperationConfig -e BatchOperationSummary -- ui packages预期只命中ui/packages/types里的退役注释、本 changeset 与 CHANGELOG;pnpm --dir ui exec vitest run packages/types/预期全绿。What changes
@object-ui/types(its.entry) loses 3 types ofsrc/ui-action.ts. They are deleted from the module, not only from the entry:ActionExecutor,BatchOperationConfig,BatchOperationSummary.src/ui-action.ts: theActionExecutorfunction type and the "Batch Operations (Q2 2026 - Spec v2.0.1 Enhancement)" block go; a note at the end of the file, beside the existing undo/redo note, names them and points at@object-ui/core'sActionRunner/ActionRunnerHandler. The "Transaction Support" block right after them stays:TransactionConfigandTransactionResultare imported by core'sTransactionManager.ts.src/index.ts: the three names leave the./ui-action.jstype list; a two-line comment names them..changeset/25921-types-action-executor-batch-ops.md: one!patch changeset, BREAKING, FROM/TO per name (no replacement in this package; actions run throughActionRunner), and the ADR-0087runtime-export-retiredmarker naming all 3.ui-action.tsis reached only through the.entry; no subpath entry of the package exports it.Why this batch and not the first one named. Amendment 6697084388 first named the seven
Spec-prefixed@objectstack/spec/uitype aliases of the entry (SpecFormViewand six more), also dead. That edit was made (fa03472) and reverted in this branch (ae6a942), becausecheck-adr-0087-registrationcannot verify predicate 2 for them: they areexport type { X as SpecX } from '@objectstack/spec/ui', a subpath of another workspace package, which the gate's export reader does not follow ("the declaration ofSpecFormViewcannot be located at the merge base"). The seat swapped the batch (amendment 3); the seven stay on the card, waiting on a predicate-2 ruling for that shape. The branch diff againstmaincarries only this batch.Tests
.d.tsis the one read.Verification
Census (read-only, before any edit; origin/main 81deb54, hotcrm 6961ab1)
ui/packages/*main entry; identifier-token index over every tracked file of both repositories minus CHANGELOGs, changesets, the lockfile and release notes; prose and tests count as consumers; then not taught in README/demo/docs and not named by a kept export's declaration).@object-ui/types: 707 entry names, 147 zero-outside, 45 candidates;ui-action.ts4 of them. Note: this project's filesui-seat-3/r2026-11-06/25921-b11-census.md.git grep -lwper name, whole repository: 0 hits outsideui/packages/types/; hotcrm 0 for all 3. Inside the package: no reader besides the declaration and the entry line.AnySchema, no subpath entry, not taught.OBJECTUI_LOCAL_ACTION_TYPES(the tool's fourth candidate; a runtime value pinned byspec-derived-unions.test.ts), and the Transaction trio (live in core).TransactionConfig(coreTransactionManager.ts).ui/packages/types/(the claim's read at 22:01Z, plus every PR opened since).Local runs on head 697756b (base 81deb54)
env -u OS_SKIP_DTS pnpm --filter '@object-ui/types...' build, then after the editenv -u OS_SKIP_DTS pnpm --filter @object-ui/types buildfrom a cleandist+tsbuildinfo: VERDICT command-exit 0. Builtdist: 0 files nameActionExecutor,BatchOperationConfigorBatchOperationSummary; the controlTransactionConfigis in 2.pnpm --filter @object-ui/types run type-checkandpnpm --dir ui exec vitest run packages/types/: VERDICT command-exit 0; Test Files 387 passed (387), Tests 10460 passed (10460).dist/index.d.ts: a scratch file importing the 3 names plus the controlTransactionConfig,tsc --noEmit --module nodenext: 3 errors (TS2305 / TS2724, one per retired name), 0 on the control line.node scripts/pm/dispatch-gates.mjs --commandson 697756b: 30 derived families, every line run with stdin closed, all exit 0 (pnpm --dir ui exec vitest run scripts/: Test Files 170 passed, 2 skipped (172), after building@objectstack/client...and@objectstack/formula...in this fresh worktree);--ranreconciliation: 30 derived, 30 run, 0 NOT-MEASURED, 0 UNRUN.check-adr-0087-registration --base origin/main: "verified: @object-ui/types#ActionExecutor (export, ui/packages/types/src/ui-action.ts)", and the same for the other two.node scripts/check-platform-checklist.mjs --changed-from origin/main: exit 0 (0 anchored files in the change set).pnpm --dir ui run check:new-line-citations: 0 new citations.(narrowing)arm), head 697756b: runs on this head after the PR opens; its VERDICT line and counts go into the os-dev-report comment on retire the zero-consumer surface: nine dead modules (2,211 LOC), plugin-ai, runner's publish flag, test-only reset helpers on public barrels, the providers trio, 122 dead i18n keys, root orphans #25921.ui-seat-3/r2026-11-06/25921-b11/.Acceptance notes
Spec-prefixed spec/ui aliases (SpecDashboardHeader,SpecDashboardHeaderAction,SpecFormView,SpecListColumn,SpecPageComponent,SpecPageRegion,SpecPageVariable) stay on retire the zero-consumer surface: nine dead modules (2,211 LOC), plugin-ai, runner's publish flag, test-only reset helpers on public barrels, the providers trio, 122 dead i18n keys, root orphans #25921: zero readers, but their retirement needs a predicate-2 ruling for re-export aliases of a workspace subpath. No gate card is filed now (seat's call).clearSharedDiscoveryCacheand the other barrel batches; in@object-ui/typesthe census listsdata-protocol.ts(3 real names in two blocks),designer.ts(Unified View with the objectui#12063 tombstone pin, Dashboard with a zod twin) and scattered singles.types/src/ai.tskeeps itsnevertombstones until the sunset rule of docs/adr: a sunset rule for @deprecated tombstones — 574 tags (504 in packages/types, 640 'never' members) with no rule for when a tombstone leaves the authoring face #25912; not touched here.Generated by Claude Code