Skip to content

docs(skills): objectstack-ui teaches a form as a form item in forms:, views: as lists only - #38790

Merged
os-zhuang merged 4 commits into
mainfrom
claude/issue-37105-skills-teach-forms
Nov 30, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/issue-37105-skills-teach-forms

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #37105

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:让 AI 助手照着平台技能包搭应用的人,以后得到的表单只有一种写法(表单单独登记,公开表单或由按钮打开),不再被教把表单写进列表视图里;平台本身的行为没有变。
  • 为什么做:属于「表单独立成一种元数据」专题的教学收口,让技能包教的写法和平台现在实际收的写法一致。
  • 出错会怎样:最坏是技能包里的说明写错,AI 照着写出不对的表单定义;这次只改说明文字和评测题,可以直接撤回。
  • 要你做什么:看一眼「旧写法」那一句。卡上允许写成「旧写法已被拒绝,用迁移命令搬走」,但主干上旧写法目前仍被接受、迁移也还没有,所以这一句只写了「不要这样写,见到就搬到表单登记处」。

What changes

The published objectstack-ui skill now teaches one way to declare a form and no other (ADR-0159 D1 and D5, as shipped on main).

  • skills/objectstack-ui/rules/list-views.md: the section Form Views is now Forms.
    • A form is a form item in the stack's forms:, written with defineForm in a *.form.ts: name (OBJECT.KEY, the prefix equal to object), object, and the body at the top level. views: holds lists only.
    • What is form content: a public form (it declares sharing.publicLink) or one an action of type: 'form' opens by its target. With neither, os validate warns form-consumer-less.
    • What is not: the record's New and Edit forms. They are the object's fieldGroups and are never a form item.
    • The two refusals: viewKind, config and data are refused on a form item (a form is bound with object); a form left open on a public address another form holds is refused, naming both (form-public-address-taken from os validate, 409 FORM_ADDRESS_TAKEN from a save), and a switched-off form that keeps its publicLink still holds the address.
    • Translations: under forms.NAME (.label, .title, .description, .submitBehavior.*, .sections.SECTION.*); a section with no key there reads objects.OBJECT._sections.SECTION.
    • One type-checked defineForm example. The defineView container example lists list and listViews only; no example authors a form inside a view.
  • skills/objectstack-ui/SKILL.md: Trap 1, the routing table's form row (*.form.ts) and the Action Types form row name the form item.
  • skills/objectstack-ui/evals/views-apps-actions-pages.json: case 25 now expects a form item an action opens (with its sections' columns); new case 28 expects a public form item on an address a switched-off form still holds. Cases 1, 6 and 19 keep their prompts and no longer name a form authored inside a view.
  • scripts/check-skills-token-ratchet.mjs: three objectstack-ui CEILINGS rows follow their files down to the measurement (numbers below).
  • .changeset/37105-skills-teach-forms.md: @objectstack/skills patch.

The one migration sentence, the only thing the card's grep returns (rules/list-views.md, the last bullet of Forms):

⛔ Never author a form inside a view (a container's form: or formViews, a viewKind: 'form' item). Move one an action opens, or with a publicLink or overrides, to forms:; delete only the rest: New and Edit never loaded it.

Round 2 (head 5a3a19bd, L2 S1 of 7285578664): the bullet now moves only a form an action opens or one with a publicLink, and deletes any other, as ADR-0159 ("Internal record forms are not moved", ruling item 3) rules. The clause is paid for by nine word trims inside the same Forms section; rules/list-views.md is 18035 bytes, 4509 tokens, so its CEILINGS row stays at 4509 (headroom 0). Cases 25 and 28 were rerun at 5a3a19bd: with-skill 2/2, no-skill 0/2. The changeset's sentence about the bullet follows.

Round 3 (head 8cd68a8e, L2 delta M1 of 7287432289): a form whose item or container declares overrides moves too, whatever its body and slot (ADR-0159 D7-b: nothing prescribes deleting it, since an override with no link is what keeps a base form's public address closed); only the rest is deleted. N4 ("the object's fields"), N5 ("a rarely filled section") and N6 (the CEILINGS row comment's arithmetic, now ceil(18035 / 4)) are fixed in the same commit; rules/list-views.md stays 18035 bytes, 4509 tokens, row unmoved. Evals at 8cd68a8e: cases 19 and 25 with-skill 1/1, no-skill 0/1; case 28 not measured (the runner's rate-limit guard stopped the round), its sentences byte-equal to 5a3a19bd, where it passed. overlap-check exits 1 only against draft PR #38497, on two files this branch does not change (the same at 5a3a19bd); pushed on the zone's ruling. Dev reports 7288496594 and 7288555864.

Read first

  1. skills/objectstack-ui/rules/list-views.md, the hunk that replaces Form Views with Forms: every sentence there is a claim about what main does (the refusals, the lint rule names, the 409, the translation keys).
  2. skills/objectstack-ui/evals/views-apps-actions-pages.json, cases 25 and 28: the grader is literal, so a wrong must_contain token passes or fails for the wrong reason.
  3. scripts/check-skills-token-ratchet.mjs, the three lowered rows: a row above or below its measurement is red.

Tests

All readings below are at head b3d7dc22 unless a line says otherwise; rounds 2 (5a3a19bd) and 3 (8cd68a8e) changed only rules/list-views.md, the changeset and (round 3) one ratchet row comment; their readings are in the paragraphs above and in the grep and size rows, which show 8cd68a8e.

Every form example parses with FormSchema (built packages/spec/dist of this tree; the fenced block is run with defineForm swapped for a recorder, the two eval answers are parsed as written):

PARSES  rules/list-views.md (fenced block) "crm_lead.web_to_lead"
PARSES  evals/views-apps-actions-pages.json case 25 (expected_output) "crm_account.intake"
PARSES  evals/views-apps-actions-pages.json case 28 (expected_output) "crm_lead.contact_us"
3 form example(s), 0 refused

Negative controls on the same schema: a form item carrying data, one carrying viewKind with config, one whose name prefix differs from object, and one carrying isDefault are each refused.

The card's grep

$ git grep -nE "formViews|viewKind: 'form'" -- skills
skills/objectstack-ui/rules/list-views.md:376:- ⛔ Never author a form inside a view (a container's `form:` or `formViews`,
skills/objectstack-ui/rules/list-views.md:377:  a `viewKind: 'form'` item). Move one an action opens, or with a `publicLink`

The two size readings (tokens are the ratchet's count, ceil(utf8 bytes / 4); SKILL.md is priced without its stamp line)

file lines before → after bytes before → after tokens before → after
skills/objectstack-ui/SKILL.md 164 → 164 8937 → 8933 2228 → 2227
skills/objectstack-ui/rules/list-views.md 414 → 407 18039 → 18035 4510 → 4509
skills/objectstack-ui/rules/navigation.md 192 → 192 10235 → 10222 2559 → 2556
skills/objectstack-ui/evals/views-apps-actions-pages.json (measured, not ratcheted) 275 → 287 29995 → 32080 7499 → 8020
skills/objectstack-ui/evals/README.md (measured, not ratcheted) 56 → 57 2729 → 2809 683 → 703
whole pack before → after
all 14 SKILL.md, lines 3406 → 3406
all 14 SKILL.md, bytes 180659 → 180655
ratcheted authored files, tokens 196276 → 196271 (−5)
eval fixtures, tokens (measured, not ratcheted) 89819 → 90360 (+541)
whole shipped tree, tokens 300941 → 301477 (+536)

Growth is paid by deletion in the same file. Cut from rules/list-views.md: the Field Conditional Rules in Forms section (now one clause that points at objectstack-data's Conditional Field Rules), the third copy of the defineView scaffold (the userActions: { search: false } example, now its one key inline), and a sentence of Master-Detail item 1 that SKILL.md Trap 2 states word for word. No ceiling is raised; the three rows are lowered because a row above its measurement is red: SKILL.md 2228 → 2227, rules/list-views.md 4510 → 4509, rules/navigation.md 2559 → 2556.

Skill evals (the runner, pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-ui, live, on the container's subscription login; no key was needed and none was written anywhere)

  • The two form cases: case 25 (a form item an action opens) and case 28 (a public form item) pass with the skill in two rounds each and fail without it in both.
  • The whole bundle, one sample per case: 37 of 44 behaviour cases pass with the skill (views 23 of 28, analytics 8 of 9, record-page 5 of 6, report-period-export 1 of 1); triggers 7 of 8.
  • The seven with-skill failures and the one trigger failure are not form cases. Six of the seven and the trigger failure fail the same way with the base tree's skills/objectstack-ui restored in place; the seventh (views case 7) passed 4 of 4 on a four-sample rerun at head. By the parity ruling (record 7249189592 on skills: SKILL.md becomes a router with a size budget, and points to the contract instead of restating it #34770) a case flipping on both trees, or within one tree, does not block.
Per-case readings of the failing cases, head and base
case                              head (with-skill)                                   base tree (with-skill)
views case 6                      fail: missing master_detail                         fail: missing master_detail
views case 7                      fail 1 of 1 (forbidden orderBy: 'stage'), then 4/4  pass 1 of 1
views case 8                      fail: forbidden ${record.name}                      fail: forbidden ${record.name}
views case 15                     fail: forbidden type: 'grid'                        fail: forbidden type: 'grid'
views case 23                     fail: missing perRecord, bulkActions: [, ctx.record; forbidden { succeeded    fail: forbidden { succeeded
analytics-inline-vs-dataset 2     fail: forbidden dateGranularity                     fail: forbidden dateGranularity
record-page 2                     fail: forbidden mode: 'split'                       fail: forbidden mode: 'split'
triggers 6 (should not load)      loaded (read-only)                                  loaded (read-only)

Driver line of every round: claude-code-cli 2.1.332, login oauth_token, no API key. The base-tree round restored only skills/objectstack-ui from the merge base f576dee5 in the working tree and was reverted afterwards (git status clean); its runner line therefore still prints b3d7dc22. The first round of cases 25 and 28 ran at b2fbb50b, the second at b3d7dc22; the skill files are byte-identical between the two commits.

Gates

node scripts/pm/dispatch-gates.mjs --commands derives 70 commands for this diff; all 70 were run at b3d7dc22, each exit code recorded before any pipe, and reconciled:

✓ dispatch-gates --ran: 70 derived famil(ies) accounted for — 69 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).

69 exit 0. NOT MEASURED: pnpm check:dual-build-cjs-loads (exit 3, PREREQUISITE NOT MET: it needs a whole-repo build), left to CI.

The 70 commands and the verdict lines of the gates this diff is about
✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted.
✓ check-skills-token-ratchet self-test: 111 cases pass.
✓ check-skill-links: 289 relative link(s) in 76 published skill file(s) resolve; 160 fragment(s) name a real heading under GitHub's slug rule.
✓ check-skill-served-sections: 24 served section(s), each heading exactly once in its file (6 json, 2 json+ts, 16 neutral); 10 JSON fence(s) parse and pass their spec validators.
✅ 351 prose examples type-check across 3 surface(s) (check:skill-examples, outside the derived list, run under the verify lock: VERDICT command-exit 0)
✅ check-scripts-symbol-anchors: 4719 anchors across 311 scripts
check-nul-bytes: OK (scanned 29016 text file(s); no raw ASCII control bytes)
✓ dispatch-gates self-test (fast tier): 2904 cases pass; 9 slow section(s) deferred.

Exit 0 at b3d7dc22: check-adr-0087-registration (and self-test), check-changeset-no-major, check-closing-keyword-parity (and self-test), check-comment-mask-corpus, check-declaration-mirrors (and self-test), check-doc-route-spelling (advisory and self-test), check-dts-emitted self-test, check-empty-changeset (and self-test), check-self-test-wired (and self-test), check-self-test-workflow-commands (and self-test), check-skills-token-ratchet (and self-test), check-temporal-live-filter (and self-test), check-whole-set-label-write (and self-test), the self-tests of ci/assert-turbo-remote-cache, ci/plan-test-core-shards, ci/prune-turbo-cache, ci/snapshot-next, pm/bare-root-worklist, pm/check-governed-queue-guard, pm/release-rehearsal-clone and release-pending-publish, @objectstack/lint check:doc-formula-expressions, @objectstack/spec check:skill-docs and check:skill-served-sections, and pnpm check: adr-anchors, agent-test-spelling, bash32-floor, changeset-gate-self-tests, ci-filter-parity, cli-command-ids, closed-ceremony-text, corpus-claim-drift, cross-package-test-inputs, doc-authoring, driver-memory-census, dts-closure, entry-guard, gitlink-declared, lean-entry-closure, merge-driver, nul-bytes, parse-guard, pm-dispatch-gates, pm-expected-skips, pm-governed-merges, pm-skill-id-lint, pnpm-filter-targets, pnpm-flag-spellings, published-files, ratchet-remedy-authority, refd-timer-probe, role-word, scripts-symbol-anchors, skill-compatibility, skill-frame-sync, skill-identifier-liveness, skill-links, sourcemap-no-sources-content, watch-hint-literal.

Exit 3 (NOT MEASURED): pnpm check:dual-build-cjs-loads.

The changeset gate went the publishing way: skills/** ships in @objectstack/skills, so the diff carries a patch changeset and no skip-changeset label (check-empty-changeset and check-changeset-no-major exit 0; Metadata-protocol: none reads as patch). The repo-wide pnpm lint and the package test suites are CI's runs; no package source is touched.

node scripts/pm/overlap-check.mjs before each push and again at b3d7dc22 against origin/main c4472c86: exit 0, merges cleanly with main and with the two open pulls that share a file (#38732 shares the ratchet script, #38192 shares skills/objectstack-ui/SKILL.md).

Acceptance notes

  • The migration sentence does not say "refused" and does not name os migrate meta. The card allows one sentence that says so, and the dispatch says to teach only what the code does on main. Measured on main: a view container with formViews still parses and is still projected, and packages/spec/src/conversions/entries/19 holds no forms conversion; the ADR's execution plan puts the tombstone and the conversion in a later card that waits on this one. The sentence is therefore an authoring prohibition that is true before and after that card. When the tombstone lands, the sentence wants its second half; that card's surface does not include skills/**, so this needs a carrier.
  • Two files beyond the three the claim names, both under skills/objectstack-ui/**: rules/navigation.md linked the heading this diff renames (check:skill-links is red without the edit) and said "form view" of the same thing; evals/README.md describes the eval file's cases. Three CEILINGS rows moved, not one: each of the three ratcheted files measured below its row.
  • Renamed anchors: rules/list-views.md#form-views is #forms; #field-conditional-rules-in-forms is gone. No file in the repo links either (the one hit is a past CHANGELOG entry).
  • Not edited, by the card's fence, and still using the old vocabulary: the SKILL.md frontmatter description ("list / form / kanban / calendar views"; changing it regenerates skills/README.md and content/docs/ai/skills-reference.mdx), skills/README.md ("named form view"), skills/objectstack-automation/references/examples-flows.md, skills/objectstack-api/SKILL.md (a FormViewSchema pointer), skills/objectstack-i18n/SKILL.md and its eval file (_views keys as a form's heading), skills/objectstack-data/rules/validation.md ("named and public forms"). ui/skills/ does not exist in this checkout.
  • Eval grader observations, not acted on: views case 6 requires the token master_detail, which skills/objectstack-ui teaches nowhere on either tree; several must_not_contain tokens fire on a correct answer that quotes the token inside a prohibition (views cases 7, 8, 15, analytics case 2, record-page case 2).
  • Stray file: a mistyped shell line in this run wrote a 10-byte file g16.exit at the container's filesystem root (outside the repo and the worktree). Removing it was refused by the tool's safety check and was not retried another way.

Verification

Two-minute check: run git grep -nE "formViews|viewKind: 'form'" -- skills on this branch. Expected: exactly the two lines of skills/objectstack-ui/rules/list-views.md quoted above (376 and 377), the one sentence (it ends on 378).

Second look, if wanted: node scripts/check-skills-token-ratchet.mjs prints 61 authored bundle file(s) within their ceilings.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No spec file is touched.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (No formatter ran. The repo-wide lint is CI's run and was not run locally.)
  • 4. One issue, one branch off an up-to-date main, one pull request. (Branched at f576dee5; main has moved 10 commits since, none touching these files.)
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (Not touched.)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done, with item 3's reading as above.

Generated by Claude Code

… views: as lists only

ADR-0159 D1 and D5. rules/list-views.md: Form Views becomes Forms and teaches
the form item (defineForm, name OBJECT.KEY, object, the body at the top
level), the two refusals an author meets, the forms translation family, and
one sentence on a form found inside a view. No example authors a form inside
a view. SKILL.md and rules/navigation.md name the form item. The evals
exercise an action-opened form item (case 25) and a public one (case 28).

Paid by deletion in the same file; the three token ceilings follow their
files down (list-views 4510 to 4509, SKILL.md 2228 to 2227, navigation 2559
to 2556).

Claude-Session: https://claude.ai/code/session_01ADHkmPDtfMCw4FJfyFfQ7v
Co-authored-by: Claude <noreply@anthropic.com>
… in words

check:scripts-symbol-anchors read the path-and-fragment spelling in the note
as a file anchor with no tracked file behind it.

Claude-Session: https://claude.ai/code/session_01ADHkmPDtfMCw4FJfyFfQ7v
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 30, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmPDtfMCw4FJfyFfQ7v

Final head for review — zone o3-K · 2026-11-30T16:48Z
Head-sha: b3d7dc22cfee6a24545f36af0459aee27f8132c6
CI: every check-run on this head is success or an expected skip (29 success, 18 skipped, 0 failed, 0 running). mergeable_state clean.
Tier H (skills, fable dev at the mandated tier). The low-risk skills arm does not cover it: scripts/check-skills-token-ratchet.mjs moves (three CEILINGS rows, each lowered to its measurement, none raised). Stays draft; the seat runs L2 and the hand-off.
Open question from the dev report 7284758813, left to the L2: the migration sentence in rules/list-views.md keeps to what main does (author a form in forms:, move one found in a view), and does not yet say the old shape is refused or name os migrate meta, because neither exists on main until the forms tombstone lands under #36868 (dev recommends A).
Next: L1 (L1-b).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB
L1-b, the seat's L1 thread · 2026-11-30T16:54Z · first review

席位核对

ACCEPT @ b3d7dc2 (#37105, ADR-0159 card ④s, the objectstack-ui skill). The PR is Tier H: it stays a draft, and L2 and the hand-over belong to the seat.

The card's order is met. Its blockers #37086 (card ②) and #37087 (card ③) are both closed as completed, so the skill teaches the shape the console now serves.

Every claim in the new Forms section was read against main 09eea107:

  • FormSchema / defineForm (spec/src/ui/view.zod.ts): the body is the FormViewSchema shape less data, at the top level. viewKind, config and data are refused by name, with "bind the form with object". checkFormItemNamePrefix refuses a name whose prefix is not object.
  • form-public-address-taken (lint/src/validate-form-items.ts, gating): only an authored form left open on a held slug is refused, and the message names both forms. heldSlug reads publicLink "switched on or off". The save door answers 409 FORM_ADDRESS_TAKEN (metadata-protocol/src/protocol-form-writes.ts).
  • form-consumer-less (advisory): it fires on no public link and no literal type: 'form' target, which is the skill's sentence.
  • Translations (lint/src/i18n-walk.ts walkForms): forms.NAME.{label,description,title}, .submitBehavior.* and .sections.SECTION.*, with the fallback objects.OBJECT._sections.SECTION.
  • Public routes (rest/src/form-routes.ts and the route ledger): GET /api/v1/forms/:slug and POST /api/v1/forms/:slug/submit.
  • The cut sentences:
    • Master-Detail item 1: Trap 2 of SKILL.md says "without it nothing changes: the child is a tab and the form has no lines" word for word.
    • The folded conditional-rules section: it now points at objectstack-data/SKILL.md ## Conditional Field Rules, which exists.
  • Old shapes: no example authors a form inside a view. Both defineView containers in list-views.md hold list / listViews only. The card's grep returns exactly lines 378–379.

Measured in a scratchpad worktree at this head (after building spec and client-react...):

  • check-skills-token-ratchet: 61 files within ceilings.
  • check-skill-links: 289 links resolve.
  • check:skill-docs exit 0.
  • check:skill-served-sections exit 0.
  • check:skill-examples: 351 examples type-check, exit 0.
  • The three file sizes match the PR table: 8933, 18036 and 10222 bytes.

Ablations, each restored after:

  • data added to the defineForm example: check:skill-examples goes red at list-views.md:360, so the example really is checked.
  • The base's CEILINGS rows restored: the ratchet goes red on all three files ("above the measurement by 1 / 1 / 3").
  • The base navigation.md restored: check-skill-links goes red on its #form-views dead anchor.

Eval grading. I graded hand-written answers with main's parseEvalFile and gradeAnswer. The file parses into 28 cases with 0 refusals, so must_contain_any is accepted.

  • Cases 25 and 28, correct defineForm answers: both pass.
  • Old-shape answers (formViews in a defineView): both fail on defineView(, provider: 'object' and the defineForm / forms: group.
  • A case-28 answer that says switching the old form off frees the address: it fails, because nothing in it names the refusal.
  • So both new cases discriminate the shape the card is about.

The files beyond the claim are justified. The claim named 3 files; the diff has 7.

  • rules/navigation.md is needed: without it check-skill-links is red, as ablated above.
  • The three CEILINGS rows are needed: a row above its measurement is red, as ablated above. All three move down, and none is raised.
  • evals/README.md describes the changed cases. It is unratcheted prose and in the same bundle.
  • The changeset is owed, because skills/** publishes in @objectstack/skills.
  • No contract face beyond the skill. No package source, spec file or generated artifact is touched.

The dev's question for L2 (the migration sentence written as reading A). On main the old shapes still parse and project: projectViewForms is read by the lint, and "two old-shape forms … keep today's behaviour". No forms conversion exists under conversions/entries/19. So "refused" and os migrate meta would be false today, and reading A is the true sentence. When the tombstone card lands, the sentence needs its second half. That card's surface excludes skills/**, so it needs a carrier. For the seat: that carrier and the out-of-fence old-vocabulary residue the PR lists (e.g. objectstack-api/SKILL.md "A FormView is served by…") are follow-ups, not must-fixes here.

CI at this head: 29 success, 18 skipped, mergeable_state clean. main has moved since the PR's base f576dee5. In these paths it changed only one unrelated CEILINGS row (objectstack-ai/SKILL.md).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b3d7dc22cfee6a24545f36af0459aee27f8132c6
Local-runs: none
Scope: skills/objectstack-ui/SKILL.md, skills/objectstack-ui/evals/README.md, skills/objectstack-ui/evals/views-apps-actions-pages.json, skills/objectstack-ui/rules/list-views.md, skills/objectstack-ui/rules/navigation.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes
Rule-change-verified: none

Read for this record: card #37105 (body and all five comments), PR #38790 (body, file list, the net diff of seven files against main), and the check-runs on this head: 29 success, 18 skipped, none failed or running. Code on main at 09eea107e5 was read to judge the taught sentences; nothing was built or run. The remainder of the diff (.changeset/37105-skills-teach-forms.md) is the lane seat's ACCEPT, read here only for ②.

① Derived judgments

  • Public surface. The published objectstack-ui skill changes what it teaches; no schema, no accept-set, no route and no generated artifact changes. Right: the card forbids a spec, server or console change, and the diff holds none.
  • Anchors. rules/list-views.md#form-views becomes #forms and #field-conditional-rules-in-forms is removed. Right: the one in-bundle link (rules/navigation.md) follows, the skill-links gate is green on this head, and the changeset names both removed anchors for outside readers.
  • Eval accept-set. Case 25 and new case 28 use must_contain_any, the first use in this bundle. Right: the grader on main reads that key (packages/qa/scenarios/src/skill-evals/grade.ts, cases.ts), and three other bundles already use it.
  • Ratchet rows. Three CEILINGS rows are lowered and none is raised. Right: see ④.

② Semver level

@objectstack/skills patch is right: the diff publishes teaching text and eval fixtures in that package and nothing else that ships. Check Changeset is success on this head, and the changeset body matches the diff sentence by sentence, the migration sentence included.

Clause-②: no, on the card, the PR body and the changeset alike, and the diff agrees: no declared capability is narrowed and no accept-set moves. Metadata-protocol: none is right for the same reason.

③ Boundary flags

Open question 1, the migration sentence: A stands. The reason is in the tree on main:

  • ViewSchema still declares form and formViews, and the container still expands them into served items (packages/spec/src/ui/view.zod.ts, the container shape and expandViewContainer).
  • The lint and the save door still read forms projected out of the old shapes (packages/lint/src/validate-form-items.ts#stackForms, packages/metadata-protocol/src/protocol-form-writes.ts).
  • packages/spec/src/conversions/entries/19 holds three conversions, none for forms. The semantic entries for major 19 that name forms say of themselves that neither has a source the chain rewrites.
  • ADR-0159's schedule puts the tombstone and the conversion in the later major-19 card.

So "refused" and os migrate meta would each be a sentence the tree does not do, in a published package. B is declined. The second half is owed when the tombstone lands, and that card's surface excludes skills/**: the seat files a carrier under #36868. The wording kept under A has one defect of its own, graded in ④ as S1; it does not change this ruling.

Open question 2, the PR body attribution lines: no reader was found for them (no gate on this head asks for them, and the PR-body guards are green), so the body stays as stored.

Dev deviations.

  • Two files beyond the three the claim names: accepted. rules/navigation.md linked the renamed heading, and evals/README.md describes the changed cases; both are inside skills/objectstack-ui/**, which the claim's surface line admits when named in the report.
  • Three ratchet rows instead of one: accepted, each row belongs to a file this diff changes.
  • Local readings not taken (repo-wide lint, package suites, check:dual-build-cjs-loads): answered by the check-runs on this head, all success.
  • The base-parity eval round, the one search read and the stray file at the container root are outside the repository and outside this contract; nothing to rule.

Out-of-scope findings, for the seat to file (not this PR's):

  • The old form vocabulary outside this card's fence: the SKILL.md frontmatter description (it also lists no *.form.ts among the files that load the skill), skills/README.md, and the automation, api, data and i18n bundles. The i18n one is the strongest: it teaches _views keys as a form's heading, while walkForms on main scaffolds forms.NAME.* for a form item and reads _views only as the old shapes' fallback.
  • The standing eval-grader observations (a token taught nowhere; must_not_contain tokens that fire on a quoted prohibition; no token check on the objectstack-* bundles).

SQL push-down: not applicable, the diff holds no query code.

Security. Security-touching: yes is meant. The Forms hunk and eval case 28 teach who can reach a form without signing in (sharing.enabled, allowAnonymous, publicLink) and that a switched-off form still holds its public address. That is sharing and anonymous-access behaviour, taught under a path whose name does not show it. The seat adds the security label.

④ Design judgment

skills/objectstack-ui/rules/list-views.md, each taught sentence against main:

  • A form is a form item in forms:, built with defineForm: holds (stack.zod.ts forms: z.array(FormSchema); defineForm parses FormSchema).
  • name is OBJECT.KEY with the prefix equal to object: holds (checkFormItemNamePrefix).
  • The body is at the top level; viewKind, config and data are refused, a form is bound with object: holds (FORM_ITEM_GUIDANCE, formItemBodyShape drops data).
  • type is simple, tabbed or wizard, and a wizard step lists fields: holds (FormViewSchema.type, checkFormViewBody).
  • A form with no public link and no type: 'form' action target warns form-consumer-less: holds (validateFormConsumers, advisory).
  • A form left open on a held address is refused, naming both, as form-public-address-taken and as 409 FORM_ADDRESS_TAKEN on a save; the address is held switched on or off: holds (validateFormPublicAddresses, gating; formAddressClashRefusal).
  • The public routes in the example comment: hold (packages/rest/src/form-routes.ts, GET /forms/:slug and POST /forms/:slug/submit under the API base).
  • An action of type: 'form' opens the form on its own page by name: holds (the action runner routes to /forms/:name, and the console form page reads /meta/form/:name).
  • Translations under forms.NAME with objects.OBJECT._sections.SECTION as the section default: holds (walkForms, its fallbackPath).
  • "views: holds lists only": read as the authoring rule the card orders, not as a refusal. It holds as written because the last bullet of the section says a form can still be found in a view.
  • The cuts: the conditional-rules section is now one clause pointing at a heading that exists in objectstack-data; the dropped Master-Detail sentence is stated by SKILL.md Trap 2; the third scaffold copy is one inline key. No taught fact is lost.

S1 (should-fix) — the migration bullet tells the reader to move every form found inside a view to forms:, and names "a container's form:" first. That is the record-form slot. ADR-0159 (Sources, "Internal record forms are not moved", ruling item 3) says a form in a record-form slot (the container's default form, formViews.default, formViews.create) with no publicLink and no action target is deleted, not moved: its layout belongs to the object's fieldGroups. The same section's first paragraph says New and Edit forms are never form items, so the bullet contradicts the section it closes. A reader who follows it on an existing project makes a form item that nothing opens, and is then told by form-consumer-less to give it a link or an action. The fix is one clause: move a form an action opens or that declares a publicLink; delete any other, since New and Edit never loaded it. This keeps reading A. The fix moves the file's bytes, so its CEILINGS row is re-pinned at the new measurement, paid by deletion in the same file.

skills/objectstack-ui/SKILL.md: Trap 1, the routing row (*.form.ts, defineForm, forms:) and the Action Types form row each hold against the same code. The repository's own example is examples/app-showcase/src/ui/forms/feedback.form.ts, listed under forms: in its config.

skills/objectstack-ui/rules/navigation.md: the three edits are vocabulary and the followed link. They hold; no sentence about behaviour changes.

skills/objectstack-ui/evals/views-apps-actions-pages.json:

  • Case 25 (action-opened form item) is answerable from the bundle as taught: the item shape, the name rule, the section columns, the type: 'form' action and the fieldGroups answer for the New dialog are all in list-views.md, navigation.md and SKILL.md. Its required tokens are ones a correct answer writes; its forbidden tokens (defineView(, provider: 'object', modalSize:) are ones a correct answer has no reason to write.
  • Case 28 (public form item on a held address) is answerable: the example, the address-holding bullet and the rule name are in list-views.md. The second any-of group accepts the lint rule name, the save code or the phrase "holds its address", so a correct answer in any of the three wordings passes, and an answer that says switching the old form off frees the address does not.
  • Cases 1, 6 and 19 keep their prompts and assertions apart from one token; their expected text no longer names an old shape as something to write.
  • The file parses as 28 cases, ids 1 to 28.

skills/objectstack-ui/evals/README.md: the case list matches the file.

scripts/check-skills-token-ratchet.mjs (implementing file): only the three rows of files this diff changes move, all downward, none raised, so no raise authority is needed. Each is pinned at the measurement, with the arithmetic in its comment, and the blob sizes on this head agree:

  • SKILL.md: 8933 bytes, 8906 priced without the 27-byte stamp line, 2227 tokens.
  • rules/list-views.md: 18036 bytes, 4509 tokens.
  • rules/navigation.md: 10222 bytes, 2556 tokens.

The ratchet gate and its self-test are green on this head. main has since changed one other row of the table (objectstack-ai/SKILL.md); the PR reads clean.

Nits, none affecting correctness or the contract:

  • N1 (nit): case 1 gains the forbidden token defineForm(. A correct answer that quotes the call inside a prohibition would fail on it. This is the standing class the dev already reported; left for the eval-grader follow-up.
  • N2 (nit): the expected text of cases 6 and 19 still opens "No form view". It is not graded; fix on a later prose pass.
  • N3 (nit): evals/README.md's Format section lists must_contain and must_not_contain and not must_contain_any, which this bundle now uses. No bundle README names it; a follow-up for all of them.

Implemented-by: claude/issue-37105-skills-teach-forms
Reviewed-by: session_01ADHkmSAjFEZHRpRq3WCj6z

VERDICT: PASS

…pens, and deletes the rest

A form in a record-form slot that no action opens and that declares no
publicLink is deleted, not moved: New and Edit never loaded it, and its
layout is the object's fieldGroups (ADR-0159, internal record forms are
not moved). The bullet said to move every form found in a view.

The clause is paid for in the same section; rules/list-views.md stays at
its ceiling (18036 to 18035 bytes, 4509 tokens).

Claude-Session: https://claude.ai/code/session_01ADHkmPDtfMCw4FJfyFfQ7v
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmPDtfMCw4FJfyFfQ7v

Final head for review, round 2 — zone o3-K · 2026-11-30T18:04Z
Head-sha: 5a3a19bd1639d2a490a2aab93d3deac99ec9f820 (one commit on b3d7dc22, no history rewritten)
CI: every check-run on this head is success or an expected skip (31 success, 20 skipped, 0 failed, 0 running). mergeable_state clean. Still GOVERNED (skills paths on the register); stays draft.
Delta: the L2 S1 of 7285578664. The migration bullet of rules/list-views.md now moves only a form an action opens or one with a publicLink, and deletes any other (ADR-0159, "Internal record forms are not moved"); reading A kept. Paid by nine word trims in the same Forms section: 18035 bytes, 4509 tokens, so the CEILINGS row stays at 4509 and the ratchet script is not edited this round. The changeset's sentence follows. Nits N1–N3 untouched. Dev report 7286689824. PR body patched to the new sentence, grep lines (377–378) and byte count.
Next: L1 delta (L1-b), then the seat's L2 delta and hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB
L1-b, the seat's L1 thread · 2026-11-30T18:05Z · delta review

席位核对

ACCEPT @ 5a3a19b (#37105). The delta is one commit on b3d7dc2: L2 S1 (7285578664), in rules/list-views.md and the changeset only.

S1 is closed. The bullet now says: never author a form inside a view; move one an action opens, or one with a publicLink, to forms:; delete any other, "New and Edit never loaded it". This matches ADR-0159's ruling item 3 ("Internal record forms are not moved"). It agrees with the section's own first paragraph and with form-consumer-less, and it stays reading A: there is no "refused" and no os migrate meta. The card's grep still returns only this sentence. The changeset says the same.

The bytes are paid in the same section. There are nine cuts, and none removes a rule. I read each against the b3d7dc2 text.

  • stacked sections becomes stacked, child line items becomes child lines, and column count becomes columns.
  • "opens on its own page" is dropped. SKILL.md's Action Types form row still says it.
  • Measured at this head:
    • list-views.md is 18035 bytes, which is 4509 tokens, the unchanged ceiling;
    • check-skills-token-ratchet: 61 within ceilings;
    • check-skill-links: 289 resolve.
  • No fenced block changed, so the check:skill-examples reading of b3d7dc2 stands.

Two nits, neither blocking:

  • "built from its fields" lost "the object:". In "…and a create or edit an action opens are built from its fields", its now reads nearest to "an action".
  • "folds a rarely filled section" became "folds its section". That drops the cue for when to collapse, which eval case 19 asks for ("the other four rarely"). No other file in the skill carries the word.

CI at this head: 31 success, 20 skipped, 0 failed. The PR is GOVERNED, stays a draft, and the hand-over is the seat's.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 5a3a19bd1639d2a490a2aab93d3deac99ec9f820
Local-runs: none
Scope: skills/objectstack-ui/SKILL.md, skills/objectstack-ui/evals/README.md, skills/objectstack-ui/evals/views-apps-actions-pages.json, skills/objectstack-ui/rules/list-views.md, skills/objectstack-ui/rules/navigation.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes
Rule-change-verified: none

Delta record against record 7285578664 on b3d7dc22. Read for it: the compare of b3d7dc22...5a3a19bd (one commit, ahead 1, behind 0, no history rewritten), the L1 delta comment 7287360413, the final-head comment 7287316902, and the check-runs on this head. The delta touches two files: skills/objectstack-ui/rules/list-views.md (11 lines changed, all in the Forms section) and the changeset (one sentence). Everything the first record judged outside those hunks is unchanged and stands.

① Derived judgments

No accept-set and no public surface moves in the delta. No fenced block changed, so the one type-checked defineForm example is byte-equal to the one judged on b3d7dc22. The card's grep still returns only the migration bullet, now at lines 377 to 379.

② Semver level

Unchanged: @objectstack/skills patch, right. The changeset's sentence on the bullet follows the new wording, so it carries the same defect as the bullet (④, M1) and follows its fix.

Clause-②: no, and the delta agrees.

③ Boundary flags

  • Open question 1 stays ruled A. The new bullet names no refusal and no os migrate meta.
  • Nothing new is flagged by the dev on this head beyond the S1 fix and the byte trims, both judged in ④.
  • SQL push-down: not applicable, no query code.
  • Security: Security-touching: yes stands. M1 below is itself a public-address matter.

④ Design judgment

S1: closed. The bullet no longer sends a record-form slot to forms:. It moves a form an action opens or one with a publicLink, and it agrees with the section's first paragraph and with form-consumer-less.

M1 (must-fix) — "delete any other" prescribes deleting a form that ADR-0159 says nothing may prescribe deleting. D7-b: a form held by an item or a container that carries an overrides declaration is moved to forms[] "whatever its body and slot", and "Nothing deletes it and nothing prescribes deleting it". The reason is in the same paragraph: an override with no link over a base form that declares a publicLink is what keeps the base's address closed, and deleting it serves the base's body again, so the public address answers. The old shapes accept the declaration on main (OverrideDeclarationFields on the view item in packages/spec/src/ui/view.zod.ts), and validateFormConsumers stays silent on an item with overrides for this very reason. A reader who follows the bullet on such an item, which has no action target and no link of its own, deletes it and re-opens an anonymous address. The class is narrow, but the direction is the one the ADR forbids. The wording came from the fix the first record prescribed for S1, which left this case out; the defect is in that prescription as much as in the diff. The fix is a few words: a form that declares overrides moves too, and only then is any other deleted. The changeset sentence follows.

The nine trims (item 2). Each was read against the b3d7dc22 text:

  • "the object:", "own", "It is a form" (now "Something opens it"), "on a field" (reordered), "column count" (now "columns"), "stacked sections" (now "stacked"), "child line items" (now "child lines"): no rule is lost in any of these.
  • "on its own page" is dropped from the type: 'form' clause. The rule survives in SKILL.md's Action Types form row.
  • "a rarely filled" is dropped from the collapse bullet. This is not a rule, but it is a cue; see N5.

None of the nine removes a rule an author needs.

L1's two nits (item 3):

  • N4 (nit): "a create or edit an action opens are built from its fields". With "the object:" gone, "its" has no antecedent in its own sentence and sits nearest to "an action". The rest of the clause (fieldGroups, the heading sentence before it) still points at the object, so no reader is led to a wrong key. Restore "the object's fields" when the head next moves.
  • N5 (nit): "folds its section" lost "rarely filled". Eval case 19 is still answerable from the bundle: the bullet still teaches that collapse: 'collapsed' on a fieldGroups entry folds its section, it is the only folding key the bundle teaches, and the prompt itself says which four sections are rarely filled. What is lost is the cue for when to fold, and no other file in the bundle carries it. No eval run on this head is among the inputs, so "still answerable" is a reading of the text, not a measured pass. Restore the two words when the head next moves.

Both are nits by themselves. M1 moves the head anyway, so both are fixed in that commit and the bytes for all three are found in the same section.

The ratchet row (item 4). rules/list-views.md is 18035 bytes on this head, which is 4509 tokens (18035 / 4 = 4508.75, rounded up). The row reads 4509, so it is at the measurement and the script is rightly not edited.

  • N6 (nit): the row's comment still gives the arithmetic of the previous head, "18039 -> 18036 bytes" and ceil(18036 / 4). The token value is right and the gate is green; the byte figure is one off. The M1 fix changes the bytes again, so the comment is corrected to the final measurement in that commit.

Anything else (item 5). Nothing else moved: two files, both named above. SKILL.md, rules/navigation.md, the eval file, its README and the ratchet script are byte-equal to b3d7dc22. Check-runs on this head: 31 success, 20 skipped, none failed or running. The PR is a draft and reads clean against main.

N1, N2 and N3 of the first record are untouched and stay as graded there.

Implemented-by: claude/issue-37105-skills-teach-forms
Reviewed-by: session_01ADHkmSAjFEZHRpRq3WCj6z

VERDICT: FAIL

… is deleted

The form-in-a-view bullet told the reader to delete every form that no
action opens and that declares no publicLink. ADR-0159 D7-b: a form held
under an overrides declaration moves to forms whatever its body and slot,
and nothing prescribes deleting it, because an override with no link over
a base form that declares one is what keeps the base's address closed.
The bullet now moves it with the other two and deletes only the rest.

Same section: "the object's fields" and "a rarely filled section" are
back. The clause and the two restorations are paid for there, with no
rule removed; rules/list-views.md stays at 18035 bytes, 4509 tokens, and
its row is not moved. The row's comment now carries the final byte count.

Claude-Session: https://claude.ai/code/session_01ADHkmPDtfMCw4FJfyFfQ7v
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmPDtfMCw4FJfyFfQ7v

Final head for review, round 3 — zone o3-K · 2026-11-30T19:18Z
Head-sha: 8cd68a8e37a77d681d55a8cc7b677e925d72651b (one commit on 5a3a19bd, a fast-forward, no history rewritten)
CI: every check-run on this head is success or an expected skip (31 success, 20 skipped, 0 failed, 0 running). mergeable_state clean. Still GOVERNED; stays draft.
Delta: the L2 delta M1 of 7287432289. A form whose item or container declares overrides now moves to forms: with the ones an action opens or that carry a publicLink; only the rest is deleted (ADR-0159 D7-b). N4, N5 and N6 are fixed in the same commit. rules/list-views.md stays 18035 bytes, 4509 tokens, so its row is unmoved and only the row comment's arithmetic changes. Evals at this head: cases 19 and 25 pass with-skill and fail no-skill; case 28 is NOT MEASURED (the runner's rate-limit guard stopped it), and its graded sentences are byte-equal to 5a3a19bd, where it passed. Dev reports 7288496594 and 7288555864. PR body patched to match.
Zone ruling on the push: overlap-check exits 1 only against draft PR #38497, on packages/objectql/src/protocol-custom-arrangement.test.ts and packages/services/service-knowledge/src/knowledge-service-record-sync.ts, which this branch does not change. The two files it shares with #38497 (the ratchet script, rules/list-views.md) merge cleanly, and 5a3a19bd reads the same, so the zone had the commit pushed as it stood.
Next: L1 delta (L1-b), then the seat's L2 delta and hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmT9HTWLMN33WUVxVWB
L1-b, the seat's L1 thread · 2026-11-30T19:20Z · delta review (round 3)

席位核对

ACCEPT @ 8cd68a8 (#37105). This round is one commit, a fast-forward on 5a3a19b. It touches rules/list-views.md, the changeset and the comment of the unchanged list-views.md CEILINGS row.

M1 is closed (L2 delta 7287432289). The bullet now reads: "Move one an action opens, or with a publicLink or overrides, to forms:; delete only the rest." I read it against ADR-0159 D7-b on main (lines 273–274). A form held by an item or container carrying an overrides declaration "is moved to forms[] whatever its body and slot", and "Nothing deletes it and nothing prescribes deleting it". The bullet now prescribes exactly that, and the changeset sentence follows.

The rest of the commit:

  • Both nits from my last record are fixed: "built from the object's fields", and "folds a rarely filled section".
  • The opening sentence is reworded with no rule lost: "Something opens it: a sharing.publicLink (a public form), or an action of type: 'form' whose target is its name".
  • The fence comment shortens to POST …/submit, and nothing in the fence's TypeScript changes.

Measured at this head:

  • list-views.md is 18035 bytes, 4509 tokens, the ceiling unchanged.
  • check-skills-token-ratchet: 61 within ceilings.
  • check-skill-links: 289 resolve.
  • The card's grep still returns only the one sentence, now lines 376–377.

Evals. Case 28 was not re-run (the rate-limit guard stopped it). The sentences it grades are the same as at 5a3a19b, and this commit changes none of them. My first record graded case 28 by hand against main's grader, and that reading stands.

overlap-check exit 1 against draft #38497. The zone reports it on two files this branch does not change. Merge risk is the seat's to weigh.

CI at this head: 31 success, 20 skipped, 0 failed. The PR is GOVERNED, stays a draft, and the hand-over is the seat's.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8cd68a8e37a77d681d55a8cc7b677e925d72651b
Local-runs: none
Scope: skills/objectstack-ui/SKILL.md, skills/objectstack-ui/evals/README.md, skills/objectstack-ui/evals/views-apps-actions-pages.json, skills/objectstack-ui/rules/list-views.md, skills/objectstack-ui/rules/navigation.md + scripts/check-skills-token-ratchet.mjs
Security-touching: yes
Rule-change-verified: none

Second delta record, against record 7287432289 on 5a3a19bd. Read for it: the compare of 5a3a19bd...8cd68a8e (one commit, ahead 1, behind 0, a fast-forward), the L1 delta comment 7289243797, the final-head comment 7289197575, the check-runs on this head, and the file list and two patches of draft #38497 for the question in ③. The delta touches three files: skills/objectstack-ui/rules/list-views.md (the Forms section only), two comment lines of one row in scripts/check-skills-token-ratchet.mjs, and one sentence of the changeset. Everything the earlier records judged outside those hunks is byte-equal and stands.

① Derived judgments

No accept-set and no public surface moves in the delta. Inside the type-checked fence only a comment changed; the defineForm call is byte-equal to the one judged before. The card's grep still returns only the migration bullet, now at lines 376 to 378.

② Semver level

Unchanged: @objectstack/skills patch, right. The changeset sentence now reads that a form an action opens, or one that declares a publicLink or overrides, moves to forms:, and only the rest is deleted. It matches the bullet.

Clause-②: no, and the delta agrees.

③ Boundary flags

④ Design judgment

M1: closed. The bullet reads: move a form an action opens, or one with a publicLink or overrides, to forms:; delete only the rest. That is ADR-0159 D7-b as written: a form held by an item or a container that carries an overrides declaration is moved whatever its body and slot, and nothing prescribes deleting it. What remains to delete is the internal record form of ruling item 3, which New and Edit never loaded. S1 stays closed.

N4: closed. The sentence reads "built from the object's fields".

N5: closed. The bullet reads "folds a rarely filled section", so eval case 19's cue is back in the bundle.

N6: closed. The row comment gives 18039 -> 18035 bytes and ceil(18035 / 4). The blob on this head is 18035 bytes, which is 4509 tokens, and the row reads 4509: at the final measurement, zero headroom.

The bytes paid back this round. Four rewordings, each read against the 5a3a19bd text; none removes a rule:

  • "a create or edit an action opens" becomes "an action's create or edit".
  • "(defineForm, a *.form.ts)" loses its article.
  • The consumer sentence now reads: something opens it, a sharing.publicLink (a public form) or an action of type: 'form' whose target is its name. Both consumers, the target rule and the form-consumer-less warning are all still stated.
  • The fence comment's second route shortens to POST …/submit.

Eval case 28, not run this round. The tokens it grades are the item shape (object, the 'crm_lead. name, enabled, allowAnonymous, publicLink, defineForm or forms:) and one of form-public-address-taken, FORM_ADDRESS_TAKEN or "holds its address". The address-holding bullet and the defineForm call that teach them are byte-equal to 5a3a19bd. The eval file itself is unchanged. The reading of the first record stands; it is a reading of the text and not a measured pass on this head.

Anything else. Nothing else moved. SKILL.md, rules/navigation.md, the eval file and its README are byte-equal to 5a3a19bd. Check-runs on this head: 31 success, 20 skipped, none failed or running. The PR is a draft and reads clean against main.

No must-fix, no should-fix.

One nit, with no effect on correctness or the contract:

  • N7 (nit): the fence comment's POST …/submit leaves the reader to carry the slug across the ellipsis. Case 28's expected text spells the full route, and it is not a graded token. Leave it, or spell it out on a later prose pass when bytes allow.

N1, N2 and N3 of the first record are untouched and stay as graded there, for the follow-ups named in it.

Implemented-by: claude/issue-37105-skills-teach-forms
Reviewed-by: session_01ADHkmSAjFEZHRpRq3WCj6z

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

维护者速读

  • 用户能看到什么变化: 只改技能文字。objectstack-ui 技能现在教:表单是 forms: 里的 form 条目(用 defineForm),views: 只放列表。新增一节讲 Forms:两种使用者(动作打开的表单、带 publicLink 的公开表单)、公开地址,以及从旧写法迁移时哪些表单要挪、哪些删。评测加了两道题。
  • 为什么做: 卡 Skills teach forms: as the one way to declare a form, and views: as lists only (ADR-0159, card ④s) #37105(ADR-0159 的 ④s 卡)。迁移那句只写 main 现在的行为(旧写法仍被接受,还没有 forms 转换),等 major-19 墓碑落地再补「已拒收 + os migrate meta」。
  • 出错会怎样: 不改代码行为,最坏是 AI 写表单的方式不对。撤销合并即可恢复。
  • 要你做什么: 动了 skills/**,属于受管路径,按 Tier H 需要你批准。不走低风险技能通道:有 security 标签(讲到匿名访问、公开地址、关掉的表单仍占着地址),还改了 scripts/ 的 ratchet 行。批准后由席位落地。注意:rules/list-views.md 的余量是 0,feat(objectql): a record in a closed state, and its lines, are closed to change (closedStates, ADR-0162) — trunk #38497 也改这个文件,谁后合入谁要重新量那一行。

Seat opinion: land as is.

席位核对

ACCEPT at head 8cd68a8e37a77d681d55a8cc7b677e925d72651b · Tier H (governed skills/**; low-risk skills arm refused: security label, scripts/ path) · Fixes #37105

  1. Shape: seven files, +120 / -70: the Forms section and the views-are-lists rule in skills/objectstack-ui/rules/list-views.md, SKILL.md and rules/navigation.md wording, two eval cases (25, 28) and the evals README, three CEILINGS rows in scripts/check-skills-token-ratchet.mjs (all lowered or pinned at the measurement), and the changeset (@objectstack/skills patch).
  2. Premise: every taught sentence was read against main: forms: on the stack, defineForm / FormSchema, the form lint rules (form-consumer-less advisory, form-public-address-taken gating, 409 FORM_ADDRESS_TAKEN), the public routes, the type: 'form' action, and the forms.NAME translation keys (L2 7285578664 ④). The migration bullet follows ADR-0159 D7-b: a form an action opens, or that declares publicLink or overrides, moves to forms:; only the rest is deleted (delta 7289321819).
  3. Gates: on this head 31 success, 20 skipped, 0 failed; mergeable clean. Clause-②: no, Metadata-protocol: none.
  4. Accepted deviations: N1 (eval case 1's forbidden defineForm( token), N2 (cases 6 and 19 expected text), N3 (README omits must_contain_any), N7 (a fence comment's route spelled with an ellipsis). Eval case 28 was not re-run on the last head (rate-limit guard); the sentences it grades are byte-equal to the round it passed.
  5. Out of scope and where it went: the migration sentence's second half (refused, os migrate meta) is owed when the major-19 tombstone lands, under ADR parent 表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868; old form vocabulary in other skills (objectstack-i18n, objectstack-api, the SKILL.md frontmatter description). Both are named in the records and left uncarded under the maintainer's no-new-cards order.
  6. Landing: L1-b delta ACCEPT 7289243797 and L2 delta PASS 7289321819 on this head (rounds 7285578664, 7287432289). Lands after os-zhuang approves.

ACCEPT → comment 7289243797 · Contract review → comment 7289321819

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 30, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 30, 2026 22:22
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 3000662 Nov 30, 2026
59 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-37105-skills-teach-forms branch November 30, 2026 22:49
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 30, 2026
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…jectstack-ai#38795)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi99QsuPTPkC1uKm2mViUT3Rf)_

Part of objectstack-ai#34770

Clause-②: no
Metadata-protocol: none

`Part of`, not the closing form: the catalog-size line of the card's
Done-when is not met by this PR. This is PR 4 of the per-skill split,
under claim 7280537583 and its amendment 7280758590.

## 维护者速读

- 用户能看到什么变化:用户无感。发给 AI 的「表达式与公式」技能说明,入口文件从约 24 KB 缩到 9
KB:入口只留开工前四项检查、一段可照抄的示例、一份可用函数名单、八个「写得通过却算错或被拒」的坑,以及其余内容去哪里查的指路表。
- 为什么做:这是「技能目录瘦身」的第七份(界面、数据、自动化、平台、跨大版本升级、多语言翻译六份已完成)。入口文件每次都整份装进 AI
的上下文,越长越贵,也越容易漏读。
- 出错会怎样:只动教 AI 的文字,没有产品行为变化;风险是 AI
少读一段后答错。改动前后都跑了评测:十四道题每题三遍共四十二次,最新一版通过三十九次,改动前是三十二次;没有哪一题是改动后才每遍都不过的。合约审查提的两处应改(示例里一条判断在新建记录时会报错;一句「算不出就中止写入」说得过宽)已在入口内改好。可整笔撤回。
- 要你做的:无。席位核对与合约审查通过后,会按治理规则请审批人批准。

## Rulings this executes

- **Card Scope** (decision record on the card, S3 = A): the entry file
holds first checks, at most about 8 traps and a routing list; 6–9 KB,
hard cap 500 lines; restated option lists and function tables go behind
a pointer; no trap is removed until a publish-time check covers it or it
stays inline.
- **7128031203** fork 4 = A: ratchet rows are pinned at the measurement
with zero headroom, and the sum of ceilings does not rise. Here no row
rises and none is added.
- **7168461386** = A: text an eval shows the entry lost goes back into
the entry, paid inside the entry. Used three times in this PR (see Eval
parity).
- **Ruling record 7249189592**, the parity rule: a case whose result
flips between runs on both trees is unstable on both and does not block;
a case that fails on every run of the head while `main` passes is a
regression.
- **Seat order for this PR** (claim amendment 7280758590): same shape as
PR 3 (objectstack-ai#38663); no new file under `skills/` (a new file needs a new
ratchet row, which stays with a human); the cut, not a move, lowers the
catalog total.

## What changes

**The entry file becomes a router.**
`skills/objectstack-formula/SKILL.md`: 24,377 → 8,999 bytes, 485 → 135
lines, 6,088 → 2,243 tokens. Frontmatter (description, tags) is
byte-identical. It now holds:

- `## First checks`, four: the installed contract wins over the
`compatibility` line; read the object's declared fields and the contract
of the key that takes the expression, and never recall a function; bare
CEL under the `F`, `P` or `cel` tag, never braces round a field
reference, with the Salesforce spellings it keeps; verify with `os
validate`, `os build` or the `validate_expression` agent tool.
- One type-checked block, eight lines: a text formula with every
nullable operand coalesced, a guarded divisor, the two date wraps, a
`label()` formula, a null-guarded predicate, the transition predicate
behind its insert guard (`previous != null && …`), a seed value.
- `## Scope and functions`: the roots an expression can read, and every
advertised function name as a call form, in five lines.
- `## Traps`, eight: `has()` is not a null check on a server-evaluated
predicate; action `visible` / `disabled` are the exception; a transition
compares `previous`; a list field is never compared with a scalar; a
`date` / `datetime` field is its ISO text; `label()` and the working-day
functions belong to a formula or a stored field's `expression`; a
dynamic seed value is the `cel` tag; a `template` is not CEL.
- `## Where to go`: six rows (the contract, the published formulas page,
and the four sibling skills). Three run-time facts ride the rows that
send them elsewhere: a `formula` field is virtual; a view filter is not
CEL; a form-view `visibleWhen` faults open.

**No text moved.** This skill has no hand-written reference file
(`references/_index.md` is generated), and a new file needs a new
ratchet row. So what left the entry was cut, each behind what now
answers it:

| Old entry section | Now |
|:--|:--|
| Opening callout (bare CEL, no braces) | First check 3, which describes
the mistake and no longer spells it. |
| Skill Boundaries | The frontmatter description and the routing table.
|
| Core contract | The opening paragraph (the envelope, the three
dialects, no `js`) and first check 3 (structured output carries the
envelope). Cut: the engine behind each dialect and the helper column;
the block shows the three CEL tags, and the `cron` and `tmpl` tags are
in the contract. |
| CEL syntax cheat-sheet | The roots line of `## Scope and functions`,
with `os.org` still limited to `id` and `tier`. Cut: the operator rows,
which are plain CEL. The list-equality paragraph is trap 4, with the
three positive membership forms; the three negated forms are cut (the
same guard, negated). |
| `has()` is NOT a null check | Traps 1 and 2. The publish-time refusal,
the flow condition's bare name and the action guard all stay. |
| ObjectStack CEL standard library | The function list keeps every name.
Cut to the published page: what each function returns and the
per-function notes. Kept as traps: the date text rule and the helpers
that replace date arithmetic (5), the option label and the working-day
placement (6). |
| Mandatory patterns 1 to 5 | The type-checked block carries one line
for each; trap 7 is the seed rule and trap 3 the `previous` rule. Cut:
the wrong-on-purpose examples, and the table of where `previous` is
bound with the per-row rewrite rule, both of which
`skills/objectstack-data/references/data-hooks.md` carries. Kept in trap
3: a hook `condition` that cannot evaluate aborts the write, and the 10
000-row refusal. |
| Mechanical translation table | First check 3 keeps nine rows (the five
operators, `ISBLANK`, `OLD` / `NEW`, the bare field). The rest is on the
published page; each legacy spelling fails the build. The flow exception
is in trap 1. |
| Surfaces that take an Expression | Cut to the contract. Kept: a
bare-string `defaultValue` is a literal (first check 3); a `formula`
field is virtual and a view filter is not CEL (routing row 3); a
form-view `visibleWhen` faults open (routing row 6); a `SharingRule`
condition must lower to a filter (trap 4). |
| Cron and template surfaces | Trap 8 keeps the template grammar, the
empty render of a missing path and the two currency forms. Cut: the cron
grammar and both dialects' carriers (the contract). |
| Verify your work, See also | First check 4 and routing row 1. |

**Sizes** (bytes · lines · ratchet tokens):

| | before (`main` at `6cc2024e`, merged in) | after (`50530b6b`) |
|:--|--:|--:|
| `SKILL.md` (entry) | 24,377 · 485 · 6,088 | 8,999 · 135 · 2,243 |
| `skills/objectstack-formula/**` (4 files) | 37,883 · 701 | 22,505 ·
351 |
| all 14 `SKILL.md` together | 180,656 · 3,406 | 165,278 · 3,056 |
| whole `skills/` tree (115 files) | 1,214,886 | 1,199,508 |
| whole tree without `evals/` (73 files) | 855,732 | 840,354 |
| ratchet: authored tokens = sum of all ceilings | 196,275 | 192,430 |
| ratchet: bundle total, tokens | 300,926 | 297,081 |

The `main` column moved since the first delivery (it was read on
`f576dee5`): `main` lowered another skill's row by one token, so its sum
of ceilings is 196,275. The bundle total on `main` is the head's reading
plus this row's fall; the entry is the only file under `skills/` that
differs.

**Budget reading:** the entry is 8,999 B, inside the card's 6–9 KB line,
and 135 lines against the 500-line cap. The whole catalog is 15,378
bytes smaller, all of it cut.

**Ratchet row** (`scripts/check-skills-token-ratchet.mjs`), pinned AT
its measurement, zero headroom: `skills/objectstack-formula/SKILL.md`
6088 → 2243 (−3,845): `ceil((8999 − 27) / 4) = ceil(8972 / 4) = 2243`.
It is the skill's only row. The sum of all ceilings goes 196,275 →
192,430. The first delivery pinned the row at 2237 (8,974 bytes); the
review round's two fixes cost 27 bytes, one blank line and one comma pay
2, and the row follows the measurement up by 6 tokens. Against `main` no
row rises.

## Tests

### Eval parity

Judged by ruling record 7249189592. **No case fails on every run of the
head while `main` passes.** On the current head (`50530b6b`, the review
round's text) the with-skill arm passes 39 of 42 turns against 32 of 42
on `main`'s text; on the first delivery's text (`327903f6`) it passed 41
of 42. The three misses on the current head are two runs of case 7,
which flips on both trees, and one run of case 13, a correct condition
written without the `P` tag; case 13 read 6 of 6 on a second reading.

Skill evals, both arms, one command line for every full round: `pnpm
--filter @objectstack/scenarios skill-evals --skills objectstack-formula
--repeats 3 --concurrency 4`, with the model and effort flags PR 3's
rounds used (the extra readings add `--case` and `--repeats 6`); CLI
2.1.332, subscription login. 14 behaviour cases in
`evals/cel-predicates-formulas.json` and 7 trigger cases in
`evals/triggers.json`, both untouched.

| reading | tree | with-skill | no-skill | with-skill cases below 3/3 |
|:--|:--|--:|--:|:--|
| before round | `f576dee5` | 32/42 | 0/42 | 4 (0/3) · 7 (2/3) · 8 (2/3)
· 9 (2/3) · 12 (0/3) · 14 (2/3) |
| first router head | `75b00bcc` | 37/42 | 0/42 | 10 (0/3) · 11 (2/3) ·
12 (2/3) |
| second head | `b93fb9bf` | 40/42 | 0/42 | 11 (1/3) |
| third head | `9643441f` | 40/42 | 0/42 | 7 (1/3) |
| third head, cases 7 and 11, six repeats | `9643441f` | 8/12 | 0/12 | 7
(3/6) · 11 (5/6) |
| `main`'s text, cases 7 and 11, six repeats | `f576dee5` text | 7/12 |
0/12 | 7 (1/6) |
| fourth head | `822cd547` | 40/42 | 0/42 | 4 (2/3) · 7 (2/3) |
| first delivery's text, full round | `327903f6` | 41/42 | 0/42 | 11
(2/3) |
| **review round's text, full round** | `50530b6b` | **39/42** | 0/42 |
7 (1/3) · 13 (2/3) |
| review round's text, case 13, six repeats | `50530b6b` | 6/6 | 0/6 |
none |

Trigger cases, every full round on every tree: loaded when it should
15/15, left alone when it should not 6/6.

- **Case 10** (a `datetime` field as `YYYY-MM-DD` text) was a real loss
on the first head: 3/3 on `main`, 0/3 on `75b00bcc`. Every answer gave
the right formula; each then quoted the refused form, which the case
forbids, because the first head's sentence said "the build refuses the
bare field there". The sentence reads as it did before the cut ("wrap it
in `date()` first") and the two wraps are lines of the type-checked
block: 3/3 on every later head.
- **Cases 10 and 11, a missing `F` tag** on the first head (one run each
wrote the formula bare or as an envelope): the first head named no tag
in its first checks. First check 3 now says which tag a formula, a
predicate and a seed value take.
- **Case 3** (the transition predicate, the case the review round's two
fixes bear on) is 3/3 on `50530b6b`, as on every earlier reading. All
three answers write `previous != null && previous.status != 'escalated'
&& record.status == 'escalated'` and say why the guard is there. So did
the three answers on each of `9643441f`, `822cd547` and `327903f6`, from
trap 3's text; on `main`'s text all three wrote the unguarded line. The
fix makes the block agree with what the answers already gave.
- **Case 13** (a hook `condition` on a `tags` field) is 2/3 on
`50530b6b` and was 3/3 on every earlier reading of both trees. The miss
gives the right membership form, null-guarded and parenthesised, in a
fenced block without the `P` tag, the literal the case requires. A
second reading of the case alone, six repeats on the same head, is 6/6:
8 of 9 on this head. The round's edits do not touch the tag sentence or
trap 4.
- **Case 9** (a record-change flow's edge condition, the site S2
separates from a hook) is 3/3 on `50530b6b`.
- **Case 7** (compare the stored value, never the option label) flips on
both trees: 3 of 9 on `main`'s text, 15 of 21 across the first five
heads and 1 of 3 on `50530b6b`. Every failing answer compares the stored
value and then says a predicate cannot call `label()`, which is the
literal the case forbids. One failing answer on `822cd547` did show a
loss of precision: it carried the action guard over to a form-view
`visibleWhen`, because one trap named both as client-side. Trap 2 is
about action `visible` / `disabled` alone again, and the form-view fact
moved to the routing row: 3/3 on `327903f6`. The two failing answers on
`50530b6b` are of the first kind: each compares the stored value and
names `label()` as the thing a predicate cannot call.
- **Case 11** (a multi-select's labels as text) passes 9 of 9 on
`main`'s text, 16 of 21 across the first five heads (by head: 2/3, 1/3,
8/9, 3/3, 2/3) and 3 of 3 on `50530b6b`. Four of the five failing
answers give `label(record.no_margin_reasons)` under the `F` tag and add
a sentence that names `joinNonEmpty` (as the thing not to use, or as an
option for another separator), the literal the case forbids; the fifth
is the first head's missing tag. It fails on every run of no head, so
the parity rule does not block on it. It is the one case where `main` is
steadier than the head, and it is reported as that: a likely cause is
that the function list now sits one section above the trap, where `main`
had it in a table further up a longer file.
- **Cases 4, 9, 12 and 14** pass more often on the head. Case 4 (0/3 on
`main`, 14 of 15 across the first five heads, 3/3 on `50530b6b`) and
cases 9 and 14 failed on `main` when a correct answer quoted a wrong
form the old entry spelled out (the JavaScript date constructor, the
brace form); the router describes those mistakes in words and does not
spell them. Case 12 (0/3 on `main`) failed there because every answer
wrapped the field in `date()` inside `addDays`; the block now carries
`isoDate(addDays(record.due_date, 7))` as a line.

Three restorations under ruling 7168461386 came out of these rounds,
each paid inside the entry: the date sentence (case 10), the tag
sentence (cases 10 and 11), and the action-only guard (case 7). A fourth
edit came from reading the contract text, not from an eval: a flow
condition's bare name is the field only where no flow variable or node
id holds it.

<details><summary>Round records</summary>

- Before round on `f576dee5`: 105 of 105 turns, 4.6 min.
- Rounds on `75b00bcc`, `b93fb9bf`, `9643441f`, `822cd547` and
`327903f6`: 105 of 105 turns each, 4.5 min each.
- Extra reading on `9643441f`, cases 7 and 11, six repeats: 24 of 24
turns, 1.1 min.
- Extra reading on `main`'s text, same cases and repeats: 24 of 24
turns, 1.1 min. The runner has no flag for a second tree, so `main`'s
`SKILL.md` was restored into the working tree for this one reading and
put back (`git hash-object` equal before and after); its round header
names `9643441f` "with uncommitted changes under the runner or skills/".
- No full round ran on `77804a7a`: it differs from `327903f6` by two
sentences of the changeset, and the turn never reads a changeset.
- Review round, full round on `50530b6b`: 105 of 105 turns, 4.3 min.
Extra reading on `50530b6b`, case 13, six repeats: 12 of 12 turns. A
full round was run and not only the cases the two sentences bear on (3,
9 and 13): the edited line sits in the block every answer copies from.
- Every `must_contain` literal of the 14 cases that the entry carried
before, it still carries (35 literals read; 28 carried before and after,
0 lost, 1 gained; 6 appear in neither tree and come from the prompts).

</details>

### Other tests

On `50530b6b`, under the verify lock (`VERDICT command-exit 0` each),
and with the same counts on `9643441f`, `822cd547`, `327903f6` and
`77804a7a`:

- `pnpm --filter @objectstack/formula exec vitest run --maxWorkers=2
src/skill-catalog-sync.test.ts src/cel-stdlib-drift.test.ts` (the first
reads this entry and requires every advertised function in it as a call
form): `Test Files 2 passed (2)`, `Tests 5 passed (5)`.
- `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2
scripts/platform-catalog.test.ts scripts/skill-map-guards.test.ts` (the
suite that names the ratchet script, and the one that names this skill):
`Test Files 2 passed (2)`, `Tests 57 passed (57)`.
- `pnpm --filter create-objectstack exec vitest run --maxWorkers=2
src/created-summary.test.ts` (it names the skill in its catalog list):
`Test Files 1 passed (1)`, `Tests 12 passed (12)`.
- `pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2
src/hook-condition-previous-scope.test.ts` and `pnpm --filter
@objectstack/trigger-record-change exec vitest run --maxWorkers=2
src/bulk-write-per-row-context.test.ts` (each names the skill in a
comment; neither reads it): 25 and 4 tests passed.

No ablation: the diff changes prose and one ledger, no tested behaviour.

## Acceptance notes

Review round (contract review 7286361695 on `77804a7a`, VERDICT PASS, no
must-fix; the L1 note 7286117663 raised S1 first):

- **S1, fixed.** The checked block's transition line carries `previous
!= null && ` in front, the form trap 3 prescribes. Unguarded it faults
on insert, where `previous` is `null`, and the build does not refuse it
(the null-guard gate judges ordering and arithmetic operators, and the
line uses `!=`). Eval case 3's required literals still match, 3/3.
- **S2, fixed.** Trap 3's sentence reads "A hook `condition` that cannot
evaluate (…) ABORTS the write with no `onError` escape". The cut had
widened it to every site the trap lists; a record-change trigger's run
fails while the write lands (`validate-null-guards.ts`, outcome
`run-fails`; trap 1 says so for a flow), and an advisory validation rule
is skipped, so the sentence names the hook alone, as `main`'s text did.
- **Paid inside the entry**: +27 bytes for the two fixes, −1 for the
doubled blank line after the frontmatter, −1 for a comma; 8,974 → 8,999
bytes. The ratchet row is re-pinned at the new measurement. The
changeset's line count (135) and its sentence on the abort are corrected
to match.
- **N1, N2 and N3 are left**, as the review accepts them: no byte is
free under the 9 KB line.
- **`main` is merged in** (`6cc2024e`, a plain merge commit): it moved
one other ratchet row, the textual merge was clean, and the workspace
was rebuilt before any gate ran.

Ruled by the contract review, recorded here as it stands in the entry:

- **The function names stay inline (ruled A)** (about 0.9 KB of the
entry's 9.0 KB) and are not cut to a pointer. The card's shape line
sends function tables behind a pointer, and
`packages/formula/src/skill-catalog-sync.test.ts` requires every name of
`CEL_STDLIB_FUNCTIONS` in this file as a call form. That test is outside
this claim's file surface, and `@objectstack/formula` ships `dist` only,
so an installed project has no source to read the list from. So the
tables became a list of call forms and what each function returns went
to the published page. If the list should leave too, the test moves
first, in its own change.

Decided here (small, no shipped behaviour), each open to reversal in
review:

- **"No trap is removed unless a publish-time check covers it or it
stays inline" was read as: an expression that parses and then fails or
reads wrong at run time stays inline.** Inline: the eight traps and the
three facts on the routing rows. Cut to a pointer, each loud at the
build: an unknown function, a legacy spelling, a malformed envelope, the
retired `titleFormat` key.
- **Four traps stay inline although the build refuses them** (the
nullable operand, the list compared with a scalar, the date text in a
timestamp call, date arithmetic): the refusal says what is wrong, and
the entry carries the form to write instead, which is what the eval
cases about them ask for (2, 4, 5, 9, 10, 12, 13 and 14).
- **The entry describes wrong forms and no longer spells them** (the
brace form, the JavaScript date, a number added to `today()`, `CONCAT`).
An answer that quotes a wrong form fails the cases that forbid it, on
either tree. The contract review ruled the brace example stays in words
(A).
- **A version check opens the first checks**, as in the other router
entries; the old entry had none. Paid by dropping the cron grammar
sentence.
- **Section anchors of the entry changed.** The changeset lists every
anchor that left `SKILL.md`. No file in this repository links one of
them.
- **Four lines in the summary above, not six**: the standing order for
this card thread asks for six, and the agent file that binds the dev
fixes four named lines and wins on conflict.
- **Footer form**: this body ends with the single block AGENTS.md
prescribes for a PR body.

Noted, not changed:

- The literals of eval cases 4, 7 and 11 fail correct answers (above).
The parity rule treats the cases as fixed, so this PR does not touch
them.
- The published formulas page lists the legacy rows the entry dropped,
except four of the five functions the old table marked as having no CEL
counterpart (`MID`, `LEFT`, `RIGHT`, `SUBSTITUTE`; it has `MONTH_DIFF`).
Each fails the build as an unknown function, with or without a row.
- The version PR objectstack-ai#38192 touches the entry's stamp line, and objectstack-ai#38787 and
objectstack-ai#38790 touch other rows of the ratchet table; `overlap-check` reads each
as merging cleanly. It reads objectstack-ai#38497 as a conflict in the ratchet script:
that PR conflicts with `main` itself there, in one hunk on the
`objectstack-ai` row, and the hunk is byte-identical with and without
this branch; the formula row is outside it.

## Verification

Read first, by risk:

1. `skills/objectstack-formula/SKILL.md`, the whole file: is anything a
model needs before opening the contract missing? The risk hunks are `##
Traps` (eight items replace most of the old file) and the function list.
2. `.changeset/34770-formula-skill-router.md`: the "what left, and what
answers it now" list is the record of every cut.
3. `scripts/check-skills-token-ratchet.mjs`: the one
`objectstack-formula` row.

Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints
`ratcheted (authored) 192430 / 192430 (+0)` and
`skills/objectstack-formula/SKILL.md 2243 / 2243 (+0)`; `wc -c
skills/objectstack-formula/SKILL.md` prints 8999.

Gates, local, each exit code captured before any pipe. The whole derived
list ran on `50530b6b`, and before it on `9643441f`, `822cd547`,
`327903f6` and `77804a7a`, 69 of 69 each time.

<details><summary>Derived families on `50530b6b`: 69 derived, 69 run
green, 0 NOT MEASURED</summary>

- Reconciliation: `✓ dispatch-gates --ran: 69 derived famil(ies)
accounted for — 69 run, 0 NOT-MEASURED (a DERIVED zero — all 69 recorded
an exit code and none of them is 3).`
- `node scripts/check-skills-token-ratchet.mjs`: `✓
check-skills-token-ratchet: 61 authored bundle file(s) within their
ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured,
not ratcheted.` (`ratcheted (authored) 192430 / 192430 (+0)`, `bundle
total 297081`); its `--self-test`: `111 cases pass`.
- `pnpm check:dual-build-cjs-loads`: `126 published require entry
point(s) across 74 package(s) load; 2593 emitted CommonJS file(s)
parse`. It reads every package's built `dist/`; a full `pnpm build
--concurrency=2` ran first on the merged tree under the verify lock
(`VERDICT command-exit 0`, 123 tasks).
- `pnpm check:dts-closure`: `123 built package(s) swept - 324/324
declared declaration file(s) present`.
- `pnpm check:skill-links`: `290 relative link(s) in 76 published skill
file(s) resolve; 161 fragment(s) name a real heading under GitHub's slug
rule.`
- `pnpm check:skill-identifier-liveness`: `Leg 1: 527 citation(s) over
76 published file(s) ...; Leg 2: 11 registered exhaustive section(s), 0
ledgered gap(s).`
- `pnpm --filter @objectstack/spec run check:skill-docs`, `pnpm --filter
@objectstack/lint run check:doc-formula-expressions`, `pnpm
check:skill-compatibility`, `check:skill-frame-sync`, `check:role-word`,
`check:corpus-claim-drift`, `check:doc-authoring`,
`check:published-files`, `check:nul-bytes`,
`check:cross-package-test-inputs`: exit 0.
- The changeset gates (`check-changeset-no-major`,
`check-empty-changeset`, `check-adr-0087-registration`,
`check:changeset-gate-self-tests`): exit 0. `pnpm
check:pm-dispatch-gates`: exit 0.

</details>

<details><summary>Beside the derived list, on `50530b6b`, all exit 0 but
the last</summary>

- `pnpm --filter @objectstack/spec run check:skill-examples`: `347 prose
examples type-check across 3 surface(s)`. The entry's one block is among
them.
- `pnpm --filter @objectstack/spec run check:skill-refs`: `10 generated
files in sync with packages/spec`.
- `pnpm --filter @objectstack/spec run check:skill-served-sections`: `24
served section(s), each heading exactly once in its file` (the hosted
door serves no section of this skill).
- `pnpm check:doc-anchors`: `1184 internal #fragment link(s) across 368
source file(s) all resolve to a real heading`.
- `pnpm check:published-readme-links`: `566 outbound link(s) across 168
published markdown file(s)`, `99 docs-site page(s) resolved`; the
formulas page the entry links is one of them.
- `pnpm check:skill-top-level-keys`: exit 0.
- `pnpm --filter @objectstack/spec check:generated` after the merge and
the rebuild: exit 0.
- `node scripts/check-platform-checklist.mjs --changed-from
origin/main`: `0 anchored files in the change set — nothing judged.`
- `node scripts/pm/overlap-check.mjs`: `VERDICT clean exit 0` at each
push of the first delivery (on the second it ran right after). Before
the review round's push: `VERDICT overlap exit 1`, for objectstack-ai#38497 alone,
whose conflict in the ratchet script is its own against `main` (see
Noted above); `main`, objectstack-ai#38787, objectstack-ai#38790 and objectstack-ai#38192 merge cleanly.

</details>

Base: the branch is cut from `f576dee5` and carries one merge of `main`
at `6cc2024e` (merge commit `b9e30211`); `main` had not moved further at
the review round's push. CI on the head is the seat's reading.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS)_

<!-- signed: repo:objectstack@os-steve · os-steve ·
session_01ADHkmSAjFEZHRpRq3WCj6z -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…stack-ai#38802)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi99QsuPTPkC1uKm2mViUT3Rf)_

Part of objectstack-ai#34770

Clause-②: no
Metadata-protocol: none

`Part of`, not the closing form: the catalog-size line of the card's
Done-when is not met by this PR. This is PR 5 of the per-skill split,
under claim 7280537583 and its amendments 7280758590 and 7288186602.

## 维护者速读

- 用户能看到什么变化:用户无感。发给 AI 的「接口设计」技能说明,入口文件从约 21 KB 缩到 9
KB:入口只留开工前四项检查、平台自动提供的接口清单、一个对象可以开放的六种操作、一段可照抄的自定义接口示例、六个「写得通过、上线后却答错或被拒」的坑,以及其余内容去哪里查的指路表。
- 为什么做:这是「技能目录瘦身」的第八份(界面、数据、自动化、平台、跨大版本升级、多语言翻译、表达式与公式七份已完成)。入口文件每次都整份装进
AI 的上下文,越长越贵,也越容易漏读。
- 出错会怎样:只动教 AI 的文字,没有产品行为变化;风险是 AI
少读一段后答错。改动前后各跑完一轮评测(八道题每题三遍,共二十四次):改动后通过十次,改动前九次;没有哪一道题是改动后才每遍都不过的。有四道题前后都是每遍不过,原因前后一样:三道是答案内容对、却没写出题目要求的某个词,一道是
AI 没有打开这份技能说明;这是题目和触发方式的问题,本次没有动。这两轮是经你同意、越过本周额度九成保护线跑的。可整笔撤回。
- 要你做什么:无。席位核对、合约审查与评测对比都已有结果,接下来由席位按治理规则请审批人批准。

## Rulings this executes

- **Card Scope** (decision record on the card, S3 = A): the entry file
holds first checks, at most about 8 traps and a routing list; 6–9 KB,
hard cap 500 lines; restated option lists and tables go behind a
pointer; no trap is removed until a publish-time check covers it or it
stays inline.
- **7128031203** fork 4 = A: ratchet rows are pinned at the measurement
with zero headroom, and the sum of ceilings does not rise. Here no row
rises and none is added.
- **7168461386** = A: text an eval shows the entry lost goes back into
the entry, paid inside the entry. Not used: the two full rounds show no
fact the entry lost (see Eval parity).
- **Ruling record 7249189592**, the parity rule: a case whose result
flips between runs on both trees is unstable on both and does not block;
a case that fails on every run of the head while `main` passes is a
regression. Read below: no case is one.
- **Seat order for this PR** (claim amendment 7288186602, PR 5 =
`objectstack-api`): same shape as PR 3 (objectstack-ai#38663) and PR 4 (objectstack-ai#38795); no
new file under `skills/` (a new file needs a new ratchet row, which
stays with a human); the cut, not a move, lowers the catalog total.

## What changes

**The entry file becomes a router.** `skills/objectstack-api/SKILL.md`:
21,359 → 8,986 bytes, 438 → 151 lines, 5,333 → 2,240 tokens. Frontmatter
(description, tags) is byte-identical. It now holds:

- `## First checks`, four: the installed contract wins over the
`compatibility` line, and an `apis:` block written before protocol 17
turns live; read the stack's `apis`, its `manifest.namespace` and the
object's `apiMethods`, and prefer a generated route; read the contract
and never recall a key or a code; verify with `os validate` or `os
build` and read the publish rejection, which carries the fix.
- `## Generated routes`: one listing (the `data` routes, the two `batch`
routes, import and export, the metadata read), the two routes that do
not exist (`/bulk`, a `GET` aggregate), and the two request contracts a
client gets wrong: the metadata list's closed query set with `?names=`,
and an import mapping's entry form, the only one that carries `applyOn`.
- `## API Methods (Operations)`: the six authorable primitives and what
each of the eight derived operations derives from. The heading and the
six names are held by a gate (see Acceptance notes).
- `## A declared endpoint`: the two servable `type` values, one
type-checked example (the path carve-out, `object_operation` with
`objectParams`, `cacheTtlSeconds`), and the mapping rule (move and
rename only; `transform` is rejected).
- `## Traps`, six: an anonymous endpoint needs an armed budget
(`rateLimit.enabled: true`); an app never mounts on `http.server`,
handler code runs in a flow, an inbound webhook is a `type: 'api'` flow,
and three cases have no app surface; `DELETE` is not final (the recycle
bin, the restore door, the two grants); a `PATCH` with no version token
skips the concurrency check; a public form answers `404 FORM_NOT_FOUND`
unless its `sharing` declares all three keys, strips fields outside its
sections, and is withheld on a walled posture with only a warning;
`userMessage` is the sentence for a person.
- `## Where to go`: six rows (the endpoint contract and its page, the
HTTP protocol page, the error contracts and catalog, the auth contract,
the forms page, the three sibling skills).

**No text moved.** This skill has no hand-written reference file
(`references/_index.md` is generated), and a new file needs a new
ratchet row. So what left the entry was cut, each behind what now
answers it:

| Old entry section | Now |
|:--|:--|
| Skill Boundaries | The frontmatter description and the last routing
row. |
| Auto-Generated APIs | The routes listing, with the two absent routes.
|
| Metadata API (`/meta`) | The first note under the listing: the closed
query set, `?names=`, the two refusals. Cut to the HTTP protocol page:
the one metadata type whose list refuses `names`. |
| Public (anonymous) Form Endpoints | Trap 5: the three `sharing` keys,
the two doors, what the declaration grants, the stripped fields and the
hook to write, the walled-posture withholding. Cut to the forms page:
the file-field rule (an error at `os validate` and at publish), the
`guest_portal` name, the two form contracts. |
| Declarative Endpoints; Choosing between `apis:` and a code handler |
`## A declared endpoint` and trap 2. |
| The path carve-out | The example's two comments (`manifest.namespace`
is required and never derived; the path shape). |
| Five publish gates, each with a prescription | First check 4 (read the
rejection, it carries the fix) and routing row 1. The entry no longer
counts the gates. |
| `authRequired` and the D6 pairing | Trap 1, whole: the default, the
armed budget, why `windowMs` / `maxRequests` alone meter nothing, the
separate metering. |
| Mapping keys: projection only | One sentence under the example. Cut,
each a publish refusal that names the key: `inputMapping` on a `find` /
`get` / `delete` operation, two entries writing one target path. |
| Upgrading a pre-17 stack | First check 1 names the upgrade guide's
entry; the steps are there. |
| Endpoint Naming Conventions | Cut. Its two patterns are not paths an
app can declare (see Acceptance notes). |
| API Methods (Operations) | Kept under the same heading, as prose: the
six primitives, the eight derived operations and their sources, `upsert`
having no route. Cut: the per-primitive route table (the routes listing
carries the routes) and the size of the `ApiOperation` vocabulary. |
| Discovery & Health | Cut: discovery to the HTTP protocol page; the
health routes are not a thing a stack declares. |
| Dispatcher Error Codes | Routing row 3 (`api/dispatcher.zod.ts`). |
| Realtime Subscriptions | Cut: `references/_index.md` lists both
contract files, and first check 3 sends there. |
| Authentication & Authorization | Routing row 4: `AuthProvider` with
its six members, `LoginRequestSchema`, and that an endpoint has
`authRequired` and no nested `auth` block. Cut to the contract: the
login request's field list, and the flat `public` + `permissions` pair
of the plugin route registry. |
| Error Envelopes & the Code Ledger | Routing row 3 (a code in no ledger
fails CI) and trap 6. Cut to the contract and the error catalog: the two
envelope shapes, the two-tier vocabulary, the downstream-ledger recipe,
the locale ladder's subtag steps, the `advisories[]` element. |
| Best Practices | First check 2 (prefer a generated route), the
`upsert` clause, and the routes listing. Cut: the envelope shapes (the
contract). |
| Common Pitfalls | Traps 4 and 3. Cut to the two protocol pages, each
loud when hit: the quoted-empty entity tag, the four restore refusals,
the list / purge / empty doors. |
| Verify your work; References | First checks 4 and 3. |

**Sizes** (bytes · lines · ratchet tokens):

| | before (`main` at `2fba8349`, merged in) | after (head `2b912f16`) |
|:--|--:|--:|
| `SKILL.md` (entry) | 21,359 · 438 · 5,333 | 8,986 · 151 · 2,240 |
| `skills/objectstack-api/**` (3 files) | 33,220 · 569 | 20,847 · 282 |
| all 14 `SKILL.md` together | 165,278 · 3,056 | 152,905 · 2,769 |
| whole `skills/` tree (115 files) | 1,200,447 | 1,188,074 |
| whole tree without `evals/` (73 files) | 841,293 | 828,920 |
| ratchet: authored tokens = sum of all ceilings | 192,665 | 189,572 |
| ratchet: bundle total, tokens | 297,316 | 294,223 |

The head column is measured. The tree and bundle figures of the `main`
column are the head's reading plus this entry's fall: the entry is the
only file under `skills/` that differs (`git diff --stat origin/main
HEAD -- skills`: 1 file). The sum of ceilings on `main` is read from
`main`'s own table (61 rows).

**Budget reading:** the entry is 8,986 B, inside the card's 6–9 KB line,
and 151 lines against the 500-line cap. The whole catalog is 12,373
bytes smaller, all of it cut.

**Ratchet row** (`scripts/check-skills-token-ratchet.mjs`), pinned AT
its measurement, zero headroom: `skills/objectstack-api/SKILL.md` 5333 →
2240 (−3,093): `ceil((8986 − 27) / 4) = ceil(8959 / 4) = 2240`. It is
the skill's only row. The sum of all ceilings goes 192,665 → 189,572. No
row rises and none is added.

## Tests

### Eval parity

Judged by ruling record 7249189592. **No case fails on every run of the
head while `main` passes.** The with-skill arm passes 10 of 24 turns on
the head against 9 of 24 on `main`'s text. Three cases pass 3/3 on both
trees, four fail 3/3 on both trees for the same reason on each, and one
(case 6) goes 0/3 → 1/3.

Both arms, one command line for both rounds: `pnpm --filter
@objectstack/scenarios skill-evals --skills objectstack-api --repeats 3
--concurrency 4 --max-utilization 0.99`, with the model and effort flags
PR 3's rounds used; CLI 2.1.333, subscription login. The two rounds ran
back to back in one window (2026-12-01 00:32Z to 00:38Z), each from a
clean checkout of its commit. 8 behaviour cases in
`evals/endpoints-auth-routes.json`, untouched; this skill has no trigger
file, so there is no trigger reading to give.

| reading | tree | with-skill | no-skill | with-skill cases below 3/3 |
|:--|:--|--:|--:|:--|
| before round | `2fba8349` (`main`'s text; the entry is unchanged on
`main` since) | 9/24 | 0/24 | 3 (0/3) · 4 (0/3) · 5 (0/3) · 6 (0/3) · 8
(0/3) |
| **after round** | `2b912f16` (this head) | **10/24** | 0/24 | 3 (0/3)
· 4 (0/3) · 5 (0/3) · 6 (1/3) · 8 (0/3) |

| case | subject | `main` | head | what the failing answers have in
common, on both trees |
|:--|:--|--:|--:|:--|
| 1 | a declared `GET` feed | 3/3 | 3/3 | |
| 2 | an anonymous endpoint's budget | 3/3 | 3/3 | |
| 3 | a signed inbound webhook | 0/3 | 0/3 | Every answer refuses to
mount on `http.server` and sends the Stripe callback to a `type: 'api'`
flow whose start node declares the vendor header as `config.signature`.
That is what both entries and the contract say; the case requires the
literal `x-objectstack-signature`, the platform's own header, which a
Stripe answer has no reason to name. Two of three answers on `main` and
one of three on the head also leave out `functions`. |
| 4 | sign-in providers | 0/3 | 0/3 | Every answer names `AuthProvider`,
`auth.zod.ts`, `google` and `github` and stops because the project has
no files; none names `LoginRequestSchema`, the fifth required literal.
Both entries carry it. |
| 5 | `apiMethods`, `/batch`, the recycle bin | 0/3 | 0/3 | Every answer
gives the primitives, the absent `/bulk` route, the derived `restore`
and the recycle-bin restore route; none writes the table name
`sys_recycle_bin`. Both entries carry it. One head answer also names the
import route and not `/batch` (all three `main` answers name `/batch`).
|
| 6 | an import mapping's `applyOn` | 0/3 | 1/3 | Two of three turns on
each tree answer without opening the skill, and fail. The one turn that
opens it passes on the head and fails on `main`, where the entry form
(`sourceField`, `targetField`) was not in the entry. |
| 7 | the metadata list's `?names=` | 3/3 | 3/3 | |
| 8 | `userMessage` on a batch publish | 0/3 | 0/3 | No turn on either
tree opens the skill; every answer builds the per-code translation table
the case forbids. The description that decides whether the skill is
opened is the frontmatter, byte-identical in this PR. |

- **No restoration under ruling 7168461386**: no failing answer on the
head traces to a sentence the cut removed. The literals the failing
answers miss (`x-objectstack-signature`, `LoginRequestSchema`,
`sys_recycle_bin`, `userMessage`) are all carried by the head's entry,
and by `main`'s.
- **Case 5, one observation that is not a regression under the rule**:
one of the three head answers does not name `/batch`. The case fails on
every run of both trees on another literal, so the rule does not read
it; the head's entry names `/batch` in the routes listing and in the
`apiMethods` paragraph. It is reported as seen, one run.
- **Cases 3, 4, 5 and 8 cannot show a regression as they stand**: they
fail on every run of `main`. Cases 3 to 5 fail on a literal a correct
answer need not write, and cases 6 and 8 mostly on the skill not being
opened. The parity rule treats the cases as fixed, so this PR does not
touch them (see Acceptance notes).
- **No extra repeats were run**: no case flips in the direction the rule
reads, and the window is short.

Before the full rounds, the same check that calls no model: of the 27
`must_contain` literals of the 8 cases, the entry carried 24 before and
after, lost 0 and gained 2 (`sourceField`, `targetField`, case 6); 1 is
in neither tree (`/api/v1/meta/object`, which an answer composes from
the route). No `must_not_contain` literal appears in either tree's
entry.

<details><summary>Round records</summary>

- Before round on `2fba8349`: 48 of 48 turns, 2.4 min, exit 0. After
round on `2b912f16`: 48 of 48 turns, 2.6 min, exit 0. No turn timed out.
- Quota: the runner's guard was raised from its default 0.9 to 0.99 for
these two rounds, on the maintainer's answer in the project chat
(2026-12-01 00:30Z, option B of the three put to him: run now past the
0.9 line). Seven-day window as each turn reported it: 0.95 on every turn
of the before round; 0.95 rising to 0.96 during the after round; status
`allowed_warning` throughout, no turn rejected.
- The first attempt, on 2026-11-30, was stopped by the guard at its
default after 4 of 48 turns on each tree (utilization 0.90 and 0.91;
cases 1 and 2 passed once each on both trees). Those stopped rounds ran
on CLI 2.1.332 and are not counted in the table above.

</details>

### Other tests

On tree `d53fb207` (local head `57c7738b`, the same tree as the pushed
head `2b912f16`), under the verify lock (`VERDICT command-exit 0` each):

- `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2
scripts/platform-catalog.test.ts scripts/skill-map-guards.test.ts` (the
suite that names the ratchet script, and the skill-map guards): `Test
Files 2 passed (2)`, `Tests 57 passed (57)`.
- `pnpm --filter create-objectstack exec vitest run --maxWorkers=2
src/created-summary.test.ts` (the one test file in the tree that names
this skill): `Test Files 1 passed (1)`, `Tests 12 passed (12)`.

No ablation: the diff changes prose and one ledger, no tested behaviour.

## Acceptance notes

Held by a gate, recorded here as it stands in the entry:

- **The heading `## API Methods (Operations)` and the six primitive
names stay inline.** `scripts/check-skill-identifier-liveness.mjs`
registers that section of this file as exhaustive for `ApiMethod` and
requires every member in it. That script is outside this claim's file
surface. So the section became four lines of prose under its old
heading, and the route table went to the routes listing. If the section
should leave too, the registration moves first, in its own change.

Decided here (small, no shipped behaviour), each open to reversal in
review:

- **"No trap is removed unless a publish-time check covers it or it
stays inline" was read as: a declaration or a call that passes and then
answers wrong at run time stays inline.** Inline: the six traps and the
two request contracts under the routes listing. Cut to a pointer, each
loud when hit: a wrong endpoint key (the strict shape refuses it and
names the key to write), the publish gates one by one, the two further
mapping refusals, the restore refusals, the quoted-empty entity tag.
- **Two traps stay inline although a check exists.** Trap 1: the gate
refuses `authRequired: false` without an armed budget, and the entry
carries the form to write, which is what eval case 2 asks for. Trap 5's
walled-posture sentence: its check only warns at save and publish, and a
warning is not a refusal, so the consequence (the form is withheld) and
the declaration that resolves it stay, the standard PR 3 applied to its
own warning-only rules.
- **The endpoint naming table is cut, not moved.** Its two patterns (an
object-scoped action path and a domain action path) are not paths an app
can declare: a declared path lives under the app's own carve-out, and
the endpoint matcher has no path-template syntax. The table taught a
form the publish gate rejects.
- **`AuthProvider` keeps its six members inline** (0.1 KB): a provider
name that is not a member is an authoring mistake the entry can stop
before the contract is opened, and eval case 4 asks for the names.
- **The health routes are cut with no pointer.** Nothing in a stack
declares them, and the HTTP protocol page has no health section, so a
pointer there would be untrue.
- **The entry no longer counts the publish gates.** The published pages
count them differently (four on one, five on another, for the same
checks); the entry says the rejection arrives one gate at a time and
carries its fix.
- **Trap 6 is scoped to the sites where it is true**: "show
`userMessage`, never `message`" is said of a batch publish's
`probes.issues[]` alone, and the flow door's order (`userMessage`, then
`details.innerRefusal`, then `message`) is given beside it. The locale
sentence is said of platform text.
- **A version check opens the first checks**, as in the other router
entries; here it also carries the one upgrade fact that changes what an
old `apis:` block does.
- **Section anchors of the entry changed.** The changeset lists every
anchor that left `SKILL.md` (24) and the five new ones;
`#api-methods-operations` stays. No file in this repository links one of
the old ones.
- **Four lines in the summary above, not six**: the standing order for
this card thread asks for six, and the agent file that binds the dev
fixes four named lines and wins on conflict.
- **Footer form**: this body ends with the single block AGENTS.md
prescribes for a PR body.

Noted, not changed:

- Four eval cases fail on every run of both trees (Eval parity). Case
3's expected answer says an inbound `type: 'api'` flow verifies only the
platform's own signature header, while `main`'s entry and the contract
(`automation/api-trigger-signature.zod.ts`) also give a vendor's HMAC
header declared as `config.signature`, and every answer on both trees
follows the contract. Cases 4 and 5 each require one name
(`LoginRequestSchema`, `sys_recycle_bin`) that a correct answer leaves
out. Case 8 never opens the skill, and case 6 does in one turn of three.
The parity rule treats the cases as fixed and the frontmatter is
byte-identical by order, so this PR touches neither. Carrier: none;
noted for whoever owns the case file and the description.
- `main` moved during the work: PR 4 of this split (objectstack-ai#38795) and a rise
of one `objectstack-data` row merged. `main` is merged in (`2fba8349`, a
plain merge commit); the textual merge was clean and the workspace was
rebuilt before any gate ran.

## Verification

Read first, by risk:

1. `skills/objectstack-api/SKILL.md`, the whole file: is anything a
model needs before opening the contract missing? The risk hunks are `##
Traps` (six items replace most of the old file) and trap 2, which
carries the whole "no handler code" teaching.
2. `.changeset/34770-api-skill-router.md`: the "what left, and what
answers it now" list is the record of every cut.
3. `scripts/check-skills-token-ratchet.mjs`: the one `objectstack-api`
row.

Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints
`ratcheted (authored) 189572 / 189572 (+0)` and
`skills/objectstack-api/SKILL.md 2240 / 2240 (+0)`; `wc -c
skills/objectstack-api/SKILL.md` prints 8986.

Gates, local, each exit code captured before any pipe. The whole derived
list ran on tree `d53fb207` (local head `57c7738b`; the pushed head
`2b912f16` carries the same tree, `main` unmoved at `2fba8349`), after
the merge of `main` and a full rebuild.

<details><summary>Derived families on tree `d53fb207`: 69 derived, 69
run green, 0 NOT MEASURED</summary>

- Reconciliation: `✓ dispatch-gates --ran: 69 derived famil(ies)
accounted for — 69 run, 0 NOT-MEASURED (a DERIVED zero — all 69 recorded
an exit code and none of them is 3).` No STALE TREE warning.
- `node scripts/check-skills-token-ratchet.mjs`: `✓
check-skills-token-ratchet: 61 authored bundle file(s) within their
ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured,
not ratcheted.` (`ratcheted (authored) 189572 / 189572 (+0)`, `bundle
total 294223`); its `--self-test`: `111 cases pass`.
- `pnpm check:dual-build-cjs-loads`: `126 published require entry
point(s) across 74 package(s) load; 2593 emitted CommonJS file(s)
parse`. It reads every package's built `dist/`; a full `pnpm build
--concurrency=2` ran first on the merged tree under the verify lock
(`VERDICT command-exit 0`, 123 tasks).
- `pnpm check:dts-closure`: `123 built package(s) swept - 324/324
declared declaration file(s) present`.
- `pnpm check:skill-links`: `290 relative link(s) in 76 published skill
file(s) resolve; 160 fragment(s) name a real heading under GitHub's slug
rule.`
- `pnpm check:skill-identifier-liveness`: `Leg 1: 517 citation(s) over
76 published file(s) ...; Leg 2: 11 registered exhaustive section(s), 0
ledgered gap(s).`
- `pnpm --filter @objectstack/spec run check:skill-docs`, `pnpm --filter
@objectstack/lint run check:doc-formula-expressions`, `pnpm
check:skill-compatibility`, `check:skill-frame-sync`, `check:role-word`,
`check:corpus-claim-drift`, `check:doc-authoring`,
`check:published-files`, `check:nul-bytes`,
`check:cross-package-test-inputs`, `check:ratchet-remedy-authority`:
exit 0.
- The changeset gates (`check-changeset-no-major`,
`check-empty-changeset`, `check-adr-0087-registration`,
`check:changeset-gate-self-tests`): exit 0. `pnpm
check:pm-dispatch-gates`: exit 0.

</details>

<details><summary>Beside the derived list, on tree `d53fb207`, all exit
0</summary>

- `pnpm --filter @objectstack/spec run check:skill-examples`: `347 prose
examples type-check across 3 surface(s)`. The entry's one block is among
them.
- `pnpm --filter @objectstack/spec run check:skill-refs`: `10 generated
files in sync with packages/spec`.
- `pnpm --filter @objectstack/spec run check:skill-served-sections`: `24
served section(s), each heading exactly once in its file`.
- `pnpm check:doc-anchors`: `1186 internal #fragment link(s) across 368
source file(s) all resolve to a real heading`.
- `pnpm check:published-readme-links`: `566 outbound link(s) across 168
published markdown file(s)`, `99 docs-site page(s) resolved`; the four
pages the entry links are among them.
- `pnpm check:skill-top-level-keys`: exit 0.
- `pnpm --filter @objectstack/spec check:generated` after the merge and
the rebuild: `All 14 generated artifacts are up to date`.
- `node scripts/check-platform-checklist.mjs --changed-from
origin/main`: `0 anchored files in the change set — nothing judged.`
- `node scripts/check-nul-bytes.mjs`: exit 0; a control-byte scan of the
three changed files finds none.

</details>

Not run locally: `test:repo` (CI's).

Base: the router commit was written on a local branch cut from
`f7252bc3` while PR objectstack-ai#38795 held this branch; after objectstack-ai#38795 landed, the
thread branch took `main` at `2fba8349` (merge `840c3aa8`) and the
router commit was cherry-picked onto it as `2b912f16`, whose tree is the
gated tree `d53fb207`. `overlap-check` before the push: origin/main,
objectstack-ai#38797, objectstack-ai#38790 and objectstack-ai#38192 merge cleanly; objectstack-ai#38497 conflicts in the ratchet
file against `main` itself (another skill's row), not this branch's. CI
on the head is the seat's reading.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmSM46qymk97AyqPzoS)_

<!-- signed: repo:objectstack@os-steve · os-steve ·
session_01ADHkmSAjFEZHRpRq3WCj6z -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation security size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skills teach forms: as the one way to declare a form, and views: as lists only (ADR-0159, card ④s)

3 participants