Repository navigation
docs(skills): objectstack-data and objectstack-automation SKILL.md become routers - #36158
Closed
objectstack-fleet[bot] wants to merge 19 commits into
Closed
objectstack-fleet[bot] wants to merge 19 commits into
objectstack-fleet[bot] wants to merge 19 commits into
Conversation
SKILL.md keeps the first checks, the run-time traps, the routing table and the sections the hosted door serves by heading; the text that left moved into the skill's existing rule and reference files. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
SKILL.md keeps the first checks, the routing table, the trigger rule and the seven sections the hosted door serves by heading; the text that left moved into references/examples-flows.md and integration-recipes.md. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
The moved data and automation text no longer repeats its SKILL.md section; restated key rows a check already refuses are gone. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
… routers The two SKILL.md rows follow their files down to the measurement, which pins the 9 KB budget; seven receiving rows move by the measured bytes that left the entry files. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
… re-pinned Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
…oken Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
…ctor-input text main's two hunks to objectstack-automation/SKILL.md land where this branch moved their sections: the connector_action row in references/examples-flows.md, the inbound-webhook bullets in references/integration-recipes.md. Three ratchet rows re-pinned at the merged measurement. Claude-Session: https://claude.ai/code/session_017xRBcULDAsasAL8sAQTfET Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack#6 · sunhaolin · session_017xRBcULDAsasAL8sAQTfET {
"issue": 34770,
"status": "done",
"branch": "claude/issue-34770-skill-router-budget",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36158",
"head": "b2226e0e (one merge of origin/main 411fe24b over 08639dad)",
"session": "session_017xRBcULDAsasAL8sAQTfET",
"premise_still_valid": true,
"summary": "skills/objectstack-data/SKILL.md (26,608 -> 8,998 bytes, 472 -> 166 lines) and skills/objectstack-automation/SKILL.md (28,192 -> 8,990 bytes, 479 -> 181 lines) are routers: four first checks, the traps that parse and then fail at run time, a routing table; frontmatter byte-identical. objectstack-ui has no diff: part 1 (PR objectstack-ai/objectstack#35077) already made it a router and it measures 8,687 bytes, 161 lines, seven traps at the base. No new file: text that left landed in seven existing rule and reference files, each receiving section cut to what its SKILL.md section no longer says, so skills/** is flat (1,165,890 -> 1,165,837 bytes, -53). The premise holds with one thing the dispatch did not name: the hosted door serves eleven sections of these two entry files by exact heading (packages/spec/scripts/skill-served-sections.json), 8,090 and 16,033 bytes on main, more than the budget. All eleven headings stay in SKILL.md, once each, at main's level and in their declared JSON forms, with shorter text; that is the fork in open_questions 1. The before and after eval rounds did not run: NOT MEASURED, owed.",
"tests": "Skill evals: NOT MEASURED. The runner's login guard passes in this container (claude auth status: loggedIn true, authMethod oauth_token) and a before-round started on the untouched base tree; I stopped it after 8 turns because every record read the login's seven-day window at 0.88 to 0.89 (allowed_warning; it resets at 03:00 UTC on 22 November 2026) and the runner stops scheduling at 0.9. The 8 turns are not a measurement. Owed, both rounds on the same side of PR objectstack-ai/objectstack#35649 (in both trees), about 190 turns each: `pnpm install && pnpm --filter '@objectstack/scenarios^...' build && pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-automation --concurrency 4 --out DIR`, once on main at 411fe24b and once on this branch head. Deterministic, at b2226e0e: ui/scripts/check-skill-eval-tokens.mjs exit 0 (every must_contain token is taught by its bundle); a both-trees script finds 40 tokens in 22 of 59 data cases and 26 tokens in 12 of 29 automation cases that the old SKILL.md held and the new one does not, every one in a file the routing table names (tabled per case in the PR body); a code-span loss check finds 6 of 225 data spans and 3 of 328 automation spans absent from the new bundles, each named and explained in the PR body. packages/spec check:skill-examples exit 0 (347 prose examples type-check, the moved os:check blocks included). packages/spec/scripts/platform-catalog.test.ts (the one test naming the edited ratchet script) under the verify lock: 1 file, 20 tests passed, VERDICT command-exit 0. No ablation: documentation and ratchet numbers only.",
"gates": "Local, at b2226e0e, exit codes captured before any pipe: dispatch-gates --commands printed 69 commands; all 69 ran, 68 exit 0 and 1 exit 3 (pnpm check:dual-build-cjs-loads, prerequisite not met, NOT MEASURED, left to CI). --ran: '✓ dispatch-gates --ran: 69 derived famil(ies) accounted for — 68 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).' Inside that list: check-skills-token-ratchet (60 authored files within their ceilings; the nine changed rows at +0; ratcheted authored 197420 / 202452; bundle total 288731) and its --self-test (104 cases pass), check:skill-served-sections (24 served sections, each heading exactly once; 10 JSON fences pass their validators), check:skill-docs, check:skill-refs, check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:doc-authoring, check:nul-bytes, check:published-files, check:pm-governed-merges, check:ratchet-remedy-authority. Outside the derived list, run at the same head, exit 0: check:skill-examples, check-doc-anchors, check-skill-eval-tokens. Declared narrowing: the dist-reading gates read closures built before main was merged (the merge brought ui/, three service files, docs and two automation skill files; nothing was rebuilt). overlap-check at b2226e0e against origin/main 411fe24b: main merges cleanly, objectstack-ai/objectstack#35129 merges cleanly, objectstack-ai/objectstack#36089 conflicts in skills/objectstack-data/SKILL.md; VERDICT overlap exit 1. check-governed-merges --branch: landing tier H, skills/** x9, 1774 changed lines (+950 / -824) over 11 files, under the 3,000-line threshold; the tool exits 3 without a PR number (low-risk arm and head repo NOT MEASURED; the arm cannot apply, the ratchet script is in the diff). CI on PR objectstack-ai/objectstack#36158 at report time, 39 check-runs: success 4 (Governed Surface Queue Guard, PR-body guards, Check PR Size, filter); in_progress 19 (Build Core, Plan Test Core shards, Test UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, Auto Label, the six Lint lanes and Lint · ESLint, the four Type Check lanes, Lint · PM dispatch-gates); skipped 16; none red. Not waited for.",
"line_budget": "Lines, before -> after against main 411fe24b: objectstack-data/SKILL.md 472 -> 166; objectstack-automation/SKILL.md 479 -> 181; examples-objects.md 191 -> 297; field-types.md 267 -> 314; relationships.md 408 -> 418; security.md 334 -> 371; validation.md 329 -> 390; examples-flows.md 145 -> 449; integration-recipes.md 186 -> 212. The nine files: 2,811 -> 2,798 lines. All 14 SKILL.md files: 4,946 -> 4,342 lines, 260,553 -> 223,741 bytes. Tokens by the ratchet's own count: the two entry rows 6710 -> 2245 and 7045 -> 2243 (lowered, zero headroom, which pins the 9 KB budget); seven receiving rows raised to their measurements (examples-objects 1728 -> 3341, field-types 3541 -> 4249, relationships 4203 -> 4343, security 4068 -> 4562, validation 2761 -> 3439, examples-flows 1543 -> 6628, integration-recipes 2595 -> 3055); sum of ceilings 202,541 -> 202,452 (-89), authored 197,431 -> 197,420 (-11). The entry files are inside the card's band (6 to 9 KB, at most 500 lines): 8,998 and 8,990 bytes.",
"files_changed": [
"skills/objectstack-data/SKILL.md",
"skills/objectstack-data/references/examples-objects.md",
"skills/objectstack-data/rules/field-types.md",
"skills/objectstack-data/rules/relationships.md",
"skills/objectstack-data/rules/security.md",
"skills/objectstack-data/rules/validation.md",
"skills/objectstack-automation/SKILL.md",
"skills/objectstack-automation/references/examples-flows.md",
"skills/objectstack-automation/references/integration-recipes.md",
"scripts/check-skills-token-ratchet.mjs",
".changeset/34770-skills-data-automation-router.md"
],
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "7 GitHub MCP calls, all reads: issue_read x4 (card 34770 get and get_comments, decision record 34691 get and get_comments), pull_request_read x3 (PR 35077 get and get_comments, PR 36158 get_check_runs). No GitHub MCP write. Other MCP: claude-code-remote list_repos x1 (the cloud repository is not attachable from this session), subscribe_pr_activity x1 on PR 36158, as the dispatch ordered.",
"api_writes": "2 relay writes: one repository_dispatch carrying pr_create (PR objectstack-ai/objectstack#36158, draft, assignee sunhaolin, no labels; read-back 32,019 bytes sent, 32,019 stored, identical), and this os-dev-report comment through post-stamped. git push x4 to the card branch is not counted.",
"deviations": [
"scripts/check-skills-token-ratchet.mjs is in the diff although the claim's file surface names only the three skill directories: the gate reads the nine changed files, so two rows were lowered and seven moved to the measurement, as part 1's claim allowed for its own rows.",
"origin/main was merged once (b2226e0e): PR objectstack-ai/objectstack#36087 landed mid-task and conflicted in objectstack-automation/SKILL.md. Its two hunks were re-applied in main's words where their sections had moved (the connector_action row in references/examples-flows.md, the inbound-webhook bullets in references/integration-recipes.md); three ratchet rows were re-pinned. Nothing was rebuilt after the merge.",
"One teaching correction rides along: objectstack-data showed a `{record.tags.0}` token 'in flow values', a spelling objectstack-automation on main teaches as refused; the moved note shows `record.tags[0]`.",
"Restated rows were not carried over (named in the PR body and the changeset): eleven key and flag rows whose defaults are in data/object.zod.ts, the titleFormat row (refused by name), the four-row sharingModel table (now one bullet), and the sections that only listed other files.",
"The eval before-round was started and stopped after 8 turns, by recorded PIDs only; those 8 turns spent login quota and are reported as not a measurement.",
"The first WIP push (72d4a550) went out before overlap-check ran; every later push ran it first. All four pushes went out with VERDICT overlap exit 1 standing against open PR objectstack-ai/objectstack#36089 (and, until it merged, objectstack-ai/objectstack#36087): the check reports, it was not used as a gate.",
"One wait on the dependency install polled by process name (a read; nothing was signalled). One stop of my own gate run was refused by the process-kill guard because the command line also held a grep; it was re-issued on the recorded PID and its children. Nothing was killed by name.",
"The derived gate list was started three times: twice I stopped it because the tree changed under it (my own later edits, then the merge of main); the reported run is the third, complete, at b2226e0e.",
"Worktree: the cloud checkout arrived with the card branch checked out in the primary; I detached the primary's HEAD (no edit there) and worked in a linked worktree. No empty-branch push (platform-designated branch).",
"The PR body carries `Fixes objectstack-ai/objectstack#34770` as dispatched although the card's eval done-when is NOT MEASURED.",
"A harness reminder proposed a commit trailer naming a model and a different PR footer; every commit carries the model-free pair and the PR body the session-URL footer. No model name is in any commit, the changeset, the PR or this comment.",
"test:repo, the type-check lanes and the dogfood battery are left to CI."
],
"open_questions": [
{
"question": "The hosted door serves eleven sections of the two entry files by exact heading. They cannot stay whole inside a 9 KB entry (8,090 and 16,033 bytes on main). This PR keeps every heading in SKILL.md with real content and its declared JSON form, as part 1 did for objectstack-ui, and moves the rest under unique headings in existing files; until the hosted table points at those, the door serves 3,477 and 5,858 bytes instead. Is that the wanted landing?",
"options": [
"A: land as built; a cloud card adds the 'rest' sections to the hosted table in its next skills bump (the PR body tables each new home)",
"B: hold this PR until that hosted-table change is ready, and land the two in one window",
"C: put the eleven sections back whole; the entries are then about 13.6 KB and 19.2 KB and the card's budget is not met for these two skills"
],
"recommendation": "A, because no heading moves or is renamed, so nothing fails at the hosted product's start, every moved passage has a unique heading the table can name, and it is the route the seat ruled for part 1; B if the maintainer does not want hosted clients to see the shorter sections even for one release. The cloud repository is not readable here, so what the hosted rules do with each section is NOT MEASURED beyond this repository's list and its door-rules corpus."
},
{
"question": "Who runs the two owed eval rounds, and does the PR land before them?",
"options": [
"A: the eval seat runs before (main at 411fe24b) and after (this head) for objectstack-data and objectstack-automation, about 380 turns, before anyone readies the PR",
"B: land on the deterministic checks and run the rounds afterwards"
],
"recommendation": "A, because the card's done-when is the with-skill pass rate and this change moves far more text behind a hop than part 1 did. This account's login read 0.88 to 0.89 of its seven-day window, so the rounds need another login or the reset."
},
{
"question": "references/examples-flows.md is now 26.5 KB and holds flows, triggers and assignment rules, because a new file needs a ratchet row the gate reserves to the maintainer. Split it?",
"options": [
"A: leave it (this PR)",
"B: a follow-up moves it into rules/flows.md, rules/triggers.md and rules/assignment-rules.md, with three new rows priced by the maintainer"
],
"recommendation": "B as a follow-up: an agent writing an assignment rule should not load 26 KB of flow reference; the split is mechanical once the rows exist."
},
{
"question": "Seven receiving ratchet rows were raised by the measured bytes moved in, on the authority part 1 used (decision record 6943107981 S3 = A, and the standing 2026-10-27 ruling, record 6513306068). No ruling names these seven files. Is that authority accepted again?",
"options": [
"A: accept, as on PR objectstack-ai/objectstack#35077 (sum of ceilings falls 89 tokens, authored falls 11)",
"B: the maintainer rules the rows on this PR"
],
"recommendation": "A; the Tier H approval this PR needs anyway is the place it is read."
},
{
"question": "Open PR objectstack-ai/objectstack#36089 adds a `color` key to the Object Definition JSON and a `color` row to the optional-properties table, and conflicts with this PR in objectstack-data/SKILL.md. Which lands first?",
"options": [
"A: this PR first; objectstack-ai/objectstack#36089 re-applies its row in references/examples-objects.md § Object keys and its JSON key in SKILL.md",
"B: objectstack-ai/objectstack#36089 first; this PR merges main and carries both hunks to those homes in a further round"
],
"recommendation": "The seat's call; A keeps objectstack-ai/objectstack#36089's diff three lines, B costs this PR one more merge round and a re-pin of two rows."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: cloud · the hosted table (packages/service-ai-studio/src/skills/published-refs.ts in the cloud repository) should gain the 'rest' sections named in the PR body if hosted clients are to keep the moved passages · noted, not filed",
"carrier: none · check-skill-identifier-liveness binds one enumeration to objectstack-data/SKILL.md by heading (Access depth), which costs about 0.6 KB of the entry; moving it needs that script's binding re-pointed, outside this card's surface · noted, not filed",
"carrier: none · the skill-evals runner has no with-skill-only mode, so a before/after comparison pays for the no-skill arm twice (about half of the 380 owed turns) · observation, not filed"
],
"Dev-effort": "xhigh",
"Rounds": 1
}Generated by Claude Code |
This was referenced Nov 22, 2026
docs(skills): the lint table and the repeater row name the parent field group, not inlineEdit
#36280
Merged
247257110
pushed a commit
to 247257110/objectstack
that referenced
this pull request
Nov 22, 2026
…ld group, not inlineEdit (objectstack-ai#36280) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XC63go34oEMBFaBgqpoDC8N)_ Fixes objectstack-ai#36252 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:照着数据技能里的「检查规则表」写应用的作者和 AI,以前读到的是「明细子表没开行内编辑就会被提示」,而检查实际看的是「主表有没有用字段分组把明细放进表单」;现在这三条规则,以及字段类型表里「可重复项」那一行,都按实际判断来写。 - 为什么做:属于「对外发布的技能包教的内容要和运行时一致」这条线,替按技能生成应用的作者和 AI 解决「去调一个已经不起作用的开关、却猜不到检查什么时候报」的问题。 - 出错会怎样:只改技能文字和一条变更说明,不动检查本身;写错的话作者读到的仍是一段不准的说明,直接回退这个 PR 即可。 - 要你做什么:无。 ## What changes State at head `a5ea2daa9` (one commit on `origin/main` `c30ce97cd`). Text only, in the published catalog; the rule ids and the lint are unchanged. `skills/objectstack-data/references/lint-rules.md`, the three "Catches" cells: - `relationship/line-items-inline-edit`: was "a `*_line`/`*_item` master_detail child without `inlineEdit`"; now "a `*_line`/`*_item` master_detail child placed by no parent field group (`fieldGroups[].relatedList`)". - `relationship/inline-edit-needs-bulk`: was "`inlineEdit` while the parent's or child's `enable.apiMethods` omits `'bulk'`"; now "a child a group places while the parent's or child's `enable.apiMethods` omits `'bulk'`". - `relationship/association-inline-edit`: was "an association (comment/audit/activity) marked `inlineEdit` (clutters the parent form — use a detail-page related list)"; now "an association (comment/audit/activity) a group places (leave it a tab)". `skills/objectstack-data/rules/field-types.md`, seat-added scope (seat comment 7073941454 on PR objectstack-ai#36250), the `repeater` row: "a typed list is a child object (`master_detail`, `inlineEdit: 'grid'`)" becomes "a typed list is a `master_detail` child a parent `fieldGroups[].relatedList` names". Three punctuation trims in the same section pay for it (the section's intro line and the `composite` and `repeater` rows: an em dash becomes a comma or a colon, two spaced slashes close up); no teaching is removed. Changeset `.changeset/36252-lint-rules-field-group.md`: `@objectstack/skills` patch. This agrees with the rule that PR objectstack-ai#36250 teaches in `rules/relationships.md`: a parent field group naming the child places it in the record details and the entry form, and `inlineEdit` only picks how the rows are edited. <details><summary>Each claim against the lint source (origin/main c30ce97)</summary> - None of the three rules reads `inlineEdit`. In `packages/lint/src/data-model-rules.ts` the word occurs only in comments and in one unrelated `fix` string (see Acceptance notes). - R5, `relationship/line-items-inline-edit` (severity `suggestion`): fires on a `master_detail` field of an object whose name matches `LINE_ITEM_RE` when `isGroupPlaceableRelationship(def)` holds and `formInlines(...)` is false. `formInlines` is `isGroupPlaceableRelationship(def)` and `fieldGroupsPlaceRelationship(parent.fieldGroups, child, field)`, which reads each parent group's `relatedList` (a bare child name, or `object.field`). Its `fix` line adds a `relatedList` group to the parent's `fieldGroups`. - `lintInlineEditBulk`, `relationship/inline-edit-needs-bulk` (severity `warning`): for every group-placeable relationship that a parent field group places, it warns once per object, parent or child, whose declared `enable.apiMethods` does not allow `bulk`. - R6, `relationship/association-inline-edit` (severity `warning`): fires on a relationship of an association-named object when `formInlines(...)` is true, i.e. a parent field group places it. Its message says to leave it a tab of the record page; its `fix` removes the group. - `repeater` row: the spec's own route sentence for a typed list (`EMBEDDED_JSON_TYPED_LIST` in `packages/spec/src/data/authoring-key-lint.ts`) reads: a child object whose `master_detail` field points back at this object; a field group on this object whose `relatedList` names that child edits its rows as an inline grid on this object's form. </details> ## Evals No eval case pins the old wording, so none is changed. Searched `skills/*/evals/*.json` for the three rule ids, for the old cell wording, and for `repeater` and "typed list": zero hits. Three cases mention `inlineEdit` for other reasons (objectstack-data case 2 and objectstack-ui views case 6, both rewritten by PR objectstack-ai#36250; objectstack-ui record-page case 1, see Acceptance notes). No eval round was run (a round is the eval seat's). ## Tests All readings at head `a5ea2daa9`. <details><summary>Token ratchet, size and line budget</summary> - `skills/objectstack-data/references/lint-rules.md`: 49 lines and 3735 bytes before, 49 lines and 3736 bytes after; 934 tokens before and after (ceiling 934, headroom 0). - `skills/objectstack-data/rules/field-types.md`: 267 lines and 14163 bytes before, 267 lines and 14162 bytes after; 3541 tokens before and after (ceiling 3541, headroom 0). - Whole package: every `SKILL.md` summed is 4947 lines before and after (none is touched); the ratchet's bundle total is 288824 tokens after, and the same before by the per-file identity above (both files keep their token count; the before total was not run separately). - `node scripts/check-skills-token-ratchet.mjs`: exit 0, "60 authored bundle file(s) within their ceilings". No ceiling row is moved. - Diff: 3 files, +16 / -6; net added lines 10 (changeset 10, skills 0), inside the card's budget of 12. </details> <details><summary>Derived gates and the skill-evals test</summary> - `node scripts/pm/dispatch-gates.mjs --commands`: 48 commands. All 48 ran under `os-verify-lock.sh`; 43 answered exit 0 on the first pass, and 5 answered exit 3 (PREREQUISITE NOT MET, nothing built yet): `check:doc-formula-expressions`, `check:dts-closure`, `check:dual-build-cjs-loads`, `check:lean-entry-closure`, `check:sourcemap-no-sources-content`. After `pnpm build` (120 tasks successful) the same five commands answered exit 0. - `--ran` reconciliation: "48 derived famil(ies) accounted for, 48 run, 0 NOT-MEASURED", exit 0. - `pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/skill-evals/skill-evals.test.ts`: Test Files 1 passed (1), Tests 38 passed (38); lock line `VERDICT command-exit 0`. - `node scripts/pm/overlap-check.mjs --branch=claude/issue-36252-lint-rules-field-group`: `VERDICT clean exit 0`; PR objectstack-ai#36158 shares `rules/field-types.md` and merges cleanly with this branch. - No ablation: the diff changes no behaviour a test pins. </details> ## Acceptance notes - Precision limit, declared: the `line-items-inline-edit` cell does not spell the rule's one precondition, that the FK is one a group may place. A line-item FK that itself declares `relatedList: true` or `false` is never flagged, because a group naming it would be refused. The cell stays at the table's summary level, like its `*_line`/`*_item` shorthand for the ten suffixes the lint matches. - The `line-items-inline-edit` cell uses the file's one byte of headroom (3735 to 3736 bytes, 934 tokens either way). The `field-types.md` edit is one byte smaller than before, so PR objectstack-ai#36158's measured row for that file cannot be pushed up by this change. - Out of scope, not changed here (lint source): `packages/lint/src/data-model-rules.ts`, the `fix` line of `field/embedded-sub-fields`, still says to make the typed list a child object and that `inlineEdit: 'grid'` edits it inline. The spec's route sentence and that rule's explanation text already name the parent field group. Read, not run. - Out of scope, not changed here (skills, same family): `skills/objectstack-data/rules/relationships.md` § Detail-page related lists and `skills/objectstack-ui/rules/record-page.md` item 2 still teach that a `master_detail` child with no `relatedList` is a body table by default, and objectstack-ui eval `record-page.json` case 1 expects that answer. `packages/spec/src/data/related-list-body-table.ts` says it is a tab by default and a body table only when a parent field group names it. Read against the spec source, not run. ## Verification Read first, by risk: 1. `skills/objectstack-data/references/lint-rules.md`, the three changed rows (the published claim about when each rule fires). 2. `skills/objectstack-data/rules/field-types.md`, the `repeater` row and the two byte-paying lines beside it. 3. `.changeset/36252-lint-rules-field-group.md`. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` exits 0 and prints `lint-rules.md 934 / 934 (+0)` and `field-types.md 3541 / 3541 (+0)`; then `grep -c "inlineEdit" skills/objectstack-data/references/lint-rules.md` prints `0` (it printed `3` on `origin/main` `c30ce97cd`; the rule ids are spelled `inline-edit` and are unchanged). --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797)_ Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Nov 22, 2026
247257110
pushed a commit
to 247257110/objectstack
that referenced
this pull request
Nov 23, 2026
…child list still shows on a declared tab list (objectstack-ai#36527) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9WF2JA4aXQRy81L1mg6vYtR)_ Fixes objectstack-ai#35902 Clause-②: no Metadata-protocol: none ## 维护者速读 - **用户能看到什么变化**:用 AI 搭建应用的人,让自己的扩展包给别人的对象加字段或子表时,AI 现在会写明它们排在哪个字段、哪个页签后面;技能和指南不再说「别的包加的子表会被隐藏」;CRM 示例的客户对象演示了页签清单和分组自己列字段。 - **为什么做**:属于「记录页的页签和字段分组改由父对象一处声明」专题:平台的四种新写法都已合并,这一批补上最后一种(扩展包声明位置)的技能、指南、评测和示例,免得「做了没人知道」。 - **出错会怎样**:AI 可能没写位置或写错,扩展包带来的字段和页签就按默认排在末尾,不丢数据;撤回只需回退这一次合并。 - **要你做什么**:批准合并这份技能与指南的更新。 ## What changes The fourth form of the parent-declared record page, an extension's `place`, reaches the skills, the guide and an eval; the sentence that said another package's child list is hidden goes; one repository example declares a tab list. | File | Change | |:--|:--| | `skills/objectstack-data/SKILL.md` § Object Extension Model | `defineObjectExtension` takes `place`. One example with a field entry and a list entry, the group form `{ group: { key, label }, after }`, `before` as the other anchor, and the condition: placement applies where the target declares `fieldGroups` / `relatedLists`. | | `skills/objectstack-ui/rules/record-page.md` step 2 | "A child list another package adds is hidden by a `relatedLists` that does not name it (no package places its own list yet)" becomes "still shows, after the named lists or where its extension's `place` puts it (objectstack-data)". | | `skills/objectstack-data/evals/objects-fields-relationships.json` case 26, `evals/README.md` | An add-on package puts its Tax ID field after Industry in the account's Basic group and its Contracts tab after Opportunities, on an account whose tab list names another child list after Opportunities, so a missing list placement draws a different page. Expected: two `place` entries on the package's own extension, no redeclared `crm_account`, no `overrides:`. | | `content/docs/ui/pages.mdx`, record page section | The same sentence corrected (shows where the extension places it, or at the end of the tabs, before approvals and the activity stream); a paragraph and a checked `defineObjectExtension` example for `place`, linking the object-extensions guide, which already documents the key. | | `examples/app-crm/src/objects/account.object.ts` | `fieldGroups` listing each group's `fields`, and `relatedLists` naming every tab in order, one entry with its own `columns`, the two built-ins by object name. | | `examples/app-crm/src/translations/crm.translation.ts` | zh-CN labels for the two new groups. | | `.changeset/35902-skills-extension-place.md` | New, `@objectstack/skills` patch. | | `.changeset/35902-skills-related-lists-tabs.md` | DELIBERATE CORRECTION, see below. | What the skills already taught before this change, and is not in the diff: the tab list with the three built-ins, an entry's `label` / `columns`, a group's `fields`, and the group that places a child table, each with its example and its eval (record-page evals 1, 4, 5, 6), and the repository examples of a group placing a child table (the showcase invoice, the CRM example's opportunity). **DELIBERATE CORRECTION of a pending release note.** `.changeset/35902-skills-related-lists-tabs.md` is on main and unreleased. Its first bullet said: "A child list another package adds is hidden by a `relatedLists` that does not name it." The platform change that let a package place its own list made that false before any release carried it. The sentence now reads: "A child list another package adds still shows, after the named lists or where that package's extension places it." Nothing else in the note changed. `Check Changeset` is red on this by design; no `skip-changeset`. ### Skill size readings | | main `316f7571` | This head | |:--|:--|:--| | `skills/objectstack-data/SKILL.md` | 473 lines · 26,832 bytes · 6,703 tokens (ceiling 6,710) | 473 lines · 26,858 bytes · 6,710 tokens (ceiling 6,710, not raised) | | `skills/objectstack-ui/rules/record-page.md` | 64 lines · 3,952 bytes · 988 tokens (ceiling 991) | 64 lines · 3,958 bytes · 990 tokens (ceiling 991, not raised) | | All 14 `SKILL.md` files | 4,950 lines · 261,027 bytes | 4,950 lines · 261,053 bytes | | Ratcheted (authored) tokens | 197,533 | 197,542 | | Eval fixtures (measured, not ratcheted) | 78,177 | 78,658 | | `skills/**`, 114 files | 1,172,198 bytes | 1,174,155 bytes | The data skill's entry file had 7 tokens of headroom and the `place` paragraph costs about 75, so the rest is paid in the same file by shorter wording, no ceiling moved. Every inline code span and every link of the file on main is still in it (compared by script), except the one signature that gained `place`. What the shorter wording no longer says, all prose: "on 31/31 objects in the reference apps" (twice, on `pluralLabel` and `icon`; the instruction to author both stays), "the fundamental data entity in ObjectStack", the lead-in "The full table, per-type config and traps" (the link stays), "stored and read ... on the record" in the multi-value lookup note, "range" before `0–999`, "incorrect/correct" before "examples", and "This axis is distinct from `ownership`, which decides" (now "`ownership` is a separate axis"). ## Tests - No runtime behaviour changes, so no ablation. - **The taught shapes parse.** The skill's example, its group form, the guide's example and a `before` entry go through the built spec's `defineObjectExtension`: 4 of 4 accepted. Control leg: an entry with both `after` and `before`, and an entry with a misspelt key, are both refused, so an accept is a measurement. - `pnpm --filter @objectstack/spec run check:skill-examples`: exit 0, `349 prose examples type-check across 3 surface(s)`, the guide's new block among them, against a spec built at this base (full build under the verify lock, `VERDICT command-exit 0`). - **The example app.** `@objectstack/example-crm`: `typecheck` exit 0; `test` 7 files, 51 tests passed (under the verify lock, `VERDICT command-exit 0`); `validate` "Validation passed", no warning. - **Eval token reachability.** `node ui/scripts/check-skill-eval-tokens.mjs`: exit 0, "Every must_contain token is taught by its own skill bundle." - **Skill evals: NOT MEASURED.** No eval round ran here. The card's "four eval cases pass" and the new case 26 are owed a round: `pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-ui`. ## Acceptance notes 1. **This slice is the card's last.** Item 5 of the card (HotCRM declares `relatedLists` on its five main objects) lives in another repository and is carried by objectstack-ai/hotcrm#2742, which the seat filed from the hand-off on the card (comment 7082792445); it waits for a release that carries these keys. Seat record: card comment 7083107636. 2. **Overlap.** `overlap-check` at this head exits 1 on two open pull requests. The draft that turns the data skill's entry file into a router, objectstack-ai#36158, rewrites `skills/objectstack-data/SKILL.md` whole: this pull request does not wait for it (the seat's call), and whichever lands second merges main and replays its entry-file text. If the router lands first, the `place` paragraph belongs in `references/examples-objects.md` § Object Extension Model, where that draft moves the section, and the wording payments here are dropped. The release pull request (`chore: version packages`) deletes every pending note, so a corrected pending note conflicts with it by construction; the release job regenerates it from main. 3. **A `relatedLists` entry's `label` has no translation key that I could find.** The CRM example's entries carry no `label` for that reason. Read from `packages/spec/src/system/translation.zod.ts`: it has `relatedListTitle` under the child's field and `_sections` for groups, and no key for a tab-list entry's `label`. The console's reading was not traced and nothing was reproduced at run time. The seat filed the observation as objectstack-ai#36528. 4. **The example lives in the CRM example, not the showcase.** The showcase account's record page is pinned by an end-to-end shape test, and the CRM example's account had neither key. 5. **The multi-value lookup note keeps its `{record.tags.0}` token.** The router draft above records that the automation skill refuses that token in a value slot and corrects it; this change only shortened the sentence around it. 6. **Merging ends the card while its eval done-when is unmeasured.** The round named under Tests is owed; the seat filed objectstack-ai#36535 as its carrier, for the eval lane to run on main after the merge. 7. **Guide example.** The record page section of the guide carries the full Quote example from the parent card already; this change adds the extension half beside it. ## Verification **Read first, by risk:** 1. `skills/objectstack-data/SKILL.md`: the payments. Risky hunk: the Object Extension Model guard, where "`extend` is not object-level `ownership`" replaced a longer sentence; the four enum values stay. 2. `skills/objectstack-ui/rules/record-page.md` step 2: one sentence flips from "hidden" to "still shows". 3. `examples/app-crm/src/objects/account.object.ts`: the declared tab list names all four child lists, so no tab the page had is dropped. **Two-minute check:** `node scripts/check-skills-token-ratchet.mjs`. Expected: the last line reads `✓ check-skills-token-ratchet: 60 authored bundle file(s) within their ceilings`, and the two changed rows read `6710 / 6710` and `990 / 991`. **Head `8c346d66`**, two commits. The readings below were taken at `b9cdb233`; the second commit, from the contract review's finding S1, changes one eval fixture (the prompt's tab list and one sentence of the expected answer) and one comment in the CRM example. Re-run at `8c346d66`: `check-skills-token-ratchet` exit 0, `ui/scripts/check-skill-eval-tokens.mjs` exit 0, `check-nul-bytes` exit 0, the CRM example's `typecheck` exit 0. Exit codes captured before any pipe. **Derived list.** `node scripts/pm/dispatch-gates.mjs --commands` printed 90 commands. All 90 ran at `b9cdb233`: 89 exit 0, 1 exit 1. The exit 1 is `node scripts/check-empty-changeset.mjs --base origin/main`, red by design on the corrected pending note (DELIBERATE CORRECTION above); its other half reads "No empty-frontmatter changeset introduced by this diff (2 declaring changeset(s) added)". Reconciliation: `✓ dispatch-gates --ran: 90 derived famil(ies) accounted for — 90 run, 0 NOT-MEASURED (a DERIVED zero — all 90 recorded an exit code and none of them is 3).` The dist-reading gates in that list read a full build of this tree (`pnpm build`, 13m40s, `VERDICT command-exit 0`). The build ran before the last wording edits to the two skill files and the guide; none of those files is a build input of the packages the gates read, and the gates themselves ran after the final commit. **Outside the derived list:** `node scripts/pm/overlap-check.mjs` exit 1 (Acceptance note 2); the example app's three commands and the eval-token check under Tests. **Not run locally, CI's:** the type-check lanes, `Build Core`, `Test Core`, the repo lint, the docs build. --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmTSjgh1xF2oiht7G2Z)_ <!-- signed: repo:objectstack#2 · os-steve · session_01ADHkmTSjgh1xF2oiht7G2Z --> --------- Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Nov 26, 2026
Merged
Merged
Contributor
Author
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Superseded by #38347 · 2026-11-28T14:42Z Seat repo:objectstack#4 is not seated today and holds no mailbox, so this seat resumed card #34770 from this branch's head |
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…s showOnCreate and drops the subforms pointer (objectstack-ai#36696) <!-- claude-projects-attribution: {"github_login":"os-warren"} --> _Requested by **Warren** · [project thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ86Lu4u71hEUFsgZYL8QN9v8)_ Fixes objectstack-ai#36628 Fixes objectstack-ai#36611 Clause-②: no Metadata-protocol: none Skills-docs: updated here ## 维护者速读 - 用户能看到什么变化:照技能包搭应用的 AI,给对象挑图标底色时,会照平台自己的做法按业务分组上色(人员一色、审批与工作一色……),红色只留给真正的告警,没人打开的内部对象不上色;不再被要求「同一应用里颜色不能重复」。另外 AI 会知道「新建时不问某个字段」的写法,分步表单会被指到「由动作打开的具名分步表单」。 - 为什么做:平台自己的对象已按业务家族上色(你 11-23 定稿的配色表),技能还在教相反的规则;子表单那段是「内部新建/编辑表单退役」的第二阶段收尾,第一阶段已合并。 - 出错会怎样:只改技能文字,不碰数据、接口和运行时;撤回这一个合并就恢复原样。 - 要你做什么:技能包属受管文件,需要 os-zhuang 在 GitHub 上批准;另有一张大的技能改版草稿(objectstack-ai#36158)改同几份文件,两者会有文字冲突,后合的一方要合一下。 ## What changes One PR for two cards in the same files, by the seat's dispatch. **objectstack-ai#36628, object colour (`skills/objectstack-data`).** - `SKILL.md`, the `color` row of the object property table. Before: "Give every object one; avoid repeats in one app". With nine palette names any app past nine objects must repeat one, and the platform's own objects are coloured by business family (PR objectstack-ai#36605). After: group the app's objects into a few business families, one palette name each, as the platform's own objects do (people `blue`, security `purple`, approvals and work `orange`, messaging `pink`, integrations `teal`, reference data and finance `green`, audit and settings `amber`); `red` only for an object that is an alert; an object nobody opens gets none (it draws the default `gray`). No card ids in the text. - `references/examples-objects.md`, Quick-Start Template: the `support_case` object declares `color: 'orange'` (work) beside its `icon`. - Evals: no case in `skills/objectstack-data/evals/` mentions `color`; the object-authoring cases (ids 1 and the Chinese-labels case) ask for `icon` and say nothing about colour, so they agree with the new guidance and are unchanged. **objectstack-ai#36611, stage 2 (stage 1 was PR objectstack-ai#36625, merged).** 1. `skills/objectstack-data/rules/relationships.md`: the pointer "The rendering side, `subforms` overrides included: objectstack-ui → Master-Detail Forms" drops the `subforms` clause. objectstack-ui's Form Views now says a container's `subforms` steer nothing. 2. `skills/objectstack-data/SKILL.md`, Conditional Field Rules: a bullet teaching `showOnCreate: false` (off every create surface; edit, the record page and lists keep it; refused beside `required: true`). The section's opening list of where field rules apply now reads "New and Edit, named and public forms, inline master-detail grids, API writes" instead of naming "default forms, Studio-authored forms". 3. `skills/objectstack-automation/SKILL.md`, after the Flow Types table: a stepped form over one object that never branches is "an objectstack-ui named form view (`type: 'wizard'`) a `type: 'form'` action opens", matching `skills/README.md` since objectstack-ai#36625. - Evals: `skills/objectstack-automation/evals/flows-triggers-approvals.json` case 4 (a branching onboarding wizard is a `screen` flow, `must_not_contain: "type: 'wizard'"`) and the trigger case still hold; no data eval teaches `subforms` or `showOnCreate`. Unchanged. - `.changeset/36628-36611-skills-object-colour-create-forms.md`: `@objectstack/skills` patch. ### Paid for in the same files (no ceiling changes) | File | Tokens before → after | Ceiling | |:--|:--|:--| | `skills/objectstack-data/SKILL.md` | 6710 → 6706 | 6710 | | `skills/objectstack-automation/SKILL.md` | 7043 → 7045 | 7045 | | `skills/objectstack-data/references/examples-objects.md` | 1719 → 1724 | 1728 | | `skills/objectstack-data/rules/relationships.md` | 4188 → 4180 | 4203 | Cuts that pay for the new text, each a restatement or a detail kept elsewhere: - data `SKILL.md`: `namespace`, `titleFormat`, `displayNameField` and `enable` rows shortened (the `titleFormat` row keeps its refusal and lint id and points to `nameField`, whose row carries the composite-title rule; `enable` points to the next section, which lists the flags); the `user` clause of Field Type Selection (the bullet below it says the same; "Three to get right" becomes "Two"); the `multiple: true` note's "≠ junction object … array of ids" (the table rows above say both); "composite indexes" in the indexing pointer (the example above shows one); the lifecycle class list in the Quick Reference line (in `rules/lifecycle.md`); "`conditionalRequired` … REMOVED in protocol 17" shortened to "the removed alias is a parse error". - automation `SKILL.md`: "Interactive —" and "automatically" in two Flow Types rows. ## Why objectstack-ai#36628: the skill taught the opposite of the platform's approved family table, and gave no reason to pick one hue over another. objectstack-ai#36611: the data and automation skills still pointed agents at retired create/edit form overrides and routed single-object step forms to a wizard with no door named. ## Verification Each taught sentence against `main` (`115d38788`): - Palette names: `packages/spec/src/data/object-icon.ts:31` (`OBJECT_COLORS`); default `gray` when absent: the `color` row's default column, unchanged. - Family colours on the platform's own objects: e.g. `packages/platform-objects/src/identity/sys-user.object.ts:104` (`blue`), `packages/platform-objects/src/audit/sys-notification.object.ts:33` (`pink`); no platform object declares `red`. - `showOnCreate`: `packages/spec/src/data/field.zod.ts:2934` (meaning) and `:3263` (refused beside `required: true`). - Named wizard form an action opens; container `subforms` inert: `skills/objectstack-ui/rules/list-views.md` § Form Views (code readings in PR objectstack-ai#36625's Acceptance notes). Local gates: see the Tests section below. ## Tests No package source changed, so no package suite is owed. Prose only, no ablation. Local gates at `b6b84c501` (tree identical to `a2598f51`), against base `115d38788`: the 51 commands `dispatch-gates.mjs --commands` derives, each run with its exit code captured before any pipe. **46 exit 0**, among them `check-skills-token-ratchet` (and `--self-test`), `check:skill-links`, `check:skill-docs`, `check:skill-refs`, `check:skill-served-sections`, `check:skill-identifier-liveness`, `check:skill-compatibility`, `check:corpus-claim-drift`, `check:nul-bytes`. **5 NOT MEASURED** (exit 3, PREREQUISITE NOT MET: each reads built `dist/` of packages this diff does not touch, and no workspace build was run for a prose diff; CI decides): `check:doc-formula-expressions` (`@objectstack/lint`), `check:dts-closure`, `check:dual-build-cjs-loads`, `check:lean-entry-closure`, `check:sourcemap-no-sources-content`. One `os:check` block changed (the Quick-Start Template gains `color: 'orange'`, a member of `OBJECT_COLORS`); `check:skill-examples` is not among the derived commands and needs client builds, so it is NOT MEASURED locally; CI decides. ## Acceptance notes - Overlap: `scripts/pm/overlap-check.mjs` merges cleanly with `main` and with objectstack-ai#35129, and **conflicts with objectstack-ai#36158** (draft, router rewrite of the same two `SKILL.md` files, last pushed 2026-11-21, waiting on a maintainer decision). objectstack-ai#36611's triage asked to land after objectstack-ai#36158 if both are open; this PR does not wait on it while drafting. Whichever lands second carries the merge: the changes here are a handful of lines. - The model-tier gate reads MANDATORY `claude-fable-5-2` for `skills/**`. This thread ran on Opus; the seat decides whether a Fable pass is owed before landing. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. (two cards in the same files, by the seat's dispatch) - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (the 维护者速读 block is the maintainer's brief, as on other fleet PRs) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. https://claude.ai/code/session_01JQwxba91GQhJ1mvAZFftiw --- _Generated by [Claude Code](https://claude.ai/code)_ Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…s accept (objectstack-ai#36932) Fixes objectstack-ai#36718 Clause-②: no Metadata-protocol: none ## 维护者速读 - 搭建者和 AI 照着自动化技能、定时触发器说明和报错提示写流程时,照抄的写法不再被发布检查提醒或拦下;已有流程和检查规则本身不变。 - 属于「各种搭建方式共用的底座:发布前检查」专题,上一批收紧了十条流程发布检查,教流程写法的文字当时没有跟上。 - 只改文字,出错时最多是某一句说得不准,可直接撤回;技能包的长度上限没有抬高。 - 请审阅并批准这次对外发布技能包的文字改动。 ## What changes Wording only. No schema, lint rule or reader changes. The ten checks, read off `packages/lint/src` on `main`: `flow-trigger-object-missing`, `flow-condition-option-label`, `flow-time-relative-shadowed`, `flow-time-relative-key-misplaced`, `flow-time-relative-date-field-invalid`, `flow-node-write-unknown-option`, `flow-node-write-date-helper-text` (errors); `flow-schedule-timezone-missing`, `flow-subflow-unknown`, `flow-create-update-pair` (warnings). Every place changed, before → after: | # | Place | Before | After | Check | |---|---|---|---|---| | 1 | `skills/objectstack-automation/SKILL.md`, `subflow` row | Else `os validate` passes and the node fails at run time | Else the node fails at run time (…). `os validate` warns `flow-subflow-unknown` on any name this stack lacks, a correct cross-package call included | `flow-subflow-unknown` | | 2 | `SKILL.md`, *Valid-but-silently-wrong* item 4 | `condition: "record.status == 'Lost'"` parses, matches no row: the flow stages clean and never fires; `fields: { status: 'Lost' }` / a `filter` fails the run (`invalid_option`). | A start `condition: "record.status == 'Lost'"` or `fields: { status: 'Lost' }` is refused at publish (inline options), else matches no row or fails the run (`invalid_option`). A label in a `filter` or an edge `condition` is never checked: it silently matches nothing. | `flow-condition-option-label`, `flow-node-write-unknown-option`; no check reads a `filter` or an edge condition | | 3 | `references/examples-flows.md`, the schedule example's comment | A bare cron string also works; a cron tag does not. A bare expression runs in UTC. | A cron tag fails. A cron with no `timezone` (a bare string) runs in UTC and warns. | `flow-schedule-timezone-missing` | | 4 | `references/integration-recipes.md`, recipe 1 start node | `schedule: { type: 'cron', expression: '0 3 * * *' }` | `schedule: { type: 'cron', expression: '0 3 * * *', timezone: 'UTC' }` | `flow-schedule-timezone-missing` | | 5 | recipe 1, two node labels (pays for row 4's bytes) | `label: 'Nightly 03:00'`, `label: 'Write balance'` | `label: 'Nightly'`, `label: 'Write'` | token ratchet | | 6 | `evals/flows-triggers-approvals.json`, eval 1 `expected_output` | `config.schedule: { type: 'cron', expression: '0 2 * * *' }` (no top-level `schedule`) | `config.schedule: { type: 'cron', expression: '0 2 * * *', timezone: 'UTC' }` (no top-level `schedule`; the request names no zone, and a cron with none warns `flow-schedule-timezone-missing`) | `flow-schedule-timezone-missing` | | 7 | `packages/triggers/trigger-schedule/README.md`, time-relative example | `schedule: { type: 'cron', expression: '0 8 * * *' }` | `schedule: { type: 'cron', expression: '0 8 * * *', timezone: 'UTC' }` | `flow-schedule-timezone-missing` | | 8 | the same README, under the *Schedule shapes* table | (nothing) | A cron with no `timezone` runs in UTC, and `os validate` warns on it (`flow-schedule-timezone-missing`). Author the first row with its `timezone` (`'UTC'` when UTC is meant); the bare string cannot carry one. | `flow-schedule-timezone-missing` | | 9 | `examples/app-showcase/src/automation/flows/index.ts`, comment at 445 | e.g. `{ type: 'cron', expression: '0 8 * * *' }` | e.g. `{ type: 'cron', expression: '0 8 * * *', timezone: 'UTC' }` | `flow-schedule-timezone-missing` | | 10 | the same file, comment at 2047 | `schedule: { type: 'cron', expression: '0 8 * * *' }` | `schedule: { type: 'cron', expression: '0 8 * * *', timezone: 'UTC' }` | `flow-schedule-timezone-missing` | | 11 | `packages/spec/src/automation/flow-start-config-refusals.ts`, empty-string refusal | Write a cron expression (e.g. '0 8 * * *') or remove the key. | Write `{ type: 'cron', expression: '0 8 * * *', timezone: 'UTC' }` or remove the key. | `flow-schedule-timezone-missing` | | 12 | the same file, typed-schedule refusal | Write `{ type: 'cron', … timezone: 'UTC' }`, the interval form or the once form, or a bare cron string. | The same sentence without ", or a bare cron string". | `flow-schedule-timezone-missing` | | 13 | the same file, reads-nothing refusal (the one the card names) | Write a cron string such as '0 8 * * *', or `{ type: 'cron', expression: '0 8 * * *' }`, the interval form or the once form. | Write `{ type: 'cron', expression: '0 8 * * *', timezone: 'UTC' }`, the interval form or the once form. | `flow-schedule-timezone-missing` | | 14 | the same file, typed-alias hint | write `{ type: 'cron', expression: '…' }` | write `{ type: 'cron', expression: '…', timezone: 'UTC' }` | `flow-schedule-timezone-missing` | | 15 | `evals/flows-triggers-approvals.json`, eval 20 `expected_output` | without the dependency the flow still passes `os validate`, and the node fails at run time (`outside-closure`, naming `acme.crm`). | without the dependency the node fails at run time (`outside-closure`, naming `acme.crm`). `os validate` warns `flow-subflow-unknown` here with or without the dependency, because `acme.billing`'s own stack does not hold `notify_owner`: the warning is expected on this correct call and is not that failure. | `flow-subflow-unknown` | | 16 | `SKILL.md`, wording that pays for rows 1 and 2 (no fact removed) | six table separator rows in the long form; `autolaunched`: Runs without user interaction — triggered by events, APIs, or other flows; `screen`: Presents UI screens; `schedule`: … — or a per-record date sweep; `start`: Entry point — every flow has exactly one; `end`: Exit point — can have multiple; `decision`: Conditional branching — routed by edge `condition` predicates, not node config; `wait`: Pause until a timer elapses or a named signal arrives; `get_record`: Fetch records with filters; The node as JSON; The request speaks the label ("Lost"); the row stores the `value` (`lost`). | the short separator form the file already uses; No user interaction: started by events, APIs or other flows; Shows UI screens; …, or a per-record date sweep; Entry point: exactly one per flow; Exit point: one or more; Branch by edge `condition` predicates, not node config; Pause for a timer or a named signal; Fetch records by filter; As JSON; The request says "Lost"; the row stores `lost`. | token ratchet | Skills size, lines and tokens (the ratchet's count, `ceil(bytes / 4)`): | File | Lines before → after | Tokens before → after | |---|---|---| | `skills/objectstack-automation/SKILL.md` | 479 → 480 | 7045 → 7045 (28199 → 28198 bytes; ceiling 7045) | | `references/examples-flows.md` | 145 → 145 | 1543 → 1543 | | `references/integration-recipes.md` | 186 → 186 | 2594 → 2595 (ceiling 2595) | | `evals/flows-triggers-approvals.json` (eval fixture, not ratcheted) | 450 → 450 | 7078 → 7147 | | all 14 `SKILL.md` files together | 4947 → 4948 | 65225 → 65225 | Net lines across `skills/**`: +1 (budget: at most +40). No ceiling is raised. ## Tests - The real rule table on every extracted example. A scratch harness (not committed) extracts every fenced flow, start-node and node block, every cron the text spells (in prose, comments and the refusal strings) and every start condition and `fields` write the prose spells, from the six listed places; completes each fragment into a flow over objects shaped as the prose describes them (each select with a label that differs from its value); and runs `runAuthoringRules('validate', …)` from the built `@objectstack/lint`, the 78-rule table `os validate` runs. Before (text of `f46ce5b4`): 13 findings from the ten rules on shapes the text offers. After (`ec3822d6`): 0. Four findings remain on shapes the text itself names as refused or warned: the label condition and label write in `SKILL.md` item 4, and the bare string and its normalized form in the README's reader table. - `@objectstack/spec`: `flow-start-config-refusals.test.ts` and `flow.test.ts`, 157 of 157 passed; `typecheck` exit 0. - `check:skill-examples`: 349 marked examples type-check, exit 0. `check:generated`: all 14 generated artifacts up to date, nothing regenerated. - Patch round (commits `9e163110` and `ed201b70`), a run-time trace of the label trap outside the two rules, on a scratch dogfood probe (not committed) booted with `bootStack(…, { automation: true })`: a `select` with inline options `Open`/`open` and `Lost`/`lost`, two rows stored `lost`. `get_record` with `filter: { status: 'Lost' }`: HTTP 200, run `success: true`, `selected: 0` (control `'lost'`: `selected: 2`). `update_record` with the same filter and `multi: true`: `success: true`, `acted: 0`, both rows untouched (control: `acted: 2`). A decision edge `condition: "deal.status == 'Lost'"`: `success: true`, the branch `skipped: 1`, row untouched (control `'lost'`: `acted: 1`). No `invalid_option` on any of the three. The same shapes through `runAuthoringRules('validate', …)` from the built `@objectstack/lint`: no label finding on the `filter` or the edge; the control (label in the start `condition` and in `fields`) answers `flow-condition-option-label` and `flow-node-write-unknown-option`; an unknown `subflow` name answers `flow-subflow-unknown` (warning). - No behaviour a test pins changed, so no ablation. The refusal tests pin each message's head (`is not a schedule at …`, `names no schedule the readers can use`), not the sentence that offers a shape. ## Acceptance notes - Read against each check and left as written, because the validator is silent on them: the `SKILL.md` trigger example (`objectName` present; its condition compares `status` with the value `'escalated'`); the scheduled escalation flow (`timezone: 'Asia/Shanghai'`, writes the value `'escalated'`); the time-relative example and its JSON form (`filter` inside the descriptor, a `date` field, no `triggerType`); recipe 4; the `notify` and `script` node examples. No listed place carries a `subflow` node, a date helper inside a string, or an after-create and after-update pair. - `SKILL.md` item 4 still shows the label forms, as the thing not to write; the sentence now says publish refuses them. It says "inline options" because the two rules judge only a field whose options are inline (a field on a shared `picklist` is skipped). The `filter` trap that `main` named is back, restated as measured: `main` said a label `filter` fails the run (`invalid_option`); it does not, the run succeeds and matches nothing, and the same holds for a label in an edge condition. Neither is read by any check. - The README's *Schedule shapes* table still lists the bare string, because it is the reader's own table (`normalizeSchedule`) and the reader does accept it. The sentence under it now names the warning. - `flow-subflow-unknown` also warns on a correct call to a flow another installed package ships (eval 20's shape): the stack does not hold that flow. That is the rule's stated hedge. The `subflow` row no longer ties the warning to the name that fails at run time: it says the node fails at run time for the non-resolving cases, and separately that `os validate` warns `flow-subflow-unknown` on any name this stack lacks, a correct cross-package call included. Eval 20's answer key says the same (row 15). - Token ratchet: the three skill files sat at zero headroom, and the first wording went over by 74, 19 and 5 tokens. Each new sentence now replaces the stale words it corrects, and recipe 1 gives up two label words for the `timezone` key (row 5). The patch round's two sentences in `SKILL.md` are paid for inside the file by row 16: shorter spellings of eight table cells and two sentences, and the short separator-row form on six tables. No fact, trap or example was removed to pay. - Eval 1's expected answer is edited (row 6). It is the answer key for the nightly-cron case, and it spelled the shape the warning fires on. Its assertions are unchanged. - The harness's findings from other rules are artefacts of completing a fragment (a `notify` node read with no trigger, so `record` is unbound) or the README's placeholder condition `'...'`. None is from the ten rules. - PR objectstack-ai#36158 moves most of `SKILL.md` into the references. Every edit here is in place, on the lines listed above; `SKILL.md` gains one line (item 4), no other skill file gains or loses one. - Not run: the `os validate` binary. The harness calls the rule table it runs, on a parsed stack. ## Verification Two-minute check: `node scripts/check-skills-token-ratchet.mjs` exits 0 and prints `(+0)` for the three automation files; `git diff f46ce5b --numstat -- skills` shows equal additions and deletions per file, except `SKILL.md` at 21 added and 20 removed. Read first, by risk: `packages/spec/src/automation/flow-start-config-refusals.ts` (three refusal strings an author is shown), `skills/objectstack-automation/SKILL.md` (item 4 and the `subflow` row), `skills/objectstack-automation/evals/flows-triggers-approvals.json` (eval 1's answer key). <details><summary>Patch-round gate readings (run on 9e16311; head ed201b7 changes one changeset sentence)</summary> - On the final head `ed201b70` (changeset only since `9e163110`), each exit 0: `node scripts/check-skills-token-ratchet.mjs`, `node scripts/check-empty-changeset.mjs --base origin/main`, `node scripts/check-changeset-no-major.mjs --base origin/main`, `node scripts/check-adr-0087-registration.mjs --base origin/main`, `pnpm check:nul-bytes`, `pnpm check:doc-authoring`, `pnpm check:issue-citations`, `pnpm check:published-files`. The readings below are on `9e163110`. - `node scripts/pm/dispatch-gates.mjs --ran`, exit 0: `96 derived famil(ies) accounted for — 95 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)`. The 95 exited 0. NOT MEASURED, exit 3 (a prerequisite refusal, not a finding): `pnpm check:dual-build-cjs-loads` (reads every package's `dist/`). CI runs it. - `node scripts/check-skills-token-ratchet.mjs`, exit 0: `60 authored bundle file(s) within their ceilings`; `SKILL.md` `7045 / 7045 (+0)`, `examples-flows.md` `1543 / 1543 (+0)`, `integration-recipes.md` `2595 / 2595 (+0)`; the eval fixture reads 7147 tokens, not ratcheted. - `pnpm --filter @objectstack/spec run check:skill-examples`, under the verify lock, `VERDICT command-exit 0`: `349 prose examples type-check across 3 surface(s)`. `check:skill-docs`, `check:skill-refs`, `check:skill-served-sections`, `check:skill-links`, `check:skill-identifier-liveness`: exit 0, inside the 95. - The run-time probe, under the verify lock: `VERDICT command-exit 0`, `Tests 1 passed (1)`; the readings are in Tests above. - CI check-runs on `9e163110`: 58 `success`, 11 `skipped`, none failed or pending; `Lint & Repo Gates`, `TypeScript Type Check`, `Test Core`, `Build Core`, `Check Changeset`, `Governed Surface Queue Guard`, `Dogfood Regression Gate`: `success`. </details> <details><summary>Gate and harness readings (first round, head ec3822d)</summary> - Harness, before (`f46ce5b4` text): `TOTAL examples judged: 25 · skipped (no flow shape): 10 · findings from the ten rules on shapes the text offers: 13 · on shapes the text itself names as warned or refused: 0 · registry size: 78`. - Harness, after (`ec3822d6`): `TOTAL examples judged: 24 · skipped (no flow shape): 10 · findings from the ten rules on shapes the text offers: 0 · on shapes the text itself names as warned or refused: 4 · registry size: 78`. One fewer judged: the reads-nothing refusal spelled a cron twice (a bare string and an object) and now spells it once. - Before, by place: `SKILL.md` item 4 (2 errors: `flow-condition-option-label`, `flow-node-write-unknown-option`); `integration-recipes.md` recipe 1 (2, the block and its cron); the README (4: the example block, its cron, the table's bare string and its normalized form); the two showcase comments (2); the refusal file (3). The other 11 are `flow-schedule-timezone-missing` warnings. - `node scripts/pm/dispatch-gates.mjs --ran`: `96 derived famil(ies) accounted for — 93 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3)`. The 93 exited 0. - NOT MEASURED locally, exit 3 (a prerequisite refusal, not a finding): `node scripts/check-plugin-teardown-shape.mjs --self-test` (needs an unshallowed clone), `pnpm check:dual-build-cjs-loads` (reads every package's `dist/`), `pnpm check:i18n-coverage` (needs the workspace CLI built). CI runs all three. - `node scripts/check-skills-token-ratchet.mjs`, exit 0: `60 authored bundle file(s) within their ceilings`; the three automation files print `7045 / 7045 (+0)`, `1543 / 1543 (+0)`, `2595 / 2595 (+0)`. - `pnpm --filter @objectstack/spec run check:skill-examples`, exit 0: `349 prose examples type-check across 3 surface(s)`. Its first run refused with exit 3 (the client packages were not built); it passed after `pnpm --filter '@objectstack/client-react...' build`. - `pnpm --filter @objectstack/spec check:generated`, exit 0: `All 14 generated artifacts are up to date`. - Under the verify lock, `VERDICT command-exit 0`: `pnpm --filter @objectstack/spec build`, then `vitest run src/automation/flow-start-config-refusals.test.ts src/automation/flow.test.ts` (`Test Files 2 passed (2)`, `Tests 157 passed (157)`), then `pnpm --filter @objectstack/spec typecheck`. - Not run locally, left to CI: `test:repo`, the example app's own tests (two comments changed there), the full dogfood battery (no `!` title, no narrowing arm). </details> **Seat-written open.** Seat `repo:objectstack#4` (os-justin, `session_01QSeKYpEsWWE9Y5YtSsDgqZ`) opened this draft on the maintainer's ruling in the seat session, verbatim 「一选1+」 (2026-11-24): option 1+ — the seat performs only the writes the dev session's permission classifier refused, each checked against the branch; pull requests stay draft; no standing allow rule is added. Refused in dev session `session_01QSeKYkHoFSRK5JsuPYqbtc`, twice, reason `[Undermining Oversight]`: `node scripts/pm/fleet-write/dispatch.mjs --repo objectstack-ai/objectstack --actions-file FILE` carrying this one `pr_create`. Title and body above are the dev's text, unchanged; branch head checked at `ec3822d6` (2 commits on `f46ce5b4`, 8 files). **Patch round 1** (head `ed201b70`): built by a seat `os-dev` subagent in seat session `session_01QSeKYpEsWWE9Y5YtSsDgqZ` on the L1 REWORK and contract review of `ec3822d6`; this body was rewritten by that round and sent by the seat (os-dev.md: PR body edits after `pr_create` are the seat's). Report: comment 7129961596 on objectstack-ai#36718. --- _Generated by [Claude Code](https://claude.ai/code/session_01QSeKYkHoFSRK5JsuPYqbtc)_ <!-- signed: repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…llFields and the sensitivity tiers (objectstack-ai#37019) Fixes objectstack-ai#36053 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用数据技能包写应用的 AI 助手,以前只学到「查看全部 / 修改全部」这一种放权方式,现在学到权限分三件事(能不能用这个对象、能看到哪些记录、能看到哪些字段),「这个角色能读所有字段」有专门的写法,工资、证件号这类高敏感字段要在字段上加门槛;权限文档页同步说明。 - 为什么做:属于「权限三轴」这项已裁决的工作的第二步,读全部字段的新写法已经上线,技能包和文档没跟上,AI 会照旧模型写出到 v19 要返工的权限配置。 - 出错会怎样:最坏是 AI 读到的说明不够准确,不改变任何运行行为;可以直接撤回本次合并。 - 要你做什么:这是对外发布的技能包,需要你审核批准后才能合并。 ## What changes - `skills/objectstack-data/rules/security.md`: the bits bullet now names the three axes (object permission, record scope, fields) and says that from v19 View All / Modify All open no field. A new section, "Field visibility and `viewAllFields`", teaches the three sensitivity tiers (ordinary: write nothing; position-dependent: `fields` rows; high-sensitivity: `requiredPermissions` on the field) and `viewAllFields: true` (a read vote on every field, never an edit vote; the set's own `readable: false` row beats it; no object access and no record; on `'*'` it also votes on a private-posture object's fields; authored in metadata, Studio has no control for it). The `requiredPermissions` paragraph now says it is strictest-wins over field rows, `viewAllFields`, View All and Modify All, and shows `maskingRule` beside it. - `skills/objectstack-data/evals/hooks-security-seeds-datasources.json`: two cases, id 36 (a read-everything auditor set written with `viewAllFields`) and id 37 (salary and ID-number fields gated with `requiredPermissions` and `maskingRule`). - `content/docs/permissions/field-level-security.mdx`: new sections "The three axes", "Choosing by sensitivity" and "`viewAllFields`: a set that reads every field"; `authorization.mdx` and `permissions-matrix.mdx` each gain the "from v19" sentence where they taught View All as reaching every field. - `packages/spec/src/security/permission.zod.ts`: two docblock sentences, comments only (the review notes carried on the card): the `viewAllFields` no-op claim is scoped to the object entry, and the `FieldPermissionSchema` docblock names `viewAllFields` as a voter. - Two pins for the posture-blind wildcard vote: `packages/core/src/security/superuser-field-vote-33828.test.ts` and `packages/plugins/plugin-security/src/fls-own-field-mask-33828.test.ts`. - `scripts/check-skills-token-ratchet.mjs`: the `rules/security.md` ceiling row moves 4068 to 4292, on the ratchet header's standing-ruling path (record 6513306068, 「A:先削重复,余额按实测提高」): 274 bytes of restatement were cut first, and the row is raised by the measured remainder only, pinned at the measurement with zero headroom. The claim's amendment 1 on the card records this route. - Changeset: `@objectstack/skills` patch, `@objectstack/spec` patch. Size readings (`node scripts/check-skills-token-ratchet.mjs`, tokens are `ceil(bytes / 4)`; before is the merge base `57445a6998`, after is head `f1d2ae130c`): | | before | after | |:--|:--|:--| | `rules/security.md` lines | 334 | 347 | | `rules/security.md` bytes | 16272 | 17168 | | `rules/security.md` tokens (ceiling 4068, then 4292) | 4068 | 4292 | | eval file lines | 361 | 381 | | authored bundle tokens (ceiling 202623, then 202847) | 197657 | 197881 | | whole shipped tree tokens | 294236 | 295195 | | all `SKILL.md` lines | 4942 | 4942 | No `SKILL.md` is touched. ## Why The ruling behind the card is that an AI-authored app should get the permission model right by construction. `viewAllFields` is on main, and the published data skill still taught View All / Modify All as the only wide grant, so an author granted View All to open fields. From v19 that stops working. ## Tests Head `f1d2ae130c`. <details><summary>Touched test files, typecheck, spec artifacts</summary> - `pnpm --filter @objectstack/core exec vitest run --maxWorkers=2 src/security/superuser-field-vote-33828.test.ts`: Test Files 1 passed (1), Tests 12 passed (12). - `pnpm --filter @objectstack/plugin-security exec vitest run --maxWorkers=2 src/fls-own-field-mask-33828.test.ts`: Test Files 1 passed (1), Tests 63 passed (63). - `pnpm --filter @objectstack/core run typecheck`, `pnpm --filter @objectstack/plugin-security run typecheck`, `pnpm --filter @objectstack/spec exec tsc --noEmit`: exit 0. - `pnpm --filter @objectstack/spec check:generated`: "All 14 generated artifacts are up to date". - All of the above ran in one locked command: `os-verify-lock: VERDICT command-exit 0`. </details> The two pins add coverage for behaviour that already landed with `viewAllFields`; no tested behaviour changes in this diff, so there is no ablation. ## Acceptance notes - `skills/objectstack-data/SKILL.md` is not touched: an open draft rewrites it. - An open draft (objectstack-ai#36158, a different card) moves the same ceiling row in `scripts/check-skills-token-ratchet.mjs`. The two conflict there; whichever lands second takes that merge and recomputes the row. - Studio authoring of `viewAllFields` is out of scope here; the skill and the docs say the key is authored in metadata. - The branch is 10 commits behind `origin/main` (`5727092e72`) as this opens. None of those commits touches a file of this diff. ## Verification Read first, by risk: 1. `skills/objectstack-data/rules/security.md`, the new "Field visibility and `viewAllFields`" section, against `superuserFieldVote` in `packages/core/src/security/effective-object-permissions.ts`. 2. `scripts/check-skills-token-ratchet.mjs`, the one ceiling row and its comment. 3. `content/docs/permissions/field-level-security.mdx`, the "From v19" callout. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` exits 0 and prints `skills/objectstack-data/rules/security.md is 4292 tokens (ceiling 4292; headroom 0)`. <details><summary>Derived gates</summary> `node scripts/pm/dispatch-gates.mjs --commands` derives 142 commands for this diff. All 142 were run at head `f1d2ae130c` and reconciled with `--ran`: `142 derived famil(ies) accounted for — 139 run, 3 NOT-MEASURED`. The 139 exit 0. `check:skill-examples` first exited 3 (prerequisite), then exit 0 after the `@objectstack/client-react` closure was built: "350 prose examples type-check across 3 surface(s)". NOT MEASURED, all exit 3 (PREREQUISITE NOT MET), left to CI: - `pnpm check:dual-build-cjs-loads` and `pnpm check:i18n`: they read a whole-workspace build this run did not make. - `pnpm check:type-check-debt`: its own workspace build did not get the shared verify lock in time. </details> ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [ ] 3. No formatter ran; `pnpm lint` passes. (No formatter ran; `pnpm lint` is left to CI.) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (Comments only; `check:generated` reads all up to date.) - [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. --- _Generated by [Claude Code](https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH)_ <!-- signed: repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…tion keys (objectstack-ai#37072) repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Fixes objectstack-ai#36401 Fixes objectstack-ai#36575 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感;读「多语言」和「数据建模」技能的 AI 助手现在知道,流程里每一步的名称、以及记录页上自定义的关联列表标签页标题,各自该写在哪个翻译位置。 - 为什么做:这两个翻译位置已经随平台发布,技能文字却没跟上,是「流程步骤名可翻译」和「关联列表标题可翻译」两项改动各自欠下的技能说明,这里一次补齐。 - 出错会怎样:只是技能里的几句说明和一条测评用例,不影响任何运行行为;写错的话 AI 助手会把翻译写到不生效的位置,可以直接撤回这一个合并。 - 要你做什么:批准合并。只改技能文字和一道评测题;因为一个 PR 同时关两张卡,工具无法判断走哪张卡的低风险通道,所以按需要人工批准处理。契约审核 PASS:记录 7141681211,Head-sha `7523971c565c850e5183385030f0007e4ff08fd0`。 ## What changes One commit per card, then one merge of `main` and one fix commit after the contract review. **`76538fe36f`, the flow step-name key (objectstack-ai#36401, the follow-up owed by the flows `nodes` group).** `skills/objectstack-i18n/SKILL.md`, the paragraph on keys that sit deeper than their group's `label`, now names a fourth key: > any other step's name at `flows.{flow}.nodes.{node_id}.label` (a screen is named by its heading, `flows.{flow}.screens.{node_id}.title`, and takes a `nodes` key only beside a `title` of its own; `os i18n check` asks for a flow's top-level steps, and for one of `FLOW_TECHNICAL_NODE_TYPES` — `script`, `http`, `connector_action`, `assignment`, `boundary_event`, the four `*_record` types — only where a decision's branch leads to it) "Three keys" and "all three keys included" become four. This is what the readers do: the walk in `packages/lint/src/i18n-walk.ts` asks `nodes.NODE_ID.label` for each top-level node, skips an `approval` (keyed `approvals.NODE_ID.label`) and a screen whose label `screens.NODE_ID.title` already covers, skips `isFlowTechnicalNodeType` nodes, and adds back a technical step a drawn decision's branch names (`decisionBranchTechnicalTargets`); `os i18n extract` reads the same walk. The nine types are the literal list of `FLOW_TECHNICAL_NODE_TYPES` in `packages/spec/src/automation/flow-altitude.ts`, whose source file does not ship in the package, so the skill lists them. **`cd690662c7`, the related-list title key (objectstack-ai#36575, the follow-up owed by the related-list title translation).** - `skills/objectstack-i18n/SKILL.md`, the object translation group table, gains the `_relatedLists.{list}` row beside `_tabs`: the `label` of an object-form `relatedLists` entry on the parent object, by the entry's literal `list` (`event.related_to` is one key); an entry with no `label` has no key and keeps the child field's `relatedListTitle`, else the child's plural label; "Spelled `relatedLists`, the group is refused, naming this one" (the alias table of `ObjectTranslationDataSchema` maps the unprefixed spelling to `_relatedLists` as a refusal, never an accepted second spelling). - `skills/objectstack-data/rules/relationships.md`, the `relatedLists` entry: "its `label` translates at `objects.{parent}._relatedLists.{list}.label` (none: nothing to translate)". - `skills/objectstack-i18n/evals/bundles-locales-coverage.json`: one case (id 16) covering both keys. Precedence is stated as the contract has it (`RelatedListEntryObjectSchema.label` in `packages/spec/src/data/object.zod.ts`: the entry `label`, then the child FK's `relatedListTitle`, then the child's plural label). **`40f4e27ee0`, merge of `origin/main` `159113f4fe`** (plain merge, no conflict; brings objectstack-ai#37044's edit to the same file). **`7523971c56`, the contract review's S1 and N1** (record 7141134189), `relationships.md` only: - S1: the `'primary'` bullet ends "its tab stays unless `relatedLists` omits it" again (the first round had cut the qualifier, leaving a sentence that was false for a declared list that omits the child). - N1: "override the derived title / columns (columns: the child's `highlightFields`); an entry's `label` / `columns` win." **Paid in the same files; no ceiling of the skills token ratchet moves.** Restatement cut from `skills/objectstack-i18n/SKILL.md`: three sentences repeating the heading above them; the "Use both gates" paragraph keeps its one new fact; the `relatedListTitle` cell says "likewise"; "Requires `--out`" loses its restating clause; the per-namespace row loses "assembled by your own imports" (said above the table for every layout); "Both shipped adapters" loses the parenthetical the Service Contract section spells in full; the `translation` item section loses its heading restated as a sentence; the Register step folds a repeat of the authoring section. Cut from `skills/objectstack-data/rules/relationships.md`, inside the related-list section: "absent, nothing changes" (the section opens by saying every child relationship shows by default, and objectstack-ui Record Page says it too); the section's opening sentence loses "You usually don't declare the related list on the parent's record detail page" (it restated "by default"); "a self-referential FK (a hierarchy)" loses the parenthetical. The "Catalog auto-fill" bullet and the Delete Behaviors section are untouched. Published-skill size against `main` `159113f4fe` (before) and `7523971c56` (after): | | lines | bytes | tokens (ceiling) | |:--|:--|:--|:--| | `skills/objectstack-i18n/SKILL.md` | 520 / 515 | 25215 / 25193 | 6299 / 6294 (6333) | | `skills/objectstack-data/rules/relationships.md` | 401 / 402 | 16805 / 16800 | 4202 / 4200 (4203) | | `skills/objectstack-i18n/evals/bundles-locales-coverage.json` | 155 / 165 | 14511 / 15724 | 3628 / 3931 (eval fixture, not ratcheted) | The two authored files are 27 bytes smaller together; the eval case is the tree's only growth. ## Tests Text only: no package source, test or behaviour changes, so there is no ablation. The pins the text was written from were read, not edited: `packages/cli/test/i18n-flow-node-coverage.test.ts` and `packages/lint/src/i18n-related-lists-label-36528.test.ts`. ## Acceptance notes - The body opens with the seat signature line; the closing lines follow it. - `check:dual-build-cjs-loads` and `check:lean-entry-closure` were NOT MEASURED locally (exit 3, prerequisite: a whole-workspace build); the diff touches no package and CI runs both. - The flows `nodes` key is accepted by `os validate` at any depth and for a titled screen; the skill teaches what `os i18n check` asks for and the one screen rule an author can get wrong, not the full acceptance set. - Contract review nit N2 (the nine-type list is a hand copy of `FLOW_TECHNICAL_NODE_TYPES` with no gate tying them) is accepted as is. ## Verification Read first, by risk: the "Four keys sit deeper" paragraph and the `_relatedLists.{list}` row of `skills/objectstack-i18n/SKILL.md`; the three related-list bullets of `skills/objectstack-data/rules/relationships.md`. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints `60 authored bundle file(s) within their ceilings`, with `skills/objectstack-data/rules/relationships.md is 4200 tokens (ceiling 4203; headroom 3)`. `overlap-check` at `7523971c56`: `VERDICT clean exit 0` against `origin/main`, objectstack-ai#36158 and objectstack-ai#35129. --- _Generated by [Claude Code](https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr)_ <!-- signed: repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…e data skill (objectstack-ai#37076) repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Fixes objectstack-ai#36713 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:AI 助手在建数据模型时,知道可以让「更换负责人」连带移交子记录,并知道哪些写法会被拒绝;此前它不知道有这个设置。 - 为什么做:属于「技能包教学」这条线,是「更换负责人连带移交」功能落地后欠下的教学补齐。 - 出错会怎样:AI 可能照着教学写出系统拒收的设置,保存时当场报错;可以直接撤回,只是文字改动。 - 要你做什么:批准合并。只改技能文字和一道评测题;按需人工批准处理,是因为契约审核判它「涉及权限」:教的是「更换负责人」连带移交子记录,负责人决定谁能看到记录。它没有放宽任何检查,也没有教授权写法。契约审核 PASS:记录 7141869539,Head-sha `84459523cd70acc86a20162638981d7e2a1a6473`。 ## What changes - `skills/objectstack-data/rules/relationships.md`, Delete Behaviors: one paragraph teaches `transferBehavior: 'cascade'` on a child's `lookup` / `master_detail`. It says what the parent's Change Owner dialog then offers (moving the child rows the parent's previous owner owns), that the default is `'none'`, when to declare it, and the parse refusals in one sentence. - `skills/objectstack-data/rules/field-types.md`: `transferBehavior` is listed in the Key Config cell of the `lookup` and `master_detail` rows. - `skills/objectstack-data/evals/objects-fields-relationships.json`: one case (id 28) that asks for the declaration in place of an owner-rewriting hook, and where it is refused. - One `@objectstack/skills` patch changeset. The refusals taught are the ones the merged code makes (read on main at 896bfc4, `packages/spec/src/data/field.zod.ts`, `object.zod.ts` and `user-action-transfer.ts`): the key on any type but `lookup` / `master_detail` (an authored `'none'` too); `'cascade'` on a reference to a `sys_` object; `'cascade'` with `multiple: true`; `'cascade'` on a field of an object that does not offer Change Owner itself (not structurally eligible, a `controlled_by_parent` detail, or `userActions.transfer` off). ### Paid for in the same files (no ceiling row moved, the ratchet script is not edited) - relationships.md: the two "Incorrect" code blocks become one sentence each (each block restated the pattern above it); two `required: false` lines the Relationship Types table already states as the default; two code comments that repeated the `name:` under them; and three prose repeats in the inline-edit part. - field-types.md: the autonumber example in the Calculated row, which the Autonumber section gives; "embedded" twice in the Embedded table, which its heading and lead sentence already say. | File | Lines before / after | Tokens before / after | Ceiling | Headroom | |:--|:--|:--|:--|:--| | `rules/relationships.md` | 401 / 389 | 4202 / 4201 | 4203 | 2 | | `rules/field-types.md` | 270 / 270 | 3540 / 3539 | 3541 | 2 | | `evals/objects-fields-relationships.json` | 491 / 506 | 8588 / 8922 | not ratcheted | n/a | | whole `skills/objectstack-data` bundle | 4715 / 4718 | 62592 / 62923 (bytes 250366 / 251692) | n/a | n/a | Net lines in `skills/**`: +3 (budget +10). Without the eval fixture the bundle shrinks: 3779 / 3767 lines, 175356 / 175348 bytes. ## Tests No package source changes, so there is no package test to run. The gates that read these files, at 8445952: - `node scripts/check-skills-token-ratchet.mjs`: exit 0, `60 authored bundle file(s) within their ceilings`. - `pnpm --filter @objectstack/spec run check:skill-served-sections`: exit 0, 24 served sections (the Roll-up Summaries section this file serves is untouched). - `node ui/scripts/check-skill-eval-tokens.mjs`: exit 0, `Every must_contain token is taught by its own skill bundle.` - `pnpm check:skill-links`, `check:skill-identifier-liveness`, `check:skill-compatibility`, `check:skill-frame-sync`, `check:doc-authoring`, `check:nul-bytes`: exit 0. ## Acceptance notes - `evals/README.md` lists what the fixture covers and does not name the new case; it is outside this card's file surface. - Open PR objectstack-ai#36158 raises both ceilings and, merged with today's main alone, already reads 4347 tokens against its own 4343 row for relationships.md. Merged with this branch it reads 4346. That gap is not from this change, which removes 4 bytes. - Combined with open PR objectstack-ai#37072 (head cd69066): relationships.md 16798 bytes, 4200 tokens, ceiling 4203; field-types.md 14156 bytes, 3539 tokens, ceiling 3541. ## Verification Read first, by risk: 1. `skills/objectstack-data/rules/relationships.md`, the new paragraph before "Roll-up Summaries": every refusal named there against the merged schema. 2. The same file, "Incorrect vs Correct": two code blocks reduced to a sentence each. 3. `skills/objectstack-data/rules/field-types.md`, the Relational table rows. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` exits 0 and prints headroom 2 for both rule files. <details> <summary>Gate readings at 8445952</summary> - `node scripts/pm/dispatch-gates.mjs --ran`: `✓ dispatch-gates --ran: 48 derived famil(ies) accounted for — 43 run, 5 NOT-MEASURED (5 DERIVED from a recorded exit 3).` - NOT MEASURED locally (exit 3, PREREQUISITE NOT MET: no built `dist/` in this worktree; none reads a file this diff changes; CI runs them): `check:doc-formula-expressions`, `check:dts-closure`, `check:dual-build-cjs-loads`, `check:lean-entry-closure`, `check:sourcemap-no-sources-content`. - `node scripts/pm/overlap-check.mjs`: `VERDICT clean exit 0` against origin/main, objectstack-ai#37072 and objectstack-ai#36158. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr)_ <!-- signed: repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ --> Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…ut names (objectstack-ai#37122) repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Refs objectstack-ai#37057 (item 1) Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感;装了界面技能包的 AI 助手读到的「按钮顺序」一节,现在说清了校验命令只检查本应用自己定义的对象上的按钮名。 - 为什么做:原句让助手以为给已安装对象写的定制扩展里写错按钮名也会被校验拦下,实际不会,只是按钮不显示。 - 出错会怎样:只改了一句说明文字、几行示例和一处注释,写错了最多是助手读到不准确的说明;撤回这一个改动即可恢复。 - 要你做什么:无。 ## What changes `skills/objectstack-ui/rules/actions.md`, section "Button Order (`actionLayout`)". Before: > `os validate` refuses a name the arm's scope does not place. On an installed object only its paired `.custom` package's extension writes it (as `fieldGroups`, objectstack-data), each arm whole. After: > `os validate` refuses a name the arm's scope does not place, on the object or an extension of one the same stack defines. On an installed object only its paired `.custom` package's extension writes it (as `fieldGroups`, objectstack-data), each arm whole, not judged there: a wrong name draws nothing. What the code does, read at `b49a264a10`: - `validateObjectActionLayout` (`packages/lint/src/validate-object-action-layout.ts`, docblock): "Both object positions are judged: an object's own `actionLayout`, and an `objectExtensions` entry's, against the object it extends. An extension of an object this stack does not define is not judged". Its pin is the test "judges an extension against the object it extends, and skips one whose object the stack does not define". - `arrangedHeaderActions` (`ui/packages/types/src/ui-action.ts`, docblock): "A name naming none of `actions` ... is skipped: it draws nothing, and no other action takes a pinned one's place." Paid for in the same file, no ceiling raised and `scripts/check-skills-token-ratchet.mjs` not edited. Four cuts that repeat what the file already shows are removed (107 bytes): - Add to Campaign `icon` (the Convert Lead block shows the key); - Add to Campaign `successMessage` (the Convert Lead and Reassign Lead blocks show it, and the `successMessage` / `errorMessage` bullet describes it); - Add to Campaign `refreshAfter: true` (the Convert Lead and Add Line blocks show it; this body inserts a `campaign_member` rather than writing the current record); - the gloss "(the handler's answer)" after `result` on the copy-holes bullet (the `resultDialog` bullet above it says the dialog shows the server answer). The Convert Lead block keeps its `successMessage`, byte-identical to `main`: eval case 3 of `skills/objectstack-ui/evals/views-apps-actions-pages.json` expects it (contract review S1, record 7144254679). A grep of `skills/objectstack-ui/evals/**` finds no `must_contain` token whose teaching the four cuts remove. Item 2 of the card (`skills/objectstack-data/SKILL.md`) is not in this PR: that file conflicts with open PR objectstack-ai#36158, so the card is released with item 2 behind it after this lands. Changeset: `@objectstack/skills` patch. ### skills readings (lines, then tokens as `check-skills-token-ratchet` counts them) | Reading | Before (`b49a264a10`) | After (`e799ec7699`) | |:--|:--|:--| | `rules/actions.md`, whole file | 268 lines · 15519 bytes · 3880 tokens (ceiling 3880, headroom 0) | 267 lines · 15519 bytes · 3880 tokens (ceiling 3880, headroom 0) | | all `skills/*/SKILL.md` summed | 4937 lines | 4937 lines | | whole shipped bundle | 23066 lines · 296366 tokens | 23065 lines · 296366 tokens | Net lines in `skills/**`: -1 (5 added, 6 removed), inside the +2 budget. ## Tests No code changed, so no test changed and nothing was ablated. The 47-command `dispatch-gates --commands` sweep was taken at `fa749f9d3b` (43 exit 0; four dist-reading gates NOT MEASURED locally, exit 3, CI runs them). Rerun at `e799ec7699`, each exit 0: `node scripts/check-skills-token-ratchet.mjs` ("skills/objectstack-ui/rules/actions.md is 3880 tokens (ceiling 3880; headroom 0)"), `check:skill-examples` ("350 prose examples type-check across 3 surface(s)"), `check:doc-formula-expressions`, `check:skill-links`, `check:skill-identifier-liveness`, `check:doc-authoring`, `check:nul-bytes`; `overlap-check`: "VERDICT clean exit 0". ## Acceptance notes - "draws nothing" is the run-time reader's own wording. The design mode's Save checks names before it writes (the lint rule's docblock), so the unjudged path is a hand-written extension. - Contract review nit N1 ("not judged there" has a loose subject) is left as is: the file has no bytes to spare and both readings are true. ## Verification Read first: 1. `skills/objectstack-ui/rules/actions.md`, the hunk at line 37: the risk is the new sentence claiming more or less than the rule does. 2. The Add to Campaign example hunk and the copy-holes bullet: check that each removed piece is still shown elsewhere in the file. Two-minute check: `node scripts/check-skills-token-ratchet.mjs`, and expect the `rules/actions.md` line to read 3880 tokens against ceiling 3880, exit 0. --- _Generated by [Claude Code](https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…elationship (objectstack-ai#37170) repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Fixes objectstack-ai#37042 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感;读「数据建模」和「界面」技能的 AI 助手不再写已被拒收的 `inlineEdit: true`,主从明细的录入方式只写 `'grid'` / `'form'`,或者不写(按明细的字段自动选)。 - 为什么做:PR objectstack-ai#36802 已退役布尔写法(解析时拒收),技能文字还在教它;这张卡必须在带上 objectstack-ai#36802 的那次发版之前合并,否则发出去的技能会教 AI 写出被拒收的元数据。 - 出错会怎样:只改说明文字和一条测评,撤回这一个合并即可。 - 要你做什么:无。Tier S(低风险 skills 档,契约审核 7149350343 判 `Security-touching: no`),本区在 CI 全绿后落地。 ## What changes Opened by the seat on the maintainer's authorization in seat repo:objectstack#4's session (「objectstack-ai#37093:开 PR 放行。你应该使用 pm-dispatch 技能审核和落地pr,该放行的都放行」; 「objectstack-ai#37042:放行」); the developer's own `pr_create` in zone a4-A's session was refused by a permission check. Branch `claude/issue-37042-skills-inline-edit-boolean` @ `bc01139be8`, implemented by zone a4-A's dispatch. - `skills/objectstack-data/rules/relationships.md`, "Inline-edit form factor": the `inlineEdit: true // auto (default)` line is removed; the smart default is described as what an omitted key gets, noting that a boolean is refused. - `skills/objectstack-data/evals/objects-fields-relationships.json` case 25: the expected answer no longer offers `true`. - `skills/objectstack-ui/rules/list-views.md`, Master-Detail Forms: the pointer to that section no longer lists `true` beside `'grid'` and `'form'` (added in the fix round for contract-review finding M1). - One `@objectstack/skills` patch changeset naming both skills. Since PR objectstack-ai#36802 merged, the spec parse refuses `true` / `false` on a relationship field's `inlineEdit`; only `'grid'` and `'form'` are accepted, and an omitted key picks the form factor from the child's shape. Release-coupled: this lands before the release that ships objectstack-ai#36802. Token readings: `relationships.md` 4199 → 4192 (ceiling 4203); `list-views.md` 4444 → 4442 (ceiling 4448); no ceiling moved, the ratchet script is not in the diff. Merges cleanly with the open PR objectstack-ai#36158. A sweep of every `inlineEdit` under `skills/**` finds no other relationship-field boolean; `objectstack-ui/references/react-blocks.md` line 76 is the view-level key, untouched. ## Review history - Contract review 7149242271 at `1787e54e67`: FAIL on M1 (the `list-views.md` pointer still listed `true`). - Fix round at `bc01139be8`; delta review 7149350343: PASS, `M1: closed`, `Security-touching: no`. ## Tests No package source changes. The contract review and L1 read the gate check-runs on this head. --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…sh checks (objectstack-ai#37707) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu3zQ2AqeghSGpv6Q7VEPDyQ)_ Fixes objectstack-ai#37529 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:照技能文档让 AI 助手建数据模型的人,以后助手会提前知道三条发布检查:汇总字段的子对象必须有指回父对象的关联字段;关联目标只能写在关联类字段上;审批锁只锁主从明细行,用查找关系画进记录正文的明细表在审批期间仍然可改。以前文档没写,助手会写出发布时被拒的内容。 - 为什么做:属于「发布前拦住存得进去却不起作用的数据模型」这批工作的配套文档;检查已经上线,技能文档要跟上。 - 出错会怎样:只改技能文字和评测用例,不动产品。三个文件余量都只有几个词,新增的句子靠同一文件里把说法写短换来,没有删掉事实;写错直接撤回即可。 - 要你做什么:无。 ## What changes One sentence per rule, each worded from the code on `main` at `fbcfdfbb58` (the lint rules PR objectstack-ai#37513 landed), not from the card's paraphrase: - `skills/objectstack-data/rules/relationships.md` (Roll-up Summaries): a roll-up is refused at publish when `relationshipField` is omitted and the child has no `lookup` / `master_detail` referencing the parent, or when `relationshipField` names no field of the child (`rollup/child-without-parent-reference`). Both arms are in the rule (`summaryRollupFindings`, severity `error`). - `skills/objectstack-data/rules/field-types.md` (Relational): only `lookup`, `master_detail`, `user` and `tree` read `reference`; on any other type but `summary`, publish refuses it (`field/reference-on-non-reference-type`, severity `error`). The card says `summary` reads it; the code says the four types read it and `summary` is exempt from the refusal, so the sentence says that. - `skills/objectstack-automation/references/state-machines-and-approvals.md` (Approval Best Practices, item 2): `lockRecord` locks the record and its `master_detail` child rows only; a `lookup` child shown in the record's details (`relatedList: 'primary'`, or a parent field group, as the data skill names it) stays editable, reported as the warning `approval-detail-editable-while-pending`. It is taught as a warning, not a refusal. - Evals: data case 12 (roll-up counts) now says the child has no field pointing at the parent (`project`, named in the prompt) and expects `reference: 'project'`; a new data case 29 asks about `reference` on a `text` field and requires the rule id `field/reference-on-non-reference-type`; automation case 3 (budget approval) now carries a lookup body table and expects `master_detail`. - One `@objectstack/skills` patch changeset. ### Token ratchet: no ceiling moved Every addition is paid for by shorter wording in the same file (`node scripts/check-skills-token-ratchet.mjs`, exit 0 at `4695c42cc6`). | File | Lines before / after | Bytes before / after | Tokens before / after | Ceiling | Headroom before / after | |:--|:--|:--|:--|:--|:--| | `skills/objectstack-data/rules/relationships.md` | 389 / 391 | 16765 / 16801 | 4192 / 4201 | 4203 | 11 / 2 | | `skills/objectstack-data/rules/field-types.md` | 270 / 273 | 14156 / 14160 | 3539 / 3540 | 3541 | 2 / 1 | | `skills/objectstack-automation/references/state-machines-and-approvals.md` | 386 / 388 | 23732 / 23741 | 5933 / 5936 | 5936 | 3 / 0 | | `skills/objectstack-data/evals/objects-fields-relationships.json` (not ratcheted) | 506 / 521 | 35675 / 36736 | 8919 / 9184 | none | n/a | | `skills/objectstack-automation/evals/flows-triggers-approvals.json` (not ratcheted) | 450 / 451 | 28588 / 29048 | 7147 / 7262 | none | n/a | Whole bundle: ratcheted (authored) 199619 to 199632 tokens against a 204473 total ceiling; shipped tree 299752 to 300145 tokens; all `SKILL.md` files together 4961 lines before and after; whole `skills/` tree 23255 to 23276 lines. ## Tests - Skill evals: NOT MEASURED, reason: no model runner in this container. The three touched cases are graded by nothing here. - Eval tokens: checked by hand. `node ui/scripts/check-skill-eval-tokens.mjs` exits 0 but walks `skills/objectui` only, so it says nothing about these fixtures (contract review 7204561928). On `4695c42cc6` every `must_contain` token of each data case is in its own reference answer and no `must_not_contain` token is (29 cases, 0 violations). - `pnpm --filter @objectstack/spec run check:skill-examples`: exit 0, "352 prose examples type-check across 3 surface(s)". - `node ui/scripts/check-skill-examples.mjs`: exit 0, "Every marked skill example holds up against the built types." The two example gates were read at `ad8cf055c2`; the delta at `4695c42cc6` changes no code example. At `4695c42cc6`: token ratchet exit 0, `pnpm check:skill-links` exit 0, `check:skill-identifier-liveness` exit 0, `check:skill-frame-sync` exit 0; `check:doc-authoring` NOT MEASURED locally (exit 3, no `typescript` in the worktree), CI's. ## Acceptance notes - Wording shortened to pay for the new sentences, no fact removed. relationships.md: "Supported via `summary`" becomes "Via `summary`" (two table cells); the recompute sentence drops "so it's consistent". field-types.md: nine table cells and two prose phrases lose filler words ("built-in format validation" to "format validated", "Video files" to "Video", and the like). state-machines-and-approvals.md: a code comment, the send-back opening sentence and two lead-ins are shorter. - One nuance went: best practice 2 no longer says "unless you have a strong reason to allow edits while pending". It still says to keep the lock and why. - After the review delta (7204561928 S1, N1 to N3): the roll-up sentence says the refusal applies only when `relationshipField` is omitted; the approval sentence uses the data skill's words for the table; data case 29 requires the rule id; case 12's prompt names `project`. Paid down in the same files: best practice 1 is shorter, and the `lockRecord` config row reads "Lock the record while pending" (best practice 2 says what the lock covers). state-machines-and-approvals.md now sits at zero headroom, relationships.md at 2. - Draft PR objectstack-ai#36158 edits the same three files. `node scripts/pm/overlap-check.mjs` reports it merges cleanly against this branch (exit 0); the claim on the card cleared it. - The dispatch asked to extend existing eval cases where one fits. Cases 12 and 3 are extended, so their prompts changed; the `reference` rule fit no existing case and got a new one. ## Verification <details><summary>Derived gates at ad8cf05: 49 derived, 48 run, 1 NOT MEASURED</summary> `node scripts/pm/dispatch-gates.mjs --ran`: "49 derived famil(ies) accounted for — 48 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)", exit 0. - NOT MEASURED: `pnpm check:dual-build-cjs-loads`, exit 3, reason: it reads every package's built output and only the closures the skill gates need were built here. CI builds the whole tree. - Exit 0, among the 48: `node scripts/check-skills-token-ratchet.mjs` and its `--self-test`, `pnpm check:skill-links`, `pnpm check:skill-identifier-liveness`, `pnpm check:skill-compatibility`, `pnpm check:skill-frame-sync`, `pnpm --filter @objectstack/spec run check:skill-refs`, `pnpm --filter @objectstack/spec run check:skill-served-sections`, `pnpm --filter @objectstack/lint run check:doc-formula-expressions`, `pnpm check:doc-authoring`, `pnpm check:nul-bytes`, `pnpm check:published-files`, `node scripts/check-empty-changeset.mjs --base origin/main`, `node scripts/check-changeset-no-major.mjs --base origin/main`, `node scripts/check-adr-0087-registration.mjs --base origin/main`. </details> Read first, by risk: 1. `skills/objectstack-data/rules/field-types.md`, the new sentence under the Relational table: it says `summary` is exempt, which differs from the card's wording. 2. `skills/objectstack-automation/references/state-machines-and-approvals.md`, best practice 2: the rewritten item and the dropped clause. 3. `skills/objectstack-data/evals/objects-fields-relationships.json`, case 12: an existing prompt gained a sentence. Two-minute check: run `node scripts/check-skills-token-ratchet.mjs` and expect exit 0 with the three files at headroom 2, 1 and 0. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96 <!-- signed: repo:objectstack#2 · os-sales · session_01L6bhgVUz5oS8fMgmncxU96 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…till be deleted (objectstack-ai#37726) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu3zQ2AqeghSGpv6Q7VEPDyQ)_ Fixes objectstack-ai#37713 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:照技能文档让 AI 助手搭审批流程的应用作者,现在能读到「审批中的记录仍然可以被删除,删除会撤销审批请求并连带删掉主从明细行」;以前只读到「锁定」,容易以为记录被完全冻结。 - 为什么做:属于「发布前拦住存得进去却不起作用的数据模型」这批工作的评审收尾,替读技能文档的应用作者和 AI 助手纠正对审批锁范围的误解。 - 出错会怎样:只改说明文字和一条待发布的更新说明,不动产品行为;措辞若有误,读者会判断错审批锁的范围,直接撤回本次合并即可。 - 要你做什么:这是讲审批锁范围的安全相关文字,需要你亲手合并。 ## What changes All wording is taken from the code on `main` at `80519b5991` (`packages/plugins/plugin-approvals/src/lifecycle-hooks.ts`), not from the card's paraphrase. PR objectstack-ai#37707 has merged, so the serial constraint the claim recorded as "NOT YET" is cleared: this branch is cut from the merge commit. `skills/objectstack-automation/references/state-machines-and-approvals.md`: - **Best practice 2 teaches the delete.** New text: "Deleting the pending record still lands, cancelling the request and cascading its `master_detail` rows; it is refused (`409 RECORD_LOCKED`) where the cascade lacks one transaction or the child object declares a second cascading relation." The second case is decided on the child object's declared relations (`soleCascadeEdgeOf` counts every `master_detail` not declared `restrict` plus any field declaring `deleteBehavior: 'cascade'`), not on what a row holds (contract review 7207215155, S1; "whole" dropped per N1, the rows named per N2). - **The `lockRecord` config row states its bound again**: "Lock the record from edits while pending." - **Best practice 2 drops "or a parent field group"**. A group places a `lookup` child only when the field already declares `relatedList: 'primary'` (`isGroupPlaceableRelationship`), so the arm never applied on its own. `.changeset/37529-skills-data-model-publish-checks.md` (still pending on `main`: `.changeset/pre.json` does not list it) is reworded to what PR objectstack-ai#37707 shipped. See the DELIBERATE CORRECTION note below. `.changeset/37713-skills-approval-lock-reach.md`: one `@objectstack/skills` patch changeset for this PR. ### Where the code differs from the card The card says the delete "lands, cancels the request and cascades its `master_detail` lines". That is the main path (`bindRecordDeleteCancelHook`, an `afterDelete` hook, sets the request to `cancelled`; the detail-row lock yields to the cascade leg). The code also refuses that delete whole, `409 RECORD_LOCKED`, in two shapes, and the sentence says so: - the cascade has no open unit of work to run in (a datasource that declares `supports.transactionsUnsupported`, a cascade split across datasources, a handle whose unit already ended); - a child row has a second cascade-capable relation (a second `master_detail` master, or a `lookup` that declares `deleteBehavior: 'cascade'`), so the lock cannot tell whose cascade the leg is. Both are pinned by `detail-row-lock.integration.test.ts` on `main`. ### DELIBERATE CORRECTION of a pending release note This PR rewrites a changeset it did not add, on purpose. `check-empty-changeset` is red by design for that class. The note is `.changeset/37529-skills-data-model-publish-checks.md`; two sentences change and nothing else in the file does: - Corrected: "`objectstack-data` `rules/relationships.md`: a roll-up is refused at publish (`rollup/child-without-parent-reference`) when it omits `relationshipField` and the child object has no `lookup` or `master_detail` field referencing the parent, or when its `relationshipField` names no field of the child." The old sentence stated the first arm unconditionally. - Corrected: "`objectstack-automation` `references/state-machines-and-approvals.md`: `lockRecord` locks the record and its `master_detail` child rows only; a `lookup` child shown in the record's details (`relatedList: 'primary'`) stays editable while pending, reported as the warning `approval-detail-editable-while-pending`." The old sentence said "drawn as a body table", a term the published skills never define. ### Token ratchet: no ceiling moved The file sat at headroom 0; at `831311eeb2` it is at headroom 9. Every added byte is paid for by deletion in the same file (`node scripts/check-skills-token-ratchet.mjs`, exit 0 at `831311eeb2`). | File | Lines before / after | Bytes before / after | Tokens before / after | Ceiling | Headroom before / after | |:--|:--|:--|:--|:--|:--| | `skills/objectstack-automation/references/state-machines-and-approvals.md` | 388 / 388 | 23741 / 23706 | 5936 / 5927 | 5936 | 0 / 9 | Whole bundle: ratcheted (authored) 199632 tokens before and after, against a 204473 total ceiling; shipped tree 300242 tokens before and after; all `SKILL.md` files together 4961 lines before and after; whole `skills/` tree 23279 lines before and after. ## Tests - Skill evals: NOT MEASURED, reason: no model runner in this container. No eval fixture is touched. - No package source is touched, so no package test or typecheck is owed. No ablation: prose only. - At `831311eeb2` (delta: the delete sentence, its changeset line, two glosses in the Node Config table): `node scripts/check-skills-token-ratchet.mjs` exit 0; `pnpm check:skill-links` exit 0; `pnpm check:skill-identifier-liveness` exit 0; `pnpm check:skill-frame-sync` exit 0. ## Acceptance notes - Security-touching: yes. Best practice 2 and the `lockRecord` config row teach how far the approval lock reaches, the boundary of a write-refusal control. - `skills/**` is a governed surface and this text is security-touching, so the PR is Tier H: it stays a draft and waits for the maintainer. - What was deleted to pay for the new text, all in the same file, no rule removed: - "Since **ADR-0020** there is" becomes "There is" (the heading above still cites ADR-0020); "Since **ADR-0019** there is no standalone approval-process type." becomes "There is no standalone approval-process type (ADR-0019)." - The label line "Notes:" above the state-machine bullet list, and the lead-in "Three pieces:" above the send-back list. - Send-back item 1: "a third branch label alongside `approve` / `reject`, targeting" becomes "targets" (the paragraph above already names the `revise` out-edge beside `reject`); "The node takes **no config** — there is no signal to wait on." keeps only its first half. - Send-back intro: "Send-back is a **flow movement**" becomes "It is a **flow movement**"; item 2: "Only this legalizes the cycle" becomes "This legalizes the cycle". - Recording a decision: "you never resume the flow by hand, and you *cannot*" becomes "you *cannot* resume the flow by hand". - Best practice 4: the illustration "("when the invoice is approved, do X")" is gone; the rule it illustrated is unchanged. - Best practice 2: "or a parent field group" (work item 3). - Node Config table, `behavior` row (delta, to pay for the S1 wording): the glosses "— M-of-N collective sign-off" after `quorum` and "— one-from-each-group sign-off" after `per_group` are gone; each mode's rule (`minApprovals` of N; each `group` reaches `minApprovals`) is unchanged. - No fenced code block moved, so the example gates read on `main` still describe this head. - Draft PR objectstack-ai#36158 edits the same skill file. `node scripts/pm/overlap-check.mjs` reports it merges cleanly against this branch (exit 0); it is frozen and was cleared on the earlier claim. No other PR is named. - The dispatch offered two places for the delete sentence; it sits in best practice 2, beside the sentence that states the lock's reach. "Reading the lock" is unchanged. ## Verification <details><summary>Derived gates at 270a105: 49 derived, 44 run, 5 NOT MEASURED</summary> `node scripts/pm/dispatch-gates.mjs --ran`: "49 derived famil(ies) accounted for — 44 run, 5 NOT-MEASURED (5 DERIVED from a recorded exit 3)", exit 0. - Exit 1, red by design: `node scripts/check-empty-changeset.mjs --base origin/main`. It names `.changeset/37529-skills-data-model-publish-checks.md` as "present on the merge base and CHANGED by this PR"; that is the DELIBERATE CORRECTION declared above. Its first line is green: "No empty-frontmatter changeset introduced by this diff (2 declaring changeset(s) added)." - NOT MEASURED, exit 3 (PREREQUISITE NOT MET, the workspace is not built; the diff touches no package, so no build closure is owed locally and CI builds the whole tree): `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-content`. - Exit 0, the other 43, among them: `node scripts/check-skills-token-ratchet.mjs` and its `--self-test`, `pnpm check:skill-links`, `pnpm check:skill-identifier-liveness`, `pnpm check:skill-compatibility`, `pnpm check:skill-frame-sync`, `pnpm --filter @objectstack/spec run check:skill-refs`, `pnpm --filter @objectstack/spec run check:skill-served-sections`, `pnpm check:doc-authoring`, `pnpm check:nul-bytes`, `pnpm check:published-files`, `node scripts/check-adr-0087-registration.mjs --base origin/main`, `node scripts/check-changeset-no-major.mjs --base origin/main`. </details> Read first, by risk: 1. `skills/objectstack-automation/references/state-machines-and-approvals.md`, best practice 2 (the hunk under "Approval Best Practices"): the delete sentence and its two refusal shapes are the security-touching text. 2. The same file, the `lockRecord` row of the Node Config table: "from edits" is back. 3. `.changeset/37529-skills-data-model-publish-checks.md`: two reworded sentences of a pending release note. Two-minute check: run `node scripts/check-skills-token-ratchet.mjs` and read the line for `state-machines-and-approvals.md`; expect "is 5927 tokens (ceiling 5936; headroom 9)" and exit 0. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96 <!-- signed: repo:objectstack#2 · os-sales · session_01L6bhgVUz5oS8fMgmncxU96 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…above its measurement (objectstack-ai#37747) <!-- claude-projects-attribution: {"github_login":"os-elon-musk"} --> _Requested by **Elon** · [project thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DG44bgtJm8kWx4oK68re6GX)_ Fixes objectstack-ai#37630 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:这是仓库内部的技能长度检查,发布给客户的技能文字一个字都没改。 - 为什么做:属于技能长度管控。以前文件变短后上限还停在原处,多出来的额度没人发现,后来的改动可以悄悄用掉;现在会直接报错,并给出该降到的数字。 - 出错会怎样:最坏是技能相关的 PR 被误拦,作者照提示把上限降到实测值即可;整个改动可直接撤回。 - 要你做的:无。 ## What changes `scripts/check-skills-token-ratchet.mjs` used to fail a row only when the measured tokens were over its ceiling. A row whose file later shrank passed and printed its headroom. On PR objectstack-ai#37442 that left a row 1 token above the merged measurement, and only the reviewer's arithmetic caught it. - **The per-row check** (`verdict()`) now fails a row whose ceiling is above its measurement. The message names the row, the measurement, the ceiling and the gap, and tells the author to lower the row to the measurement in the same PR. Lowering is the author's own act, so this message carries no `⛔ MAINTAINER-ONLY` token. The over-ceiling refusal is byte-for-byte unchanged. - **The header's shrink-only bullet** now says the PR that shrinks a file lowers its row to the new measurement in that PR. A row left above its measurement is red. - **37 CEILINGS rows are lowered to their measurement.** On `origin/main` ce4d8c7, 37 of the 61 authored rows sat above their measurement, 4813 tokens in all. The largest gaps were `objectstack-api/SKILL.md` (981), `objectstack-query/SKILL.md` (940) and `objectstack-data/rules/indexing.md` (746). Each row's number changes and gains a `-N to the measurement (was C)` note, and one block comment sits on the prose side of the CEILINGS doc comment (the placement note says to keep new prose there). No `skills/**` text changes and no ceiling is raised. ### Failure or warning **I chose failure.** Reasons: 1. With the 37 stale rows lowered, every row on main sits at its measurement, so a failure reds nothing that exists today. 2. A warning would be one more line in a log of 100-plus lines. A log line is how the 1-token gap on PR objectstack-ai#37442 got through. The card's failure mode is a reading nobody looks at, and a warning is still a reading nobody looks at. 3. The header already has the gate's rule: every path that moves a row pins it AT the measurement. Headroom left by a shrink is not budget. Failing on it makes that rule hold mechanically, just as failing over the ceiling does. 4. No header-documented reservation exists today. The header's one reservation is `pending10402` (headroom held for an approved PR), and its own record says it is spent ("`objectstack-data` measured 13817 against a 13817 ceiling … exactly zero"). So nothing needs an exemption. A future reservation of that kind would need this gate changed, and the header now says so. **How unchanged rows on main are treated:** they are lowered in this PR, not given a warning tier. Lowering is always legitimate under the header. Header lines that bound this change, quoted for the skills-lane reviewer: - Record 6139629628 item 2 (the A2′ stamp exclusion), as the header quotes it: "counts authored content only: the frontmatter `version:` line that the release bot rewrites is excluded from the count … ceilings stay shrink-only and the current headroom (0 and 1 tokens) stays as it is." I read this as bounding the A2′ re-pin, which lowered every stamped row by exactly 5 so that no file's headroom moved. I do not read it as protecting headroom against a later lowering. - The `strippedInternalIds` note in `CEILING_BASIS`: "That is the ratchet working as designed: shrink-only means a ceiling may be lowered to the measurement whenever one is taken, not merely by the size of the day's deletion." This is the authority for lowering all 37 rows in one PR. - The raise paths, all pinned at the measurement: ruling record 6513306068 ("may move the row by the measured remainder, pinned AT the measurement"), and ruling A on record 6819475461, made standing by record 6840575378 ("may raise that file's row by the row's own measured delta and by no more"). **Side effect for the reviewer:** in failure mode every count change to a skills file must edit its row. So two skills PRs that change one file's count now always conflict on that row; before, only raises did. This is the intended serialisation, because the merged measurement differs from both branches. It is still new load on skills PRs. **Overlap:** open draft PR objectstack-ai#36158 rewrites five of the lowered rows: `objectstack-data` `SKILL.md`, `rules/field-types.md` (together with the adjacent `rules/indexing.md`), `rules/relationships.md`, `rules/validation.md` and `references/examples-objects.md`. That PR already conflicts with main on its own skills files and re-measures those rows when it rebases. overlap-check: origin/main, objectstack-ai#37676 and objectstack-ai#37422 merge cleanly. ## Tests <details><summary>Self-test, gate, ablation and reverse reading (head d1295a6)</summary> - `node scripts/check-skills-token-ratchet.mjs --self-test`: exit 0, `✓ check-skills-token-ratchet self-test: 111 cases pass.` The roster grew 104 to 111, and the floor was raised to match. `under the ceiling -> green` became `under the ceiling -> red (a ceiling above its measurement)`, and the shrink-direction row now pins red-until-lowered. Seven new batteries: the red names the row, the measured count, the ceiling and the gap; it tells the author to lower the row; it is not the over-ceiling red (no `over by`, no authority token); one token above the measurement is red. Each new case reads the verdict and its text together. - `node scripts/check-skills-token-ratchet.mjs`: exit 0, `61 authored bundle file(s) within their ceilings`, and `ratcheted (authored) 199660 / 199660 (+0)`. On main it read `199660 / 204473 (-4813)`. - Ablation (`scripts/ablation-replace.mjs`, the new branch's `if` disabled, anchor x1 to x0): self-test exit 1, `9 failure(s)`, which is exactly the nine above-measurement batteries. After restore the blob matched HEAD and `git diff HEAD` was empty. - Reverse reading: main's CEILINGS judged by the new verdict, 37 of 61 rows red, gap 4813. </details> ## Acceptance notes - The card's acceptance asks the gate to report a row whose ceiling exceeds its measured tokens, naming the row, the measurement and the ceiling. It does that, as a failure; the choice is argued above for the reviewer. A test pins the new reading. The existing over-ceiling refusals are unchanged. - `skip-changeset`: the only file changed is a root `scripts/` gate in the private monorepo root package, so nothing ships. ## Verification <details><summary>Local gates (head d1295a6)</summary> - All 34 commands from `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` exited 0. Each exit code was captured before any pipe. They include `check-skills-token-ratchet` with its `--self-test`, `check:ratchet-remedy-authority`, `check:doc-authoring` and `check:nul-bytes`. - `--ran` reconciliation: `34 derived, 34 run, 0 NOT-MEASURED, 0 UNRUN`. - `check:pm-dispatch-gates` exited 0 on the previous head, ebc8fae. The last commit touches only ratchet self-test lines. - `check-published-list-mirrors` exited 0. - The control-byte self-scan found 0. </details> **Read first:** `verdict()`, the new below-ceiling branch (the one behaviour change). Then the header's "ratchet discipline" bullet. Then a sample of the lowered rows against the gate's printed counts. **Two-minute check:** run `node scripts/check-skills-token-ratchet.mjs`. Expect exit 0 and the line `ratcheted (authored) 199660 / 199660 (+0)`. Then raise any row by 1 locally and re-run. Expect a red that names that row, its measurement and the ceiling, ending in `Lower the row to N`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP --------- Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…ipped vs run-time mount, package-scoped identity) (objectstack-ai#38053) repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP Part of objectstack-ai#37310 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用 AI(技能文档或 MCP 搭建)写知识源的作者,现在看到的是新写法:知识源是一份元数据,用 `name`、逐个列出要索引的字段、可以不写存储;MCP 新建知识源暂不提供起始模板(模板里的占位对象和字段会被当成真实值存进去),等设置页表单从作者输入构建 `source` 后再加。 - 为什么做:知识库检索专题(按调用者权限过滤的知识检索)第三阶段的教学一行,替照着技能写知识源的 AI 解决"照文档写出来却被拒绝"的问题。 - 出错会怎样:最坏是技能里某句教法不准,AI 写出的知识源在保存时被明确拒绝并给出修法;不会悄悄索引错的字段;改动可直接撤回。 - 要你做什么:合并(技能文档是受治理面,由你亲手落地);本 PR 只完成卡片的一部分:发布校验的五条规则名要等对应的校验改动(objectstack-ai#37971)合并后再补,新建模板要等设置页表单,所以卡片保持打开。 ## What changes **`skills/objectstack-ai/SKILL.md`, § Knowledge Sources (RAG)** (ADR-0161 K4, K5, K6 item 6; rows 3a and 3b as merged): - A source is a `knowledge_source` item: shipped in a package (`knowledgeSources`, `*.knowledge-source.ts` / `.yml`) or authored in Studio or over MCP. `KnowledgeServicePlugin({ sources })` and `registerSource` are a second door for the same schema, and a code registration and an environment item of one name are one slot, the second refused. A source's identity is its package and `name`: `search_knowledge` lists a package's source as `NAMESPACE-NAME` (bare for a source no package holds). A shipped item (a `knowledgeSources` entry) mounts the knowledge service and its store with no `requires: ['knowledge']` (objectstack-ai#37306, PR objectstack-ai#38026); an app that ships no source and authors its sources at run time needs `requires: ['knowledge']`, or its items are never indexed (as main's `knowledge-rag.mdx` § Turning it on says). - The key table is the v1 keys of K4: `name`, `label` / `description`, `adapter` (optional; omitted ⇒ the deployment's store, else the only one registered, refused naming them when several and none is the deployment's), `source.kind`, `source.object`, `source.content` (an explicit non-empty list; why `'*'` is refused: embedding is egress, K5), `source.metadataFields`, `source.where`, `source.split`, `refresh.onRecordChange`, `aiExposed`. The old Hygiene column's advice (meaningful text only, never ids or system fields; `where` keeps drafts out) now lives in the `content` and `where` rows, and says `content`. - Egress and cost (K4): the first build sends every listed field of every matching record to the embedding provider; a run-time save needs `manage_knowledge_sources` beside `manage_metadata` and passes save-time admission. - The retired keys by name, each with its fix, as the tombstones read: `id` → `name`, `contentFields` → `content`, `embedding`, `vectorStore`, `adapterConfig`, `refresh.cron`, and the `file` / `http` arms with their four keys; `os migrate meta --from 18` for a stack, by hand for a registration in code. - The checked example drops `adapter: 'pgvector'` (the deployment's store) and its comments; it is otherwise row 3a's block. - `split`: `strategy` is required once `split` is written (`recursive` only when `split` is omitted); the adapter-list aside is gone. - The closing note: `topK` is a `search_knowledge` argument; rerank and hybrid weighting are no source key, and no shipped store has a setting for either (`knowledge-pgvector` and `knowledge-turso` fuse their legs by RRF with a fixed `RRF_K = 60`, `pgvector-adapter.ts:124`, `turso-adapter.ts:95`; no store plugin's options interface has a rerank, weight or fusion key). - The routing line in `skills/objectstack-mcp-build/SKILL.md` ("An agent skill, tool or knowledge source | objectstack-ai") stays true: the section name is unchanged, so it is not edited. **Not in this PR, on purpose (amendments 7221575164 and 7224082428):** the five `os validate` / publish rule ids of PR objectstack-ai#37971 (`knowledge-source-object-unknown`, `knowledge-source-field-unknown`, `knowledge-source-object-not-searchable`, `knowledge-source-system-object-not-ai-readable`, `knowledge-source-field-never-indexed`). objectstack-ai#37971 is still open, so this PR is `Part of objectstack-ai#37310`: that part follows on this branch after objectstack-ai#37971 lands (the keyword then returns to `Fixes`), or on a later PR if this one lands first. The create seed is also left open: it waits for the Studio form (objectstack-ai#37309, row 5). **`skills/objectstack-ai/evals/skills-tools-knowledge.json`.** Case 3 (kb_article on PostgreSQL) and case 9 (policy_doc, `markdown` split) now expect `name` and `content`, and forbid a written `contentFields:` key; case 3 also forbids a written wildcard (`['*'],`, `['*'] }`), `embedding:` and `vectorStore:`, and its `topK` token becomes `topK:` (the key written) because the skill now names `topK` as a search argument. Case 9 also requires `name:` and forbids an `id:` spelling; case 13 forbids the double-quoted wildcard forms. New case 14 asks for an app that ships no source and authors one at run time, and requires the `requires: ['knowledge']` line (either quote style), with no `contentFields:`. New case 13 asks for a source that indexes "every text field" and expects an explicit list, the wildcard declined because embedding is egress, and no written `contentFields:` or wildcard. **`packages/spec/src/kernel/metadata-create-seeds.ts`: unchanged (byte-identical to `main`).** A `knowledge_source` create seed was tried and withdrawn at `4c965f4a5e` (comment 7229668414). Its object binding and content list sit inside `source`, and the Studio create flow (`buildCreateModeBody` / `seedPlaceholderKeys` in app-shell's `createBody.ts`) clears placeholder identity at the top level only, so it would have saved `example_object` / `example_field` into a new source: the objectui#12810 defect. No schema-valid seed avoids this, because `source.object` and a non-empty `content` (K5) are required and nested. `knowledge_source` stays on `KNOWN_UNSEEDED`, whose comment now gives the reason: a seed waits until the Studio form (objectstack-ai#37309, row 5) builds `source` from the author's input. The card allows this ("or the type stays on `KNOWN_UNSEEDED` with the reason"). **`packages/runtime/src/domains/mcp-authoring.test.ts`.** One case beside the flow contract case, over the real protocol and the boot type registry: `list_metadata_items` with `contract: true` for `knowledge_source` serves no `createSeed`; `contractPath` `/properties/source/properties/content` serves the content rule (`minItems: 1`, `minLength: 1`, a pattern that refuses `*` and admits `body`); the served schema carries no `id` or `contentFields` tombstone; a hand-written source with one object and one field saves as a draft; the same item with `content: ['*']`, with an `id`, or with `contentFields` is refused `422 INVALID_METADATA`, the last two naming their tombstone's prescription ("use `name`", "use `content`"); nothing else is written. **Platform catalog (review round, `6f2e756f58`).** The generator's Boot cell (`packages/spec/scripts/lib/platform-catalog.ts`) reads ``on `requires`, or a shipped `knowledgeSources` item`` for a provider that declares `mountedBy`; `packages/spec/scripts/platform-catalog.test.ts` pins that cell, with `record-context` as the control that still reads ``on `requires` ``. `skills/objectstack-project/references/platform-catalog.md` is regenerated. **Token ratchet.** The standing ruling, verbatim and untranslated: 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). Paid down first, in the same file: the wiring paragraph's package list, the old `source.kind` Hygiene column (folded into two rows), the example's four comments restating table rows and its `refresh: { onRecordChange: true }` line restating the default, and the split passage's adapter aside. The row moves 6609 → 6639, the measured remainder, pinned at the measurement. Review round (`6f2e756f58`): after paying down the intro's restating clause, its separate `search_knowledge` sentence, the "one name is one source" clause and the longer closing note, the row moves 6639 → 6695 (+56, the measured remainder) under the same ruling. Reproduction: `ceil(($(wc -c < skills/objectstack-ai/SKILL.md) - 27) / 4)` = ceil(26779 / 4) = 6695. ## Tests **Review round at `6f2e756f58`** (merges `main` at `58be6770ab`; note 7230668192): unlocked, 35 commands, each exit 0, including `check-skills-token-ratchet` (row 6695), `check:nul-bytes`, `check-empty-changeset`, `check-adr-0087-registration`, `check-changeset-no-major`, `check:issue-citations`, `check:doc-authoring`, `check:skill-links`, `check:skill-identifier-liveness`, `check:skill-frame-sync`, `check:published-files`; `gen:skill-refs` exit 0. NOT MEASURED locally (verify lock never acquired in six tries): `check:skill-docs`, `check:skill-refs`, `check:yaml-examples`, the platform-catalog test, `metadata-create-seeds.test.ts`, the MCP contract case, eval case 14. CI on this head is the reading for them. overlap-check: `VERDICT overlap exit 1`, the same objectstack-ai#36158-against-main conflict in the ratchet file; `origin/main`, objectstack-ai#38032 and objectstack-ai#38013 merge cleanly. The lock was saturated: about 70 minutes of queueing, two dogfood runs ahead. One locked round ran at `3407f7fe6e`; the second round was not reached. What was not measured locally is marked below, and CI runs it. <details><summary>Locked round at 3407f7f (VERDICT command-exit 0, held 365s)</summary> - `pnpm turbo run build --filter='@objectstack/runtime^...' --concurrency=2`: exit 0, `Tasks: 41 successful, 41 total`. - `metadata-create-seeds.test.ts` (spec): the seed pin run here (`Tests 20 passed (20)`) belonged to the withdrawn seed; the file is back to `main`'s, so CI `Test Core` is the reading. **Patch round at `4c965f4a5e`:** the app-shell `createBody.seedPlaceholders-12810.test.ts` (red at `19f3e118f2`, 2 failures, unedited), the spec create-seeds test and the rewritten MCP case are NOT MEASURED locally (verify lock saturated); their inputs equal `main`'s, so CI `Test UI` and `Test Core` on this head are the evidence. Unlocked gates at `4c965f4a5e`, exit 0 each: `check-skills-token-ratchet` (6639/6639), `check-empty-changeset`, `check-adr-0087-registration`, `check-changeset-no-major`, `check:nul-bytes`, `check:issue-citations`, `check:doc-authoring`. The changeset no longer lists `@objectstack/spec`. - `pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/mcp-authoring.test.ts`: exit 1, `Tests 1 failed | 73 passed (74)`. The failing assertion is the new case's tombstone half: it expected the served schema to carry `/properties/id`, and the served schema drops tombstones (see Acceptance notes). Its content-rule and seed assertions, which run before it, passed. The tombstone half is rewritten in `01cf7515c2` to assert absence plus the save refusal. **NOT MEASURED locally after that rewrite** (the second locked round never acquired); CI `Test Core` runs it. - `pnpm --filter @objectstack/spec run check:yaml-examples`: exit 0, `19 tagged YAML example(s) across 1 file(s) validate`. - `pnpm --filter @objectstack/spec run check:skill-docs`: exit 0, `Skill docs in sync`. - `pnpm --filter @objectstack/spec run check:skill-refs`: exit 0, `10 generated files in sync with packages/spec`. The generated skill references needed no regeneration: the section rewrite changes no reference input. - `pnpm --filter @objectstack/spec typecheck`: exit 0. - `pnpm --filter @objectstack/runtime typecheck`: exit 1. `tsc --noEmit` is clean. `check:test-typecheck` names 3 files this diff does not touch (`boolean-written-spelling-row-scope.test.ts`, `meta-object-publish-column-changes.test.ts`, `organization-ownership-boot-guard.turso-remote.kernel.test.ts`). `mcp-authoring.test.ts` is not among them. They are read here as the closure build's gaps (only `runtime^...` was built) and not as this diff's; CI `TypeScript Type Check` decides. - `pnpm --filter @objectstack/spec run check:skill-examples`: exit 3, PREREQUISITE NOT MET (the `@objectstack/client-react` dist is outside the built closure). **NOT MEASURED**; CI runs it. </details> <details><summary>Unlocked gates (35 derived families, each exit 0, at 3407f7f; the ratchet and nul-bytes re-run at 19f3e11)</summary> - `node scripts/check-skills-token-ratchet.mjs`: exit 0, `skills/objectstack-ai/SKILL.md is 6639 tokens (ceiling 6639; headroom 0)`; with `--self-test` exit 0. - Exit 0 each: `check-adr-0087-registration` (both forms), `check-changeset-no-major`, `check-closing-keyword-parity` (both), `check-declaration-mirrors` (both), `check-empty-changeset` (both), `check-issue-citations`, `check-self-test-wired` (both), `docs-audit/check-affected-docs`, `docs-audit/check-drift-comment`, and `pnpm check:` `agent-test-spelling`, `changeset-gate-self-tests`, `closed-ceremony-text`, `corpus-claim-drift`, `cross-package-test-inputs`, `doc-authoring`, `issue-citations`, `keyed-text-bounds`, `nul-bytes`, `pm-skill-id-lint`, `published-files`, `ratchet-remedy-authority`, `role-word`, `skill-compatibility`, `skill-frame-sync`, `skill-identifier-liveness`, `skill-links`, `test-source-alias`, `tier-file-adoption`. - `dispatch-gates --ran`: `116 derived, 38 run, 0 NOT-MEASURED, 78 UNRUN`. That is a declared narrowing: the lock was saturated, and CI runs the 78. - Local-only: `check-skill-frame-freshness` exit 0. `check-dev-prereqs` exit 1 ("69 of 110 workspace packages … not on disk"), which is the closure-only build and not a finding. </details> <details><summary>Eval runner and the ablation (`skill-evals`, claude-code-cli 2.1.332, oauth login, served claude-opus-5-5)</summary> Cases 3, 9 and 13 of `objectstack-ai/skills-tools-knowledge`, both arms, one repeat each: | skill text | objectstack-ai#3 with-skill | objectstack-ai#9 with-skill | objectstack-ai#13 with-skill | no-skill (all three) | |:--|:--|:--|:--|:--| | this PR | pass | pass | pass | fail | | `main`'s `SKILL.md` (`8d34c4404f`, hash `88a20cb583`), new cases (ablation) | fail: `contentFields:` written; `name:`, `content:` missing | fail: `contentFields:` written; `content:` missing | fail: `contentFields:`, `['*'],` and `id: 'faq` written; no egress reason | fail | The ablation restored `main`'s `SKILL.md` into the working tree only (`git restore --source=8d34c4404f`, `git hash-object` = `88a20cb583`). The run ran, and then `HEAD`'s file came back (`fc845724ac` both on disk and at `HEAD`). An earlier run of case 13 on this text failed with-skill only on the token `['*']`, which a correct answer quoted while explaining the refusal. The forbidden token is now the written wildcard (`['*'],` / `['*'] }`), and the table above is after that change. </details> ## Acceptance notes - The acceptance grep (`git grep -n -E "contentFields|'\*'|adapter: 'ragflow'" skills/objectstack-ai`) returns eight lines. In `SKILL.md`, three: the `content` row ("`'*'` is refused") and two lines of the retired-keys paragraph. In the eval file, five: the reference answers of cases 3 and 13, which name both as retired, and the `must_not_contain` lists of cases 3, 9 and 13, which forbid a written `contentFields:` and a written wildcard (`['*'],`, `['*'] }`). The card itself asks the eval to fail on `contentFields` or `'*'`, which puts the forbidden token on the assertion line. The reviewer decides whether those lines count as "naming a retired key as retired". - `adapter: 'ragflow'` has no hit: objectstack-ai#37004 already removed it. - The new MCP pin is an `it` inside the existing real-protocol `describe` of `mcp-authoring.test.ts`, beside the flow contract case, because that describe holds the real-protocol harness (`realProtocol`, `STUDIO_BASE`). It is in the shared harness file, not a new file. - **Premise correction (card item 3).** The card asks the served contract to carry "the tombstones' prescriptions as the describes read". It does not, by design: the served JSON Schema drops every `retiredKey()` tombstone (`{ not: {} }`; see the note in `packages/metadata-protocol/src/protocol-meta-type-schema.ts`: the served schema publishes what an author MAY write). The prescription reaches an MCP author through the save refusal instead. The pin asserts both halves: the tombstone is absent from the served schema, and a save that writes the retired key is refused naming its replacement. - The save half of the MCP pin covers row 3a's parse. Row 4's checks (objectstack-ai#37971) are not on main, so a hand-written draft is not yet judged by them here. Today the save passes with no knowledge service mounted ("no knowledge service judges nothing"). - overlap-check before the PR: `VERDICT overlap exit 1`. `origin/main`, objectstack-ai#38032 and objectstack-ai#38013 merge cleanly. objectstack-ai#36158 (a draft last updated 2026-11-25) conflicts in `scripts/check-skills-token-ratchet.mjs`. That conflict is objectstack-ai#36158's own against `origin/main`: `git merge-tree origin/main` with objectstack-ai#36158's head conflicts in the same file, and every conflict hunk is at line 798 or later, away from this branch's hunk near line 453. Reported here, not resolved. ## Verification Files to read first, by risk: 1. `skills/objectstack-ai/SKILL.md` § Knowledge Sources (RAG): the `adapter` and `content` rows and the retired-keys paragraph. 2. `packages/spec/src/kernel/metadata-create-seeds.test.ts`: the `KNOWN_UNSEEDED` reason for `knowledge_source` (no seed; `metadata-create-seeds.ts` is byte-identical to `main`). 3. `packages/runtime/src/domains/mcp-authoring.test.ts`: the new contract case. Two-minute check: `node scripts/check-skills-token-ratchet.mjs`. Expect `skills/objectstack-ai/SKILL.md is 6695 tokens (ceiling 6695; headroom 0)`. Readings: `skills/objectstack-ai/SKILL.md` 464 → 469 lines, 26462 → 26806 bytes (6609 → 6695 priced tokens, in two moves). Every published `SKILL.md` summed: 4936 → 4941 lines, 261366 → 261485 bytes (65342 → 65372 tokens). The eval file is 125 → 137 lines and 13611 → 15185 bytes; eval fixtures are measured, not ratcheted. --- _Generated by [Claude Code](https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP)_ --------- 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
…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>
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.
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr
Part of #34770
Clause-②: no
Metadata-protocol: none
Parts 2 and 3 of 3 of #34770 (objectstack-data and objectstack-automation; part 1, objectstack-ui, landed as PR #35077). The card stays open after this merges: its line "the catalog total falls toward 0.5 MB" is not met.
维护者速读
skills/**且改了上限脚本,审核记录Security-touching: yes)——评测席「改动后」一轮按裁定 ②A 与 Eval run · skill-evals objectstack-data + objectstack-automation × 2 arms × 1 rep · 3b4f0b98 · 2026-11-25 · #34770 before round #37235 的基线对齐后,请审阅并亲手合并。Ruling
Maintainer ruling 7128031203 on #34770: ①A land with every served heading kept (hosted repoint = objectstack-ai/cloud#5281) · ②A the eval seat runs before (#37235: 73/94 with skill, 21 failing cases as the parity baseline) and after rounds before this is readied · ④A a ceiling raised because text MOVED is accepted when (a) each raised row equals the measured bytes, zero headroom, and (b) the sum of all ceilings does not rise. Seat rulings on the dev's forks: landing order A (entry-file edits by others are held until this lands); served-section pointers re-pointed (②B); the pay-down accepted only where it keeps meaning.
State at head
1a90f70dmainskills/objectstack-data/SKILL.mdskills/objectstack-automation/SKILL.mdFrontmatter (lines 1–17) byte-identical to
mainin both entries; every served heading (packages/spec/scripts/skill-served-sections.json) present once atmain's level;skills/objectstack-ui/**untouched.Ratchet rows (④A (a): each =
ceil(bytes / 4), zero headroom): the two entries lowered 6710 → 2221 and 7045 → 2239;data/references/examples-objects.md1728 → 3585;data/rules/field-types.md3541 → 4187;data/rules/relationships.md4203 → 4332;data/rules/security.md4292 → 4781;data/rules/validation.md2761 → 3466;automation/references/examples-flows.md1543 → 6551;automation/references/integration-recipes.md2595 → 3056.automation/references/state-machines-and-approvals.mdis touched (one pointer) and not raised (5936).What moved where, every rule that left an entry and its home, the 17 + 1 pay-down cuts with where each one's content stays, and
main's later edits carried onto the relocated text (PR #36932/#36718 and the rest) are tabled in the dev reports on #34770: 7151308696 (round 2), 7153988410 (round 3), 7159632810 (round 4).Review history
71540330): an off-tier reading found a lost run-time trap and two stale served-section pointers (not posted as a record; the reviewer fell back off-tier).8fbebd27): contract review 7157718394, FAIL — S1/S2 closed; S3 (a new sentence inrules/security.md§ Access depth misstated three refusals) and S4 (a cut that removed twoRESOURCE_CONFLICTreason glosses).1a90f70d): S3 reverted tomain's clause, S4 glosses restored verbatim; delta contract review 7162900809 PASS (S3, S4 closed; ④A holds at zero margin).Security-touching: yes(moved permission/sharing text).Tests
No tested behaviour changes. At
1a90f70d:node scripts/check-skills-token-ratchet.mjsexit 0 (60 files within ceilings; authored 198,071 / 203,016);check:skill-served-sectionsexit 0;check:skill-linksexit 0;check:skill-identifier-liveness,check:doc-authoring,check-nul-bytesexit 0;packages/spec/scripts/platform-catalog.test.ts20 passed. #36718's flow-shape checks over every flow example the two skills teach: 0 findings on shapes the text offers (round 3). Skill-eval after-round: owed to the eval seat at this head (ruling ②A).Verification
Two-minute check:
node scripts/check-skills-token-ratchet.mjs— the nine rows read(+0)andratcheted (authored)reads198071 / 203016.🤖 Generated with Claude Code
https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr