Repository navigation
docs(skills): the objectstack-query entry file becomes a router - #38821
Conversation
The entry keeps four first checks, the calling convention as one type-checked block, the operator names, seven traps, full-text search, the removal table and a routing table: 18455 -> 8989 bytes, 429 -> 156 lines. Nothing moved: what left is cut behind the three rules files, the contract or the published query-syntax page. rules/filters.md: two pointers named entry sections the router no longer has; one now names the contract and the entry's trap, the other is dropped. Ratchet: the entry row 4607 -> 2241 and the filters row 2596 -> 2591, both at the measurement. No row rises and none is added. Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS Co-authored-by: Claude <noreply@anthropic.com>
…$icontains example The first round on the router read case 4 (a keyword search by a related record's title) 0 of 3 against 1 of 3 on main, and case 1 lost one run to a correct $ilike answer. Put back, paid inside the entry: the stored-mirror prescription as an instruction with its searchFields form, the record owner named on the example's expand key, and the case-sensitivity trap's $icontains example. Paid by one routing row the description already carries, the relation-filter sentence (now in the joins row) and a parenthesis of the expand trap. 8989 -> 8984 bytes; the entry row 2241 -> 2240, at the measurement. Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS Co-authored-by: Claude <noreply@anthropic.com>
Names what the entry keeps, what left it and what answers each piece now, the two pointers that changed in rules/filters.md, and every section anchor that no longer exists in the entry. Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS Co-authored-by: Claude <noreply@anthropic.com>
The execution-context refusal and the write-context rule, the second array_agg alternative, the old expand-key rule the entry corrects, and where the build and validate spellings live now. Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB 席位核对ACCEPT @ b8182ab (#34770, split PR 6: the The file surface. Against the merge base
No new file is added under The shape, measured at this head:
Claims read against
Eval literals, recomputed from
Gates, measured in a scratchpad worktree at this head:
Ablations, each restored after:
Against the current CI at this head: 18 success, 18 skipped, 8 in progress. The L2 and the hand-over are the seat's, after the eval round. |
…-96llpb Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS Co-authored-by: Claude <noreply@anthropic.com>
Review round on the router. The operator list carried $like and $ilike bare; a pattern with no wildcard is accepted and compares exactly, a silent wrong answer, so trap 2 now says it. First check 2 no longer says a query names declared fields only: the entry's own example uses platform-injected ones. Paid inside the entry (8984 -> 8987 bytes, the row stays 2240): the REST refusal of a search field outside the set, "applied before counting or grouping", and the unsorted-page sentence. The changeset names those cuts and points the six driver passthrough keys at the driver options contract, which holds them. Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS Co-authored-by: Claude <noreply@anthropic.com>
…-96llpb Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB 席位核对ACCEPT @ 410a7ed (#34770 PR 6). This reviews the delta on my ACCEPT at b8182ab (7298730139), which no longer covers this head. The eval hold in that record is lifted: a full after-round now ran on this head's text (below). The delta:
The fixes, read against the contract:
What paid for them. Three cuts inside the entry, none of them a rule:
The entry is 8987 bytes, 154 lines, and still 2240 tokens. Measured in a scratchpad worktree at this head:
Eval parity (ruling 7249189592), read from delta report 7300470521:
Against the current CI at this head: 31 success, 20 skipped, 0 failed. The PR is Tier H: it stays a draft, and the L2 and the hand-over are the seat's. |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract reviewServed-tier: PR #38821, card #34770 (split PR 6: the Security: ① Derived judgments
② Semver levelClause-②: no
③ Boundary flags
④ Design judgment(1) Truth of what remains, read against the head's tree. Checked and holding: the three schema names and the per-method refusal with the legal list ( S1 (should-fix) — N1 (nit) — the closed-set sentence names the three option schemas as the closed sets. The engine's legal set for N2 (nit) — trap 5 inlines the keyset pattern on (2) What left, and its pointers. Every pointer target exists on the tree and says what the entry leaves to it: (3) The three restored passages. Present and right: the search bullet's "a relation condition in (4) Ratchet. As in ① above: only this skill's rows move, both down, each at the measured bytes, no row rises, the comment's arithmetic is right on this head. (5) Changeset and frontmatter. As in ① and ②. (7) Eval reading against ruling 7249189592. The ruling blocks one thing: a case that fails on every run of the head while main passes. The PR body reports no case at 0 of 3 on the head (28/30 on both trees, one window), so by the ruling's letter there is no regression. Case 2 is in neither class the ruling names: 3/3 on main, 2/3 on the head, and by the body's own count the same miss is more frequent on the router's text (5 of 13 runs against 0 of 6). The body says so plainly and does not call it "unstable on both". The miss is a graded literal in a correct keyset answer, not a lost fact, so nothing is owed back to the entry under ruling 7168461386. The round's records are the dev's; this review read the reading, not the runs. (8) Check-runs on this head. 51 runs, all completed: 31 success, 20 skipped, none failing, none pending. Green among them: Check Changeset, Governed Surface Queue Guard, PR-body guards, Lint & Repo Gates and the lint legs (repo & tooling gates, docs & code guards, PM dispatch-gates, scoped tooling self-tests), the Type Check legs, Build Core, Test Core 1 to 3 of 12. The PR is a draft and GitHub reports it mergeable against live main. Implemented-by: VERDICT: PASS |
…opped Second review round. The search section said a dotted path in searchFields is refused. That holds at the protocol door, and on an engine call only when no listed name is searchable: beside real fields the engine drops the dotted name silently and searches the rest, which is a wrong answer with no error. The entry now says so. Paid inside the entry (8987 -> 8984 bytes, the row stays 2240): the three schema names after the closed-set rule, which first check 3 already routes to, and a few words of first check 4. The changeset records both. Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS Co-authored-by: Claude <noreply@anthropic.com>
…-96llpb Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS Co-authored-by: Claude <noreply@anthropic.com>
…-96llpb Claude-Session: https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract reviewServed-tier: Delta review of PR #38821 (card #34770, split PR 6) on the head after record 7300640479, which was rendered at finding S1 of 7300640479: closed No must-fix, no should-fix. Security: ① Derived judgments
② Semver levelClause-②: no Unchanged: ③ Boundary flags
④ Design judgment(1) The new sentence, against the code. "a dotted path (
The sentence now states the accepted-and-narrower case inline, which is what the finding asked for. The bytes were paid inside the entry by cutting the three schema names from the closed-set sentence and a few words of first check 4; both remaining sentences are true (the closed-set rule is the engine's, (2) Ratchet. As in ① above. (3) Merges. As in ① above. (4) Eval reading under ruling 7249189592. The ruling blocks a case that fails on every run of the head while
N3 (nit) — in the search bullet the door-and-engine detail now stands before "a relation condition in N1 and N2 of 7300640479 stand as accepted nits: first check 3 still says (5) Check-runs on this head, as read. 50 runs: 28 success, 20 skipped, none failing, 2 in progress ( Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB 席位核对ACCEPT @ 655229c. This covers what changed since my delta ACCEPT 7300627886 at ① The content commit touches 3 files, as the delta report 7302489248 says.
② The two merges took
③ Measured in a scratchpad worktree at this head.
④ Eval parity: the card thread measured it, I did not.
Not covered by this ACCEPT: the L2 / landing steps, which are the seat's, and CI at this head. |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z 维护者速读
Seat opinion: land as is. 席位核对ACCEPT at head
ACCEPT → comment 7302745699 · Contract review → comment 7302589964 |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z
|
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Merged by os-zhuang ( |
Requested by Steve · project thread
Part of #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.维护者速读
Rulings this executes
main); three pieces of text went back and four cuts paid for them (see Eval parity).mainpasses is a regression. Read below on full rounds of both trees in one window: no case fails on every run of the head.objectstack-query): the same shape as PRs 3 to 5; no new file underskills/(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), commit25cf270b.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"). SosearchFields: ['title', 'project_id.name']on the engine call the entry teaches is accepted and searchestitlealone: 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.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.created_atalone, and the warning that a repeating sort key can skip or repeat rows at a page boundary stays inrules/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), commitd74dc1de.$like/$ilikebare. 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/$ilikematch 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 thecount/aggregatesearch sentence, and "Unsorted pages are not stable."created_atandowner_id. It now reads "the object's fields (declared or platform-injected; a query invents none)".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 thecompatibilityline; read the object's fields (declared or platform-injected), which of them are relation fields, and itssearchableFields; read the contract and never recall a key or an operator (references/_index.mdfor the query and filter schemas,data/data-engine.zod.tsfor each engine method's option keys);os validatereads 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 (afindwithwhere,fields,orderBy,limitandexpand; a system read withcontext: { isSystem: true }; anaggregatewith three measures, one carrying its ownfilter), then the closed-set rule (a key outside a method's set is refused by name with the legal list), what anaggregatebag does not take, what a literal carryingobjectis, 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 nocontextreturns fewer rows; four string operators compare case-sensitively, and$like/$ilikematch the whole value; a column with no value fails every ordering test, and$nullmisses blank text where$emptydoes not;expandreads the foreign key off each row, skips a key that is not a relation field, and applies onlyfields,whereand a furtherexpandof a nested value; a page needsorderByand a keyset must match its direction;where,havingand a measure'sfilterscope three different things, with the rule for which side buckets a date under a non-UTCtimezone; 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 withsearchFields, the matching rules, thatcountandaggregatetake the same pair, thatsearchnever traverses (where a dotted path is refused and where the engine drops it silently; the stored mirror, with thesearchFieldsto 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.mdchanges 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.mdandrules/pagination.mdare untouched; their pointers to "the removal table inSKILL.md" and "the calling convention inSKILL.md" still hold.## 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 andtop/filterfolding. Cut: the six driver passthrough keys and whycountandaggregaterefuse 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.VIEW_FILTER_OPERATORS.context)403 PERMISSION_DENIEDrefusal 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, six rows. Cut: the second alternative forarray_agg/string_agg(a stored roll-up field) and the sentence dating the removal; objectstack-upgrade, which the entry names, holds the register.## Where to go.rules/filters.md§ Operator Reference (one example each), and traps 2 and 3; trap 2 keeps that$like/$ilikematch 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-filteris_emptylowering; the refusal of$emptyon an undeclared column.query.joinsrow keeps the shape{ customer: { country: 'US' } }; trap 7 keeps the now-anchored comparand. The rest was already whole inrules/filters.md§ Relation Filters, § Field References and § Now-Anchored Comparands.orderByand trap 5. Cut: array order is sort priority andorderdefaults to'asc'(the contract); index advice is the objectstack-data routing row.offsetstill costs) andrules/pagination.md, whose § Sorting with Pagination says why an unsorted page is not stable.aggregatecall, the sentence under it, and trap 6.expandwith the foreign key kept infields, and trap 4. Cut: the batched-read note and the nested example.400 INVALID_FIELD, loud when hit). Cut to the contract's docblocks: thatcountandaggregateapply the pair before counting or grouping.rules/filters.md§ Relation Filters, the objectstack-ui routing row.rules/pagination.md; the block's per-measurefilterand trap 6 ("a total and a conditional count share one call"); dashboards are the objectstack-ui routing row.Sizes (bytes · lines · ratchet tokens):
mainat13a0d3fe, merged in)655229c6)SKILL.md(entry)rules/filters.mdskills/objectstack-query/**(7 files)SKILL.mdtogetherskills/tree (115 files)evals/(73 files)The head column is measured, and so are the byte and line figures of the
maincolumn (the files ofmainat13a0d3fe). The two ratchet figures of themaincolumn are the head's reading plus the fall of this skill's two rows: the entry andrules/filters.mdare the only files underskills/that differ (git diff --stat origin/main HEAD -- skills: 2 files).mainraised 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.md4607 → 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.md2596 → 2591 (−5):ceil(10361 / 4) = 2591. Why: the two pointer lines are 21 bytes shorter.The rows of
rules/aggregation.md(2346) andrules/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 inevals/filters-pagination-search.jsonon both arms and 7 trigger cases inevals/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
mainit merged.mainat13a0d3fe(with-skill · no-skill)655229c6(with-skill · no-skill)$in, case-blind match, two-key sortcount_distinctexpand$emptytimezoneBoth 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:main2 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 awhere$orwith 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 withsearchFields: ['title', 'project_name']as the alternative; they miss the literalstored(they write "store the project name on the task").main's failing answers miss the same literal, orowner_idandsearchFields. Across every full or targeted read:main9 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 thewherealternative.main3 of 3. Both failing answers give the right table (the database buckets on PostgreSQL withAsia/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,main7 of 9.cursor, which the case's forbidden literalcursor:catches) did not recur: 5 of 16 runs across all router rounds, 0 of 9 onmain.Earlier rounds, kept as the record of how the text got here:
0fc9eab9(the first branch point)owner_id,stored); case 9, 1 of 3 (missedin the database,in memory)f9ed325e, the first router commit (11d8ae17on this branch)$ilike); case 2, 2 of 3; case 4, 0 of 3a2ece3bf, after the restoration (0a4ed24don this branch)cd045f3b, the head before the review roundsmainround beside it (00f97b30: 28/30 · 1/30; case 4, 2 of 3; case 10, 2 of 3)410a7ed7, the head after the first review roundThe 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
whereand called the fieldassignee. Three pieces went back into the entry: the search bullet now says a relation condition inwhereis a filter, not a search, and givessearchFields: ['title', 'project_name']; the example's comment namesowner_idas 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 thequery.joinsrow), 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.99by 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 itsmainround 0.57; this round's head round 0.64, itsmainround 0.64 → 0.65, the two case-4 reads 0.65.One check that calls no model, beside the rounds: of the 38
must_containliterals 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 istask, 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 themust_not_containliterals,main's entry carries two (orderBy:of case 3,'project_id.name'of case 4) and the head's entry one (orderBy:, in thefindexample; case 3 is anaggregatecase and read 3 of 3 on both trees).Other tests
On the pushed head
655229c6(treee1d917f5), 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.tsuses the name with fixture strings, and adriver-sqltest citesrules/aggregation.mdin 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.mjsregisters that section as exhaustive forFILTER_OPERATORS; the entry's operator list links to it.## Full-Text Searchis kept. objectstack-ui's list-view rules send the reader to "objectstack-query → Full-Text Search" by name.rules/aggregation.mdandrules/pagination.mdpoint at "the removal table inSKILL.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:
403), a relation filter past its limits (INVALID_FILTER),$emptyon a column with no declaration, a search field outside the searchable set (400).main's entry left to the rules files: the$orwith$nullbeside an ordering test, which side buckets a date under atimezone, 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 onmainand 3 of 3 here. The rules files still hold the detail.supports.zonedDateBucketingand 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".main's entry were corrected in passing, inside this file. Itscountrow listedcontextandwhereonly, and the contract also takessearchandsearchFields(EngineCountOptionsSchema). It said anexpandkey must be alookupormaster_detailfield, and the engine resolvesuserandtreefields too.owner_id: objectstack-data's rule is thatowner_idis the platform-injected record owner, also when the request says "assignee", and eval case 4 asks for the name.check:published-readme-linksdoes not readskills/(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 ascontent/docs/protocol/objectql/query-syntax.mdxand is listed in itsmeta.json.SKILL.md(24) and the five new ones; the title's anchor and#full-text-searchstay. No file in this repository links one of the old ones.Noted, not changed:
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 phrasesin the databaseandin memoryin 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.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 nestedorderByhas no visible effect. A reading of two files, not a measured failure through a public door. Carrier: none.scripts/check-corpus-claim-drift.mjscarries a self-test fixture label that citesskills/objectstack-query/SKILL.md:154. It is a label, not a live reference; the file is outside this claim's surface.mainmoved during the work, five times: PR 5 of this split (docs(skills): the objectstack-api entry file becomes a router #38802); a release-version commit that restamped every entry'sversionline (the same byte length, so no row moved); a commit that changed a gate script; a range that raised another skill's ratchet row (docs(skills): the record-page rule teaches pinOverview and object-level fieldTabs #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:
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..changeset/34770-query-skill-router.md: the "what left, and what answers it now" list is the record of every cut.scripts/check-skills-token-ratchet.mjs: the twoobjectstack-queryrows.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprintsratcheted (authored) 187449 / 187449 (+0)andskills/objectstack-query/SKILL.md 2240 / 2240 (+0);wc -c skills/objectstack-query/SKILL.mdprints 8984.Gates, local, each exit code captured before any pipe. The whole derived list ran on the pushed head
655229c6(treee1d917f5), after the merge ofmainat13a0d3feand a rebuild of the merged workspace.Derived families on head `655229c6`: 69 derived, 69 run green, 0 NOT MEASURED
✓ 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 againstmainat13a0d3fe, 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 builtdist/;pnpm build --concurrency=2ran 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.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.Beside the derived list, on head `655229c6`, all exit 0
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 readskills/(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.node scripts/pm/overlap-check.mjsbefore the push of655229c6:VERDICT clean exit 0(origin/main at13a0d3femerges 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(localf9ed325e,a2ece3bf,17197139,5b365fa9). The first review round addedd74dc1debetween two merges ofmain(c879b19a,410a7ed7). The second added25cf270b, then two more merges ofmain, each a plain merge commit taken when the gate tool reported a stale tree (d77374ebfor6f82fd05,655229c6for13a0d3fe). A full gate pass ran ond77374eband was repeated in full on655229c6.mainwas still at13a0d3fewhen the head was pushed. CI on the pushed head is the seat's reading.Generated by Claude Code