Skip to content

docs(skills): objectstack-data teaches the paired .custom package's whole arrangement (fieldGroups, relatedLists) - #36568

Merged
os-zhuang merged 2 commits into
mainfrom
claude/issue-36541-data-custom-arrangement
Nov 23, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/issue-36541-data-custom-arrangement

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #36541

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用 AI 写配置的客户,想给已安装软件包里的对象重排记录页(换字段分组、调页签顺序、隐藏页签)时,AI 现在知道这份排布要写在该软件包配套的环境定制包里;以前技能没讲这件事,AI 要么不会用,要么写进别的扩展包后被拒收。
  • 属于「记录页标签与分组」专题:环境管理员整页排布的能力上一步已经上线,这一步把它教给 AI 作者,并补一道考题。
  • 如果教错,AI 会把排布写到会被拒收的位置,保存或校验时当场报错并给出改法,数据不受影响;撤回这次改动,技能文字就回到原样。
  • 审批这次对外技能文字的改动(技能包属于受管范围,需要你来合入)。

Fix round 1

Head 90a673de67, one commit on top of 0db54351e8, answering the contract review of that head (record 7087999230).

  • S1, the refused writer is named by what the judge tests. The paragraph's last sentence read "In any other package both keys are refused at those doors". That is false for a .custom package that is not the object's pair: judgeExtensionArrangement returns no refusal when isCustomizationPackage(packageId) holds (packages/metadata-protocol/src/protocol-extension-arrangement.ts:94; the predicate is the id's .custom suffix over a valid base, packages/spec/src/kernel/customization-package.ts:119), and the key descriptions say such a package "is not refused at those doors: the registry merge does not apply what it writes here ... and the boot log names it" (CUSTOM_ARRANGEMENT_WRITER, packages/spec/src/data/object.zod.ts:6832). Both files read again on main at abe95a950d: unchanged since d463c46f. The sentence now reads "Outside a .custom package both keys are refused at those doors: use place." The changeset's first bullet carries the same words.
  • Bytes. The new wording is 7 bytes longer and the file had exactly 7 priced bytes of headroom, so nothing more is cut: 26,853 to 26,860 bytes, 6,709 to 6,710 tokens, ceiling 6,710 unchanged.
  • N1, case 27 asserts place:. The token place also matched the word "replaces", so an answer that never said what the add-on package writes could pass. It is place: now, the token case 26 uses; the reference answer already contains place: [. Regraded below.
  • N2 is left as it is. No byte remains after S1, and the review ties the clause to bytes being left.

What changes

One paragraph in skills/objectstack-data/SKILL.md, § Object Extension Model (lines 386 to 390 at head 90a673de67), inside the paragraph about an object an installed package ships, right after the sentence that lists the doors of the __c rule:

Only the pair's extension may also write fieldGroups and relatedLists, shaped as on an object. A written key replaces that arrangement whole (the owner's and every place): an unlisted field shows after the last group, an unnamed tab still shows after the listed ones, and { list: 'crm_note', hidden: true } hides a tab. Outside a .custom package both keys are refused at those doors: use place.

"Those doors" are the ones the sentence before it names: save, publish and install, os validate and os build.

What it teaches is what is on main (PR #36517, merge commit 45ef94ef; ADR-0146 D2, D3 and D10), read at d463c46f:

Sentence Where it is on main
The two keys, in an object's shapes packages/spec/src/data/object.zod.ts:7070 (fieldGroups, an array of the object's group schema) and :7082 (relatedLists); the key list is CUSTOM_ARRANGEMENT_KEYS, packages/spec/src/data/field-customization.ts:124
{ list, hidden: true } packages/spec/src/data/object.zod.ts:6703: hidden is a boolean on the extension's entry only; an object's own entry refuses it by name (:1347)
A written key replaces whole; an unlisted field after the last group; an unnamed tab still shows after the listed ones the two key descriptions, packages/spec/src/data/object.zod.ts:6837 and :6863; the fold is applyCustomArrangement, packages/objectql/src/registry-custom-arrangement.ts:144
Only the pair writes them; outside a .custom package they are refused and the writer is told to use place one judge, judgeExtensionArrangement, packages/metadata-protocol/src/protocol-extension-arrangement.ts:91. Its answer is VALIDATION_ERROR / 400 (:116); the message, measured on this PR's eval shape: "relatedLists in the extension of object 'crm_account' in package 'acme_contracts': only the object extension of a base's paired .custom package declares an object's whole arrangement (ADR-0146 D10). Remove the key and place what this package brings with place, e.g. place: [{ list: 'contract', after: 'opportunity' }]."
The doors save packages/metadata-protocol/src/protocol-save.ts:1390; publish protocol-history-and-publish.ts:1062; restore protocol-authoring-gate.ts:129 (all three through objectExtensionItemRefusal, protocol-object-extension-item.ts:257); os validate packages/cli/src/commands/validate.ts:895; os build packages/cli/src/commands/compile.ts:948; install packages/cloud-connection/src/marketplace-install-local-plugin.ts:3192 (VALIDATION_ERROR / 422, one row per key in details.refusals)

Paid for in the same file; the token ceiling is not raised. The file had 0 tokens of headroom (6,710 of 6,710). The paragraph is 407 bytes (400 before fix round 1); five restatements are cut, 405 bytes, and the content of each stays in the bundle. The remaining 2 bytes come out of the 2 priced bytes the file had under its ceiling:

Cut from SKILL.md Bytes Where the content stays
§ Validation Patterns, the note that on insert an omitted optional field reads as null in a predicate 240 rules/validation.md lines 80 to 83 (the same note) and line 17 (a script rule judges the merged record: prior row plus this write)
§ Index Patterns, "unique defaults to false; omit it when that is what you mean." 66 rules/indexing.md line 11
Quick Reference, the lifecycle row's "append-only objects must declare one" 42 the lifecycle row of the optional-properties table in the same file ("Required for append-only, high-write-rate objects") and rules/lifecycle.md line 14
The sharingModel heading's "(ADR-0090 D4; legacy aliases removed)" 38 references/lint-rules.md line 23 (security-owd-alias: a legacy spelling is an error, ADR-0090 D4)
The pluralLabel row's (e.g., "Accounts") 19 the object JSON example in the same file ("pluralLabel": "Accounts")

The two readings (tokens in the ratchet's convention, ceil(utf8 bytes / 4), the release-stamp line not priced):

Before (d463c46f) After (90a673de67)
skills/objectstack-data/SKILL.md 473 lines · 26,858 bytes · 6,710 tokens (ceiling 6,710) 472 lines · 26,860 bytes · 6,710 tokens (ceiling 6,710, unchanged)
All 14 skills/*/SKILL.md 4,951 lines · 261,175 bytes 4,950 lines · 261,177 bytes
Ratcheted (authored) tokens, whole bundle 197,573 197,573
Eval fixtures (measured, not ratcheted) 81,141 81,720
Bundle total 293,321 293,900

One eval case, skills/objectstack-data/evals/objects-fields-relationships.json case 27: an add-on package put the tab arrangement (two tabs swapped, one hidden) on its own extension of an installed object and os validate refused it. The answer moves the arrangement to the object extension of the base's paired .custom package and names place as what the add-on package writes. must_contain: hotcrm.custom, defineObjectExtension, extend: 'crm_account', relatedLists, hidden: true, place:.

Two riders in the eval directory:

  • Case 26 (the place case) said in its reference answer that "an extension has neither key". That stopped being true when the two keys shipped, and the new paragraph says the opposite, so the parenthesis now reads: only the object extension of HotCRM's paired hotcrm.custom package writes those keys; here they are refused. Its prompt and assertions are unchanged, so its case hash is unchanged.
  • evals/README.md lists what the file covers and gains the new case's topic.

Changeset: .changeset/36541-skills-custom-arrangement.md, @objectstack/skills patch.

Tests

The grader and gate readings are at head 90a673de67, tree clean. The door suites were run at 0db54351e8; fix round 1 touches no file they read.

The eval file's reference answers under its own grader

gradeAnswer (packages/qa/scenarios/src/skill-evals/grade.ts) over each case's expected_output, cases parsed by the runner's own parseEvalFile. No model round was run.

Tree Reading
d463c46f (control) 26 cases parsed, 0 refusals; reference answers PASS 26/26
0db54351e8 (the head reviewed before) 27 cases parsed, 0 refusals; reference answers PASS 27/27; case 26 PASS; case 27 PASS
90a673de67 27 cases parsed, 0 refusals; reference answers PASS 27/27; case 26 PASS; case 27 PASS

Named answers for case 27, each graded under the assertions of both heads and each as expected:

Answer At 0db54351e8 (place) At 90a673de67 (place:)
the reference answer PASS PASS
a short answer: the pair, the arrangement, place: [...] for the add-on package PASS PASS
the pair and the arrangement, "the key replaces the tab list whole", nothing about what the add-on package writes (the N1 control) PASS FAIL, missing=["place:"]
the arrangement kept on the add-on package, the pair never named FAIL, missing=["hotcrm.custom"] FAIL, missing=["hotcrm.custom"]
the pair named, the tab hidden by leaving it out (an object's own rule) FAIL, missing=["hidden: true"] FAIL, missing=["hidden: true"]

At 0db54351e8 two more named answers were graded as expected: the object redeclared with an overrides declaration (FAIL, forbidden=["name: 'crm_account'","overrides:"]), and the pair named with nothing said about the add-on package (FAIL, missing=["place"]).

The reference answer's extension, { extend: 'crm_account', relatedLists: ['crm_opportunity', 'crm_contact', { list: 'crm_lead', hidden: true }] }, parses under ObjectExtensionSchema; judgeExtensionArrangement answers 1 refusal for package acme_contracts (path objectExtensions[0].relatedLists) and 0 for hotcrm.custom.

node ui/scripts/check-skill-eval-tokens.mjs: exit 0, "Every must_contain token is taught by its own skill bundle."

Which doors refuse: the suites of the merged protocol, run on this head

The dispatch asked which doors actually refuse a writer that is not a .custom package. Each door's suite was run, at 0db54351e8, after building its dependency closure (turbo run build --filter='@objectstack/cli^...', 64 tasks, exit 0), each run under the shared verification lock:

Door Suite Reading
The judge, and the gate the save, publish and restore doors ask packages/metadata-protocol/src/protocol-extension-arrangement.test.ts exit 0, Tests 13 passed (13)
Save, through the real protocol and engine packages/objectql/src/protocol-custom-arrangement.test.ts exit 0, Tests 6 passed (6)
os validate and os build, both commands in process packages/cli/test/validate-build-extension-arrangement.test.ts, packages/cli/src/utils/extension-arrangement.test.ts exit 0, Test Files 2 passed (2), Tests 10 passed (10)
Install packages/cloud-connection/src/marketplace-install-local-extension-arrangement.test.ts exit 0, Tests 5 passed (5)
What a written key does (replaces whole, the unlisted field, the unnamed tab, the hidden tab) packages/objectql/src/registry-custom-arrangement.test.ts, packages/spec/src/data/object-extension-arrangement.test.ts exit 0, Tests 33 passed (33) and Tests 53 passed (53)

The publish and restore doors are measured at the gate they call (objectExtensionItemRefusal); that each of them calls it is read from the call sites cited above, not from a run through the door.

Gates

node scripts/pm/dispatch-gates.mjs --commands at 90a673de67 derives the same 50 commands as at 0db54351e8. All 50 were run again on this head, each exit code recorded before any pipe; --ran answers: "50 derived famil(ies) accounted for — 49 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)", exit 0.

  • 49 exit 0. Among them: node scripts/check-skills-token-ratchet.mjs ("60 authored bundle file(s) within their ceilings"; the data row reads 6710 / 6710 (+0)), check:skill-docs, check:skill-served-sections, check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:doc-authoring, check:doc-formula-expressions, check:role-word, check:nul-bytes, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration.
  • NOT MEASURED: pnpm check:dual-build-cjs-loads, exit 3. It reads the built output of every package and asks for a whole-workspace build; this change touches no package source, and the full build was not made for it. CI reads it.
  • Outside the derived list, also run on this head: check:skill-refs exit 0 ("10 generated files in sync"), check:skill-examples exit 0 ("349 prose examples type-check across 3 surface(s)"), node ui/scripts/check-skill-eval-tokens.mjs exit 0.
  • The gates that read built output (check:dts-closure, check:published-files, check:sourcemap-no-sources-content, check:driver-memory-census, check:lean-entry-closure) answered exit 0 on a tree where the spec, lint, objectql, metadata-protocol and client-react closures were built, not the whole workspace; their full reading is CI's.

Acceptance notes

  1. Overlap. node scripts/pm/overlap-check.mjs at 90a673de67: origin/main (abe95a950d) merges cleanly; chore: version packages #35129 and docs(skills): objectstack-automation teaches that a clearable state lists '' among its targets #36559 merge cleanly (docs(skills): objectstack-automation teaches that a clearable state lists '' among its targets #36559 edits case 3 of the same eval file); draft docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158 conflicts in skills/objectstack-data/SKILL.md. That one is known to the seat and ruled: this card does not wait, and whichever of the two lands second replays its text.
  2. main moved after the branch was cut, d463c46f to abe95a950d. It merges cleanly and the branch was not merged again.
  3. Both mechanism assumptions of the dispatch hold. The refusal fires at save, publish and install and at os validate / os build, the doors the __c sentence already lists, so the paragraph says "at those doors". { list, hidden: true } is the schema's spelling.
  4. What the paragraph leaves to the refusal texts and the docs page (content/docs/data-modeling/object-extensions.mdx, "Arranging the whole record page"), to stay inside the ratchet: a place entry beside the key that replaces it is refused at parse with its own prescription; a built-in tab is written as its bare name and cannot be hidden; a .custom package that is not the object's pair is not refused, it is skipped and named in the boot log (since fix round 1 the paragraph no longer says the opposite; it still does not teach the skip); a list the owner hid by leaving it out stays hidden until the arrangement names it; a field is kept off the page by a group whose visibleWhen is false.
  5. Case 27's prompt carries two of its own must_contain tokens (relatedLists, hidden: true), because the colleague's refused extension is quoted in it. The tokens the prompt does not hand over are hotcrm.custom, defineObjectExtension, extend: 'crm_account' and place:. With place: an answer that names place only in prose, without an entry, does not pass; case 26 has the same property.
  6. evals/README.md is outside the file surface the claim lists. It is the index of the eval file and the same-file PR before this one updated it with its case, so it is updated here too.
  7. The ceiling row is untouched at 6,710 and the file sits exactly on it, with 0 tokens of headroom, as it did on main.

Verification

Read first:

  1. skills/objectstack-data/SKILL.md lines 386 to 390, the last sentence first (fix round 1), beside CUSTOM_ARRANGEMENT_WRITER and the two key descriptions in packages/spec/src/data/object.zod.ts (lines 6828 to 6888). The risk is a sentence that says more than the runtime does.
  2. The five deletions in the same diff, each against the home named in the table above. The riskiest is the insert-null note: it leaves the always-loaded file and stays in rules/validation.md.
  3. Case 27, and the one changed parenthesis of case 26, in skills/objectstack-data/evals/objects-fields-relationships.json.

Two-minute check: node scripts/check-skills-token-ratchet.mjs. Expected: the data row reads 6710 / 6710 (+0) and the last line reads "60 authored bundle file(s) within their ceilings".

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmPTDM2MxHR8cvoMVUX

…hole arrangement (fieldGroups, relatedLists)

The object-extension section says only the pair's extension may write
fieldGroups and relatedLists, that a written key replaces the arrangement
whole, that { list, hidden: true } hides a tab, and that any other package
is refused at the same doors as a __c field and told to use place. Paid for
in the same file by five restatement cuts; the token ceiling is unchanged.
One eval case added; the place case no longer says an extension has neither key.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmPTDM2MxHR8cvoMVUX
@github-actions github-actions Bot added size/s 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 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmPTDM2MxHR8cvoMVUX

席位核对

ACCEPT — PR #36568 @ 0db54351e8e6ed14e0b367b9663eeb8774e6deaa · card #36541 · L1 by area s2-E · 2026-11-22T23:55Z

  • Shape (l1-face --pr 36568, CLEAN): draft, base main, first line Fixes #36541 (the card's two deliverables, one paragraph and one eval case, are both here, so Fixes is right); no other card bound; Clause-②: no · Metadata-protocol: none (teaching text for a protocol PR feat(spec): the paired .custom package declares an installed object's field-group and tab arrangement #36517 already shipped); one non-empty changeset; checks at this head 28 success · 16 expected skip · 0 failed · 0 pending (Lint & Repo Gates and TypeScript Type Check success).
  • Taught semantics checked against main by the seat area: packages/objectql/src/registry-custom-arrangement.ts:20-45 — a field no group lists shows after the last group; a tab the arrangement does not name is NOT hidden (carried after the listed ones, before a trailing approvals / activity run); { list, hidden: true } hides; matching cases in registry-custom-arrangement.test.ts:157, :237, :258. The paragraph and eval case 27 say exactly this. Door list ("refused at those doors", i.e. save, publish, install, os validate / os build) is backed by the dev's runs of the merged door suites (metadata-protocol, objectql, cli, cloud-connection) in report 7087735893.
  • Cuts (ceiling 6710 not raised; 6710 → 6709 tokens): five restatements, each with a surviving home — the lifecycle bullet's "append-only objects must declare one" still stands in the same file's lifecycle property row ("Required for append-only, high-write-rate objects", line 105 on main); the others in rules/validation.md, rules/indexing.md, references/lint-rules.md and the object JSON example, as the PR body lists.
  • Eval: case 27 added (accepted .custom arrangement; non-.custom writer refused, told to use place); case 26's reference answer corrected where it said "an extension has neither key", now false after feat(spec): the paired .custom package declares an installed object's field-group and tab arrangement #36517 (prompt and assertions unchanged). Reference answers graded by gradeAnswer: 27/27 PASS at head, 26/26 at base.
  • Changeset .changeset/36541-skills-custom-arrangement.md read sentence by sentence: @objectstack/skills patch; each bullet matches the diff.
  • Accepted deviations: skills/objectstack-data/evals/README.md (one clause indexing case 27) was outside the claimed surface — the claim is amended in 7087768569; ceiling row left at 6710 with the file at 6709 (lowering it edits the ratchet script, outside the surface); model-free commit trailers.
  • Overlap: draft docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158 rewrites the same SKILL.md; per the seat's ruling for docs(skills): teach an object extension's place; another package's child list still shows on a declared tab list #36527 this PR does not wait, whichever lands second replays its text.
  • Tests: text and eval fixture only, no tested behaviour, no ablation owed. dispatch-gates --ran 50 derived, 49 run, 1 NOT MEASURED (dual-build-cjs-loads, exit 3) — CI green at this head.
  • Out of scope: none. Security: none.
  • Landing: governed skills/** ⇒ Tier H. Owes L2 at CONTRACT_REVIEW_TIER (requested in the l2-review#4 thread), then the seat hands to the approver. ⛔ Not ready, not queued by this area.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih

Contract-review-claim: session_01ADHkmT4eA4YqtxfiPyLPih · head 0db5435 · 2026-11-22T23:56Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0db54351e8e6ed14e0b367b9663eeb8774e6deaa
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/README.md, skills/objectstack-data/evals/objects-fields-relationships.json + none
Security-touching: yes

PR #36568 (card #36541), net diff against merge-base d463c46f: 4 files, +44 / -12 (the three hits files and one changeset). No implementing file is in the diff; the protocol it teaches (PR #36517, 45ef94ef) was read on main at 3b589215, never reviewed. Check-runs on the head: 44 total, 28 success, 16 skipped, 0 failed, 0 pending (among them Lint and Repo Gates, Lint docs and code guards, TypeScript Type Check, Test Core, Check Changeset, Governed Surface Queue Guard, PR-body guards).

① Derived judgments

  • Accept-set: unchanged. The diff carries no schema, validator, gate or runtime file; no input that was accepted is refused and none that was refused is accepted. Right.
  • Public surface: the published @objectstack/skills bundle gains one paragraph in objectstack-data § Object Extension Model, loses five restatements in the same always-loaded file, gains eval case 27, and has case 26's reference answer edited in one parenthesis. Right as a surface change; one sentence of the new paragraph is wrong at its edge (S1 below).
  • Metadata-protocol: none: right. The protocol was added by PR feat(spec): the paired .custom package declares an installed object's field-group and tab arrangement #36517; this PR teaches it.
  • Token ratchet: ceiling row not raised (the file is paid for by same-file cuts); the gate's verdict is the green lint lanes on this head. Right.
  • Security-touching reads yes, and it is meant, on the letter of the arm's rule and for one hunk only: the hunk at SKILL.md line 71 edits the heading of the sharingModel (org-wide default record visibility) table and removes the words "(ADR-0090 D4; legacy aliases removed)" from the always-loaded file. That hunk sits in sharing teaching and takes a sharing statement out of the entry file (it stays in references/lint-rules.md, security-owd-alias). The new arrangement paragraph, { list, hidden: true } and both eval cases are presentation only and teach no permission, sharing or credential behaviour; had the PR been those hunks alone the line would read no. The adopting seat decides the security label on that basis.

② Semver level

.changeset/36541-skills-custom-arrangement.md: @objectstack/skills patch. Matches what the diff publishes (skill prose and an eval fixture, no accept-set change, no API). Check Changeset is green on the head.

Clause-②: no — agreed. Nothing in the diff narrows what the platform accepts; the PR body and the changeset both carry the line and they agree.

The changeset is not under ④, but its first bullet repeats the sentence S1 names ("In any other package both keys are refused ..."); the fix of S1 should carry the same wording there.

③ Boundary flags

  • open_questions: empty in report 7087735893. Nothing to answer.
  • Deviation, evals/README.md outside the claimed surface: answered by claim amendment 7087768569; the clause is one index line for case 27 and is accurate. Accepted.
  • Deviation, case 26's reference answer edited: required, the old parenthesis ("an extension has neither key") is false on main since 45ef94ef. Prompt and assertions unchanged. Accepted.
  • Deviation, ceiling row left at 6710 with the file below it: accepted; lowering it edits the ratchet script, outside this card.
  • Deviation, git fetch --deepen moved the shared origin/main ref, and several gates were read locally on a partial build: no effect on the head; the check-runs are the verdicts.
  • Overlap with draft docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158 in skills/objectstack-data/SKILL.md: ruled by the seat for docs(skills): teach an object extension's place; another package's child list still shows on a declared tab list #36527 (whichever lands second replays its text). Not a finding here; the replay must keep the S1 wording once fixed.
  • PR body acceptance note 4 says the paragraph leaves "a .custom package that is not the object's pair is not refused, it is skipped" to the refusal texts and the docs page. The paragraph does not merely leave it out; it states the opposite. See S1.
  • SQL push-down (Prime Directive 5): no code, no query, no id materialisation in the diff. Nothing to flag.

④ Design judgment

skills/objectstack-data/SKILL.md — the new paragraph, sentence by sentence against main:

  • "Only the pair's extension may also write fieldGroups and relatedLists, shaped as on an object." Holds. ObjectExtensionSchema.fieldGroups is an array of the object's group schema and relatedLists the object's entry plus hidden (packages/spec/src/data/object.zod.ts, CUSTOM_ARRANGEMENT_WRITER and the two key descriptions); the fold serves only the object's own pairs (applyCustomArrangement, packages/objectql/src/registry-custom-arrangement.ts, pairs.includes(packageId)). A per-package pair of an earlier version, served second, is still "a pair"; the sentence is not false for it.
  • "A written key replaces that arrangement whole (the owner's and every place)". Holds: the fold applies the key last, after applyExtensionPlacements, and merges nothing entry by entry.
  • "an unlisted field shows after the last group". Holds (the trailing bucket; a field of the owner or another extension loses a group the arrangement replaced).
  • "an unnamed tab still shows after the listed ones". Holds for both kinds the brief asks about, on the word "still": a tab the owner's declared list showed and the arrangement does not name is carried (carried, placed after the listed entries); a list the owner hid by leaving it out was never a tab, is not carried, and stays hidden (unlisted: 'hidden', deriveRelatedLists.ts lines 603 to 607) until the arrangement names it. The sentence does not promise that list reappears. See N2 for what it leaves unsaid.
  • "{ list: 'crm_note', hidden: true } hides a tab". Holds (hidden on the extension entry only; relatedListEntryHidden in the fold; the served _relatedListsArrangement.hidden).
  • "In any other package both keys are refused at those doors: use place." Wrong at its edge, S1.
  • The doors ("those doors" is save, publish and install, os validate / os build, from the sentence before): each read at its call site on main: save protocol-save.ts:1390, publish protocol-history-and-publish.ts:1062, both through objectExtensionItemRefusal (protocol-object-extension-item.ts:257); validate.ts:895; compile.ts:948; install marketplace-install-local-plugin.ts:3192. Holds for a writer that is not a .custom package.
  • The field-hide recipe (a group whose visibleWhen is false) is not taught by this paragraph, so its two limits are not owed here.

S1 (should-fix) — SKILL.md line 390, "In any other package both keys are refused at those doors" is false for a .custom package that is not the object's pair. On main the one judge refuses only a writer for which isCustomizationPackage is false (judgeExtensionArrangement, packages/metadata-protocol/src/protocol-extension-arrangement.ts:91 to :94: "In a .custom package nothing is refused"), and the schema's own description says so in terms: "A .custom package that is not this object's pair is not refused at those doors: the registry merge does not apply what it writes here ... and the boot log names it" (CUSTOM_ARRANGEMENT_WRITER, object.zod.ts). In the skill's vocabulary "the pair" is the base's paired .custom package (hotcrm.custom), so "any other package" includes another App's .custom. The skill therefore teaches an author that a green os validate / save / install proves the arrangement sits in the right package, when for that writer every door is green and the fold drops the key with one boot-log line. The neighbouring __c sentence on main uses the same phrase over the same predicate; it is outside this diff and was not judged here (what the registry does with another .custom package's __c field was not read). The new sentence is judged on its own: it hides a silent no-op. The fix does not need to teach the skip, only stop denying it: name the refused writer by what the judge tests, for example "Outside a .custom package both keys are refused at those doors: use place." (a few bytes over the remaining headroom, to be paid in the same file), and mirror it in the changeset bullet. Eval cases 26 and 27 already say it correctly ("acme_contracts is not a .custom package, so both keys are refused there") and need no change.

The five payment hunks, each against its surviving home at the head:

  • Insert-null note (§ Validation Patterns): rules/validation.md lines 80 to 83 carry the same note; "On update, the prior record supplies it" survives as the script row's "Merged record — prior row plus this write" (line 17). It leaves the always-loaded file; a grep of the changed eval file found no case leaning on it (the bundle's other eval file was not read). Kept.
  • "unique defaults to false; omit it ...": rules/indexing.md line 11. Kept.
  • "append-only objects must declare one": same file, the lifecycle property row (line 104, "Required for append-only, high-write-rate objects"), and rules/lifecycle.md lines 14 to 15. Kept.
  • "(ADR-0090 D4; legacy aliases removed)": references/lint-rules.md line 23 (security-owd-alias, error); the heading still says "the four canonical values" and the Required table "one of the four below". Kept; this is the hunk the Security-touching line answers for.
  • (e.g., "Accounts"): the object JSON example, line 58. Kept.

skills/objectstack-data/evals/objects-fields-relationships.json

  • Case 27, reference answer against main: the fold over the prompt's owner list ['crm_contact', 'crm_opportunity', 'crm_lead', 'sys_activity'] and the arrangement ['crm_opportunity', 'crm_contact', { list: 'crm_lead', hidden: true }] serves opportunity, contact, then the carried sys_activity, with crm_lead hidden for every reader. The answer says exactly that ("the activity stream here"), says fieldGroups not written keeps the groups, names the five doors, and states the non-.custom boundary correctly. True sentence by sentence.
  • Case 27 under the literal grader (packages/qa/scenarios/src/skill-evals/grade.ts, case-sensitive substring): all six must_contain tokens are in the reference answer; neither forbidden string is ("takes no overrides declaration" has a backtick, not a colon, after the word; name: 'crm_account' does not occur). Passes its own assertions, read by eye; the dev's 27/27 is consistent.
  • Case 27 prompt: the asked behaviour is observable through hotcrm.custom, defineObjectExtension and extend: 'crm_account', which the prompt does not hand over. relatedLists and hidden: true are quoted in the prompt (disclosed in the PR body); see N1 for place.
  • Case 26: the one changed parenthesis ("only the object extension of HotCRM's paired hotcrm.custom package writes those keys; here they are refused") is true for acme_contracts; the edited answer still carries all five must_contain tokens and neither forbidden string.
  • Forbidden strings name: 'crm_account' and overrides: are those case 26 already carries on main; a correct answer has no need of either. No correct answer is caught.

N1 (nit) — case 27's must_contain token place is a substring of "replaces", so an answer that says the key "replaces the tab list" and never names place for the add-on package still satisfies it; the "what may acme_contracts write instead" half is then not observed by the grader. Case 26 uses place:, which the case 27 reference answer also contains. Left as a follow-up; it changes no teaching.

N2 (nit) — "an unnamed tab still shows after the listed ones" leaves two things to the key description: a list the owner hid by leaving it out stays hidden until the arrangement names it, and carried tabs go before a trailing approvals / activity run of the listed ones. Neither is stated falsely. If S1's fix leaves bytes, the first is the one worth a clause.

skills/objectstack-data/evals/README.md — one clause, "the .custom pair's whole arrangement (relatedLists, { list, hidden: true })", matches case 27. Holds.

Attempts to break the design that did not land: a hidden entry on a built-in tab (not what the paragraph's example names); the reference extension beside a place entry (it carries none); the pair unresolved because the object has no package (the fold names it, the skill's "installed package" framing excludes it); an earlier-version per-package pair (served second, still a pair).

S1 is open on this head and earns a delta review of its fix; N1 and N2 do not hold the round.

Implemented-by: claude/issue-36541-data-custom-arrangement
Reviewed-by: session_01ADHkmT4eA4YqtxfiPyLPih

VERDICT: PASS

…ests; case 27 asserts place:

The paragraph said any other package is refused both keys. The one judge
refuses a writer that is not a .custom package; another .custom package is
not refused at the doors, its keys are not applied. The sentence and the
changeset bullet now say outside a .custom package. Case 27's must_contain
token place also matched the word replaces; it is place: now.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmPTDM2MxHR8cvoMVUX
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmPTDM2MxHR8cvoMVUX

席位核对

ACCEPT — delta · PR #36568 @ 90a673de6756a9b5963aee96265a5a7b39dfe3e3 · card #36541 · L1 by area s2-E · 2026-11-23T00:36Z · over ACCEPT 7087933654 @ 0db54351e8

  • Delta read by the seat area (git diff 0db54351e8 90a673de67, 3 files, +3 / −3): SKILL.md "In any other package both keys are refused" → "Outside a .custom package both keys are refused" (answers L2 S1 in 7087999230; matches judgeExtensionArrangement, which refuses only a non-.custom writer); the changeset's first bullet carries the same words; eval case 27 must_contain place → place: (answers L2 N1). Nothing else moved.
  • Token ceiling 6710 not raised (file 6710 / 6710). Reference answers graded 27/27 at this head; the N1 control now fails as intended (report 7088256111).
  • l1-face --pr 36568 CLEAN at this head: 30 success · 18 expected skip · 0 failed · 0 pending.
  • N2 not done: no bytes left; the L2 record ties it to remaining bytes. Accepted.
  • Landing unchanged: Tier H, owes the L2 delta read of S1, then the seat hands to the approver.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih

Contract-review-claim: session_01ADHkmT4eA4YqtxfiPyLPih · head 90a673d · 2026-11-23T00:37Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 90a673de6756a9b5963aee96265a5a7b39dfe3e3
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/README.md, skills/objectstack-data/evals/objects-fields-relationships.json + none
Security-touching: yes

Delta round 1 over record 7087999230 (head 0db54351e8e6ed14e0b367b9663eeb8774e6deaa, PASS with S1 open). PR #36568, card #36541. The rework is one commit, 90a673de on parent 0db54351, no merge of main in the hop (merge-base with origin/main is still d463c46f). It changes 3 files, 3 lines: the last sentence of the new paragraph in skills/objectstack-data/SKILL.md, the same sentence in the changeset's first bullet, and one must_contain token of eval case 27. evals/README.md did not move in the rework. Net diff against the merge-base: 4 files, +44 / -12 (the three hits files and the changeset); no implementing file is in the diff. The code the paragraph teaches was read on origin/main at 047e1dca, never reviewed; none of the files read there (the judge, the CLI door, object.zod.ts, customization-package.ts, the item gate, the install door, the registry fold, the grader) and nothing under skills/objectstack-data differs between d463c46f and 047e1dca.

Check-runs on this head: 48 total, 30 success, 18 skipped, 0 failed, 0 pending. Success includes Lint and Repo Gates, Lint docs and code guards, Lint repo and tooling gates, Lint CI release and engine gates, Lint ESLint, TypeScript Type Check, Type Check workspace / source gates / consumer gates / debt ledger, Build Core, Test Core (1/10, 2/10 and the rollup), Check Changeset (both runs), PR-body guards (both runs), Governed Surface Queue Guard. The lane's "30 green, 0 red" is confirmed.

① Derived judgments

  • Accept-set: unchanged by the rework and by the net diff. No schema, validator, gate or runtime file is in the diff. Right.
  • Public surface: the published @objectstack/skills bundle. The rework narrows one taught sentence from "any other package" to "outside a .custom package", so the skill no longer states a refusal the doors do not make. Right.
  • Eval surface: case 27's sixth must_contain token is place: instead of place. The assertion set gets stricter (an answer naming place only as part of another word, or only in prose, no longer passes); the prompt and the reference answer are unchanged. Right; see N1 below.
  • Token ratchet: the sentence is 7 bytes longer; the ceiling row is not in the diff, and the ratchet's verdict is the green lint lanes on this head. Right.
  • Metadata-protocol: none: right, unchanged from the earlier record.
  • Security-touching stays yes, for the reason record 7087999230 gave and for nothing in the rework: the net diff this head carries still holds the hunk at the sharingModel table heading (it removes "(ADR-0090 D4; legacy aliases removed)" from the always-loaded file; the statement stays in references/lint-rules.md). The three reworked lines teach no permission, sharing, credential, token or authentication behaviour. The adopting seat decides the security label on that basis.

② Semver level

.changeset/36541-skills-custom-arrangement.md: @objectstack/skills patch, unchanged level; it matches what the diff publishes. Check Changeset is green on this head.

Clause-②: no — agreed. Nothing in the diff narrows what the platform accepts; PR body and changeset both carry the line.

The changeset's first bullet now reads "Outside a .custom package both keys are refused at save, publish and install and by os validate / os build, with the prescription to use place", the same claim as the skill sentence, as record 7087999230 asked.

③ Boundary flags

  • open_questions: empty in both dev reports (7087735893, 7088256111). Nothing to answer.
  • Deviation, N2 not done for lack of bytes: accepted, see N2 below.
  • Deviation, door suites not re-run in the fix round: no effect; the rework touches no file they read, and the check-runs on this head are the verdicts.
  • Deviation, PR body trailer order: outside the reviewed faces; PR-body guards are green on this head.
  • PR body acceptance note 4 now agrees with the paragraph: the paragraph no longer says a non-pair .custom package is refused; it does not teach the skip, and leaves that to the key descriptions and the docs page. Consistent.
  • Overlap with draft docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158 in skills/objectstack-data/SKILL.md: ruled by the seat (whichever lands second replays its text). The replay must keep the "Outside a .custom package" wording.
  • SQL push-down (Prime Directive 5): no code, no query, no id materialisation in the diff. Nothing to flag.

④ Design judgment

skills/objectstack-data/SKILL.md — the reworked sentence, line 390 at this head: "Outside a .custom package both keys are refused at those doors: use place." ("those doors" are the previous sentence's: save, publish and install, os validate / os build.)

Against main:

  • The one judge, judgeExtensionArrangement (packages/metadata-protocol/src/protocol-extension-arrangement.ts:91 to :109), returns a refusal for every arrangement key of every objectExtensions entry whenever the package id is a non-empty string for which isCustomizationPackage is false, and returns nothing when it is true. isCustomizationPackage (packages/spec/src/kernel/customization-package.ts) is "some base derives this id", so the sentence's "a .custom package" is exactly the predicate's set. The refusal message carries the place prescription.
  • Save: protocol-save.ts:1390 asks objectExtensionItemRefusal (protocol-object-extension-item.ts), whose step 8 calls the judge with the write's package binding; a write that names no package is already refused at step 1. Publish: protocol-history-and-publish.ts:1062, the same gate. Install: marketplace-install-local-plugin.ts:3192, the judge over every delivered package body, answered 422 before anything is written. os validate: validate.ts:895; os build: compile.ts:948; both through findExtensionArrangementRefusals (packages/cli/src/utils/extension-arrangement.ts), which hands the judge each package of the artifact. So every writer that is a package and is not a .custom package is refused at each of the five doors. The sentence holds.
  • What it no longer claims: a .custom package that is not the object's pair. CUSTOM_ARRANGEMENT_WRITER (packages/spec/src/data/object.zod.ts:6828) says such a package "is not refused at those doors: the registry merge does not apply what it writes here ... and the boot log names it", and the judge agrees. The new sentence says nothing about that writer, and the paragraph's first sentence ("Only the pair's extension may also write ...") stays true of it (the fold serves the object's own pair only). Nothing false is taught about it.
  • The rest of the paragraph and the five payment hunks are byte-identical to the head record 7087999230 judged; its judgments stand.

S1: closed — the sentence now names the refused writer by the judge's own predicate; the changeset bullet carries the same wording.

N3 (nit) — read to the letter, "Outside a .custom package" also covers a body that names no package at all, and the judge does not judge one ("A body bound to no package is not judged: the rule is about packages"): a single stack with no manifest.id passes os validate / os build with either key written (extension-arrangement.ts, the fallback subject; pinned by "a stack naming no package id is not judged"). At save and publish that writer is refused anyway (step 1 of the item gate), and the paragraph's own frame is packages ("An object an installed package ships ...", "the pair", the neighbouring __c sentence's "any other package", which has the same boundary over the same predicate). No effect on what the skill teaches an author of a package; accepted as it stands, no change asked.

skills/objectstack-data/evals/objects-fields-relationships.json — case 27, must_contain now hotcrm.custom, defineObjectExtension, extend: 'crm_account', relatedLists, hidden: true, place:.

  • Under the literal grader (packages/qa/scenarios/src/skill-evals/grade.ts: case-sensitive includes, nothing normalised), read by eye against the unchanged reference answer: all six tokens occur; place: occurs once, in place: [{ list: 'acme_contract', after: 'crm_opportunity' }] (the earlier "prescribes place:" has a backtick between the word and the colon, so it is not the match, and "replaces" no longer satisfies the token). Neither forbidden string occurs: name: 'crm_account' is absent, and "overrides declaration" has a backtick, not a colon, after the word. The reference answer passes its own assertions; the dev's 27/27 is consistent.
  • place: collides with no must_not_contain entry of the case (the two forbidden strings are unrelated to it), and a correct answer has no need of either forbidden string.
  • The token is taught by the bundle (SKILL.md line 359, place: [{ field: 'tax_id', ... }]) and is the token case 26 already asserts. It now makes the prompt's second question ("what may acme_contracts write instead?") observable: the answer must write a place entry. An answer naming place only in prose fails, the same property case 26 has; that is the intended strictness, not a correct answer wrongly caught, since the prompt asks what the package writes.
  • Case 26 and the rest of the file did not move in the rework.

N1: closed — the token is place:, no longer a substring of "replaces".

N2: carried, accepted as it stands — the clause (a list the owner hid by leaving it out stays hidden until the arrangement names it) was offered only if S1's fix left bytes; the file sits on its ceiling (6,710 of 6,710, ratchet green) and the sentence it would extend is not false. It stays with the key description and the docs page; a follow-up card is the seat's choice, none is owed by this PR.

skills/objectstack-data/evals/README.md — unchanged in the rework; the one index clause for case 27 still matches the case. Holds.

Attempts to break the reworked text that did not land: a .custom id that no base derives (a.custom.custom, the bare .custom) is not a .custom package to the predicate and is refused, as the sentence says; a multi-package artifact whose entry has no manifest.id is still judged (the id falls back to name, then to the positional spelling, neither a .custom id); the install door with a packages[] manifest judges each delivered body under its own manifest id, not the outer id alone; an answer to case 27 that writes place: but keeps the arrangement on the add-on package still fails on hotcrm.custom.

No must-fix, no should-fix.

Implemented-by: claude/issue-36541-data-custom-arrangement
Reviewed-by: session_01ADHkmT4eA4YqtxfiPyLPih

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

维护者速读(席位记录 · head 90a673de67)

ACCEPT → PR #36568 comment 7088491072 (area s2-E's delta ## 席位核对 at this head, on its first ACCEPT 7087933654). Seat check on top of it: 4 files (skills/objectstack-data/SKILL.md, its evals README and objects-fields-relationships.json, the changeset), +44 / −12, governed path skills/** ⇒ Tier H; L2 records Security-touching: yes, so no low-risk arm, and the security label is added. Check-runs at this head: 30 success, 18 expected skip, 0 failed. mergeable_state clean. The seat lands it after an approval is on record.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

Hand-off for approval: L1 ACCEPT 7088491072 at head 90a673de6756a9b5963aee96265a5a7b39dfe3e3, all checks green. Tier H (governed path skills/**). Same-head contract review PASS 7088561641 (CONTRACT_REVIEW_TIER), on the record of 7087999230. The seat lands it after an approval is on record.

@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 23, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 23, 2026 00:44
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit c0eecb1 Nov 23, 2026
58 of 59 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-36541-data-custom-arrangement branch November 23, 2026 01:06
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation security size/s 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.

objectstack-data skill: teach the .custom package's object-extension arrangement (fieldGroups and relatedLists) from PR #36517

3 participants