Skip to content

feat(pair-rules)!: a .custom package's validation rule ends in __c and never takes a package rule's name - #39729

Open
objectstack-fleet[bot] wants to merge 9 commits into
mainfrom
claude/project-thread-qgdeik
Open

objectstack-fleet[bot] wants to merge 9 commits into
mainfrom
claude/project-thread-qgdeik

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Fixes #39661

Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #39730

维护者速读

  • 客户在已安装应用的对象上新增的校验规则,名字现在必须以 __c 结尾,也不能与应用自带的规则同名;Studio 自动生成的规则名已带 __c,保存和发布前校验会拒绝不合规的名字。
  • 这项属于客户定制与厂商包隔离的工作:防止客户规则顶替或关掉厂商自带的校验,也防止厂商升级后的新规则与客户规则撞名。
  • 已经存下的同名客户规则不再生效,系统会报告一次,厂商规则照常运行;客户要把规则改名后重新保存。整个改动可以直接撤回。
  • 要你做的:无。旧数据里不合规的规则名由后续卡 upgrade: rename a customer's unsuffixed pair validation rule to NAME__c in stored .custom object_extension rows #39731 自动改名;本 PR 先提示并在保存时给出改名写法。

BREAKING (narrowing, ruling 7411414171 (B)): a validation rule that a .custom package's object extension adds to another package's object must now end in __c, and must not use the name of a rule a package ships for that object. Save, publish, restore, os validate and os build refuse either mistake with 400 VALIDATION_ERROR. A stored rule that already uses a package rule's name is left out of the fold and reported once, so the package's rule runs. Replacement between code layers (ADR-0029 D9.2a) is unchanged.

Migration (FROM → TO):

  • Rename: a validation rule added by a .custom package's object extension goes FROM NAME TO NAME__c (credit_check → credit_check__c).
  • Collision: a rule that already ends in __c but shares its name with a package rule takes a different name of its own that ends in __c.
  • Delete: a rule that only switched off or reworded a package rule is deleted.
  • Where to rename: Studio's Validations tab, or PUT /api/v1/meta/object_extension/OBJECT?package=BASE.custom, then publish.

ADR-0087: registered pair-validation-rule-suffix (protocol-19 semantic notice). The disposition marker is in each of the five changesets.

Owed review (not requested here): this is a narrowing of the public metadata contract. It needs the CONTRACT_REVIEW_TIER contract review before it is marked ready. The title carries ! and the PR has a (narrowing) arm, so the needs:dogfood-battery run is also owed on the head.

What changes

Delta since f390b6360f (contract review 7416563447, PASS with two should-fix):

  • S1, Studio. The Validations tab no longer treats every served rule whose name the pair declares as the customer's. A served rule is the pair's only when the pair's published extension declares its name and the served rule is that published copy, compared as the rules run (spec parse fills the defaults, an expression is read by its source, loader stamps are dropped). Every other served rule is the package's, so a name a package holds is locked and the feat(studio): a customer adds validation rules to an installed object, saved in its .custom extension #39581 refusal fires. The customer's copy under that name is listed beside the package's rule, named as taken, and stays editable so it can be renamed or deleted. The served object names no package per rule, so this comparison is the panel's only witness: a copy identical to the package's rule still reads as the customer's, and Save refuses its name. Red efa3238b73, fix e354de0153.

  • S2, declaration. Clause-②: yes (narrowing) in this body and in all five changesets (4f9d36dac6): @objectstack/metadata-protocol gains five exports (judgePairValidationRuleNames, pairValidationRuleNameRefusalError and three types), so one surface widens while the authoring contract narrows. Level, banner and ADR-0087 disposition are unchanged.

  • spec. The docblock of EXTENSION_FIELD_SUFFIX (@objectstack/spec/data) now names it as the one customer suffix for:

    • extension fields;
    • picklist extension values (ruling 7406020670);
    • the validation rules a .custom package adds (ruling 7411414171).
      No second constant is added. There is also a new semantic entry, 19.pair-validation-rule-suffix, with a coverage row in semantic-relevance-coverage-38929.test.ts (class deployment).
  • Save door (metadata-protocol, protocol-object-extension-item.ts). Step 9 of the object_extension door runs the new judgePairValidationRuleNames. It refuses two kinds of rule name, and checks them in this order:

    1. held_by_package: a pair rule uses the name of a rule that a non-.custom contributor of the target object ships.
    2. unsuffixed_in_pair: the rule name does not end in __c.

    The error is a VALIDATION_ERROR/400 envelope with one issue per rule, built by pairValidationRuleNameRefusalError. The pair's own objects are not judged. The judge and the error builder are exported from the package index so the CLI can use them. protocol-save.ts is not touched.

  • Fold (objectql).

    • mergeValidationsByName takes packagedNames. When set, it drops every extension rule whose name a package ships.
    • foldExtendersOntoDefinition passes those names, but only for a .custom extend contributor. It reports each held copy once on console.error with the code pair_validation_rule_name_held.
    • The new concern lives in a sibling module, registry-pair-validation-rules.ts, because the registration file is over 1,000 lines.
    • Code-layer replacement (D9.2a) is unchanged: a test pins it.
  • CLI. findPairValidationRuleNameRefusals in extension-arrangement.ts checks the rules of each .custom package in an artifact against the rules the artifact's other packages ship. It is wired into os validate and os build, and listed in the parity ledger's shared non-registry gates.

  • Studio (app-shell). On an installed object, ObjectValidationsPanel now builds derived rule names with customerRuleSuffix(true), giving NAME__c. This covers message-derived names, validation_N, presets and romanized names. The feat(studio): a customer adds validation rules to an installed object, saved in its .custom extension #39581 refusal stays; its test now expects validation_3__c. A served rule under a package-held name is listed as the package's, and a customer copy under that name is listed as held (see the delta above; pairValidations.ts owns the classification, DataPillar hands it the published rules by name).

  • Docs. object-extensions.mdx:67: the validations row says rules are added by name, each customer rule ends in __c, a rule never takes a package rule's name, and what Save and os validate refuse. The indexes row is corrected to "Concatenated".

  • Stale fixtures. Runtime fixtures that saved unsuffixed rules into a pair are respelled with __c. This is a direct consequence of the narrowing.

Tests

The red pins were committed first (ed0b728439) and each read red on main before the fix (8078dde737):

Red, then green
Pin Red on main Green on head
objectql/src/registry-pair-validation-rule-name-39661.test.ts 5 failed / 2 passed 7 passed
metadata-protocol/src/protocol-pair-validation-rule-name-39661.test.ts 5 failed / 3 passed 8 passed
cli/test/validate-pair-validation-rule-name-39661.test.ts (e2e os validate) 2 failed / 1 passed with the util and parity tests: 53 passed
app-shell/.../ObjectValidationsPanel.test.tsx 2 failed / 14 passed panel suites 134, DataPillar 243 passed

Controls that stay green throughout:

  • a suffixed customer rule next to the package rule;
  • D9.2a code-layer replacement;
  • the suffixed os validate fixture.

Ablation. Removing the packagedNames filter in mergeValidationsByName turned the objectql pin red (4 failed). The file was then restored.

Downstream (consumers of objectql): objectql 213, rest 46, runtime 119 passed. Runtime needed respelled fixtures.

After merging main (head f390b6360f):

  • spec: check:generated reports all 14 artifacts up to date; migrations and field-customization: 356 passed, 3 todo.
  • objectql pin: 7 passed. metadata-protocol pin: 8 passed. cli: 53 passed. runtime: 94 passed.

Typecheck: metadata-protocol, objectql and cli exit 0.

Delta S1: red, then green (head 4f9d36d)
Pin Red on f390b6360f Green on head
app-shell/.../pairValidations.test.tsx (new) 4 failed / 1 passed 5 passed
app-shell/.../ObjectValidationsPanel.test.tsx (3 new cases) 3 failed / 16 passed 19 passed
  • The pairValidations red count includes one control ("a published rule the draft has since removed") that is red on the old head only because the pins pass the published rules as a name-to-rule map, the shape the fix reads. The legacy free unsuffixed rule control is green on both.
  • The red run printed six duplicate React key warnings; the green run prints none.
  • With the DataPillar suites: 64 files, 385 tests passed.
  • Ablation, each through scripts/ablation-replace.mjs, restored with blob equal to HEAD and an empty git diff HEAD:
    • Dropping the published-copy comparison in packageRulesOf: the published-held and vendor-upgrade pins go red (2 failed / 3 passed).
    • Comparing raw bodies instead of running forms: all 5 go red, the controls included.
    • Selecting a package rule by its bare name: the row-selection pin goes red (1 failed / 18 passed).

Acceptance notes

  • Stored rename carried by upgrade: rename a customer's unsuffixed pair validation rule to NAME__c in stored .custom object_extension rows #39731. A semantic entry under ADR-0087 is only a notice, and a D2 conversion sees a stored row without its package id, so it cannot tell a .custom row from a vendor's row. Per reading 7415462403 (A), this PR ships the notice and the save door's NAME__c prescription; the package-aware rename of stored unsuffixed .custom rules (ruled term (3)) is carried by follow-up upgrade: rename a customer's unsuffixed pair validation rule to NAME__c in stored .custom object_extension rows #39731.
  • Typed names. A name a person types in Studio (not derived) is not given the suffix automatically. Save refuses it with the NAME__c prescription.
  • Vendor packages. A vendor package (not .custom) that ships a rule name ending in __c is not refused.
  • Marketplace install. The install door (cloud connection) does not ask the rule-name judge. The fold still drops a held copy and reports it at load.
  • Doors covered by tests. The restore door reaches the same objectExtensionItemRefusal through protocol-authoring-gate.ts. The publish path was not traced in this PR. Only the save door is pinned by a test here.
  • Files outside the claim's surface, with reasons:
    • metadata-protocol/src/index.ts: the export the CLI needs.
    • objectql/src/registry-object-registration.ts: the fold loop itself.
    • the new objectql/src/registry-pair-validation-rules.ts: the 1,000-line rule.
    • cli/src/commands/compile.ts and cli/test/validate-build-gate-parity.test.ts: build/validate parity.
    • two runtime test files: stale fixtures.
  • Facade ceiling. registry.ts sits exactly at its facade ceiling, 6426 lines.
  • feat(metadata): stored picklist_extension item (#39536 step 2); PATCH /packages/:id refuses unread body keys (#39576) #39668. It was still open at the finish. It shares protocol-object-extension-item.ts, registry.ts and the coverage-test file; the coverage row here is a single insertion at a different line.

Verification

Read first (by risk):

  1. packages/objectql/src/registry-object-registration.ts and registry-pair-validation-rules.ts: the customerLayer hunk, which decides which rules run.
  2. packages/metadata-protocol/src/protocol-object-extension-item.ts: step 9 and judgePairValidationRuleNames.
  3. packages/cli/src/utils/extension-arrangement.ts: findPairValidationRuleNameRefusals.

Two-minute check: run pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/registry-pair-validation-rule-name-39661.test.ts. Expected: 7 passed, including the D9.2a code-layer control.

Local gates (head f390b63)
  • Derived gates: dispatch-gates.mjs --commands lists 134 gate families, and all 134 exited 0 on f390b6360f. pnpm --dir ui exec vitest run scripts/ hit the runner's 240-second cap once (exit 124); it was rerun at 500 seconds and passed (exit 0, 5161 tests).
  • Gates that refused on the first pass:
    • Facade ceiling: red (+4 lines in registry.ts), fixed in 274f6c6985.
    • Missing prerequisites (exit 3, PREREQUISITE NOT MET) in check:skill-examples, check:dual-build-cjs-loads and check:i18n-coverage: green after the closure build.
    • Shallow clone in check-plugin-teardown-shape --self-test: green after git fetch --unshallow.
  • Reconciliation: dispatch-gates.mjs --ran reports 134 derived, 134 run, 0 NOT-MEASURED, 0 UNRUN.
  • Other checks:
    • check-platform-checklist --changed-from origin/main: OK, 0 anchors lost.
    • check:nul-bytes: OK.
    • check:type-check-debt: OK.
  • Delta re-run on head 4f9d36dac6 (the delta touches only Studio files and changeset declaration lines): 21 of the 134 derived families were run locally, all exit 0. These include the changeset gates (check-changeset-no-major, check-empty-changeset, check-adr-0087-registration, check:changeset-gate-self-tests), pnpm --dir ui exec vitest run scripts/ (172 files, 5161 tests), check:nul-bytes, check:test-source-alias, check:undeclared-dep-imports, check:gitlink-declared and check:issue-citations. check:i18n and check:i18n-walk-parity refused with exit 3 (PREREQUISITE NOT MET, the CLI is unbuilt in this install); the delta adds no i18n key. The other 111 are recorded as NOT-MEASURED in --ran because the delta is outside their subject. They were green at f390b6360f, and CI runs them on this head. check:new-line-citations: 0 new. check-platform-checklist: 0 anchors lost.
  • NOT MEASURED locally: the UI type-check. It does not resolve locally because the @object-ui/* packages are unbuilt, and no error points at a changed line. CI's Type Check UI decides. test:repo belongs to CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qibwdYYXynLJaFrerhYo

… name, and ends in __c

The failing pins for ruling 7411414171 (B), committed before the fix, each
read red on main behaviour (f7c60e5):

- objectql fold: a stored pair rule under a package rule's name switches the
  package rule off (`active: false`) or replaces its condition, the engine
  admits what the package rule refuses, nothing is reported, and a package
  upgrade that adds a name the pair holds runs the pair's rule (5 red, 2
  controls green: suffixed rule beside, D9.2a code-layer replacement).
- object_extension save door: a same-named rule (owner's, code extender's,
  a suffixed vendor name) and an unsuffixed rule are admitted (5 red, 3
  controls green).
- os validate: an unsuffixed pair rule and a same-named pair rule in a
  two-package artifact validate clean (2 red, 1 control green).
- Studio: a customer rule's minted and message-derived names carry no
  suffix (2 red, controls green).

Claude-Session: https://claude.ai/code/session_01L9qibwdYYXynLJaFrerhYo
Co-authored-by: Claude <noreply@anthropic.com>
…d never takes a package rule's name

Ruling 7411414171 (B): a validation rule a customization pair's object
extension adds may not carry a package rule's name, and its name ends in the
customer suffix `__c`, the one ruled for picklist extension values.

- spec: `EXTENSION_FIELD_SUFFIX` / `isExtensionFieldName` are documented as
  the one spelling for this rule name too (no second constant); the
  protocol-19 D3 notice `pair-validation-rule-suffix` is registered, with its
  coverage-table row (deployment).
- metadata-protocol: `objectExtensionItemRefusal` step 9 asks the new
  `judgePairValidationRuleNames` (exported): `400 VALIDATION_ERROR` at
  `validations[N].name` for a rule another package ships for the target,
  or for an unsuffixed one, in a `.custom` package.
- cli: `os validate` and `os build` ask the same judge over the artifact's
  packages (`findPairValidationRuleNameRefusals`), the parity ledger names it.
- objectql: the fold hands `mergeValidationsByName` the package rule names
  for a `.custom` extender, which leaves its same-named copy out, so the
  package's rule runs; each stored copy is reported once at error
  (`registry-pair-validation-rules.ts`). Code-layer D9.2a replacement is
  unchanged.
- Studio: on an installed object the minted and message-derived names of a
  customer rule end in `__c`; #39581's package-name refusal stays.
- docs: object-extensions.mdx no longer says pair rules are concatenated and
  neither replaces the other.
- runtime fixtures that saved unsuffixed rules into a `.custom` pair are
  respelled with `__c` (the narrowing's own consequence).

Claude-Session: https://claude.ai/code/session_01L9qibwdYYXynLJaFrerhYo
Co-authored-by: Claude <noreply@anthropic.com>
The packagedRuleNames pass-through shares the tenantRules line and the
docblock points to mergeValidationsByName, which carries the rule.

Claude-Session: https://claude.ai/code/session_01L9qibwdYYXynLJaFrerhYo
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 4 package(s): @objectstack/cli, @objectstack/metadata-protocol, @objectstack/objectql, @objectstack/spec, touching 48 documentable anchor(s). ⚠️ 2 changed file(s) yielded no anchor (packages/metadata-protocol/src/index.ts, packages/spec/src/data/field-customization.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

40 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json a5ca373f895e36268258ca2531c1f7166a4c9577.

⛔ 15 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 2 changed file(s) yielded no anchor (packages/metadata-protocol/src/index.ts, packages/spec/src/data/field-customization.ts) — pages documenting those are invisible to this run
  • 2 anchor(s) matched too much of the corpus to be a work list: VALIDATION_ERROR (literal, 40 pages), os validate (command, 102 pages)
  • 8 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 195 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json a5ca373f895e36268258ca2531c1f7166a4c9577 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 26eba5421e5ad4ff77d3793b475d4de0dd0ebdfc — the merge of head 482580a1e6e76432fb196e2cb58c4b2adb321fc1 into base a5ca373f895e36268258ca2531c1f7166a4c9577, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 26eba5421e5ad4ff77d3793b475d4de0dd0ebdfc && git checkout 26eba5421e5ad4ff77d3793b475d4de0dd0ebdfc
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin a5ca373f895e36268258ca2531c1f7166a4c9577 482580a1e6e76432fb196e2cb58c4b2adb321fc1 && git checkout -B drift-repro a5ca373f895e36268258ca2531c1f7166a4c9577 && git merge --no-ff 482580a1e6e76432fb196e2cb58c4b2adb321fc1

node scripts/docs-audit/affected-docs.mjs --json a5ca373f895e36268258ca2531c1f7166a4c9577

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs a5ca373f895e36268258ca2531c1f7166a4c9577 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract-review-claim: session_01L9qibvPFnj3TkGq8ps2Jgv · head f390b63 · 2026-12-04T15:45Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f390b6360fe2ccd63f6c3de9ecf9835c7569a41f
Local-runs: none
Scope: packages/spec/src/data/field-customization.ts, packages/spec/src/migrations/entries/semantic/19.pair-validation-rule-suffix.ts + packages/metadata-protocol/src/protocol-object-extension-item.ts, packages/metadata-protocol/src/index.ts, packages/objectql/src/registry-top-level.ts, packages/objectql/src/registry.ts, packages/objectql/src/registry-object-registration.ts, packages/objectql/src/registry-pair-validation-rules.ts, packages/cli/src/utils/extension-arrangement.ts, packages/cli/src/commands/validate.ts, packages/cli/src/commands/compile.ts, ui/packages/app-shell/src/views/studio-design/pairValidations.ts, ui/packages/app-shell/src/views/studio-design/ObjectValidationsPanel.tsx

Inputs read: card #39661 (body and all six comments: ruling 7411414171, claims 7411617557 / 7411659671 / 7415454372, reading 7415462403, os-dev-report 7415475737), PR #39729 (body, 28 files, net diff against main at this head, read from the head tarball over REST), and the 87 check-runs on this head. The rest of the diff (five changesets, object-extensions.mdx, eight test files) is the lane seat's ACCEPT at TIER_DEFAULT.

Check-runs on this head, as read: 67 completed success, 17 skipped, 3 in progress. The three in progress are Dogfood battery shard (1/3, opt-in), (2/3, opt-in) and (3/3, opt-in); they carry no verdict yet, and the needs:dogfood-battery run the PR owes is therefore NOT yet answered by this record. Success includes Test Core (12/12 shards), Test UI (16/16), Type Check UI, TypeScript Type Check, Type Check · workspace, Check Changeset (3 runs), Spec property liveness, Lint & Repo Gates, Dogfood Regression Gate, v18 → v19 source upgrade, Governed Surface Queue Guard.

① Derived judgments

  1. Accept set of the object_extension item, narrowed, in a .custom package only. A rule whose name a non-.custom contributor of the target ships, or whose name does not end in __c, is refused 400 VALIDATION_ERROR with one issue per rule at validations[N].name. Right: it is ruling 7411414171 (B) term (2). The one gate (objectExtensionItemRefusal, step 9) is reached from all three doors, read in the tree: save (protocol-save.ts:1463, file untouched), publish (protocol-history-and-publish.ts:1215) and restore (protocol-authoring-gate.ts:140). The PR body says the publish path was not traced; it is covered.
  2. os validate and os build, narrowed the same way. Both call findPairValidationRuleNameRefusals, which hands the artifact's packages to the door's own judge; os build writes no artifact. Right, and the parity ledger row is there. The walk reads package rules only from packages the artifact carries, which its docblock says.
  3. Served rule set, changed for stored rows. A stored .custom rule under a package rule's name is left out of the fold and named once at error; nothing throws. Right: this is the load path ruling 6545641964 prescribes, and the vendor-upgrade case is pinned.
  4. Not narrowed, each right under the ruling: a package that is not .custom; an extension of the .custom package's own object; a vendor rule that happens to end in __c; the object door's tenant copy (C′, tenantRuleSettings / withPackagedOwnerRules), which this diff does not touch.
  5. Public surface, widened, and not declared. @objectstack/metadata-protocol's index gains judgePairValidationRuleNames, pairValidationRuleNameRefusalError and the types PairValidationRuleNameRefusal, PairValidationRuleNameRule, PairValidationRuleNameSubject. See S2.
  6. @objectstack/spec: no schema, key or export changes. One docblock and one new protocol-19 semantic entry with its STAYS_LISTED row (deployment). Right; no tombstone is owed because no key leaves.
  7. Studio: names the panel derives on an installed object now end in __c; a typed name is not suffixed and is refused at Save. Right for term (3)'s "Studio derives suffixed names".

② Semver level

Five changesets, each minor, on @objectstack/spec, metadata-protocol, objectql, cli and @object-ui/app-shell. Metadata-protocol: narrowed is right (a requirement tightened on what an author can write), and a kind takes at least minor on each package the diff moves, so the level is right. Each changeset carries both declaration lines, the BREAKING banner, the FROM → TO migration and exactly one ADR-0087 marker (registered pair-validation-rule-suffix); the entry exists and Check Changeset is green.

Clause-②: the (narrowing) arm and the ! title agree, and the arm is right. The VALUE no is not: see S2. The level, the banner and the ADR-0087 disposition are the same under either value.

③ Boundary flags

  • open_questions 1 (stored rename has no ADR-0087 vehicle): answered by reading 7415462403, option A. The rename moves to follow-up upgrade: rename a customer's unsuffixed pair validation rule to NAME__c in stored .custom object_extension rows #39731 (open, read: "upgrade: rename a customer's unsuffixed pair validation rule to NAME__c in stored .custom object_extension rows"), the PR body names it, so Fixes #39661 stands under that reading.
  • Six files outside the first claim surface: answered by claim amendment 7415454372, which names each.
  • protocol-save.ts excluded by the claim: held. The file is not in the diff and the door is closed through objectExtensionItemRefusal.
  • ADR-0146 D10 note (term 1): the maintainer's hand, not in this PR, as the claim says. Not judged here.
  • Skills (Skills-docs: follow-up #39730): the card exists and is open. Answered.
  • Marketplace install door does not ask the rule-name judge (dev: "carrier: none"): accepted for this PR, because ruled term (2) names the save door and os validate, and the fold still gives the package's rule to a held name. Escalated as a carrier request, not a finding on this head: the sibling judges (__c field suffix, arrangement, field-patch targets) are all asked at install, and an installed .custom artifact with unsuffixed rule names is admitted today. One follow-up card should carry it; upgrade: rename a customer's unsuffixed pair validation rule to NAME__c in stored .custom object_extension rows #39731 is a natural home.
  • A vendor package shipping a rule name ending in __c is not refused: outside ruling (B); the fold and the door both give the package the name. Accepted.
  • Query-options ratchet decrease at http-dispatcher.ts: not in this diff. No action here.
  • SQL push-down: no query, no id materialisation and no in-app join is added. Nothing to flag.

④ Design judgment

packages/spec/src/data/field-customization.ts (hits). Holds. EXTENSION_FIELD_SUFFIX stays the only definition of the suffix; the diff adds no constant. Read across packages/*/src and ui/packages/*/src at this head: the only quoted __c literal that is a value is this one. Every judge reads it or isExtensionFieldName: the door (judgePairValidationRuleNames and both sentences), the fold's report (registry-pair-validation-rules.ts), Studio (customerRuleSuffix). The CLI spells __c only inside a printed headline, as the existing field-suffix headline at validate.ts:953 does; that is prose, not a second spelling of the rule.

19.pair-validation-rule-suffix.ts (hits). Holds against the code, sentence by sentence: the three doors and their envelope, os validate / os build, the stored copy left out and named [pair_validation_rule_name_held], the unsuffixed stored rule of a free name that still runs and blocks its extension's next save. Notice-only is right under ADR-0087 D3 and reading 7415462403.

Save door (protocol-object-extension-item.ts). Agrees with the ruling. held_by_package is judged before unsuffixed_in_pair, so a held name gets the sentence that says why. The door's package-rule set (every contributor that is neither the writing package nor a .custom one) is a superset of the fold's (own and extend contributors that are not .custom), so nothing the door admits is dropped by the fold for a reason the door did not see. Tried to break it: a suffixed name a package already holds is refused (pinned); no registry still judges the suffix (pinned); the pair's own object is skipped through the owner the registry answers.

Fold (registry-top-level.ts, registry.ts, registry-object-registration.ts, registry-pair-validation-rules.ts). Agrees. mergeValidationsByName filters only when packagedNames is passed, and the single call site passes it only for a contributor whose package id is .custom. Every other extend contributor takes the path it took on main, byte for byte, and packagedRules() still calls the merge with no names, so D9.2a code-layer replacement is unchanged (the control test pins it). The package names are computed once over all contributors before the loop, so fold order and declared priority cannot let a .custom rule slip in ahead of a later code layer of the same name. withPackagedOwnerRules reads the owner's rules only, so the tenant-overlay base cannot carry a pair copy back in. The report follows reportChangedRuleCopies (same set, console.error, once per copy).

CLI (extension-arrangement.ts, validate.ts, compile.ts). Agrees. Object names are matched by name, as findFieldPatchTargetRefusals already does. A single .custom stack is judged for the suffix only, which the docblock states.

Studio (ObjectValidationsPanel.tsx, pairValidations.ts). Derived names: agree. One disagreement:

S1 (should-fix) — pairValidations.ts still decides which served rules are the package's by subtracting every name the pair declares (packageRulesOf, and the docblock paragraph "Which served rules are the package's": "A served rule is the customer's when the buffer declares its name … Every other served rule is the package's"). That was true on main, where a pair rule replaced the package rule of its name. On this head the fold leaves a stored pair copy out and serves the package's rule, as the same file's next paragraph now says. So in exactly the case the ruling is about (a stored same-named copy, or a vendor upgrade that takes a customer rule's name), the panel does not list the package's rule, shows the pair's copy as the customer's own rule (with active: false if that is what was stored), and lockedNames does not hold the name, so the #39581 refusal does not fire. The customer reads a rule as theirs, or as switched off, while the package's rule is what runs; they learn otherwise only from the 400 at the next Save. The served rule under a held name must be listed as the package's and the pair's copy marked as not running (or at least named as taken), and the docblock paragraph corrected. Read from the code, not run.

S2 (should-fix) — Clause-②: no (narrowing) answers "does this widen the accept set or enlarge the public surface" with no, while the diff adds five public exports to @objectstack/metadata-protocol (derived judgment 5), which the metadata-protocol changeset itself announces ("The judge is exported as …"). The repository's own precedent for this exact shape is yes (narrowing): 447a2a6 (#28724, the __c field rule, which exported judgeExtensionFieldSuffix) and 7e1b2b9 (the non-pair arrangement refusal, which lists its export changes) both declare it, and clause2-line.mjs defines yes (narrowing) as "a diff that widens one surface and narrows another. Both facts are true and both are read." The PR body and the metadata-protocol changeset should read Clause-②: yes (narrowing). No level, banner or ADR-0087 disposition changes with it. The claim's no (narrowing) was written before the export existed (the index file was outside the first claim surface).

Nits (no effect on correctness or the contract; none needs a head move):

Answers to the owning zone's questions:

  • Does the fold leave code-layer extend replacement (D9.2a) unchanged and only stop pair-layer replacement or disabling? Yes. The filter runs only for a .custom extend contributor and only over names a non-.custom own or extend contributor ships; a code layer's same-named rule still replaces an earlier one, and the pair's rules of other names still add.
  • Exactly one __c suffix constant that every door reads? Yes: EXTENSION_FIELD_SUFFIX in field-customization.ts. No copy in the door, the fold, the CLI walk or Studio. __c appears elsewhere only in printed prose and notice text.
  • Is Clause-②: no (narrowing) right, given the ! title? The (narrowing) arm and the ! are right and consistent. The value should be yes (S2).

Implemented-by: claude/project-thread-qgdeik
Reviewed-by: session_01L9qibvPFnj3TkGq8ps2Jgv (isolated sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Filled brief handed to the isolated at-tier reviewer whose record is the comment above (adopted by this L1-a thread):

Contract review brief — PR #39729 @ f390b6360fe2ccd63f6c3de9ecf9835c7569a41f (card #39661)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths packages/spec/src/data/field-customization.ts packages/spec/src/migrations/entries/semantic/19.pair-validation-rule-suffix.ts — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #39661: its body and EVERY comment (rulings and earlier records included)
· PR #39729: its body, its file list, and the net diff against main at f390b6360fe2ccd63f6c3de9ecf9835c7569a41f
· the check-runs on f390b6360fe2ccd63f6c3de9ecf9835c7569a41f: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/data/field-customization.ts, packages/spec/src/migrations/entries/semantic/19.pair-validation-rule-suffix.ts;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/f90b304d-2703-5b33-b155-97489671c85a/scratchpad/pr-39729/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

The PR declares Clause-②: no (narrowing) and Metadata-protocol: narrowed; it narrows the pair door, os validate,
the fold and Studio, so the implementing files across metadata-protocol, objectql, cli and app-shell are in scope.
Ruling 7411414171 (B, terms (2)–(4)) lives on card #39661; term (3) was settled to follow-up #39731 by reading 7415462403.
Questions the owning zone asked to have judged (answer each, do not assume a verdict):
· Does the fold leave code-layer extend replacement (ADR D9.2a) unchanged and only stop pair-layer replacement or
disabling of a package rule?
· Is there exactly one __c suffix constant that every door reads, or are there copies?
· Is Clause-②: no (narrowing) right for this narrowing (given its ! title)?

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

L1-a · REWORK · #39729 @ f390b6360f · Area: ot-build · read 2026-12-04T15:54Z

…he package's, the pair copy held

Contract review S1 on #39661: the Validations tab still decides which
served rules are the package's by subtracting every name the pair declares.
Under ruling 7411414171 (B) the fold leaves a pair copy under a package
rule's name out and serves the package's rule, so the panel showed the
copy as the customer's live rule and did not lock the name.

Read red on f390b63:
- usePairRules: a published held copy, a vendor upgrade taking a published
  name, and a draft-only held copy each leave the package's rule out of
  packageRules (3 red). CONTROL legacy free unsuffixed rule green. CONTROL
  "removed by the draft" is red on this head only because the pins hand
  publishedRules as a name -> rule map, the shape the fix reads.
- ObjectValidationsPanel: no row marks the held copy, and its row cannot
  be selected apart from the package's (3 red).

Claude-Session: https://claude.ai/code/session_01L9qibwdYYXynLJaFrerhYo
Co-authored-by: Claude <noreply@anthropic.com>
… package's; the pair copy is held

Contract review S1 on #39661. The fold never lets a .custom pair's rule
replace or switch off a package rule: a pair copy under a name a package
ships is left out and the package's rule is served. The Validations tab
now matches that:

- pairValidations: a served rule is the pair's only when the published
  extension declares its name AND the served rule is that published copy,
  compared as the rules run (spec parse fills defaults, expressions read by
  source, loader stamps dropped). Every other served rule is the package's,
  a draft-only name included. The served object names no package per rule,
  so this is the panel's only witness. The docblock paragraph "Which served
  rules are the package's" is rewritten to say so.
- DataPillar hands the published rules by name (rulesByName), not names.
- ObjectValidationsPanel: a customer rule under a locked name is listed
  beside the package's rule, named as taken (the existing
  nameTakenByPackage sentence, list row and editor), and stays editable so
  it can be renamed or deleted. A package rule is selected by its own key,
  since the two share a name; a package rule's CEL verdict is never counted
  as the customer's.

Claude-Session: https://claude.ai/code/session_01L9qibwdYYXynLJaFrerhYo
Co-authored-by: Claude <noreply@anthropic.com>
… a new public export

Contract review S2 on #39661: @objectstack/metadata-protocol now exports
judgePairValidationRuleNames, pairValidationRuleNameRefusalError and their
three types, so the diff widens one surface while it narrows what an author
can write. Every changeset of this PR carries the same line. The app-shell
note also says what the Validations tab shows for a copy stored under a
package rule's name.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract-review-claim: session_01L9qibvPFnj3TkGq8ps2Jgv · head 4f9d36d · 2026-12-04T17:04Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4f9d36dac696da5857e9c241f434999555c8b96e
Local-runs: none
Scope: packages/spec/src/data/field-customization.ts, packages/spec/src/migrations/entries/semantic/19.pair-validation-rule-suffix.ts + ui/packages/app-shell/src/views/studio-design/pairValidations.ts, ui/packages/app-shell/src/views/studio-design/ObjectValidationsPanel.tsx, ui/packages/app-shell/src/views/studio-design/DataPillar.tsx

Delta record. It covers the three commits f390b6360fe2ccd63f6c3de9ecf9835c7569a41f...4f9d36dac696da5857e9c241f434999555c8b96e (efa3238b73 red pins, e354de0153 Studio fix, 4f9d36dac6 changesets; 10 files, read over REST) on top of record 7416563447, whose judgments on every file this delta does not touch stand: the two hits files and the metadata-protocol, objectql and cli implementing files are byte-identical to the head that record read. Also read: claim amendment 7416599320, delta os-dev-report 7417517750, the PR body at this head, and the 81 check-runs on this head. The two Studio test files and the five changesets are the lane seat's ACCEPT at TIER_DEFAULT.

Check-runs on this head, as read: 69 completed success, 11 skipped, 1 cancelled, none in progress, none failed. The cancelled run is PR-body guards (claim · duplicate · Part-of · single-writer path) started 16:29:56Z; the same check has a later run, started 16:30:25Z, concluded success. Dogfood battery (opt-in) and its shards 1/3, 2/3 and 3/3 are success on this head, so the battery the PR owed is answered here. Test UI, Type Check UI, Live E2E UI, Check Changeset and Governed Surface Queue Guard are success.

① Derived judgments

No accept-set or public-surface change beyond record 7416563447's seven. The delta changes what Studio's Validations tab lists, and one app-shell-private helper (ruleNamesOf becomes rulesByName; PairRulesBuffer.publishedRules becomes a map). Neither is a published export of the package. Right.

② Semver level

Unchanged and right: five minor changesets, Metadata-protocol: narrowed. Clause-②: yes (narrowing) now stands in all five changesets and in the PR body, read at this head; Check Changeset is success. The app-shell changeset gains one sentence on the held copy, which agrees with the tree.

③ Boundary flags

  • open_questions: none in report 7417517750.
  • DataPillar.tsx (4 lines, outside the files the order named): NOT covered by claim amendment 7416599320, which names pairValidations.ts packageRulesOf, the pin and the docblock, and no third file. Only the dev's report declares it. The change itself is the mechanical consequence of the fix (the one place the published rules are built now passes them by name), stays in the same Studio directory, and the single-writer-path guard is success on this head. It owes one line in a claim amendment on the card; that is a comment, not a head move, and no finding on the tree.
  • Dev flag, "the served object carries no per-rule provenance" (carrier: objectstack, not filed): see N5. It needs a card; the note alone is not a carrier.
  • Dev flag, the held mark reuses engine.studio.rules.nameTakenByPackage (carrier: none): see N6.
  • Install door: the amendment says the seat notes it on upgrade: rename a customer's unsuffixed pair validation rule to NAME__c in stored .custom object_extension rows #39731. Accepted as record 7416563447 left it.
  • SQL push-down: nothing in the delta queries anything.

④ Design judgment

S1: closed
S2: closed

No must-fix, no should-fix.

S1, read in the tree. packageRulesOf now subtracts a served rule only when the pair's PUBLISHED extension declares its name and the served rule equals that published copy as it runs (sameRule: _ stamps and unset keys dropped, an expression envelope read as its source, defaults filled by the spec's own ValidationRuleSchema). The three cases the finding named hold and are pinned: a published held copy, a vendor upgrade taking a published name, and a draft-only copy all leave the package's rule in packageRules, so it is listed locked and lockedNames holds the name. The panel lists the customer's copy beside it, marks it with the taken sentence in the row and the editor, and keeps it editable. Because two rows now share a name, a package row is selected by package:NAME, edits and type changes resolve against the customer's lists only ([...rules, ...unsaved]), and a package rule's CEL verdict is no longer reported under the customer's name. The docblock paragraph is rewritten and now agrees with the fold. Tried to break it: an edit to a published rule that is not yet published still reads as the pair's (the comparison is against the published copy, never the buffer); a rename in the draft leaves the old published name the pair's until Save; the served side is the authored layer (authoredObjectBuffer), not the translated read, so a localized message does not split the two.

The stated limit (a copy identical to the package's rule reads as the customer's): acceptable. In that case the panel shows one rule whose condition, message and switch are exactly what the object enforces, so nothing about enforcement is misread; only its owner is, and the door still refuses the name at Save with the rename. It is said in the docblock, the changeset and the PR body.

S2, read in the tree. Closed as ② says.

Nits (no effect on correctness or the contract):

Implemented-by: claude/project-thread-qgdeik
Reviewed-by: session_01L9qibvPFnj3TkGq8ps2Jgv (isolated sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

L1-a · ACCEPT · #39729 @ 4f9d36dac6 · Area: ot-build · read 2026-12-04T17:10Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

维护者速读

Seat opinion: ACCEPT. Terms (2)–(4) of ruling 7411414171 are here; term (3)'s stored rename moved to #39731 by reading 7415462403 (execution, not a change of the ruling), with the install door added to that card.

席位核对

ACCEPT · head 4f9d36dac696da5857e9c241f434999555c8b96e · 2026-12-04T17:12Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

2026-12-04T17:12Z · Hand-off: PR #39729 awaits the maintainer's approval (Tier H); seat record above.

@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 Dec 4, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 4, 2026 17:13
@os-zhuang
os-zhuang marked this pull request as ready for review December 4, 2026 23:00
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 4, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 4, 2026
…e merge with main

The merge-queue run for #39729 went red on check:facade-delegation-only (N6):
main's #39668 added one line to packages/objectql/src/registry.ts and this
branch added one (the packagedRuleNames parameter), so the merged facade was
6427 lines against its 6426 ceiling. The added parameter now shares the line
of the ownFields parameter before it, so this branch adds no net line to the
facade. No behaviour change; the ceiling is not raised.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract-review-claim: session_01L9qibvPFnj3TkGq8ps2Jgv · head 482580a · 2026-12-05T00:13Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 482580a1e6e76432fb196e2cb58c4b2adb321fc1
Local-runs: none
Scope: packages/spec/src/data/field-customization.ts, packages/spec/src/migrations/entries/semantic/19.pair-validation-rule-suffix.ts + packages/objectql/src/registry.ts, packages/metadata-protocol/src/protocol-object-extension-item.ts

Second delta record. It covers 4f9d36dac696da5857e9c241f434999555c8b96e...482580a1e6e76432fb196e2cb58c4b2adb321fc1: the merge of origin/main at a5ca373f89 (merge commit cf3130971b) and 482580a1e6. It sits on records 7416563447 and 7418526065, whose judgments stand for every file named below as unchanged. Read over REST: the PR's 30-file list and net diff against the new base, the blob of each of the 30 files at both heads, the head tarball, claim amendment 7418579145, os-dev-report 7427997400, and the 77 check-runs on this head.

Check-runs on this head, as read: 68 completed success, 9 skipped, none failed, none cancelled, none in progress. Dogfood battery (opt-in) and its shards 1/3, 2/3 and 3/3 are success.

① Derived judgments

No accept-set or public-surface change against the head record 7418526065 read. The PR's own contribution is unchanged in 27 of its 30 files (same blob at both heads), the two hits files among them. The three that differ:

  1. packages/metadata-protocol/src/protocol-object-extension-item.ts: the only difference is four lines main brought in from feat(metadata): stored picklist_extension item (#39536 step 2); PATCH /packages/:id refuses unread body keys (#39576) #39668 inside listSlotNameOf (a picklist_extension body is slotted under the list it extends). The PR's hunks are the same added and removed lines, shifted four lines down. Right.
  2. packages/spec/src/migrations/semantic-relevance-coverage-38929.test.ts: the PR's four-line row is the same; only its neighbouring context row came from main. Right.
  3. packages/objectql/src/registry.ts: see ④ (c).

② Semver level

Unchanged and right: five minor changesets, each with Clause-②: yes (narrowing), Metadata-protocol: narrowed and exactly one ADR-0087 marker, read in the net diff at this head; the PR body carries the same pair. Check Changeset is success.

③ Boundary flags

  • DataPillar.tsx outside the claim (raised in record 7418526065): answered by claim amendment 7418579145, which names the file.
  • Dequeue cause (report 7427997400): check:facade-delegation-only read registry.ts at 6427 lines against a ceiling of 6426 after feat(metadata): stored picklist_extension item (#39536 step 2); PATCH /packages/:id refuses unread body keys (#39576) #39668 and this PR each added one line. Read at this head: the file is 6426 lines. Answered by 482580a1e6.
  • N5 and N6 of record 7418526065: the seat record says a card is filed by the seat. Not re-judged here.
  • SQL push-down: nothing in this delta queries anything.

④ Design judgment

No must-fix, no should-fix.

(a) The merge resolution holds. The PR's net diff against the new base is what was reviewed: 27 files byte-identical to the reviewed head, and the three above differ only by main's own lines or by the line join. The conflict-prone files resolved correctly: registry.ts keeps both #39668's storedPicklistExtension line and this PR's parameter; the coverage test keeps both rows; field-customization.ts is the same blob, so the EXTENSION_FIELD_SUFFIX docblock is unchanged; protocol-object-extension-item.ts keeps step 9 and the judge whole beside #39668's four lines. registry-object-registration.ts, registry-top-level.ts and registry-pair-validation-rules.ts are the same blobs, so the fold is the one record 7416563447 judged.

(b) No conflict with what main brought in.

(c) 482580a1e6 is behaviour-free. Its whole diff is one hunk in registry.ts: the packagedRuleNames parameter of mergeObjectDefinitions moves onto the ownFields line. Same parameter, same order, same type, same call.

Nits:

Implemented-by: claude/project-thread-qgdeik
Reviewed-by: session_01L9qibvPFnj3TkGq8ps2Jgv (isolated sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

L1-a · delta ACCEPT · #39729 @ 482580a1e6 · Area: ot-build · read 2026-12-05T00:17Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

2026-12-05T00:18Z · Seat record · land PR #39729 (#39661) at head 482580a1, after it was dequeued with CI_FAILURE.

  • Dequeue cause: registry.ts was one line over its 6426 ceiling after feat(metadata): stored picklist_extension item (#39536 step 2); PATCH /packages/:id refuses unread body keys (#39576) #39668 merged. The fix is a behaviour-free line join on the main merge (delta report 7427997400).
  • Readings: CI 68 success / 9 skipped / 0 failed; dogfood battery green; mergeable clean; K = 1 (landing-k).
  • Delta L2 PASS 7428088583 (no must-fix, no should-fix); L1-a delta ACCEPT 7428099138; maintainer APPROVED review by os-zhuang at this same head 482580a (2026-12-04T23:43Z).
  • Landing authority: the maintainer, seat thread 2026-12-04T08:56Z, verbatim 「审批人批准后的 Tier H PR 你可以自主落地」.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 5, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 5, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

2026-12-05T00:40Z · Seat record · re-queue PR #39729 (#39661) at the same head 482580a1. This is the one allowed re-run.

  • Dequeued 2026-12-05T00:32Z with CI_FAILURE (queue run 47453537297). The only failing step was node scripts/ci/snapshot-next.mjs --self-test, and in it only one ⛔ live: case, which reads GitHub runs that are still in flight. At that moment the release smoke run 47453300932 for 56bed06 was still running. It has since completed successfully.
  • This PR touches no scripts/ci or release file. Head, reviews and the maintainer's approval are unchanged (L2 PASS 7428088583, L1-a ACCEPT 7428099138, os-zhuang APPROVED at 482580a).
  • If the same live case goes red again, the seat files a card against the snapshot-next live self-test, not a change in this PR.
  • Landing authority: the maintainer, seat thread 2026-12-04T08:56Z, verbatim 「审批人批准后的 Tier H PR 你可以自主落地」.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 5, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 5, 2026

This branch has not been deployed

No deployments
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 needs:dogfood-battery pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:data size/xl tests 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.

[Decision] 定制包里客户验证规则与厂商规则重名:拒收、强制后缀,还是允许改提示语和停用?

3 participants