Repository navigation
docs(skills): objectstack-data carries the hosted build agent's metadata-authoring judgment (cloud#3659 A, port 1 of 3) - #31223
Conversation
…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>
|
repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk Contract-review-claim: session_012dn2AdARJtc4RgABPH7PHk · head 0fb4902 · 2026-11-07T18:23Z Governed face ( |
|
repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk Contract reviewServed-tier: 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 ① Derived judgmentsFaithfulness against
Misclassified or untrue sentences:
② Semver level
③ Boundary flagsToken-ratchet raises (three rows,
Merge state — MUST-FIX. GitHub reports the head Governed surface. Every Check-runs on the head (final read 2026-11-07T18:33Z): ④ Design judgmentJudged from the seat of a customer agent that loads the whole
Must-fix set for the next head: (1) rebase onto Implemented-by: VERDICT: FAIL |
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>
|
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 |
|
repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk Contract reviewServed-tier: 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 ① Derived judgmentsThe three must-fixes of the previous record, on this head:
The seat's added orders, on this head:
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 ② Semver levelUnchanged and correct: ③ Boundary flagsToken-ratchet rows (four, all pinned AT the measurement, headroom 0, read on the head and on the merge result with
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. Merge brought nothing else in. The merge commit's Governed surface. Check-runs on c92f2f5 (final read 2026-11-07T19:08Z): 46 check-runs, all ④ Design judgmentFrom the seat of a customer agent loading the whole Implemented-by: VERDICT: PASS |
|
repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk ACCEPT · 2026-11-07T19:11Z · head 维护者速读
席位核对
|
|
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 |
…rt-authoring-rules
… 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>
|
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 |
|
repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk Contract reviewServed-tier: 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 ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentFrom 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 ( Implemented-by: VERDICT: PASS |
|
repo:cloud#1 · os-bob · session_012dn2AdARJtc4RgABPH7PHk ACCEPT · 2026-11-08T00:50Z · head 维护者速读
席位核对
|
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
维护者速读
objectstack-dataskill(布尔字段给默认值不设必填、人员字段用user且默认可选、动态默认值是保存时生效、状态用 select 不建表、审批/流水不建对象、负责人就是平台owner_id、按需求选sharingModel、状态机要声明initialStates、汇总字段的限定词进filter、迟声明的汇总用os migrate summary-nulls回填、种子值可虚构不可畸形且os validate先拒、标签跟随用户语言),外加 8 条 eval 用例;完整的 43+11 条规则映射表见 issue 评论与下文。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。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.mdand the roll-up passage inrules/relationships.mdwere 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 inskills/**/evals/*.json(they test "labels follow the user's language" and never enter an agent's context); (b) the existingobjectstack-i18nChinese example data, untouched.objectstack-datagains 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 thesharingModelposture 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 }, neverrequired(18); a person on the record istype: 'user', optional unless asked (process-modeling); a dynamic default resolves on save, described as such (19d).SKILL.md§ Relationship Patterns — three rows: status is aselect, never a table (select-options); approvals / routing / audit trails are not objects (process-modeling); the owner is the platformowner_id,ownership: 'none'only for catalogs and junctions (16).SKILL.md§ Validation Patterns — astate_machinedeclaresinitialStateswhenever 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 — thefilterparagraph is rewritten: pick the function from the words, every qualifier goes infilter(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 byos migrate summary-nulls --apply(--recompute-undefined-on-empty OBJECT.FIELDfor one declared late), never by editing a child (15). Five example objects take the posture the SKILL.md paragraph teaches:public_read_writeonaccount,contact,invoiceand theproject_assignmentjunction,public_readon thecategorytable; the conditional-rulesinvoiceinSKILL.mdlikewise.rules/validation.md§ State Machine Validation — the canonical example declaresinitialStates: ['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", andos validate/os buildrefuse a malformed seed value first, at the record's field (19).objects-fields-relationships.jsoncases 10–14,hooks-security-seeds-datasources.jsoncases 14–16 (renumbered after the casesmainlanded, twice) — the equivalents of cloud'sboolean-never-required,label-languageandpeople-lookups-optionaltext 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/skillspatch.Same-file pay-downs came first: in
SKILL.mdtheunique-validation blockquote restatedrules/validation.md§ Uniqueness and is a one-line pointer now, and thesecret/userparentheticals in Field Type Selection restatedrules/field-types.mdrows 42–43 and 96 and are gone; inrules/relationships.mdtheengagementexample and the "aggregate only a subset" lead-in were restated by the keptprocurement_receiptexample, thefiltercode comment's second line is said by the paragraph, and the child-field half of thefiltersentence left the prose (it is enforce-or-remove row #31224 D); inrules/validation.mdthe "(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 onSKILL.md; bases areorigin/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."main→ head)skills/objectstack-data/SKILL.mdskills/objectstack-data/rules/relationships.mdskills/objectstack-data/references/seeds.mdskills/objectstack-data/rules/validation.mdBundle: 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/main007fdb1)Per edited file:
SKILL.md465 → 494 (+29);rules/relationships.md405 → 419 (+14);rules/validation.md328 → 329 (+1);rules/naming.md21 → 25 (+4);references/seeds.md163 → 175 (+12);evals/objects-fields-relationships.json173 → 263 (+90);evals/hooks-security-seeds-datasources.json135 → 165 (+30). Whole package, allSKILL.mdsummed: 4520 → 4549 (+29). Whole shipped tree underskills/: 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 「声明即强制」):
packages/specalready 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.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 underpackages/spec/src/.metadata_authoringcorpuschanges_proposedenvelopeauthoring-rules.test.ts"does not defer the rules that govern every turn" — stays in cloudset_active_packageauthoring-rules.test.tsversion-boundary describes — stay in cloudpropose_blueprintapply_editper requestui/view.zod.tsview-type enum:kanban,gallery,calendar,gantt) + STATED (objectstack-uiSKILL.md§ View Types rowsgallery,gantt)typeis the engine's vocabulary; a tool-named node =NO_EXECUTORos validate/os buildrefuses a flow nodetypeoutside the composed registry's node executors (automation/flow.zod.tsnodetypeis an open string by contract; the registry is the authority — ADR-0018). STATED: objectstack-automationSKILL.md§ Flow Node Types + § Valid-but-silently-wrong.test_flow/toggle_flowhalf → CLOUDauthoring-rules.test.tscorpus integrity — stays in cloudrules/list-views.md, beside the kanban section: distinct name encodes the kind, e.g.OBJECT.status_kanban; never retypeOBJECT.list). The tool-side refusal of an in-place kind flip → CLOUDkanban-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 textui/view.zod.tsKanbanConfigSchema.groupByFieldREQUIRED,gallery.coverField,gantt.startDateField/endDateField/titleField) + STATED (objectstack-uirules/list-views.mdkanban + gantt sections; objectstack-datarules/field-types.mdformularow: "virtual: neither aggregatable nor a dataset or cube dimension")dimensionsover a multi-value field (multiselect/checkboxes/tags/multiple: true) —ui/dashboard.zod.tscannot see the field map;os validateshould refuse itanalytics-inline-vs-dataset.jsonui eval already covers the stored-number halfdata/field.zod.tsfieldnameregex/^[a-z_][a-z0-9_]*$/;SelectOptionSchema.valueisSystemIdentifierSchema(refused at parse). STATED: objectstack-datarules/naming.mdRules tableauthoring-rules.test.tsrule 3b block — stays in cloud (the spec refusal is the regression)SKILL.md§ Field Type Selection;rules/field-types.md"When to Use" columnSKILL.md§ Schema evolution: drop / tighten =os migrate apply --allow-destructive)unservedAppsverify_buildactionmetadata, not a view;objectNamebinding; a write body must callctx.api…update;language: 'js';capabilities: ['api.write']; multi-step →type: 'flow'ui/action.zod.ts:objectNameregex; bodylanguage'expression' = pure formula vs 'js' = sandboxed;capabilities) + STATED (objectstack-uirules/actions.mdexamples carryobjectName,language: 'js',capabilities: ['api.write'],ctx.api.object(...))action, never a view; a body that only RETURNS the new values writes nothing — callctx.api.object(OBJ).updatewithapi.write"triggerTypeone string;record-after-writefor create-or-update;previousnull on the create leg; never an array of trigger types; bare CEL condition; option VALUE never label;fields/filterkeys; norecordId; CEL value envelopes, no{…}tokens;isoDate/current_userenvelopes; edges connect everythingautomation/flow.zod.tsrefuses top-leveltriggerType/triggerwith the start-node prescription (lines ~1086–1111); node configs arestrictObject(an inventedrecordId/fieldValues/conditionskey is refused at parse);automation/save-notice-placement.tsnotices an arraytriggerType;automation/flow-template-token.tsrefuses{…}tokens at save. STATED: objectstack-automationSKILL.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-formulaSKILL.md§ 5 (previousisnullon insert)flow.zod.tsrefuses 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 optionvalue— map it in the condition AND everyfieldsentry") is one clause in § Valid-but-silently-wrong if the existing line proves thinflow-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 texttimeRelativeon the start node;offsetDaysvswithinDays;filterINSIDE the descriptor; daily cadence only; write the zone;runAs: 'system'; never a date-equality condition; clock-arming honestyautomation/time-relative-trigger.zod.ts(object + dateField required, exactly one windowing mode,schedule/runAsmisplacement prescriptions). STATED: objectstack-automationreferences/examples-flows.md§ Time-relative triggers (offsetDays T-60/30/7 vs withinDays, daily default, "Date EQUALITY never matches … build warnsflow-date-equality-filter");SKILL.md§ Failure routing &runAs(arunAs: 'system'sweep). CLOUD: the clock-arming warnings (CLOCK_TRIGGER_*)filterbesidetimeRelativeon the start config (read by nothing) — refuse in the start node config; ② aschedulebesidetimeRelativefiner or coarser than daily — refuse (time-relative-trigger.zod.tsonly documents the default); ③ atimeRelative/scheduleflow withrunAs: 'user'— refuse at the flow level (today only.describe()prose, 122–125). PORT → objectstack-automation, PR 2: write the user's wall-clock hour withtimezone(schedule: { type: 'cron', expression: '0 9 * * *', timezone: 'Asia/Shanghai' }), never a silent UTC conversion — specdescribegap:timezoneis not described on the schedule descriptor (automation/execution.zod.tsnames 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 14approvers: [{ type, value }], approver types,behavior; out-edges labelledapprove/reject;managerresolves only when the directory is filled; a system write-back needsrunAs: 'system'downstreamautomation/approval.zod.ts(ApproverType,ORG_MEMBERSHIP_LEVELS,ApprovalDecision = approve/reject, themanager.describe()+os lint approval-approvers-may-resolve-empty). STATED: objectstack-automationreferences/state-machines-and-approvals.md(approver table incl.org_membership_level"matches nobody" warning,behaviorrow, labelled edges in the example)runAs: 'system'summarynever 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 summarydata/field.zod.ts—type: 'summary'withoutsummaryOperationsparses and is runtime-dead (reads 0 everywhere); refuse it (today onlyfunctionwithoutfieldis refused,refuseSummaryWithoutField). E/R:summaryOperations.filterkeys 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: blueprintconditions/rollupsNeedingOperations. STATED:rules/relationships.md§ Roll-up Summaries shape +relationshipFieldauto-detect;references/lint-rules.mdrollup/missing-summaryrules/relationships.md§ Roll-up Summaries — "Pick the function from the words, and put every qualifier infilter" (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 isos migrate summary-nulls --apply,--recompute-undefined-on-empty OBJECT.FIELDfor a summary declared late)objects-fields-relationships.jsoncase 12 (must_containtype: 'summary',function: 'count',filter: { status: 'completed' },type: 'formula'; must_not_contain the label已完成in the filter)owner_idalready exists — never a hand-rolled 负责人 lookup;ownership: 'user'is the default;ownership: 'none'for catalogs / junctionsdata/object.zod.tsownershipJSDoc (user default,owner_idinjection,org/none"catalog / junction tables")SKILL.md§ Relationship Patterns row "Record owner"owner_id,sharingModel: 'private'; must_not_contain a lookup tosys_user/user,ownership: 'user')sharingModeldefaulted; override only for a deliberate posture;controlled_by_parentconstraintsdata/controlled-by-parent-master.ts(exactly one requiredmaster_detail; refused at parse). STATED:SKILL.md§ Object Definition —sharingModelrequired at publish (security-owd-unset), the four-value tableSKILL.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 fromownership)hooks-security-seeds-datasources.jsoncase 16 (must_containsharingModel: 'private'and'public_read'; must_not_containpublic_read_write)state_machinealso declaresinitialStatesdata/validation.zod.tsinitialStates.describe()(the mechanic, verbatim). STATED:rules/validation.mdtypes table rowSKILL.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 declaresinitialStates: ['draft']type: 'state_machine',initialStates: ['draft'])required;defaultValue: false; "must be accepted" is a validation rule;storage.notNulland backfilldata/field.zod.ts—required: trueon aboolean/toggleparses, can never fire, and a form that reads it as truthy refuses the unchecked state; refuse it at parse with thedefaultValueprescription. STATED:SKILL.md§ Schema evolution +field.zod.tsrequired/storage.notNull.describe()(ADR-0113)SKILL.md§ Field Type Selection bullet (flag ={ type: 'boolean', defaultValue: false }, neverrequired; "must be accepted" =validations[]; the default lands imported rows on a realfalse)boolean-never-required.test.ts(2 cases, both corpora) → eval case 10 (must_containtype: 'boolean',defaultValue: false; must_not_containrequired: true); the cloud test stays pointing at the moved textcreate_seed/apply_blueprintrepair,seedRepairs)references/seeds.md§ Seed best practices — "Fictional is fine; malformed is not", with the authoring-time gate named (os validate/os buildrefuse a malformed value first,packages/cli/src/utils/seed-record-values.ts)hooks-security-seeds-datasources.jsoncase 14 (must_containdefineSeed,+86 138,@example.com; must_not_contain****,'N/A')apply_blueprintbuilt nothingdrafted/published)data/field.zod.tsdefaultValue.describe()("applied on INSERT")SKILL.md§ Field Type Selection bullet — describe it as save-time; the form's pre-display is a client capability you cannot promisedefaultValue: 'current_user'; must_not_contain会自动预填)rules/list-views.mdbeside theUncategorizednote, 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 textrules/naming.mdCritical Rules item 6label-language.test.ts(2 cases, both corpora) → eval case 14 (must_containlabel: '供应商',label: '公司名称'; must_not_contain English labels) and case 10 (label: '是否完成'); the cloud test stays pointing at the moved textsolution_designcorpusauthoring-rules.test.tsinline pins — stay in cloudaggregate/measure; calendarstartDateFieldaggregate/measurevocabulary is the blueprint schema's —ui/dashboard.zod.tsremovedaggregate/valueFieldfrom the authorable spec) + SPEC (ui/view.zod.tscalendarstartDateField) + STATED (objectstack-uievals/analytics-inline-vs-dataset.json)label-language.test.tscase 1 → eval case 14apply_blueprintauto-seeds;seededLive; real-data import; attached spreadsheet briefselecton the main object, never a table; every select ships non-emptyoptions; stage-field optionkinddata/field.zod.tsoptions— aselect/radiowith neitheroptionsnor apicklistis refused at parse;SelectOption.kind.describe()+data/object.zod.tsrefuses astageFieldoption without akind. STATED:rules/field-types.mdSelection tableSKILL.md§ Relationship Patterns row "Record status / lifecycle"order_statustable)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; alookupwithoutreferenceconditions,rollupsNeedingOperations); 15 / 18 as above; SPEC:data/field.zod.tsrelationshipreferenceREQUIRED onlookup/master_detail(refused at parse); STATED:rules/field-types.mduserrow (person picker,sys_user), evalobjects-fields-relationships.jsoncase 2 (type: 'user', never a lookup to auserobject)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 }, areferencetosys_user/user);boolean-never-required.test.tscase 1 → eval case 10assumptionstargetApp,iterate_or_newCoverage the private rules carry, and where its equivalent is
skills/__tests__/boolean-never-required.test.ts,label-language.test.ts,people-lookups-optional.test.tspin 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.tspins 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.tspins 19f and its reachability from add-view-not-convert — PR 3 (objectstack-ui).skills/__tests__/data-explorer-answer-shape.test.tspinsdata-explorer-skill.ts, which is outside this card's corpus (anask-side skill).__tests__/authoring-rules.test.tspins the corpus INTEGRITY (byte-for-byte text, tiers, index lines, version boundary) — delivery machinery, stays in cloud.scripts/dev-local/golden-journey.mjsdrives 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. Theevals/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)
data/field.zod.ts:type: 'summary'withoutsummaryOperationsparses and is runtime-dead (rule 15).data/field.zod.ts:required: trueon aboolean/toggleparses and can never fire; a truthy-reading form turns it into "must be true" (rule 18).automation/flow.zod.ts: an action node reachable from no edge parses and never runs (rule 14, "edges connect everything").automation/builtin-node-config.zod.tsstart node: afilterbesidetimeRelativeis read by nothing (rule 14b) — verify the start config refuses the sibling key; if it does, this row is SPEC.automation/time-relative-trigger.zod.ts/ the startschedule: a cadence finer or coarser than daily besidetimeRelativere-fires or skips thresholds (rule 14b).automation/flow.zod.ts: atimeRelative/scheduleflow with the defaultrunAs: 'user'has no identity and its data steps are refused at run time (rule 14b) — today.describe()prose only.data/field.zod.ts/os validate:summaryOperations.filterkeys and select values judged against the CHILD object; a summary whose child has no relationship back (rule 15).ui/dashboard.zod.ts/os validate: adimensionsentry over a multi-value field is no chart axis (rule 2) — verify.timezonekey (rule 14b) — described only on run state inautomation/execution.zod.ts.Conflicts with spec on
mainNone found: every ported sentence agrees with
packages/specat 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 widgetaggregate/measure(spec removedaggregate/valueFieldfrom the authorable dashboard surface).Tests
python3 -c "json.load"over both files; ids contiguous and unique — objects 1–14, hooks 1–16 — mine aftermain'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).Acceptance notes
origin/mainmerged (merge commit 9bed005, no rebase); the eval conflicts resolved by renumbering mine aftermain's (and again at 8fdef4f whenmainlanded hooks cases 12–13 under 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);rules/relationships.mdre-measured and re-pinned againstmain's re-locked 15489 bytes; the "No backfill" paragraph and eval 12 rewritten aroundos migrate summary-nulls; the class-1initialStatesmechanic sentence dropped and the canonical example giveninitialStates: ['draft']; the child-field half of thefiltersentence withdrawn (enforce-or-remove, 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); theos validate/os buildclause inreferences/seeds.md; the sharing-posture examples aligned; this table's numbers corrected.projectinrules/relationships.mdstaysprivatebecausemain's new eval case 8 pinsprojectasprivate;employeestaysprivateas personal data — both are the posture paragraph's own cases, not habit.summaryOperations.conditions, dashboardaggregate/measure).timezone, 14c system write-back) and objectstack-ui (add-view-not-convert, 13 action-not-view + inert body, 19f empty board disclosure, auto-surfaced "never downgrade a named view kind").mainwhile rebuilding: after mergingmaininto a worktree installed before the merge,@objectstack/lintdid not build (Cannot find module '@objectstack/metadata-core') untilpnpm installwas re-run — the AGENTS.md §9 refresh, not a defect; noted so the next reader does not file it.Verification
Local subset on head 901533a (merge of
origin/main7c523aa at 2d6a84d, then one commit); the current head 370ddbb adds only a GitHub-reported-conflict merge oforigin/main007fdb1 (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 familynode scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived for this diff — 64 families; exit codes captured before any pipe;--ranreconciliation:✓ 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 withnohup+tail --pid).pnpm check:dual-build-cjs-loads:: exit 3 — PREREQUISITE NOT MET, it loads every package'sdist/(a fullpnpm build, which CI owns). Read from the PR'sLint & Repo Gatescheck-run.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 arein_progresson 370ddbb.Not run, with the reason:
test:repo(CI'sTest Core; the diff changes no test file). Nodogfoodbattery: no!in the title and no(narrowing)arm. No ablation: no tested runtime behaviour changed.Generated by Claude Code