Skip to content

docs(skills): objectstack-data carries the hosted build agent's metadata-authoring judgment (cloud#3659 A, port 1 of 3) - #31223

Merged
os-zhuang merged 8 commits into
mainfrom
claude/issue-31155-port-authoring-rules
Nov 8, 2026
Merged

os-zhuang merged 8 commits into
mainfrom
claude/issue-31155-port-authoring-rules

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Part of #31155 — card 1 of 4 of the objectstack-ai/cloud#3659 ruling-A split; this PR is the first per-domain port (objectstack-data). The automation and ui ports follow as their own PRs on the same card, so the card stays open.

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:把云端私有搭建语料里「schema 表达不了的判断」搬进公开的 objectstack-data skill(布尔字段给默认值不设必填、人员字段用 user 且默认可选、动态默认值是保存时生效、状态用 select 不建表、审批/流水不建对象、负责人就是平台 owner_id、按需求选 sharingModel、状态机要声明 initialStates、汇总字段的限定词进 filter、迟声明的汇总用 os migrate summary-nulls 回填、种子值可虚构不可畸形且 os validate 先拒、标签跟随用户语言),外加 8 条 eval 用例;完整的 43+11 条规则映射表见 issue 评论与下文。
  • 为什么改:cloud#3659 裁决 A ——所有搭建渠道只认发布的 skills + spec。本 PR 只搬第 3 类(判断),第 1 类(复述 spec)只映射到 spec 路径,第 2 类(运行时陷阱)列成 enforce-or-remove 清单交 spec 席(已立 Enforce-or-remove: four metadata shapes cloud's authoring rules warn about still parse clean (boolean required, open flow start config, orphan action nodes, roll-up filter keys) #31224),不写散文。
  • 风险与回滚:纯文档 + eval 夹具,无运行时改动;token 棘轮四行按实测钉住(ceiling 上调,裁决授权见脚本注释)。发布的 skill 正文全英文(审批人要求),eval 的提示语按裁决豁免。回滚 = revert 本 PR。
  • 先看:skills/objectstack-data/rules/relationships.md(Roll-up 段重写、五个示例的 sharingModel)、skills/objectstack-data/SKILL.md(Relationship Patterns 新增三行、Field Type Selection 三条、posture 段)、scripts/check-skills-token-ratchet.mjs(四行 ceiling 与注释)。
  • 两分钟验证:node scripts/check-skills-token-ratchet.mjs 预期全绿且 objectstack-data 四行 headroom 0。
  • 需要你做的:Tier H 受管面(skills/**),需要你的 APPROVED review 后由席位落地;本 PR 保持 draft。

What changes

Language scope (approver os-zhuang, CHANGES_REQUESTED 2026-11-07T23:41Z, verbatim: 「skills 对外发布的版本应该全部用英文」; scope ruled by the account owner, verbatim 「同意」, to the seat's proposal): every sentence a customer agent READS in the shipped skill text is English — the two example phrases in SKILL.md and the roll-up passage in rules/relationships.md were reworded to English or language-neutral wording teaching the same judgment, and every non-eval file this PR touches scans clean of CJK. Two exemptions: (a) eval prompt strings in skills/**/evals/*.json (they test "labels follow the user's language" and never enter an agent's context); (b) the existing objectstack-i18n Chinese example data, untouched.

objectstack-data gains the metadata-authoring judgment the hosted build agent carried privately and the published skill did not yet state — only class 3 of the seat's triage (judgment the schema cannot express). Class 1 (restates the spec) is mapped to its spec path; class 2 (parses clean, dead at runtime) is listed as enforce-or-remove for the spec lane (filed as #31224); hosted-only and orchestration rules stay in cloud.

  • SKILL.md § Object Definition — choose the sharingModel posture from the request (rule 16b); the skill's own examples now take that posture (below).
  • SKILL.md § Field Type Selection — a yes/no flag is { type: 'boolean', defaultValue: false }, never required (18); a person on the record is type: 'user', optional unless asked (process-modeling); a dynamic default resolves on save, described as such (19d).
  • SKILL.md § Relationship Patterns — three rows: status is a select, never a table (select-options); approvals / routing / audit trails are not objects (process-modeling); the owner is the platform owner_id, ownership: 'none' only for catalogs and junctions (16).
  • SKILL.md § Validation Patterns — a state_machine declares initialStates whenever the status has a real start (17); the UPDATE-only mechanic sentence is not restated (the spec describe carries it).
  • rules/relationships.md § Roll-up Summaries — the filter paragraph is rewritten: pick the function from the words, every qualifier goes in filter (dropped = a plausible wrong total), one child feeds several totals, a rate is a formula over a working summary; "The recompute runs only on a child write" — a summary declared after its rows exist is backfilled by os migrate summary-nulls --apply (--recompute-undefined-on-empty OBJECT.FIELD for one declared late), never by editing a child (15). Five example objects take the posture the SKILL.md paragraph teaches: public_read_write on account, contact, invoice and the project_assignment junction, public_read on the category table; the conditional-rules invoice in SKILL.md likewise.
  • rules/validation.md § State Machine Validation — the canonical example declares initialStates: ['draft'], so it no longer undercuts the rule.
  • rules/naming.md — Critical Rules 6: labels follow the user's language (21).
  • references/seeds.md — "Fictional is fine; malformed is not", and os validate / os build refuse a malformed seed value first, at the record's field (19).
  • Evals: objects-fields-relationships.json cases 10–14, hooks-security-seeds-datasources.json cases 14–16 (renumbered after the cases main landed, twice) — the equivalents of cloud's boolean-never-required, label-language and people-lookups-optional text pins, plus the roll-up qualifier, owner, status-select and sharing-posture teachings.
  • scripts/check-skills-token-ratchet.mjs — four rows pinned AT the measurement (below).
  • .changeset/31155-port-authoring-rules-data.md — @objectstack/skills patch.

Same-file pay-downs came first: in SKILL.md the unique-validation blockquote restated rules/validation.md § Uniqueness and is a one-line pointer now, and the secret / user parentheticals in Field Type Selection restated rules/field-types.md rows 42–43 and 96 and are gone; in rules/relationships.md the engagement example and the "aggregate only a subset" lead-in were restated by the kept procurement_receipt example, the filter code comment's second line is said by the paragraph, and the child-field half of the filter sentence left the prose (it is enforce-or-remove row #31224 D); in rules/validation.md the "(removed from the spec)" aside restated § Uniqueness.

Token ratchet — four raises, authorised by the ruling that orders the text in

Convention ceil(utf8 bytes / 4), stamp line excluded on SKILL.md; bases are origin/main (fe97d85 and after), not the old merge-base. Raise path: maintainer ruling 2026-10-27, verbatim and untranslated, 「A:先削重复,余额按实测提高」 (ruling record 6513306068); the ruling of record that orders this text into the published skills is objectstack-ai/cloud#3659 letter A, maintainer 「A」 (ruling comment 6682024726): "How to write valid, working metadata lives in the public skills … The private corpus's rules of that kind move there."

file priced bytes (main → head) tokens ceiling
skills/objectstack-data/SKILL.md 24308 → 26658 (+2350 net) 6077 → 6665 6078 → 6665 (headroom 1 absorbed; +587)
skills/objectstack-data/rules/relationships.md 15489 → 16505 (+1016 net) 3873 → 4127 3873 → 4127 (headroom 0; +254)
skills/objectstack-data/references/seeds.md 6240 → 6985 (+745) 1560 → 1747 1566 → 1747 (headroom 6 absorbed; +181)
skills/objectstack-data/rules/validation.md 10992 → 11044 (+52 net) 2748 → 2761 2756 → 2761 (headroom 8 absorbed; +5)

Bundle: ratcheted (authored) count 182910 → 183952 (+1042 tokens; 15 absorbed by the four rows' headroom), ceiling sum 190832 → 191859 (+1027); eval fixtures are measured, not ratcheted.

Line readings (against origin/main 007fdb1)

Per edited file: SKILL.md 465 → 494 (+29); rules/relationships.md 405 → 419 (+14); rules/validation.md 328 → 329 (+1); rules/naming.md 21 → 25 (+4); references/seeds.md 163 → 175 (+12); evals/objects-fields-relationships.json 173 → 263 (+90); evals/hooks-security-seeds-datasources.json 135 → 165 (+30). Whole package, all SKILL.md summed: 4520 → 4549 (+29). Whole shipped tree under skills/: 20037 → 20217 (+180 net lines, inside the dispatch's +250 budget; evals are 120 of them).

No-loss mapping table (private rule id → class → skills file and section → regression kept)

The v1 ledger is card comment 6711215678 on #31155; its deltas after the contract review are card comment 6711710289. This is the v2 table — both corpora, every rule:

Source corpus read at objectstack-ai/cloud main (2026-11-07): packages/service-ai-studio/src/skills/metadata-authoring-skill.ts (101,410 bytes, 43 rules), solution-design-skill.ts (52,885 bytes, 11 rules), authoring-rule.ts (19,183 bytes, the delivery machinery — no rules of its own). Every rule of both corpora is listed below; nothing is dropped from the ledger.

Triage classes (the seat's refinement of the card's item 1, on AGENTS.md contract-first and 「声明即强制」):

  • CLOUD — orchestration or hosted-only (blueprint design, build loop, tool routing, confirm gate, drafts / NOT LIVE, plan tiers). Stays in cloud as the overlay (card item 2).
  • SPEC — restates what packages/spec already defines or refuses. Not ported as prose; the spec path is the carrier. A .describe() that lacks the sentence an agent needs is listed as a describe gap.
  • E/R — a trap that parses clean but is dead or wrong at runtime. Not written as prose; listed as enforce-or-remove for the spec lane.
  • STATED — the published skill already states it; mapped to the existing text, no new prose.
  • PORT — judgment the schema cannot express. Ported to the named skill and section. PR 1 = this PR (objectstack-data); PR 2/3 = the later per-domain PRs on this card (automation, ui).

The "regression kept" column names the cloud pin that hardened the rule (tests under packages/service-ai-studio/src/skills/__tests__/ and __tests__/authoring-rules.test.ts) and where its equivalent lives after the move. Spec paths are under packages/spec/src/.

metadata_authoring corpus

id rule (short) class target → spec path / skill file § section / existing text regression kept
confirm-before-change confirm gate, changes_proposed envelope CLOUD hosted tool contract authoring-rules.test.ts "does not defer the rules that govern every turn" — stays in cloud
base-first writable package, set_active_package CLOUD hosted (ADR-0070 base) stays in cloud
version-boundary what this tier can author CLOUD the restriction profile — card 2 (#31156) / card 3 (cloud#3713) authoring-rules.test.ts version-boundary describes — stay in cloud
new-app-blueprint a new app goes through propose_blueprint CLOUD orchestration stays in cloud
edit-one-diff one apply_edit per request CLOUD orchestration stays in cloud
auto-surfaced tool auto-creates list view + nav; view kinds; never downgrade a named kind CLOUD (auto-surfacing) + SPEC (ui/view.zod.ts view-type enum: kanban, gallery, calendar, gantt) + STATED (objectstack-ui SKILL.md § View Types rows gallery, gantt) the "never silently downgrade a named view kind to a plain list" clause is PORT → objectstack-ui, PR 3 (one sentence under View Types) no cloud pin names it; PR 3 adds a ui eval case
flow-node-types node type is the engine's vocabulary; a tool-named node = NO_EXECUTOR E/R + STATED enforce-or-remove: os validate / os build refuses a flow node type outside the composed registry's node executors (automation/flow.zod.ts node type is an open string by contract; the registry is the authority — ADR-0018). STATED: objectstack-automation SKILL.md § Flow Node Types + § Valid-but-silently-wrong. test_flow / toggle_flow half → CLOUD authoring-rules.test.ts corpus integrity — stays in cloud
flow-node-tier the tier's node list CLOUD restriction profile stays in cloud
add-view-not-convert "add a kanban view" = a NEW distinctly-named view coexisting; convert only on an explicit ask PORT → objectstack-ui, PR 3 (rules/list-views.md, beside the kanban section: distinct name encodes the kind, e.g. OBJECT.status_kanban; never retype OBJECT.list). The tool-side refusal of an in-place kind flip → CLOUD kanban-new-group-field-disclosure.test.ts "reachable from the ADD A VIEW rule" — PR 3 ui eval case; the cloud test stays pointing at the moved text
capabilities tool list CLOUD hosted stays in cloud
1 check before creating CLOUD orchestration —
2 read the schema first; kanban / gallery / gantt config; dashboard total needs a stored number; group-by over a multi-value field CLOUD (mandate) + SPEC (ui/view.zod.ts KanbanConfigSchema.groupByField REQUIRED, gallery.coverField, gantt.startDateField/endDateField/titleField) + STATED (objectstack-ui rules/list-views.md kanban + gantt sections; objectstack-data rules/field-types.md formula row: "virtual: neither aggregatable nor a dataset or cube dimension") enforce-or-remove (verify): a dashboard dimensions over a multi-value field (multiselect / checkboxes / tags / multiple: true) — ui/dashboard.zod.ts cannot see the field map; os validate should refuse it no cloud pin — the analytics-inline-vs-dataset.json ui eval already covers the stored-number half
3 describe before changing CLOUD orchestration —
3b snake_case, no leading digit — types, fields AND option values SPEC data/field.zod.ts field name regex /^[a-z_][a-z0-9_]*$/; SelectOptionSchema.value is SystemIdentifierSchema (refused at parse). STATED: objectstack-data rules/naming.md Rules table authoring-rules.test.ts rule 3b block — stays in cloud (the spec refusal is the regression)
4 field types from the user's words STATED objectstack-data SKILL.md § Field Type Selection; rules/field-types.md "When to Use" column —
5 propose an initial field set CLOUD design orchestration —
6 explain before executing CLOUD — —
7 changes are confirmed CLOUD — —
8 warn about data loss on destructive ops CLOUD (chat warning) + STATED (objectstack-data SKILL.md § Schema evolution: drop / tighten = os migrate apply --allow-destructive) — —
9 self-correct validation errors CLOUD — —
10 verify and self-correct, unservedApps CLOUD hosted verify_build —
11 complete the whole request CLOUD — —
12 never claim what you did not build CLOUD — —
13 a button / operation is action metadata, not a view; objectName binding; a write body must call ctx.api…update; language: 'js'; capabilities: ['api.write']; multi-step → type: 'flow' SPEC (ui/action.zod.ts: objectName regex; body language 'expression' = pure formula vs 'js' = sandboxed; capabilities) + STATED (objectstack-ui rules/actions.md examples carry objectName, language: 'js', capabilities: ['api.write'], ctx.api.object(...)) PORT → objectstack-ui, PR 3: two sentences under § Actions — "an operation that DOES something to a record is an action, never a view; a body that only RETURNS the new values writes nothing — call ctx.api.object(OBJ).update with api.write" no cloud text pin; PR 3 ui eval case
13-tier the tier's action types CLOUD restriction profile —
14 record-change flow: trigger on the START node config; triggerType one string; record-after-write for create-or-update; previous null on the create leg; never an array of trigger types; bare CEL condition; option VALUE never label; fields / filter keys; no recordId; CEL value envelopes, no {…} tokens; isoDate / current_user envelopes; edges connect everything SPEC: automation/flow.zod.ts refuses top-level triggerType / trigger with the start-node prescription (lines ~1086–1111); node configs are strictObject (an invented recordId / fieldValues / conditions key is refused at parse); automation/save-notice-placement.ts notices an array triggerType; automation/flow-template-token.ts refuses {…} tokens at save. STATED: objectstack-automation SKILL.md § Trigger Types (record-after-write = "create OR update — one flow, both events"), § Trigger Configuration, § Flow Variables, § Filter operands, § Valid-but-silently-wrong, line "current_user != null ? current_user.id : null"; objectstack-formula SKILL.md § 5 (previous is null on insert) enforce-or-remove: an action node reachable from no edge (orphan) — flow.zod.ts refuses dangling edges but not a node no edge reaches; refuse it. PORT → objectstack-automation, PR 2: the value-vs-label mapping sentence ("the user speaks the label; the stored value is the option value — map it in the condition AND every fields entry") is one clause in § Valid-but-silently-wrong if the existing line proves thin flow-value-envelope.test.ts (9 cases) pins the envelope teaching — the spec refusal (flow-template-token.ts) and the automation skill's Flow Variables section are its equivalent; the cloud test stays pointing at the moved text
14b time-relative automation: timeRelative on the start node; offsetDays vs withinDays; filter INSIDE the descriptor; daily cadence only; write the zone; runAs: 'system'; never a date-equality condition; clock-arming honesty SPEC: automation/time-relative-trigger.zod.ts (object + dateField required, exactly one windowing mode, schedule / runAs misplacement prescriptions). STATED: objectstack-automation references/examples-flows.md § Time-relative triggers (offsetDays T-60/30/7 vs withinDays, daily default, "Date EQUALITY never matches … build warns flow-date-equality-filter"); SKILL.md § Failure routing & runAs (a runAs: 'system' sweep). CLOUD: the clock-arming warnings (CLOCK_TRIGGER_*) enforce-or-remove (three): ① a sibling filter beside timeRelative on the start config (read by nothing) — refuse in the start node config; ② a schedule beside timeRelative finer or coarser than daily — refuse (time-relative-trigger.zod.ts only documents the default); ③ a timeRelative / schedule flow with runAs: 'user' — refuse at the flow level (today only .describe() prose, 122–125). PORT → objectstack-automation, PR 2: write the user's wall-clock hour with timezone (schedule: { type: 'cron', expression: '0 9 * * *', timezone: 'Asia/Shanghai' }), never a silent UTC conversion — spec describe gap: timezone is not described on the schedule descriptor (automation/execution.zod.ts names it only on run state) flow-value-envelope.test.ts "rule 14b writes a time-relative flow value the same way" — covered by the same equivalent as 14
14b-tier the tier's record-driven way out CLOUD restriction profile —
14c approval is a NODE: approvers: [{ type, value }], approver types, behavior; out-edges labelled approve / reject; manager resolves only when the directory is filled; a system write-back needs runAs: 'system' downstream SPEC: automation/approval.zod.ts (ApproverType, ORG_MEMBERSHIP_LEVELS, ApprovalDecision = approve/reject, the manager .describe() + os lint approval-approvers-may-resolve-empty). STATED: objectstack-automation references/state-machines-and-approvals.md (approver table incl. org_membership_level "matches nobody" warning, behavior row, labelled edges in the example) PORT → objectstack-automation, PR 2: one sentence — the approval service writes the outcome back as a SYSTEM write, so a record-change flow reacting to it declares runAs: 'system' no cloud text pin; PR 2 eval case
15 a bare summary never computes; function from the words; qualifier → filter; filter keys on the CHILD, option values; child links back; blueprint derivation; no backfill (rollup_never_computed); rate after summary E/R: data/field.zod.ts — type: 'summary' without summaryOperations parses and is runtime-dead (reads 0 everywhere); refuse it (today only function without field is refused, refuseSummaryWithoutField). E/R: summaryOperations.filter keys judged against the CHILD object — filed for the spec lane as objectstack#31224 D (the child-field half of the sentence left the prose in the review round; the value-vs-label half stays); a summary whose child has no relationship back (summary_unresolved_relationship). CLOUD: blueprint conditions / rollupsNeedingOperations. STATED: rules/relationships.md § Roll-up Summaries shape + relationshipField auto-detect; references/lint-rules.md rollup/missing-summary PORT → objectstack-data, PR 1 (this PR): rules/relationships.md § Roll-up Summaries — "Pick the function from the words, and put every qualifier in filter" (dropped = a plausible wrong total; one child feeds several totals; a rate is a formula over a working summary) and "The recompute runs only on a child write" (the backfill is os migrate summary-nulls --apply, --recompute-undefined-on-empty OBJECT.FIELD for a summary declared late) eval objects-fields-relationships.json case 12 (must_contain type: 'summary', function: 'count', filter: { status: 'completed' }, type: 'formula'; must_not_contain the label 已完成 in the filter)
16 the platform owner_id already exists — never a hand-rolled 负责人 lookup; ownership: 'user' is the default; ownership: 'none' for catalogs / junctions SPEC: data/object.zod.ts ownership JSDoc (user default, owner_id injection, org / none "catalog / junction tables") PORT → objectstack-data, PR 1: SKILL.md § Relationship Patterns row "Record owner" eval case 13 (must_contain owner_id, sharingModel: 'private'; must_not_contain a lookup to sys_user / user, ownership: 'user')
16b sharingModel defaulted; override only for a deliberate posture; controlled_by_parent constraints SPEC: data/controlled-by-parent-master.ts (exactly one required master_detail; refused at parse). STATED: SKILL.md § Object Definition — sharingModel required at publish (security-owd-unset), the four-value table PORT → objectstack-data, PR 1: SKILL.md § Object Definition — "Choose the posture from the request, not by habit" (business object → public_read_write; sensitive personal data → private; reference data → public_read; distinct from ownership) eval hooks-security-seeds-datasources.json case 16 (must_contain sharingModel: 'private' and 'public_read'; must_not_contain public_read_write)
17 a state_machine also declares initialStates SPEC: data/validation.zod.ts initialStates .describe() (the mechanic, verbatim). STATED: rules/validation.md types table row PORT → objectstack-data, PR 1: SKILL.md § Validation Patterns — add it whenever the status has a real start; only genuine entry states, never a terminal one; option values not labels (the UPDATE-only mechanic sentence was dropped in the review round as a class-1 restatement); rules/validation.md's canonical example now declares initialStates: ['draft'] eval case 11 (must_contain type: 'state_machine', initialStates: ['draft'])
18 never mark a boolean required; defaultValue: false; "must be accepted" is a validation rule; storage.notNull and backfill E/R: data/field.zod.ts — required: true on a boolean / toggle parses, can never fire, and a form that reads it as truthy refuses the unchecked state; refuse it at parse with the defaultValue prescription. STATED: SKILL.md § Schema evolution + field.zod.ts required / storage.notNull .describe() (ADR-0113) PORT → objectstack-data, PR 1: SKILL.md § Field Type Selection bullet (flag = { type: 'boolean', defaultValue: false }, never required; "must be accepted" = validations[]; the default lands imported rows on a real false) boolean-never-required.test.ts (2 cases, both corpora) → eval case 10 (must_contain type: 'boolean', defaultValue: false; must_not_contain required: true); the cloud test stays pointing at the moved text
19 sample data fictional, never malformed; producer-side repair CLOUD (the create_seed / apply_blueprint repair, seedRepairs) PORT → objectstack-data, PR 1: references/seeds.md § Seed best practices — "Fictional is fine; malformed is not", with the authoring-time gate named (os validate / os build refuse a malformed value first, packages/cli/src/utils/seed-record-values.ts) eval hooks-security-seeds-datasources.json case 14 (must_contain defineSeed, +86 138, @example.com; must_not_contain ****, 'N/A')
19b a refused apply_blueprint built nothing CLOUD hosted —
19c say whether seed rows landed (drafted / published) CLOUD hosted —
19d a dynamic default fires on SAVE; never promise a form pre-fill SPEC: data/field.zod.ts defaultValue .describe() ("applied on INSERT") PORT → objectstack-data, PR 1: SKILL.md § Field Type Selection bullet — describe it as save-time; the form's pre-display is a client capability you cannot promise eval case 15 (must_contain defaultValue: 'current_user'; must_not_contain 会自动预填)
19e 「刷新一下」 is a forbidden diagnosis CLOUD chat diagnosis —
19f a board over a just-created group field opens all-empty; the 「未分类」 lane is last; disclose PORT → objectstack-ui, PR 3 (rules/list-views.md beside the Uncategorized note, which today covers only an unlisted value: a field added now has no value on any existing row, so every record lands in the trailing lane; adding a field never backfills) kanban-new-group-field-disclosure.test.ts (7 cases) → PR 3 ui eval case; the cloud test stays pointing at the moved text
20 answer in the user's language CLOUD chat —
21 labels follow the user's language PORT → objectstack-data, PR 1: rules/naming.md Critical Rules item 6 label-language.test.ts (2 cases, both corpora) → eval case 14 (must_contain label: '供应商', label: '公司名称'; must_not_contain English labels) and case 10 (label: '是否完成'); the cloud test stays pointing at the moved text
22 ask when ambiguous CLOUD chat —

solution_design corpus

id rule (short) class target → spec path / skill file § section / existing text regression kept
plan-first propose → confirm → apply → verify CLOUD orchestration authoring-rules.test.ts inline pins — stay in cloud
scale-and-scope bias small, phase big systems CLOUD blueprint design (card item 2) —
dashboards-second-beat dashboards only when asked; widget aggregate / measure; calendar startDateField CLOUD (when to include a dashboard; the blueprint's aggregate / measure vocabulary is the blueprint schema's — ui/dashboard.zod.ts removed aggregate / valueField from the authorable spec) + SPEC (ui/view.zod.ts calendar startDateField) + STATED (objectstack-ui evals/analytics-inline-vs-dataset.json) — —
hard-rules mandatory confirm gate; publish state; labels / language CLOUD; the labels clause = rule 21 see 21 label-language.test.ts case 1 → eval case 14
sample-data apply_blueprint auto-seeds; seededLive; real-data import; attached spreadsheet brief CLOUD hosted importer and blueprint —
select-options status is a select on the main object, never a table; every select ships non-empty options; stage-field option kind SPEC: data/field.zod.ts options — a select / radio with neither options nor a picklist is refused at parse; SelectOption.kind .describe() + data/object.zod.ts refuses a stageField option without a kind. STATED: rules/field-types.md Selection table PORT → objectstack-data, PR 1: SKILL.md § Relationship Patterns row "Record status / lifecycle" eval case 11 (must_not_contain a lookup to an order_status table)
process-modeling roll-ups declared in the blueprint (conditions); never objects for approvals / workflows / audit trails; person fields { type: 'user' } for roles other than the owner; checkbox flags never required; people lookups optional; a lookup without reference CLOUD (blueprint conditions, rollupsNeedingOperations); 15 / 18 as above; SPEC: data/field.zod.ts relationship reference REQUIRED on lookup / master_detail (refused at parse); STATED: rules/field-types.md user row (person picker, sys_user), eval objects-fields-relationships.json case 2 (type: 'user', never a lookup to a user object) PORT → objectstack-data, PR 1: SKILL.md § Relationship Patterns rows "Approval, review, routing, audit trail" and "Record owner"; § Field Type Selection bullet "A person on the record … optional unless the request says otherwise" people-lookups-optional.test.ts (2 cases) → eval case 15 (must_not_contain { type: 'user', required: true }, a reference to sys_user / user); boolean-never-required.test.ts case 1 → eval case 10
process-approval-flow proactively draft the approval flow after the blueprint CLOUD (orchestration; its shape pointers are 14 / 14c / 17) — —
honest-deferred an unbuilt rule goes in assumptions CLOUD blueprint honesty —
extend-not-duplicate targetApp, iterate_or_new CLOUD orchestration —
granular-fallback small change skips the blueprint CLOUD orchestration —

Coverage the private rules carry, and where its equivalent is

  • skills/__tests__/boolean-never-required.test.ts, label-language.test.ts, people-lookups-optional.test.ts pin TEXT of both corpora. Their equivalents are the eval cases above (objects 10, 13, 14; hooks 14–16); the cloud tests stay in cloud pointing at the moved text until card 4 (cloud#3714) rewires the corpus.
  • skills/__tests__/flow-value-envelope.test.ts pins rule 14 / 14b's envelope teaching, half of which is spec-enforced at save (flow-template-token.ts) and half stated in objectstack-automation § Flow Variables. Stays in cloud; PR 2 decides whether an automation eval case is still owed once the one PORT clause lands.
  • skills/__tests__/kanban-new-group-field-disclosure.test.ts pins 19f and its reachability from add-view-not-convert — PR 3 (objectstack-ui).
  • skills/__tests__/data-explorer-answer-shape.test.ts pins data-explorer-skill.ts, which is outside this card's corpus (an ask-side skill).
  • __tests__/authoring-rules.test.ts pins the corpus INTEGRITY (byte-for-byte text, tiers, index lines, version boundary) — delivery machinery, stays in cloud.
  • scripts/dev-local/golden-journey.mjs drives the hosted build journey (signup → build → iterate → edit → boundary) and asserts existence in the DB and HTTP; it exercises no rule text (grep for rule ids / topics: zero). Stays in cloud. The evals/ harness (agent-e2e, structural score, hosted-chat) scores produced metadata, not rule text — stays in cloud.

Enforce-or-remove list for the seat (spec lane)

  1. data/field.zod.ts: type: 'summary' without summaryOperations parses and is runtime-dead (rule 15).
  2. data/field.zod.ts: required: true on a boolean / toggle parses and can never fire; a truthy-reading form turns it into "must be true" (rule 18).
  3. automation/flow.zod.ts: an action node reachable from no edge parses and never runs (rule 14, "edges connect everything").
  4. automation/builtin-node-config.zod.ts start node: a filter beside timeRelative is read by nothing (rule 14b) — verify the start config refuses the sibling key; if it does, this row is SPEC.
  5. automation/time-relative-trigger.zod.ts / the start schedule: a cadence finer or coarser than daily beside timeRelative re-fires or skips thresholds (rule 14b).
  6. automation/flow.zod.ts: a timeRelative / schedule flow with the default runAs: 'user' has no identity and its data steps are refused at run time (rule 14b) — today .describe() prose only.
  7. data/field.zod.ts / os validate: summaryOperations.filter keys and select values judged against the CHILD object; a summary whose child has no relationship back (rule 15).
  8. ui/dashboard.zod.ts / os validate: a dimensions entry over a multi-value field is no chart axis (rule 2) — verify.
  9. Spec describe gap: the schedule descriptor's timezone key (rule 14b) — described only on run state in automation/execution.zod.ts.

Conflicts with spec on main

None found: every ported sentence agrees with packages/spec at 8ef4d30. Two cloud spellings are the blueprint schema's, not the spec's, and were NOT ported: summaryOperations.conditions: [{ field, op, value }] (spec: filter, a where-map) and dashboard widget aggregate / measure (spec removed aggregate / valueField from the authorable dashboard surface).

Tests

  • Eval fixtures are JSON the maintainers score; they parse (python3 -c "json.load" over both files; ids contiguous and unique — objects 1–14, hooks 1–16 — mine after main's). No test pins the ported prose at a layer closer than the eval — the cloud text pins stay in cloud pointing at the moved text (table above).
  • No runtime behaviour changed, so no ablation is owed (docs and fixtures only).

Acceptance notes

Verification

Local subset on head 901533a (merge of origin/main 7c523aa at 2d6a84d, then one commit); the current head 370ddbb adds only a GitHub-reported-conflict merge of origin/main 007fdb1 (8fdef4f, one eval fixture renumbered) and the changeset's matching id line, re-checked in scope per AGENTS.md §10 — token ratchet :: exit 0 (the four rows unchanged at 6665 / 4127 / 1747 / 2761), check:role-word :: exit 0, CJK scan 0 lines, both eval fixtures parse with contiguous ids (1–14, 1–16): every family node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived for this diff — 64 families; exit codes captured before any pipe; --ran reconciliation: ✓ dispatch-gates --ran: 64 derived famil(ies) accounted for — 63 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)..

  • node scripts/check-skills-token-ratchet.mjs :: exit 0 — skills/objectstack-data/SKILL.md is 6665 tokens (ceiling 6665; headroom 0), rules/relationships.md is 4127 tokens (ceiling 4127; headroom 0), references/seeds.md is 1747 tokens (ceiling 1747; headroom 0), rules/validation.md is 2761 tokens (ceiling 2761; headroom 0); --self-test :: exit 0.
  • pnpm check:role-word :: exit 0. pnpm --filter @objectstack/spec run check:skill-docs :: exit 0 · check:skill-refs :: exit 0. pnpm check:dts-closure :: exit 0, pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0, pnpm check:lean-entry-closure :: exit 0 — each after the prerequisite build under the shared verify lock (turbo run build --filter=@objectstack/spec... --filter=@objectstack/formula... --filter=@objectstack/lint... --filter=@objectstack/objectql..., VERDICT command-exit 0 · held the lock 126s).
  • pnpm check:pm-dispatch-gates :: exit 0 (run with nohup + tail --pid).
  • The other 56 derived families (changeset gates, closing-keyword parity, nul-bytes, governed-merges prose, skill-compatibility, skill-frame-sync, skill-identifier-liveness, published-files, declaration mirrors, self-test wiring, ratchet-remedy-authority, …) :: exit 0 each.
  • NOT MEASURED locally: pnpm check:dual-build-cjs-loads :: exit 3 — PREREQUISITE NOT MET, it loads every package's dist/ (a full pnpm build, which CI owns). Read from the PR's Lint & Repo Gates check-run.
  • CJK scan of every non-eval skills/** file this PR touches (Python, the CJK Unified / punctuation / full-width ranges): 0 lines on this head.

Every family CI runs on the PR is read from its check-runs (Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, the ui lanes), not re-run here; at report time they are in_progress on 370ddbb.

Not run, with the reason: test:repo (CI's Test Core; the diff changes no test file). No dogfood battery: no ! in the title and no (narrowing) arm. No ablation: no tested runtime behaviour changed.


Generated by Claude Code

os-bob and others added 2 commits November 7, 2026 17:58
…ring judgment (port 1)

Booleans default and are never required; people fields are `user`, optional
unless asked; dynamic defaults are save-time; status is a select, never a
table; approvals and audit trails are not objects; the owner is `owner_id`;
sharing posture is chosen from the request; a state machine declares
initialStates; roll-up qualifiers go in `filter`, no backfill; seed values
well-formed; labels in the user's language. Eight eval cases pin them. The
three token-ratchet rows are pinned AT the measurement under the ruling.

Claude-Session: https://claude.ai/code/session_012dn2AdARJtc4RgABPH7PHk
Co-authored-by: Claude <noreply@anthropic.com>
…a reserved word; SKILL.md ceiling re-pinned at 6677

`check:role-word` refused "roles other than the owner" (ADR-0090 D3); the row
now says "(approver, reviewer) … beside the owner". The two bytes the reword
added move the pinned ceiling 6675 -> 6677, AT the measurement.

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

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk

Contract-review-claim: session_012dn2AdARJtc4RgABPH7PHk · head 0fb4902 · 2026-11-07T18:23Z

Governed face (skills/**, plus a token-ratchet ceiling raise in scripts/check-skills-token-ratchet.mjs); the review runs at CONTRACT_REVIEW_TIER in an isolated reviewer.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0fb4902a9b9e86dbfd43e819e0afb3f2acbb587b
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/rules/relationships.md, skills/objectstack-data/rules/naming.md, skills/objectstack-data/references/seeds.md, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/evals/hooks-security-seeds-datasources.json, scripts/check-skills-token-ratchet.mjs, .changeset/31155-port-authoring-rules-data.md + packages/spec/src/data/object.zod.ts, packages/spec/src/data/field.zod.ts, packages/spec/src/data/field-value.zod.ts, packages/spec/src/data/validation.zod.ts, packages/objectql/src/validation/record-validator.ts, packages/metadata-protocol/src/seed-loader.ts, packages/cli/src/utils/seed-record-values.ts, packages/cli/src/commands/migrate/summary-nulls.ts, ui/packages/components/src/renderers/form/checkbox.tsx, skills/objectstack-data/rules/field-types.md, skills/objectstack-data/rules/validation.md, skills/objectstack-data/rules/security.md, skills/objectstack-automation/SKILL.md (all on origin/main fe97d85), cloud packages/service-ai-studio/src/skills/metadata-authoring-skill.ts and solution-design-skill.ts (cloud main)

Inputs read: card #31155 body and comments 6709262673, 6709364829 (claim), 6709466914 (triage), 6711215678 (ledger), 6711263510 (dev report); cloud#3659 body and comments 6681920672, 6682024726 (ruling A), 6708590694; ruling record 6513306068 (#27847); PR #31223 body, file list, diff vs merge-base 8ef4d30 and vs origin/main fe97d85; check-runs on the head (re-read at 2026-11-07T18:33Z); the two cloud corpus files. Byte counts below were read off git show with the ratchet header's own hand-audit formula, not by running the gate.

① Derived judgments

Faithfulness against packages/spec and the runtime on main — every ported sentence was checked; these hold:

  • Rule 18 (boolean never required): field.zod.ts L1323 defines required as the non-null presence contract and refuses nothing on boolean / toggle (class E/R, correctly left to the spec lane); defaultValue is "applied on INSERT when the field is omitted or null" (L1395), so "lands seeded or imported rows on a real false" is true; the Console checkbox renderer (ui/packages/components/src/renderers/form/checkbox.tsx L49) passes required={schema.required} to the control, so "a form that reads it that way refuses the unchecked state" is literally the shipped form. Judgment the schema cannot express — class 3, correctly placed.
  • Rule 19d (dynamic default is save-time): tokens NOW() / current_user / CEL envelope, resolved on INSERT (field.zod.ts L1395). True; class 3.
  • Rule 16 (owner is owner_id): object.zod.ts L3092–3123 — user default injects reassignable owner_id, org / none for "catalog / junction tables". True; class 3. created_by is a system column (field-group-layout.ts L98). True.
  • Rule 16b (posture from the request): sharingModel enum describe L3745 — public_read "everyone reads, owner writes", private owner-only. True; class 3. The hosted auto-default half was correctly dropped (the published skill already says a publish without sharingModel is refused).
  • Rule 15 (function from the words, qualifier in filter): summaryOperations.function ∈ count/sum/min/max/avg, filter a FilterCondition ANDed with the parent link, "recomputes when child records are inserted/updated/deleted" (field.zod.ts L2178–2193). True; class 3.
  • Rule 17 (initialStates): validation.zod.ts L197 describe matches the mechanic. Judgment half ("whenever the status has a real start; only genuine entry states, never terminal; values not labels") is class 3.
  • People fields: a user field's target is fixed to sys_user, any other reference refused at parse (field.zod.ts L2794–2825). "No reference" is true.
  • select-options / process-modeling: status-as-select, approvals-are-flow-nodes agree with skills/objectstack-automation/SKILL.md L105 (approval node). No contradiction with the i18n skill on labels (it teaches translation bundles, not an English default).
  • Rule 19 (seeds): record-validator.ts L154/171 EMAIL_RE, PHONE_RE = /^[+()\-\s\d.]{5,}$/ refuse 138****4207, N/A, ***, TBD; seed-loader.ts runs the record validator per row and continues (declaresSeedClientRefusal), so "loads short" is the loader's behaviour. True.
  • Tool-agnostic: no cloud tool name (verify_build, create_seed, apply_blueprint, describe_object) and no hosted-only rule in any skill hunk. The blueprint spellings (conditions, dashboard aggregate) were correctly not ported.

Misclassified or untrue sentences:

  • MUST-FIX (false against the runtime on main) — rules/relationships.md § Roll-up Summaries, "No backfill. … leaves every parent blank until a child is edited — declare it with the object, or touch a child record". packages/cli/src/commands/migrate/summary-nulls.ts (L43–70) is the backfill: os migrate summary-nulls --apply recomputes every NULL count/sum parent, and --recompute-undefined-on-empty object.field is documented for exactly "a summary field declared after its parent rows already existed". The published skill prescribes a workaround ("touch a child record") where the platform ships the command, and eval case 10's expected_output repeats the wrong remedy ("stays blank until a task is edited"). Keep the true half (the automatic recompute runs only on a child write) and name the migration as the remedy; rules/field-types.md L174 already uses this idiom for os migrate record-currency-codes.
  • SKILL.md § Validation Patterns, "transitions governs only UPDATE and a select accepts any option on insert, so without it a record can be created already approved" — class 1: a near-verbatim restatement of the spec .describe() (validation.zod.ts L197), and rules/validation.md L16 already says "insert: initialStates". Only the entry-state judgment is class 3. Related design gap in ④.
  • rules/relationships.md, "Every filter key is a field on the CHILD object and a select's value is its option value, never its label" — the seat's own ledger lists this as enforce-or-remove row 7 ("not written as prose; listed for the spec lane"), yet it is written as prose here. Either the ledger row or the sentence is misfiled; the value-vs-label half is judgment and may stay, the child-field half is the E/R row.
  • references/seeds.md, "a value the field type refuses never lands — the table loads short or empty" — true of the loader, but on main os validate / os build refuse a malformed seed value at authoring time through the same record validator (packages/cli/src/utils/seed-record-values.ts, os validate passes a seed row whose field value has the wrong type (e.g. a currency written { value, currency }); the row is refused only later, at seed load #27259). The paragraph ports the hosted failure mode and omits the open gate the skill's own "Verify your work" section tells the agent to run. Should-fix: one clause.

② Semver level

.changeset/31155-port-authoring-rules-data.md: '@objectstack/skills': patch with line-initial Clause-②: no and Metadata-protocol: none; the PR body carries the same two lines at L3–4. Correct: docs and eval fixtures only, no authorable key, value or default changes, so none takes patch (AGENTS.md Post-Task Checklist step 3), matching the package's precedent changesets (28804, 28819, 29395, 29411). No skip-changeset. Part of #31155 keeps the card open for the automation and ui ports, as the ledger says. Accepted.

③ Boundary flags

Token-ratchet raises (three rows, scripts/check-skills-token-ratchet.mjs):

  • Authority is real. Comment 6682024726 is cloud#3659's letter-A ruling (maintainer 「A」, 2026-11-06): "How to write valid, working metadata lives in the public skills … The private corpus's rules of that kind move there." Record 6513306068 is [Decision] skills token ratchet: price evals/** out (they never enter a customer context), and make the standing 「先削重复,余额按实测提高」 ruling the gate-recognised path for teaching text — or keep the per-raise ruling round #27847's letter-B ruling (maintainer 「其他同意」, 2026-10-30) that made the 2026-10-27 standing ruling 「A:先削重复,余额按实测提高」 the gate-recognised path; the ratchet header on main (L138–156) states both forms: same-file deletion shown plus the quote in the PR body, and "a ruling of record that orders text into a file still authorises its own measured delta". The PR body quotes the 2026-10-27 words verbatim and names both records (L34). Both authorise THIS raise: the text is ordered in by cloud#3659 A.
  • SKILL.md 6078 → 6677: same-file pay-downs are in the diff (the unique blockquote collapsed to a pointer; the secret / user parentheticals removed — both restated rules/validation.md § Uniqueness and rules/field-types.md rows 42–43 / 96, verified). Head file 26727 bytes, stamp line version: "18.3.0" 20 bytes → 26707 priced → ceil(26707/4) = 6677. Pinned AT the measurement, headroom 0. Holds.
  • references/seeds.md 1566 → 1718: no same-file deletion; the comment says so honestly ("the file said nothing about seed values" — confirmed against the file on main). Authorised under the ordering-ruling clause; 6870 bytes → 1718, pinned at the measurement. Holds.
  • MUST-FIX — rules/relationships.md 3873 → 4095 is pinned at the head's 16380 bytes, but origin/main moved this file after the merge-base (commit range 8ef4d30..fe97d85: sharingModel stamped on every example, the duplicate post_tag block replaced by a pointer): main is now 15489 bytes = 3873 tokens, headroom 0. The three-way merge applies cleanly to this file and yields 16391 bytes → 4098 tokens, three over the pinned 4095 — the ratchet reds on the merged tree the queue builds. The script comment's base figure (15478 → 16380) is also stale. Rebase, re-measure, re-pin.
  • Should-fix: the PR body's raise table (L38) says 26700 bytes / 6675 / +597 for SKILL.md; the script and the body's own Verification section say 26707 / 6677 / +599. The body is the carrier the ruling names for "ruling id + measured delta"; correct the table.

Merge state — MUST-FIX. GitHub reports the head mergeable: false, mergeable_state: dirty; git merge-tree origin/main 0fb4902a conflicts in both eval files. main landed objects-fields-relationships.json cases 8 and 9 and hooks-security-seeds-datasources.json case 11 after the base; this PR adds 8–12 and 11–13 under the same ids. The body's "ids 1–12 and 1–13 contiguous" was true at 8ef4d30 and is false against main. Rebase and renumber (10–14 and 12–14), then fix every case number in the PR body, the ledger comment and the changeset.

Governed surface. Every skills/** path is Tier H in GOVERNED_SURFACES; this record is the contract-tier review the dispatch ordered and the body correctly says landing waits for the maintainer's APPROVED review with the PR kept draft. No seat may arm, queue or flip it.

Check-runs on the head (final read 2026-11-07T18:33Z): total_count 0 — no GitHub Actions check-run exists on 0fb4902; the five app check-suites (vercel, fly-io, claude, cloudflare-workers-and-pages, objectstack-fleet) are queued with zero runs each. "Every check is green" cannot be read on this head; the dev's CI readings (Lint & Repo Gates, Test Core, Build Core, Governed Surface Queue Guard) were reported as in_progress and are not on this commit now.

④ Design judgment

Judged from the seat of a customer agent that loads the whole @objectstack/skills package:

  • Value density: the boolean, dynamic-default, people-field, owner, status-as-select, approvals-not-objects and roll-up-qualifier lines each change what an agent writes and are absent from the skill on main (checked SKILL.md, rules/field-types.md, rules/validation.md, rules/security.md, references/seeds.md, rules/naming.md). The sharing-posture paragraph adds the "which value" judgment the four-row table lacks. Same-file pay-downs are genuine deletions of restatement, not re-wraps.
  • Must-fix carried from ①: the "No backfill" paragraph and eval 10 teach a wrong remedy against the runtime on main.
  • Should-fix — contradiction by example: the new posture paragraph says a shared business object is public_read_write, reference data public_read, private only for personal or sensitive data; the skill's own examples teach the opposite habit — rules/relationships.md on main now stamps sharingModel: 'private' on account, contact, invoice, project, employee, the project_assignment junction and the category reference table; SKILL.md § Conditional Field Rules has invoice as private; main's new eval case 8 requires project private. All are valid spec values, but an agent reads examples before prose. Align the examples (or qualify the paragraph) in the same PR or a named follow-up.
  • Should-fix — rules/validation.md § State Machine Validation, the canonical example an agent copies, declares no initialStates, while the new SKILL.md sentence says to add it whenever the status has a real start (the example's draft is one). Add initialStates: ['draft'] to the example and keep only the judgment in SKILL.md; eval case 9 then tests a rule the examples do not undercut.
  • Evals: cases 8, 9, 11, 12, 13 and hooks 11–13 test the ported behaviour with must_not_contain on the exact anti-patterns (required: true on the flag, a reference to a user table, a status table, the label in a filter, an English label on a Chinese brief, public_read_write where the request implies a posture). They parse and are self-consistent. Case 10's expected_output inherits the backfill error (above). Case 11's must_not_contain: ["ownership: 'user'"] is consistent with the row's "(ownership: 'user', the default)" and the cloud rule's "do not pass it".
  • No duplicate of existing text was introduced except the initialStates mechanic (①). Tool-agnostic wording holds; Chinese trigger words (是否…, 已完成) are the user's vocabulary, not a hosted term. Role-word check already passed after the reword.

Must-fix set for the next head: (1) rebase onto main, resolve the two eval conflicts and renumber the cases; (2) re-measure and re-pin rules/relationships.md (and refresh the comment's base bytes) on the rebased tree; (3) rewrite "No backfill" and eval 10 around os migrate summary-nulls. Should-fix: the body's raise table, the initialStates example in rules/validation.md, the private-by-habit examples, and the os validate clause in references/seeds.md.

Implemented-by: claude/issue-31155-port-authoring-rules
Reviewed-by: session_012dn2AdARJtc4RgABPH7PHk

VERDICT: FAIL

os-bob and others added 2 commits November 7, 2026 18:39
The two objectstack-data eval fixtures conflicted: main landed
objects-fields-relationships cases 8-9 and hooks-security-seeds-datasources
case 11 after the base, so this branch's cases are renumbered after them
(10-14 and 12-14).

Claude-Session: https://claude.ai/code/session_012dn2AdARJtc4RgABPH7PHk
Co-authored-by: Claude <noreply@anthropic.com>
…igrate summary-nulls`, not a child edit; examples take the posture the prose teaches

The recompute paragraph names the migration (and its
`--recompute-undefined-on-empty` flag for a summary declared late) in place
of "touch a child record", and eval 12 follows. The child-field half of the
`filter` sentence leaves the prose (an enforce-or-remove row for the spec
lane); the `initialStates` mechanic sentence leaves SKILL.md (the spec
describe carries it) and the canonical state-machine example gains
`initialStates: ['draft']`. `os validate` / `os build` refuse a malformed
seed value first. Five example objects take the sharing posture the new
paragraph teaches. Four ratchet rows re-pinned AT the measurement against
main's bases (SKILL.md down to 6660). Eval ids follow main's (10-14, 12-14).

Claude-Session: https://claude.ai/code/session_012dn2AdARJtc4RgABPH7PHk
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 7, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk

Contract-review-claim: session_012dn2AdARJtc4RgABPH7PHk · head c92f2f5 · 2026-11-07T19:06Z

Delta review of the round-1 rework against FAIL 6711429709, by the same reviewer, at CONTRACT_REVIEW_TIER.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c92f2f547ac8b2f8781c247c2d177aade414bd99
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/rules/relationships.md, skills/objectstack-data/rules/validation.md, skills/objectstack-data/rules/naming.md, skills/objectstack-data/references/seeds.md, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/evals/hooks-security-seeds-datasources.json, scripts/check-skills-token-ratchet.mjs, .changeset/31155-port-authoring-rules-data.md + packages/spec/src/data/object.zod.ts, packages/spec/src/data/field.zod.ts, packages/spec/src/data/validation.zod.ts, packages/objectql/src/validation/record-validator.ts, packages/metadata-protocol/src/seed-loader.ts, packages/cli/src/utils/seed-record-values.ts, packages/cli/src/commands/migrate/summary-nulls.ts, ui/packages/components/src/renderers/form/checkbox.tsx (on origin/main 714dda8), cloud metadata-authoring-skill.ts and solution-design-skill.ts (cloud main)

Delta review of the head that answers contract review 6711429709 (FAIL on 0fb4902). Inputs: the PR's rewritten body, its file list, the diff vs the merge-base fe97d85 and vs origin/main 714dda8, the merge commit 9bed005 (parents 0fb4902 and fe97d85, verified), card comments 6711340388 (E/R rows routed), 6711710289 (ledger correction), 6711735938 (rework report), issue #31224, and the check-runs on c92f2f5 re-read at 2026-11-07T19:08Z. Byte counts were read off git show with the ratchet header's hand-audit formula, on the head, on origin/main and on the three-way merge result, not by running the gate.

① Derived judgments

The three must-fixes of the previous record, on this head:

  1. Merge state / eval renumbering — fixed. origin/main (fe97d85) is merged in by 9bed005; GitHub reports mergeable: true, mergeable_state: clean, and git merge-tree origin/main c92f2f54 against today's main (714dda8) is conflict-free. main's cases (objects 8–9, hooks 11) are kept; this PR's cases are 10–14 and 12–14, ids 1–14 contiguous in both files; the changeset, the PR body and the ledger correction 6711710289 carry the new numbers consistently. main has not moved any PR file since fe97d85 (diff empty on skills/, the ratchet script and the changeset).
  2. rules/relationships.md ceiling — fixed, re-measured. Head file 16470 bytes → ceil(16470/4) = 4118 = the pinned row; the same bytes on the merge result with current main. The comment's base is now main's re-locked 15489 (3873, headroom 0), so +245 is the measured delta. A same-file pay-down is shown (the filter code comment's second line, and the child-field half of the filter sentence).
  3. Roll-up backfill — fixed and true against the runtime. The paragraph is now "The recompute runs only on a child write … reads NULL on every existing parent … The backfill is os migrate summary-nulls --apply (--recompute-undefined-on-empty OBJECT.FIELD for a min / max / avg declared late) — never an edit to a child." That is packages/cli/src/commands/migrate/summary-nulls.ts L43–70 exactly (NULL count/sum parents recomputed; the flag for the undefined-on-empty functions; a late-declared field "has never been computed by anything"). Eval 12's expected_output says the same and drops "until a task is edited". Class 3 with the platform's own remedy.

The seat's added orders, on this head:

  • Class-1 initialStates mechanic sentence — dropped from SKILL.md § Validation Patterns; what remains ("declares initialStates whenever the status has a real starting point … only the genuine entry states, never a terminal one; keys and values are option values") is judgment the describe does not carry. rules/validation.md § State Machine Validation example now declares initialStates: ['draft'] with a one-line comment, so the example an agent copies no longer undercuts the rule; eval 11 (initialStates: ['draft'] must_contain) now tests a rule the examples support.
  • Child-field half of the filter sentence — withdrawn from prose; the value-vs-label half stays ("A select's value in filter is its option value, never its label"), which is judgment. The row is filed for the spec lane as Enforce-or-remove: four metadata shapes cloud's authoring rules warn about still parse clean (boolean required, open flow start config, orphan action nodes, roll-up filter keys) #31224 D (open, domain:spec, pm:queue), so the ledger and the prose now agree.
  • references/seeds.md — gains "os validate / os build refuse such a value first, at the record's field — run them before trusting the load", which is packages/cli/src/utils/seed-record-values.ts (os validate passes a seed row whose field value has the wrong type (e.g. a currency written { value, currency }); the row is refused only later, at seed load #27259, the same record validator the load runs). The loader half ("loads short or empty") stays true of seed-loader.ts.
  • sharingModel example alignment — account, contact, invoice and the project_assignment junction are public_read_write; category (reference data) is public_read; SKILL.md § Conditional Field Rules invoice is public_read_write; invoice_line_item / invoice_line stay controlled_by_parent. The two kept private cases are deliberate and stated in the body: employee is personal data (the paragraph's own private case) and project is pinned private by main's eval case 8 (must_contain: "sharingModel: 'private'"), so changing it would contradict a fixture on main. No example now teaches private by habit.

Every ported statement checked in the previous record (rules 15, 16, 16b, 17, 18, 19, 19d, 21, select-options, process-modeling) is unchanged in substance and still holds against object.zod.ts L3092–3123 / L3745, field.zod.ts L1323 / L1395 / L2162–2193 / L2794–2825, validation.zod.ts L197, record-validator.ts L154 / L171 and the Console checkbox renderer. Nothing hosted-only or tool-named entered the skill text in the rework. No misclassified sentence remains.

② Semver level

Unchanged and correct: .changeset/31155-port-authoring-rules-data.md '@objectstack/skills': patch, line-initial Clause-②: no and Metadata-protocol: none, mirrored at PR body L3–4; docs and eval fixtures only, so none takes patch. The changeset body now names the backfill command, the initialStates example and the os validate clause, and carries the renumbered cases (10–14, 12–14). Check Changeset and the PR-body guards are green on the head.

③ Boundary flags

Token-ratchet rows (four, all pinned AT the measurement, headroom 0, read on the head and on the merge result with main 714dda8):

row bytes (priced) ceil/4 pinned base pay-down shown
SKILL.md 26658 − 20 stamp = 26638 6660 6660 main 24308 unique blockquote, secret/user parentheticals, the initialStates mechanic sentence
rules/relationships.md 16470 4118 4118 main 15489 engagement example, lead-in, filter comment line, child-field clause
references/seeds.md 6985 1747 1747 main 6240 none to cut (file said nothing about seed values)
rules/validation.md 11044 2761 2761 main 10992 (2756, headroom 8) "(removed from the spec)" aside, restated by § Uniqueness

The PR body's raise table (L39–42) now matches the script and these readings (26638/6660/+582; 15489→16470/4118/+245; 6985/1747/+181; 10992→11044/2761/+5); the previous head's stale 26700/6675/+597 is gone. SKILL.md re-locks DOWN from the previous head's 6677. Authority unchanged and verified last round: cloud#3659 letter A (6682024726) orders the text in; the 2026-10-27 words 「A:先削重复,余额按实测提高」 are quoted verbatim in the body and in each row comment with record 6513306068; the ratchet header on main recognises both forms. The new validation.md row is a +5 raise on the same authority with its deletion shown — the smallest possible move, correctly not absorbed into the old headroom without a re-pin.

Merge brought nothing else in. The merge commit's main side touched the two eval files (resolved by renumbering) and rules/relationships.md (sharingModel on examples, the post_tag pointer), all re-measured; no other PR file is touched by main since fe97d85.

Governed surface. skills/** is Tier H; this record is the contract-tier record the dispatch ordered; the PR stays draft and the body says landing waits for the maintainer's APPROVED review. No seat arms, queues or flips it.

Check-runs on c92f2f5 (final read 2026-11-07T19:08Z): 46 check-runs, all completed; every conclusion is success or skipped (path-filtered lanes), none failure — Lint & Repo Gates, TypeScript Type Check, Test Core (+3 shards), Build Core, Governed Surface Queue Guard, Check Changeset, PR-body guards, Dogfood Regression Gate, Test UI, Live E2E UI, Type Check · workspace / consumer gates / debt ledger / source gates, the scoped Lint lanes and Lint · PM dispatch-gates all success. The five third-party app suites (vercel, fly-io, claude, cloudflare-workers-and-pages, objectstack-fleet) are queued with zero runs, as on every head.

④ Design judgment

From the seat of a customer agent loading the whole @objectstack/skills package: the rework removed the one duplicate (the initialStates mechanic), repaired the one false prescription (backfill), and resolved the contradiction-by-example on sharingModel with two stated exceptions that are themselves the paragraph's own cases. The eval cases test the ported behaviour: 10 (boolean flag, Chinese label), 11 (status select + state_machine + initialStates, no status table, no approval object), 12 (qualifier in filter, value not label, rate after summary, summary-nulls backfill), 13 (owner is owner_id, private posture, no ownership: 'user'), 14 (labels in the request's language); hooks 12 (well-formed seed values), 13 (people fields optional, save-time default), 14 (posture from the request). Each must_not_contain names the exact anti-pattern the cloud pin hardened; the value-vs-label and summary-nulls sentences are the only prose a case now depends on that the previous record questioned, and both hold against the spec and the CLI. Tool-agnostic wording holds; rules/naming.md item 6 does not conflict with the i18n skill. No new must-fix; nothing further to order.

Implemented-by: claude/issue-31155-port-authoring-rules
Reviewed-by: session_012dn2AdARJtc4RgABPH7PHk

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk

ACCEPT · 2026-11-07T19:11Z · head c92f2f547ac8b2f8781c247c2d177aade414bd99 · Tier H (governed skills/**) — awaiting a human approval

维护者速读

  • 改了什么:把 cloud 私有 AI 编写规则里「数据建模」这一块的判断性知识,移植进对外发布的 @objectstack/skills(objectstack-data):勾选框字段不设必填、给默认值;人员字段用 user 类型;动态默认值在保存时求值;对象的共享权限按需求选;「状态」用选择字段而不是单独建表;审批与审计记录不是对象;拥有者是 owner_id;汇总字段从需求的说法选函数、条件放进 filter、晚加的汇总用 os migrate summary-nulls 回填;标签跟随用户的语言;示例数据不写假格式。新增 8 个评测用例。净增 179 行。
  • 为什么改:执行 cloud#3659 裁决 A(一个知识源:本地开发与云端 AI 用同一套公开 skills)。这是第 1 张卡的第一个 PR,数据领域;自动化、界面两个小 PR 随后。
  • 怎么防重复:54 条私有规则逐条分类(清单在 One authoring source (cloud#3659 A), 1/4: port cloud's private metadata-authoring rules into the published @objectstack/skills, keeping every regression #31155):复述 spec 的不搬;「能通过校验、运行时无效」的陷阱不写成文字,交 spec 车道强制(已立 Enforce-or-remove: four metadata shapes cloud's authoring rules warn about still parse clean (boolean required, open flow start config, orphan action nodes, roll-up filter keys) #31224);只搬 schema 表达不了的判断。
  • 风险与回滚:只改文档与评测;为装下新内容,把四个文件的体积上限按实测抬高(依据 cloud#3659 A 与「先削重复,余额按实测提高」,同文件已先删重复)。回退本 PR 即可。
  • 需要你做的:审批合并(受管面 skills/**,Tier H)。契约复审 PASS 评论 6711799180,Head-sha: c92f2f547ac8b2f8781c247c2d177aade414bd99。
  • 席位意见:建议合并。第一轮复审 FAIL(合并冲突、一处体积上限、「无回填」说错)已全部修正。

席位核对

  • 形态: Part of #31155, 9 files, governed skills/** ⇒ Tier H: draft kept, pm:awaiting-merge and review requested from GOVERNED_APPROVERS in this pass; the seat neither approves, arms nor merges.
  • Contract review: FAIL 6711429709 on 0fb4902a → rework → Served-tier: CONTRACT_REVIEW_TIER PASS 6711799180 on this head (delta by the same reviewer).
  • 门禁 check-runs on this head: 46 check-runs completed, every one success or path-filtered skipped, none failed (incl. Lint & Repo Gates, Test Core, Build Core, Governed Surface Queue Guard, Check Changeset, Dogfood Regression Gate).
  • Ratchet: four rows pinned at the measurement (6660 / 4118 / 1747 / 2761), authority cloud#3659 A 6682024726 + record 6513306068, same-file pay-downs shown; the PR body's table matches.
  • 范围外去向: enforce-or-remove rows → objectstack#31224; the automation and ui ports → later PRs on One authoring source (cloud#3659 A), 1/4: port cloud's private metadata-authoring rules into the published @objectstack/skills, keeping every regression #31155.
  • 落地条款: after an APPROVED review from GOVERNED_APPROVERS the seat runs the landing pre-check, clears pm:awaiting-merge, pr_ready + automerge_enable; or the maintainer merges by hand.

@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 7, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 7, 2026 23:39
@os-zhuang
os-zhuang enabled auto-merge November 7, 2026 23:39
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 7, 2026

@os-zhuang os-zhuang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skills 对外发布的版本应该全部用英文

@os-zhuang
os-zhuang removed this pull request from the merge queue due to a manual request Nov 7, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk

Re: the CHANGES_REQUESTED review (「skills 对外发布的版本应该全部用英文」) · 2026-11-08T00:13Z

Accepted; rework round 2 is under way on this branch. Scope, as the account owner ruled in session_012dn2AdARJtc4RgABPH7PHk (「同意」 to the seat's proposal): every sentence a customer agent reads in the shipped skill text becomes English (the 「是否…」 / 「负责人」 passages in SKILL.md and the roll-up wording passage in rules/relationships.md, plus any other CJK in this PR's skill prose). Two exemptions: the eval prompt strings in skills/**/evals/*.json (they test that labels follow the user's language and do not enter an agent's context) and the existing objectstack-i18n Chinese example data. If you want the evals in English too, say so here and the seat will include them. A delta contract review runs on the new head before the review is re-requested.

claude and others added 4 commits November 8, 2026 00:13
… two example phrases and the roll-up passage reworded; two ratchet rows re-pinned

Approver's review on the PR: the published skills are read in English. The
yes/no-flag and owner-lookup examples in SKILL.md and the roll-up "pick the
function from the words" passage in rules/relationships.md now use English
or language-neutral wording for the same judgment. Eval prompt strings are
exempt (they test "labels follow the user's language" and never enter an
agent's context). SKILL.md 6660 -> 6665 and relationships.md 4118 -> 4127,
AT the measurement.

Claude-Session: https://claude.ai/code/session_012dn2AdARJtc4RgABPH7PHk
Co-authored-by: Claude <noreply@anthropic.com>
…b-reported conflict)

main landed another hooks-security-seeds-datasources eval case after this
branch's last merge; this branch's three cases are renumbered after it.

Claude-Session: https://claude.ai/code/session_012dn2AdARJtc4RgABPH7PHk
Co-authored-by: Claude <noreply@anthropic.com>
…y hold after main's (14-16)

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

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk

Contract-review-claim: session_012dn2AdARJtc4RgABPH7PHk · head 370ddbb · 2026-11-08T00:43Z

Delta review, round 2 (the English-only rework after the CHANGES_REQUESTED review, plus two merges of origin/main); governed face (skills/** and two token-ratchet ceiling re-pins in scripts/check-skills-token-ratchet.mjs), CONTRACT_REVIEW_TIER, same reviewer as records 6711429709 and 6711799180.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 370ddbb1722d31bc2e9f0ed102a1f0fd51d1d03d
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/rules/relationships.md, skills/objectstack-data/rules/validation.md, skills/objectstack-data/rules/naming.md, skills/objectstack-data/references/seeds.md, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/evals/hooks-security-seeds-datasources.json, scripts/check-skills-token-ratchet.mjs, .changeset/31155-port-authoring-rules-data.md + the cloud corpus rules 15, 16, 18 (metadata-authoring-skill.ts, cloud main) the reworded passages port, and packages/cli/src/commands/migrate/summary-nulls.ts on origin/main for the roll-up paragraph that was kept

Delta review, round 2, of the head that answers os-zhuang's CHANGES_REQUESTED review (5815596823 on c92f2f5, verbatim 「skills 对外发布的版本应该全部用英文」) under the scope the account owner agreed to (「同意」, recorded in PR comment 6714903336): every piece of shipped skill text English-only, with two exemptions, (a) eval prompt strings in skills/**/evals/*.json and (b) the existing objectstack-i18n Chinese example data. Previous record on this PR: PASS 6711799180 on c92f2f5. Between that head and this one: merge 2d6a84d of origin/main 7c523aa, the language commit 901533a, the conflict merge 8fdef4f of origin/main 007fdb1, and 370ddbb (changeset id line). Inputs: the PR body as rewritten, the file list, the diffs 2d6a84d..901533a, 901533a..8fdef4f, 8fdef4f..370ddbb and merge-base 007fdb1..370ddbb, the three-dot diff against origin/main 0f254f4 and git merge-tree against it, the dev reports 6715085960 and 6715133451, ledger note 6715112987, and the check-runs on the head. Byte counts and the CJK scan are my own reads (git show piped to wc -c, and a Python scan over every non-eval skills/** file at the head and at main), not the dev's.

① Derived judgments

  1. CJK scan — 0 in every non-eval file the PR touches. At 370ddbb, SKILL.md, rules/relationships.md, rules/validation.md, rules/naming.md and references/seeds.md each hold 0 codepoints in the CJK, kana, fullwidth and CJK-punctuation blocks (U+3000–U+303F, U+3040–U+30FF, U+3400–U+4DBF, U+4E00–U+9FFF, U+F900–U+FAFF, U+FF00–U+FFEF). The changeset and the ratchet script hold none either, apart from the verbatim ruling quotes the ratchet header already carries on main (not shipped text). The eval prompts keep their Chinese under exemption (a); objectstack-i18n is untouched (exemption (b)). Out of scope but recorded for the seat: six other shipped non-i18n files carry CJK on main today exactly as on this head (objectstack-automation/references/state-machines-and-approvals.md 8, objectstack-formula/SKILL.md 2, objectstack-ui/rules/navigation.md 13, objectstack-ui/rules/record-page.md 4, objectstack-upgrade/SKILL.md 12, objectui/guides/i18n.md 8) — pre-existing, not this PR's, and a separate card if the English-only rule is to cover the catalog.
  2. The reworded passages teach the same judgment. SKILL.md yes/no flag: 「是否…」 became "done?", "active?" beside is_* / has_*; the rule, the reason (required can only read as "must be true"; a form that reads it that way refuses the unchecked state) and the validations[] prescription are byte-identical to the previous head, and still match cloud rule 18 (BOOLEAN_DEFAULT_RULE) and the spec (field.zod.ts required is the non-null presence contract). Owner row: 「负责人 / owner lookup」 became "owner" / "person in charge" lookup; the owner_id / ownership: 'none' judgment is unchanged and still matches cloud rule 16 and object.zod.ts L3092–3123. rules/relationships.md roll-up passage: 个数 / 数量 → "how many" / "number of" → count; 合计 / 总额 → "total" / "sum" → sum; 平均 → "average" → avg; 已完成任务数 / 待处理工单数 → "completed task count" / "open ticket count"; 已X / 未X / "state" → "done / pending / overdue / STATE"; 已完成 / 进行中 / 逾期 → completed / in-progress / overdue; 上座率 / 完成率 → occupancy / completion rate. Every clause of the previous version is present: function from the words, every qualifier in filter, dropped = a plausible wrong total worse than a visible 0, one child feeds several totals, option value never label, operator forms, recompute on the child's next write, rate = formula over a working summary authored first. The summary-nulls paragraph that round 1 ordered is unchanged and still matches summary-nulls.ts. Nothing lost, nothing changed in meaning; the examples are now language-neutral English.
  3. Eval ids after the second merge. main 007fdb1 (docs(skills): teach the hook body first in data-hooks.md, drop hook ctx.api methods that do not exist, guard nullable hook and formula predicates #31201) landed hooks cases 12–13; the conflict merge 8fdef4f kept them and moved this PR's three hooks cases to 14 (well-formed seed values), 15 (people fields optional, save-time default) and 16 (sharing posture); objects stay 10–14. Read with a Python json.load: hooks ids 1–16 and objects ids 1–14, each contiguous and unique; both files parse. The changeset (370ddbb: "objects-fields-relationships 10–14, hooks-security-seeds-datasources 14–16"), the PR body's eval line (L29) and regression column (L112, L133), and ledger note 6715112987 all agree with the files. One stale sentence remains in the PR body's Tests section (L158): "ids 1–14 contiguous in each" — true of the objects file, false of the hooks file (1–16). Should-fix on the body text only; no carrier a gate reads names it.
  4. Ratchet rows. SKILL.md: 26678 bytes at the head, stamp line version: "18.3.0" 20 bytes, priced 26658 → ceil(26658/4) = 6665 = the pinned row (6660 → 6665, +5 for the +20 bytes of English wording). rules/relationships.md: 16505 bytes → ceil(16505/4) = 4127 = the pinned row (4118 → 4127, +9 for +35 bytes). Both bases are origin/main's (24308 priced, 15489), as the row comments state, and the same byte counts hold on the three-way merge result against today's main 0f254f4. references/seeds.md 6985 → 1747 and rules/validation.md 11044 → 2761 are unchanged and still at their rows. All four pinned AT the measurement with headroom 0; the PR body's table (L41–44) carries exactly these numbers. Authority unchanged: cloud#3659 letter A (6682024726) orders the text in; the 2026-10-27 words 「A:先削重复,余额按实测提高」 and record 6513306068 are quoted in the body and in each row comment. The two +20 / +35 byte moves had no same-file restatement left to pay them (the previous rounds' pay-downs stand in the diff); the ratchet header's clause that a ruling of record ordering text into a file authorises its own measured delta covers them, and the comments say so honestly.
  5. Nothing outside the stated scope. The three-dot diff of 370ddbb against origin/main touches exactly the nine PR files; 2d6a84d and 8fdef4f are merges whose only PR-file effect is the hooks eval renumbering; 901533a changes SKILL.md (two phrases), rules/relationships.md (one passage) and the two ratchet rows and their comments; 370ddbb changes one line of the changeset. git merge-tree origin/main 370ddbb1 is conflict-free and GitHub reports mergeable: true.

② Semver level

Unchanged: '@objectstack/skills': patch, line-initial Clause-②: no and Metadata-protocol: none in the changeset and at PR body L3–4; docs and eval fixtures only. The changeset's case numbers now read 10–14 and 14–16, matching the files. Check Changeset and the PR-body guards are green on the head.

③ Boundary flags

  • The PR is no longer draft: the dev report records a ready_for_review timeline event by os-zhuang at 2026-11-07T23:39Z, before the CHANGES_REQUESTED review; GitHub reports mergeable_state: blocked. skills/** is Tier H: this record is the contract-tier record; landing still waits for an APPROVED review from GOVERNED_APPROVERS (the standing review is CHANGES_REQUESTED on an older commit and must be re-requested), and no seat arms, queues or merges.
  • Check-runs on 370ddbb, read at 2026-11-08T00:44Z: 45 check-runs, 43 completed, 0 failed; Test Core (1/8) and Test Core (2/8) still in_progress at that read. Every completed run is success or a path-filtered skipped, Lint & Repo Gates, TypeScript Type Check, Build Core, Governed Surface Queue Guard, Check Changeset and Dogfood Regression Gate among them. The landing pre-check re-reads them whole; this record does not claim "all green" while two shards run.
  • Should-fix, body only: PR body L158 "ids 1–14 contiguous in each" (hooks is 1–16).

④ Design judgment

From the seat of a customer agent loading the package: the English rewording keeps every rule and reason an agent acts on, and the trigger phrases it now gives ("done?", "active?", "how many" / "total" / "average", "completed task count") are the neutral forms of the same requests; eval cases 10 and 14 still require Chinese labels on a Chinese brief, so the labels-follow-the-request rule (rules/naming.md item 6) is tested without any Chinese in the prose. No duplicate, contradiction or hosted term was introduced; the round-1 fixes (backfill command, initialStates example, posture examples, os validate clause) are intact. No must-fix.

Implemented-by: claude/issue-31155-port-authoring-rules
Reviewed-by: session_012dn2AdARJtc4RgABPH7PHk

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk

ACCEPT · 2026-11-08T00:50Z · head 370ddbb1722d31bc2e9f0ed102a1f0fd51d1d03d · Tier H (governed skills/**) — awaiting a human approval

维护者速读

  • 这一轮改了什么:按 @os-zhuang 的意见「skills 对外发布的版本应该全部用英文」返工。SKILL.md 里的两个示例短语(是/否勾选、负责人)和 rules/relationships.md 的汇总字段段落,改成英文或不依赖语言的写法,教的判断不变。本 PR 改动的所有非评测 skills/** 文件,中文字符为 0(复审员自己扫过)。
  • 范围(账户所有者裁决「同意」):对外发布的 skill 正文只用英文;两项豁免——(a)skills/**/evals/*.json 里的评测提示词(它们测的就是「标签跟随用户的语言」,不会进入 agent 上下文);(b)objectstack-i18n 现有的中文示例数据,本 PR 不动。
  • 其它变化:合并了两次 main;第二次因 docs(skills): teach the hook body first in data-hooks.md, drop hook ctx.api methods that do not exist, guard nullable hook and formula predicates #31201 新增 hooks 用例 12–13 有冲突,本 PR 的三个 hooks 用例顺延为 14–16(objects 仍是 10–14)。英文措辞多了几个字节,两行体积上限按实测上调(SKILL.md 6660→6665,relationships.md 4118→4127),依据同上一轮(cloud#3659 A)。
  • 需要你做的:重新审批(受管面 skills/**,Tier H)。契约复审 PASS 评论 6715209241,Head-sha: 370ddbb1722d31bc2e9f0ed102a1f0fd51d1d03d。
  • 席位意见:建议合并。
  • 范围外记录:复审员发现 main 上另有 6 个对外发布的非 i18n 文件本来就带中文(automation、formula、ui、upgrade、objectui 的若干文件),与本 PR 无关;若要整个目录都只用英文,需另立卡,本席可以立。

席位核对

  • 形态: Part of #31155, 9 files (three-dot diff vs origin/main is exactly these), governed skills/** ⇒ Tier H: pm:awaiting-merge kept, review re-requested from GOVERNED_APPROVERS (os-zhuang) in this pass; the seat neither approves, arms nor merges.
  • Contract review: prior PASS 6711799180 on c92f2f54 → CHANGES_REQUESTED (language) → rework → Served-tier: CONTRACT_REVIEW_TIER delta PASS 6715209241 on this head (same reviewer; CJK scan, meaning preservation, eval ids, ratchet arithmetic, scope).
  • 门禁 check-runs on this head: 50 check-runs completed, every one success (33) or path-filtered skipped (17), none failed — incl. Test Core 1–8/8, Lint & Repo Gates, Governed Surface Queue Guard, Check Changeset, PR-body guards re-run after the body fix.
  • Ratchet: rows pinned AT the measurement (6665 / 4127 / 1747 / 2761) against origin/main bases; authority cloud#3659 A 6682024726 + record 6513306068; PR body table matches.
  • PR body: the reviewer's should-fix (Tests line still said "ids 1–14 contiguous in each") corrected by the seat via relay issue_patch, read-back identical, signed trailer last.
  • 落地条款: after an APPROVED review from GOVERNED_APPROVERS the seat runs the landing pre-check, clears pm:awaiting-merge, automerge_enable; or the maintainer merges by hand.

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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue 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.

3 participants