Repository navigation
docs(skills): the record-page rule teaches pinOverview and object-level fieldTabs - #38813
Conversation
…ieldTabs The objectstack-ui record-page rule said layout follows the surface's width, never a key. Two object keys now re-arrange the standard record page: pinOverview and fieldTabs. Step 1 teaches both, the example declares both, and the eval set gains one case per key. Claude-Session: https://claude.ai/code/session_01WGufzfcCk7a8bQdgyaxzu7 Co-authored-by: Claude <noreply@anthropic.com>
…ment, move the token row The new step 1 paragraph says each key once. Four restating clauses of record-page.md are deleted first (94 bytes). The file's row in the published-skills token ratchet moves 990 -> 1249, the measured remainder, pinned at the measurement, on the standing ruling of record 6513306068. Claude-Session: https://claude.ai/code/session_01WGufzfcCk7a8bQdgyaxzu7 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfcCk7a8bQdgyaxzu7 Final head for review · 2026-12-01T01:50Z · zone osa-ux: |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head f71d424 · 2026-12-01T01:52Z osa-L1-a takes the L1 and the contract review at CONTRACT_REVIEW_TIER (rules face) on this head, announced in 7297976708. |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm 席位核对 — L1 ACCEPT · head
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
S1 (should-fix) — cases 7 and 8 list
N1 (nit) — of the 94 bytes counted as paid down, the 13 of ", never a key" are a false clause, not restatement. The row comment says "false clause" plainly; the PR body's table and the changeset ("four restating clauses") file it under restatement. The row is pinned to the measurement, so no number moves. N2 (nit) — the added text restates itself twice: the example comment "// each only when asked" repeats "write one only when asked" of the new paragraph, and "never a page file" repeats the opening line's "author One should-fix (S1), no must-fix. The rule text and the ratchet row hold on this head; S1 is confined to the eval file and its fix earns a delta review. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Adoption and L1 addendum · 2026-12-01T01:59Z · head
Contract review brief (as handed to the sub-agent)Contract review brief — PR #38813 @ You review at Inputs — these and nothing else: Scope — the paths Security — a ⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs Judge, in the record's own sections: Deviations from the brief as handed: the record was written to a file and posted by this session, not by the sub-agent. |
…, not a mention of it A must_not_contain entry is a literal substring match, so the bare kind: 'full' entry failed each case's own reference answer. Both cases now forbid the code spelling, and the reference answers say no full page. The rule drops one repeat of the opening line; its token row follows the measurement down, 1249 -> 1244. The changeset names the deleted clauses as one false and three restating. Claude-Session: https://claude.ai/code/session_01WGufzfcCk7a8bQdgyaxzu7 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfcCk7a8bQdgyaxzu7 Final head for delta review · 2026-12-01T02:26Z · zone osa-ux: |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head bb6a823 · 2026-12-01T02:27Z osa-L1-a takes the L1 delta and the contract-review delta (same reviewer) on this head, announced in 7298625851. |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm 席位核对 — L1 delta ACCEPT · head
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: Delta review of the fix round on the record at ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentS1: closed
N1: closed N2: closed in part ("never a page file" cut); the example comment is an accepted deviation, see ③. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Adoption · 2026-12-01T02:30Z · head
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 席位核对ACCEPT — PR #38813 @
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 维护者速读
席位意见:同意落地。ACCEPT → PR #38813 comment 7298709082。 |
…ctstack-ai#38821) <!-- 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 6 of the per-skill split, under claim 7280537583 and its amendments 7280758590, 7288186602 and 7296541080. ## 维护者速读 - 用户能看到什么变化:用户无感。发给 AI 的「查询」技能说明,入口文件从约 18 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 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 two rows fall, 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 once**: the first after-round showed case 4 lost (0 of 3 against 1 of 3 on `main`); three pieces of text went back and four cuts paid for them (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 on full rounds of both trees in one window: no case fails on every run of the head. - **Seat order for this PR** (claim amendment 7296541080, PR 6 = `objectstack-query`): the same shape as PRs 3 to 5; no new file under `skills/` (a new file needs a new ratchet row, which stays with a human). This skill has three hand-written rules files, each with its own row, so text could have moved into them under fork 4 = A. None did: every fact that left the entry was already in a rules file, in the contract or on the published page. ## Review rounds **Second round** (contract review 7300640479 on `410a7ed7`: passed, with one should-fix), commit `25cf270b`. - **S1, fixed.** The search section said a dotted path in `searchFields` "is refused". That holds at the protocol door, which judges every name, and on an engine call only when no listed name is searchable: the engine's refusal (`refuseSearchOverrideNamingNoSearchableField`) fires on an all-unknown list, and its test keeps the tolerance for a partly-known one ("a partly-known override still narrows to its known names"). So `searchFields: ['title', 'project_id.name']` on the engine call the entry teaches is accepted and searches `title` alone: a wrong answer with no error. The bullet now reads: "a dotted path (`project_id.name`) is refused at the protocol door and when it stands alone; beside real fields the engine drops it silently." Paid inside the entry: the three schema names after the closed-set rule (first check 3 already routes to the file that holds them) and a few words of first check 4. The entry is 8,984 bytes; the row stays 2240 and the sum of ceilings does not move. - **N1, not taken.** The closed-set sentence still does not list `find`'s six driver passthrough keys. The refusal prints them, the changeset says where they are declared, and listing them costs bytes this round had to find for S1. - **N2, not taken.** Trap 5's keyset example sorts by `created_at` alone, and the warning that a repeating sort key can skip or repeat rows at a page boundary stays in `rules/pagination.md`. Every recorded run of the paging case, on both trees, opened that file. Open to the seat: it is the same class as the traps kept inline, and adding it needs a paying cut. **First round** (contract review of `b8182abb`: one should-fix and two nits), commit `d74dc1de`. - **S1, fixed.** The operator list carried `$like` / `$ilike` bare. A pattern with no wildcard is accepted and compares exactly (the contract's own description: the pattern must cover the whole value, and a pattern with no wildcards is an exact comparison, not a substring search), which is a silent wrong answer, the class this entry keeps inline. Trap 2 now ends: "`$like` / `$ilike` match the WHOLE value and you write the `%`: `{ name: { $like: 'acme' } }` is an exact match." Paid inside the entry by three cuts, each loud or already said elsewhere: the REST refusal of a search field outside the searchable set, "applied before counting or grouping" after the `count` / `aggregate` search sentence, and "Unsorted pages are not stable." - **N3, fixed.** First check 2 said a query names nothing beyond the object's declared fields, while the entry's own example uses `created_at` and `owner_id`. It now reads "the object's fields (declared or platform-injected; a query invents none)". - **N1, fixed.** The changeset pointed the six driver passthrough keys at `data/data-engine.zod.ts`, which does not hold them. It now names the driver options contract (`data/driver.zod.ts`) for the keys and says which method takes them is the engine's own list, printed by the refusal. ## What changes **The entry file becomes a router.** `skills/objectstack-query/SKILL.md`: 18,455 → 8,984 bytes, 429 → 154 lines, 4,607 → 2,240 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 fields (declared or platform-injected), which of them are relation fields, and its `searchableFields`; read the contract and never recall a key or an operator (`references/_index.md` for the query and filter schemas, `data/data-engine.zod.ts` for each engine method's option keys); `os validate` reads no query in code, so run the query, while query metadata (a list view's filter, a dashboard dataset) is judged by it. - `## Calling convention`: one type-checked block (a `find` with `where`, `fields`, `orderBy`, `limit` and `expand`; a system read with `context: { isSystem: true }`; an `aggregate` with three measures, one carrying its own `filter`), then the closed-set rule (a key outside a method's set is refused by name with the legal list), what an `aggregate` bag does not take, what a literal carrying `object` is, and the operator names as one list with the four combination rules. - `## Traps`, seven, each accepted and answering wrong or slow with no error: a read with no `context` returns fewer rows; four string operators compare case-sensitively, and `$like` / `$ilike` match the whole value; a column with no value fails every ordering test, and `$null` misses blank text where `$empty` does not; `expand` reads the foreign key off each row, skips a key that is not a relation field, and applies only `fields`, `where` and a further `expand` of a nested value; a page needs `orderBy` and a keyset must match its direction; `where`, `having` and a measure's `filter` scope three different things, with the rule for which side buckets a date under a non-UTC `timezone`; a date computed at module load freezes, with the tokens, the week key and the now-anchored comparand. - `## Full-Text Search`: the bare-string form with `searchFields`, the matching rules, that `count` and `aggregate` take the same pair, that `search` never traverses (where a dotted path is refused and where the engine drops it silently; the stored mirror, with the `searchFields` to write), and the six knobs that validate and do nothing. - `## Removed keys`: all six rows, each with what to write. - `## Where to go`: six rows (the three rules files, the published query-syntax page, objectstack-ui, objectstack-data). **No text moved.** What left the entry was cut, each behind what now answers it. `rules/filters.md` changes two pointers that named sections the entry no longer has (the line under its operator list, and the sibling-keys note): 10,382 → 10,361 bytes. `rules/aggregation.md` and `rules/pagination.md` are untouched; their pointers to "the removal table in `SKILL.md`" and "the calling convention in `SKILL.md`" still hold. | Old entry section | Now | |:--|:--| | Calling Convention (the per-method key table, the passthrough six, the alias folding) | `## Calling convention`: the block and the closed-set rule; first check 3 names the contract file. Cut to the contract (`data/data-engine.zod.ts`): each method's key list and `top` / `filter` folding. Cut: the six driver passthrough keys and why `count` and `aggregate` refuse them; the driver options contract (`data/driver.zod.ts`) holds the keys, and which method takes them is the engine's own list. An unknown key is refused by name and the refusal prints the legal keys, the passthrough ones included. | | Which filter dialect? | The objectstack-ui routing row, which names `VIEW_FILTER_OPERATORS`. | | Execution Context (`context`) | Trap 1 and the block's system read. Cut: the `403 PERMISSION_DENIED` refusal of a context with no user, position or permission set (loud when hit), and that a write takes its context only as the trailing argument (the contract, `contracts/data-engine.ts`). | | Removed Keys → Live Replacement | `## Removed keys`, six rows. Cut: the second alternative for `array_agg` / `string_agg` (a stored roll-up field) and the sentence dating the removal; objectstack-upgrade, which the entry names, holds the register. | | Quick Reference — Detailed Rules | `## Where to go`. | | Filter Operators (six operator tables and their examples) | The operator names as one list, linked to `rules/filters.md` § Operator Reference (one example each), and traps 2 and 3; trap 2 keeps that `$like` / `$ilike` match the whole value. Cut to the contract (`data/filter.zod.ts`, each operator's `.describe()` text) and the published page: purpose, SQL equivalent, value types; the view-filter `is_empty` lowering; the refusal of `$empty` on an undeclared column. | | Filtering by a related record; Cross-field comparisons | The `query.joins` row keeps the shape `{ customer: { country: 'US' } }`; trap 7 keeps the now-anchored comparand. The rest was already whole in `rules/filters.md` § Relation Filters, § Field References and § Now-Anchored Comparands. | | Sorting | The block's two-key `orderBy` and trap 5. Cut: array order is sort priority and `order` defaults to `'asc'` (the contract); index advice is the objectstack-data routing row. | | Pagination | Trap 5 (the keyset shape, the direction rule, what an `offset` still costs) and `rules/pagination.md`, whose § Sorting with Pagination says why an unsorted page is not stable. | | Aggregation | The block's `aggregate` call, the sentence under it, and trap 6. | | Expand (Related Records) | The block's `expand` with the foreign key kept in `fields`, and trap 4. Cut: the batched-read note and the nested example. | | Full-Text Search | Kept under the same heading, shorter. Cut to the published page and objectstack-data's Search Fields reference: the expanded-filter comment block, the protocol spelling of the narrowing key, the description of the default searchable set, the REST refusal of a name outside the set (`400 INVALID_FIELD`, loud when hit). Cut to the contract's docblocks: that `count` and `aggregate` apply the pair before counting or grouping. | | Common Patterns: Cross-Object Queries | Trap 4 (display; page or sort related records by querying the related object), the search section (the stored mirror), `rules/filters.md` § Relation Filters, the objectstack-ui routing row. | | Common Patterns: Pagination Pattern for APIs; Dashboard Aggregation Pattern | `rules/pagination.md`; the block's per-measure `filter` and trap 6 ("a total and a conditional count share one call"); dashboards are the objectstack-ui routing row. | | Verify your work; References | First checks 4 and 3. | **Sizes** (bytes · lines · ratchet tokens): | | before (`main` at `13a0d3fe`, merged in) | after (head `655229c6`) | |:--|--:|--:| | `SKILL.md` (entry) | 18,455 · 429 · 4,607 | 8,984 · 154 · 2,240 | | `rules/filters.md` | 10,382 · 217 · 2,596 | 10,361 · 217 · 2,591 | | `skills/objectstack-query/**` (7 files) | 55,118 · 1,318 | 45,626 · 1,043 | | all 14 `SKILL.md` together | 152,901 · 2,769 | 143,430 · 2,494 | | whole `skills/` tree (115 files) | 1,193,953 | 1,184,461 | | whole tree without `evals/` (73 files) | 829,914 | 820,422 | | ratchet: authored tokens = sum of all ceilings | 189,821 | 187,449 | | ratchet: bundle total, tokens | 295,693 | 293,321 | The head column is measured, and so are the byte and line figures of the `main` column (the files of `main` at `13a0d3fe`). The two ratchet figures of the `main` column are the head's reading plus the fall of this skill's two rows: the entry and `rules/filters.md` are the only files under `skills/` that differ (`git diff --stat origin/main HEAD -- skills`: 2 files). `main` raised another skill's row since the last round, which is why both columns are higher than in the earlier body. **Budget reading:** the entry is 8,984 B, inside the card's 6–9 KB line, and 154 lines against the 500-line cap. The whole catalog is 9,492 bytes smaller, all of it cut. **Ratchet rows** (`scripts/check-skills-token-ratchet.mjs`), each pinned AT its measurement, zero headroom. Two rows move, both down: - `skills/objectstack-query/SKILL.md` 4607 → 2240 (−2,367): `ceil((8984 − 27) / 4) = ceil(8957 / 4) = 2240`. Why: the entry became a router. The two review rounds moved the file from 8,984 to 8,987 bytes and back to 8,984; the row did not move (2240 is the measurement of each). - `skills/objectstack-query/rules/filters.md` 2596 → 2591 (−5): `ceil(10361 / 4) = 2591`. Why: the two pointer lines are 21 bytes shorter. The rows of `rules/aggregation.md` (2346) and `rules/pagination.md` (1289) do not move. The sum of all ceilings goes 189,821 → 187,449 (−2,372). No row rises and none is added. ## Tests ### Eval parity Command, every full round: `pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-query --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. 10 behaviour cases in `evals/filters-pagination-search.json` on both arms and 7 trigger cases in `evals/triggers.json`, both files untouched: 81 turns a round. **The reading the rule is judged on**: one full round on each tree, run back to back in one window, on the pushed head and on the `main` it merged. | case | subject | `main` at `13a0d3fe` (with-skill · no-skill) | head `655229c6` (with-skill · no-skill) | |:--|:--|--:|--:| | 1 | filters, `$in`, case-blind match, two-key sort | 3/3 · 0/3 | 3/3 · 0/3 | | 2 | keyset paging for an infinite scroll | 3/3 · 0/3 | 3/3 · 0/3 | | 3 | grouped measures with `count_distinct` | 3/3 · 0/3 | 3/3 · 0/3 | | 4 | search across a related record's title, with `expand` | 2/3 · 0/3 | 1/3 · 0/3 | | 5 | a system read in a hook | 3/3 · 0/3 | 3/3 · 0/3 | | 6 | now shifted by a field's days | 3/3 · 0/3 | 3/3 · 0/3 | | 7 | blank text with `$empty` | 3/3 · 0/3 | 3/3 · 0/3 | | 8 | a total and a conditional count in one call | 3/3 · 0/3 | 3/3 · 0/3 | | 9 | month buckets under a `timezone` | 3/3 · 0/3 | 1/3 · 0/3 | | 10 | the current-week tokens | 3/3 · 0/3 | 3/3 · 0/3 | | **all** | | **29/30 · 0/30** | **26/30 · 0/30** | | triggers | loaded when it should · left alone when it should not | 15/15 · 3/6 | 15/15 · 3/6 | | case 4 again, 6 runs an arm, right after | | 4/6 · 0/6 | 3/6 · 0/6 | Both full rounds ran 81 of 81 turns (4.2 and 4.3 minutes); the two case-4 reads ran 12 of 12 turns each. **Reading under the parity rule: no regression.** No case fails on every run of the head. The head's total is three lower than `main`'s in this window, all of it in two cases that flip on both trees: - **Case 4: head 1 of 3 and then 3 of 6; `main` 2 of 3 and then 4 of 6.** This is the case whose text the second review round changed, so it was read six more times on each tree. The head's failing answers put the keyword in a `where` `$or` with a relation condition on the project, repeat the entry's new sentence (the dotted path "is refused, or silently dropped next to real fields"), and offer the stored mirror with `searchFields: ['title', 'project_name']` as the alternative; they miss the literal `stored` (they write "store the project name on the task"). `main`'s failing answers miss the same literal, or `owner_id` and `searchFields`. Across every full or targeted read: `main` 9 of 15; the router's text between the restoration and this round 7 of 9; the text of this round 4 of 9. Unstable on both trees, and lower on this round's text than on the text before it, by a margin that nine runs cannot separate from chance. Open question for the seat (see the report): accept under the rule, or reword the bullet so the stored mirror comes before the `where` alternative. - **Case 9: head 1 of 3; `main` 3 of 3.** Both failing answers give the right table (the database buckets on PostgreSQL with `Asia/Taipei`; a fixed offset or SQLite stays in memory) and miss a literal by its form: one writes "the database does the bucketing", the other capitalises "In memory" in a table cell. The text the case draws on (trap 6) has not changed since the first router commit. Across all rounds: head 10 of 12, `main` 7 of 9. - **Case 2: 3 of 3 on both.** Its earlier failures on the router's text (a function parameter named `cursor`, which the case's forbidden literal `cursor:` catches) did not recur: 5 of 16 runs across all router rounds, 0 of 9 on `main`. - **Triggers.** Trigger 7 (a list view's filter) loads the skill on every run of both trees; trigger 6 was left alone on every run of both. The frontmatter that decides loading is byte-identical on both trees. **Earlier rounds**, kept as the record of how the text got here: | reading | tree | with-skill | no-skill | with-skill cases below 3 of 3 | |:--|:--|--:|--:|:--| | before round, 81 of 81 turns | `0fc9eab9` (the first branch point) | 26/30 | 1/30 | case 4, 1 of 3 (missed `owner_id`, `stored`); case 9, 1 of 3 (missed `in the database`, `in memory`) | | after round 1, 81 of 81 turns | local `f9ed325e`, the first router commit (`11d8ae17` on this branch) | 25/30 | 1/30 | case 1, 2 of 3 (one answer used `$ilike`); case 2, 2 of 3; **case 4, 0 of 3** | | after round 2, cases 1, 2, 4 and 5 only, 24 of 24 turns | local `a2ece3bf`, after the restoration (`0a4ed24d` on this branch) | 12/12 | 0/12 | none | | after round 3, stopped by the quota guard after 4 of 81 turns | the same skill text | case 1: 1 of 1; case 2: 0 of 1 | 0/2 | case 2 | | after round 4, stopped on the seat's order after 76 of 81 turns (all 60 behaviour turns, 16 of 21 trigger turns): the first review fix had to land first | tree `cd045f3b`, the head before the review rounds | 27/30 | 0/30 | case 2, 1 of 3; case 4, 2 of 3 | | after round 5, 81 of 81 turns, with a `main` round beside it (`00f97b30`: 28/30 · 1/30; case 4, 2 of 3; case 10, 2 of 3) | `410a7ed7`, the head after the first review round | 28/30 | 0/30 | case 2, 2 of 3; case 4, 2 of 3 | **The restoration (ruling 7168461386).** After round 1, case 4 (search tasks by keyword across the title and the parent project's name, and show the assignee) failed all three runs: the answers put a relation condition in `where` and called the field `assignee`. Three pieces went back into the entry: the search bullet now says a relation condition in `where` is a filter, not a search, and gives `searchFields: ['title', 'project_name']`; the example's comment names `owner_id` as the record owner ("assignee"); trap 2 regains `{ email: { $icontains: '@company.com' } }` (case 1). Paid inside the entry: the objectstack-ask routing row (the frontmatter description carries it), the relation-condition sentence under the operator list (its shape moved into the `query.joins` row), an inline example in trap 4, and half a sentence of trap 1. The entry went from 8,989 to 8,984 bytes. **Quota readings** (the login's seven-day window, status `allowed_warning`, reset 2026-12-06 14:00 UTC; guard `--max-utilization 0.99` by the maintainer's choice recorded in claim amendment 7296541080, never raised). Before the maintainer's reset: before round 0.96 → 0.97; after round 1 0.97 → 0.98; after round 2 0.98; after round 3 stopped at 0.99, exit 3. After the reset: after round 4 0.54 → 0.55; after round 5 0.56 → 0.57 and its `main` round 0.57; this round's head round 0.64, its `main` round 0.64 → 0.65, the two case-4 reads 0.65. One check that calls no model, beside the rounds: of the 38 `must_contain` literals of the 10 cases, `main`'s entry carries 28 and the head's entry 35. One is lost, `engine.find('account'` (case 1; the router's example object is `task`, and an answer composes the call from the prompt); 8 are gained (cases 6, 8, 9 and 10); 2 are in neither tree (`timezone: 'Asia/Taipei'`, `plan_week: '{current_iso_week}'`, both composed from the prompt). Of the `must_not_contain` literals, `main`'s entry carries two (`orderBy:` of case 3, `'project_id.name'` of case 4) and the head's entry one (`orderBy:`, in the `find` example; case 3 is an `aggregate` case and read 3 of 3 on both trees). ### Other tests On the pushed head `655229c6` (tree `e1d917f5`), under the verify lock (`VERDICT command-exit 0`): - `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 scripts/platform-catalog.test.ts scripts/skill-map-guards.test.ts scripts/query-pointer-row.test.ts` (the suite that names the ratchet script, the skill-map guards, and the test that names this skill's pointer row): `Test Files 3 passed (3)`, `Tests 61 passed (61)`. - `pnpm --filter create-objectstack exec vitest run --maxWorkers=2 src/created-summary.test.ts src/scaffold-skills-single-copy.test.ts` (the two test files there that name this skill): `Test Files 2 passed (2)`, `Tests 34 passed (34)`. Two more test files name the skill and were not run: `packages/cli/test/skills-commands.test.ts` uses the name with fixture strings, and a `driver-sql` test cites `rules/aggregation.md` in a comment; neither reads a file this PR changes. No ablation: the diff changes prose and one ledger, no tested behaviour. ## Acceptance notes Held by a gate or by another file, recorded here as it stands: - **`rules/filters.md` § Operator Reference stays where it is.** `scripts/check-skill-identifier-liveness.mjs` registers that section as exhaustive for `FILTER_OPERATORS`; the entry's operator list links to it. - **The heading `## Full-Text Search` is kept.** objectstack-ui's list-view rules send the reader to "objectstack-query → Full-Text Search" by name. - **The removed-keys table stays inline, all six rows.** Each is refused loudly, so the trap rule alone would let it go; but `rules/aggregation.md` and `rules/pagination.md` point at "the removal table in `SKILL.md`" four times, and the table is where a model that remembers an old key learns what to write. 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 query that is accepted and then answers wrong or slow with no error stays inline.** Inline: the seven traps and the two search bullets. Cut to a pointer, each loud when hit: the per-method key lists (an unknown key is refused by name with the legal list), a context with no identity (`403`), a relation filter past its limits (`INVALID_FILTER`), `$empty` on a column with no declaration, a search field outside the searchable set (`400`). - **Traps 3, 6 and 7 state inline what `main`'s entry left to the rules files**: the `$or` with `$null` beside an ordering test, which side buckets a date under a `timezone`, the tokens, the week key and the now-anchored comparand. Each is a silent wrong answer, and eval cases 6, 8, 9 and 10 ask for them; case 9 read 1 of 3 on `main` and 3 of 3 here. The rules files still hold the detail. - **Trap 6 is scoped to where it is true.** The database buckets a non-UTC date only on a driver that declares `supports.zonedDateBucketing` and only for an area/location zone name; a fixed offset, or any other driver, keeps the call in memory with the same buckets. The cost is speed, which is why the list's opening line says "wrong or slow". - **Trap 4 says "the engine skips any other" key**, not "returns nothing": the sentence is about the engine call the entry teaches. - **Two statements of `main`'s entry were corrected in passing, inside this file.** Its `count` row listed `context` and `where` only, and the contract also takes `search` and `searchFields` (`EngineCountOptionsSchema`). It said an `expand` key must be a `lookup` or `master_detail` field, and the engine resolves `user` and `tree` fields too. - **The example calls the assignee field `owner_id`**: objectstack-data's rule is that `owner_id` is the platform-injected record owner, also when the request says "assignee", and eval case 4 asks for the name. - **The operator names stay inline as one list** (0.3 KB): first check 3 says never recall an operator, and the list is the vocabulary to choose from before the rules file is opened. - **The docs link was checked by hand.** `check:published-readme-links` does not read `skills/` (a deliberately broken link in the entry still passed, and the file was restored), so its green says nothing about the entry's link. The page exists as `content/docs/protocol/objectql/query-syntax.mdx` and is listed in its `meta.json`. - **Section anchors of the entry changed.** The changeset lists every anchor that left `SKILL.md` (24) and the five new ones; the title's anchor and `#full-text-search` stay. 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: - Three eval cases grade a literal that a correct answer can miss or carry: case 2 forbids `cursor:` and so fails an answer whose function takes a parameter of that name; case 1 fails an answer that uses `$ilike`; case 9 requires the phrases `in the database` and `in memory` in that casing. The parity rule treats the cases as fixed, so this PR does not touch them. Carrier: none; noted for whoever owns the case file. - Trigger case 7 (a list view's filter, which should not load this skill) loads it on every run of both trees, with this bundle the only one installed in the turn. Carrier: none; the eval seat's reading. - The contract's docblock on `expand` (`data/data-engine.zod.ts`) says keys are lookup or master_detail fields and that a nested value controls sort; the engine resolves four relation types and re-keys the related rows by id, so a nested `orderBy` has no visible effect. A reading of two files, not a measured failure through a public door. Carrier: none. - `scripts/check-corpus-claim-drift.mjs` carries a self-test fixture label that cites `skills/objectstack-query/SKILL.md:154`. It is a label, not a live reference; the file is outside this claim's surface. - `main` moved during the work, five times: PR 5 of this split (objectstack-ai#38802); a release-version commit that restamped every entry's `version` line (the same byte length, so no row moved); a commit that changed a gate script; a range that raised another skill's ratchet row (objectstack-ai#38813, a different row, merged cleanly); and a range that changed a deploy workflow. Each was merged in as a plain merge commit; the textual merges were clean, the workspace was rebuilt after the last one and every gate below ran after it. ## Verification Read first, by risk: 1. `skills/objectstack-query/SKILL.md`, the whole file: is anything a model needs before opening the contract or a rules file missing? The risk hunks are `## Traps` (seven items replace most of the old file) and the one example block, which now carries the whole calling convention. 2. `.changeset/34770-query-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 two `objectstack-query` rows. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints `ratcheted (authored) 187449 / 187449 (+0)` and `skills/objectstack-query/SKILL.md 2240 / 2240 (+0)`; `wc -c skills/objectstack-query/SKILL.md` prints 8984. Gates, local, each exit code captured before any pipe. The whole derived list ran on the pushed head `655229c6` (tree `e1d917f5`), after the merge of `main` at `13a0d3fe` and a rebuild of the merged workspace. <details><summary>Derived families on head `655229c6`: 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 against `main` at `13a0d3fe`, the ref the list was derived on. - `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) 187449 / 187449 (+0)`, `bundle total 293321`); its `--self-test`: `111 cases pass`. - `pnpm check:dual-build-cjs-loads`: `127 published require entry point(s) across 75 package(s) load; 2594 emitted CommonJS file(s) parse`. It reads every package's built `dist/`; `pnpm build --concurrency=2` ran first on the merged tree under the verify lock (`VERDICT command-exit 0`, `124 successful, 124 total`). - `pnpm check:dts-closure`: `124 built package(s) swept - 326/326 declared declaration file(s) present`. - `pnpm check:skill-links`: `286 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: 494 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 head `655229c6`, all exit 0</summary> - `pnpm --filter @objectstack/spec run check:skill-examples`, under the verify lock: `341 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`: `1190 internal #fragment link(s) across 368 source file(s) all resolve to a real heading`. - `pnpm check:published-readme-links`: `567 outbound link(s) across 169 published markdown file(s)`. It does not read `skills/` (see Acceptance notes). - `pnpm check:skill-top-level-keys`, `pnpm check:skill-frame-freshness`, `pnpm check:dev-prereqs`: exit 0. - `pnpm --filter @objectstack/spec run check:generated`, under the verify lock, 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 four changed files finds none. </details> `node scripts/pm/overlap-check.mjs` before the push of `655229c6`: `VERDICT clean exit 0` (origin/main at `13a0d3fe` merges cleanly; no open PR shares a changed file). Not run locally: `test:repo` (CI's). Base: the four router commits were written on a local branch and cherry-picked onto the thread branch as `11d8ae17`, `0a4ed24d`, `5cc3f615`, `b8182abb` (local `f9ed325e`, `a2ece3bf`, `17197139`, `5b365fa9`). The first review round added `d74dc1de` between two merges of `main` (`c879b19a`, `410a7ed7`). The second added `25cf270b`, then two more merges of `main`, each a plain merge commit taken when the gate tool reported a stale tree (`d77374eb` for `6f82fd05`, `655229c6` for `13a0d3fe`). A full gate pass ran on `d77374eb` and was repeated in full on `655229c6`. `main` was still at `13a0d3fe` when the head was pushed. CI on the pushed 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>
Requested by Yibo Wang · project thread
Fixes #38680
Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
维护者速读
What changes
skills/objectstack-ui/rules/record-page.md, step 1:kind: 'full' | 'html' | 'react'pages read neither key, and an object extension is refused both.pinOverview: false: the desktop full page never pins; Details is its first tab, open by default, fields in up to three columns by width.trueforces nothing. The side preview, a phone and a narrow page never pin either way.fieldTabs: [{ key, groups }]: the namedfieldGroupsleave Details for one tab per entry, right after Details and before the related-list tabs of step 2, in declared order; readers cannot move or hide them. The first group'slabelandicontitle the tab. The paragraph lists the four parse refusals and saysfieldson an entry is refused because that is the form-levelFormSchema.fieldTabs(same name, lists field names). The entry form is unchanged.relatedListsis the related-tab list.skills/objectstack-ui/evals/record-page.jsongains two cases. Case 7 asks for a record page that does not pin its details and requirespinOverview: false. Case 8 asks for two named field groups on a tab of their own and requiresfieldTabswithgroups: ['content', 'import']. Both refusedefinePage(, the code spellingkind: 'full',and a tabs slot. A forbidden entry is matched as a literal substring, so neither case forbids a bare mention: each reference answer says "no full page" and passes its own case, as do cases 1 to 6 (checked by script: everymust_containpresent, nomust_not_containhit, in all eight reference answers).scripts/check-skills-token-ratchet.mjs: therules/record-page.mdrow moves 990 to 1244, with its arithmetic comment. No other row is touched..changeset/38680-record-page-skill-keys.md:@objectstack/skillspatch.The token ceiling: paid down first, then raised by the measured remainder
The file sat at zero headroom (990 tokens, 3959 bytes). The raise runs on the standing maintainer ruling of 2026-10-27, quoted verbatim: 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B).
Deleted first from the same file, 94 bytes in four clauses: one false (13 bytes) and three restating (81 bytes):
kind: 'full'"Every sentence evals 1 to 8 pin is kept. The file is then 3959 to 4974 bytes, which is 1244 tokens by the gate's convention, so the row moves +254, the measured remainder only, pinned at the measurement. The first push of this pull request measured 1304; tightening the new paragraph and the deletions brought it to 1249, and the review round's cut of a repeated "never a page file" (the file's opening line already says where a page file is authored) to 1244.
Skill size readings
rules/record-page.md, linesrules/record-page.md, bytesrules/record-page.md, tokens (gate convention, bytes / 4 rounded up)SKILL.mdfiles, linesevals/record-page.json, lines (not ratcheted)Net lines in
record-page.md: +17 (26 added, 9 removed), under the card budget of 35.Tests
No package source is touched, so no package test or type check is owed, and no tested behaviour changed, so there is no ablation.
pnpm --filter @objectstack/spec run check:skill-examplesonf71d4248(the example block is byte-identical onbb6a823f, where CI runs it again), after building@objectstack/specand the@objectstack/client-reactclosure under the verify lock: exit 0,347 prose examples type-check across 3 surface(s). The edited example is one of them.@objectstack/speconb85b091d, one line per sentence the rule now states:pinOverviewfalse and the one field tab kept;fieldson afieldTabsentry is refused, and the refusal names the form-levelFormSchema.fieldTabs;keyare each refused at their own path;ObjectExtensionSchemarefusespinOverviewandfieldTabsas unrecognised keys, each with its guidance.origin/main0fc9eab9:ui/packages/plugin-detail/src/RecordPageColumns.tsx(pinOverviewpassed on the desktop full page alone; field tabs placed before the related tabs and counted as other tabs for the pin) andui/packages/app-shell/src/views/RecordDetailView.tsx(a phone passes nopinOverview).Acceptance notes
pinOverviewthe rule says the side preview, a phone and a narrow page never pin either way. It does not say a narrow page is unchanged in every respect: withfalse, the renderer also lays the fields out by width there. ForfieldTabsthe rule names the surfaces the schema says do not read it (the entry form, print pages, authored pages). It does not say the side preview or a phone ignore field tabs, because the renderer does not gate them on the full page. Read from the code, not measured in a browser.fieldTabsentry takes nolabel,iconorvisibleWhen, nor that on a pinned page the first field tab opens beside Details. The parse refuses each of the three keys with its own guidance, and the schema docblock carries the rest.skills/says "never a key" or names either key:git grepoverskills/at0fc9eab9finds both only in this rule after the change.skills/**): it stays draft.Verification
First files to read, by risk:
skills/objectstack-ui/rules/record-page.md, the new paragraph in step 1: every sentence is a claim about shipped behaviour.skills/objectstack-ui/evals/record-page.json, cases 7 and 8: themust_containandmust_not_containstrings.Two-minute check:
node scripts/check-skills-token-ratchet.mjs. Expected: exit 0, with the lineskills/objectstack-ui/rules/record-page.md is 1244 tokens (ceiling 1244; headroom 0).Local gates on bb6a823 (dispatch-gates derivation, exit codes captured before any pipe)
Run reconciliation — 67 derived, 62 run, 5 NOT-MEASURED, 0 UNRUN.Each NOT-MEASURED is a recorded exit 3, PREREQUISITE NOT MET: the gate reads a full workspace build this change does not owe.pnpm --filter @objectstack/lint run check:doc-formula-expressions,pnpm check:dts-closure,pnpm check:dual-build-cjs-loads,pnpm check:lean-entry-closure,pnpm check:sourcemap-no-sources-contentnode scripts/check-skills-token-ratchet.mjsand its--self-test,pnpm check:skill-links,pnpm check:skill-identifier-liveness,pnpm check:skill-compatibility,pnpm check:skill-frame-sync,pnpm check:doc-authoring,pnpm check:nul-bytes,pnpm check:pm-skill-id-lint,pnpm check:published-files,node scripts/check-empty-changeset.mjs --base origin/mainnode scripts/pm/overlap-check.mjsbefore the push:VERDICT clean exit 0againstorigin/main.pnpm --dir ui run check:skill-eval-tokens: exit 0.Generated by Claude Code