Repository navigation
chore: version packages (next) - #38192
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 28, 2026 12:13
6bc9b0d to
e20130e
Compare
This was referenced Nov 28, 2026
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 28, 2026 18:08
e20130e to
6ff82ae
Compare
This was referenced Nov 28, 2026
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 29, 2026 00:18
6ff82ae to
964cfc4
Compare
This was referenced Nov 29, 2026
github-actions
Bot
force-pushed
the
changeset-release/main
branch
2 times, most recently
from
November 29, 2026 12:10
2d0ab1c to
619fa88
Compare
This was referenced Nov 29, 2026
Merged
github-actions
Bot
force-pushed
the
changeset-release/main
branch
2 times, most recently
from
November 30, 2026 00:19
b24e009 to
b5f1cda
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 30, 2026 06:21
b5f1cda to
a6c6033
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 30, 2026 12:11
a6c6033 to
fc7cdab
Compare
This was referenced Nov 30, 2026
Merged
Contributor
Author
📓 Docs Drift Check
What this run could not see
Coarse fallback — 213 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
This was referenced Dec 1, 2026
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…age service presigned flow (objectstack-ai#38237) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoAoNwrZVJoUEFfvMURpRPKJ)_ Fixes objectstack-ai#38163 Clause-②: no Metadata-protocol: none Route taken: (a). `uploadFile` and `uploadFiles` now upload through the package's own presigned storage adapter, `createObjectStackUploadAdapter`. `recordId` maps to `attachTo` with scope `attachments`, and the adapter's result maps to `FileUploadResult`. The declared `DataSource` contract promises an upload that returns a stored file, and the storage service is the one upload route the standard server serves, so (a) keeps that promise and (b) would not. Two options cannot be mapped: `fieldName` and `metadata`. Neither presigned request carries them. Those two are refused before any request, in the (b) manner, with an error that names the supported path, so nothing is dropped silently. Neither method sends a request to `/api/data/RESOURCE/upload` any more. Why refusing `fieldName` / `metadata` is not a narrowing (`Clause-②: no` stands): before this PR every call to either method failed. The standard server answers the old route 404 `ENDPOINT_NOT_FOUND` (405 with the version segment), whatever options were passed, so no caller had a working upload that carried those options. This PR removes no working behaviour. A call that always failed now succeeds without the two options, and with them it fails at once with an error that names the supported path, instead of a 404. The public types (`DataSource.uploadFile` / `uploadFiles`, `FileUploadResult`) are unchanged, and no metadata an author writes is affected (`Metadata-protocol: none`). ## 维护者速读 - 用户能看到什么变化:用界面数据层「上传文件」接口的应用和插件,上传现在真正落到存储服务,拿回已存好的文件;以前每次都失败。普通控制台用户无感,因为仓库里没人调用它。 - 为什么做:修复界面数据层对外声明却发往一条不存在地址的上传接口,替以后要调用它的应用解决问题。 - 出错会怎样:调用方传了直传流程带不了的两个附加选项,会立刻收到写明改法的报错,而不是被悄悄丢掉。其余改动可直接撤回。 - 要你做的:无。 ## What changes - `ui/packages/data-objectstack/src/index.ts`: `uploadFile` delegates to `createObjectStackUploadAdapter`, which sends `POST /api/v1/storage/upload/presigned`, the byte `PUT`, then `POST /api/v1/storage/upload/complete`. The adapter is built per call because `attachTo` is one of its construction options. The fetch it uses is built once per data source (`storageUploadFetch`). That fetch is the injected `uploadTransport` (objectstack-ai#37506), plus the data source's `token` on every request to this server and never on a presigned URL on another origin. The same-origin check compares resolved origins: the URL is resolved against `baseUrl`, or the page's origin when `baseUrl` is empty, and it counts as this server only when the origins match (and, for a `baseUrl` with a path, the resolved path lies under it). A server that cannot be read, or a URL that does not parse, is not this server. `uploadFiles` is N sequential presigned uploads. The first refused file stops the batch, and the rejection's `details` carry `failedIndex` plus, as `uploaded`, the files already stored. The files after it are not sent. - Option mapping: `recordId` maps to `attachTo: { parentObject: resource, parentId: recordId }` and `scope: 'attachments'`. Without it, no scope is sent, so the server default applies, and `resource` is not sent. `onProgress` maps the adapter's 0 to 1 ratio to 0 to 100, spread across the batch for `uploadFiles`. `fieldName` and `metadata` reject with `UNSUPPORTED_OPERATION` before any request. - Errors: a refused storage request rejects `ObjectStackError` with `UPLOAD_ERROR`, the server's status, and `details.serverCode`. A failure that got no HTTP answer reaches the caller unchanged, as before. - `ui/packages/data-objectstack/src/upload-adapter.ts`: the presign refusal and the byte-PUT refusal now carry `status` (and `code`), as the completion refusal already did, so the mapping above can read them. Messages are unchanged. - No public shape changes: `DataSource.uploadFile` / `uploadFiles` and `FileUploadResult` are untouched. - `packages/qa/dogfood/test/data-objectstack-upload-route-38163.dogfood.test.ts`: the real-stack pin. `packages/qa/dogfood/package.json` gains one devDependency, `@object-ui/data-objectstack` (`workspace:*`), and `pnpm-lock.yaml` gains only that importer entry, written by `pnpm install`. With that, the pin resolves the adapter, the dogfood closure builds it, and the dogfood test hash follows adapter changes. `packages/qa/dogfood/vitest.config.ts` gains the one anchored alias `check:test-source-alias` prescribes, so the pin resolves the adapter's SOURCE in this checkout and not its last build. The dogfood package is private, so it needs no changeset. ## Tests - `uploadTransport-37506.test.ts` is updated, because its fake server now answers 404 on `/api/data/RESOURCE/upload` as the real one does. The objectstack-ai#37506 pins keep their meaning: injected fetch, bearer on every request, connection state unchanged. A new top-level describe for objectstack-ai#38163 checks that no request reaches the unserved route, the exact three-step sequence per file, the `recordId` mapping and result, the default scope without `recordId`, the refusal of `fieldName` and `metadata` with zero requests, token-only signing with no token on a foreign presigned URL, `UPLOAD_ERROR` code, status and serverCode, the partial-batch report, progress, and presigned URLs spelled protocol-relative (`//host`), slash-backslash and double-backslash getting no token while the presign and complete requests keep it. Ablation, run after the commit: with the previous string check restored, the slash-backslash case fails (1 of 15). The double-backslash case already got no token under that check. With the origin comparison removed, all three spellings and the cross-origin case fail (4 of 15). After restoring, git status is clean. - Unit ablation: with the base `index.ts` restored on disk, the file reported 12 of 12 failed. With the fix restored, it reported 21 of 21 passed (this file plus `objectstack-upload-scope-12055.test.ts`). - Package run: 128 of 128 test files and 1450 of 1450 tests passed, and `type-check` exited 0, both on 95e3f9f. - Real-stack pin (2 of 2 passing again on 95e3f9f; its `baseUrl` is a bare origin, so no path rule applies), first measured on head 9725c42, resolving the adapter source through the alias (the dependency is declared, and no link was made by hand). The stack is `bootStack` with `StorageServicePlugin`, the attachments fixture and a bearer-only session. `uploadFile` with a `recordId` (token only) and `uploadFiles` (host bearer fetch) pass 2 of 2. They assert committed `sys_file` rows, the `sys_attachment` row with its `attachmentId`, and that no request reached an unserved upload path. Ablation: with the base `index.ts` restored on disk (the file shows the old route twice), both tests fail with `UPLOAD_ERROR` "Not found", the server's 404. After `git checkout HEAD`, git status is clean and both pass again. The dogfood `typecheck` exits 0. ## Acceptance notes - `README.md` (File Uploads) does not describe `uploadFile` / `uploadFiles`, and it is outside the claimed surface. No sentence in it became false. ## Verification Read first: `index.ts`, at `uploadThroughStorage` and `storageUploadFetch` (where the token goes, and which URLs get it), then `uploadFiles` (what a partial batch reports). Two-minute check: run `pnpm --dir ui exec vitest run packages/data-objectstack/src/uploadTransport-37506.test.ts`. Expected: 15 passed. <details><summary>Local gates on head 95e3f9f</summary> `node scripts/pm/dispatch-gates.mjs --commands` derived 87 families over the 8 changed paths, and all 87 exited 0, `check:test-source-alias` included. The `--ran` reconciliation reported: 87 derived, 87 run, 0 NOT-MEASURED. `overlap-check` reported clean: origin/main, objectstack-ai#38192 (which shares the dogfood `package.json`) and objectstack-ai#38284 (which shares `pnpm-lock.yaml`) all merge cleanly. All other CI families are left to the PR's check-runs. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibx7DSQZnugnuX8CpCM)_ <!-- signed: repo:objectstack#3 · os-tesla · session_01L9qibx7DSQZnugnuX8CpCM --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…lared options that have no records (objectstack-ai#38284) repo:objectstack#3 · os-tesla · session_01L9qibyFBwGSJLARjP5asi3 <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoBV4bujns7CcBKes5NFE274)_ Fixes objectstack-ai#36722 repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Clause-②: yes (widening) Metadata-protocol: added Skills-docs: none — an optional, off-by-default presentation switch; the skill's report block teaches the chart's data keys (`xAxis`, `yAxis`, `seriesBy`), and the chart chrome beside it (`showLegend`, `showDataLabels`) is not taught there either ## 维护者速读 - 报表图表多了一个开关「显示数量为 0 的分组」:打开后,选项字段(比如商机阶段)里没有记录的选项也画出来,计数和求和显示 0,平均值留空;不打开时和以前完全一样。 - 解决的是「按阶段看商机」这类图里,空阶段直接消失、看起来像不存在的问题;按日期分组的图本来就会补齐空月份,不需要这个开关。 - 只在有分类轴的图上生效(柱状、条形、折线、面积、雷达、组合);饼图、环形图、漏斗、树图、桑基图按数值定大小,0 分组画不出来,所以这些图上不补、构建器也不给这个开关。 - 只改图表的画法,不改查询和数据;有问题最多是图上多画或少画了空分组,关掉开关即可。 - 无 ## What changes - `packages/spec/src/ui/report.zod.ts`: `ReportChartSchema` gains `showEmptyGroups: z.boolean().optional()`, no default. A report that does not set it parses exactly as before. The TSDoc and the `.describe()` state every case the switch adds nothing in: a field with no declared options, an `order` that reaches the chart, and an answer with no rows (it still draws no chart). They also say that a derived measure stays empty and that an option the report's own filter excludes reads as empty. Since review round 2 (S4) they name the chart families: the switch acts on the charts with a category axis (bar, column, horizontal-bar, line, area, radar, combo); a pie, donut, funnel, treemap or sankey sizes its marks by value and gets nothing added, a scatter takes no select axis, and on a single-value or table type the key is accepted and has no effect. Generated: the report reference page, the authorable surface (`ui/ReportChart:showEmptyGroups`) and the report liveness counts. - `packages/spec/liveness/report.json` (claim amendment 3): the key's own `live` row under `chart.children` (review nit N1), citing `fillEmptyOptionGroups`, `chartDrawsEmptyGroups`, `DatasetReportChart` and their tests, beside the `seriesBy` row; its note names the families. - `ui/packages/plugin-report/src/emptyOptionGroups.ts` (new): `fillEmptyOptionGroups(rows, fill)` adds one row for each declared option of the `xAxis` field that no answer row carries. An added row carries the stored value, so relabelling, declared order and option colours treat it like a real group. Its measure cells are `emptyGroupValueFor(aggregate)` from `@objectstack/spec/data`, the table the analytics executor fills its own empty groups with: `0` for count and sum, no value for avg/min/max. With `seriesBy` an added option gets one row per series value in the answer. Added rows are appended, so every index below the answer's length still addresses the answer. Whether an option is missing is judged by the stored value the answer's `drillRawRows` carries (index-aligned with the rows): a row whose raw twin states the x-axis value is matched by that value alone, so a label the server translated at the request locale never reads as a second, zero-valued group. Only a row with no raw twin falls back to spellings (stored value, authored label, localized label). The same module exports `chartDrawsEmptyGroups(type)`, the one predicate for "this chart type can draw an empty group": bar, column, horizontal-bar, line, area, radar, combo. The renderer and the builder both read it. - `ui/packages/plugin-report/src/DatasetReportRenderer.tsx`: the report chart calls the fill when `chart.showEmptyGroups === true`, no `order` reaches the chart's selection and `chartDrawsEmptyGroups(chart.type)` holds, before relabelling and the declared-order arrangement, and hands it `state.drillRawRows`. A mark on an added group opens no record list. This is plugin-report's first runtime import of `@objectstack/spec`, so the package moves it from `devDependencies` to `dependencies` (`check:undeclared-dep-imports`). The library build externalizes every bare specifier, so the bundle does not grow, and plugin-dashboard already depends on `@objectstack/spec` and imports `@objectstack/spec/data` at runtime. No ui/ import rule refuses it. - `ui/packages/plugin-report/src/builder/`: the report builder shows a "Show groups with no records" switch only where the renderer fills (`chartDrawsEmptyGroups`: bar and line among the builder's own choices, a stored column, area, radar or combo too), and not over a date axis (`offersShowEmptyGroups`; every bucket of the period already appears). It saves `chart.showEmptyGroups: true` and turning it off removes the key. An edit keeps an authored key on every type the renderer plots as a series (`planReportChart`'s 13 series types, so a donut or a stored funnel does not lose it, S2); only a single-value or tabular type drops it. One new locale key, `report.builder.chart.showEmptyGroups`, in all 11 packs. - Docs (claim amendment 1): an "embedded chart" paragraph in `content/docs/ui/reports.mdx` and a README note in plugin-report, both naming the no-fill cases and the chart families. - Changesets: `@objectstack/spec` minor; `@object-ui/plugin-report`, `@object-ui/i18n` patch. Not changed: the analytics executor and the dataset query (route B of the pre-claim report is not built), the table under the chart, HotCRM. ## Why A grouped dataset query answers one row per value that holds rows, so a select option no record carries is absent from the answer. A "deals by stage" bar chart then has no bar for an empty stage, and the stage reads as not existing rather than as zero. The issue's date half already holds on `main`: the executor fills every bucket of a report's period (objectstack-ai#26893), so a date axis needs no switch. ## Tests - `emptyOptionGroups.test.ts` (new, 10 cases): presence by the raw twin's stored value (a server label the client does not know is still present, with the no-raw-twin control drawing the false zero; a raw value overrules a display spelling another option carries; a row without a raw twin falls back to spellings); presence by value, label and localized label; count and sum at 0, avg with no value; one row per series value, the null series included; duplicate declarations added once; the input array returned when nothing is missing. - `DatasetReportRenderer.test.tsx`, a new top-level `describe` in the shared harness (9 cases): count fill in declared order at 0; a group the server labelled "Gewonnen" whose raw twin is `closed_won` is recognised, so no "Closed Won" at 0 is added; sum at 0 and avg empty; `seriesBy` at 0 in every series; a mark on an added stage opens no list and a real one still drills; the selection sent is identical with the switch on and off; CONTROLS that add nothing: switch off, a measure `order`, a text field with no declared options, and (S4) every value-sized type: pie, donut, funnel, treemap, sankey; a category-axis type the builder does not offer itself (area, column) is filled like a bar. - `DatasetReportRenderer.dateRange-25873.test.tsx`, a new `describe`: a date axis over a period sends the same selection and draws the same buckets, the empty month included, with the switch on and off. - `reportBuilder-36374.test.tsx`, a new `describe`: the switch saves, parses as a valid report, reopens checked, and off removes the key; it is offered on bar and line, hidden on a donut (which keeps the key) and on a number; the model keeps it across edits and drops it on metric and table; a stored funnel keeps it across a measure and a grouping edit and offers no switch, a stored gauge drops it; a date axis shows no switch and the model keeps an authored key there; and over the whole `ChartTypeSchema` vocabulary the key is kept on exactly the types `planReportChart` plans as a series and offered on exactly `chartDrawsEmptyGroups`, which is pinned to area, bar, column, combo, horizontal-bar, line, radar. - `packages/spec/src/ui/report.test.ts`: absent stays absent, and a non-boolean is refused at `showEmptyGroups`. ## Acceptance notes - Deviation from the claim's no-fill list. The claim said "not when truncated, sorted by a measure". (1) The chart's selection never sends `limit` or `offset`, and the dataset answer carries no truncation signal, so a truncated chart answer does not occur on this path; there is nothing to test. (2) The fill declines under ANY `order` that reaches the chart, a dimension order included, not only a measure order. Appended rows have no place in an authored order, and the declared-option arrangement is already off under an order. This narrows when the switch acts; it refuses nothing. - A report whose answer has zero rows still draws no chart, as before: the switch fills categories around an answer, it does not invent a chart from nothing. The TSDoc, the `.describe()`, the reports page and the README now say so. - The key is chart-only. The table rendered under the chart is not filled. - Review N3 (switch shown where it changes nothing): carried by round 2. A date axis now hides the switch. Two cases still show it, because the builder does not read a dimension's declared options or the report's order scoping: a text or lookup axis (no declared options) and a report whose `order` reaches the chart. On both the renderer adds nothing, as the contract states. ## Verification - Two-minute check: `pnpm --dir ui exec vitest run packages/plugin-report/src/__tests__/emptyOptionGroups.test.ts packages/plugin-report/src/__tests__/DatasetReportRenderer.test.tsx` passes, the new blocks included. - Read first: `fillEmptyOptionGroups` (`emptyOptionGroups.ts`), then the `chartRows` line in `DatasetReportChart` (`DatasetReportRenderer.tsx`). <details><summary>Local readings at 2ac50c0</summary> - Fill per aggregate (renderer, through the real chart props): count, an empty declared stage reads `0` at its declared place; sum reads `0`; avg has no value at the added stage (nothing to average). - No-fill controls, each with the switch on: switch off adds nothing; a measure `order` adds nothing; a text field with no declared options adds nothing. The selection sent to the dataset is identical with the switch on and off. - Date-bucket pin: a date axis over a period, switch on and off, sends the same selection and draws the same buckets, the 0 month included. - Round 2 (S4) ablations at 2ac50c0 through `scripts/ablation-replace.mjs`, restore blob == HEAD: the renderer's `chartDrawsEmptyGroups(chart.type)` bound removed, 1 failed / 69 passed in the renderer suite (the value-sized CONTROL); the builder's offer predicate widened back to every series type, 3 failed / 107 passed in the builder suite (the donut, stored-funnel and vocabulary pins). - Earlier ablations, each restore blob == HEAD: the fill condition forced false (at 6508986), 4 failed / 111 passed across the four touched suites, the four failures being the fill cases (count, sum/avg, seriesBy, drill), with the controls and the date pin green; the raw-twin branch disabled (at 0d03b6f), 3 failed / 104 passed, the three stored-value pins; the builder's switch set put back to bar/line/donut, 2 failed / 105 passed, the stored-funnel pin and the `planReportChart` parity pin. - Suites at 2ac50c0: `emptyOptionGroups`, `DatasetReportRenderer`, `reportBuilder-36374` 110 passed; `pnpm -s type-check` in `@object-ui/plugin-report` exit 0; `check:generated` and `check:liveness` exit 0 after regenerating the report reference page. - Suites at 1c290e5: `emptyOptionGroups`, `DatasetReportRenderer`, `reportBuilder-36374` 107 passed, `DatasetReportRenderer.dateRange-25873` and `report-spec-parity` green (5 files, 134 passed at 0d03b6f); at 86c2dbe the four touched files 115 passed and `pnpm --dir ui exec vitest run packages/plugin-report packages/i18n` 149 files, 2292 passed, 20 skipped. `packages/spec` `src/ui/report.test.ts` 83 passed. - Typecheck: `@object-ui/plugin-report` `type-check` exit 0 at 1c290e5, after building its dependencies' declarations. CI's Type Check UI was red at a9c6b54 on one new test line (TS2339, `chart?.type` read off `{}`), reproduced locally and fixed in 1c290e5. - Browser at 86c2dbe (showcase, `objectstack dev --fresh` plus the console on vite, Playwright): on the local fresh database the two Backlog tasks were moved to To Do, so the `status` option Backlog holds no records. "Hours by Status (Chart)" drew To Do, In Progress, In Review, Done. In the report builder the "Show groups with no records" switch sits under "Show values". Switched on, the preview drew Backlog, To Do, In Progress, In Review, Done, with Backlog first (declared order) at no height. The switch is hidden on Number, and coming back to Bar it is off (the metric drops the key). Save sent `PUT /api/v1/meta/report/showcase_hours_by_status_chart` with `chart.showEmptyGroups: true`, then publish. The reloaded report view drew the five statuses, and the builder reopened with the switch on. - `dispatch-gates --ran` with recorded exit codes, swept at 2ac50c0: 126 derived, 125 run exit 0, 1 NOT MEASURED (exit 3: `check-plugin-teardown-shape --self-test`, fixture commit outside the shallow clone), 0 unrun. - Earlier sweep at a9c6b54/1c290e5b: 126 derived, 125 run exit 0, 1 NOT MEASURED (exit 3: `check-plugin-teardown-shape --self-test`, fixture commit outside the shallow clone), 0 unrun. `check:dts-closure` and `check:dual-build-cjs-loads` first exited 1 on an incomplete local dist (no declarations for `service-cluster`, missing `platform-objects` files), packages this diff does not touch; both exit 0 after rebuilding those packages. The first sweep at 6508986 found one real red, `check:undeclared-dep-imports` (`@objectstack/spec` was a dev dependency), fixed in 86c2dbe. - PR CI at 2ac50c0: 73 check-runs, 64 success, 9 skipped, 0 failure (at 1c290e5 the same). - `overlap-check.mjs` VERDICT clean exit 0 at 2ac50c0 against main and objectstack-ai#38307, objectstack-ai#38192 (all merge cleanly). </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3)_ <!-- signed: repo:objectstack#3 · os-tesla · session_01L9qibyFBwGSJLARjP5asi3 --> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibyFBwGSJLARjP5asi3 --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…iles become routers (objectstack-ai#38347) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuUejT99q3PMj1DD6eNBk5Kd)_ Part of objectstack-ai#34770 Clause-②: no Metadata-protocol: none Supersedes draft PR objectstack-ai#36158: the same change, resumed from `claude/issue-34770-skill-router-budget@937e2f1` on a new branch after seat 4's lane went vacant, with `main` merged in and the three eval cases of ruling 7176941587 Q1 B added. objectstack-ai#36158 can be closed with a pointer here; nothing on its branch is missing from this one. `Part of`, not `Fixes`: rulings 7128031203 and 7168461386 keep the first line at `Part of objectstack-ai#34770` until the catalog-size line of the card's Done-when is met, and this PR does not meet it (the catalog descriptions are not touched here). ## 维护者速读 - 用户能看到什么变化:用户无感。发给 AI 的两份技能说明(数据建模、自动化)的入口文件从约 27 KB、28 KB 缩到 9 KB、10.7 KB:入口只留开工前四项检查、会悄悄出错的坑、和「写什么去读哪个文件」的路由表,其余原文搬进同包的参考文件,教的内容不变。 - 为什么做:入口文件每次都整份装进 AI 的上下文,越长越贵、越容易漏读;缩成路由后,AI 只在需要时才读细节。 - 出错会怎样:只动教 AI 的文字和三道评测题的判分词,没有产品行为变化。风险是 AI 少读一段后答错;为此前后各跑了一轮评测,逐题对照(见 Tests)。可整笔撤回。 - 要你做的:座位复核后请审批人批准(`skills/**` 属 Tier H)。本 PR 合并后,云端仓库要按 #36934 把十一处托管章节的指向跟着改。 ## Rulings this executes - **7128031203** (①A ②A ④A): land as is, the hosted repoint is cloud's (#36934); a before and an after eval round, parity = the after round's failing set is the before round's or a subset, a flipped case is re-run once and the second reading counts; a ceiling row raised because text MOVED is accepted at the measured bytes with zero headroom when the sum of ceilings does not rise. - **7168461386** (A): six flow-shape facts go back into the automation entry, and that one row rises by exactly the bytes restored. - **7176941587** (Q1 B, Q2 A, Q3 A): three eval cases are relaxed first, then both rounds are run; the 187 bytes of entry wording stay; `triggers#6` is the eval seat's and is not touched here. ## What changes **Two entry files become routers.** `skills/objectstack-data/SKILL.md` 26,860 → 8,983 bytes (472 → 167 lines), `skills/objectstack-automation/SKILL.md` 28,206 → 10,703 bytes (480 → 215 lines). Each keeps four first checks, the traps that parse and then fail at run time, and a table that says which file to open for what is being written. No rule's teaching changes; the text moved, and the changeset lists section by section where it went and which anchors no longer exist in the entry files. **Eight files receive the moved text**: `objectstack-data/references/examples-objects.md`, `rules/field-types.md`, `rules/relationships.md`, `rules/security.md`, `rules/validation.md`; `objectstack-automation/references/examples-flows.md`, `references/integration-recipes.md`, and a re-pointed link in `references/state-machines-and-approvals.md`. **One correction** (unchanged from objectstack-ai#36158): the multi-value lookup note showed a `{record.tags.0}` token "in flow values", which a flow value slot refuses; it now shows the CEL spelling `record.tags[0]`. **New in this round, over `937e2f14`:** 1. **`main` merged** (through `600197a6ae`; a merge commit, not a rebase). Two things `main` changed in the entry files while objectstack-ai#36158 was open were mapped onto the relocated text instead of being lost with the old sections: - objectstack-ai#37551's option-label wording. The automation entry's item 4 of § Valid-but-silently-wrong keeps the rule and both outcomes (refused at publish where the options are inline, else no row matches or the run fails); `references/examples-flows.md` carries `main`'s sentence verbatim. - objectstack-ai#37551's `actionLayout` sentence of § Object Extension Model, now in `references/examples-objects.md`, verbatim. - A scan of every line `main` removed from the two entry files found no stale copy left in a receiving file. 2. **Three eval cases accept the spellings the bundles teach** (ruling 7176941587 Q1 B): - `objectstack-automation/evals/flows-triggers-approvals.json` case 1: `must_not_contain` `values:` → `values: {` (the key form a node carries; a prose heading also spells the bare word). - `objectstack-data/evals/hooks-security-seeds-datasources.json` case 7: `hooks: {` leaves `must_contain` for one any-of group `hooks: {` / `"hooks": {` / `.refusals.CREDIT_LIMIT` (the nested literal, its JSON spelling, or the dotted key `references/data-hooks.md` teaches). - `objectstack-data/evals/objects-fields-relationships.json` case 10: `type: 'boolean'` leaves `must_contain` for one any-of group `type: 'boolean'` / `Field.boolean(`. 3. **Ratchet rows re-measured on the merged tree**, since objectstack-ai#37747 made a row equal its measurement exactly (see Verification). 4. **The changeset** follows the merged tree's sizes and names the three eval cases. 5. **Three nits of contract review 7240993637** (head `edcd7df4ad`, one commit over the reviewed `3b62b5e9b0`): - `skills/objectstack-project/SKILL.md` line 187 pointed at objectstack-data, "Schema evolution", a heading the router moved. It now names `rules/field-types.md` § Changing a field that has data. That file sat at its ceiling, so the longer pointer is paid in the same file by five function-word cuts that lose no fact; its row stays 2990. - `scripts/check-skills-token-ratchet.mjs` loses one formula comment line the merge left in the `rules/security.md` history block. - The changeset says what the `Skill Boundaries` table listed (the neighbouring skills) and names the re-pointed objectstack-project line. ## Acceptance notes Decided by the thread (small, no shipped behaviour): - `"hooks": {` is a third member of case 7's any-of group. The ruling names the dotted key; the JSON spelling of the same nested literal is the form a `.json` translation file carries, and refusing it would fail a correct answer on quote marks. - `references/state-machines-and-approvals.md` measured 2 tokens over `main`'s row after the merge (the re-pointed link is 9 bytes longer). It is paid inside the file ("In a packaged flow, see below" → "A packaged flow: below") instead of raising a row no ruling covers. - The before round ran on `main` `600197a6ae` plus only the three eval-case edits (skill text byte-identical to `main`), so both rounds grade with the same token lists. Without that the three relaxed cases would differ between the rounds for a reason that is not the router. Not done, and why: - **objectstack-ai#36718's flow-shape harness is NOT re-run** (a merge condition of ruling 7128031203). It was scratch in the vacated container and is not in the repository. It was run to 0 on `937e2f14` (report 7170977110); this round adds no flow example over that head, only the two sentences above, both `main`'s own words. NOT MEASURED on this head. - The catalog-size line of Done-when: outside this PR, hence `Part of`. - `triggers#6` (ruling Q3 A): the eval seat's. ## Tests Skill evals, the command line of objectstack-ai#37235 unchanged for both rounds, run in the thread's cloud container (subscription login, no API key): ``` pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-automation --repeats 1 --model <as objectstack-ai#37235> --effort medium --concurrency 4 ``` | round | tree | turns | with-skill | objectstack-automation | objectstack-data | no-skill | trigger cases | |:--|:--|--:|--:|--:|--:|--:|--:| | before | `main` `600197a6ae` + the three eval-case edits (`304a4c5375`, local only) | 206/206 | 75/96 | 24/29 | 51/67 | 2/96 | 14/14 | | after, first reading | head `3b62b5e9b0` | 206/206 | 77/96 | 23/29 | 54/67 | 2/96 | 13/14 | | after, with the second readings | head `3b62b5e9b0` | +7 | **80/96** | 24/29 | 56/67 | | 14/14 | **Parity under ruling 7128031203 ②A holds: the after round's failing set is a strict subset of the before round's.** - **Failed in both rounds (16):** automation `flows-triggers-approvals` objectstack-ai#5, objectstack-ai#11, objectstack-ai#14, objectstack-ai#16, `integrations-declared` objectstack-ai#1; data `hooks-security-seeds-datasources` objectstack-ai#3, objectstack-ai#6, objectstack-ai#8, objectstack-ai#16, objectstack-ai#19, objectstack-ai#34, objectstack-ai#38; data `objects-fields-relationships` objectstack-ai#2, objectstack-ai#8, objectstack-ai#22, objectstack-ai#24. - **Failed before, pass after (5):** data `hooks-security-seeds-datasources` objectstack-ai#5, objectstack-ai#14, objectstack-ai#15, objectstack-ai#24; `objects-fields-relationships` objectstack-ai#10. - **Passed before, failed on the after round's first reading (4), each re-run once as the rule says, and each passed its second reading:** automation `flows-triggers-approvals` objectstack-ai#7 (the first answer carried the forbidden `current_user.positions`), data `hooks-security-seeds-datasources` objectstack-ai#25 (missed `default datasource`), `objects-fields-relationships` objectstack-ai#11 (missed `type: 'select'`), and trigger case `objectstack-data/triggers#6` (the bundle was read when it should have been left alone; the case of ruling Q3 A, which this PR does not change). Re-run with the same flags plus `--case` for those four keys: 7 of 7 turns, all four pass. - The three relaxed cases: `flows-triggers-approvals` objectstack-ai#1 and `hooks-security-seeds-datasources` objectstack-ai#7 pass in both rounds; `objects-fields-relationships` objectstack-ai#10 failed before on `label: '是否完成'`, not on the relaxed token, and passes after. One repetition per case is the round the card and objectstack-ai#37235 fix; at that depth a single case moves between readings for no reason of the text (four did here, in the unfavourable direction, and reverted). The five that moved the favourable way were not re-read: the rule re-reads a flip that would break parity, and a gain is not claimed from one reading. Read the result as "not lower", not as "five cases better". Both rounds were read on `3b62b5e9b0`. The commit after it (`edcd7df4ad`) changes no file of the two evaluated bundles (one line of objectstack-project, a script comment, the changeset), so the rounds were not run again. Records (round.json, every turn's record, both summaries): `skill-evals-before-304a4c53.tgz`, `skill-evals-after-3b62b5e9.tgz`, `skill-evals-after-reread-3b62b5e9.tgz` in the project's shared files, folder `34770/`. No unit test changes: the diff is skill text, three eval fixtures, ratchet rows and a changeset. The one test that names the ratchet script, `packages/spec/scripts/platform-catalog.test.ts`, ran apart from the gate list (see Verification). ## Verification Eleven skill files, measured on the head `edcd7df4ad` against `main` (`ceil((utf8 bytes − the SKILL.md version stamp line) / 4)`, the ratchet's own arithmetic): | file | lines | bytes | ratchet row | |:--|--:|--:|--:| | `objectstack-data/SKILL.md` | 472 → 167 | 26,860 → 8,983 | 6709 → 2239 | | `objectstack-data/references/examples-objects.md` | 192 → 305 | 6,892 → 14,441 | 1723 → 3611 | | `objectstack-data/rules/field-types.md` | 273 → 318 | 14,160 → 16,799 | 3540 → 4200 | | `objectstack-data/rules/relationships.md` | 384 → 393 | 16,714 → 17,274 | 4179 → 4319 | | `objectstack-data/rules/security.md` | 349 → 388 | 17,335 → 19,290 | 4334 → 4823 | | `objectstack-data/rules/validation.md` | 329 → 392 | 11,031 → 13,861 | 2758 → 3466 | | `objectstack-automation/SKILL.md` | 480 → 215 | 28,206 → 10,703 | 7045 → 2669 | | `objectstack-automation/references/examples-flows.md` | 145 → 432 | 6,170 → 25,729 | 1543 → 6433 | | `objectstack-automation/references/integration-recipes.md` | 186 → 212 | 10,379 → 12,222 | 2595 → 3056 | | `objectstack-automation/references/state-machines-and-approvals.md` | 388 → 388 | 23,706 → 23,708 | 5927 → 5927 | | **ten files of the move** | 3,198 → 3,210 | 161,453 → 163,010 | 40,353 → 40,743 | | `objectstack-project/SKILL.md` (the re-pointed line) | 214 → 214 | 11,985 → 11,987 | 2990 → 2990 | - **What an AI loads first**: the two entry files together 55,066 → 19,686 bytes (13,754 → 4,908 tokens), 64% smaller. - **Whole pack**: authored (ratcheted) 200,068 → 200,458 tokens (+390); bundle total 304,380 → 304,770. The pack does not shrink: the text moved inside it. - **Ruling ④A accounting**: every raised row equals its measured bytes, zero headroom (the gate is exact since objectstack-ai#37747, so a row above or below its file is red). Of the +390, +430 is the automation entry's own row (the pure router measured 2239; ruling 7168461386 A restores six flow-shape facts and ruling 7176941587 Q2 A keeps 187 bytes, 2239 → 2670, then 2669 after the merge). Set that authorised row aside and the moves sum to −40: the sum of ceilings does not rise. <details><summary>Gates run locally on the head</summary> Derived with `node scripts/pm/dispatch-gates.mjs --commands` on `3b62b5e9b0`, each command run and its exit code recorded, then reconciled with `--ran`: **69 derived, 68 run (each exit 0), 1 NOT-MEASURED, 0 unrun.** On head `edcd7df4ad` (the three nits) the 16 gates that read the changed files were run again, each exit 0: the fourteen skill gates (`check-skills-token-ratchet` and its self-test, `check:skill-docs`, `check:skill-refs`, `check:skill-served-sections`, `check:skill-links`, `check:skill-identifier-liveness`, `check:skill-compatibility`, `check:skill-frame-sync`, `check:doc-authoring`, `check:nul-bytes`, `check:pm-skill-id-lint`, `check:skill-examples`, `check:doc-formula-expressions`) and the two changeset gates. The other gates were not re-run on it. A trial merge with `origin/main` `c6a1328dfe` (which moved the ratchet script and `skills/objectstack-ai/SKILL.md` meanwhile) has no conflict and the ratchet is green on the merged tree (200,510 / 200,510); the trial was discarded and `main` is not merged again. - NOT MEASURED: `pnpm check:dual-build-cjs-loads` exited 3 (prerequisite not met: it needs every package's `dist`, a whole `pnpm build`). Long builds go to GitHub under this project's standing rule, so CI is the reading for it; the diff touches no package source. - `pnpm check:skill-examples` needed `pnpm --filter '@objectstack/client-react...' --filter '@objectstack/lint...' build` first; then exit 0, 351 prose examples type-check across 3 surfaces. - Outside the derived list, run apart: `pnpm --filter @objectstack/spec exec vitest run scripts/platform-catalog.test.ts` (the one test that names the ratchet script), 21 of 21. - `node scripts/pm/overlap-check.mjs` before the first push: clean against `origin/main` and the two open PRs that share a file (objectstack-ai#38224, objectstack-ai#38192). Exit 0, all 68: `node scripts/check-adr-0087-registration.mjs --base origin/main` · `node scripts/check-adr-0087-registration.mjs --self-test` · `node scripts/check-changeset-no-major.mjs --base origin/main` · `node scripts/check-closing-keyword-parity.mjs` · `node scripts/check-closing-keyword-parity.mjs --self-test` · `node scripts/check-comment-mask-corpus.mjs` · `node scripts/check-declaration-mirrors.mjs` · `node scripts/check-declaration-mirrors.mjs --self-test` · `node scripts/check-doc-route-spelling.mjs --advisory` · `node scripts/check-doc-route-spelling.mjs --self-test` · `node scripts/check-dts-emitted.mjs --self-test` · `node scripts/check-empty-changeset.mjs --base origin/main` · `node scripts/check-empty-changeset.mjs --self-test` · `node scripts/check-self-test-wired.mjs` · `node scripts/check-self-test-wired.mjs --self-test` · `node scripts/check-self-test-workflow-commands.mjs` · `node scripts/check-self-test-workflow-commands.mjs --self-test` · `node scripts/check-skills-token-ratchet.mjs` · `node scripts/check-skills-token-ratchet.mjs --self-test` · `node scripts/check-whole-set-label-write.mjs` · `node scripts/check-whole-set-label-write.mjs --self-test` · `node scripts/ci/assert-turbo-remote-cache.mjs --self-test` · `node scripts/ci/plan-test-core-shards.mjs --self-test` · `node scripts/ci/prune-turbo-cache.mjs --self-test` · `node scripts/ci/snapshot-next.mjs --self-test` · `node scripts/pm/bare-root-worklist.mjs --self-test` · `node scripts/pm/check-governed-queue-guard.mjs --self-test` · `node scripts/pm/release-rehearsal-clone.mjs --self-test` · `node scripts/release-pending-publish.mjs --self-test` · `--filter @objectstack/lint run check:doc-formula-expressions` · `--filter @objectstack/spec run check:skill-docs` · `--filter @objectstack/spec run check:skill-refs` · `--filter @objectstack/spec run check:skill-served-sections` · `check:adr-anchors` · `check:agent-test-spelling` · `check:bash32-floor` · `check:changeset-gate-self-tests` · `check:ci-filter-parity` · `check:cli-command-ids` · `check:closed-ceremony-text` · `check:corpus-claim-drift` · `check:cross-package-test-inputs` · `check:doc-authoring` · `check:driver-memory-census` · `check:dts-closure` · `check:entry-guard` · `check:gitlink-declared` · `check:lean-entry-closure` · `check:merge-driver` · `check:nul-bytes` · `check:parse-guard` · `check:pm-dispatch-gates` · `check:pm-expected-skips` · `check:pm-governed-merges` · `check:pm-skill-id-lint` · `check:pnpm-filter-targets` · `check:pnpm-flag-spellings` · `check:published-files` · `check:ratchet-remedy-authority` · `check:refd-timer-probe` · `check:role-word` · `check:scripts-symbol-anchors` · `check:skill-compatibility` · `check:skill-frame-sync` · `check:skill-identifier-liveness` · `check:skill-links` · `check:sourcemap-no-sources-content` · `check:watch-hint-literal` </details> **Writer**: all `skills/**` text was written by the card thread itself, a session at `CONTRACT_REVIEW_TIER` per the claim (7240213191). Every assistant turn of the session's transcript was served at the tier (210 of 210 when counted against the constant in `scripts/pm/dispatch-gates.mjs`); `verify-review-tier.mjs` itself refuses the transcript because the session once ran a read-only sub-agent to read the rulebook, so that count is the thread's reading, not the script's PASS. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgUTzGxLiCQYi8Wvn3K)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgUTzGxLiCQYi8Wvn3K <!-- signed: repo:objectstack#2 · os-sales · session_01L6bhgUTzGxLiCQYi8Wvn3K --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…ectstack-data teaches the four locks (objectstack-ai#38428) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu8dhiDUf1jDKZiZnYduzapm)_ Fixes objectstack-ai#37405 Clause-②: no (no accept set or export changes; governed rules text, so one contract-review-tier review before the queue; Tier H) Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:给应用建数据模型的人和 AI,现在能从技能里学到「锁定一个字段」的四种写法各在什么时候用(比如销售订单的状态只让「确认」按钮改、不让人手改);把两种锁同时配在一个字段上时,校验报错会指出该看哪份设计说明。平台行为不变。 - 为什么做:你对「字段只读分两级」那张决策卡已经定了长远模型,功能也已上线,但设计说明和技能里一直没有记下来,这一步是补上记录。 - 出错会怎样:最坏是说明里某句话和平台实际做法对不上,作者照着配错了锁;只改文字和一句报错提示,可以直接撤回。 - 要你做什么:设计说明和技能文件的改动需要你批准合并。 ## What changes No key, schema, accepted value, default or runtime behaviour changes. This records the ruling of record on objectstack-ai#36806 (ruling record 7180466652, 「按长远模型」) and the two object-level rulings on objectstack-ai#37402 (ruling records 7235326611 and 7237772411), whose code landed in objectstack-ai#37436, objectstack-ai#37888 and objectstack-ai#38169. - `docs/adr/0163-field-write-locks-two-tiers-two-forms-two-levels-ui-prefix-admission.md` (new, `Accepted (2026-11-26)` on the ruling record; it reaches `main` only by the Tier H approval). D1 two tiers (server lock `readonly` / `readonlyWhen`, hand lock `uiReadonly` / `uiReadonlyWhen`), D2 two forms (`readonlyWhen: P\`true\`` is the set-once spelling), D3 two levels (the object's `uiReadonlyWhen`; a field's own declaration wins; `uiReadonly: false` is not a declaration), D4 what "by hand" is, D5 the admission rule of the `ui` prefix (`uiVisibleWhen` / `uiRequiredWhen` are not admitted), D6 contradictions, D7 the server lock stays a strip. The record keeps two kinds of statement apart: Decision carries only what the rulings say, quoted; "As built" says what `main` does at `c610020e`, by symbol anchor. A third section, "Ruled and not yet held", lists the three places the ruling covers and the code does not reach yet, each with its open carrier card. - `docs/adr/README.md`: regenerated by `node scripts/adr-index.mjs` (164 records). - `skills/objectstack-data/rules/validation.md`: new section `## Locking a Field`: a two-by-two table of the four keys (who is kept out, and when), one checked sales-order example (the hotcrm#2716 case: a `status` only the Confirm action moves), and five bullets on what each column does at run time. - `skills/objectstack-data/SKILL.md` § Conditional Field Rules: the first bullet keeps its trap (the value is dropped, the write is not refused, a declarative action's included) and routes to the new section. - `skills/objectstack-data/evals/objects-fields-relationships.json`: case 30, a `uiReadonly` status field (`must_contain`: `uiReadonly: true`, `state_machine`). `evals/README.md` names it. - `packages/spec/src/data/field.zod.ts`: the parse refusal for `uiReadonly: true` beside `readonly: true` keeps its wording and now ends `The two locks and which one to choose: ADR-0163 (D1, D6).` This is the text `objectstack validate` prints for the pair. Pinned in `field-ui-readonly.test.ts`. - `.changeset/37405-field-write-lock-adr-skill.md`: `@objectstack/spec` and `@objectstack/skills`, patch. **One sentence of the skill is corrected, not only moved.** `rules/validation.md` said "Imports and migrations are system-context writes too." An import is not a system-context write. The `readonly` describe in `FieldSchema` says so ("A normal (non-system) import is NOT system-context and still strips"), `importControlOptOutRefusal` in `packages/rest/src/import-prepare.ts` refuses the historical-import opt-out to every HTTP caller, and the objectstack-ai#36806 measurement found the same. The new section lists an import among the writes `readonly: true` drops, and a migration among the system writers it lets through. **Token ratchet** (`scripts/check-skills-token-ratchet.mjs`), two rows: - `skills/objectstack-data/SKILL.md` 2239 → 2224: lowered to the measurement. - `skills/objectstack-data/rules/validation.md` 3466 → 3862 (+396). The section is ordered into this skill by the ruling of record on objectstack-ai#36806 (ruling record 7180466652: the four spellings, which one to use, the sales-order status example), and the raise follows the standing ruling, verbatim: 「A:先削重复,余额按实测提高」 (ruling record 6513306068). Paid down first in the same file, 1035 bytes cut against 2622 added: - the two `readonly` / `readonlyWhen` bullets of § Conditional Field Rules are now one pointer at the new section, which says the same once; - § Conditional Validation loses its first example (`enterprise_requires_manager`) and the lead-in of the second, whose `when` / `then` / `otherwise` rule shows everything the first did. ### Skills readings (lines / bytes / tokens) | | before | after | |:-|:-|:-| | `skills/objectstack-data/rules/validation.md` | 392 / 13861 / 3466 | 421 / 15448 / 3862 | | `skills/objectstack-data/SKILL.md` | 167 / 8983 / 2239 | 167 / 8923 / 2224 | | `skills/objectstack-data/evals/objects-fields-relationships.json` (not ratcheted) | 520 / 37381 | 533 / 38751 | | `skills/objectstack-data/evals/README.md` (not ratcheted) | 17 / 969 | 18 / 1016 | | all of `skills/objectstack-data/**` | 4643 / 252853 | 4686 / 255797 | | all `skills/*/SKILL.md` | 4386 / 228159 | 4386 / 228099 | | all of `skills/**` | 23333 / 1230467 | 23376 / 1233411 | | ratcheted (authored) total, tokens | 200510 | 200891 | ### Round 2 (head 6e397de): the contract review of 0922ab3 The review (comment 7248470779, PASS) left one should-fix and one nit. Both are done in one commit. - S1, `SKILL.md`: "a button's action included" was true of a declarative action only. A script action's body runs in a system context, so its write to a `readonly: true` field lands (ADR-0163, Alternatives, row 3). The clause now reads "a declarative action's included". The ratchet row follows the file to its measurement, 2224 (2223 at the previous head). - N1, `rules/validation.md`: the table's left column was headed "Every non-system write" over `readonlyWhen` too, which binds system writes as well. The header is now "Every write" and the `readonly: true` cell carries "(system writes pass)". The right header lost one word to pay for it ("Only a person at the console"), and the Confirm sentence names "a declarative Confirm". The file is 15448 bytes and its row stays 3862. - The changeset's sentence on the Confirm action says "a declarative action's own write" to match. ## Tests - `packages/spec/src/data/field-ui-readonly.test.ts`: the existing refusal case also asserts the message ends with `ADR-0163 (D1, D6).` `vitest run src/data/field-ui-readonly.test.ts` in `packages/spec`: 5 of 5 pass. - The new skill example carries the `os:check` marker, so `check:skill-examples` type-checks it against the built `@objectstack/spec` declarations. Exit 0: 353 marked examples type-check, this one among them. The example was also parsed by `ObjectSchema` and read by `validateStackExpressions` in two scratch vitest files (not committed): it parses, and the expression lint reports no issue for `readonlyWhen: P`true`` or `uiReadonlyWhen: P`false``. - `check:skill-eval-tokens`: exit 0; both `must_contain` tokens of case 30 are taught by the bundle. - Not run: a model-driven round of the skill evals. Case 30 has a new hash and no recorded answer yet. ## Acceptance notes - Done-when, line by line. "ADR accepted on `main`": the record's status is `Accepted` on the ruling record and it lands by the Tier H approval of this PR. "Skill section in place and its eval exercises a `uiReadonly` status field": the section and case 30. "`objectstack validate`'s refusal text for `uiReadonly` + `readonly` points at the ADR": the message above. - The card's Asked lists what the ruling says. Three points of it are not held by code on `main` yet. The ADR says so in "Ruled and not yet held" and names the open carrier of each: objectstack-ai#37898 (the assistant is among the hands the ruling names; cloud AI service), objectstack-ai#38202 (console Duplicate carries a hand-locked value), objectstack-ai#38249 (inline child lines of a hand-locked parent). The skill section teaches only what `main` does today. - "`uiVisibleWhen` / `uiRequiredWhen` refused" (card wording): the ruling's rule is that a key earns a `ui` twin only when an action must write what a person may not, and only read-only meets it. Neither key exists in the schema, so a strict parse answers each as an unknown key. No dedicated refusal is added here; the ADR records the rule (D5) and the skill says there is no `uiVisibleWhen`. - D3 records that an object-level server lock (`readonlyWhen` on the object) is not filed anywhere; it is named so a later reader does not infer it from the hand lock's object level. - The refusal message names the ADR by number, the form the spec's other messages use (`ADR-0158 U2`, `ADR-0049`). - Branch `claude/project-thread-bqsxpg` is assigned by the harness, not the repo's `claude/issue-N-…` convention. ## Verification Two-minute check: `node scripts/check-skills-token-ratchet.mjs`, expect exit 0 with `skills/objectstack-data/rules/validation.md` 3862 / 3862 and `skills/objectstack-data/SKILL.md` 2224 / 2224. Read first, by risk: 1. `skills/objectstack-data/rules/validation.md` § Locking a Field (it ships to third parties verbatim): the left-column bullet, where the writers `readonly: true` drops and lets through are listed, and the import correction. 2. `docs/adr/0163-…md` D3 and D4 against the ruling records, then "Ruled and not yet held". 3. `scripts/check-skills-token-ratchet.mjs`: the two rows and their arithmetic. <details><summary>Local gates at 6e397de (only what reads the two changed skill files)</summary> Not the whole list again: the second commit changes two skill files, the ratchet rows and one changeset sentence. Re-run, each exit 0: `check-skills-token-ratchet.mjs` (and `--self-test`), `ui` `check:skill-eval-tokens`, `check:skill-links`, `check:skill-frame-sync`, `check:skill-identifier-liveness`, spec `check:skill-examples` (353 examples), `check:skill-docs`, `check:skill-refs`, `check:skill-served-sections`, `check-nul-bytes.mjs`. </details> <details><summary>Local gates at 0922ab3</summary> `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran FILE`, each command recorded as `CMD :: exit N`: **124 derived, 120 run, 4 NOT-MEASURED, 0 UNRUN**. Every run family exit 0, among them `check-skills-token-ratchet.mjs` (and `--self-test`), `check:adr-index`, `check:adr-anchors`, `check:adr-symbol-anchors`, `check-adr-links.mjs`, `check:skill-links`, `check:skill-frame-sync`, `check:skill-identifier-liveness`, spec `check:docs` / `check:api-surface` / `check:authorable-surface` / `check:skill-docs` / `check:skill-refs` / `check:liveness`, `check-empty-changeset.mjs`, `check-adr-0087-registration.mjs --base origin/main`, `check:ratchet-remedy-authority`, `check:type-check-debt`. - The four recorded exit 3 (prerequisite not met), as the tool reads the record: - `check-plugin-teardown-shape.mjs --self-test`: NOT MEASURED. Its positive control is pinned to a commit this shallow clone cannot reach. The gate itself (without `--self-test`) ran, exit 0. - `check:doc-formula-expressions`, `check:dual-build-cjs-loads`, `check:lean-entry-closure`: exit 3 on the first pass (their build closures were missing). After the closures were built each was run again alone, exit 0. The record keeps both lines, and the tool reads a command with two codes as the worse one, so its count stays 4. - Outside the derived list, run by hand: spec `check:skill-examples` (exit 3 before the `@objectstack/client-react` closure was built, exit 0 after: 353 examples), `ui` `check:skill-eval-tokens` (exit 0), `ui` `check:skills-paths` (exit 0). - `scripts/pm/overlap-check.mjs`: clean against `origin/main` (3579cf1) and the one open PR that shares a file (objectstack-ai#38192, `skills/objectstack-data/SKILL.md`). - Built at `c610020e` plus this diff; `main` moved three commits since (none under this diff's paths), not merged in. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgTpyo8gQyqf9Tj9mfz <!-- signed: repo:objectstack#2 · os-sales · session_01L6bhgTpyo8gQyqf9Tj9mfz --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…bjectstack-ai#38434) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X7GWETDi9u4dvkUQScG3bFd)_ Part of objectstack-ai#34770 Clause-②: no Metadata-protocol: none `Part of`, not the closing form: the catalog-size line of the card's Done-when is not met by this PR (PR 1 of the per-skill split in claim 7247529795). **Eval parity is settled by ruling record 7249189592** (see Eval parity under Tests): the three cases that read as misses on single runs, cases 6, 11 and 20, flip on `main`'s own text too and do not block. ## 维护者速读 - 用户能看到什么变化:用户无感。发给 AI 的平台技能说明,入口文件从约 25 KB 缩到 9 KB:入口只留开工前四项检查、能通过校验却在运行时出错的坑、和「要做什么就去读哪个文件」的路由表;其余原文搬进同一技能的参考文件,教的内容不变。 - 为什么做:这是「技能目录瘦身」的第四份(数据、界面、自动化三份已完成)。入口文件每次都整份装进 AI 的上下文,越长越贵,也越容易漏读。 - 出错会怎样:只动教 AI 的文字,没有产品行为变化;风险是 AI 少读一段后答错。改动前后都跑了评测:23 题里有三题在单次运行里时过时不过,改动前的文字上也一样,按你的裁定算两边都不稳,不拦这笔改动。可整笔撤回。 - 要你做的:无。席位核对与合约审查通过后,会按治理规则请审批人批准。 ## Rulings this executes - **Card Scope** (decision record on the card, S3 = A): the entry file holds first checks, at most about 8 traps that pass the schema and fail at run time, and a routing list; 6–9 KB, hard cap 500 lines; restated option lists and key tables go behind a pointer; no trap is removed until a publish-time check covers it or it stays inline. - **7128031203** fork 4 = A, verbatim: "A ratchet ceiling raised because text MOVED between files is accepted when (a) each raised row equals the measured bytes moved in, with zero headroom, and (b) the sum of ceilings does not rise. It covers PR objectstack-ai#36158's seven rows (re-measured on its final head) and later moves of the same kind; any row outside (a)/(b) still goes to the maintainer." Beside the standing 2026-10-27 ruling 「A:先削重复,余额按实测提高」 (record 6513306068). - **7128031203** fork 2 = A, the parity rule, verbatim: "the same set of failing cases counts as \"not lower\"; a case that flips between the rounds is rerun once and its second reading counts." - No new file under `skills/` (a split needs new ratchet rows, which that ruling left to a human): text moved only into files that already have a row. - **Ruling record 7249189592** (on the card; the maintainer's answer, verbatim 「4」, to the option 「把技能瘦身那个时好时坏的评测按「两边都不稳」放行,objectstack-ai#34770 后面 7 个 PR 才能接着走。」): "a `config-plugins-ops` case whose result flips between runs on both trees (main and head) is treated as unstable on both and does not block the PR. On PR objectstack-ai#38434, case 6 (`driver-sql`: main 3/5, head 5/5) and case 11 (`new similar`: main 4/5, head 3/5) pass the parity gate on this ruling. ... A case that fails on every run of head while main passes is still a regression." ## What changes **The entry file becomes a router.** `skills/objectstack-platform/SKILL.md`: 24,659 → 9,025 bytes, 421 → 105 lines, 6,158 → 2,250 tokens. Frontmatter (description, triggers) is byte-identical. It now holds: - `## First checks`: version, read what exists, read the contract (`references/_index.md`), `os validate`. - `## Traps`, five, each one passing `os validate` and failing at run time: no driver in `plugins:`; an installed package is customized from its paired `.custom` package; who owns the HTTP server and that `prefix` does not move auth; `manifest.engines.protocol`; `manifest.namespace`. - Three sections a gate binds to this file, each cut to its enumeration plus what fails silently: the `defineStack()` key list (`check-skill-top-level-keys`), the `requires:` provider table with three rules, and `## Seed Data` with the `demoStaff` trap (both Leg 2 of `check-skill-identifier-liveness`). - `## Where to go`: one row per task, naming the file to open. **Where each old section went.** | Old entry section | Now | |:--|:--| | Full Configuration Reference (key list, phantom keys, queues / assignment rules) | stays inline, compacted (gate-bound) | | Strict Validation | `references/bootstrap.md` § Strict Validation, verbatim | | Compile Artifact and Runtime Metadata Boundary | one paragraph in `references/operations.md`, above Verify your work | | Manifest Reference | the two rules are traps 4 and 5; the rest is `references/bootstrap.md` § Manifest; the annotated example is cut (see Acceptance notes) | | Customizing an installed package | trap 2 inline; the three paragraphs verbatim in `references/bootstrap.md` § Customizing an installed package | | The App / Platform Boundary | cut to a pointer at objectstack-project, which states it; the two sentences it does not have are `references/bootstrap.md` § App or platform | | The Template | `references/bootstrap.md`, under Scaffolding Command | | Project Structure Conventions, Naming Conventions | `references/bootstrap.md` § Project Structure Conventions; the naming table is cut to a pointer at objectstack-data | | Driver Selection Guide, Wiring a driver | trap 1 inline; the table verbatim and the remainder in `references/operations.md` | | HTTP Layer (Hono) | trap 3 inline; the two-package table and the remainder in `references/operations.md`; the usage snippet is cut | | Runtime Boot Sequence | `references/bootstrap.md` § Runtime Boot Sequence, verbatim | | `requires:` | provider table and three rules inline; the remainder is `references/bootstrap.md` § `requires:` in detail | | `onEnable` | `references/bootstrap.md`, verbatim | | Seed Data, Demo accounts | inline (modes, and that a seed cannot create a person); the example and detail in `references/bootstrap.md` § Demo accounts | | References | replaced by the routing table | **Two restatements cut inside the skill** to pay for the move: in `references/plugin-development.md`, the `Plugin` interface block and the hook example with its event list are one pointer each to `rules/plugin-lifecycle.md` and `references/plugin-hooks.md`, which carry the same text. **Sizes** (bytes · lines · ratchet tokens): | | before (`ff69bcab`) | after (`cb8b7cd1`) | |:--|--:|--:| | `SKILL.md` (entry) | 24,659 · 421 · 6,158 | 9,025 · 105 · 2,250 | | `references/bootstrap.md` | 5,425 · 188 · 1,340 | 17,621 · 375 · 4,389 | | `references/operations.md` | 13,556 · 179 · 3,389 | 16,075 · 223 · 4,019 | | `references/plugin-development.md` | 12,505 · 358 · 3,127 | 11,360 · 320 · 2,840 | | `skills/objectstack-platform/**` (9 files) | 107,525 · 2,398 | 105,461 · 2,275 | | all 14 `SKILL.md` together | 228,159 · 4,386 | 212,525 · 4,070 | | whole `skills/` tree (115 files) | 1,230,467 | 1,228,403 | | whole tree without `evals/` | 872,675 | 870,611 | | ratchet: authored tokens = sum of all ceilings | 200,510 | 199,994 | | ratchet: bundle total, tokens | 304,822 | 304,306 | **Budget reading:** entry 9,025 B, over 9,000 B by 25 B. 9,000 B is the top of the card's Scope line ("Budget 6–9 KB, hard cap 500 lines", the maintainer-approved filing); the overrun is the `@objectstack/driver-sql` literal the case-6 behaviour depends on, kept inline on the seat's choice (B) of 2026-11-29, and is for the approver to accept or refuse. No ratchet ceiling rises for it. The 500-line cap holds (105 lines). The row is unchanged at 2,250 tokens (8,998 priced bytes), still at the measure. **Contract review fix (review record 7249357427, S1 and N1), paid inside the entry, 9,027 → 9,025 B:** the AI-door rule names the gated call again (`run_action` on an action declaring `ai.requiresConfirmation: true` is what is refused 428 with no confirmation service), and the host-default sentence says `pinyin-search` mounts for a `zh-*` locale in `i18n`. The skill directory falls 2,064 bytes. The cut is small beside the move because three of the entry's enumerations are gate-bound and stay (see Acceptance notes). **Ratchet rows** (`scripts/check-skills-token-ratchet.mjs`), each pinned AT its measurement, zero headroom: entry 6158 → 2250 (−3908), `references/bootstrap.md` 1340 → 4389 (+3049), `references/operations.md` 3389 → 4019 (+630), `references/plugin-development.md` 3127 → 2840 (−287). The four rows sum 14,014 → 13,498; the sum of all ceilings goes 200,510 → 199,994, so both conditions of fork 4 = A hold. ## Tests ### Eval parity Judged by ruling record 7249189592, quoted under Rulings: a case that flips between runs on both trees is unstable on both and does not block; a case that fails on every run of the head while `main` passes is a regression. **No case fails on every run of the head while `main` passes.** Skill evals, both arms, one command line for every round (`skill-evals --skills objectstack-platform --repeats 1 --model sonnet --effort medium --concurrency 4`; served `claude-sonnet-5-5`, CLI 2.1.332, subscription login). 23 cases in `evals/config-plugins-ops.json`, untouched. | reading | tree | with-skill | no-skill | with-skill failing cases | |:--|:--|--:|--:|:--| | before round | `ff69bcab` | 20/23 | 0/23 | 2, 5, 9 | | after round | `9129aa7d` | 20/23 | 0/23 | 5, 9, 11 | | second reading of each flipped case, once | `9129aa7d` | | | 11 fail · 2 fail | | after set by the one-rerun rule | | | | 2, 5, 9, 11 | | round on the final head | `cb8b7cd1` | 19/23 | 0/23 | 2, 5, 9, 20 | | case 20 read three more times | `cb8b7cd1` | 1/3 | 0/3 | | Cases 2, 5 and 9 fail on `main` and on the head alike (case 2 misses `destroy`; case 5 carries `os rollback`; case 9 misses `queues:` and `assignmentRules:`). The two cases that read as misses on single runs, each read five times on each tree (`--case` with `--repeats 5`; for the `main` side the four skill files were checked out from `ff69bcab` over the worktree for the run, then restored): | case | what it asks | `main`'s skill files | this PR | literal missed | |:--|:--|--:|--:|:--| | 6 | a production deployment plan | 3/5 | 5/5 on `989821ef`; on `9129aa7d` it passed its own reading and the round | `driver-sql` | | 11 | a dependent package wants to override an installed package's view and permission set | 4/5 | 3/5 on `9129aa7d` | `new similar` | Both flip on both trees. In every reading of either case the answer gives the right course; what comes and goes is one literal. Case 20 (must `storage` and `settings` be listed in `requires:`) is the third of the kind. On `main`'s skill files it passed the before round and 2 of 4 turns of the five-repeat round; on this branch it read 3/5 on `9129aa7d` and, on `cb8b7cd1`, failed the round and passed 1 of 3 further readings. Each failing answer says no, they are always-on, and then shows the forbidden literal `requires: ['storage', 'settings']` as what to add under `--preset minimal`, which is what the case's own expected answer says to do there. The sentence it reads ("every boot mounts them, and only `--preset minimal` drops them") is the same text on every head. **Six cases changed verdict at least once across the five single-repeat rounds on this branch: 2, 6, 9, 11, 19, 20.** | case | `ff69bcab` (before) | `74592fbd` | `989821ef` | `9129aa7d` | `cb8b7cd1` | |:--|:--|:--|:--|:--|:--| | 2 | fail | fail | fail | pass, rerun fail | fail | | 6 | pass | pass | fail, rerun fail | pass | pass | | 9 | fail | fail | pass, rerun fail | fail | fail | | 11 | pass | pass | fail, rerun pass | fail, rerun fail | pass | | 19 | pass | fail, rerun pass | pass | pass | pass | | 20 | pass | pass | fail, rerun pass | pass | fail, then 1 of 3 | Round totals, with-skill: `ff69bcab` 20/23, `74592fbd` 19/23, `989821ef` 18/23, `9129aa7d` 20/23, `cb8b7cd1` 19/23; no-skill 0/23 in every round. <details><summary>Round records and what each with-skill turn read</summary> - Before round: 46/46 turns, 3 min. 8 of 23 with-skill turns read a reference file (`operations.md` 8, one each of `bootstrap.md`, `plugin-development.md`, `plugin-hooks.md`, `plugin-lifecycle.md`, `service-registry.md`). - After round on `74592fbd`: 46/46 turns, 2.9 min. 13 of 23 with-skill turns read a reference file (`operations.md` 6, `bootstrap.md` 5, `_index.md` 2). - After rounds on `989821ef` and `9129aa7d`: 46/46 turns, 3 min each. Round on `cb8b7cd1`: 46/46 turns, 2.8 min; cases 17 and 23, whose sentences the last commit shortened or extended, pass. - A five-repeat round, started under a method the ruling then replaced, is on record as taken and is not the basis of the verdict. It completed on `9129aa7d`: with-skill 95/115, no-skill 0/115; cases 2, 5 and 9 at 0/5, case 11 at 3/5, case 19 at 4/5, case 20 at 3/5, every other case 5/5. On `main`'s skill files it was stopped at 206 of 230 turns when the ruling arrived; in the turns that ran, cases 2, 5 and 9 were at 0/5, case 6 at 3/5, case 11 at 4/5, case 20 at 2/4, every other case passing. - Every `must_contain` literal of the 23 cases that the skill's files carried before is still carried after (77 literals checked; 0 lost). Two left the entry for a reference: `os lint` (case 5), `manager: '` (case 8). </details> ### Other tests `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/platform-catalog.test.ts` (the suite that names the ratchet script), on `cb8b7cd1`: `Test Files 1 passed (1)`, `Tests 21 passed (21)`, under the verify lock (`VERDICT command-exit 0`). No ablation: the diff changes prose and one ledger, no tested behaviour. ## Acceptance notes Decided here (small, no shipped behaviour), each open to reversal in review: - **A mechanism assumption of the dispatch did not hold for three blocks.** The key list, the `requires:` provider table and `## Seed Data` are restated contract lists, but the gates that keep them true bind to the entry file by path and heading. Moving them behind a pointer needs gate edits outside this claim's file surface, so they stay inline in compact form (the UI router kept its bound enumerations the same way). This is why the directory falls 2.1 KB and not more. - **"No trap is removed" was read as: silent or degraded-at-run-time facts stay inline; loud ones may sit one link away.** Inline: the five traps, the dropped-key warning, `triggers` without `job`, the confirmation service, `hierarchy-security` without its provider (a boot warning, scopes fall back to owner-only), `demoStaff` (a seed cannot create a person; only `os dev` creates the accounts), and the `data:*` hook that never fires (in the routing row). One link away, each refused loudly when hit: `automation` missing while `plugins:` lists a connector (boot fails), a query capability the Memory or MongoDB driver refuses, the unknown `requires` token (refused by `defineStack`), route-literal names and the legacy double-underscore prefix (refused by `os validate` / `defineStack`). - **The App / Platform Boundary section is cut to a pointer.** objectstack-project states the same test and steps; the two sentences it does not have are kept in `references/bootstrap.md` § App or platform. - **The annotated manifest example is cut**, so the type-checked example count falls by one (351 marked examples pass). Every key it showed is in `kernel/manifest.zod.ts`; the barrel example in `references/bootstrap.md` gained `engines` so one checked example still shows it. - **Three counts left the template paragraph** ("three" executors, "eight" barrels, "five" retired templates): the lists themselves are printed, and a count beside a list drifts. - **The pinyin-search row folded into the plugin- row** of the provider table (same package rule, 41 bytes), to pay for the two facts that went back inline. - **Trap 1 names `@objectstack/driver-sql` again** (36 bytes), the seat's choice after the case-6 miss; the entry is 25 bytes over the card's 9 KB budget line for it (see Budget reading). - **The review fix was paid with four phrases of the entry**, none of them a trap: "an error-in-waiting" after the dropped-key warning (the warning itself stays), "on the stack root turns it on" beside `requires: [...]` (the key list above it names `requires`), the `@objectstack/core` home of `CAPABILITY_PROVIDERS` (the name stays), and "to your Cloud environment" in the routing row, now "to Cloud" (`references/operations.md` names the environment). Noted, not changed (outside this claim's file surface): - Other skills name sections of this skill in prose: objectstack-i18n ("Runtime Boot Sequence"), objectstack-api ("Driver Selection Guide"), objectstack-automation and objectstack-data ("Customizing an installed package"), several ("Verify your work"). Each heading keeps its name and now lives in a reference file the routing table or a trap links; no link gate reads these prose pointers, and their files sit at zero ratchet headroom. - `packages/spec/scripts/lib/skill-map-guards.ts`: the `objectstack-platform` rows of `TRANSITIVE_ALLOWLIST` go stale, not only their comment. The list's header says a row means the SKILL.md teaches that schema, and the rows are "kept iff" the entry names one of the module's exported names; at this head three rows lose the only export the entry named (`data/field.zod.ts` `FieldSchema`, `security/rls.zod.ts` `RLS`, `data/object.zod.ts` `ObjectSchema`), and `data/hook.zod.ts` was already unmatched on main. `check:skill-refs` stays green because it does not ask reachability. Carrier: objectstack-ai#38451 (drop or re-justify the rows and regenerate `references/_index.md` after this PR merges). - The version PR objectstack-ai#38192 touches the same two files on the stamp line and the five body pins only; `overlap-check` reads it as merging cleanly. ## Verification Read first, by risk: 1. `skills/objectstack-platform/SKILL.md`, the whole file: is anything a model needs before opening a second file missing? The risk hunks are `## Traps` and the three rule bullets under the provider table. 2. `skills/objectstack-platform/references/bootstrap.md` § `requires:` in detail and § Manifest: these were rewritten as the complement of the entry, not moved verbatim. 3. `scripts/check-skills-token-ratchet.mjs`: the four `objectstack-platform` rows. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints `ratcheted (authored) 199994 / 199994 (+0)` and every `objectstack-platform` row at `(+0)`; `wc -c skills/objectstack-platform/SKILL.md` prints 9025. Gates, local (each exit code captured before any pipe). The whole derived list ran on `989821ef`; `cb8b7cd1` differs from it by five sentences of the entry, one ratchet row with its comments and one number in the changeset, so only the families that read those were run again on it. <details><summary>On `cb8b7cd1`: the families the last two commits reach, all exit 0</summary> - `node scripts/check-skills-token-ratchet.mjs`: `✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted.` (`ratcheted (authored) 199994 / 199994 (+0)`). - `pnpm check:skill-top-level-keys`: `skills/objectstack-platform/SKILL.md:44 enumerates all 56 authorable top-level keys of ObjectStackDefinitionSchema`. - `pnpm check:skill-identifier-liveness`: `Leg 1: 544 citation(s) over 76 published file(s) ...; Leg 2: 11 registered exhaustive section(s), 0 ledgered gap(s).` - `pnpm check:skill-links`: `285 relative link(s) in 76 published skill file(s) resolve; 157 fragment(s) name a real heading under GitHub's slug rule.` - `pnpm --filter @objectstack/spec run check:skill-docs`: `Skill docs in sync`. `check:skill-refs`: `10 generated files in sync with packages/spec`. - `pnpm --filter @objectstack/spec run check:skill-examples`: `351 prose examples type-check across 3 surface(s)`. - `pnpm check:nul-bytes`: `no raw ASCII control bytes`. `pnpm check:role-word`: exit 0. - `node scripts/pm/overlap-check.mjs --branch=claude/project-thread-lqv7wj`: `VERDICT clean exit 0` before the push. </details> <details><summary>On `989821ef`: derived families, 70 derived, 69 run green, 1 NOT MEASURED</summary> - Reconciliation: `✓ dispatch-gates --ran: 70 derived famil(ies) accounted for — 69 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).` - NOT MEASURED: `pnpm check:dual-build-cjs-loads`, exit 3, `PREREQUISITE NOT MET`. It reads every package's built `dist/`, and this container holds only two packages' build closures. The diff touches no package source; CI's run is the reading. - Exit 0 in that run, beside the families listed above: `check:role-word`, `check:doc-authoring`, `check:published-files`, `check:scaffold-emission-policy`, `check:skill-compatibility`, `check:corpus-claim-drift`, the changeset gates, `check:pm-dispatch-gates` (fast tier, 2459 cases). - Beside the derived list, exit 0: `check:doc-anchors` (`1175 internal #fragment link(s) across 367 source file(s) all resolve to a real heading`), `check:skill-served-sections` (the hosted door serves no section of this skill), `check:published-readme-links`, `node scripts/check-platform-checklist.mjs --changed-from origin/main` (`0 anchored files in the change set — nothing judged.`). `check:published-readme-exports`: NOT MEASURED, exit 3, the same missing-build prerequisite; not derived for this diff. </details> CI on `cb8b7cd1`, read while it ran: 17 check-runs success, 16 skipped by the path filter, 10 in progress, none failing; the seat reads its conclusion. On `9129aa7d` it ended 32 success and 20 skipped, none failing. The earlier run on `989821ef` (46210313609) was cancelled when `9129aa7d` was pushed; its two aggregate jobs read `failure` only because four lanes concluded `cancelled` (no lane failed). --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kaby17PRNj45xGyDc)_ <!-- signed: repo:objectstack#5 · os-project-manager · session_01FEkQ5kaby17PRNj45xGyDc --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…ry and descriptions (objectstack-ai#38584) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Jianguo** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbPPu147GzH57yhYgxsQmVGS)_ Fixes objectstack-ai#38483 Clause-②: no Metadata-protocol: none Supersedes objectstack-ai#38568 (same commits, continued on this branch: seat 5's dev ran out of tokens, and seat 1 took the card over in claim 7255582169 and its amendment 7255673725). objectstack-ai#38568 is closed (7256137004). ## 维护者速读 - 用户能看到什么变化:新建项目的人在创建开始时看到的模板说明、创建完成时看到的「项目一开始包含什么」清单都写上了帮助文章;空白模板、入门示例应用、说明文档和入门教程里的简介也同步更新,入门示例的中文简介一并改好;入门教程里校验结果的对象数、字段数和视图数,以及脚手架说明里的目录树,也按带帮助文章的新模板改对了。 - 为什么做:上一轮给新项目和入门示例加入帮助文章(该卡已关闭)时,这些描述没有跟着改,审核要求用一张卡收口。 - 出错会怎样:只涉及提示文字、简介和两个内部检查的范围,出错时用户看到的清单或简介不准,不影响数据和启动,可以直接撤回。 - 要你做什么:无 ## What changes All three places were re-read on `main` at 4a43d6c first; none was already fixed. 1. **Scaffolder summary.** `npm create objectstack` now prints an `Articles` line in "Your project starts with:", between Companies and Contacts and Tasks and Notes, pointing at `src/objects/` and `src/views/` and at the sample help articles in `src/data/` (`packages/create-objectstack/src/index.ts`, the summary block only). 2. **Descriptions.** The blank template's `manifest.description` (in `objectstack.config.ts` and `objectstack.manifest.json`) and the Starter's `manifest.description` now name the help articles in English. The Starter's zh-CN package description now reads 公司、联系人与知识文章,菜单中附带平台的任务和备注。, using the article object's existing zh-CN label. The blank template stays English-only, per the seat's rulings 7249604628 and 7251614638. A scaffolded project still drops the template's description from its own files, so this text reaches only the template's own readers. 3. **platform-objects template sweeps.** `managed-api-method-affordance-sweep.test.ts` and `platform-admin-affordance-standing.test.ts` now exclude the scaffolder's template directory (`packages/create-objectstack/src/templates/`). They no longer use a path list that named only company and contact. The next template object is excluded with no edit. The control in the managed-api sweep is kept and widened. It checks four things: the directory matches at least one walked file; every match is an object file in a template's own `src/objects/`; the matches equal the template object files read off disk without the walk, with `article.object.ts` named; and the filter removes nothing outside the directory. 4. **The Template line and its mirrors** (claim amendment 7254402109). The scaffolder prints the blank template's registry description as `Template: blank — …` on every run. That description now reads `Companies, contacts and help articles, with tasks and notes from the platform in the menu — ready to extend`, the same phrase as the manifest and config (`packages/create-objectstack/src/template-registry.ts`). It is mirrored in the package README's template table and in the two getting-started pages that quote it (`your-first-project.mdx`, `build-with-claude-code.mdx`). Also updated: the Starter's English app description (`Companies, contacts and help articles, with tasks and notes`), the `examples/app-starter/package.json` description, and the two `index.ts` comments that quote the template's own description. 5. **The tutorial's counts and the README tree** (seat L1 REWORK 7255063318, commit 3df792a). `content/docs/getting-started/build-with-claude-code.mdx` said the blank template scaffolded only the companies and contacts, so the validate output read three objects and eighteen fields. The prose now names the help articles (`article.object.ts`, four fields, with its view and sample articles) and reads **four** objects and **twenty-two** fields; the validate block reads `Data: 4 Objects 22 Fields` and `UI: 1 Apps 4 Views 1 Actions`. Those numbers are measured, not summed: a fresh `--template blank` scaffold plus the page's own ticket files, through `os validate` (see Verification). The "What you get" tree in `packages/create-objectstack/README.md` now lists `article.object.ts`, a grid for articles beside the companies' and contacts' grid and board, a `data/` entry for the seed, and articles in the menu. Changeset `.changeset/38483-scaffold-names-articles.md`: patch on `create-objectstack` and `@objectstack/example-starter` (the latter is private and versioned only, the same pair the help-articles changeset used). It now also names the README tree. `@objectstack/platform-objects` gets no changeset: only its test files change. **Read first (by risk):** 1. `packages/platform-objects/src/managed-api-method-affordance-sweep.test.ts`, the `isScaffoldingTemplate` predicate and the "skips only scaffolding templates" control. A predicate that is too wide would silently stop sweeping real objects. 2. `packages/create-objectstack/src/scaffold-description.test.ts`, the new derived summary pin and the Template line pin. 3. `packages/create-objectstack/src/index.ts`, the summary block. ## Tests - New `describe` in `scaffold-description.test.ts` (the file's existing real-CLI harness, now capturing stdout). It derives the expected entries from the template: every `src/objects/*.object.ts` must be named in the printed block by its `pluralLabel`, and the block must point at `src/data/` while the template's `src/data/index.ts` exports a seed. A file with no `pluralLabel` fails loudly. Control: the derived list contains Companies, Contacts and Articles, so a moved directory cannot pass vacuously. - The same `describe` also holds the printed `Template: blank — …` line to the template: each object's plural label must appear in it (case-insensitive). So the registry description cannot drift from the tree either. - The template exclusion control in the managed-api sweep is described above. The standing test uses the same predicate. - Item 5 is prose and a docs code block with no pin; no ablation (no tested behaviour moved). <details><summary>Ablations (prior rounds, at 9f2a6cf and 80f23ea; each restored; restore proved by blob equal to HEAD and an empty git diff HEAD)</summary> - Deleted the `Articles` summary line in `index.ts` (anchor 1 to 0): `scaffold-description.test.ts` went red, 2 failed / 4 passed. Message: "the summary does not name Articles, an object the template ships", and the `src/data/` case failed too. - Added a temporary `invoice.object.ts` with `pluralLabel: 'Invoices'` to the template's `src/objects/` (the "next object" case): red, 1 failed / 5 passed. Message: "the summary does not name Invoices, an object the template ships". File removed, status clean. - Renamed the article's `pluralLabel` to `Invoices`: red on the control (1 failed / 5 passed). - At 80f23ea, reverted the registry description to `Companies and contacts, with …`: red, 1 failed / 6 passed. Message: "the Template line does not name Articles, an object the template ships". - Narrowed `isScaffoldingTemplate` in the managed-api sweep back to company and contact only: "skips only scaffolding templates, and those still exist" went red, expected 2 entries to equal 3. </details> <details><summary>Suites (re-run at head 3df792a, after merging origin/main 3014176 in 08bb2af)</summary> - After a turbo build of the `@objectstack/cli`, `create-objectstack`, `@objectstack/example-starter` and `@objectstack/platform-objects` closures (71 tasks successful), under `os-verify-lock`: - `create-objectstack` test: Test Files 26 passed (26), Tests 411 passed (411); typecheck exit 0. - `@objectstack/example-starter` test (the boot test): Test Files 2 passed (2), Tests 14 passed (14); typecheck exit 0. - `@objectstack/platform-objects` test: Test Files 130 passed (130), Tests 2218 passed (2218); typecheck exit 0. - The merge of origin/main touched none of this PR's files; the delta against main is the same 14 files. </details> ## Acceptance notes - The claim was widened (amendment 7254402109) to fold in the Template line and its mirrors. That remainder was first reported here as same-family and is now item 4 above. - The Starter's zh-CN **app** description in `starter.translation.ts` now reads `公司、联系人与知识文章,菜单中附带平台的任务和备注。`, the same wording as its zh-CN package description (second claim amendment). - With the path list gone, the cross-package input gate needs a quoted path to keep the platform-objects `packages/**/*.object.ts` glob held. The old two-path list was that witness. The control's named `article.object.ts` literal now holds it, and `check:cross-package-test-inputs` is green. - `overlap-check` names the bot-generated Version Packages PR objectstack-ai#38192, which bumps `examples/app-starter/package.json`'s version on the line next to its description. That PR is regenerated from `main`, so the text conflict resolves on its next refresh. It also names objectstack-ai#38568, which this PR supersedes; both merge cleanly with main. - Item 5 touches `build-with-claude-code.mdx` beyond the lines that quote the template description, as seat L1 7255063318 asked. Measuring it showed two things on that page this PR does not change: the page's own `src/apps/support.app.ts` beside the template's `main.app.ts` fails `os validate` ("An 'app' package must define at most one app", ADR-0019 D3), and the validate block's `Runtime: 3 plugins` line reads `0 plugins` in an uninstalled scaffold. The counts above were taken with the template's single app. Both are older than the help articles and are left to the seat. - Not changed, per the seat's L1 nit: the Starter's English app description has no full stop while its zh-CN twin has one. ## Verification Two-minute check: `pnpm --filter create-objectstack exec vitest run --maxWorkers=2 src/scaffold-description.test.ts` should show 7 passed, including "names each template object by its plural label" and "names each template object in the printed Template line too". <details><summary>How the tutorial's counts were measured (item 5)</summary> At 08bb2af (built): `node packages/create-objectstack/dist/index.js support-desk --template blank --skip-install --skip-skills` in a scratch directory whose `node_modules/@objectstack/spec` links to this tree's `packages/spec`, then `node packages/cli/bin/run.js validate` there. - Fresh scaffold: `✓ Validation passed`, `Data: 3 Objects 18 Fields`, `UI: 1 Apps 3 Views` (company 7 + contact 7 + article 4 fields). - Plus the page's four `title=` code blocks written verbatim (ticket object, Resolve action, ticket view, support app) and one export line each in the barrels, minus the support app's export (see the acceptance notes): `✓ Validation passed`, `Data: 4 Objects 22 Fields`, `UI: 1 Apps 4 Views 1 Actions`. </details> <details><summary>Gates</summary> - At 3df792a, `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 117 commands (the docs families included). All 117 were run, each exit captured before any pipe; `--ran` reconciliation reads "117 derived famil(ies) accounted for — 117 run, 0 NOT-MEASURED (a DERIVED zero — all 117 recorded an exit code and none of them is 3)". - 113 exited 0 on the first pass. Four exited 3 with PREREQUISITE NOT MET in the fresh worktree, and each exits 0 once its prerequisite is met: `check-plugin-teardown-shape --self-test` after fetching its pinned fixture commit ("48 cases pass"); `check:skill-examples`, `check:dual-build-cjs-loads` and `check:i18n-coverage` after a full turbo build ("352 prose examples type-check"; "126 published require entry point(s) across 74 package(s) load"; "OK (15 config(s), 577 baselined untranslated string(s), none new)"). - `overlap-check --branch=HEAD` before the push of 3df792a: "origin/main: merges cleanly"; objectstack-ai#38568 merges cleanly; objectstack-ai#38192 (Version Packages) conflicts on `examples/app-starter/package.json`, see the acceptance notes. - CI-run families are read from this PR's check-runs, not re-run locally. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jSh8tZmU5uBqzpvg3o <!-- signed: repo:objectstack#1 · zhuangjianguo · session_01QsR2jSh8tZmU5uBqzpvg3o --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…e to name os migrate meta --stored (objectstack-ai#38583) Fixes objectstack-ai#38519 Clause-②: no Metadata-protocol: none ## What The released `19.0.0-next.2` text said that no command lists the stored permission sets that protocol 19 changes. PR objectstack-ai#38399 made that false: `os migrate meta --stored` now prints them under `viewAllFieldsReview`. Per the AGENTS.md RELEASE-OWNED row for `packages/*/CHANGELOG.md`, this PR amends the released entry **in place**, in a docs-only PR. It adds no erratum in a later entry and no new changeset. Only this sentence changed, in all nine places that carry it (`git grep -n "No command lists the affected stored sets"` on main `d64541cf` reads exactly these files, and the same grep on this head reads none): - before: "No command lists the affected stored sets yet; a review list is follow-up objectstack-ai#37375." - after: "To find them, run `os migrate meta --stored`: it lists each affected entry of a stored set under `viewAllFieldsReview` (read-only), and you fix each listed entry by adding `viewAllFields: true` to it through the metadata API." Files: `.changeset/pre/36055-view-all-stops-voting-on-fields.md` and the `CHANGELOG.md` of `cli`, `core`, `lint`, `metadata-core`, `plugin-security`, `qa/scenarios`, `service-automation` and `spec`. Nothing else in those entries changed. ## DELIBERATE CORRECTION This PR edits a changeset that is already on the base: `.changeset/pre/36055-view-all-stops-voting-on-fields.md`, at line 30, the bullet that starts "Sets saved in a running deployment". `check-empty-changeset` reds on that edit, and that red is expected. The corrected sentence is the "after" text quoted above. The fix is the correction itself; it does not collide with any other PR. Restoring the base text would put back the sentence that objectstack-ai#38399 made false. Per `pm-dispatch` `references/landing-operations.md`, the dispatching seat's own record confirms this. **No `skip-changeset` label, as a deliberate deviation from the dispatch.** Ruling D on objectstack-ai#18375 (quoted in `pr-automation.yml`, route 0, and in `.claude/agents/os-dev.md`) says the label is never applied to a PR that edits an existing changeset. The label would also exempt the whole `changeset-check` job, which would hide the refusal above. `Check Changeset` is not a required context, so its red blocks no merge. ## Verification - Premise: `packages/cli/src/commands/migrate/meta.stored-view-all-fields.test.ts` checks that the command prints the list and its fix, read-only (exit 0), and puts the list under `viewAllFieldsReview` on `--json`. - Gates (`dispatch-gates.mjs --commands`, 69 commands): every command is green except the following. - `check-empty-changeset --base origin/main` exits 1. This is the DELIBERATE CORRECTION above. - Six gates exit 3 because nothing was built in this container, so they measured nothing; that is neither a pass nor a finding: `check:docs-transcript-drift`, `check:dts-closure`, `check:dual-build-cjs-loads`, `check:i18n`, `check:lean-entry-closure` and `check:sourcemap-no-sources-content`. `check-plugin-teardown-shape --self-test` also exits 3, because the clone is shallow. - `overlap-check.mjs`: clean against main and against objectstack-ai#38192, which shares the eight CHANGELOGs and merges cleanly. Two-minute check: `git grep -n "No command lists the affected stored sets"` returns nothing on this head. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017xRBcTLU2EtbUPfS6oA3Bz Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…jectstack-ai#38586) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Jianguo** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbDes7fgWSoWUGqGgQRALgDd)_ Part of objectstack-ai#34770 Clause-②: no Metadata-protocol: none `Part of`, not the closing form: the catalog-size line of the card's Done-when is not met by this PR. This is PR 2 of the per-skill split (claim 7247529795), taken over under claim 7255682669. ## 维护者速读 - 用户能看到什么变化:用户无感。发给 AI 的「跨大版本升级」技能说明,入口文件从约 25 KB 缩到 9 KB:入口只留四条禁令、开工前四项检查、一段可照抄的命令、七个「看着做完了其实没做完」的坑、以及哪些事自己定哪些事要问业主的规则;其余原文搬进同一技能的参考文件,教的内容不变。 - 为什么做:这是「技能目录瘦身」的第五份(界面、数据、自动化、平台四份已完成)。入口文件每次都整份装进 AI 的上下文,越长越贵,也越容易漏读。 - 出错会怎样:只动教 AI 的文字,没有产品行为变化;风险是 AI 少读一段后答错。改动前后都跑了评测:五题里两题在改动前的文字上就不过,改动后还是这两题,另有一题两边都时过时不过,没有哪一题是改动后才开始不过的。可整笔撤回。 - 要你做的:无。席位核对与合约审查通过后,会按治理规则请审批人批准。 ## Rulings this executes - **Card Scope** (decision record on the card, S3 = A): the entry file holds first checks, at most about 8 traps and a routing list; 6–9 KB, hard cap 500 lines; restated option lists and key tables go behind a pointer; no trap is removed until a publish-time check covers it or it stays inline. - **7128031203** fork 4 = A: a ratchet ceiling raised because text MOVED between files is accepted when each raised row equals the measured bytes moved in, with zero headroom, and the sum of ceilings does not rise. - **Seat order for this PR** (2026-11-29): the moved text goes into the one reference file the skill already has, `references/examples-upgrade.md`; no new file under `skills/` (a new file needs a new ratchet row, which stays with a human). - **Ruling record 7249189592**, the parity rule: a case whose result flips between runs on both trees is unstable on both and does not block; a case that fails on every run of the head while `main` passes is a regression. ## What changes **The entry file becomes a router.** `skills/objectstack-upgrade/SKILL.md`: 24,707 → 9,000 bytes, 481 → 159 lines, 6,170 → 2,244 tokens. Frontmatter (description, triggers) is byte-identical. It now holds: - `## ⛔ The boundary`: the four "never" rules and one `conversionId` per commit, as before. - `## First checks`, four: `--from` is the authored major (the floor of the declared range, never the upper bound, ask when the manifest and the lockfile disagree); keep an `os validate` control of the un-upgraded source; read the prescriptions from the install; re-install the skills. - `## Quickstart`: the command block. It creates `.upgrade/` before its first write into it; its comment lines are shorter. - `## Traps`, seven, each one a state that looks finished and is not: `os migrate meta` rewrites no source file by default (the trap ends with how the printed edits reach the sources); a green `validate` does not mean the chain has nothing left; stored `sys_metadata` rows are rewritten only at read and only while the release carries their conversions; data migrations are per-deployment gates; code on a retired API can keep compiling while it reads `undefined`; prose that teaches the old shape fails nothing; the parse-gate probe is a plain data literal. - `## Decide alone, or ask`: the rule, whole (three conditions to decide, four to ask, how to ask, how to park). - `## Where to go`: one row per section of the reference file. **Where each old section went.** "Reference" is `references/examples-upgrade.md`. | Old entry section | Now | |:--|:--| | The boundary | stays inline | | Quickstart | stays inline | | 0 · Preflight: establish the FROM major | first check 1 inline; the three sources in reference § 0 | | 0 · Preflight: make the work reviewable | the control is first check 2; the `.upgrade/` workspace in reference § 0 | | 0 · Preflight: re-install the skills | the silent skip is first check 4; the commands in reference § 0 | | 1 · What `os migrate meta` actually does, and "the one fact that surprises every operator" | trap 1 inline, with the fix of the cut Failure modes row as its last sentence; what a run prints and the `--write` self-check in reference § 1; the list of command forms is cut to a pointer at `os migrate meta --help` | | 1 · Stored rows | trap 3 inline; the mechanism and the three commands in reference § 1 | | 1 · Data migrations are not metadata migrations | trap 4 inline; the rest in reference § 1 | | 2.1 Harvest the instruction sources | first check 3 inline; the source table and the three commands verbatim in reference § 2.1 | | 2.2 The three residue classes | R1's definition opens the decide-or-ask section; R2 and R3 are traps 5 and 6; the class notes in reference § 2.2 | | 2.4 Decide alone, or ask the owner | the rule inline; what each condition looks like, and "while you wait", in reference § 2.4 | | 2.5 and 2.6, working an R2 and an R3 | traps 5 and 6 inline; the searches in reference § 2.5 and § 2.6 | | 3.1 to 3.3 Typed, Parse-gated, Validate | boundary rule 4 and trap 2 inline; the sections in reference § 3 | | 3.5 Prove the gate is real | trap 7 inline; the probe and its three outcomes in reference § 3.5 | | 3.6 Stored rows: assert them | trap 3 inline; reference § 3.6 | | Failure modes | reference, five rows and the `--json` error codes; two rows left the table (see Acceptance notes) | | Cross-skill routing | stays inline, compacted | The three blocks the reference file already held (the worked R1, the report template, the v17-canonical shapes with the one type-checked example) are byte-identical. Each moved section was cut to the complement of what the entry still says, so no sentence is stated in both files. **Sizes** (bytes · lines · ratchet tokens): | | before (`30141766`) | after (`2ade9792`) | |:--|--:|--:| | `SKILL.md` (entry) | 24,707 · 481 · 6,170 | 9,000 · 159 · 2,244 | | `references/examples-upgrade.md` | 4,772 · 119 · 1,193 | 20,174 · 430 · 5,044 | | `skills/objectstack-upgrade/**` (3 files) | 35,406 · 655 | 35,101 · 644 | | all 14 `SKILL.md` together | 212,655 · 4,072 | 196,948 · 3,750 | | whole `skills/` tree (115 files) | 1,231,538 | 1,231,233 | | whole tree without `evals/` (73 files) | 872,329 | 872,024 | | ratchet: authored tokens = sum of all ceilings | 200,423 | 200,348 | | ratchet: bundle total, tokens | 305,088 | 305,013 | **Budget reading:** the entry is 9,000 B, at the top of the card's 6–9 KB line and not over it, and 159 lines against the 500-line cap. The skill's two authored files are 305 bytes smaller together (29,479 → 29,174). The cut is small beside the move because the skill had one short reference file and little restated text: what leaves the entry is run detail a model needs only at the step it is on. **Ratchet rows** (`scripts/check-skills-token-ratchet.mjs`), each pinned AT its measurement, zero headroom: entry 6170 → 2244 (−3926), `references/examples-upgrade.md` 1193 → 5044 (+3851). The two rows sum 7,363 → 7,288 (−75); the sum of all ceilings goes 200,423 → 200,348, so both conditions of fork 4 = A hold. ## Tests ### Eval parity Judged by ruling record 7249189592. **No case fails on every run of the head while `main` passes.** The with-skill failing set of the single-repeat round is the same on `main` and on the head: cases 2 and 4. Skill evals, both arms, one command line for every round (`skill-evals --skills objectstack-upgrade --model sonnet --effort medium --concurrency 4`, with `--repeats 1` or `--repeats 3`; CLI 2.1.332, subscription login). 5 cases in `evals/protocol-major-upgrade.json`, untouched. | reading | tree | with-skill | no-skill | with-skill, per case | |:--|:--|--:|--:|:--| | before round | `30141766` | 3/5 | 0/5 | fail: 2, 4 | | before, three repeats | `30141766` | 8/15 | 0/15 | case 1 3/3 · case 2 0/3 · case 3 2/3 · case 4 0/3 · case 5 3/3 | | after round | `71f51e9b` | 3/5 | 0/5 | fail: 2, 4 | | after, three repeats | `71f51e9b` | 9/15 | 0/15 | case 1 3/3 · case 2 1/3 · case 3 2/3 · case 4 0/3 · case 5 3/3 | | round | `1fc4d10d` | 3/5 | 0/5 | fail: 2, 4 | | three repeats | `1fc4d10d` | 9/15 | 0/15 | case 1 3/3 · case 2 1/3 · case 3 2/3 · case 4 0/3 · case 5 3/3 | | round on the fix head | `2ade9792` | 3/5 | 0/5 | fail: 2, 4 | - **Case 2** (fix a retired `conditionalRequired` after a `tsc` failure) fails on `main` in 4 of 4 readings and on this branch in 7 of 9: the answer omits the literal `conversionId` or shows a `??` fallback while saying not to write one. - **Case 4** ("`os validate` is green, so there was nothing to upgrade, right?") fails in every reading on both trees: the answer gives the stored-row course and omits the literal `applyConversionsToStoredItem`, which the entry carries on both trees. - **Case 3** (the dropped connector `transform`) flips on both trees, 2/3 in each three-repeat reading: the failing answer quotes the retired shape while asking the owner. - Cases 1 and 5 pass in every reading on both trees. `1fc4d10d` differs from `71f51e9b` by a reflow of two paragraphs of the entry (seven lines, no word changed), so that two commands sit on one line each. `2ade9792` is the review round: one sentence at the end of trap 1, one `mkdir -p .upgrade` line in the Quickstart, and the cuts that pay for them (see Acceptance notes). <details><summary>Round records</summary> - Before round: 10 of 10 turns, 0.7 min. Before, three repeats: 30 of 30 turns, 2.1 min. - After round on `71f51e9b`: 10 of 10 turns, 0.7 min. Three repeats: 30 of 30 turns, 2 min. - Round on `1fc4d10d`: 10 of 10 turns, 0.7 min. Three repeats: 30 of 30 turns, 2 min. - Round on `2ade9792`: 10 of 10 turns, 0.7 min. Case 2 carried a `??` fallback while advising against it; case 4 omitted `applyConversionsToStoredItem`. - Every `must_contain` literal of the 5 cases that the skill's files carried before is still carried after (18 literals checked; 0 lost). Each one the entry carried before, it still carries. </details> ### Other tests On `1fc4d10d` and again on `2ade9792`, under the verify lock (`VERDICT command-exit 0` on each), the same counts both times: - `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/platform-catalog.test.ts src/shared/retired-key-migrate-sentence.test.ts src/integration/connector-sync-retirement.test.ts` (the suite that names the ratchet script, and two that scan this skill's files): `Test Files 3 passed (3)`, `Tests 54 passed (54)`. - `pnpm --filter create-objectstack exec vitest run --maxWorkers=2 src/created-summary.test.ts` (it names the skill in its catalog list): `Test Files 1 passed (1)`, `Tests 12 passed (12)`. No ablation: the diff changes prose and one ledger, no tested behaviour. ## Acceptance notes Open question for the seat or the approver: - **One reference file now holds the whole run** (20 KB, 430 lines). Splitting it by layer (preflight, mechanical, residue, acceptance) would let a model open only the step it is on, but each new file needs a new ratchet row, which the standing ruling leaves to a human. Not done here on the seat's order; the routing table already links each section by anchor, so a later split changes only link targets. Decided here (small, no shipped behaviour), each open to reversal in review: - **"No trap is removed" was read as: every state that looks finished and is not stays inline.** Inline: the seven traps, the four "never" rules, the silent skip of the skills sync, the control. One link away, each loud when hit: the `--write` self-check (it restores the files and exits 1), a stored-only flag without `--stored` (refused, with an error code), a `--from` below the support floor (`MigrationFloorError`). - **The list of `os migrate meta` command forms is cut to a pointer at `os migrate meta --help`**, which prints the same forms and describes every flag. The Quickstart keeps the forms a run needs. - **Two Failure modes rows left the table.** "Reports changes, but the files are unchanged": its symptom and cause are trap 1, and its fix is kept as that trap's last sentence ("Port the printed edits by hand, or pass `--write` and port those it only lists; then replay (trap 2)."). "Findings that have nothing to do with retired keys" restated first check 2, the control. - **Review round on `2ade9792`** (contract review 7256439570, S1 and N1; seat read 7256460372). S1: the first head cut that row whole, and no sentence of either file said how the printed edits reach the sources; trap 1 now ends with it. N1: the Quickstart runs `mkdir -p .upgrade` before its first write into `.upgrade/`. Both are paid inside the entry, which stays at 9,000 B: the comment padding of four Quickstart lines, four words of one comment, the lead-in line above the routing table, a shorter header cell there, and the explicit `decide-alone-or-ask` anchor, which the heading's own slug now provides (the heading reads "Decide alone, or ask"; the link to it resolves under `check:skill-links`). The changeset's last paragraph says where the cut row's fix lives. - **A paragraph restating R3 in the reference is cut**: trap 6 says it. - **The Quickstart's comment lines are shorter**; the commands are unchanged. - **Section anchors of the entry changed.** The changeset lists the anchors that left `SKILL.md` and where each section is now. No file in this repository links one of them (`check:skill-links` and `check:doc-anchors` are green). Noted, not changed (outside this claim's file surface): - Eval cases 2 and 4 fail on `main` and on the head alike, and case 3 flips on both. In each failing answer the course is right and one literal is missing or one forbidden literal is quoted. That is a reading of the eval file, which this claim does not touch. - The version PR objectstack-ai#38192 touches the entry's stamp line; `overlap-check` reads it as merging cleanly. ## Verification Read first, by risk: 1. `skills/objectstack-upgrade/SKILL.md`, the whole file: is anything a model needs before opening a second file missing? The risk hunks are `## Traps` and `## First checks`. 2. `skills/objectstack-upgrade/references/examples-upgrade.md` § 1 · Mechanical layer and § 2.4: these were rewritten as the complement of the entry, not moved verbatim. 3. `scripts/check-skills-token-ratchet.mjs`: the two `objectstack-upgrade` rows. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints `ratcheted (authored) 200348 / 200348 (+0)` and both `objectstack-upgrade` rows at `(+0)`; `wc -c skills/objectstack-upgrade/SKILL.md` prints 9000. Gates, local (each exit code captured before any pipe). The whole derived list ran on `1fc4d10d`; `2ade9792` differs from it by one sentence, one command line and whitespace in the entry, one ratchet row with its comments and three sentences of the changeset, so the families that read those were run again on it. <details><summary>On `2ade9792`: the families the review round reaches, all exit 0</summary> - `node scripts/check-skills-token-ratchet.mjs`: `ratcheted (authored) 200348 / 200348 (+0)`, `skills/objectstack-upgrade/SKILL.md 2244 / 2244 (+0)`, `references/examples-upgrade.md 5044 / 5044 (+0)`; its `--self-test` exit 0. - `pnpm check:skill-links`: `290 relative link(s) in 76 published skill file(s) resolve; 161 fragment(s) name a real heading under GitHub's slug rule.` - `pnpm check:doc-anchors`: `1179 internal #fragment link(s) across 366 source file(s) all resolve to a real heading`. - `pnpm check:skill-identifier-liveness`, `check:skill-compatibility`, `check:nul-bytes`, `check:role-word`, `check:corpus-claim-drift`, spec `check:skill-examples` (352 examples), spec `check:skill-docs`, `check-changeset-no-major`: exit 0. - `node scripts/pm/overlap-check.mjs`: `VERDICT clean exit 0` before the push. </details> On `1fc4d10d`: <details><summary>Derived families: 70 derived, 69 run green, 1 NOT MEASURED</summary> - Reconciliation: `✓ dispatch-gates --ran: 70 derived famil(ies) accounted for — 69 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).` - NOT MEASURED: `pnpm check:dual-build-cjs-loads`, exit 3, `Run pnpm build first. This is NOT a pass: nothing was measured.` It reads every package's built `dist/`, and this container holds no full build. The diff touches no package source; CI's run is the reading. - `node scripts/check-skills-token-ratchet.mjs`: `✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted.` (`ratcheted (authored) 200346 / 200346 (+0)`); its `--self-test` exit 0. - `pnpm check:skill-links`: `290 relative link(s) in 76 published skill file(s) resolve; 161 fragment(s) name a real heading under GitHub's slug rule.` - `pnpm check:skill-identifier-liveness`: `Leg 1: 544 citation(s) over 76 published file(s) ...; Leg 2: 11 registered exhaustive section(s), 0 ledgered gap(s).` - `pnpm --filter @objectstack/spec run check:skill-docs`: exit 0. `check:skill-refs`: `10 generated files in sync with packages/spec`. - `pnpm check:skill-compatibility`: `14 SKILL.md file(s) reconciled against 94 workspace packages`. - `pnpm check:nul-bytes`: `no raw ASCII control bytes`. `pnpm check:role-word`, `check:corpus-claim-drift`, `check:doc-authoring`, `check:published-files`, the changeset gates, `check:pm-dispatch-gates` (fast tier, 2615 cases): exit 0. </details> <details><summary>Beside the derived list, all exit 0</summary> - `pnpm --filter @objectstack/spec run check:skill-examples`: `352 prose examples type-check across 3 surface(s)`. - `pnpm check:doc-anchors`: `1179 internal #fragment link(s) across 366 source file(s) all resolve to a real heading`. - `pnpm --filter @objectstack/spec run check:skill-served-sections`: `24 served section(s), each heading exactly once in its file` (the hosted door serves no section of this skill). - `pnpm check:published-readme-links`, `pnpm check:skill-top-level-keys`: exit 0. - `node scripts/check-platform-checklist.mjs --changed-from origin/main`: `0 anchored files in the change set — nothing judged.` - `node scripts/pm/overlap-check.mjs`: `VERDICT clean exit 0` before each push. - The body gates on this text (`check-changeset-no-major`, `check-adr-0087-registration`, `check-closing-keyword-parity`, `check-partof-closing-keyword`): exit 0. </details> Base: the branch is cut from `30141766`; `main` has moved since (to `d55ee70a`), with no commit touching `skills/` or the ratchet script. CI on the head is the seat's reading. --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jVWxY6Vvb8bdNPPs9y)_ <!-- signed: repo:objectstack#1 · zhuangjianguo · session_01QsR2jVWxY6Vvb8bdNPPs9y --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…tstack-ai#38663) <!-- claude-projects-attribution: {"github_login":"os-warren"} --> _Requested by **Warren** · [project thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ89no8UMVXrh61ZoSoTF3Qhw)_ Part of objectstack-ai#34770 Clause-②: no Metadata-protocol: none `Part of`, not the closing form: the catalog-size line of the card's Done-when is not met by this PR. This is PR 3 of the per-skill split, under dispatch order 7265010468 and claim 7264988593. ## 维护者速读 - 用户能看到什么变化:用户无感。发给 AI 的「多语言翻译」技能说明,入口文件从约 25 KB 缩到 9 KB:入口只留开工前三项检查、一段可照抄的翻译包示例、一张「每种界面文字该写在哪个键下」的路径清单、七个「能通过检查却翻不出来」的坑,以及其余内容去哪里查的指路表。 - 为什么做:这是「技能目录瘦身」的第六份(界面、数据、自动化、平台、跨大版本升级五份已完成)。入口文件每次都整份装进 AI 的上下文,越长越贵,也越容易漏读。 - 出错会怎样:只动教 AI 的文字,没有产品行为变化;风险是 AI 少读一段后答错。改动前后都跑了评测:十六道题里,改动后通过四十二次(每题三遍共四十八次),改动前是三十八次;仍不过的两题里,一题在改动前的文字上就三遍都不过,另一题两边都时过时不过,没有哪一题是改动后才每遍都不过的。可整笔撤回。 - 要你做的:无。席位核对与合约审查通过后,会按治理规则请审批人批准。 ## Rulings this executes - **Card Scope** (decision record on the card, S3 = A): the entry file holds first checks, at most about 8 traps and a routing list; 6–9 KB, hard cap 500 lines; restated option lists and key tables go behind a pointer; no trap is removed until a publish-time check covers it or it stays inline. - **7128031203** fork 4 = A: ratchet rows are pinned at the measurement with zero headroom, and the sum of ceilings does not rise. Here no row rises and none is added. - **7168461386** = A: text an eval shows the entry lost goes back into the entry. Used twice in this PR (see Eval parity). - **Seat order for this PR** (7265010468): same shape as PR 2; the cut, not the move, lowers the catalog total; no new file under `skills/` (a new file needs a new ratchet row, which stays with a human). - **Ruling record 7249189592**, the parity rule: a case whose result flips between runs on both trees is unstable on both and does not block; a case that fails on every run of the head while `main` passes is a regression. ## What changes **The entry file becomes a router.** `skills/objectstack-i18n/SKILL.md`: 25,285 → 8,996 bytes, 504 → 160 lines, 6,315 → 2,243 tokens. Frontmatter (description, triggers) is byte-identical. It now holds: - `## First checks`, three: read the stack's `i18n` block, its `translations` and the contract before writing a key; which of `defaultLocale`, `sourceLocale`, `supportedLocales` and `fallbackLocale` is which, with the English-source, Chinese-audience declaration; verify with `os i18n check` and `os validate`. - `## A bundle`: one type-checked example (two locales, one object with a field, an option and an action, one message, the stack registration) and one paragraph on the `translation` metadata item. - `## Key map`: every group and every key as one path listing, then six notes for the placements a path cannot show (child-object keys, a form's own heading, table columns beside `fields` with one worked example, parent-side related lists, report blocks and book groups, flow steps). - `## Traps`, seven, each a bundle that parses and ships and then translates nothing or the wrong text: an option key is the stored `value`; double braces only, no ICU MessageFormat; `os i18n extract` writes `objects` and `globalActions` only unless told otherwise; coverage is not freshness; a generated module is an `objects` subtree and `withSourceFallback` needs the source-hashes companion; server-written text is in the organization's language; an app-authored refusal has no `en` floor. - `## Where to go`: four rows (the contract, the service contract, the published i18n standard page, the sibling skills). **No text moved.** This skill has no hand-written reference file (`references/_index.md` is generated), and a new file needs a new ratchet row. So what left the entry was cut, each behind what now answers it: | Old entry section | Now | |:--|:--| | Translation Configuration, Stack-Level I18n Config | First check 2 keeps the four properties and the worked declaration. Cut: the property table and the three refused alias spellings (the contract's strict shape refuses each and names `sourceLocale`); one sentence on the language of validation, delete-restriction and permission-denial messages (platform behaviour, nothing for a bundle author to write). | | Authoring Translation Bundles | `## A bundle`. The two long examples become one that shows each nesting level once. | | Object-Level Translation Structure | `## Key map`: the same keys as paths. Cut: the condition on each key (which declaration it needs), which the contract carries in the key's `.describe()` text and `os validate` reports as `translation-target-unknown`, an error; the glosses on top-level groups; the four-line sample block, of which the table-column line stays as code and the inline-title and report-block lines as paths. | | Naming Conventions | Cut. First check 1 says a key must match a declared name; a key that does not is `translation-target-unknown`. | | File Organization Strategies | Cut. `## A bundle` keeps the one fact that bites: nothing loads a directory. | | Authoring at Runtime: the `translation` Item | Kept, one paragraph under `## A bundle`. | | Message Interpolation | Trap 2. | | Translation Coverage | First check 3 and trap 4. Cut: the other flags (each command's `--help` lists them) and the coverage and diff shapes (the contract). | | Integration with II18nService | Routing row 2, which still names the three optional methods no adapter ships. Cut: the method list, the locale ladder (routing row 3), the registration paragraph and the three REST routes. | | Server-Composed User Text | Traps 6 and 7 keep the app-authored half. Cut: the paragraph on sentences the platform composes itself. | | Translation Workflow Best Practices | Traps 3 and 5. | | Shipped examples | Cut. | | Common Pitfalls (the retired `o.*` shape) | Cut. `defineTranslationBundle` and the metadata save both refuse the retired keys and answer with the key to write. | | Verify your work, References, See Also | First check 3 and the routing table. | **Sizes** (bytes · lines · ratchet tokens): | | before (`f5da514b`) | after (`06c77b1b`) | |:--|--:|--:| | `SKILL.md` (entry) | 25,285 · 504 · 6,315 | 8,996 · 160 · 2,243 | | `skills/objectstack-i18n/**` (4 files) | 44,121 · 746 | 27,832 · 402 | | all 14 `SKILL.md` together | 196,948 · 3,750 | 180,659 · 3,406 | | whole `skills/` tree (115 files) | 1,231,233 | 1,214,944 | | whole tree without `evals/` (73 files) | 872,024 | 855,735 | | ratchet: authored tokens = sum of all ceilings | 200,348 | 196,276 | | ratchet: bundle total, tokens | 305,013 | 300,941 | **Budget reading:** the entry is 8,996 B, inside the card's 6–9 KB line, and 160 lines against the 500-line cap. The whole catalog is 16,289 bytes smaller, all of it cut. **Ratchet row** (`scripts/check-skills-token-ratchet.mjs`), pinned AT its measurement, zero headroom: `skills/objectstack-i18n/SKILL.md` 6315 → 2243 (−4,072). It is the skill's only row. The sum of all ceilings goes 200,348 → 196,276. ## Tests ### Eval parity Judged by ruling record 7249189592. **No case fails on every run of the head while `main` passes.** On `1235a12d`, the last head a full round ran on, the with-skill arm passes 42 of 48 turns against 38 of 48 on `main`'s text; two cases fail there, case 5 (fails on `main` in every run alike) and case 12 (flips on both trees). The review-round head `06c77b1b` changes two sentences of the entry; the four cases those sentences bear on were read again on it. Skill evals, both arms, one command line for every round (`skill-evals --skills objectstack-i18n --repeats 3 --model sonnet --effort medium --concurrency 4`; the extra readings add `--case` and change `--repeats`; CLI 2.1.332, subscription login). 16 behaviour cases in `evals/bundles-locales-coverage.json` and 7 trigger cases in `evals/triggers.json`, both untouched. | reading | tree | with-skill | no-skill | with-skill cases below 3/3 | |:--|:--|--:|--:|:--| | before round | `f5da514b` | 38/48 | 1/48 | 5 (0/3) · 9 (1/3) · 11 (1/3) · 12 (1/3) · 16 (2/3) | | first router head | `d27a5088` | 36/48 | 2/48 | 3 (1/3) · 5 (0/3) · 10 (2/3) · 11 (0/3) · 12 (0/3) | | second head | `878eb3ea` | 34/48 | 3/48 | 4 (1/3) · 5 (0/3) · 9 (1/3) · 10 (2/3) · 11 (1/3) · 12 (0/3) · 16 (2/3) | | second head, cases 3, 10, 11, 12, four repeats | `878eb3ea` | 10/16 | 0/16 | 11 (2/4) · 12 (0/4) | | **third head, full round** | `1235a12d` | **42/48** | 1/48 | 5 (0/3) · 12 (0/3) | | third head, cases 3, 4, 11, 12, three repeats | `1235a12d` | 8/12 | 0/12 | 11 (1/3) · 12 (1/3) | | review-round head, cases 6, 10, 12, 16, three repeats | `06c77b1b` | 9/12 | 0/12 | 12 (0/3) | | review-round head, case 12, eight repeats | `06c77b1b` | 2/8 | 0/8 | 12 (2/8) | Trigger cases, every full round on every tree: loaded when it should 15/15, left alone when it should not 6/6. - **Case 12** (which key carries a result table's column headers) passes 1 of 3 on `main`, 1 of 6 on `1235a12d` and 2 of 11 on `06c77b1b`: it flips on both trees. Each failing answer, on both trees, gives the right key path and the right code and fails on a literal: most warn against the wrong nesting by quoting it ("don't nest it as `error: { message }`"), which is the literal the case forbids; a few spell the path with its placeholders and so omit the literal `resultDialog.columns.rows`. Before the worked example went back in (below) the head read 0 of 16. - **Case 11** (English source, Chinese audience) passes 1 of 3 on `main` and 4 of 6 on `1235a12d`. The failing answer gives the right declaration and adds "don't set `defaultLocale: 'en'`", the literal the case forbids. - **Case 5** (extract ran, check still reports app keys missing) fails in every reading on both trees: the answer gives the `--no-objects-only` course and omits the literal `--strict`, which the entry carries on both trees. - **Case 3** (relabel in Studio with no redeploy) was a real loss on the first head: 3/3 on `main`, 1/3 on `d27a5088`, where the entry named `defineTranslation` only inside a parenthesis and two answers showed the item as a bare object. The sentence is an instruction again ("author with `defineTranslation`"): 7 of 7 on the second head, 6 of 6 on the third. - **Cases 4, 9, 10 and 16** each missed single runs on one tree or both (4: 1/3 on the second head, 3/3 on `main` and 6/6 on the third head; 9 and 16: below 3/3 on `main` itself; 10: a heading "No title:" in a correct answer matched the forbidden literal `title:`). All four are 3/3 on the third head; cases 6, 10 and 16 are 3/3 on the review-round head. Two restorations under ruling 7168461386 came out of these rounds: the `defineTranslation` sentence (case 3), and the one worked table-column example the original file carried, `resultDialog: { columns: { rows: { email: '邮箱', 'error.message': '原因' } } }` (case 12). Both are paid inside the entry. <details><summary>Round records</summary> - Before round on `f5da514b`: 117 of 117 turns, 5.7 min. - Round on `d27a5088`: 117 of 117 turns, 5.9 min. - Round on `878eb3ea`: 117 of 117 turns, 6.5 min. Extra readings on it: 32 of 32 turns, 1.6 min. - Round on `1235a12d`: 117 of 117 turns, 6.1 min. Extra readings on it: 24 of 24 turns, 1.3 min. - Readings on `06c77b1b`: cases 6, 10, 12, 16, 24 of 24 turns, 1.3 min; case 12 alone, 16 of 16 turns. - Two probes on the working tree, between `878eb3ea` and `1235a12d`, 24 turns each. Without the table-column example: case 12 0/6, case 4 5/6. With it (the text that became `1235a12d`, less four small edits elsewhere in the file): case 12 3/6, case 10 5/6. - Every `must_contain` literal of the 16 cases that the entry carried before, it still carries (70 literals read; 58 carried before and after, 0 lost; 12 appear in neither tree and come from the prompts). </details> ### Other tests On `1235a12d` and again on `06c77b1b`, under the verify lock (`VERDICT command-exit 0` each), the same counts both times: - `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/platform-catalog.test.ts scripts/skill-map-guards.test.ts` (the suite that names the ratchet script, and the one that names this skill): `Test Files 2 passed (2)`, `Tests 57 passed (57)`. - `pnpm --filter create-objectstack exec vitest run --maxWorkers=2 src/created-summary.test.ts` (it names the skill in its catalog list): `Test Files 1 passed (1)`, `Tests 12 passed (12)`. No ablation: the diff changes prose and one ledger, no tested behaviour. No test in the repository reads this entry's prose. ## Acceptance notes Open question for the seat or the approver: - **The key map stays inline** (3.4 KB of the entry's 9.0 KB) and is not cut to a pointer at the contract. The order's shape line says key tables go behind a pointer to the contract or the generated reference. Here the generated reference lists files, not keys; the contract is 3,340 lines; eleven of the sixteen eval cases ask which key carries a text; and the eval sandbox, like an MCP-only session, has no `node_modules` to read. So the section became a path listing (8.3 KB to 3.4 KB) and stayed. If a hand-written reference file is wanted instead, it needs a new ratchet row, which the standing ruling leaves to a human; the map then moves there verbatim and the entry drops to about 5.6 KB. Decided here (small, no shipped behaviour), each open to reversal in review: - **"Every trap stays inline unless a publish-time check covers it" was read as: a bundle that parses, ships and then translates nothing or the wrong text stays inline.** Inline: the seven traps and the six placement notes. Cut to the contract, each loud when hit: a retired key, a misspelled alias, a key under a parent that does not declare it (`defineTranslationBundle` refuses the first two with the key to write; `os validate` reports the third as `translation-target-unknown`, an error). - **The option-key trap stays inline although a check names it**: `translation-option-key-unknown` is a warning, so the bundle ships. - **Paid inside the entry for the two restorations and a truthful routing row**: the `pluralLabel` line of the example (the key is in the map), the words "(deep-merge)", "optional," and "forever", and "refusal guidance" shortened to "refusals". - **Review round on `06c77b1b`** (contract review 7266118883: PASS, S1, N1, N2). S1, fixed: the key map's opening sentence gave `{path}`, `{column_path}` and `{list}` each "a plain string" value; the contract holds a string under `fields.{path}` and `{column_path}` only, an object with `label` under `_relatedLists.{list}` and a column map under `columns.{path}`. The sentence now reads "`fields.{path}` and `{column_path}` hold plain strings". N2, fixed: the first placement note names `lookup` beside `master_detail`, as the contract does for both `inlineTitle` and `relatedListTitle`. Both are paid inside the entry, 8,998 to 8,996 B, the row unchanged at 2243: the routing table's last row names the sibling skills with shorter glosses, and two traps are a few words shorter. N1, left: `bulkActions.{def}`, a dataset member and a report block's `description` still stop above their leaf keys. Naming them costs about 70 bytes the entry does not have, each miss is refused loudly or reported by `os i18n check`, and routing row 1 sends them to the contract. The changeset no longer says the map names every key and every group; it says where the map stops. - **Routing row 3 names only what its page holds** (locale resolution and fallback). The first head promised routes and coverage shapes there; the page has neither. The coverage shapes are in the contract (row 1). The three `/api/v1/i18n` routes are not linked from the entry: a bundle author writes none of them, and a second link did not fit. The changeset names the page that documents them. - **Section anchors of the entry changed.** The changeset lists every anchor that left `SKILL.md`. No file in this repository links one of them. - **Footer form**: this body ends with the single block AGENTS.md prescribes for a PR body, not the two-line form the launching thread's reminder proposed, because a stacked two-line block is measured to store as three attribution blocks. Noted, not changed: - The literals of eval cases 5, 10, 11 and 12 fail correct answers (above). Case 12 forbids `error: {`, which a warning quotes; its sibling case 10 forbids the code form `verdict: { summary: '`, which a warning does not match. That is a reading of the eval file; the parity rule treats the cases as fixed, so this PR does not touch them. - The commit message of `1235a12d` says "twenty-two readings"; the count is 16 (3 on `d27a5088`, 7 on `878eb3ea`, 6 on the first probe). The branch is not rewritten for it; the squash takes this body. - The version PR objectstack-ai#38192 touches the entry's stamp line; `overlap-check` reads it as merging cleanly. ## Verification Read first, by risk: 1. `skills/objectstack-i18n/SKILL.md`, the whole file: is anything a model needs before opening the contract missing? The risk hunks are `## Key map` (the listing and its six notes replace an 8 KB table) and `## Traps`. 2. `.changeset/34770-i18n-skill-router.md`: the "what left, and what answers it now" list is the record of every cut. 3. `scripts/check-skills-token-ratchet.mjs`: the one `objectstack-i18n` row. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints `ratcheted (authored) 196276 / 196276 (+0)` and `skills/objectstack-i18n/SKILL.md 2243 / 2243 (+0)`; `wc -c skills/objectstack-i18n/SKILL.md` prints 8996. Gates, local, each exit code captured before any pipe. The whole derived list ran on `1235a12d`; `06c77b1b` differs from it by six lines of the entry, two comment lines of the ratchet row and one paragraph of the changeset, so the families that read those were run again on it. <details><summary>On `06c77b1b`: the families the review round reaches, all exit 0</summary> - `node scripts/check-skills-token-ratchet.mjs`: `ratcheted (authored) 196276 / 196276 (+0)`, `skills/objectstack-i18n/SKILL.md 2243 / 2243 (+0)`; its `--self-test` exit 0. - `pnpm check:skill-links`: `290 relative link(s) in 76 published skill file(s) resolve; 161 fragment(s) name a real heading under GitHub's slug rule.` - `pnpm check:doc-anchors`: `1178 internal #fragment link(s) across 366 source file(s) all resolve to a real heading`. - `pnpm check:skill-identifier-liveness`, `check:skill-compatibility`, `check:nul-bytes`, `check:role-word`, `check:corpus-claim-drift`, `check:published-readme-links`, spec `check:skill-docs`: exit 0. - `check-changeset-no-major`, `check-empty-changeset`, `check-adr-0087-registration`, `check:changeset-gate-self-tests`, `check-platform-checklist --changed-from origin/main` (nothing judged): exit 0. - `node scripts/pm/overlap-check.mjs`: `VERDICT clean exit 0` before the push. - Not run again: spec `check:skill-examples` (no code block changed). </details> On `1235a12d`: <details><summary>Derived families: 69 derived, 68 run green, 1 NOT MEASURED</summary> - Reconciliation: `✓ dispatch-gates --ran: 69 derived famil(ies) accounted for — 68 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).` - NOT MEASURED: `pnpm check:dual-build-cjs-loads`, exit 3, `Run pnpm build first. ⛔ This is NOT a pass: nothing was measured.` It reads every package's built `dist/`, and this container holds no full build. The diff touches no package source; CI's run is the reading. - `pnpm check:dts-closure` is recorded from its second run. Its first run, in the list, exited 1 naming missing declaration files while a package build of this session was rewriting those `dist/` folders; run again with no build in flight it exits 0: `47 built package(s) swept - 189/189 declared declaration file(s) present`. - `node scripts/check-skills-token-ratchet.mjs`: `✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted.` (`ratcheted (authored) 196276 / 196276 (+0)`, `bundle total 300941`); its `--self-test`: `111 cases pass`. - `pnpm check:skill-links`: `290 relative link(s) in 76 published skill file(s) resolve; 161 fragment(s) name a real heading under GitHub's slug rule.` - `pnpm check:skill-identifier-liveness`: `Leg 1: 540 citation(s) over 76 published file(s) ...; Leg 2: 11 registered exhaustive section(s), 0 ledgered gap(s).` - `pnpm --filter @objectstack/spec run check:skill-docs`: `Skill docs in sync`. - `pnpm check:skill-compatibility`, `check:skill-frame-sync`, `check:role-word`, `check:corpus-claim-drift`, `check:doc-authoring`, `check:published-files`: exit 0. `pnpm check:nul-bytes`: `no raw ASCII control bytes`. - The changeset gates (`check-changeset-no-major`, `check-empty-changeset`, `check-adr-0087-registration`, `check:changeset-gate-self-tests`): exit 0. `pnpm check:pm-dispatch-gates` (fast tier): exit 0. </details> <details><summary>Beside the derived list, all exit 0</summary> - `pnpm --filter @objectstack/spec run check:skill-examples`: `351 prose examples type-check across 3 surface(s)`. The entry's one example is among them. Its first run exited 3 (a client package was not built); it was run again after that build. - `pnpm --filter @objectstack/spec run check:skill-refs`: `10 generated files in sync with packages/spec`. - `pnpm --filter @objectstack/spec run check:skill-served-sections`: `24 served section(s), each heading exactly once in its file` (the hosted door serves no section of this skill). - `pnpm check:doc-anchors`: `1178 internal #fragment link(s) across 366 source file(s) all resolve to a real heading`. - `pnpm check:published-readme-links`: `564 outbound link(s) across 168 published markdown file(s)`, `99 docs-site page(s) resolved`. - `pnpm check:skill-top-level-keys`: exit 0. - `node scripts/check-platform-checklist.mjs --changed-from origin/main`: `0 anchored files in the change set — nothing judged.` - `node scripts/pm/overlap-check.mjs`: `VERDICT clean exit 0` before each push. - The body gates on this text (`check-closing-keyword-parity --body`, `check-partof-closing-keyword`): exit 0. </details> Base: the branch is cut from `f5da514b`; `main` has moved nine commits since (to `74a15cb7`), none touching `skills/`, the ratchet script or the translation contract, and was not merged in. CI on the head is the seat's reading. --- _Generated by [Claude Code](https://claude.ai/code/session_01JQwxbaa1vPDVusyBxyGMG6)_ <!-- signed: repo:objectstack#2 · os-warren · session_01JQwxbaa1vPDVusyBxyGMG6 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…and an item of a package you can write reads New in the Studio list (objectstack-ai#38150 PR-B2) (objectstack-ai#38598) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Jianguo** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbYYVoMKNg2bko9Bx8v783A8)_ Fixes objectstack-ai#38150 This is PR-B2, the last PR of the card: the retirement of Studio's package-less scope (`/studio/~org`) with its redirects, the Studio list's Source classifier, and the ADR marks. PR-A1 (objectstack-ai#38185), PR-A2 (objectstack-ai#38389) and PR-B1 (objectstack-ai#38545) are merged. It continues the branch `claude/project-thread-kf5k6i` of the seat whose account ran out (five commits, head `2a3c6e8f5b`, no PR was open on it): this branch starts at that head, every commit was read, and main is merged in. Two cards ride on this one and are named here without a closing keyword, because their threads carry no claim naming this branch: the Source-badge card objectstack-ai#38061 (its ruling note names this PR as its carrier) and the old door's defect card objectstack-ai#37468 (the card text gives it to PR-B). The seat finishes both at landing. Clause-②: no (narrowing) Metadata-protocol: none Skills-docs: none — no file under `skills/**`, `.claude/skills/**` or `content/docs/**` names the `~org` scope, "Organization flows" or any of the nine keys (`git grep` at this head) **Size: 2,937 lines** (1,697 added, 1,240 deleted, 82 files; `git diff --shortstat origin/main...HEAD` at `85939f9c`, merge base `301417669`). With PR-A1's 1,947, PR-A2's 1,380 and PR-B1's 3,387 the card stands at **9,651**. The card total is over 3,000 and the diff edits `docs/adr/**`, so this PR is Tier H. ## 维护者速读 - 用户能看到什么变化:Studio 左侧菜单里的「组织流程」入口没有了,旧网址仍能打开并转到跨软件包列表的「散落项」流程列表;在 App Studio 列表里,自己建的软件包里的项,来源从「系统自带」改成「新建」,筛选和上一条、下一条跟着一致。 - 为什么做:这是 App Studio 改版专题第 4 阶段的收尾,你已裁定散落项原地保留、改用「勾选后移入软件包」来移动,旧入口随新入口上线一起下线;来源标签按你对决策稿的回答改。 - 出错会怎样:只有打开旧网址或看这个列表的人会碰到,最坏是老书签落在列表上而不是原来的流程页,或某一行的来源标签显示不对;不动任何数据,可以整体撤回。 - 要你做什么:这次改动带架构决定记录的标注,整张卡累计也超过 3000 行,需要你本人批准,请审批。 ## What changes **The scope is retired, its addresses answer.** `studio-design/studioOrgScopeRetired.ts` is the one owner of the retired segment (`RETIRED_ORG_SCOPE_SEGMENT`) and of where its addresses land (`retiredOrgScopeTarget`): every `/studio/~org/…` address lands on `/studio/~all/metadata/flow?source=loose`, the list the Setup → Packages banner links to. The list's search (`q`) and sort (`sort`) are carried and every other query key is dropped, `source=runtime` included. Four places answer an old address with it: `StudioDesignSurface` (before anything of the surface mounts), `studioPillarRedirectModel.ts` (the scope's root and its old pillar deep links), `metadataArea.ts` (the scope's leg of the area, and a `?package=~org` link on another leg), and the console's `StudioRoute.tsx` (two route rows that answer the segment ahead of the package routes). **What leaves with it.** The menu's "Organization flows" row and its `orgFlows` entry kind; the area's `orgScope` mode; the top-left Changes row (`StudioScopePendingRow`) and the package-less batch publish behind it (`studioSurfacePublish.ts` publishes a package only now; the changes sheet is mounted on a package only); the `scope` prop of the package switcher; the scope helpers in `studioScope.ts` (`studioOrgScopePath`, `STUDIO_ORG_SCOPE_SEGMENT`, `STUDIO_ORG_SCOPE_TYPE`, `STUDIO_ORG_SCOPE_SOURCE`, `isStudioOrgScope`, `isOrgScopeDraft`), `orgScopeFlowOf` and `orgScopeAreaRedirect`. `AutomationsPillar` takes a package id, never `null`. `studioScope.ts` keeps what the Loose list reads: `isPackageLessItem`, `isPackageLessDraft`, and `packageLessItemPath` (an item of no package opens its page at `/studio/~all/metadata/TYPE/NAME`). **Who lands where now.** A person who may enter Studio but not Setup → Packages, with no recent package, lands on the Loose list of flows (`studioEntryFallbackPath`, `newPackageDoorPath`); the "package not found" page's way out reads "Open loose flows" (「打开散落的流程」) and opens the same list. A package-less flow the app's command palette finds opens its item page. A draft of no package is published by Home's "Publish all", or published or discarded on its own page. **The Studio list's Source (the classifier, card What 7).** `metadata-admin/studioListSource.ts`: `studioSourceKind` takes a third, required fact, whether the row's package is one the author can write, read from the package list's `writable` verdict (`useWritablePackageIds`, the request the other readers of that list share). Order: the customization mark, then the package verdict, then the provenance. `ResourceListPage.tsx` passes it to the badge, the source filter and its counts, and the badge's tooltip; `useListOrderedNames.ts` passes it to the detail page's previous / next order and waits for the package list only while the order is narrowed by source. Setup's list is untouched: it asks for no verdict and reads the provenance as served. **i18n (the narrowing).** Nine keys leave the `studio` namespace of `@object-ui/i18n`, in `en` and `zh`: `engine.studio.menu.orgFlows`, `engine.studio.pkg.orgScope`, `engine.studio.org.name`, `engine.studio.org.hint`, `engine.studio.org.description`, `engine.studio.org.none`, `engine.studio.publishedAllFlows`, `engine.studio.publishedAllFlowsOne`, `engine.studio.changes`. `engine.studio.notFound.allMetadata` keeps its key and changes its text. `@object-ui/app-shell` is private; its barrel exports `RETIRED_ORG_SCOPE_SEGMENT` and `retiredOrgScopeTarget` where it exported `STUDIO_ORG_SCOPE_SEGMENT` and `studioOrgScopePath`. **ADR marks (governed, card What 9).** ADR-0084: nine passages that name the scope are struck through and left legible (the "organization's own flows" row of "Entries that are not a type", the no-fold sentence, the first example of the sorting rule's third test, the second sentence of item 3 of the 2026-11-25 silent-points list, the fourth top-bar-homes row with its 2026-11-27 note, the sentence that kept the entry until the door shipped, and two items of the 2026-11-26 silent-points list), with notes dated 2026-11-29 that name the card and the ruling record (comment 7184753035, question 3); the note under "Organization-level content" says the move door shipped, where it opens from, what retired with the scope (the menu row, the scope's list, its flow page, its Changes row and the batch publish behind that row), where a flow of no package opens now, where `~org` addresses land, and that the bulk adopt retired in a change of its own (objectstack-ai#38545). ADR-0070: the status line, a pointer at TL;DR item 5, and a dated note under D5 ("move into a base" is the move-in door; the bulk assignment to a default base is superseded; rows never moved stay legal). No heading anchor changes. **Changeset and checklist.** `.changeset/38150-studio-org-entry-retired.md`: `@object-ui/app-shell`, `@object-ui/console` and `@object-ui/i18n` patch, BREAKING with the nine keys, the two export renames as a FROM → TO table and the one-line fix, and the ADR-0087 `not-required` marker. `docs/qa/platform-checklist/FOLLOW-UPS.md` gains one section naming the five checklist items that still describe the retired scope. ## Each removed assertion, and what pins its rule now Renamed cases (same assertion, the target address or the words changed with the retirement) are not listed: `StudioRoute.test.tsx`, `StudioRoute.recentPackage-11863`, `CommandPalette.studioScope-11863`, `HomePage.noAgentsBuildChip-26614`, `SidebarAppMenu-36112`, `StudioDesignSurface.notFound-26708`, `StudioEntryRedirect.test.tsx`, `studioInterfacesRetired.test.ts`, `studioPillarRedirectModel.test.ts`, `studioMenuModel.test.ts` (its `~org` rows leave the `it.each` tables; the `~all` rows stay), `StudioMenu.test.tsx` and `StudioMenu.overview-37454` (the last two drop their `~org` row the same way). The others now expect `/studio/~all/metadata/flow?source=loose` where they expected the scope. | file | removed | what pins the rule now, or why it retired | |:--|:--|:--| | `studioScope.test.ts` | "the reserved segment cannot name a package" (the spec manifest-id rule, the sanitizer) and "is told apart from a package segment" | moved with the segment to `studioOrgScopeRetired.test.ts`: "the retired segment stays reserved: it can name no package", the same three cases on `RETIRED_ORG_SCOPE_SEGMENT` and `isRetiredOrgScope` | | `studioScope.test.ts` | `studioOrgScopePath`: "lands on the scope's flow list…", "opens a flow full-screen on its address…" | the builder is removed. The addresses it built are the inputs of `studioOrgScopeRetired.test.ts` "the old addresses, read by the redirects that answer them" (root and `/automations`; list, flow and flow history; a `?package=~org` link). Where a package-less item opens is `packageLessItemPath`, pinned in two new cases of the same file | | `studioScope.test.ts` | "the scope reviews package-less FLOW drafts only" (`isOrgScopeDraft`) | the predicate retired with the Changes row it fed; nothing reads it. `isPackageLessDraft` keeps its case | | `automationsPillarRedirect.test.ts` | "the package-less scope lands on its own leg, with no package and its source filter once" | the scope's `/automations` never reaches this mapping: `studioPillarRedirect` answers it first. Pinned in `studioPillarRedirectModel.test.ts` ("the table covers every retired pillar segment, on a package and on the retired package-less scope") and `studioOrgScopeRetired.test.ts` | | `metadataArea.test.ts` | "`orgScopeFlowOf` names the package-less scope's flow…" | the function is removed (the area draws no scope flow). The rewritten case beside it pins the replacement: "a flow of the retired scope lands on the list, not on the flow, and the list keeps no tab" | | `AutomationsPillar.newSimilar-28567` | "the package-less scope draws no menu" | the flow designer is a package's now (`packageId` is a string) and the scope draws no page; the redirect is pinned in `StudioDesignSurface.packageLessFlows-11553` | | `StudioTopLeft-37456` | "~org with drafts pending: a Changes row…" and its control "none passed: no Changes row" | replaced by "no scope draws a Changes row": `it.each` over a package and no package, expanded and as a rail | | `StudioDesignSurface.publishCount-11807` | the four package-less publish toasts (two drafts, one draft named by label, several named in the description, none pending) | the batch publish they read is removed. Replaced by "its old address, with package-less drafts pending, lands on the Loose list: no publish door, nothing sent, no toast". The package cases of the file are untouched | | `StudioDesignSurface.packageLessFlows-11553` | the scope's own page: lists its flows, offers no create, its empty-list guidance, its page chrome | replaced by "every address of the retired package-less scope lands on the Loose list of flows" (a redirect table, the kept search and sort, the list holding the clone and none of a package's flows, with a control without the filter, and an empty Loose list) and "the Loose list is the retired scope's page" (the row opens the item page; no menu row, no Changes row, no changes sheet, no page under `~org`) | | `StudioDesignSurface.packageLessFlows-11553` | "opens it editable, and an edit saves a draft bound to no package", and the "editable" half of two entries: "the measured link, through the showcase pillar: lands on the package-less scope, the clone open and editable" and "from that read-only package, a switch into the package-less scope opens it editable" | the scope's flow page is retired, and the door the ruling keeps open for that save (comment 7184753035, question 2) is the clone's item page on the cross-package leg. Pinned by the new "the item page opens writable, and an edit saved there writes a draft naming no package", run over two entries, the page's own address and a read-only package's address that names the clone: the designer's add controls are drawn and Save waits only for an edit; the save is `mode: 'draft'` with no `packageId`, and the item's own publish that follows names none either. It sits in the describe "a package-less flow is edited, and its draft published or discarded, from its item page" | | `StudioDesignSurface.packageLessFlows-11553` | "the package-less scope reviews and publishes exactly its own drafts": the Changes row count, the sheet and its filter, "publishes each package-less flow draft by reference, and nothing through the package batch door" | the row, the sheet and the batch are removed. A package-less draft's two publish paths are pinned by two new cases of "a package-less flow is edited, and its draft published or discarded, from its item page" (Publish and Discard on the item page name no package) and by the unchanged `usePublishAllDrafts.refusal-11922` ("records the batch's health and goes on to the package-less drafts") for Home's Publish all | | `StudioDesignSurface.packageLessFlows-11553` | deep links: "in the package-less scope: the named flow, though another is listed first", "the measured miss: the package-less page, a link naming a packaged flow", "an empty scope lands on its list" | the scope has no page to miss on. "the measured link, through the showcase pillar" now lands on the clone's item page on the cross-package leg, and "the package's own address naming the clone lands there too" is new; "a package page's miss" stays | ## Acceptance notes - **Takeover.** Kept as built: the five commits of `claude/project-thread-kf5k6i` (`db6e4a61`, `94ca83cb`, `51d85a2c`, `31121663`, `2a3c6e8f`), read hunk by hunk. Added here: the merge of main (`c03f1772`, clean, eight files auto-merged, PR-B1 among main's commits) and one comment-only commit (`5fcf89b5`): eleven files of the Studio surface still described the retired scope as a place a person can be (the palette surface's doc, four notes in `studio-design`, six test headers or titles). No behaviour changes in it. - **Rework round 1** (L2 record 7257159073, FAIL on `5fcf89b5`; L1 record 7257170665, REWORK). Three commits, no product code in them. **M1**, `c2ffeaa7`: `ui/e2e/studio-left-menu-36899.spec.ts` still waited for the fold's Automation group, whose one row on that package was the retired entry; the loop reads `system` and `security`, the Automation group is asserted absent, and the line names the card. **S1**, `90713851` and `85939f9c`: the item-page case of the table above. **N1 and N2**, `90713851`: ADR-0084's sorting rule (third test) and item 3 of the 2026-11-25 silent-points list are marked, and the note under "Organization-level content" lists the scope's flow page. **N4 is left as it is**: narrowing `sourceNarrowed` in `useListOrderedNames.ts` moves product code for one request and a short wait on the Loose list's previous / next, with no wrong order, and would owe the battery again; it fits the follow-up card the seat files for N3. **N3** is the seat's to file. The delta contract review of `85939f9c` is record 7257925349 (PASS: M1, S1, N1 and N2 closed), and the seat's record 7257936891 accepts the head. - **File surface.** All 82 changed files are inside the claimed surface. One, `ui/e2e/studio-left-menu-36899.spec.ts`, is admitted by claim amendment 7257086821 (one hunk). The other 81 are inside claim amendment 2 (comment 7253593955): 58 under `studio-design/`, 5 under `metadata-admin/`, the console's `StudioRoute.tsx` and four of its tests, `CommandPalette.tsx` and its `~org` test, `index.ts`, `README.md`, three tests pinning `~org` under `console/home`, `layout` and `views/setup`, the two studio catalogues, the two ADRs, the changeset, and `FOLLOW-UPS.md`. - **Clause-②, measured as the amendment asks.** The nine keys are in the published `@object-ui/i18n@19.0.0-next.2` (`dist/namespaces/studio/en.js` and `zh.js`, each key in both files; read from the registry tarball) and in no file of the `dist` built at this head, where two kept keys (`engine.studio.notFound.allMetadata`, `engine.list.source.new`) are in both files. Published keys leave, so the line stands. - **Card acceptance, PR-B under Q-f = E.** "On `/studio/~all/metadata/flow` the authored package's flow reads 新建 and a code-shipped flow still reads 系统自带": `ResourceListPage.authoredPackageSource-38150` "the authored package's flow reads New; the code-shipped flow still reads System-shipped" and "draws the Chinese words for the two". "The Studio filter and prev/next agree with the badge": the three cases under "the source filter and ‹ › agree with the badge". The ablation is below. "`/studio/~org/…` redirects": the redirect tables in `studioOrgScopeRetired.test.ts`, `StudioDesignSurface.packageLessFlows-11553` and the console's `StudioRoute.metadataArea-28561`. - **Premise check of What 7.** No non-test `source=runtime` address remains: `git grep` for it over `ui/packages`, `ui/apps` and `packages`, tests and changelogs excluded, has zero hits at this head. - **"Rechecked in PR-B".** From the Setup → Packages banner a person reaches the flow's Loose list: the banner's link and every `~org` address are one address, pinned by "is the Loose list of flows, the address the Setup → Packages banner links to". A package-less flow draft is published from its item page (two new cases) and from Home's Publish all (unchanged `usePublishAllDrafts.refusal-11922`), and an edit of a loose flow is saved in place from that page (the two-entry case). This recheck is at the test level. A console walkthrough in a browser was not run for this PR: NOT MEASURED, reason: the card asks the walkthrough of PR-A, and nothing here adds a screen. - **Left alone, outside the claimed surface.** Comments that still name the scope in `preview/DraftChangesPanel.tsx` (two) and three test titles beside it, in `ui/packages/i18n/src/__tests__/confirmNoteSeparate-11591.test.ts`, and in `metadata-admin/metadataAreaHost.ts`, whose `emptyListHint` option has no producer left while `ResourceListPage.tsx` still reads it. Named in the report for the seat. - **Same-version rule.** PR-B1 merged at 2026-11-29T11:44Z and is unreleased; the open Version Packages PR is objectstack-ai#38192. This PR has to merge before that one does. Nothing on the dev side blocks it; it waits on the reviews below. ## Verification Files to read first, by risk: 1. `ui/packages/app-shell/src/views/metadata-admin/studioListSource.ts`, with its two readers in `ResourceListPage.tsx` (`studioKindOf`, the badge tooltip) and `useListOrderedNames.ts`: the one behaviour change that is not a removal. The risk hunk is the order in `studioSourceKind` (mark, then package verdict, then provenance) and the `loading` wait in the previous / next order. 2. `ui/packages/app-shell/src/views/studio-design/studioOrgScopeRetired.ts` and the four places that answer an old address with it (`StudioDesignSurface.tsx` line 130, `studioPillarRedirectModel.ts`, `metadataArea.ts`, the console's `StudioRoute.tsx`): what a retired address keeps and drops. 3. `docs/adr/0084-application-builder-information-architecture.md` and `docs/adr/0070-package-first-authoring.md`: the governed text. Struck lines and dated notes only. Two-minute check: `pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/studioOrgScopeRetired.test.ts packages/app-shell/src/views/metadata-admin/ResourceListPage.authoredPackageSource-38150.test.tsx`. Expect two files and 25 tests to pass; the second file's first describe is the classifier's truth table. <details><summary>Suites and type checks (local; heads named per row)</summary> | run | head | result | |:--|:--|:--| | workspace build, `turbo run build` without the docs app, under the verify lock | `c03f1772` | 123 tasks, 123 successful; lock VERDICT command-exit 0 | | 714 UI test files under the lock: all of `studio-design/`, `chrome/`, `views/setup/`, `console/home/`, `preview/` and `packages/i18n/`, every test that imports a changed module or names `ResourceListPage`, `StudioDesignSurface`, `StudioMetadataArea` or `DraftChangesPanel`, and the console's `StudioRoute*` tests | `c03f1772` | Test Files 714 passed (714); Tests 7,423 passed, 13 skipped (7,436); lock VERDICT command-exit 0 | | the ten files the comment commit or an ablation touched, again | `5fcf89b5` | Test Files 10 passed (10); Tests 181 passed (181); lock VERDICT command-exit 0 | | `type-check` of `@object-ui/app-shell`, `@object-ui/console`, `@object-ui/i18n` (each covers its test files) | `5fcf89b5` | all three executed, none from cache; lock VERDICT command-exit 0 | | `eslint` on the changed files of the three packages (69, 5 and 2 files) | `5fcf89b5` | 0 errors | The full `@object-ui/app-shell` suite (2,470 files) was not run: NOT MEASURED locally, reason: the dev contract keeps a card to the affected files; CI's Test UI shards run all of it. `5fcf89b5` changes comments and one test title, so the 714-file reading at `c03f1772` stands for it. The rework changes one of those 714 files, run whole again at `85939f9c` (the rework block below). </details> <details><summary>Ablations</summary> Both through `scripts/ablation-replace.mjs`, the implementation committed first, each restored and proven (blob equals HEAD, `git diff HEAD` empty). - **The classifier.** Deleted `if (inWritablePackage) return 'new';` from `studioListSource.ts` (anchor 1 → 0, blob `187ff2023a0e` → `cb5b1ba68bdc`), then ran `ResourceListPage.authoredPackageSource-38150`: 9 failed, 5 passed (14). Red: the truth-table case (`expected 'system' to be 'new'`), the badge in en and zh, the tooltip, the two filter cases, the previous / next case, the authored package's own leg, and the control "a package the list does not name, and no package at all, read as before" (it fails in the shared settle step, which waits for the authored row to read New; its own two assertions do not read the deleted line). Green: "only a package list that was read names a writable package", the two unreadable-package-list controls, and the two Setup controls. - **The surface's redirect guard.** Deleted the `isRetiredOrgScope` line of `StudioDesignSurface.tsx` (anchor 1 → 0, blob `77a97116460c` → `e3360209ed14`), then ran `StudioDesignSurface.packageLessFlows-11553`, `StudioPackageOverview-37454` and `StudioDesignSurface.publishCount-11807`: 3 failed, 93 passed (96). Red: the redirect-table row for the scope's area address with extra query keys, "draws no menu row for the retired scope, no Changes row, no changes sheet, and no page under `~org`", and "~org/overview redirects to the Loose list of flows (the surface alone: its own guard)". The other rows stay green because the pillar redirect answers them first, which is the two-door shape the tests name. </details> <details><summary>Derived gates and the lanes the derivation does not list</summary> `node scripts/pm/dispatch-gates.mjs --commands` (no paths; 81 paths against merge base `301417669`): 49 commands, the same 49 at `c03f1772` and at `5fcf89b5`. Run at `5fcf89b5`, each recorded with its exit code: all 49 exit 0. `--ran`: "49 derived, 49 run, 0 NOT-MEASURED, 0 UNRUN". With the Playwright spec added the derivation is the same 49 (read at `c2ffeaa7`); what was run again after the rework is in the rework block below. The body gates among them (`check-changeset-no-major`, `check-adr-0087-registration`, `check-closing-keyword-parity`) read this body through a local event file; `check-partof-closing-keyword` read it too: exit 0, and `--body` binds one closing declaration, the card's. Not in the derived list, run by hand at `5fcf89b5`: - 19 gates of CI's Type Check UI and Lint UI lanes, each `pnpm --dir ui run NAME`: `check:i18n-keys`, `check:i18n-drift`, `check:unreferenced-sources`, `check:self-import`, `check:phantom-deps`, `check:esm-specifiers`, `check:spec-symbols`, `check:vi-mock-specifiers`, `check:vi-mock-inherit`, `check:vi-mock-override-shape`, `check:test-path-roots`, `check:control-bytes`, `check:shell-escape-residue`, `docs:check-links`, `check:doc-fences`, `check:doc-types`, `check:handler-key-reads`, `check:metadata-write-doors`, `check:doc-example-readers`: all exit 0. - `pnpm check:changeset-fixed`, `pnpm check:i18n-stale-fill`, `pnpm check:published-readme-exports`, `pnpm check:pm-governed-prose`, `node scripts/docs-audit/check-affected-docs.mjs`: exit 0. `node scripts/check-platform-checklist.mjs --changed-from origin/main`: OK, 2 anchors judged, 0 lost. - NOT MEASURED locally: `check-single-claim-paths` and `check-closing-target-claim` (both need the pull request's number). CI's `PR-body guards (claim · duplicate · Part-of · single-writer path)` concluded success on `5fcf89b5`. </details> <details><summary>Rework round 1 (heads `c2ffeaa7`, `90713851`, `85939f9c`)</summary> | run | head | result | |:--|:--|:--| | CI's red, reproduced: `pnpm exec playwright test e2e/studio-left-menu-36899.spec.ts --project=chromium` from `ui/` | `5fcf89b5` | 1 failed, 3 passed: `studio-menu-advanced-group-automation` not found at line 225, as in CI's `Build & E2E UI` | | the same command with the fix | `c2ffeaa7` | 4 passed | | `StudioDesignSurface.packageLessFlows-11553.test.tsx`, whole file, under the verify lock | `85939f9c` | Test Files 1 passed (1); Tests 36 passed (36); lock VERDICT command-exit 0 | | `type-check` of `@object-ui/app-shell` (covers the test file) | `85939f9c` | executed, not from cache; lock VERDICT command-exit 0 | | `pnpm --dir ui exec vitest run scripts/` under the lock | `85939f9c` | Test Files 172 passed, 2 skipped (174); Tests 5,159 passed, 2 skipped (5,161); lock VERDICT command-exit 0 | | `eslint` on the spec and on the test file | `85939f9c` | 0 errors | Two ablations of the new case at `85939f9c`, through `scripts/ablation-replace.mjs`, each restored and proven (blob equals HEAD, `git diff HEAD` empty); the case's two entries go red in both: - **Writable.** In `ResourceEditPage.tsx`, `const hostReadOnly = !!areaHost?.readOnly;` replaced by `const hostReadOnly = !!areaHost;` (anchor 1 → 0, blob `fdd7af7db791` → `cc814ee1e002`): 2 failed, `Unable to find an element by: [data-testid="resource-save"]`. - **No package on the save.** In the same file the save's options were given `packageId: 'com.example.ablation'` (anchor 1 → 0, blob `fdd7af7db791` → `931a9d527629`): 2 failed, `expected { force: false, …(2) } to not have property "packageId"`. Gates run again, each recorded with its exit code. At `90713851`, the 29 that read the ADR text or test sources, all exit 0: `check-adr-0087-registration`, `check-adr-links`, `check:adr-anchors`, `check:adr-index`, `check:adr-symbol-anchors`, `check:closed-ceremony-text`, `check:doc-authoring`, `check:pm-prior-rulings`, `check:pm-governed-merges`, `check:platform-checklist`, `check:nul-bytes`, `check-comment-mask-corpus`, `check:test-source-alias`, `check:cross-package-test-inputs`, `check:undeclared-dep-imports`, `check:skill-identifier-liveness`, `check:pm-governed-prose`, `docs-audit/check-affected-docs`, `check-changeset-no-major`, `check-empty-changeset`, and from `ui`: `check:control-bytes`, `check:test-path-roots`, `check:shell-escape-residue`, `check:vi-mock-specifiers`, `check:vi-mock-inherit`, `check:vi-mock-override-shape`, `docs:check-links`, `check:doc-fences`, `check:doc-types`. At `85939f9c`, which changes the test file alone, the 12 of them that read test sources again: all exit 0. The other derived gates read nothing these commits change, so their run at `5fcf89b5` stands; they were not run again. </details> <details><summary>Dogfood battery</summary> Full battery at the landing head `85939f9c` (os-dev report 7258471243), `pnpm --filter @objectstack/dogfood test` under the verify lock (no shard, no path), after the workspace build at the same head (123 tasks successful, 121 of them restored from turbo's local cache): lock VERDICT command-exit 0 (held 1,888 s); Test Files 495 passed, 3 skipped (498); Tests 4,187 passed, 68 skipped (4,255); no failure. The same battery before the rework, at `5fcf89b5` (os-dev report 7256902761): lock VERDICT command-exit 0 (held 1,828 s), the same counts. The three rework commits change a Playwright spec, one vitest file and ADR text, and no product code. </details> ## Owed before landing - The maintainer's approval (Tier H: `docs/adr/**`, the narrowing, the card total). - The same version as PR-B1: this PR merges before the open Version Packages PR, objectstack-ai#38192. - The two cards named at the top, finished by the seat at landing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jUba5JFq1ejCZ7Gxpk <!-- signed: repo:objectstack#1 · zhuangjianguo · session_01QsR2jUba5JFq1ejCZ7Gxpk --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…an authored one (objectstack-ai#38755) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi92EfsyzCyjwc8X5TRpmNj6z)_ Fixes objectstack-ai#38690 Clause-②: no (narrowing) Metadata-protocol: narrowed Skills-docs: none — no `skills/**` text taught the lowered exemption; the one docs page that did (`content/docs/deployment/validating-metadata.mdx`, the two capability rows) is corrected here ## 维护者速读 - 用户能看到什么变化:挂在字符串 handler / target 旁的钩子和脚本动作函数体(构建产物,或手写的)现在也会被校验权限声明,缺权限时在发布和 os validate 时就报错,而不是上线后每次运行被沙箱拒掉;同时构建能认出 `ctx.log?.info(…)` 这类可选链、空白、注释写法,自动补上权限。 - 为什么做:这是「钩子与动作函数体权限校验」这张卡的第二步;取消当时为构建产物留的豁免,并把构建的推断补到与校验规则逐个写法一致。 - 出错会怎样:手写在字符串 handler / target 旁、漏声明权限的函数体,以及构建后丢了权限的产物,发布会被拒并点名缺的权限;首方示例与连接器应用实测零新增拒绝,可整 PR 撤回。 - 要你做什么:无。 ## What changes `validate-action-body-capabilities` (`@objectstack/lint`) skipped a body it took for one the build lowered: a hook body `os build` / `os verify` lowered from an inline `handler`, and at the runtime publish doors any hook body beside a string `handler` (`isLoweredHandlerBody`); and any action body beside a string `target`, judged for `api.write` alone (`isLoweredTargetBody`). The skip covered a body written by hand beside a string ref as well, since the rule cannot tell the two apart. The reason was that the build's capability inference did not read every gated call the rule reads. Step 1 of this card (PR objectstack-ai#38731) and objectstack-ai#38653 (PR objectstack-ai#38686) closed that gate by gate; this PR closes it spelling by spelling. So this PR: - drops both skips and the three helpers that only served them (`isLoweredHandlerBody`, `isLoweredTargetBody`, `loweredActionBodyPaths`). `validateActionBodyCapabilities` no longer takes the `loweredHookRefs` context, and its registry entry passes the stack alone. Neither function was on the package's barrel. - makes the CLI extractor (`packages/cli/src/utils/extract-hook-body.ts`) infer each gated call in each spelling the rule reads. Its `ctx`-anchored member patterns, and their rebound siblings for a renamed or destructured hook context, were literal `ctx.log.info`: `ctx.log?.info(…)`, `ctx?.crypto.randomUUID()`, `ctx.activity?.append(…)`, `ctx.email?.send(…)`, `ctx . log . info(…)` and `ctx.title?.(field)` lowered without their token, and the rule read each as the gated call. Each step now takes `?.` and whitespace, `title` takes the optional call, and inference also reads a comment-blanked copy of the source (the rule's own walk, strings kept), so a comment between steps no longer hides a call. Every change widens: what inferred a token before still does. A hook handler that calls `ctx.email.send` in any of these spellings now lowers with the grant and is refused at build by the hook parse, as `ctx.email.send(…)` already was. - exports `SANDBOX_CAPABILITY_GATES` and `type SandboxCapabilityGate` from the lint barrel, and moves the step-1 CLI enumeration pin off its hand-kept mirror onto that table. - adds a PARITY pin in the CLI. Every gate, leaf, receiver shape and face, in each spelling the rule reads (plain, `?.` before the member, before the leaf and before the call, whitespace, a block or line comment between steps), is lowered through `extractLoweredBody` and judged by `runAuthoringRules('build', …)` twice: ungranted it must draw the gate's finding (so the rule reads that spelling and the pin is not vacuous), lowered it must draw none. A REBOUND block does the same through a hook handler's renamed and destructured context parameter. The one exclusion is a hook body's `email.send`, pinned instead as a build refusal in every spelling. - corrects the text that described the exemption: the two `os explain` entries, the docs rule table, the rule's docblock and the comment over the `lowerCallables` target-shape pin. - registers the narrowing as ADR-0087 semantic entry `lowered-hook-and-action-bodies-capabilities-judged`, with a BREAKING changeset carrying FROM → TO for both authors (a body lowered by the build or written by hand beside a string ref) and the remedy for each: rebuild, or declare the token. - corrects the pending objectstack-ai#37815 changeset and its semantic entry, whose sentences this PR makes false (see Deliberate correction). The limit, stated: the build's reading covers the rule's by the pin's enumeration (census × receivers × spellings × faces), not by proof. Where the two differ outside it, the build reads more (a renamed context root, a spelling inside a string), and the over-inferred grant is one the sandbox never checks, except `email.send` on a hook, which is refused at build as before. Measured cost before the change, on `origin/main` at `f782a12033` (scratch script, not committed): every first-party stack (`examples/app-crm`, `app-multi-package` with its two packages, `app-showcase`, `app-starter`, `app-todo`, `packages/apps/connector-docusign`, `connector-github`, `connector-stripe`) loaded, normalized, lowered and parsed as `judgeAuthorTimeRules` does, then judged by the shipped rule and by the rule with both skips emulated away. 70 hook and action bodies, 1 of them lowered (app-crm's opportunity hook): 0 findings shipped, 0 without the skips, **0 newly refused**. The population holds one lowered body, so it bounds authored bodies; the lowered side is bounded by the PARITY pin. ## Tests - New `packages/lint/src/validate-action-body-capabilities.lowered-38690.test.ts` (26 tests). Per removed skip, a lowered body calling each gate ungranted, spelled directly and through an alias: refused (hook: `os validate` / `build` / `lint` and the hook save door; action: top level, object-inline, `os validate` / `build` / `lint`, the action and object doors). Controls: the same lowered body granted is not refused. A lowered body's write keeps its own id beside the other tokens. - `packages/cli/test/extract-hook-body-local-alias-38690.test.ts` (284 tests): the mirror table is deleted; ENUMERATION reads `SANDBOX_CAPABILITY_GATES` and spells every leaf in every spelling through seven receivers; PARITY and REBOUND as above; a hook handler calling `ctx.email.send` in seven spellings plus a renamed context is refused by `HookSchema` after `lowerCallables`. Red first, each fix: - PARITY harness: the earlier PARITY judged the extracted record without `language: 'js'`, which the rule skips, so it could not go red. With the body record the build writes and the widened spellings, against the old extractor: 51 failed. - Extractor `?.` / whitespace / optional call / rebound: the pins against the extractor at `a68c0a41cc`: 76 failed of 247 (ENUMERATION 27, PARITY 24, REBOUND 25). Hook mail in the new spellings: 4 failed of 8 (they built clean before). - Comment between steps: against the extractor at `2aec12e986`: 210 failed of 284, every one a comment spelling. Ablations at the head (`scripts/ablation-replace.mjs`, restore proven blob == HEAD): `MEMBER_STEP` back to a plain `\.`: 84 failed (ENUMERATION 32, PARITY 28, REBOUND 20, mail 4). `title` without the optional call: 11 failed. Inference over the raw source only: 210 failed. The skips re-inserted in the rule, per removed skip: hook 14 failed / 12 passed, non-write action 12 failed / 14 passed of the lint file. Forced test edits, named: - `packages/lint/src/validate-action-body-capabilities.hook-and-tokens-37815.test.ts`: two describe blocks deleted, `authored hook bodies only: a body lowered from a handler is not judged (objectstack-ai#37815 route C)` and `authored action bodies only past the writes: a body lowered from a target is judged for api.write alone (objectstack-ai#37815 M1)`. They pinned the two skips this PR removes; the new file pins the opposite. Their authored-body halves stay covered by the same file's arm (a)/(b) cases. The two predicate imports go with them. - `packages/cli/test/lower-callables.test.ts`: comment only, over the `[objectstack-ai#38653]` target-shape pin, which named `isLoweredTargetBody`. The pin itself is unchanged. ## Acceptance notes - The lowered hook finding's path stays `hooks[N].body.capabilities` on the seat's answer (claim amendment 5). Its premise, that a fresh build never draws the finding, holds again at this head for every spelling the PARITY pin enumerates; for an artifact that lost a grant, or a hand-written body, that key is the right one. ## Deliberate correction `Check Changeset` (`check-empty-changeset`) is red on purpose: this PR edits a pending release note it did not add. DELIBERATE CORRECTION, not a collision; ⛔ do not restore the base text. Both files below are unreleased (merged after 19.0.0-next.2) and ship in the same release as this PR, and this PR makes their sentences about lowered bodies false. Text only: no code, no entry id, no level or disposition line changes. Scope per claim amendment 5 (7276409399); rewrites 2 and 4 of the changeset and 3 and 4 of the entry re-trued per L2 7278772654. **`.changeset/37815-body-capabilities-every-gate.md`** 1. BREAKING paragraph. Before: "whose authored L2 body calls a member". After: "whose L2 body calls a member". 2. `hook-body-capability-undeclared` bullet. Before: "an authored L2 hook body that calls any of those gates" … "Only a body the author wrote is judged: a hook body `os build` / `os verify` lowered from an inline `handler` is not, since its grant is the build's inference (the lowered reading is objectstack-ai#38653)." After: "an L2 hook body that calls any of those gates" … "A hook body `os build` / `os verify` lowered from an inline `handler` is judged the same way: its grant is the one the build inferred from its calls, and the build reads each gated call in each spelling the rule reads." 3. `action-body-capability-undeclared` bullet. Before: "an authored L2 action body that calls a gate other than the writes without its token. An action body `os build` / `os verify` lowered from an inline `target` function is not judged for these tokens, since its grant is the build's inference (the lowered reading is objectstack-ai#38653); its writes are still judged under `action-body-write-capability-undeclared`." After: "an L2 action body that calls a gate other than the writes without its token. An action body `os build` / `os verify` lowered from an inline `target` function is judged the same way, against the grant the build inferred from its calls." 4. Paragraph after FROM → TO. Before: "A hook whose body was lowered from an inline `handler` is unchanged: FROM and TO alike, it is not judged by this rule. So is an action whose body was lowered from an inline `target` function, for every token but `api.write`: … TO, it still builds clean, and its writes are judged as before." After: "A hook written as an inline `handler`, and an action written as an inline `target` function, need no change: the build infers the grant from each gated call in each spelling the rule reads (`?.`, whitespace or a comment between steps, the optional call), so the body it lowers carries the token. … TO, it still builds clean, its lowered body granted `api.transaction`." **`packages/spec/src/migrations/entries/semantic/19.hook-and-action-bodies-calling-an-ungranted-gate-refused.ts`** (entry `hook-and-action-bodies-calling-an-ungranted-gate-refused`, id unchanged) 1. Header comment. Before: "an authored L2 hook body that calls". After: "an L2 hook body that calls". 2. `surface`. Before: "only a body the author wrote (a hook body lowered from an inline handler is not judged, and an action body lowered from an inline target function is judged for its writes alone, as before)". After: "whether the author wrote the body or os build lowered it from an inline handler or target function". 3. `replacement`, last sentence. Before: "needs no change for the other tokens: its lowered body is not judged for them (a later change carries the lowered reading)." After: "needs no change: os build infers the grant from each gated call in each spelling the rule reads (?., whitespace or a comment between steps, the optional call), so the body it lowers carries the token, and that lowered body is judged like an authored one." 4. `reason`. Before: "A hook body os build lowered from an inline handler is not judged, and an action body it lowered from an inline target function is judged only for api.write, as before: such a grant is the build's inference, not the author's, and the inference does not yet read every gated shape, so a hook written as a handler and an action written as a target function are unchanged." After: "A hook body os build lowered from an inline handler, and an action body it lowered from an inline target function, are judged the same way: their grant is the build's inference, which reads each gated call in each spelling the rule reads, pinned spelling by spelling against the rule, so a hook written as a handler and an action written as a target function build clean." ## Verification Two-minute check: `pnpm --filter @objectstack/cli exec vitest run test/extract-hook-body-local-alias-38690.test.ts`. Expect 1 file, 284 tests passed. With `MEMBER_STEP` in `extract-hook-body.ts` set back to a plain `\.`, 84 of them fail. Read first: the `MEMBER_STEP` / `memberLeafRx` / `blankComments` block and the inference loop in `packages/cli/src/utils/extract-hook-body.ts`, then the PARITY block in the test above, then the two removed skips in `packages/lint/src/validate-action-body-capabilities.ts`. <details><summary>Local gates at 3ca3538 (head)</summary> - Derived round: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` listed 122 commands (the 119 of the last round plus `check:i18n`, `check:i18n-coverage`, `check:i18n-walk-parity`); each ran with stdin closed and its exit recorded before any pipe: 121 :: exit 0, and `node scripts/check-empty-changeset.mjs --base origin/main` :: exit 1, the DELIBERATE CORRECTION refusal above, by design. `dispatch-gates --ran`: 122 derived, 122 run, 0 NOT-MEASURED, 0 UNRUN. - Packages: `pnpm --filter @objectstack/lint test` 252 files / 10106 tests passed; cli `vitest run --project unit` 451 files / 6737 tests passed; `pnpm --filter @objectstack/lint typecheck` and `pnpm --filter @objectstack/cli typecheck` exit 0; spec rebuilt, `src/migrations` 5 files / 209 tests passed. - `node scripts/check-changeset-no-major.mjs --base origin/main --event` over this body: exit 0 (level axis: `@objectstack/lint` minor carries `Metadata-protocol: narrowed`; ADR-0087 `registered lowered-hook-and-action-bodies-capabilities-judged`). - `node scripts/pm/overlap-check.mjs` at this head: clean against origin/main (f576dee), objectstack-ai#38497 and objectstack-ai#38192. - Not run locally: the cli `integration` layer and `test:repo` (CI's Test Core); the dogfood battery is CI's on this head (`!` title, narrowing arm). </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmSa9QNE6qXdrFAvnUr)_ <!-- signed: repo:objectstack#3 · os-steve · session_01ADHkmSa9QNE6qXdrFAvnUr --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…jectstack-ai#38795) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi99QsuPTPkC1uKm2mViUT3Rf)_ Part of objectstack-ai#34770 Clause-②: no Metadata-protocol: none `Part of`, not the closing form: the catalog-size line of the card's Done-when is not met by this PR. This is PR 4 of the per-skill split, under claim 7280537583 and its amendment 7280758590. ## 维护者速读 - 用户能看到什么变化:用户无感。发给 AI 的「表达式与公式」技能说明,入口文件从约 24 KB 缩到 9 KB:入口只留开工前四项检查、一段可照抄的示例、一份可用函数名单、八个「写得通过却算错或被拒」的坑,以及其余内容去哪里查的指路表。 - 为什么做:这是「技能目录瘦身」的第七份(界面、数据、自动化、平台、跨大版本升级、多语言翻译六份已完成)。入口文件每次都整份装进 AI 的上下文,越长越贵,也越容易漏读。 - 出错会怎样:只动教 AI 的文字,没有产品行为变化;风险是 AI 少读一段后答错。改动前后都跑了评测:十四道题每题三遍共四十二次,最新一版通过三十九次,改动前是三十二次;没有哪一题是改动后才每遍都不过的。合约审查提的两处应改(示例里一条判断在新建记录时会报错;一句「算不出就中止写入」说得过宽)已在入口内改好。可整笔撤回。 - 要你做的:无。席位核对与合约审查通过后,会按治理规则请审批人批准。 ## Rulings this executes - **Card Scope** (decision record on the card, S3 = A): the entry file holds first checks, at most about 8 traps and a routing list; 6–9 KB, hard cap 500 lines; restated option lists and function tables go behind a pointer; no trap is removed until a publish-time check covers it or it stays inline. - **7128031203** fork 4 = A: ratchet rows are pinned at the measurement with zero headroom, and the sum of ceilings does not rise. Here no row rises and none is added. - **7168461386** = A: text an eval shows the entry lost goes back into the entry, paid inside the entry. Used three times in this PR (see Eval parity). - **Ruling record 7249189592**, the parity rule: a case whose result flips between runs on both trees is unstable on both and does not block; a case that fails on every run of the head while `main` passes is a regression. - **Seat order for this PR** (claim amendment 7280758590): same shape as PR 3 (objectstack-ai#38663); no new file under `skills/` (a new file needs a new ratchet row, which stays with a human); the cut, not a move, lowers the catalog total. ## What changes **The entry file becomes a router.** `skills/objectstack-formula/SKILL.md`: 24,377 → 8,999 bytes, 485 → 135 lines, 6,088 → 2,243 tokens. Frontmatter (description, tags) is byte-identical. It now holds: - `## First checks`, four: the installed contract wins over the `compatibility` line; read the object's declared fields and the contract of the key that takes the expression, and never recall a function; bare CEL under the `F`, `P` or `cel` tag, never braces round a field reference, with the Salesforce spellings it keeps; verify with `os validate`, `os build` or the `validate_expression` agent tool. - One type-checked block, eight lines: a text formula with every nullable operand coalesced, a guarded divisor, the two date wraps, a `label()` formula, a null-guarded predicate, the transition predicate behind its insert guard (`previous != null && …`), a seed value. - `## Scope and functions`: the roots an expression can read, and every advertised function name as a call form, in five lines. - `## Traps`, eight: `has()` is not a null check on a server-evaluated predicate; action `visible` / `disabled` are the exception; a transition compares `previous`; a list field is never compared with a scalar; a `date` / `datetime` field is its ISO text; `label()` and the working-day functions belong to a formula or a stored field's `expression`; a dynamic seed value is the `cel` tag; a `template` is not CEL. - `## Where to go`: six rows (the contract, the published formulas page, and the four sibling skills). Three run-time facts ride the rows that send them elsewhere: a `formula` field is virtual; a view filter is not CEL; a form-view `visibleWhen` faults open. **No text moved.** This skill has no hand-written reference file (`references/_index.md` is generated), and a new file needs a new ratchet row. So what left the entry was cut, each behind what now answers it: | Old entry section | Now | |:--|:--| | Opening callout (bare CEL, no braces) | First check 3, which describes the mistake and no longer spells it. | | Skill Boundaries | The frontmatter description and the routing table. | | Core contract | The opening paragraph (the envelope, the three dialects, no `js`) and first check 3 (structured output carries the envelope). Cut: the engine behind each dialect and the helper column; the block shows the three CEL tags, and the `cron` and `tmpl` tags are in the contract. | | CEL syntax cheat-sheet | The roots line of `## Scope and functions`, with `os.org` still limited to `id` and `tier`. Cut: the operator rows, which are plain CEL. The list-equality paragraph is trap 4, with the three positive membership forms; the three negated forms are cut (the same guard, negated). | | `has()` is NOT a null check | Traps 1 and 2. The publish-time refusal, the flow condition's bare name and the action guard all stay. | | ObjectStack CEL standard library | The function list keeps every name. Cut to the published page: what each function returns and the per-function notes. Kept as traps: the date text rule and the helpers that replace date arithmetic (5), the option label and the working-day placement (6). | | Mandatory patterns 1 to 5 | The type-checked block carries one line for each; trap 7 is the seed rule and trap 3 the `previous` rule. Cut: the wrong-on-purpose examples, and the table of where `previous` is bound with the per-row rewrite rule, both of which `skills/objectstack-data/references/data-hooks.md` carries. Kept in trap 3: a hook `condition` that cannot evaluate aborts the write, and the 10 000-row refusal. | | Mechanical translation table | First check 3 keeps nine rows (the five operators, `ISBLANK`, `OLD` / `NEW`, the bare field). The rest is on the published page; each legacy spelling fails the build. The flow exception is in trap 1. | | Surfaces that take an Expression | Cut to the contract. Kept: a bare-string `defaultValue` is a literal (first check 3); a `formula` field is virtual and a view filter is not CEL (routing row 3); a form-view `visibleWhen` faults open (routing row 6); a `SharingRule` condition must lower to a filter (trap 4). | | Cron and template surfaces | Trap 8 keeps the template grammar, the empty render of a missing path and the two currency forms. Cut: the cron grammar and both dialects' carriers (the contract). | | Verify your work, See also | First check 4 and routing row 1. | **Sizes** (bytes · lines · ratchet tokens): | | before (`main` at `6cc2024e`, merged in) | after (`50530b6b`) | |:--|--:|--:| | `SKILL.md` (entry) | 24,377 · 485 · 6,088 | 8,999 · 135 · 2,243 | | `skills/objectstack-formula/**` (4 files) | 37,883 · 701 | 22,505 · 351 | | all 14 `SKILL.md` together | 180,656 · 3,406 | 165,278 · 3,056 | | whole `skills/` tree (115 files) | 1,214,886 | 1,199,508 | | whole tree without `evals/` (73 files) | 855,732 | 840,354 | | ratchet: authored tokens = sum of all ceilings | 196,275 | 192,430 | | ratchet: bundle total, tokens | 300,926 | 297,081 | The `main` column moved since the first delivery (it was read on `f576dee5`): `main` lowered another skill's row by one token, so its sum of ceilings is 196,275. The bundle total on `main` is the head's reading plus this row's fall; the entry is the only file under `skills/` that differs. **Budget reading:** the entry is 8,999 B, inside the card's 6–9 KB line, and 135 lines against the 500-line cap. The whole catalog is 15,378 bytes smaller, all of it cut. **Ratchet row** (`scripts/check-skills-token-ratchet.mjs`), pinned AT its measurement, zero headroom: `skills/objectstack-formula/SKILL.md` 6088 → 2243 (−3,845): `ceil((8999 − 27) / 4) = ceil(8972 / 4) = 2243`. It is the skill's only row. The sum of all ceilings goes 196,275 → 192,430. The first delivery pinned the row at 2237 (8,974 bytes); the review round's two fixes cost 27 bytes, one blank line and one comma pay 2, and the row follows the measurement up by 6 tokens. Against `main` no row rises. ## Tests ### Eval parity Judged by ruling record 7249189592. **No case fails on every run of the head while `main` passes.** On the current head (`50530b6b`, the review round's text) the with-skill arm passes 39 of 42 turns against 32 of 42 on `main`'s text; on the first delivery's text (`327903f6`) it passed 41 of 42. The three misses on the current head are two runs of case 7, which flips on both trees, and one run of case 13, a correct condition written without the `P` tag; case 13 read 6 of 6 on a second reading. Skill evals, both arms, one command line for every full round: `pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-formula --repeats 3 --concurrency 4`, with the model and effort flags PR 3's rounds used (the extra readings add `--case` and `--repeats 6`); CLI 2.1.332, subscription login. 14 behaviour cases in `evals/cel-predicates-formulas.json` and 7 trigger cases in `evals/triggers.json`, both untouched. | reading | tree | with-skill | no-skill | with-skill cases below 3/3 | |:--|:--|--:|--:|:--| | before round | `f576dee5` | 32/42 | 0/42 | 4 (0/3) · 7 (2/3) · 8 (2/3) · 9 (2/3) · 12 (0/3) · 14 (2/3) | | first router head | `75b00bcc` | 37/42 | 0/42 | 10 (0/3) · 11 (2/3) · 12 (2/3) | | second head | `b93fb9bf` | 40/42 | 0/42 | 11 (1/3) | | third head | `9643441f` | 40/42 | 0/42 | 7 (1/3) | | third head, cases 7 and 11, six repeats | `9643441f` | 8/12 | 0/12 | 7 (3/6) · 11 (5/6) | | `main`'s text, cases 7 and 11, six repeats | `f576dee5` text | 7/12 | 0/12 | 7 (1/6) | | fourth head | `822cd547` | 40/42 | 0/42 | 4 (2/3) · 7 (2/3) | | first delivery's text, full round | `327903f6` | 41/42 | 0/42 | 11 (2/3) | | **review round's text, full round** | `50530b6b` | **39/42** | 0/42 | 7 (1/3) · 13 (2/3) | | review round's text, case 13, six repeats | `50530b6b` | 6/6 | 0/6 | none | Trigger cases, every full round on every tree: loaded when it should 15/15, left alone when it should not 6/6. - **Case 10** (a `datetime` field as `YYYY-MM-DD` text) was a real loss on the first head: 3/3 on `main`, 0/3 on `75b00bcc`. Every answer gave the right formula; each then quoted the refused form, which the case forbids, because the first head's sentence said "the build refuses the bare field there". The sentence reads as it did before the cut ("wrap it in `date()` first") and the two wraps are lines of the type-checked block: 3/3 on every later head. - **Cases 10 and 11, a missing `F` tag** on the first head (one run each wrote the formula bare or as an envelope): the first head named no tag in its first checks. First check 3 now says which tag a formula, a predicate and a seed value take. - **Case 3** (the transition predicate, the case the review round's two fixes bear on) is 3/3 on `50530b6b`, as on every earlier reading. All three answers write `previous != null && previous.status != 'escalated' && record.status == 'escalated'` and say why the guard is there. So did the three answers on each of `9643441f`, `822cd547` and `327903f6`, from trap 3's text; on `main`'s text all three wrote the unguarded line. The fix makes the block agree with what the answers already gave. - **Case 13** (a hook `condition` on a `tags` field) is 2/3 on `50530b6b` and was 3/3 on every earlier reading of both trees. The miss gives the right membership form, null-guarded and parenthesised, in a fenced block without the `P` tag, the literal the case requires. A second reading of the case alone, six repeats on the same head, is 6/6: 8 of 9 on this head. The round's edits do not touch the tag sentence or trap 4. - **Case 9** (a record-change flow's edge condition, the site S2 separates from a hook) is 3/3 on `50530b6b`. - **Case 7** (compare the stored value, never the option label) flips on both trees: 3 of 9 on `main`'s text, 15 of 21 across the first five heads and 1 of 3 on `50530b6b`. Every failing answer compares the stored value and then says a predicate cannot call `label()`, which is the literal the case forbids. One failing answer on `822cd547` did show a loss of precision: it carried the action guard over to a form-view `visibleWhen`, because one trap named both as client-side. Trap 2 is about action `visible` / `disabled` alone again, and the form-view fact moved to the routing row: 3/3 on `327903f6`. The two failing answers on `50530b6b` are of the first kind: each compares the stored value and names `label()` as the thing a predicate cannot call. - **Case 11** (a multi-select's labels as text) passes 9 of 9 on `main`'s text, 16 of 21 across the first five heads (by head: 2/3, 1/3, 8/9, 3/3, 2/3) and 3 of 3 on `50530b6b`. Four of the five failing answers give `label(record.no_margin_reasons)` under the `F` tag and add a sentence that names `joinNonEmpty` (as the thing not to use, or as an option for another separator), the literal the case forbids; the fifth is the first head's missing tag. It fails on every run of no head, so the parity rule does not block on it. It is the one case where `main` is steadier than the head, and it is reported as that: a likely cause is that the function list now sits one section above the trap, where `main` had it in a table further up a longer file. - **Cases 4, 9, 12 and 14** pass more often on the head. Case 4 (0/3 on `main`, 14 of 15 across the first five heads, 3/3 on `50530b6b`) and cases 9 and 14 failed on `main` when a correct answer quoted a wrong form the old entry spelled out (the JavaScript date constructor, the brace form); the router describes those mistakes in words and does not spell them. Case 12 (0/3 on `main`) failed there because every answer wrapped the field in `date()` inside `addDays`; the block now carries `isoDate(addDays(record.due_date, 7))` as a line. Three restorations under ruling 7168461386 came out of these rounds, each paid inside the entry: the date sentence (case 10), the tag sentence (cases 10 and 11), and the action-only guard (case 7). A fourth edit came from reading the contract text, not from an eval: a flow condition's bare name is the field only where no flow variable or node id holds it. <details><summary>Round records</summary> - Before round on `f576dee5`: 105 of 105 turns, 4.6 min. - Rounds on `75b00bcc`, `b93fb9bf`, `9643441f`, `822cd547` and `327903f6`: 105 of 105 turns each, 4.5 min each. - Extra reading on `9643441f`, cases 7 and 11, six repeats: 24 of 24 turns, 1.1 min. - Extra reading on `main`'s text, same cases and repeats: 24 of 24 turns, 1.1 min. The runner has no flag for a second tree, so `main`'s `SKILL.md` was restored into the working tree for this one reading and put back (`git hash-object` equal before and after); its round header names `9643441f` "with uncommitted changes under the runner or skills/". - No full round ran on `77804a7a`: it differs from `327903f6` by two sentences of the changeset, and the turn never reads a changeset. - Review round, full round on `50530b6b`: 105 of 105 turns, 4.3 min. Extra reading on `50530b6b`, case 13, six repeats: 12 of 12 turns. A full round was run and not only the cases the two sentences bear on (3, 9 and 13): the edited line sits in the block every answer copies from. - Every `must_contain` literal of the 14 cases that the entry carried before, it still carries (35 literals read; 28 carried before and after, 0 lost, 1 gained; 6 appear in neither tree and come from the prompts). </details> ### Other tests On `50530b6b`, under the verify lock (`VERDICT command-exit 0` each), and with the same counts on `9643441f`, `822cd547`, `327903f6` and `77804a7a`: - `pnpm --filter @objectstack/formula exec vitest run --maxWorkers=2 src/skill-catalog-sync.test.ts src/cel-stdlib-drift.test.ts` (the first reads this entry and requires every advertised function in it as a call form): `Test Files 2 passed (2)`, `Tests 5 passed (5)`. - `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/platform-catalog.test.ts scripts/skill-map-guards.test.ts` (the suite that names the ratchet script, and the one that names this skill): `Test Files 2 passed (2)`, `Tests 57 passed (57)`. - `pnpm --filter create-objectstack exec vitest run --maxWorkers=2 src/created-summary.test.ts` (it names the skill in its catalog list): `Test Files 1 passed (1)`, `Tests 12 passed (12)`. - `pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/hook-condition-previous-scope.test.ts` and `pnpm --filter @objectstack/trigger-record-change exec vitest run --maxWorkers=2 src/bulk-write-per-row-context.test.ts` (each names the skill in a comment; neither reads it): 25 and 4 tests passed. No ablation: the diff changes prose and one ledger, no tested behaviour. ## Acceptance notes Review round (contract review 7286361695 on `77804a7a`, VERDICT PASS, no must-fix; the L1 note 7286117663 raised S1 first): - **S1, fixed.** The checked block's transition line carries `previous != null && ` in front, the form trap 3 prescribes. Unguarded it faults on insert, where `previous` is `null`, and the build does not refuse it (the null-guard gate judges ordering and arithmetic operators, and the line uses `!=`). Eval case 3's required literals still match, 3/3. - **S2, fixed.** Trap 3's sentence reads "A hook `condition` that cannot evaluate (…) ABORTS the write with no `onError` escape". The cut had widened it to every site the trap lists; a record-change trigger's run fails while the write lands (`validate-null-guards.ts`, outcome `run-fails`; trap 1 says so for a flow), and an advisory validation rule is skipped, so the sentence names the hook alone, as `main`'s text did. - **Paid inside the entry**: +27 bytes for the two fixes, −1 for the doubled blank line after the frontmatter, −1 for a comma; 8,974 → 8,999 bytes. The ratchet row is re-pinned at the new measurement. The changeset's line count (135) and its sentence on the abort are corrected to match. - **N1, N2 and N3 are left**, as the review accepts them: no byte is free under the 9 KB line. - **`main` is merged in** (`6cc2024e`, a plain merge commit): it moved one other ratchet row, the textual merge was clean, and the workspace was rebuilt before any gate ran. Ruled by the contract review, recorded here as it stands in the entry: - **The function names stay inline (ruled A)** (about 0.9 KB of the entry's 9.0 KB) and are not cut to a pointer. The card's shape line sends function tables behind a pointer, and `packages/formula/src/skill-catalog-sync.test.ts` requires every name of `CEL_STDLIB_FUNCTIONS` in this file as a call form. That test is outside this claim's file surface, and `@objectstack/formula` ships `dist` only, so an installed project has no source to read the list from. So the tables became a list of call forms and what each function returns went to the published page. If the list should leave too, the test moves first, in its own change. Decided here (small, no shipped behaviour), each open to reversal in review: - **"No trap is removed unless a publish-time check covers it or it stays inline" was read as: an expression that parses and then fails or reads wrong at run time stays inline.** Inline: the eight traps and the three facts on the routing rows. Cut to a pointer, each loud at the build: an unknown function, a legacy spelling, a malformed envelope, the retired `titleFormat` key. - **Four traps stay inline although the build refuses them** (the nullable operand, the list compared with a scalar, the date text in a timestamp call, date arithmetic): the refusal says what is wrong, and the entry carries the form to write instead, which is what the eval cases about them ask for (2, 4, 5, 9, 10, 12, 13 and 14). - **The entry describes wrong forms and no longer spells them** (the brace form, the JavaScript date, a number added to `today()`, `CONCAT`). An answer that quotes a wrong form fails the cases that forbid it, on either tree. The contract review ruled the brace example stays in words (A). - **A version check opens the first checks**, as in the other router entries; the old entry had none. Paid by dropping the cron grammar sentence. - **Section anchors of the entry changed.** The changeset lists every anchor that left `SKILL.md`. No file in this repository links one of them. - **Four lines in the summary above, not six**: the standing order for this card thread asks for six, and the agent file that binds the dev fixes four named lines and wins on conflict. - **Footer form**: this body ends with the single block AGENTS.md prescribes for a PR body. Noted, not changed: - The literals of eval cases 4, 7 and 11 fail correct answers (above). The parity rule treats the cases as fixed, so this PR does not touch them. - The published formulas page lists the legacy rows the entry dropped, except four of the five functions the old table marked as having no CEL counterpart (`MID`, `LEFT`, `RIGHT`, `SUBSTITUTE`; it has `MONTH_DIFF`). Each fails the build as an unknown function, with or without a row. - The version PR objectstack-ai#38192 touches the entry's stamp line, and objectstack-ai#38787 and objectstack-ai#38790 touch other rows of the ratchet table; `overlap-check` reads each as merging cleanly. It reads objectstack-ai#38497 as a conflict in the ratchet script: that PR conflicts with `main` itself there, in one hunk on the `objectstack-ai` row, and the hunk is byte-identical with and without this branch; the formula row is outside it. ## Verification Read first, by risk: 1. `skills/objectstack-formula/SKILL.md`, the whole file: is anything a model needs before opening the contract missing? The risk hunks are `## Traps` (eight items replace most of the old file) and the function list. 2. `.changeset/34770-formula-skill-router.md`: the "what left, and what answers it now" list is the record of every cut. 3. `scripts/check-skills-token-ratchet.mjs`: the one `objectstack-formula` row. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints `ratcheted (authored) 192430 / 192430 (+0)` and `skills/objectstack-formula/SKILL.md 2243 / 2243 (+0)`; `wc -c skills/objectstack-formula/SKILL.md` prints 8999. Gates, local, each exit code captured before any pipe. The whole derived list ran on `50530b6b`, and before it on `9643441f`, `822cd547`, `327903f6` and `77804a7a`, 69 of 69 each time. <details><summary>Derived families on `50530b6b`: 69 derived, 69 run green, 0 NOT MEASURED</summary> - Reconciliation: `✓ dispatch-gates --ran: 69 derived famil(ies) accounted for — 69 run, 0 NOT-MEASURED (a DERIVED zero — all 69 recorded an exit code and none of them is 3).` - `node scripts/check-skills-token-ratchet.mjs`: `✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted.` (`ratcheted (authored) 192430 / 192430 (+0)`, `bundle total 297081`); its `--self-test`: `111 cases pass`. - `pnpm check:dual-build-cjs-loads`: `126 published require entry point(s) across 74 package(s) load; 2593 emitted CommonJS file(s) parse`. It reads every package's built `dist/`; a full `pnpm build --concurrency=2` ran first on the merged tree under the verify lock (`VERDICT command-exit 0`, 123 tasks). - `pnpm check:dts-closure`: `123 built package(s) swept - 324/324 declared declaration file(s) present`. - `pnpm check:skill-links`: `290 relative link(s) in 76 published skill file(s) resolve; 161 fragment(s) name a real heading under GitHub's slug rule.` - `pnpm check:skill-identifier-liveness`: `Leg 1: 527 citation(s) over 76 published file(s) ...; Leg 2: 11 registered exhaustive section(s), 0 ledgered gap(s).` - `pnpm --filter @objectstack/spec run check:skill-docs`, `pnpm --filter @objectstack/lint run check:doc-formula-expressions`, `pnpm check:skill-compatibility`, `check:skill-frame-sync`, `check:role-word`, `check:corpus-claim-drift`, `check:doc-authoring`, `check:published-files`, `check:nul-bytes`, `check:cross-package-test-inputs`: exit 0. - The changeset gates (`check-changeset-no-major`, `check-empty-changeset`, `check-adr-0087-registration`, `check:changeset-gate-self-tests`): exit 0. `pnpm check:pm-dispatch-gates`: exit 0. </details> <details><summary>Beside the derived list, on `50530b6b`, all exit 0 but the last</summary> - `pnpm --filter @objectstack/spec run check:skill-examples`: `347 prose examples type-check across 3 surface(s)`. The entry's one block is among them. - `pnpm --filter @objectstack/spec run check:skill-refs`: `10 generated files in sync with packages/spec`. - `pnpm --filter @objectstack/spec run check:skill-served-sections`: `24 served section(s), each heading exactly once in its file` (the hosted door serves no section of this skill). - `pnpm check:doc-anchors`: `1184 internal #fragment link(s) across 368 source file(s) all resolve to a real heading`. - `pnpm check:published-readme-links`: `566 outbound link(s) across 168 published markdown file(s)`, `99 docs-site page(s) resolved`; the formulas page the entry links is one of them. - `pnpm check:skill-top-level-keys`: exit 0. - `pnpm --filter @objectstack/spec check:generated` after the merge and the rebuild: exit 0. - `node scripts/check-platform-checklist.mjs --changed-from origin/main`: `0 anchored files in the change set — nothing judged.` - `node scripts/pm/overlap-check.mjs`: `VERDICT clean exit 0` at each push of the first delivery (on the second it ran right after). Before the review round's push: `VERDICT overlap exit 1`, for objectstack-ai#38497 alone, whose conflict in the ratchet script is its own against `main` (see Noted above); `main`, objectstack-ai#38787, objectstack-ai#38790 and objectstack-ai#38192 merge cleanly. </details> Base: the branch is cut from `f576dee5` and carries one merge of `main` at `6cc2024e` (merge commit `b9e30211`); `main` had not moved further at the review round's push. CI on the head is the seat's reading. --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS)_ <!-- signed: repo:objectstack@os-steve · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
… views: as lists only (objectstack-ai#38790) Fixes objectstack-ai#37105 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:让 AI 助手照着平台技能包搭应用的人,以后得到的表单只有一种写法(表单单独登记,公开表单或由按钮打开),不再被教把表单写进列表视图里;平台本身的行为没有变。 - 为什么做:属于「表单独立成一种元数据」专题的教学收口,让技能包教的写法和平台现在实际收的写法一致。 - 出错会怎样:最坏是技能包里的说明写错,AI 照着写出不对的表单定义;这次只改说明文字和评测题,可以直接撤回。 - 要你做什么:看一眼「旧写法」那一句。卡上允许写成「旧写法已被拒绝,用迁移命令搬走」,但主干上旧写法目前仍被接受、迁移也还没有,所以这一句只写了「不要这样写,见到就搬到表单登记处」。 ## What changes The published `objectstack-ui` skill now teaches one way to declare a form and no other (ADR-0159 D1 and D5, as shipped on `main`). - `skills/objectstack-ui/rules/list-views.md`: the section *Form Views* is now *Forms*. - A form is a `form` item in the stack's `forms:`, written with `defineForm` in a `*.form.ts`: `name` (`OBJECT.KEY`, the prefix equal to `object`), `object`, and the body at the top level. `views:` holds lists only. - What is `form` content: a public form (it declares `sharing.publicLink`) or one an action of `type: 'form'` opens by its `target`. With neither, `os validate` warns `form-consumer-less`. - What is not: the record's New and Edit forms. They are the object's `fieldGroups` and are never a `form` item. - The two refusals: `viewKind`, `config` and `data` are refused on a `form` item (a form is bound with `object`); a form left open on a public address another form holds is refused, naming both (`form-public-address-taken` from `os validate`, `409 FORM_ADDRESS_TAKEN` from a save), and a switched-off form that keeps its `publicLink` still holds the address. - Translations: under `forms.NAME` (`.label`, `.title`, `.description`, `.submitBehavior.*`, `.sections.SECTION.*`); a section with no key there reads `objects.OBJECT._sections.SECTION`. - One type-checked `defineForm` example. The `defineView` container example lists `list` and `listViews` only; no example authors a form inside a view. - `skills/objectstack-ui/SKILL.md`: Trap 1, the routing table's form row (`*.form.ts`) and the Action Types `form` row name the `form` item. - `skills/objectstack-ui/evals/views-apps-actions-pages.json`: case 25 now expects a `form` item an action opens (with its sections' `columns`); new case 28 expects a public `form` item on an address a switched-off form still holds. Cases 1, 6 and 19 keep their prompts and no longer name a form authored inside a view. - `scripts/check-skills-token-ratchet.mjs`: three `objectstack-ui` CEILINGS rows follow their files down to the measurement (numbers below). - `.changeset/37105-skills-teach-forms.md`: `@objectstack/skills` patch. The one migration sentence, the only thing the card's grep returns (`rules/list-views.md`, the last bullet of *Forms*): > ⛔ Never author a form inside a view (a container's `form:` or `formViews`, a `viewKind: 'form'` item). Move one an action opens, or with a `publicLink` or `overrides`, to `forms:`; delete only the rest: New and Edit never loaded it. Round 2 (head `5a3a19bd`, L2 S1 of 7285578664): the bullet now moves only a form an action opens or one with a `publicLink`, and deletes any other, as ADR-0159 ("Internal record forms are not moved", ruling item 3) rules. The clause is paid for by nine word trims inside the same *Forms* section; `rules/list-views.md` is 18035 bytes, 4509 tokens, so its CEILINGS row stays at 4509 (headroom 0). Cases 25 and 28 were rerun at `5a3a19bd`: with-skill 2/2, no-skill 0/2. The changeset's sentence about the bullet follows. Round 3 (head `8cd68a8e`, L2 delta M1 of 7287432289): a form whose item or container declares `overrides` moves too, whatever its body and slot (ADR-0159 D7-b: nothing prescribes deleting it, since an override with no link is what keeps a base form's public address closed); only the rest is deleted. N4 ("the object's fields"), N5 ("a rarely filled section") and N6 (the CEILINGS row comment's arithmetic, now `ceil(18035 / 4)`) are fixed in the same commit; `rules/list-views.md` stays 18035 bytes, 4509 tokens, row unmoved. Evals at `8cd68a8e`: cases 19 and 25 with-skill 1/1, no-skill 0/1; case 28 not measured (the runner's rate-limit guard stopped the round), its sentences byte-equal to `5a3a19bd`, where it passed. `overlap-check` exits 1 only against draft PR objectstack-ai#38497, on two files this branch does not change (the same at `5a3a19bd`); pushed on the zone's ruling. Dev reports 7288496594 and 7288555864. **Read first** 1. `skills/objectstack-ui/rules/list-views.md`, the hunk that replaces *Form Views* with *Forms*: every sentence there is a claim about what `main` does (the refusals, the lint rule names, the `409`, the translation keys). 2. `skills/objectstack-ui/evals/views-apps-actions-pages.json`, cases 25 and 28: the grader is literal, so a wrong `must_contain` token passes or fails for the wrong reason. 3. `scripts/check-skills-token-ratchet.mjs`, the three lowered rows: a row above or below its measurement is red. ## Tests All readings below are at head `b3d7dc22` unless a line says otherwise; rounds 2 (`5a3a19bd`) and 3 (`8cd68a8e`) changed only `rules/list-views.md`, the changeset and (round 3) one ratchet row comment; their readings are in the paragraphs above and in the grep and size rows, which show `8cd68a8e`. **Every `form` example parses with `FormSchema`** (built `packages/spec/dist` of this tree; the fenced block is run with `defineForm` swapped for a recorder, the two eval answers are parsed as written): ``` PARSES rules/list-views.md (fenced block) "crm_lead.web_to_lead" PARSES evals/views-apps-actions-pages.json case 25 (expected_output) "crm_account.intake" PARSES evals/views-apps-actions-pages.json case 28 (expected_output) "crm_lead.contact_us" 3 form example(s), 0 refused ``` Negative controls on the same schema: a `form` item carrying `data`, one carrying `viewKind` with `config`, one whose name prefix differs from `object`, and one carrying `isDefault` are each refused. **The card's grep** ``` $ git grep -nE "formViews|viewKind: 'form'" -- skills skills/objectstack-ui/rules/list-views.md:376:- ⛔ Never author a form inside a view (a container's `form:` or `formViews`, skills/objectstack-ui/rules/list-views.md:377: a `viewKind: 'form'` item). Move one an action opens, or with a `publicLink` ``` **The two size readings** (tokens are the ratchet's count, `ceil(utf8 bytes / 4)`; `SKILL.md` is priced without its stamp line) | file | lines before → after | bytes before → after | tokens before → after | |:--|--:|--:|--:| | `skills/objectstack-ui/SKILL.md` | 164 → 164 | 8937 → 8933 | 2228 → 2227 | | `skills/objectstack-ui/rules/list-views.md` | 414 → 407 | 18039 → 18035 | 4510 → 4509 | | `skills/objectstack-ui/rules/navigation.md` | 192 → 192 | 10235 → 10222 | 2559 → 2556 | | `skills/objectstack-ui/evals/views-apps-actions-pages.json` (measured, not ratcheted) | 275 → 287 | 29995 → 32080 | 7499 → 8020 | | `skills/objectstack-ui/evals/README.md` (measured, not ratcheted) | 56 → 57 | 2729 → 2809 | 683 → 703 | | whole pack | before → after | |:--|--:| | all 14 `SKILL.md`, lines | 3406 → 3406 | | all 14 `SKILL.md`, bytes | 180659 → 180655 | | ratcheted authored files, tokens | 196276 → 196271 (−5) | | eval fixtures, tokens (measured, not ratcheted) | 89819 → 90360 (+541) | | whole shipped tree, tokens | 300941 → 301477 (+536) | Growth is paid by deletion in the same file. Cut from `rules/list-views.md`: the *Field Conditional Rules in Forms* section (now one clause that points at objectstack-data's Conditional Field Rules), the third copy of the `defineView` scaffold (the `userActions: { search: false }` example, now its one key inline), and a sentence of Master-Detail item 1 that `SKILL.md` Trap 2 states word for word. No ceiling is raised; the three rows are lowered because a row above its measurement is red: `SKILL.md` 2228 → 2227, `rules/list-views.md` 4510 → 4509, `rules/navigation.md` 2559 → 2556. **Skill evals** (the runner, `pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-ui`, live, on the container's subscription login; no key was needed and none was written anywhere) - The two form cases: case 25 (a `form` item an action opens) and case 28 (a public `form` item) pass with the skill in two rounds each and fail without it in both. - The whole bundle, one sample per case: 37 of 44 behaviour cases pass with the skill (views 23 of 28, analytics 8 of 9, record-page 5 of 6, report-period-export 1 of 1); triggers 7 of 8. - The seven with-skill failures and the one trigger failure are not form cases. Six of the seven and the trigger failure fail the same way with the base tree's `skills/objectstack-ui` restored in place; the seventh (views case 7) passed 4 of 4 on a four-sample rerun at head. By the parity ruling (record 7249189592 on objectstack-ai#34770) a case flipping on both trees, or within one tree, does not block. <details> <summary>Per-case readings of the failing cases, head and base</summary> ``` case head (with-skill) base tree (with-skill) views case 6 fail: missing master_detail fail: missing master_detail views case 7 fail 1 of 1 (forbidden orderBy: 'stage'), then 4/4 pass 1 of 1 views case 8 fail: forbidden ${record.name} fail: forbidden ${record.name} views case 15 fail: forbidden type: 'grid' fail: forbidden type: 'grid' views case 23 fail: missing perRecord, bulkActions: [, ctx.record; forbidden { succeeded fail: forbidden { succeeded analytics-inline-vs-dataset 2 fail: forbidden dateGranularity fail: forbidden dateGranularity record-page 2 fail: forbidden mode: 'split' fail: forbidden mode: 'split' triggers 6 (should not load) loaded (read-only) loaded (read-only) ``` Driver line of every round: `claude-code-cli 2.1.332, login oauth_token, no API key`. The base-tree round restored only `skills/objectstack-ui` from the merge base `f576dee5` in the working tree and was reverted afterwards (`git status` clean); its runner line therefore still prints `b3d7dc22`. The first round of cases 25 and 28 ran at `b2fbb50b`, the second at `b3d7dc22`; the skill files are byte-identical between the two commits. </details> **Gates** `node scripts/pm/dispatch-gates.mjs --commands` derives 70 commands for this diff; all 70 were run at `b3d7dc22`, each exit code recorded before any pipe, and reconciled: ``` ✓ dispatch-gates --ran: 70 derived famil(ies) accounted for — 69 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3). ``` 69 exit 0. NOT MEASURED: `pnpm check:dual-build-cjs-loads` (exit 3, PREREQUISITE NOT MET: it needs a whole-repo build), left to CI. <details> <summary>The 70 commands and the verdict lines of the gates this diff is about</summary> ``` ✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted. ✓ check-skills-token-ratchet self-test: 111 cases pass. ✓ check-skill-links: 289 relative link(s) in 76 published skill file(s) resolve; 160 fragment(s) name a real heading under GitHub's slug rule. ✓ check-skill-served-sections: 24 served section(s), each heading exactly once in its file (6 json, 2 json+ts, 16 neutral); 10 JSON fence(s) parse and pass their spec validators. ✅ 351 prose examples type-check across 3 surface(s) (check:skill-examples, outside the derived list, run under the verify lock: VERDICT command-exit 0) ✅ check-scripts-symbol-anchors: 4719 anchors across 311 scripts check-nul-bytes: OK (scanned 29016 text file(s); no raw ASCII control bytes) ✓ dispatch-gates self-test (fast tier): 2904 cases pass; 9 slow section(s) deferred. ``` Exit 0 at `b3d7dc22`: `check-adr-0087-registration` (and self-test), `check-changeset-no-major`, `check-closing-keyword-parity` (and self-test), `check-comment-mask-corpus`, `check-declaration-mirrors` (and self-test), `check-doc-route-spelling` (advisory and self-test), `check-dts-emitted` self-test, `check-empty-changeset` (and self-test), `check-self-test-wired` (and self-test), `check-self-test-workflow-commands` (and self-test), `check-skills-token-ratchet` (and self-test), `check-temporal-live-filter` (and self-test), `check-whole-set-label-write` (and self-test), the self-tests of `ci/assert-turbo-remote-cache`, `ci/plan-test-core-shards`, `ci/prune-turbo-cache`, `ci/snapshot-next`, `pm/bare-root-worklist`, `pm/check-governed-queue-guard`, `pm/release-rehearsal-clone` and `release-pending-publish`, `@objectstack/lint check:doc-formula-expressions`, `@objectstack/spec check:skill-docs` and `check:skill-served-sections`, and `pnpm check:` `adr-anchors`, `agent-test-spelling`, `bash32-floor`, `changeset-gate-self-tests`, `ci-filter-parity`, `cli-command-ids`, `closed-ceremony-text`, `corpus-claim-drift`, `cross-package-test-inputs`, `doc-authoring`, `driver-memory-census`, `dts-closure`, `entry-guard`, `gitlink-declared`, `lean-entry-closure`, `merge-driver`, `nul-bytes`, `parse-guard`, `pm-dispatch-gates`, `pm-expected-skips`, `pm-governed-merges`, `pm-skill-id-lint`, `pnpm-filter-targets`, `pnpm-flag-spellings`, `published-files`, `ratchet-remedy-authority`, `refd-timer-probe`, `role-word`, `scripts-symbol-anchors`, `skill-compatibility`, `skill-frame-sync`, `skill-identifier-liveness`, `skill-links`, `sourcemap-no-sources-content`, `watch-hint-literal`. Exit 3 (NOT MEASURED): `pnpm check:dual-build-cjs-loads`. </details> The changeset gate went the publishing way: `skills/**` ships in `@objectstack/skills`, so the diff carries a patch changeset and no `skip-changeset` label (`check-empty-changeset` and `check-changeset-no-major` exit 0; `Metadata-protocol: none` reads as patch). The repo-wide `pnpm lint` and the package test suites are CI's runs; no package source is touched. `node scripts/pm/overlap-check.mjs` before each push and again at `b3d7dc22` against `origin/main` `c4472c86`: exit 0, merges cleanly with `main` and with the two open pulls that share a file (objectstack-ai#38732 shares the ratchet script, objectstack-ai#38192 shares `skills/objectstack-ui/SKILL.md`). ## Acceptance notes - **The migration sentence does not say "refused" and does not name `os migrate meta`.** The card allows one sentence that says so, and the dispatch says to teach only what the code does on `main`. Measured on `main`: a view container with `formViews` still parses and is still projected, and `packages/spec/src/conversions/entries/19` holds no forms conversion; the ADR's execution plan puts the tombstone and the conversion in a later card that waits on this one. The sentence is therefore an authoring prohibition that is true before and after that card. When the tombstone lands, the sentence wants its second half; that card's surface does not include `skills/**`, so this needs a carrier. - **Two files beyond the three the claim names**, both under `skills/objectstack-ui/**`: `rules/navigation.md` linked the heading this diff renames (`check:skill-links` is red without the edit) and said "form view" of the same thing; `evals/README.md` describes the eval file's cases. Three CEILINGS rows moved, not one: each of the three ratcheted files measured below its row. - **Renamed anchors**: `rules/list-views.md#form-views` is `#forms`; `#field-conditional-rules-in-forms` is gone. No file in the repo links either (the one hit is a past CHANGELOG entry). - **Not edited, by the card's fence**, and still using the old vocabulary: the `SKILL.md` frontmatter description ("list / form / kanban / calendar views"; changing it regenerates `skills/README.md` and `content/docs/ai/skills-reference.mdx`), `skills/README.md` ("named form view"), `skills/objectstack-automation/references/examples-flows.md`, `skills/objectstack-api/SKILL.md` (a `FormViewSchema` pointer), `skills/objectstack-i18n/SKILL.md` and its eval file (`_views` keys as a form's heading), `skills/objectstack-data/rules/validation.md` ("named and public forms"). `ui/skills/` does not exist in this checkout. - **Eval grader observations, not acted on**: views case 6 requires the token `master_detail`, which `skills/objectstack-ui` teaches nowhere on either tree; several `must_not_contain` tokens fire on a correct answer that quotes the token inside a prohibition (views cases 7, 8, 15, analytics case 2, record-page case 2). - **Stray file**: a mistyped shell line in this run wrote a 10-byte file `g16.exit` at the container's filesystem root (outside the repo and the worktree). Removing it was refused by the tool's safety check and was not retried another way. ## Verification Two-minute check: run `git grep -nE "formViews|viewKind: 'form'" -- skills` on this branch. Expected: exactly the two lines of `skills/objectstack-ui/rules/list-views.md` quoted above (376 and 377), the one sentence (it ends on 378). Second look, if wanted: `node scripts/check-skills-token-ratchet.mjs` prints `61 authored bundle file(s) within their ceilings`. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No spec file is touched.) - [x] 2. Every name I added uses the casing for its kind. - [ ] 3. No formatter ran; `pnpm lint` passes. (No formatter ran. The repo-wide lint is CI's run and was not run locally.) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. (Branched at `f576dee5`; `main` has moved 10 commits since, none touching these files.) - [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: its generated artifacts are regenerated and committed. (Not touched.) - [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. - [x] The *Before Submitting* list in CONTRIBUTING.md is done, with item 3's reading as above. --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmPDtfMCw4FJfyFfQ7v)_ <!-- signed: repo:objectstack#3 · os-steve · session_01ADHkmPDtfMCw4FJfyFfQ7v --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…stack-ai#38802) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi99QsuPTPkC1uKm2mViUT3Rf)_ Part of objectstack-ai#34770 Clause-②: no Metadata-protocol: none `Part of`, not the closing form: the catalog-size line of the card's Done-when is not met by this PR. This is PR 5 of the per-skill split, under claim 7280537583 and its amendments 7280758590 and 7288186602. ## 维护者速读 - 用户能看到什么变化:用户无感。发给 AI 的「接口设计」技能说明,入口文件从约 21 KB 缩到 9 KB:入口只留开工前四项检查、平台自动提供的接口清单、一个对象可以开放的六种操作、一段可照抄的自定义接口示例、六个「写得通过、上线后却答错或被拒」的坑,以及其余内容去哪里查的指路表。 - 为什么做:这是「技能目录瘦身」的第八份(界面、数据、自动化、平台、跨大版本升级、多语言翻译、表达式与公式七份已完成)。入口文件每次都整份装进 AI 的上下文,越长越贵,也越容易漏读。 - 出错会怎样:只动教 AI 的文字,没有产品行为变化;风险是 AI 少读一段后答错。改动前后各跑完一轮评测(八道题每题三遍,共二十四次):改动后通过十次,改动前九次;没有哪一道题是改动后才每遍都不过的。有四道题前后都是每遍不过,原因前后一样:三道是答案内容对、却没写出题目要求的某个词,一道是 AI 没有打开这份技能说明;这是题目和触发方式的问题,本次没有动。这两轮是经你同意、越过本周额度九成保护线跑的。可整笔撤回。 - 要你做什么:无。席位核对、合约审查与评测对比都已有结果,接下来由席位按治理规则请审批人批准。 ## Rulings this executes - **Card Scope** (decision record on the card, S3 = A): the entry file holds first checks, at most about 8 traps and a routing list; 6–9 KB, hard cap 500 lines; restated option lists and tables go behind a pointer; no trap is removed until a publish-time check covers it or it stays inline. - **7128031203** fork 4 = A: ratchet rows are pinned at the measurement with zero headroom, and the sum of ceilings does not rise. Here no row rises and none is added. - **7168461386** = A: text an eval shows the entry lost goes back into the entry, paid inside the entry. Not used: the two full rounds show no fact the entry lost (see Eval parity). - **Ruling record 7249189592**, the parity rule: a case whose result flips between runs on both trees is unstable on both and does not block; a case that fails on every run of the head while `main` passes is a regression. Read below: no case is one. - **Seat order for this PR** (claim amendment 7288186602, PR 5 = `objectstack-api`): same shape as PR 3 (objectstack-ai#38663) and PR 4 (objectstack-ai#38795); no new file under `skills/` (a new file needs a new ratchet row, which stays with a human); the cut, not a move, lowers the catalog total. ## What changes **The entry file becomes a router.** `skills/objectstack-api/SKILL.md`: 21,359 → 8,986 bytes, 438 → 151 lines, 5,333 → 2,240 tokens. Frontmatter (description, tags) is byte-identical. It now holds: - `## First checks`, four: the installed contract wins over the `compatibility` line, and an `apis:` block written before protocol 17 turns live; read the stack's `apis`, its `manifest.namespace` and the object's `apiMethods`, and prefer a generated route; read the contract and never recall a key or a code; verify with `os validate` or `os build` and read the publish rejection, which carries the fix. - `## Generated routes`: one listing (the `data` routes, the two `batch` routes, import and export, the metadata read), the two routes that do not exist (`/bulk`, a `GET` aggregate), and the two request contracts a client gets wrong: the metadata list's closed query set with `?names=`, and an import mapping's entry form, the only one that carries `applyOn`. - `## API Methods (Operations)`: the six authorable primitives and what each of the eight derived operations derives from. The heading and the six names are held by a gate (see Acceptance notes). - `## A declared endpoint`: the two servable `type` values, one type-checked example (the path carve-out, `object_operation` with `objectParams`, `cacheTtlSeconds`), and the mapping rule (move and rename only; `transform` is rejected). - `## Traps`, six: an anonymous endpoint needs an armed budget (`rateLimit.enabled: true`); an app never mounts on `http.server`, handler code runs in a flow, an inbound webhook is a `type: 'api'` flow, and three cases have no app surface; `DELETE` is not final (the recycle bin, the restore door, the two grants); a `PATCH` with no version token skips the concurrency check; a public form answers `404 FORM_NOT_FOUND` unless its `sharing` declares all three keys, strips fields outside its sections, and is withheld on a walled posture with only a warning; `userMessage` is the sentence for a person. - `## Where to go`: six rows (the endpoint contract and its page, the HTTP protocol page, the error contracts and catalog, the auth contract, the forms page, the three sibling skills). **No text moved.** This skill has no hand-written reference file (`references/_index.md` is generated), and a new file needs a new ratchet row. So what left the entry was cut, each behind what now answers it: | Old entry section | Now | |:--|:--| | Skill Boundaries | The frontmatter description and the last routing row. | | Auto-Generated APIs | The routes listing, with the two absent routes. | | Metadata API (`/meta`) | The first note under the listing: the closed query set, `?names=`, the two refusals. Cut to the HTTP protocol page: the one metadata type whose list refuses `names`. | | Public (anonymous) Form Endpoints | Trap 5: the three `sharing` keys, the two doors, what the declaration grants, the stripped fields and the hook to write, the walled-posture withholding. Cut to the forms page: the file-field rule (an error at `os validate` and at publish), the `guest_portal` name, the two form contracts. | | Declarative Endpoints; Choosing between `apis:` and a code handler | `## A declared endpoint` and trap 2. | | The path carve-out | The example's two comments (`manifest.namespace` is required and never derived; the path shape). | | Five publish gates, each with a prescription | First check 4 (read the rejection, it carries the fix) and routing row 1. The entry no longer counts the gates. | | `authRequired` and the D6 pairing | Trap 1, whole: the default, the armed budget, why `windowMs` / `maxRequests` alone meter nothing, the separate metering. | | Mapping keys: projection only | One sentence under the example. Cut, each a publish refusal that names the key: `inputMapping` on a `find` / `get` / `delete` operation, two entries writing one target path. | | Upgrading a pre-17 stack | First check 1 names the upgrade guide's entry; the steps are there. | | Endpoint Naming Conventions | Cut. Its two patterns are not paths an app can declare (see Acceptance notes). | | API Methods (Operations) | Kept under the same heading, as prose: the six primitives, the eight derived operations and their sources, `upsert` having no route. Cut: the per-primitive route table (the routes listing carries the routes) and the size of the `ApiOperation` vocabulary. | | Discovery & Health | Cut: discovery to the HTTP protocol page; the health routes are not a thing a stack declares. | | Dispatcher Error Codes | Routing row 3 (`api/dispatcher.zod.ts`). | | Realtime Subscriptions | Cut: `references/_index.md` lists both contract files, and first check 3 sends there. | | Authentication & Authorization | Routing row 4: `AuthProvider` with its six members, `LoginRequestSchema`, and that an endpoint has `authRequired` and no nested `auth` block. Cut to the contract: the login request's field list, and the flat `public` + `permissions` pair of the plugin route registry. | | Error Envelopes & the Code Ledger | Routing row 3 (a code in no ledger fails CI) and trap 6. Cut to the contract and the error catalog: the two envelope shapes, the two-tier vocabulary, the downstream-ledger recipe, the locale ladder's subtag steps, the `advisories[]` element. | | Best Practices | First check 2 (prefer a generated route), the `upsert` clause, and the routes listing. Cut: the envelope shapes (the contract). | | Common Pitfalls | Traps 4 and 3. Cut to the two protocol pages, each loud when hit: the quoted-empty entity tag, the four restore refusals, the list / purge / empty doors. | | Verify your work; References | First checks 4 and 3. | **Sizes** (bytes · lines · ratchet tokens): | | before (`main` at `2fba8349`, merged in) | after (head `2b912f16`) | |:--|--:|--:| | `SKILL.md` (entry) | 21,359 · 438 · 5,333 | 8,986 · 151 · 2,240 | | `skills/objectstack-api/**` (3 files) | 33,220 · 569 | 20,847 · 282 | | all 14 `SKILL.md` together | 165,278 · 3,056 | 152,905 · 2,769 | | whole `skills/` tree (115 files) | 1,200,447 | 1,188,074 | | whole tree without `evals/` (73 files) | 841,293 | 828,920 | | ratchet: authored tokens = sum of all ceilings | 192,665 | 189,572 | | ratchet: bundle total, tokens | 297,316 | 294,223 | The head column is measured. The tree and bundle figures of the `main` column are the head's reading plus this entry's fall: the entry is the only file under `skills/` that differs (`git diff --stat origin/main HEAD -- skills`: 1 file). The sum of ceilings on `main` is read from `main`'s own table (61 rows). **Budget reading:** the entry is 8,986 B, inside the card's 6–9 KB line, and 151 lines against the 500-line cap. The whole catalog is 12,373 bytes smaller, all of it cut. **Ratchet row** (`scripts/check-skills-token-ratchet.mjs`), pinned AT its measurement, zero headroom: `skills/objectstack-api/SKILL.md` 5333 → 2240 (−3,093): `ceil((8986 − 27) / 4) = ceil(8959 / 4) = 2240`. It is the skill's only row. The sum of all ceilings goes 192,665 → 189,572. No row rises and none is added. ## Tests ### Eval parity Judged by ruling record 7249189592. **No case fails on every run of the head while `main` passes.** The with-skill arm passes 10 of 24 turns on the head against 9 of 24 on `main`'s text. Three cases pass 3/3 on both trees, four fail 3/3 on both trees for the same reason on each, and one (case 6) goes 0/3 → 1/3. Both arms, one command line for both rounds: `pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-api --repeats 3 --concurrency 4 --max-utilization 0.99`, with the model and effort flags PR 3's rounds used; CLI 2.1.333, subscription login. The two rounds ran back to back in one window (2026-12-01 00:32Z to 00:38Z), each from a clean checkout of its commit. 8 behaviour cases in `evals/endpoints-auth-routes.json`, untouched; this skill has no trigger file, so there is no trigger reading to give. | reading | tree | with-skill | no-skill | with-skill cases below 3/3 | |:--|:--|--:|--:|:--| | before round | `2fba8349` (`main`'s text; the entry is unchanged on `main` since) | 9/24 | 0/24 | 3 (0/3) · 4 (0/3) · 5 (0/3) · 6 (0/3) · 8 (0/3) | | **after round** | `2b912f16` (this head) | **10/24** | 0/24 | 3 (0/3) · 4 (0/3) · 5 (0/3) · 6 (1/3) · 8 (0/3) | | case | subject | `main` | head | what the failing answers have in common, on both trees | |:--|:--|--:|--:|:--| | 1 | a declared `GET` feed | 3/3 | 3/3 | | | 2 | an anonymous endpoint's budget | 3/3 | 3/3 | | | 3 | a signed inbound webhook | 0/3 | 0/3 | Every answer refuses to mount on `http.server` and sends the Stripe callback to a `type: 'api'` flow whose start node declares the vendor header as `config.signature`. That is what both entries and the contract say; the case requires the literal `x-objectstack-signature`, the platform's own header, which a Stripe answer has no reason to name. Two of three answers on `main` and one of three on the head also leave out `functions`. | | 4 | sign-in providers | 0/3 | 0/3 | Every answer names `AuthProvider`, `auth.zod.ts`, `google` and `github` and stops because the project has no files; none names `LoginRequestSchema`, the fifth required literal. Both entries carry it. | | 5 | `apiMethods`, `/batch`, the recycle bin | 0/3 | 0/3 | Every answer gives the primitives, the absent `/bulk` route, the derived `restore` and the recycle-bin restore route; none writes the table name `sys_recycle_bin`. Both entries carry it. One head answer also names the import route and not `/batch` (all three `main` answers name `/batch`). | | 6 | an import mapping's `applyOn` | 0/3 | 1/3 | Two of three turns on each tree answer without opening the skill, and fail. The one turn that opens it passes on the head and fails on `main`, where the entry form (`sourceField`, `targetField`) was not in the entry. | | 7 | the metadata list's `?names=` | 3/3 | 3/3 | | | 8 | `userMessage` on a batch publish | 0/3 | 0/3 | No turn on either tree opens the skill; every answer builds the per-code translation table the case forbids. The description that decides whether the skill is opened is the frontmatter, byte-identical in this PR. | - **No restoration under ruling 7168461386**: no failing answer on the head traces to a sentence the cut removed. The literals the failing answers miss (`x-objectstack-signature`, `LoginRequestSchema`, `sys_recycle_bin`, `userMessage`) are all carried by the head's entry, and by `main`'s. - **Case 5, one observation that is not a regression under the rule**: one of the three head answers does not name `/batch`. The case fails on every run of both trees on another literal, so the rule does not read it; the head's entry names `/batch` in the routes listing and in the `apiMethods` paragraph. It is reported as seen, one run. - **Cases 3, 4, 5 and 8 cannot show a regression as they stand**: they fail on every run of `main`. Cases 3 to 5 fail on a literal a correct answer need not write, and cases 6 and 8 mostly on the skill not being opened. The parity rule treats the cases as fixed, so this PR does not touch them (see Acceptance notes). - **No extra repeats were run**: no case flips in the direction the rule reads, and the window is short. Before the full rounds, the same check that calls no model: of the 27 `must_contain` literals of the 8 cases, the entry carried 24 before and after, lost 0 and gained 2 (`sourceField`, `targetField`, case 6); 1 is in neither tree (`/api/v1/meta/object`, which an answer composes from the route). No `must_not_contain` literal appears in either tree's entry. <details><summary>Round records</summary> - Before round on `2fba8349`: 48 of 48 turns, 2.4 min, exit 0. After round on `2b912f16`: 48 of 48 turns, 2.6 min, exit 0. No turn timed out. - Quota: the runner's guard was raised from its default 0.9 to 0.99 for these two rounds, on the maintainer's answer in the project chat (2026-12-01 00:30Z, option B of the three put to him: run now past the 0.9 line). Seven-day window as each turn reported it: 0.95 on every turn of the before round; 0.95 rising to 0.96 during the after round; status `allowed_warning` throughout, no turn rejected. - The first attempt, on 2026-11-30, was stopped by the guard at its default after 4 of 48 turns on each tree (utilization 0.90 and 0.91; cases 1 and 2 passed once each on both trees). Those stopped rounds ran on CLI 2.1.332 and are not counted in the table above. </details> ### Other tests On tree `d53fb207` (local head `57c7738b`, the same tree as the pushed head `2b912f16`), under the verify lock (`VERDICT command-exit 0` each): - `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/platform-catalog.test.ts scripts/skill-map-guards.test.ts` (the suite that names the ratchet script, and the skill-map guards): `Test Files 2 passed (2)`, `Tests 57 passed (57)`. - `pnpm --filter create-objectstack exec vitest run --maxWorkers=2 src/created-summary.test.ts` (the one test file in the tree that names this skill): `Test Files 1 passed (1)`, `Tests 12 passed (12)`. No ablation: the diff changes prose and one ledger, no tested behaviour. ## Acceptance notes Held by a gate, recorded here as it stands in the entry: - **The heading `## API Methods (Operations)` and the six primitive names stay inline.** `scripts/check-skill-identifier-liveness.mjs` registers that section of this file as exhaustive for `ApiMethod` and requires every member in it. That script is outside this claim's file surface. So the section became four lines of prose under its old heading, and the route table went to the routes listing. If the section should leave too, the registration moves first, in its own change. Decided here (small, no shipped behaviour), each open to reversal in review: - **"No trap is removed unless a publish-time check covers it or it stays inline" was read as: a declaration or a call that passes and then answers wrong at run time stays inline.** Inline: the six traps and the two request contracts under the routes listing. Cut to a pointer, each loud when hit: a wrong endpoint key (the strict shape refuses it and names the key to write), the publish gates one by one, the two further mapping refusals, the restore refusals, the quoted-empty entity tag. - **Two traps stay inline although a check exists.** Trap 1: the gate refuses `authRequired: false` without an armed budget, and the entry carries the form to write, which is what eval case 2 asks for. Trap 5's walled-posture sentence: its check only warns at save and publish, and a warning is not a refusal, so the consequence (the form is withheld) and the declaration that resolves it stay, the standard PR 3 applied to its own warning-only rules. - **The endpoint naming table is cut, not moved.** Its two patterns (an object-scoped action path and a domain action path) are not paths an app can declare: a declared path lives under the app's own carve-out, and the endpoint matcher has no path-template syntax. The table taught a form the publish gate rejects. - **`AuthProvider` keeps its six members inline** (0.1 KB): a provider name that is not a member is an authoring mistake the entry can stop before the contract is opened, and eval case 4 asks for the names. - **The health routes are cut with no pointer.** Nothing in a stack declares them, and the HTTP protocol page has no health section, so a pointer there would be untrue. - **The entry no longer counts the publish gates.** The published pages count them differently (four on one, five on another, for the same checks); the entry says the rejection arrives one gate at a time and carries its fix. - **Trap 6 is scoped to the sites where it is true**: "show `userMessage`, never `message`" is said of a batch publish's `probes.issues[]` alone, and the flow door's order (`userMessage`, then `details.innerRefusal`, then `message`) is given beside it. The locale sentence is said of platform text. - **A version check opens the first checks**, as in the other router entries; here it also carries the one upgrade fact that changes what an old `apis:` block does. - **Section anchors of the entry changed.** The changeset lists every anchor that left `SKILL.md` (24) and the five new ones; `#api-methods-operations` stays. No file in this repository links one of the old ones. - **Four lines in the summary above, not six**: the standing order for this card thread asks for six, and the agent file that binds the dev fixes four named lines and wins on conflict. - **Footer form**: this body ends with the single block AGENTS.md prescribes for a PR body. Noted, not changed: - Four eval cases fail on every run of both trees (Eval parity). Case 3's expected answer says an inbound `type: 'api'` flow verifies only the platform's own signature header, while `main`'s entry and the contract (`automation/api-trigger-signature.zod.ts`) also give a vendor's HMAC header declared as `config.signature`, and every answer on both trees follows the contract. Cases 4 and 5 each require one name (`LoginRequestSchema`, `sys_recycle_bin`) that a correct answer leaves out. Case 8 never opens the skill, and case 6 does in one turn of three. The parity rule treats the cases as fixed and the frontmatter is byte-identical by order, so this PR touches neither. Carrier: none; noted for whoever owns the case file and the description. - `main` moved during the work: PR 4 of this split (objectstack-ai#38795) and a rise of one `objectstack-data` row merged. `main` is merged in (`2fba8349`, a plain merge commit); the textual merge was clean and the workspace was rebuilt before any gate ran. ## Verification Read first, by risk: 1. `skills/objectstack-api/SKILL.md`, the whole file: is anything a model needs before opening the contract missing? The risk hunks are `## Traps` (six items replace most of the old file) and trap 2, which carries the whole "no handler code" teaching. 2. `.changeset/34770-api-skill-router.md`: the "what left, and what answers it now" list is the record of every cut. 3. `scripts/check-skills-token-ratchet.mjs`: the one `objectstack-api` row. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints `ratcheted (authored) 189572 / 189572 (+0)` and `skills/objectstack-api/SKILL.md 2240 / 2240 (+0)`; `wc -c skills/objectstack-api/SKILL.md` prints 8986. Gates, local, each exit code captured before any pipe. The whole derived list ran on tree `d53fb207` (local head `57c7738b`; the pushed head `2b912f16` carries the same tree, `main` unmoved at `2fba8349`), after the merge of `main` and a full rebuild. <details><summary>Derived families on tree `d53fb207`: 69 derived, 69 run green, 0 NOT MEASURED</summary> - Reconciliation: `✓ dispatch-gates --ran: 69 derived famil(ies) accounted for — 69 run, 0 NOT-MEASURED (a DERIVED zero — all 69 recorded an exit code and none of them is 3).` No STALE TREE warning. - `node scripts/check-skills-token-ratchet.mjs`: `✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted.` (`ratcheted (authored) 189572 / 189572 (+0)`, `bundle total 294223`); its `--self-test`: `111 cases pass`. - `pnpm check:dual-build-cjs-loads`: `126 published require entry point(s) across 74 package(s) load; 2593 emitted CommonJS file(s) parse`. It reads every package's built `dist/`; a full `pnpm build --concurrency=2` ran first on the merged tree under the verify lock (`VERDICT command-exit 0`, 123 tasks). - `pnpm check:dts-closure`: `123 built package(s) swept - 324/324 declared declaration file(s) present`. - `pnpm check:skill-links`: `290 relative link(s) in 76 published skill file(s) resolve; 160 fragment(s) name a real heading under GitHub's slug rule.` - `pnpm check:skill-identifier-liveness`: `Leg 1: 517 citation(s) over 76 published file(s) ...; Leg 2: 11 registered exhaustive section(s), 0 ledgered gap(s).` - `pnpm --filter @objectstack/spec run check:skill-docs`, `pnpm --filter @objectstack/lint run check:doc-formula-expressions`, `pnpm check:skill-compatibility`, `check:skill-frame-sync`, `check:role-word`, `check:corpus-claim-drift`, `check:doc-authoring`, `check:published-files`, `check:nul-bytes`, `check:cross-package-test-inputs`, `check:ratchet-remedy-authority`: exit 0. - The changeset gates (`check-changeset-no-major`, `check-empty-changeset`, `check-adr-0087-registration`, `check:changeset-gate-self-tests`): exit 0. `pnpm check:pm-dispatch-gates`: exit 0. </details> <details><summary>Beside the derived list, on tree `d53fb207`, all exit 0</summary> - `pnpm --filter @objectstack/spec run check:skill-examples`: `347 prose examples type-check across 3 surface(s)`. The entry's one block is among them. - `pnpm --filter @objectstack/spec run check:skill-refs`: `10 generated files in sync with packages/spec`. - `pnpm --filter @objectstack/spec run check:skill-served-sections`: `24 served section(s), each heading exactly once in its file`. - `pnpm check:doc-anchors`: `1186 internal #fragment link(s) across 368 source file(s) all resolve to a real heading`. - `pnpm check:published-readme-links`: `566 outbound link(s) across 168 published markdown file(s)`, `99 docs-site page(s) resolved`; the four pages the entry links are among them. - `pnpm check:skill-top-level-keys`: exit 0. - `pnpm --filter @objectstack/spec check:generated` after the merge and the rebuild: `All 14 generated artifacts are up to date`. - `node scripts/check-platform-checklist.mjs --changed-from origin/main`: `0 anchored files in the change set — nothing judged.` - `node scripts/check-nul-bytes.mjs`: exit 0; a control-byte scan of the three changed files finds none. </details> Not run locally: `test:repo` (CI's). Base: the router commit was written on a local branch cut from `f7252bc3` while PR objectstack-ai#38795 held this branch; after objectstack-ai#38795 landed, the thread branch took `main` at `2fba8349` (merge `840c3aa8`) and the router commit was cherry-picked onto it as `2b912f16`, whose tree is the gated tree `d53fb207`. `overlap-check` before the push: origin/main, objectstack-ai#38797, objectstack-ai#38790 and objectstack-ai#38192 merge cleanly; objectstack-ai#38497 conflicts in the ratchet file against `main` itself (another skill's row), not this branch's. CI on the head is the seat's reading. --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS)_ <!-- signed: repo:objectstack@os-steve · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z --> --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
mainis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonmain.Releases
@objectstack/spec@19.0.0-next.3
@object-ui/types@19.0.0-next.3
@objectstack/cloud-connection@19.0.0-next.3
@objectstack/core@19.0.0-next.3
@objectstack/formula@19.0.0-next.3
@objectstack/lint@19.0.0-next.3
@objectstack/metadata-core@19.0.0-next.3
@objectstack/metadata-protocol@19.0.0-next.3
@objectstack/objectql@19.0.0-next.3
@objectstack/platform-objects@19.0.0-next.3
@objectstack/plugin-sharing@19.0.0-next.3
@objectstack/runtime@19.0.0-next.3
@objectstack/service-automation@19.0.0-next.3
@objectstack/service-i18n@19.0.0-next.3
@objectstack/service-knowledge@19.0.0-next.3
@object-ui/components@19.0.0-next.3
@object-ui/core@19.0.0-next.3
@object-ui/i18n@19.0.0-next.3
@object-ui/plugin-detail@19.0.0-next.3
@object-ui/plugin-grid@19.0.0-next.3
@object-ui/plugin-list@19.0.0-next.3
@object-ui/react@19.0.0-next.3
@objectstack/hono@19.0.0-next.3
@objectstack/account@19.0.0-next.3
@objectstack/setup@19.0.0-next.3
@objectstack/studio@19.0.0-next.3
@objectstack/cli@19.0.0-next.3
@objectstack/client@19.0.0-next.3
@objectstack/client-react@19.0.0-next.3
@objectstack/connector-mcp@19.0.0-next.3
@objectstack/connector-openapi@19.0.0-next.3
@objectstack/connector-rest@19.0.0-next.3
@objectstack/connector-slack@19.0.0-next.3
@objectstack/console@19.0.0-next.3
create-objectstack@19.0.0-next.3
@objectstack/driver-memory@19.0.0-next.3
@objectstack/driver-mongodb@19.0.0-next.3
@objectstack/driver-odata@19.0.0-next.3
@objectstack/driver-sql@19.0.0-next.3
@objectstack/driver-sqlite-wasm@19.0.0-next.3
@objectstack/driver-turso@19.0.0-next.3
@objectstack/mcp@19.0.0-next.3
@objectstack/metadata@19.0.0-next.3
@objectstack/metadata-fs@19.0.0-next.3
@objectstack/observability@19.0.0-next.3
@objectstack/embedder-openai@19.0.0-next.3
@objectstack/knowledge-memory@19.0.0-next.3
@objectstack/knowledge-pgvector@19.0.0-next.3
@objectstack/knowledge-turso@19.0.0-next.3
@objectstack/organizations@19.0.0-next.3
@objectstack/plugin-approvals@19.0.0-next.3
@objectstack/plugin-audit@19.0.0-next.3
@objectstack/plugin-auth@19.0.0-next.3
@objectstack/plugin-dev@19.0.0-next.3
@objectstack/plugin-email@19.0.0-next.3
@objectstack/plugin-hono-server@19.0.0-next.3
@objectstack/plugin-pinyin-search@19.0.0-next.3
@objectstack/plugin-security@19.0.0-next.3
@objectstack/plugin-webhooks@19.0.0-next.3
@objectstack/scenarios@19.0.0-next.3
@objectstack/rest@19.0.0-next.3
@objectstack/service-analytics@19.0.0-next.3
@objectstack/service-cache@19.0.0-next.3
@objectstack/service-cluster@19.0.0-next.3
@objectstack/service-cluster-redis@19.0.0-next.3
@objectstack/service-datasource@19.0.0-next.3
@objectstack/service-job@19.0.0-next.3
@objectstack/service-mailbox@19.0.0-next.3
@objectstack/service-messaging@19.0.0-next.3
@objectstack/service-package@19.0.0-next.3
@objectstack/service-print@19.0.0-next.3
@objectstack/service-push@19.0.0-next.3
@objectstack/service-queue@19.0.0-next.3
@objectstack/service-realtime@19.0.0-next.3
@objectstack/service-record-context@19.0.0-next.3
@objectstack/service-settings@19.0.0-next.3
@objectstack/service-sms@19.0.0-next.3
@objectstack/service-storage@19.0.0-next.3
@objectstack/skills@19.0.0-next.3
@objectstack/trigger-api@19.0.0-next.3
@objectstack/trigger-record-change@19.0.0-next.3
@objectstack/trigger-schedule@19.0.0-next.3
@objectstack/types@19.0.0-next.3
@objectstack/verify@19.0.0-next.3
@object-ui/console@19.0.0-next.3
@object-ui/auth@19.0.0-next.3
@object-ui/cli@19.0.0-next.3
@object-ui/collaboration@19.0.0-next.3
@object-ui/data-objectstack@19.0.0-next.3
@object-ui/fields@19.0.0-next.3
@object-ui/layout@19.0.0-next.3
@object-ui/mobile@19.0.0-next.3
@object-ui/permissions@19.0.0-next.3
@object-ui/plugin-calendar@19.0.0-next.3
@object-ui/plugin-charts@19.0.0-next.3
@object-ui/plugin-chatbot@19.0.0-next.3
@object-ui/plugin-dashboard@19.0.0-next.3
@object-ui/plugin-designer@19.0.0-next.3
@object-ui/plugin-editor@19.0.0-next.3
@object-ui/plugin-form@19.0.0-next.3
@object-ui/plugin-gantt@19.0.0-next.3
@object-ui/plugin-kanban@19.0.0-next.3
@object-ui/plugin-map@19.0.0-next.3
@object-ui/plugin-markdown@19.0.0-next.3
@object-ui/plugin-report@19.0.0-next.3
@object-ui/plugin-timeline@19.0.0-next.3
@object-ui/plugin-timesheet@19.0.0-next.3
@object-ui/plugin-tree@19.0.0-next.3
@object-ui/plugin-view@19.0.0-next.3
@objectstack/connector-imap@19.0.0-next.3
@objectstack/sdui-parser@19.0.0-next.3
@object-ui/create-plugin@19.0.0-next.3
@object-ui/react-runtime@19.0.0-next.3
@object-ui/app-shell@18.6.0-next.3
@objectstack/example-crm@4.0.107-next.3
@objectstack/example-multi-package@0.0.14-next.3
@objectstack/example-showcase@0.3.29-next.3
@objectstack/example-starter@0.1.1-next.3
@objectstack/example-todo@4.0.107-next.3
@objectstack/example-embed-objectql@0.0.47-next.3
@objectstack/connector-app-docusign@0.1.5-next.3
@objectstack/connector-app-github@0.1.5-next.3
@objectstack/connector-app-stripe@0.1.5-next.3
@objectstack/dogfood@0.0.55-next.3
@objectstack/downstream-contract@0.0.53-next.3
@objectstack/http-conformance@0.1.15-next.3