Skip to content

docs(skills): the relationships rule names reference_out_of_scope, and a _relatedLists key follows the served tab list - #37892

Merged
os-zhuang merged 4 commits into
mainfrom
claude/project-thread-d3sz2i
Nov 27, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/project-thread-d3sz2i

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #37590
Fixes #37620

Clause-②: no
Metadata-protocol: none

维护者速读

  • 是什么:对外发布的技能包里两处说法改成和现在的平台一致。导入明细时写了别的主记录名下的名字,报的原因是「不在范围内」而不是「找不到」;相关列表页签的翻译键,在客户定制包把这个页签改成不带标题或隐藏之后会被校验拒绝,并写明两种改法。只改教 AI 的文字,用户无感。
  • 为什么:这两处平台行为昨天已经合入,技能包还在教旧说法,照着做的 AI 和实施人员会按错的原因排查导入报错,或写出校验不过的翻译键。
  • 出错会怎样:只动技能包文字,写错了最多是 AI 学到一句不准的话,可以直接撤回这次修改。
  • 要你做的:无,座位复核后交审批人。

What changes

Two published skill pages, prose only. No code, no eval fixture, no ceiling row.

skills/objectstack-data/rules/relationships.md

  • Optional master, the import clause. It said another master's detail fails with reference_not_found. On main that case answers reference_out_of_scope, and the cell error carries scope: [{ field, value }], the row's scoping columns (packages/core/src/utils/import-coerce.ts, referenceNotFound). reference_not_found stays for a name no record has, and for a scoping field the caller cannot read (the scopeDenied arm of the same function).
  • Detail-page related lists, the relatedLists bullet. It taught the key objects.{parent}._relatedLists.{list}.label with "(none: nothing to translate)". It now says: none, no key; and a .custom arrangement that re-states the entry with no label, or hides it, leaves none, so os validate refuses the key. The remedy is the one the merged migration entry prescribes (translation-related-list-key-under-arrangement-refused): drop the key, or re-state the entry with the owner's label.

skills/objectstack-i18n/SKILL.md

  • The _relatedLists.{list} row of the object sub-key table gains the same clause, naming the paired .custom package's relatedLists and pointing at objectstack-data, where that arrangement is taught.

Paid for in the same file (token ratchet, no ceiling moves). Each cut is restatement or history, and each has a home that stays:

File Cut Where it still lives
relationships.md the parent's total summary field in the master-detail pattern example the JSON form under Roll-up Summaries (a served section, unchanged) and the TypeScript form in the grid modeling example
relationships.md "Without the group nothing changes: the child is a tab and the form has no lines." the sentence before it (the form enters lines where a field group names the child) and Detail-page related lists (every child is a tab by default)
relationships.md "The grid lights up extra behaviors from how you model the child + parent:" the three bullets under the example say each behaviour
objectstack-i18n/SKILL.md "(the aspirational messageFormat config knob was removed)" the schema's own refusal of messageFormat says it; the sentence "There is no ICU MessageFormat engine" stays
objectstack-i18n/SKILL.md "(getAppBundle / loadAppBundle went with the o.* shape they returned.)" history only: neither name exists in packages/spec/src, packages/core/src or packages/services/service-i18n/src
objectstack-i18n/SKILL.md "one locale per item" and "There is exactly one shape; nothing converts between formats." the sentence before them ("one locale's worth of the same objects.* groups")

Skill size readings, against main @ b620c4b2:

lines before lines after tokens before tokens after
skills/objectstack-data/rules/relationships.md 390 384 4181 4181 (ceiling 4181)
skills/objectstack-i18n/SKILL.md 516 513 6333 6333 (ceiling 6333)
every published SKILL.md, summed 4962 4959
ratcheted (authored) bundle 199685 199685

Decided in the thread (small, listed per the standing rule):

  • The Roll-up Summaries section is served by exact heading and its JSON fence is validated (packages/spec/scripts/skill-served-sections.json), so it is byte-identical to main. A first cut removed that JSON block; check:skill-served-sections went red, and the cut moved to the TypeScript copy in the pattern example.
  • No eval case is added: each card asks for one clause. The existing objectstack-i18n eval case 16 (the _relatedLists key, an entry with no label has no key) still matches the row.
  • No Skills-docs: line: the kind is none and there is no (narrowing) arm.
  • main shortened relationships.md and lowered its row from 4201 to 4181 while this branch was open. main is merged in, and two bytes came off the new import clause so the file sits at that measurement.
  • Branch name: the platform assigned claude/project-thread-d3sz2i, so it does not carry the issue number.

Why

Both behaviours merged on 2026-11-26, and each code PR declared the skill text as a follow-up because skills/** is governed. Until the pages change, an agent that handles import errors from the skill matches reference_not_found for a case that no longer answers it, and one that writes a pair package's arrangement keeps a translation key that os validate now refuses.

Tests

Prose only, so no unit test changes and no ablation.

Local gates, run on the final head c62f65f0 (after merging main @ b620c4b2 and a full pnpm build): node scripts/pm/dispatch-gates.mjs --commands derives 50 families for this diff, all 50 ran with exit 0, and --ran answers:

✓ dispatch-gates --ran: 50 derived famil(ies) accounted for — 50 run, 0 NOT-MEASURED (a DERIVED zero — all 50 recorded an exit code and none of them is 3).

The ones that read the two pages:

verdict lines
✓ check-skills-token-ratchet: 61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted.
   skills/objectstack-data/rules/relationships.md               4181 /   4181   (+0)
   skills/objectstack-i18n/SKILL.md                             6333 /   6333   (+0)
✓ check-skill-served-sections: 24 served section(s), each heading exactly once in its file (6 json, 2 json+ts, 16 neutral); 10 JSON fence(s) parse and pass their spec validators.
✓ check-skill-links: 272 relative link(s) in 76 published skill file(s) resolve; 140 fragment(s) name a real heading under GitHub's slug rule.

check:skill-docs, check:skill-compatibility, check:skill-frame-sync, check:skill-identifier-liveness, check:doc-authoring, check:pm-skill-id-lint and check:nul-bytes: exit 0.

Everything else is CI's run: the check-runs on this PR are the record.

Acceptance notes

  • Premise re-read on main before writing: both passages still carried the old text (relationships.md :117 and :369, objectstack-i18n/SKILL.md :166), and both blockers are merged.
  • Not judged here, noted only: the messageFormat refusal in packages/spec/src/system/translation.zod.ts says interpolation is "simple {variable} substitution", while the i18n skill teaches double braces and says single braces pass through. The skill sentence that warns about this stays. Not measured in this thread, no card filed.

Verification

Read first: skills/objectstack-data/rules/relationships.md (the import clause under Optional master, then the relatedLists bullet under Detail-page related lists), then the _relatedLists.{list} row of skills/objectstack-i18n/SKILL.md. The risk hunk is the removed total field in the master-detail pattern example.

Two-minute check: node scripts/check-skills-token-ratchet.mjs prints both files at their ceilings with headroom 0, and pnpm --filter @objectstack/spec run check:skill-served-sections prints 24 served sections, 10 JSON fences passing.

Tier H: skills/**. Contract review at CONTRACT_REVIEW_TIER is owed by the seat; not self-reviewed here.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgTFpGNWjLMTYXbjD1f


Generated by Claude Code

…elatedLists keys follow the served tab list

The import clause of the objectstack-data relationships rule said another
master's detail fails with reference_not_found; on main it is
reference_out_of_scope with a scope on the cell error. The related-lists
bullet there and the _relatedLists row of objectstack-i18n now say the key
is refused where the paired .custom arrangement re-states the entry without
a label or hides it, with the remedy the refusal prescribes.

Both files stay at their token ceilings: the words are paid for by deleting
restatement in the same file.

Claude-Session: https://claude.ai/code/session_01L6bhgTFpGNWjLMTYXbjD1f
Co-authored-by: Claude <noreply@anthropic.com>
…e pattern example's summary copy

The Roll-up Summaries section is served by exact heading and its JSON fence
is validated, so it stays byte-identical to main. The words are paid for by
the third copy of the summary shape in the master-detail pattern example.

Claude-Session: https://claude.ai/code/session_01L6bhgTFpGNWjLMTYXbjD1f
Co-authored-by: Claude <noreply@anthropic.com>
main shortened the same file and lowered its row to 4181; two bytes come off
the new clause so the file sits at that measurement.

Claude-Session: https://claude.ai/code/session_01L6bhgTFpGNWjLMTYXbjD1f
Co-authored-by: Claude <noreply@anthropic.com>
@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 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c62f65f07a6c151cc203a0c196c25ac385cd29b7
Local-runs: none
Scope: skills/objectstack-data/rules/relationships.md, skills/objectstack-i18n/SKILL.md + none
Security-touching: yes

PR #37892, cards #37590 and #37620. Read: both cards with every comment (triage, unlock, claim, dev reports 7214429476 and 7214438486), the PR body and file list, the net diff against main (merge base b620c4b2), and the check-runs on this head. Code read on main, never reviewed: packages/core/src/utils/import-coerce.ts, packages/core/src/utils/import-runner.ts, packages/lint/src/validate-translation-references.ts, packages/spec/src/api/protocol.zod.ts, packages/spec/src/system/translation.zod.ts, the migration entry translation-related-list-key-under-arrangement-refused, and skills/objectstack-data/SKILL.md.

Security-touching: yes is meant: the new import clause in relationships.md teaches that a scoping field the caller cannot read changes the reason code an import answers. That is field-read permission behaviour, which the path name does not show. The sentence agrees with the merged code.

① Derived judgments

② Semver level

.changeset/37590-skills-import-scope-and-related-list-key.md bumps @objectstack/skills by patch. That matches: prose that corrects two statements to what the platform already answers, with no new authorable surface and no refusal introduced by this diff.

Clause-②: no. Agreed. The PR body and the changeset both carry it (the changeset with a plain reason in parentheses, not the narrowing arm), and Metadata-protocol: none holds with no packages/spec path in the diff. Check Changeset and the PR-body guards concluded success.

③ Boundary flags

  • open_questions: empty in both dev reports. Nothing to answer.
  • Dev flag, out of scope (class c): the messageFormat refusal text in packages/spec/src/system/translation.zod.ts says interpolation is single-brace substitution while the shipped adapters replace only the double-brace form. Confirmed by reading the refusal on main; not part of this diff. The i18n skill keeps its own warning under Message Interpolation, so the deletion in this PR does not lean on the wrong half of that sentence. Escalated to the seat: it earns its own card, it is not a finding here.
  • Dev flag, noted not filed: relationships.md has no pointer from its relatedLists bullet to where the .custom arrangement is taught. Answered: accepted. The file is a rules page of objectstack-data, whose SKILL.md teaches the pair's relatedLists (the paragraph on an object an installed package ships), and the i18n row carries the cross-skill pointer.
  • SQL push-down: no code in the diff, so no id materialisation and no in-app join. Nothing to flag.
  • Folding two cards into one PR and the platform-assigned branch name are stated in the claims on both cards. No objection.

④ Design judgment

No must-fix, no should-fix.

skills/objectstack-data/rules/relationships.md

  • Import clause (skills: objectstack-data relationships rule says another master's detail is reference_not_found on import; after PR #37567 it is reference_out_of_scope #37590), against referenceNotFound in import-coerce.ts. "another master's detail reference_out_of_scope": holds, a scoped miss whose value matches one or several records without the scope answers that code. "scope: [{ field, value }] names the scoping columns": holds, the error carries one element per scoping row column, and ValidateDataIssueSchema.scope describes field as the column's API name and value as the typed cell, present on this code only. "A name no record has ... is reference_not_found": holds, the unscoped probe matching nothing returns the plain refusal. "a scoping field the caller cannot read": holds, the scopeDenied arm returns before the probe, and import-runner.ts sets it from the field-predicate guard's denial. The unchanged reference_ambiguous half still matches both call sites. The card's three expectations are met.
  • relatedLists bullet (skills: objectstack-i18n and objectstack-data teach _relatedLists keys without the refusal #36595 adds for a key under an arrangement that drops the label #37620), against the _relatedLists rung of validate-translation-references.ts. The rule folds the .custom arrangement after the owner's list and every placement, strips the label of every entry an arrangement entry covers, and reports the key at error severity both for a hidden list and for one left with no label. The two remedies are the ones the lint hint and the migration entry give. "(none: no key)" agrees with the pre-existing arm for a named entry with no label. Tried to break it: an arrangement that leaves the list out keeps the owner's label and the key, and the sentence says "re-stating", so it does not over-claim.
  • Deletions, each read against the home the PR body names, at this head. The parent's total field in the master-detail pattern: the JSON form under Roll-up Summaries and the Field.summary form in the grid example both stay, and nothing later in the page refers back to the removed field. "Without the group nothing changes ...": the sentence before it says the form enters rows where a field group names the child, and Detail-page related lists says every child is a tab by default. The grid intro sentence: the three bullets under the example state each behaviour. No taught fact is lost.

skills/objectstack-i18n/SKILL.md

  • _relatedLists.{list} row: same clause, same code, holds. The pointer to objectstack-data resolves to real teaching (relatedLists written only by the pair's extension, { list, hidden: true }). Eval case 16 of objectstack-i18n still matches the row: its expected answer is the unchanged first half.
  • Deletions. messageFormat history note: the schema refuses the key by name and "There is no ICU MessageFormat engine" stays, which is what the eval case forbidding messageFormat needs. getAppBundle / loadAppBundle: neither name exists under packages/spec/src, packages/core/src or packages/services/service-i18n/src, so the note taught nothing writable; the eval case that forbids both calls does not depend on the page naming them. "one locale per item" and "exactly one shape": the sentence that stays says an item carries one locale's worth of the same groups plus its locale.

Nits, none with an effect on correctness or the contract, all left as accepted deviations at zero headroom:

  • N1 (nit): for a hidden entry the lint hint says to show the tab as well as give it the owner's label; both pages say only "re-state the entry with the owner's label". An entry re-stated with a label and still hidden stays refused. The reading is recoverable from "or hiding it", and os validate prints the full hint.
  • N2 (nit): the clause names an entry re-stated with no label, not the case the migration entry adds, where a labelled entry for a bare child covers the owner's child.field list and strips its label too.
  • N3 (nit): reference_not_found has a third arm the import clause leaves out, a scope the engine cannot filter by (a formula). The code and the sentence the reader gets are right; only the list is not exhaustive, and the card did not ask for it.

Implemented-by: claude/project-thread-d3sz2i
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head c62f65f · cards #37590 + #37620 · area s2-ai · 2026-11-27T09:38Z

L1 checklist

Tier: H. Landing: hand-off to the maintainer follows this record.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

security added: the contract review's Security-touching: line is yes (7214878571) · 2026-11-27T09:39Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Tier H hand-off · 2026-11-27T09:40Z · head c62f65f · approver os-zhuang

维护者速读

@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 27, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 27, 2026 09:41
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 1e721fd Nov 27, 2026
54 of 55 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-d3sz2i branch November 27, 2026 10:02
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 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

3 participants