Skip to content

fix(lint): the object_extension publish door refuses an extension field under a label its target already shows, or another field of the same extension shows (field-label-duplicate) - #34132

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-5bqffu
Nov 16, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-5bqffu

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #33644

Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none owed — this PR edits content/docs/deployment/validating-metadata.mdx (the object extension door paragraph names the rule); os explain field-label-duplicate names the door; skills/objectstack-data teaches defineObjectExtension({ extend, fields }) and reusing owner_id instead of a second owner field without saying the runtime door is exempt, so the door now gives the verdict the build already gives.

维护者速读

  • 改了什么:运行时发布扩展对象(Studio 加字段、/meta 写入、MCP/AI 作者)时,也检查"同一对象出现两个同名标签的可见字段";扩展新加的字段若和目标对象已有字段(含平台的 owner_id)同名标签,或同一扩展里两个字段同名标签,发布被拒(422)。
  • 为什么改:这条规则原来只拦 object 写入,扩展写入不拦,于是扩展可以在别人的对象上加出第二个"负责人"列,列表、卡片、表单里两列同名分不清。
  • 风险与回滚:只收紧扩展发布门;只追究这次扩展新造成的冲突,目标对象原有冲突不算它的,扩展把原有冲突变小(拿走其中一个字段)也不算;一方示例(showcase、plugin-auth 各一条扩展)实测零命中。回滚 = revert 本 PR。
  • 先看:packages/lint/src/lint-duplicate-field-labels.ts(duplicateFieldLabelFindings 的两项门输入);packages/lint/src/authoring-rules.ts(lintDuplicateFieldLabels 条目加 object_extension);packages/lint/src/runtime-gate.object-writes.test.ts(新 describe 的十一条用例)。
  • 两分钟验证:pnpm --filter @objectstack/lint exec vitest run src/runtime-gate.object-writes.test.ts -t "object_extension door refuses",预期 11 条全绿。
  • 需要你做的:无,席位落地。

What changes

  • lintDuplicateFieldLabels (field-label-duplicate) joins the object_extension publish door (runtimeTypes: ['object', 'object_extension']).
  • On that door the rule judges the target as it will be served after the write: the door already hands the target as served without the written package's own stored extension; the rule folds the written entry among the target's other packages' extensions by priority (ctx.storedObjectExtensions, the build's fold, so a field two packages tie on is left out as at the build), and reads the served objects back to their authored shape (stripInjectedSystemColumns, keyed on ctx.runtimeWriteType === 'object_extension', the argument validateStackExpressions gives for the same input), so owner_id is named as the platform's column exactly as the build names it.
  • The published signature of lintDuplicateFieldLabels(stack) is unchanged; the door inputs go through the module-internal duplicateFieldLabelFindings(stack, options), which is not on any package entry.
  • The gate's existing differential charges the write only with a clash its entry creates; no gate code changed (one comment in runtime-gate.ts). On this door the rule also drops a candidate clash whose fields are a subset of a clash the target already serves before the write: an entry that takes a member out of a three-member clash (relabel, hide, or a priority tie) changes the group's message, so the fingerprint differential alone would charge it for what is left.
  • An entry whose own two fields share a label is refused the same way, whether or not the target shows that label (the build already refuses it; the semantic entry, changeset and docs now name this arm).
  • The door reads no translation bundle, so the refusal's remedy (semantic entry replacement, changeset Migration line, docs) is to give the field a label of its own or reuse the platform column, and on this door the finding's hint drops the build's "(in the translation bundle too …)" clause; os build / os validate judge a bundle that translates the label apart.
  • The before-write snapshot that the shrink rule reads is computed only for the objects the written entry extends (verdicts unchanged).
  • os explain field-label-duplicate and content/docs/deployment/validating-metadata.mdx name the door.
  • ADR-0087 semantic entry object-extension-door-field-label-duplicate-refused (registered), changeset .changeset/33644-object-extension-door-label-duplicate.md (lint + spec minor).

Premise reading: the card's "the TARGET's next object save is refused for a clash the extension created" holds at os build (the stack's extensions fold onto a declared target), not at the publish door: an object write judges the body it sends, which carries no extension fields. The door pin below reads it.

Tests

New top-level describe in runtime-gate.object-writes.test.ts (the rule's door harness), each a real reading through runRuntimeAuthoringRules:

  1. ⭐ an extension field labelled 负责人 beside the injected owner_id is REFUSED: where object "xl_ticket", wire path objects.xl_ticket.fields, message names both fields, the label and locale zh-CN, and is byte-identical to the build's finding over the same entry; an extension field labelled like a target field (Subject) is refused in the authored pass.
  2. unrelated extension writes (Escalation Level; assignee labelled 处理人; assignee labelled 负责人 with hidden: true) are not charged.
  3. the target's own object save after a refused extension write is clean (lintDuplicateFieldLabels ran, zero errors).
  4. a target that already carries a clash (phone/mobile both Phone, the build reports it) is not charged to an unrelated extension write; an entry that joins the clash is charged ('fax', 'mobile' and 'phone').
  5. priority fold: a tie with another package's extension is left out at the build and at the door (with storedObjectExtensions); without the stated extensions the door would refuse it; a higher priority (210) is refused.
  6. the rule is on both doors.
  7. an entry that shrinks a three-member clash the target already serves (phone/mobile/fax all Phone; the entry relabels or hides fax at priority 210, or ties it at 200) is not charged; a swap that takes fax out and puts headline under Phone is charged.
  8. a clashing extension already stored is folded onto the served target by the host; the target's own object save then has zero errors, and the build reports the clash on object "xl_ticket".
  9. ⭐ an entry whose own a__c and b__c are both labelled Region, on a target that shows no Region, is refused; the message names both fields and equals the build's; the same fields under labels of their own publish.
  10. the door's hint for a clash only zh-CN shows does not mention a translation bundle; the build's hint over the same entry still does.

Forced test edits (each because the rule now runs on this door):

Acceptance notes

  • HotCRM extensions: not measured (outside this session's repository scope).
  • The CLI judges an extension's clash only when the stack declares the target; an app extending another package's object is judged at the door only. Unchanged by this PR.

Verification

All readings at head 4fa9c1cd (branch point f81e4b6c).

Package tests
  • pnpm --filter @objectstack/lint test: Test Files 212 passed (212), Tests 9037 passed (9037). pnpm --filter @objectstack/lint typecheck: exit 0.
  • pnpm --filter @objectstack/spec exec vitest run src/migrations: Test Files 5 passed, Tests 198 passed.
  • Consumer pnpm --filter @objectstack/metadata-protocol test (the door's host): Test Files 342 passed, 9 skipped (351); Tests 22926 passed, 45 skipped.
  • Extension-door fixture sweep (every test file outside packages/lint that publishes or folds an objectExtensions entry): runtime 6 files / 135 tests, rest 5 / 55, objectql 8 / 343, cloud-connection 1 / 5, cli package-export 1 / 6, all passed. The dogfood files of that kind run in the battery below.
  • Consumer pnpm --filter @objectstack/cli exec vitest run --project unit (at 315696ed; round 2 touches no cli input): 421/423 files on the first run; the two reds were published-subpath-console.pin and published-subpath-hook-body.pin refusing an unbuilt packages/cli/dist (prerequisite); after the build both pass (2 files, 29 tests). Integration layer declared to CI.
  • Full dogfood battery (Clause-② carries the (narrowing) arm), pnpm --filter @objectstack/dogfood test under the lock: VERDICT command-exit 0, Test Files 467 passed, 3 skipped (470); Tests 3962 passed, 42 skipped (4004).
Ablations (one-off, through scripts/ablation-replace.mjs, restored to the HEAD blob each time)
  • Rule's runtimeTypes back to ['object']: all 7 round-1 cases of the new describe red.
  • The stored-extension fold (objectsAsServed(stack, [])): only the priority-fold case reds.
  • The served-object read-back (servedObjects branch disabled): only the owner_id case reds (the finding stops naming owner_id as the platform's column, so it no longer equals the build's message).
  • The subset drop (continue removed): only the shrink case (7) reds.
  • The door's hint clause (authored || extensionWrite back to authored): only the hint case (10) reds, 1 of 55 in the file.
First-party exposure
  • examples/app-showcase entry on showcase_account (three fields): build over object + entry + the showcase translation bundle 0 findings; door 0; a planted 负责人 user field on the same target is refused (1).
  • packages/plugins/plugin-auth entry on sys_sso_provider (oidc_client_secret): build 0, door 0; a planted field under the target's ID label is refused (1).
  • No other objectExtensions entry under examples/** or packages/** (tooling and tests aside). HotCRM: not measured.
Gates
  • node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 114 commands. All 114 exit 0.
  • dispatch-gates --ran: 114 derived, 114 run, 0 NOT-MEASURED, 0 UNRUN.
  • check-changeset-no-major --base origin/main --event over this body: exit 0 (level axis: no (narrowing) + narrowed, no package graded patch).

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. (No formatter ran; eslint --no-inline-config over the ten changed .ts files exits 0; the repo-wide run is CI's.)
  • 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. (One migration entry; check:spec-changes, check:upgrade-guide and the generated-artifact gates exit 0, nothing to commit.)
  • 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_01ADHkmTKdZ14pCk23CyRWjE

…bel rule

An extension published at runtime can add a field under a label the object
it extends already shows (owner_id included). The rule now runs on the
object_extension door too: it folds the written entry onto its target as
served, among the target's other packages' extensions by priority, and the
gate's differential charges the write only with the clash its entry creates.

Claude-Session: https://claude.ai/code/session_01ADHkmTKdZ14pCk23CyRWjE
Co-authored-by: Claude <noreply@anthropic.com>
…nd docs for the extension door

Claude-Session: https://claude.ai/code/session_01ADHkmTKdZ14pCk23CyRWjE
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 15, 2026
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/lint, @objectstack/spec, touching 14 documentable anchor(s).

4 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/data-modeling/object-extensions.mdx (via object_extension (literal, a string literal in AUTHORING_RULES; a string literal in runtimeTypes))
  • content/docs/deployment/cli.mdx (via object_extension (literal, a string literal in AUTHORING_RULES; a string literal in runtimeTypes))
  • content/docs/deployment/validating-metadata.mdx (via AUTHORING_RULES (symbol, a top-level const object), runtimeTypes (symbol, a field of const object AUTHORING_RULES), object_extension (literal, a string literal in AUTHORING_RULES; a string literal in runtimeTypes))
  • content/docs/kernel/cluster.mdx (via object_extension (literal, a string literal in AUTHORING_RULES; a string literal in runtimeTypes))

⛔ 3 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v18/18-3.mdx (via object_extension (literal, a string literal in AUTHORING_RULES; a string literal in runtimeTypes))
  • content/docs/releases/v18/18-4.mdx (via object_extension (literal, a string literal in AUTHORING_RULES; a string literal in runtimeTypes))
  • content/docs/releases/v18/18-5.mdx (via object_extension (literal, a string literal in AUTHORING_RULES; a string literal in runtimeTypes))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 4 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 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 — 173 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 dfb8ed3570b3be1cfbc3758ff791ace7c31fa1a2 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 6951bcdb2154c3fb7fa0fa3ef4d0883782ee6b37 — the merge of head 69c48313fdd44af818e43e763d239fd6b92bf608 into base dfb8ed3570b3be1cfbc3758ff791ace7c31fa1a2, 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 6951bcdb2154c3fb7fa0fa3ef4d0883782ee6b37 && git checkout 6951bcdb2154c3fb7fa0fa3ef4d0883782ee6b37
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin dfb8ed3570b3be1cfbc3758ff791ace7c31fa1a2 69c48313fdd44af818e43e763d239fd6b92bf608 && git checkout -B drift-repro dfb8ed3570b3be1cfbc3758ff791ace7c31fa1a2 && git merge --no-ff 69c48313fdd44af818e43e763d239fd6b92bf608

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

⚠️ 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 dfb8ed3570b3be1cfbc3758ff791ace7c31fa1a2 → 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

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

Contract-review-claim: session_01ADHkmQjrEpxMVxEiDUJHqC · head 315696e · 2026-11-15T20:44Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 315696ed817ba5b7da867cbbaf23854abd383e18
Local-runs: none
Scope: packages/lint/src/authoring-rules.ts, packages/lint/src/lint-duplicate-field-labels.ts, packages/lint/src/runtime-gate.ts, packages/lint/src/rule-explanations.ts, packages/spec/src/migrations/entries/semantic/18.object-extension-door-field-label-duplicate-refused.ts, packages/lint/src/lint-duplicate-field-labels.test.ts, packages/lint/src/runtime-gate.object-writes.test.ts, packages/lint/src/runtime-gate.object-formula-cycle.test.ts, packages/lint/src/runtime-gate.object-formula-writes.test.ts, packages/lint/src/validate-security-posture.runtime-surface.test.ts + none (narrowing face, no hits; every non-prose path of the diff is the floor). Read to judge them, never reviewed: packages/lint/src/object-graph.ts (objectsAsServed, objectExtensionsByTarget, objectsWithoutTiedFields), packages/lint/src/runtime-gate.ts outside the hunk (buildRuntimeWriteSnapshotSet, addedFindings, fingerprint, narrowObjectsToWriteClosure), packages/metadata-core/src/injected-system-columns.ts (stripInjectedSystemColumns), packages/metadata-protocol/src/protocol-authoring-gate.ts (objectExtensionWriteFold, otherPackagesExtensionsOf, the per-write collection gather), packages/lint/src/index.ts. Prose faces, the lane seat's ACCEPT at TIER_DEFAULT: .changeset/33644-object-extension-door-label-duplicate.md (read here for ② only), content/docs/deployment/validating-metadata.mdx.

Inputs: card #33644 body and its four comments (os-dev-report 6901067491), PR #34132 body and file list (12 files), the net diff f81e4b6c..315696ed (merge-base with origin/main), and the head's check-runs. The tree was judged, not the PR body.

Check-runs on the head, read 2026-11-15T20:49Z: 65 runs, 23 success, 10 skipped, 0 failed, 32 in progress. Green so far: Check Changeset, Governed Surface Queue Guard, PR-body guards, Spec property liveness, Check PR Size, Check Documentation Links, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Dogfood Regression Gate, the plan and filter jobs, and the Lint and Type Check leaves that finished between two readings. STILL IN PROGRESS: Test Core 1/8 to 8/8, Test UI 1/16 to 16/16, Build Core, Build and E2E UI, Live E2E UI, Type Check UI, Type Check · workspace, Type Check · debt ledger, Type Check · consumer gates, Lint and Repo Gates. This verdict does not stand in for any of them: it is a reading of the diff, and the landing needs each of them green. Test Core (7/8) was in progress, not red, at both readings, so there was no log to confirm the #34081 run-date.test.ts timeout against; nothing is claimed about it.

① Derived judgments

Accept-set changes, read off the tree:

  1. Newly refused, object_extension writes only: a write whose candidate pass yields a field-label-duplicate finding whose fingerprint (rule, where, path, message) the baseline pass does not yield. The candidate is the door's objects plus the written entry folded by objectsAsServed(stack, storedObjectExtensions); the baseline is the same objects and the same stored entries without the written entry (objectExtensions is not a context key, so the baseline holds none). That covers: an added visible labelled field sharing a label, after trim, with a visible field of the target (own, another package's extension, or an injected column) in the authored pass or in a built-in system-field locale; and an entry that joins a group the target already has (the group's names change, so the message changes).
  2. Also newly refused, and declared: a packaged re-publish of an extension whose own stored field already clashes. The door lists the target without the written package's extension (objectExtensionWriteFold, withoutExtensionsOf), so the field is absent from the baseline and present in the candidate. The changeset and the entry's acceptanceCriteria both say a stored extension is refused at its next publish. Intended.
  3. Newly refused and NOT a clash the entry creates: see S1 in ④. An entry that takes a member OUT of a group of three or more the target already serves (redefines it under another label or hidden: true at a deciding priority, or ties on it so objectsWithoutTiedFields drops it) leaves a smaller group with a different message, which the baseline does not hold. Narrow, real, unpinned.
  4. object writes: unchanged, as the card requires. The registry entry builds its options from ctx.storedObjectExtensions (set by the gate only when type === 'object_extension') and ctx.runtimeWriteType === 'object_extension'; on an object write both arms are empty and the call is duplicateFieldLabelFindings(stack, {}), the body lintDuplicateFieldLabels had. No gate code changed (runtime-gate.ts hunk is one comment).
  5. os build, os validate, os lint: unchanged. The CLI context states neither input; lintDuplicateFieldLabels(stack) delegates with no options. duplicateFieldLabelFindings and DuplicateFieldLabelOptions are not re-exported from packages/lint/src/index.ts (lines 1188-1189 name only the old three), so the published surface is unchanged, as claimed.
  6. Other rules of the object_extension door: unmoved. The roster gains one entry in registry order; servedObjects rewrites a local copy of the stack inside this rule only.

The half-corrected premise. The dev's reading is TRUE at the lint gate: on an object write buildRuntimeWriteSnapshotSet filters the stored self out of the baseline and puts the sent body in the candidate, and addedFindings never reads a finding located on the written item from the stored pass, so the target's save is judged on the body it sends and a clash living only in a stored extension's fields is not charged to it. At os build the stack's own objectExtensions fold onto a declared target and the clash is reported there (pinned: the build's message over { objects: [TARGET], objectExtensions: [item] } equals the door's). Do the pins say it? Half. The new case "the target's own object save is not blamed" gates the save against served() with NO extension field on the target, so it reads the card's literal third pin (a refused write stores nothing) and not the corrected premise (a clashing extension already stored, then the target's save). The claim holds by reading the gate; the pin does not exercise it (N3). Not read here: whether a Studio GET, edit, PUT of the target carries extension fields back in its body. That is the host's read shape, outside this diff, and would be the one way the card's original sentence holds at the door.

② Semver level

  • Changeset .changeset/33644-object-extension-door-label-duplicate.md: @objectstack/lint minor, @objectstack/spec minor. Agrees with the diff: lint carries the narrowing, spec carries one new semantic entry; no exported type or signature changes in either (checked against index.ts). Check Changeset is green on the head.
  • Clause-②: no (narrowing) on the PR body and in the changeset: agrees. No capability a consumer was declared is taken away; the door makes the build's existing refusal real on one more write type. The changeset carries the **BREAKING** accept-set narrowing paragraph and a Migration: line.
  • Metadata-protocol: narrowed on both: agrees. The object_extension publish door accepts strictly fewer bodies, with the one exception class named in S1 being a refusal too, never a widening. Nothing previously refused is now accepted: the rule only adds findings.
  • ADR-0087 entry: id object-extension-door-field-label-duplicate-refused, file under entries/semantic/ typed SemanticMigration, prefix 18. (spec and lint are at 18.5.0), sibling of 18.object-field-label-duplicate-refused and 18.object-extension-door-computed-field-expression-judged. The changeset's marker adr-0087: registered object-extension-door-field-label-duplicate-refused names the same id. Class semantic with no D2 conversion is right: which field keeps the label is the author's choice. First-party exposure statement (two entries: examples/app-showcase on showcase_account, plugin-auth on sys_sso_provider; HotCRM not measured) matches a git grep objectExtensions over examples/** and packages/plugins/** at the head, which finds those two packages and no other. The zero-clash measurement itself is the dev's and was not re-run.

③ Boundary flags

Dev deviations (five), each answered:

  1. Declaration lines copied from the claim: accepted, and they agree with the diff (②).
  2. A second rule reads ctx.runtimeWriteType: accepted. It is documented on AuthoringRuleContext beside the expression rule's identical read, keyed to object_extension only, and is the same value in every pass, so it moves no baseline.
  3. Three files beyond the delta's surface (rule-explanations.ts, a comment in runtime-gate.ts, one sentence in validating-metadata.mdx): accepted. Each states the door the rule now runs on; none is a governed path; the mdx is the lane seat's face.
  4. "nine changed .ts files" in the PR body against ten linted: accepted, a count in prose, the wider run is the true one.
  5. Attribution comment before Fixes #33644: accepted, harness-required; PR-body guards is green.

Changed pins (five files), each judged:

  • lint-duplicate-field-labels.test.ts: exact runtimeTypes pin moves from ['object'] to ['object', 'object_extension']. Must move; still exact; not weakened.
  • runtime-gate.object-formula-writes.test.ts (2) and validate-security-posture.runtime-surface.test.ts (3): exact door-roster pins gain lintDuplicateFieldLabels in registry order. Must move; still toEqual on the whole roster; not weakened.
  • runtime-gate.object-formula-cycle.test.ts: the extension field gets label E. Must move: the helper formula() labels every field F, the target's f_x and f_y already share it, and the entry would join that group, which this door now charges (the "joins" arm). The assertion is unchanged (errors equals []) and still reads the cycle differential it was written for. Not weakened.
  • runtime-gate.object-writes.test.ts: additive, one describe of seven cases. See N3 for the one thin case.

Escalated to the dispatching seat, uncarried (the report's carrier: none):

  • fieldPatches is not read by this rule, at the build or at the door (objectsAsServed folds fields only), while the registry applies a patch's label to the target's own field (applyFieldPatches). An extension that RELABELS a base field into a clash publishes unjudged, and one that adds a field under label L while patching the base field off L is refused for a clash the served object does not have. Pre-existing in the rule on main (feat(lint)!: refuse an object that shows two visible fields under one label #33639), outside this diff, and the PR's prose is scoped to fields the entry ADDS, so it is not graded here. It wants a card.
  • Reach limits of the door the diff does not change, all in the accepting direction: a target outside the written package's closure is narrowed out of both snapshots (narrowObjectsToWriteClosure) and the rule is silent; a target that is not served, or an extend the registry files under a legacy key, folds onto nothing and is silent; the door carries no translations, so only the built-in system-field locales are compared there and a clash only a translation bundle creates is the build's to find; a write with no packageId does not strip its own stored extension (objectExtensionWriteFold answers undefined), so its unchanged clashing field cancels in the baseline. None refuses a write wrongly.

④ Design judgment

The narrowing against the published spec on main: it makes the spec's own refusal real at one more door and takes no declared capability away. field-label-duplicate is already an error at the build and on object writes; an extension is the one authoring path that could still put a second column of one name on an object. The rule reuses the build's fold and the gate's existing differential, and adds no second policy. That is the right shape.

Attempts to break the differential, by reading:

  • Two packages' extensions that clash only with each other: the later publisher is charged (the other's field is in the baseline as a served field, the pair is new in the candidate). Priority does not matter for two different field names. For the SAME field name it does, and the fold answers as the build does: outranked, the written definition is not served and is not judged; tied, the field is dropped from the comparison; outranking, the written label is judged. Pinned for tie and for 210.
  • Re-publishing its own unchanged clashing field: refused on a packaged write, because the door strips the package's old extension first. Declared (①.2).
  • A clash with owner_id: found in the zh-CN pass with no bundle; stripInjectedSystemColumns removes only a field identical to the platform's definition, so an authored owner_id with its own label stays the author's and is compared under that label. If the strip did not match, the clash is still found and only the "column the platform adds" sentence is lost: the failure direction is safe. Pinned, with a byte-for-byte build comparison.
  • A target that already carries a clash: cancelled by fingerprint; joining it is charged. Pinned both ways. Shrinking it is S1.
  • A target that does not exist or is not served: declared.forEach walks the snapshot's objects only, the entry folds onto nothing, no finding, no throw.
  • Case, white space, i18n: trim only, otherwise exact, so Owner and owner do not clash; unchanged rule semantics on main, the same at the build, not this diff's to move. Locales at the door are the built-in ones only (③).

Per scope file:

  • lint-duplicate-field-labels.ts: holds. The strip runs before declared and served are taken, so index i is one-to-one across them and across passes. options defaults keep the published function byte-equivalent.
  • authoring-rules.ts: holds; the two option arms are conditional exactly on the two door facts. N1 below.
  • runtime-gate.ts: comment only, accurate (objectExtensions needs no context collection for this rule).
  • rule-explanations.ts: accurate except for the S1 corner ("never for one the object already carried").
  • The semantic entry: id, surface, replacement and acceptance criteria agree with the code. N2 below.
  • The five test files: as ③.

S1 (should-fix) — an entry that SHRINKS a clash the target already carries is refused, against the card's "charge an extension write only for a clash it creates" and the PR's own "one the target already carried is not". The differential cancels by message, and the message names every member of the group. Take a target serving subject and topic both labelled Subject, and another package's extension field region labelled Subject (baseline finding: 'region', 'subject' and 'topic'). A written entry that defines region at priority 210 under label Region, or with hidden: true, or at the tying priority (so objectsWithoutTiedFields drops it), yields 'subject' and 'topic' in the candidate: a fingerprint the baseline lacks, so the write is refused for the two fields it did not touch, after making the object better. Needs a group of three or more already served, so the reach is small and nothing first-party meets it; it is a refusal, so it does not widen the accept set. Either cancel a candidate group whose members are a subset of a baseline group under the same label and object, or pin the behaviour and say so in the changeset and os explain. A follow-up card discharges it.

N1 (nit) — the registration comment in authoring-rules.ts says "the one first-party objectExtensions entry (app-showcase's showcase_account overlay)"; the entry, the changeset and the tree say two (plugin-auth on sys_sso_provider as well).

N2 (nit) — the entry's replacement and the changeset's Migration: offer "in the translation bundle too, when only a translation clashes" as a remedy at the door. The door's snapshot carries no translations, so a translation-only clash cannot be raised there and a bundle edit cannot clear a door refusal; the sentence is true of the build only.

N3 (nit) — the case "the target's own object save is not blamed for a clash an extension write was refused for" gates the save against a target with no extension field, so it would pass on main apart from its first line. Add the reading the premise correction is about: the clashing field already folded onto the served target in context.objects, the target's own body saved, zero errors.

No must-fix. One should-fix (S1), three nits.

Implemented-by: claude/project-thread-5bqffu
Reviewed-by: fable subagent of session_01ADHkmQjrEpxMVxEiDUJHqC

VERDICT: PASS

…ash it shrank

The door's differential compares whole messages, which name every member of
a label group, so an entry that took a member out of a clash the target
already served read as a new clash. On an object_extension write the rule now
leaves out a group every member of which already shared the label on the
target without the entry. Pins the shrink cases and the stored-extension
target save; corrects the first-party count and the translation remedy.

Claude-Session: https://claude.ai/code/session_01ADHkmTKdZ14pCk23CyRWjE
Co-authored-by: Claude <noreply@anthropic.com>
…label of its own

The extension door now refuses an entry that serves two visible fields under
one label, so the fixtures that shared the helper's label F would be refused
for that before the cycle they pin. Each field gets its own label; the
assertions are unchanged.

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

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

Contract-review-handoff: review#2 — CONTRACT_REVIEW_TIER unavailable (maintainer-limited fable quota, 2026-11-15T21:55Z) · head 98cb74a

Delta review of round 1 (record 6901169669: S1 + N1–N3), plus the forced runtime fixture change for the Test Core (3/8) regression at c51fcc1. Author report: issuecomment-6901973935.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head 98cb74a · 2026-11-15T21:58Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 98cb74ae47a4b6caffabe0a8e62f5a905a14f207
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.object-extension-door-field-label-duplicate-refused.ts + packages/lint/src/lint-duplicate-field-labels.ts, packages/lint/src/authoring-rules.ts, packages/lint/src/runtime-gate.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/lint-duplicate-field-labels.test.ts, packages/lint/src/runtime-gate.object-writes.test.ts, packages/lint/src/runtime-gate.object-formula-cycle.test.ts, packages/lint/src/runtime-gate.object-formula-writes.test.ts, packages/lint/src/validate-security-posture.runtime-surface.test.ts, packages/runtime/src/domains/meta-object-extension-item.test.ts (every path of the diff outside the prose faces). Read to judge them, never reviewed: packages/lint/src/object-graph.ts (objectsAsServed, objectExtensionsByTarget, objectsWithoutTiedFields), packages/lint/src/runtime-gate.ts outside the hunk (runRuntimeAuthoringRules, the context it builds), packages/metadata-protocol/src/protocol-authoring-gate.ts (judgeRuntimeAuthoringRules, objectExtensionWriteFold, otherPackagesExtensionsOf), packages/runtime/src/domains/packages.ts (how a manifest's extensions are registered), packages/spec/src/migrations/registry.ts.template, AGENTS.md Post-Task Checklist step 3. Prose faces, read for ② and for agreement with the code only: .changeset/33644-object-extension-door-label-duplicate.md, content/docs/deployment/validating-metadata.mdx.

Read at 2026-11-15T22:27Z. Delta review of this head against PASS 6901169669 at 315696e; claim: comment 6902031253; lane request 6902018464 on mailbox #33873 (the lane's at-tier reviewer was unavailable). Independence: implemented in an os-steve project thread, dispatched by domain:spec#2 (os-steve); reviewed by os-tesla.

Inputs: card #33644 body and comments (author reports 6901067491 and 6901973935), PR #34132 body and comments (prior record 6901169669, hand-off 6902008434), the net diff from merge base f81e4b6c to this head (13 files, five commits; the three since 315696ed are 36843a36, c51fcc1d, 98cb74ae), and the head's check-runs. The tree was judged, not the PR body and not the prior record: every conclusion below was re-derived from the code at this head.

① Derived judgments

The prior record's ids, each judged by id against this head:

  • Prior S1 (an entry that shrinks a clash the target already serves was refused): CLOSED. duplicateFieldLabelFindings now computes, on an extension write only, each object as served WITHOUT the written entry (before: the same objects and the same stored extensions, no objectExtensions of the stack's own) and drops a candidate group when, in the same pass and under the same label, every member is already a member of the group before holds. Pinned in case 7 of the new describe: three shrink shapes (relabel at 210, hidden: true at 210, a tie at 200) each read zero field-label-duplicate errors, with a build CONTROL that the three-member group is real, and a counter-case (take region out, put headline in under the label) that is charged with the message naming headline, subject and topic.
  • Prior N1 (the registration comment counted one first-party entry): CLOSED. The comment in authoring-rules.ts names both (showcase_account overlay, sys_sso_provider secret), agreeing with the entry and the changeset.
  • Prior N2 (a translation bundle offered as a remedy at the door): CHANGED, not closed. The entry's replacement, the changeset's Migration: line and the docs sentence now say the door reads no bundle and a bundle edit neither raises nor clears a refusal there. The refusal's own hint, the text carried on the 422, still offers it. Continued as S2 below.
  • Prior N3 (the target-save pin gated a target with no extension field): CLOSED. Case 8 folds a clashing stored extension's field onto the served target in context.objects, saves the target's own body, reads zero errors with the rule in rulesRun, and reads the build's finding on object "xl_ticket" for the same stack. It is a pin of unchanged object-door behaviour (the object door is not moved by this PR), which is what the premise correction needed read.

Accept-set at this head, re-derived:

  1. Refused, object_extension writes only: a write whose candidate pass yields a group the target, served without the entry, did not already hold as a superset under that label in that pass. That is: a field the entry adds under a label a visible field of the target shows (own, another package's extension, an injected column in the authored pass or a built-in system-field locale); an entry that JOINS a group the target already serves; an entry that swaps a member; and two fields of the entry itself under one label on a target that shows the label nowhere (see S1). A packaged re-publish of an extension whose own stored field already clashes is refused too, because the host lists the target without the written package's stored extension, so the field is absent from before; the changeset and the entry's acceptanceCriteria say so.
  2. Not refused: a clash the target carries untouched; what is left of one after the entry took a member out. Both are subsets of the before group and are dropped inside the rule.
  3. The subset drop cannot hide a clash the entry creates. A dropped group consists only of fields that were visible under that label before the write, in that pass; a field the entry adds, unhides, relabels into the group, or brings back from a tie is not in before and makes the group a non-subset. The drop is per pass, so a group that is old in one locale and new in another is reported for the new one only.
  4. A consequence worth stating, since it changes how the door is to be read: on this door the baseline pass now reports nothing for this rule (in the baseline the candidate IS before, so every group is its own subset), and the candidate reports only created or grown groups. The gate's fingerprint differential is therefore no longer what cancels a pre-existing clash on an extension write; the rule's own subset drop is. The two agree, and case 4 (unrelated write on a clashing target, then a join) and case 7 pin both directions.
  5. object writes, os build, os validate, os lint: unchanged. extensionWrite is set only when ctx.runtimeWriteType === 'object_extension', the gate sets storedObjectExtensions only on that type, and lintDuplicateFieldLabels(stack) delegates with no options.
  6. Every door that reaches the publish gate judges alike. The save door, the draft promotion, the restore door and the draft read's publish verdict all call judgeRuntimeAuthoringRules, which calls runRuntimeAuthoringRules over the one registry table; there is no second copy of the rule or of its inputs. Two reach limits, both pre-existing, both in the accepting direction, both true of every gating rule of this door and not moved by this diff: a write with no package id is not narrowed (objectExtensionWriteFold answers undefined), so its own stored field sits in before and an unchanged clashing re-publish is not charged; and a manifest's objectExtensions registered by install-local or a code package (registerApp) file no item and run no author-time rule, as the module note says of the boot and registration path. The declaration names the publish doors only and claims neither.

The fixture change in 98cb74ae. It does not hide a regression; it shows the narrowing reaching a shape the declaration under-names. The runtime helper labelled every formula field F, so the CONTROL entry (a__c, b__c) served two visible fields under one label and the door, correctly, refused it. The edit gives the fields that share an entry or a target their own labels; the five changed lines are fixture labels only and no assertion moved. A real extension of that shape is refused at its next publish with the same 422 and the same remedy (a label of its own), and a stored one keeps being served: that is inside the declared narrowing. What the head lacks is a pin and a plain sentence for exactly that shape (S1).

② Semver level

  • Changeset: @objectstack/lint minor, @objectstack/spec minor. Agrees with the diff and with AGENTS.md step 3: the kind is narrowed, a kind takes at least minor on a package the diff moves, and both packages are moved (the rule; one semantic entry). No exported type or signature changes: duplicateFieldLabelFindings and DuplicateFieldLabelOptions are exported from the module for the registry and are on no package entry; the round-2 rename of the option to extensionWrite is module-internal.
  • Clause-②: no (narrowing) and Metadata-protocol: narrowed: line-initial in the PR body and in the changeset body, and they agree with the code. The round-2 change moves the accept set only toward accepting (the shrink case), inside the narrowing already declared; nothing refused on main is newly accepted, since on main the door does not run the rule at all.
  • BREAKING carrier: the changeset carries the **BREAKING** accept-set narrowing paragraph, what is refused, what is unchanged, and a Migration: line with the one-line fix. Nothing an author can write is removed or renamed, so no FROM to TO key mapping is owed; the remedy is the fix.
  • ADR-0087: exactly one marker in the changeset, adr-0087: registered object-extension-door-field-label-duplicate-refused, naming the id of the new file entries/semantic/18.object-extension-door-field-label-duplicate-refused.ts. Registered by construction: registry.ts is generated whole from the entries directory, one file per entry, and is git-ignored, so the file IS the registration. Typed SemanticMigration, prefix 18. (spec and lint at 18.5.0), beside 18.object-field-label-duplicate-refused and 18.object-extension-door-computed-field-expression-judged. Semantic with no D2 conversion is right: which field keeps the label is the author's choice. replacement, reason and acceptanceCriteria agree with the code at this head, the shrink arm included; surface is narrower than the code (S1).
  • CI on this head, read during this review: 68 check-runs, 24 success, 12 skipped, 0 failed, 32 IN PROGRESS. Green: Check Changeset, PR-body guards, Governed Surface Queue Guard, Spec property liveness, Dogfood Regression Gate, Lint · ESLint, Lint · PM dispatch-gates, Lint · docs and code guards, Lint · repo and tooling gates, the three scoped Lint jobs, Type Check · source gates, Build Docs, Check Documentation Links, Check PR Size, the plan and filter jobs. STILL RUNNING: Test Core 1/8 to 8/8, Test UI 1/16 to 16/16, Build Core, Build and E2E UI, Live E2E UI, Type Check UI, Type Check · workspace, Type Check · debt ledger, Type Check · consumer gates, Lint · CI, release and engine gates. ⛔ This PASS is a reading of the diff and stands in for none of them. Test Core 3/8 was RED on the previous head c51fcc1d for the fixture this head changes and has not yet reported here: the seat waits for it, and for every other running check, to be green before landing. The author's sweep of the other extension fixtures was not re-run (Local-runs: none); Test Core is what confirms no second fixture of that shape exists.
  • CI on this head, read again by the seat after every run completed: 72 check-runs, 58 success, 12 skipped, 2 failure. The failures are Test Core (7/8) and its roll-up Test Core; the only failed task is @objectstack/scenarios test/runner/run-date.test.ts (three run dates, 5000 ms timeouts), a package this diff does not touch and the same timeout seen on several other heads today. Every lint and type gate and the other seven Test Core shards are green. The PASS is the contract verdict; a green Test Core re-run is owed before the queue.

③ Boundary flags

Round-2 deviations, each answered:

  1. DuplicateFieldLabelOptions.servedObjects renamed extensionWrite: accepted, module-internal, and the new name says both things the flag now does.
  2. Readings at c51fcc1d with 98cb74ae adding one runtime test file: accepted as a statement of what was measured; CI on this head is the reading that counts and it is not in yet (②).
  3. The PR body was not patched from the dev thread: the body in the inputs is the round-2 body (nine cases, the shrink bullet, the forced runtime edit), so the seat carried it.

Changed pins since 315696ed: only packages/runtime/src/domains/meta-object-extension-item.test.ts, judged in ①: forced by the rule, fixture labels only, assertions unchanged, not weakened. The other forced edits (two roster files, the runtimeTypes pin, the cycle fixture's label E) are unchanged from the head the prior record read and were re-read here: exact pins that had to move and stayed exact.

Escalated to the dispatching seat, not graded here:

  • fieldPatches is not read by the rule at the build or at the door, so an extension that relabels a base field into a clash is unjudged. Pre-existing on main, outside this diff; the author's report names the seat as carrier. It still wants its card.
  • The two reach limits of ①.6 (a package-less write; extensions registered from a manifest with no item). Pre-existing and door-wide; worth one sentence on the card that carries fieldPatches so the door's reach is written down once.
  • Downstream exposure is measured for the two first-party entries only. HotCRM is stated as not measured by the author and was not read here (outside the inputs). The runtime fixture shows the shape (several extension fields under one label) is easy to write, so a HotCRM reading before the release that ships this is the seat's to arrange.

Security: no security gap found in the diff; nothing was written to the security notes.

④ Design judgment

The narrowing against the published spec on main: it takes no declared capability away and makes the spec's own refusal real at one more door. field-label-duplicate is already an error at the build and on object writes; an extension was the one runtime authoring path that could still put a second column of one name on an object.

"Not charged for what is left of a clash it shrank" is the right rule and the right place for it. The card's instruction is that a write answers only for a clash it creates; a fingerprint over a message that names every member cannot express that for a shrinking group, so the question has to be asked on the groups themselves, and it is asked where the groups are known. The implementation holds on reading: before uses the same strip, the same stored fold and the same tie rule as the candidate, so the two sides differ by the written entry and nothing else; both arrays map one to one over declared, so index i is the same object in each; the comparison is per pass and per label; and membership is by field name on one object, which is unique. Attempts to get a created clash past the drop (unhide a member, bring a tied field back at a deciding priority, add under the label while taking another out, relabel into a locale-only group) each leave a member outside before and are reported. The injected-column sentence and the byte-for-byte build message are unaffected, since a reported group is rendered exactly as before.

Per scope file:

  • The semantic entry: id, class, registration, remedy and acceptance criteria hold. surface under-names the refused set (S1).
  • lint-duplicate-field-labels.ts: holds, as above. S2 and N1 below.
  • authoring-rules.ts: holds; the two option arms are conditional exactly on the two door facts, and the comments now describe the subset drop accurately.
  • runtime-gate.ts: comment only, accurate.
  • rule-explanations.ts: the door sentence is accurate at this head, the shrink arm included.
  • The six test files: as ① and ③.

S1 (should-fix) — new this round. An entry whose OWN fields share a label with each other, on a target that shows that label nowhere, is refused, and that arm is neither named nor pinned. It is the arm the PR's own CI found (a__c and b__c both labelled F). The entry's surface reads "add a visible field under a label the extended object already shows", the PR title and changeset title say the same, and the Migration: line says to give each field "a label the extended object does not already show"; an author with two new fields under one fresh label does not find their case in any of them. The changeset's Clause-② sentence ("whose fields create a field-label-duplicate clash on the object it extends") does cover it, and the remedy is the same, so the declaration is not false, only narrower in its headline than the code. And the nine door cases hold no LIT for it: the runtime fixture was relabelled so the suite no longer exercises it anywhere. Add one LIT case (an entry with two fields under one label on a clean target is refused, the message naming both) and a clause in surface and the Migration: line ("or that another field of the same extension carries"). In this PR or a follow-up card.

S2 (should-fix) — continues prior N2. The finding's hint is built without regard to the door: for a group that clashes only in a locale it reads "Give each visible field its own label (in the translation bundle too, for a locale only a translation clashes in)". At the extension door that is exactly the headline case (an extension field labelled as the platform translates owner_id), and the entry and changeset at this head say, correctly, that a bundle edit does not clear a refusal there. So the registered remedy and the remedy printed on the 422 disagree, and an author who follows the parenthesis is refused again. Drop the parenthesis when extensionWrite is set (the message parity with the build is pinned on message, not on hint), or pin the hint and say why it stays. Small, and a follow-up card discharges it.

N1 (nit) — new. On an extension write the rule now computes the clash passes twice for every object of the snapshot, in the baseline pass and in the candidate pass, though only an object some entry targets can differ between before and the candidate. Computing before for targeted objects only would halve the work; no verdict changes.

No must-fix. Two should-fix (S1, S2), one nit.

Implemented-by: claude/project-thread-5bqffu
Reviewed-by: session_01L9qibxTeW8xHnxoHxWNHWW

VERDICT: PASS

…o translation bundle

An extension whose own two fields share a label the target does not show
is refused too; the semantic entry, changeset and docs now say so, and a
door case pins it. On the extension door the hint drops the translation
bundle remedy, since the door reads no bundle. The before-write snapshot
is read only for the objects the written entry extends; verdicts are
unchanged.

Claude-Session: https://claude.ai/code/session_01ADHkmTKdZ14pCk23CyRWjE
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l and removed size/m labels Nov 15, 2026
@objectstack-fleet objectstack-fleet Bot changed the title fix(lint): the object_extension publish door refuses an extension field under a label its target already shows (field-label-duplicate) fix(lint): the object_extension publish door refuses an extension field under a label its target already shows, or another field of the same extension shows (field-label-duplicate) Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

Contract-review-handoff: review#2 — CONTRACT_REVIEW_TIER unavailable (maintainer-limited fable quota, 2026-11-15T23:51Z) · head 4fa9c1c

Delta review of r2 (record 6902412653: S1 self-duplicate arm, S2 hint bundle parenthesis, N1 before-snapshot scope). Author report: issuecomment-6903448080. PR body and title replaced for this round.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head 4fa9c1c · 2026-11-15T23:53Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4fa9c1cde6fea13918ad94c78e8a1b16e8a0bf74
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.object-extension-door-field-label-duplicate-refused.ts + packages/lint/src/lint-duplicate-field-labels.ts, packages/lint/src/authoring-rules.ts, packages/lint/src/runtime-gate.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/lint-duplicate-field-labels.test.ts, packages/lint/src/runtime-gate.object-writes.test.ts, packages/lint/src/runtime-gate.object-formula-cycle.test.ts, packages/lint/src/runtime-gate.object-formula-writes.test.ts, packages/lint/src/validate-security-posture.runtime-surface.test.ts, packages/runtime/src/domains/meta-object-extension-item.test.ts (every path of the diff outside the prose faces). Read to judge them, never reviewed: packages/lint/src/object-graph.ts (objectExtensionsByTarget, objectsAsServed), packages/lint/src/runtime-gate.ts outside the hunk (buildRuntimeWriteSnapshotSet, addedFindings, fingerprint, the context keys). Prose faces, read for ② and for agreement with the code only: .changeset/33644-object-extension-door-label-duplicate.md, content/docs/deployment/validating-metadata.mdx.

Read at 2026-11-15T23:57Z. Delta review of this head against PASS 6902412653 at 98cb74a; claim: comment 6903496904; lane request 6903482956 on mailbox #33873. Independence: implemented in an os-steve project thread, dispatched by domain:spec#2 (os-steve); reviewed by os-tesla.

Inputs: card #33644 body and comments (author report 6903448080, round 3), PR #34132 body and comments (prior record 6902412653, the hand-off for this head), the one commit 4fa9c1cd over parent 98cb74ae (6 files, +54 −14, no merge of main), the files at this head, and the head's check-runs. The tree was judged, not the author's report: each closure below was re-derived from git show 4fa9c1cd and the code it lands in.

① Derived judgments

The prior record's ids, each judged by id against this head:

  • Prior S1 (an entry whose own two fields share a label the target shows nowhere is refused, neither named nor pinned): CLOSED, both halves.
    • Named: the entry's surface ("or under the label of another field of the same extension") and replacement ("a label of its own (one neither the object nor another field of the extension shows)"); the changeset title, its BREAKING paragraph ("or two fields of its own under one label") and its Migration: line ("and no other field of the same extension carries"); the docs paragraph ("or under the label of another field of the same entry"); os explain ("two of its own fields included"); the module note; the PR title and body. The finding text needed no change: the message already names every member of the group, and for this arm it names the entry's two fields and nothing of the target.
    • Pinned: a new LIT case in the door describe. Refused: a__c and b__c both labelled Region on a target with no such label gives exactly one field-label-duplicate error at objects.xl_ticket.fields, the message naming 'a__c' and 'b__c' under "Region" (two names only, so no field of the target is in the group), equal byte for byte to the build's message for the same entry. CONTROL: the same two fields under Region and Region code read zero such errors. The control differs from the refused case by one label, so it is the rule that separates them.
  • Prior S2 (the hint offers a translation bundle at the extension door, where no bundle is read): CLOSED. The bundle parenthesis is now emitted only when authored is false AND extensionWrite is false. extensionWrite is set by the registry entry on ctx.runtimeWriteType === 'object_extension' alone, so the build, os validate, os lint and the object door take the unchanged branch. Pinned in one case that reads both sides of the same entry: at the door the locale-only clash (assignee labelled as the platform translates owner_id for zh-CN) carries a hint without translation bundle and still opening Give each visible field its own label; lintDuplicateFieldLabels over the same entry still carries the full parenthesis. The premise holds on reading: runtime-gate.ts has no translations context key, so fieldBundleFor reads an empty bundle at either door and a locale pass there is the platform's own table. The rest of the hint (hide, drop, use the platform's column) is the registered remedy, so the 422 and the entry's replacement now agree.
  • Prior N1 (the before-write passes computed for every object of the snapshot): CLOSED, with a behaviour path moved that the record states here because the author's "verdicts unchanged" is true but not by the same mechanism. beforePasses is now computed only for an object in objectExtensionsByTarget(stack).keys(). The key is the entry's extend string and objectsAsServed folds on that same map by the same exact name, so an object whose served form the entry can change is always in the set; no shrink case can lose its drop. For an object the entry does NOT extend, a pre-existing clash was dropped inside the rule at 98cb74ae and is now reported in both passes and cancelled by the gate: the baseline holds no objectExtensions, so it reports every object's groups; the candidate reports the same group for an unextended object with the same rule, where, path (same index, the objects array is shared) and message, which is the whole fingerprint (hint is not in it). Verdict equal, read not run. Consequence for the prior record's ①.4: the baseline pass no longer reports nothing for this rule; the module note's sentence "a clash the target already carried is in the gate's baseline too, with the same message" is literally true again at this head.

Accept-set at this head: unchanged from the prior record's ①.1 to ①.6. The commit moves no verdict: the rule's only verdict-bearing edit is the beforePasses guard (equal by the argument above); the hint is not part of a verdict or of the differential. object writes, os build, os validate, os lint: untouched branches.

Adversarial readings of the fix, each answered:

  1. Is any wording now false for another arm? No. "A label the extended object does not already show and no other field of the same extension carries" is the exact complement of the refused set for a field the entry adds (target-shown labels include other packages' extension fields and the platform's translated columns, as the next sentence of the Migration: line says). The shrink arm's sentences are unchanged and still true.
  2. Does the new LIT case pin the wrong thing? No. One weak line: expect(TARGET.fields).not.toHaveProperty('region') checks a field NAME, not that no field carries the LABEL Region; the claim "the target shows the label nowhere" is in fact carried by the message naming two fields only (N2).
  3. Did a door's hint regress? No. The extension door loses only the parenthesis; the object door and the build keep the text they had on main. The object door's own hint is not separately pinned, but it shares the build's branch, which is.
  4. Did the N1 guard open a way to charge a write for another object's clash? No: the gate always differences against the baseline (addedFindings), there is no undifferenced caller of this rule at the door.

② Semver level

  • Changeset: @objectstack/lint minor, @objectstack/spec minor; unchanged and still right (kind narrowed, at least minor on each package the diff moves). No exported type or signature changes in this commit: the new import and the writtenTargets set are module-internal.
  • Clause-②: no (narrowing) and Metadata-protocol: narrowed: line-initial in the PR body (lines 6 and 7 of the refreshed body) and in the changeset body. The same-entry arm is inside the narrowing already declared (the Clause-② sentence "whose fields create a field-label-duplicate clash on the object it extends" always covered it); this commit widens the headline wording to match, it does not widen the refusal.
  • BREAKING carrier and Migration: line: present, now naming both arms. ADR-0087: one marker, adr-0087: registered object-extension-door-field-label-duplicate-refused, the id of the entry file, whose surface and replacement now agree with the code.
  • No Security-touching: line is owed: main's scripts/pm/record-recognisers.mjs reads no such key on a record.
  • CI on this head, read during this review: 72 check-runs, all completed; 60 success, 12 skipped, 0 failed, 0 in progress. Nothing to wait for. The Test Core roll-up, red on the previous head for an unrelated @objectstack/scenarios timeout, is green here.

③ Boundary flags

The author's one declared deviation: the os explain paragraph was edited as well as the entry and changeset. Accepted and wanted: it is the fourth surface that states the door's remedy, and leaving it would have kept the S2 disagreement alive in os explain.

Changed pins in this commit: none moved or weakened. runtime-gate.object-writes.test.ts gains two cases (26 lines added, none removed); the describe now holds eleven, as the PR body says.

Escalated to the dispatching seat, not graded here (carried from the prior record, unchanged by this commit):

  • fieldPatches is not read by the rule at the build or at the door. Pre-existing on main; the author's report names the seat as carrier.
  • The two reach limits of the prior ①.6 (a package-less write; a manifest's extensions registered with no item).
  • HotCRM exposure stated as not measured. The same-entry arm (several extension fields under one label) is the easiest shape to have written; it is now named in the upgrade entry, which is what a downstream reader will search.
  • New, for the same follow-up card: the object door's hint (N1 below).

Security: no security gap found in the diff; nothing was written to the security notes.

④ Design judgment

The narrowing against the published spec on main: unchanged judgment. It takes no declared capability away; it makes the spec's own field-label-duplicate refusal real at the one runtime authoring door that could still put two columns of one name on an object. This commit makes the declaration as wide as the refusal and makes the 422 print the remedy the registry records.

Per scope file, this commit:

  • The semantic entry: surface and replacement now cover both arms and agree with the code. Holds.
  • lint-duplicate-field-labels.ts: the guard and the hint condition hold, as ①. Keying the hint on extensionWrite (the door fact) and not on "the bundle is empty" is the right choice: at the build an empty bundle still leaves a bundle as a real remedy.
  • rule-explanations.ts: accurate; see N1 for what its new clause now shows up.
  • runtime-gate.object-writes.test.ts: the two new cases pin what S1 and S2 asked, each with its other side.
  • authoring-rules.ts, runtime-gate.ts, the other test files: not touched by this commit; their comments remain true at this head (the registration comment's "the gate's differential cancels an unchanged group" is now also what happens for an unextended object).

No must-fix, no should-fix.

N1 (nit) — new; the twin of prior S2 at the door this PR does not move. os explain now says "the publish door reads no bundle, the build does", which is true of BOTH runtime doors, yet on an object write a locale-only clash (the object door's own headline case, pinned in withAssignee) still prints "(in the translation bundle too, for a locale only a translation clashes in)" on its 422. Pre-existing on main, outside the declared narrowing, and not a regression; one condition (ctx.runtimeWriteType set at all) would settle it. For the follow-up card that carries fieldPatches.

N2 (nit) — new. Two small pin gaps. (a) After the prior-N1 edit an unextended object's stored clash on an extension write is cancelled by the gate's differential, no longer dropped by the rule, and no door case holds a clashing object beside the target; one case (a second object with a clash in context.objects, an unrelated extension write, zero errors) would pin the path the edit moved. (b) In the new LIT case expect(TARGET.fields).not.toHaveProperty('region') asserts a field name where the claim is about a label; the message assertion already carries the claim, so the line can go or read the labels.

N3 (nit) — new. Cosmetic: the edits left over-long unwrapped lines in the module note, the entry comment, the os explain string and the docs paragraph (same entry, is refused as ... so only a); the gates are green on them.

Implemented-by: claude/project-thread-5bqffu
Reviewed-by: session_01L9qibxTeW8xHnxoHxWNHWW

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

Contract-review-handoff: review#2 — CONTRACT_REVIEW_TIER unavailable (maintainer-limited fable quota, 2026-11-16T01:11Z) · head 69c4831

Merge-of-main review: origin/main 121017b merged into the reviewed head 4fa9c1c (r3 PASS 6903533262) under the K ≥ 15 landing rule. Per the card thread: no conflicts, the regen produced no changes, git diff origin/main...HEAD is byte-identical to 4fa9c1c, the 115 derived gates all exit 0, and the extension-fixture sweep is green. The full dogfood run is still in flight; the thread reports it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head 69c4831 · 2026-11-16T01:14Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 69c48313fdd44af818e43e763d239fd6b92bf608
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.object-extension-door-field-label-duplicate-refused.ts + packages/lint/src/lint-duplicate-field-labels.ts, packages/lint/src/authoring-rules.ts, packages/lint/src/runtime-gate.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/lint-duplicate-field-labels.test.ts, packages/lint/src/runtime-gate.object-writes.test.ts, packages/lint/src/runtime-gate.object-formula-cycle.test.ts, packages/lint/src/runtime-gate.object-formula-writes.test.ts, packages/lint/src/validate-security-posture.runtime-surface.test.ts, packages/runtime/src/domains/meta-object-extension-item.test.ts (every path of the diff outside the prose faces). Read to judge them, never reviewed: what main brought in between f81e4b6c and 121017b9 where it comes near these paths (packages/spec/src/system/i18n-resolver.ts, packages/spec/src/system/translation.zod.ts, packages/objectql/src/registry.ts, packages/metadata-protocol/src/protocol-registry-hydration.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/spec/src/migrations/entries/semantic/18.in-app-pending-action-decided-by-person.ts, scripts/pm/record-recognisers.mjs). Prose faces, read for ② and for agreement with the code only: .changeset/33644-object-extension-door-label-duplicate.md, content/docs/deployment/validating-metadata.mdx.

Read at 2026-11-16T01:43Z. Merge delta review of this head against PASS 6903533262 at 4fa9c1c; claim: comment 6904617898; lane request 6904570800 on mailbox #33873. Independence: implemented in an os-steve project thread, dispatched by domain:spec#2 (os-steve); reviewed by os-tesla.

Inputs: card #33644 body and comments, PR #34132 body and comments (prior record 6903533262; the lane's hand-off 6904564479 for this head), the merge commit 69c48313 with its two parents, the 50 commits main gained from f81e4b6c to 121017b9, and the head's check-runs. The lane's statement "merge of main only" was not taken on its word: each part of it was re-derived from the objects.

① Derived judgments

The merge, verified:

  1. Shape. 69c48313 has exactly two parents, the reviewed head 4fa9c1cd and main at 121017b9; their merge base is f81e4b6c, the base the prior record judged against.
  2. No hand edit. git merge-tree --write-tree 4fa9c1cd 121017b9 gives tree 97d7778b, the tree of 69c48313. The merge commit is what a conflict-free merge of the two parents produces and nothing else.
  3. Net change equal. git diff f81e4b6c 4fa9c1cd and git diff 121017b9 69c48313 are byte-identical (one digest for both), 13 files, +474 −50, the same 13 paths as the refreshed file list. The PR's diff against its base is the diff the prior record passed.
  4. No overlap. Of the 337 paths main moved, none is one of the PR's 13, and none is under packages/lint, packages/metadata-core or packages/runtime/src/domains. So the rule, the gate, object-graph.ts (objectExtensionsByTarget, objectsAsServed), the system-field table and the runtime door test's subject are the bytes the prior record read.

What main brought in, read against the PR's claims:

Accept-set at this head: unchanged from the record at 4fa9c1cd (its ① and, by reference, ①.1 to ①.6 of the record before it). The merge moves no verdict of the rule at the build, os validate, os lint, the object door or the object_extension door.

Prior ids, each by id:

  • Prior N1 (the object door's hint still offers a translation bundle no runtime door reads): OPEN, unchanged, carried as N1.
  • Prior N2 (two pin gaps: no door case with a clashing object beside the target; a name assertion where the claim is about a label): OPEN, unchanged, carried as N2.
  • Prior N3 (over-long unwrapped lines): OPEN, unchanged, carried as N3.
  • Prior S1, S2 and the earlier N1, closed at 4fa9c1cd: still closed; the closing hunks are in the byte-identical diff.

Adversarial readings of the merge, each answered:

  1. Could the merge carry an edit the PR diff hides because it matches main? No: the tree equals the mechanical merge of the two parents.
  2. Could a change on main make a pinned message or a comment in the diff false without touching its file? Read for the three places that could: the label resolver (comments only), the extension fold (untouched), the gate's context keys (untouched). None.
  3. Is the base of this review the base the PR will land on? Not necessarily: the docs-drift bot's run on this head names a base newer than 121017b9, so main has moved again since the merge. This record judges 69c48313 against 121017b9; a further merge is a new head.

② Semver level

  • Changeset: @objectstack/lint minor, @objectstack/spec minor; unchanged, still right for kind narrowed.
  • Clause-②: no (narrowing) and Metadata-protocol: narrowed: unchanged in the PR body and the changeset body; BREAKING carrier, Migration: line and the one ADR-0087 marker adr-0087: registered object-extension-door-field-label-duplicate-refused unchanged.
  • No Security-touching: line is owed. main at 121017b9 now reads that line (pm: the low-risk arm reads the record's Security-touching line and the card's security label; absent is Tier H #34133), but prints it only under a low-risk row (skills, ADR) or on a face with no known hits; this PR's hit is the semantic entry, and the narrowing face never carries it.
  • CI on this head, read during this review: NOT finished. 64 check-runs listed; 18 success, 10 skipped, 0 failed, 36 in progress (all eight Test Core shards, Build Core, the type checks, five lint groups, the UI test shards, both E2E jobs). This PASS is a judgment of the tree and stands on no green run of this head: the seat waits for the head's checks, and for the dogfood run the hand-off says is still in flight, before it acts on the verdict. A red check on this head is outside what this record read.
  • CI completed before posting: 68 check-runs, 58 success, 10 skipped, 0 failed, none in progress.

③ Boundary flags

No declared deviation in this head: the hand-off states a conflict-free merge with no regenerated file, and the tree confirms both.

The hand-off 6904564479 names the tier as unavailable to the implementing lane; that is why the review was handed to this seat, which served it at the tier on this record's header line.

Escalated to the dispatching seat, not graded here (carried unchanged):

  • fieldPatches is not read by the rule at the build or at the door (pre-existing on main).
  • The two reach limits named in the earlier records (a package-less write; a manifest's extensions registered with no item).
  • HotCRM exposure stated as not measured.
  • The object door's hint (N1).

Security: no security gap found in the merge or in what main brought beside the PR's paths; nothing was written to the security notes.

④ Design judgment

The narrowing against the published spec on main at 121017b9: unchanged judgment. It takes no declared capability away; it makes the spec's own field-label-duplicate refusal real at the one runtime authoring door that could still put two columns of one name on an object. Nothing main gained since the last record gives an author another way to that state through the doors this PR governs, and nothing makes the declared refusal wider or narrower than it was.

Per scope file: every file of the scope is byte-identical to the file judged at 4fa9c1cd, and each holds against the code it cites at this head, since that code (object-graph.ts, runtime-gate.ts outside the hunk, translateObject) is unchanged too. The semantic entry's surface and replacement still agree with the rule.

No must-fix, no should-fix.

N1 (nit) — continues prior N1, unchanged. On an object write a locale-only clash still prints the translation-bundle parenthesis on its 422 although no runtime door reads a bundle, as os explain now says. Pre-existing on main, outside the declared narrowing; for the follow-up card that carries fieldPatches.

N2 (nit) — continues prior N2, unchanged. (a) No door case holds a clashing object beside the extended target, so the path where the gate's differential cancels an unextended object's stored clash is unpinned. (b) In the same-entry LIT case expect(TARGET.fields).not.toHaveProperty('region') asserts a field name where the claim is about a label.

N3 (nit) — continues prior N3, unchanged. Over-long unwrapped lines in the module note, the entry comment, the os explain string and the docs paragraph.

Implemented-by: claude/project-thread-5bqffu
Reviewed-by: session_01L9qibxTeW8xHnxoHxWNHWW

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

ACCEPT · PR #34132 (#33644) · head 69c48313fdd44af818e43e763d239fd6b92bf608 · 2026-11-16T01:44Z

席位核对

  • 形态: 13 files (+474 / −50):

    • lint: lint-duplicate-field-labels.ts (the extension door judges field-label-duplicate, the baseline-subset cancel, the extension-own-fields arm, and the door hint without the bundle parenthesis), authoring-rules.ts, runtime-gate.ts, rule-explanations.ts, and five lint tests;
    • the runtime door test fixture relabelled (a forced test change, named in the body);
    • semantic entry 18.object-extension-door-field-label-duplicate-refused.ts;
    • the changeset;
    • validating-metadata.mdx.

    The head is a conflict-free merge of origin/main 121017b9 into the reviewed 4fa9c1cd, made under the K ≥ 15 landing rule. check-governed-merges.mjs --pr 34132: NOT governed, ≤ 3000 lines.

  • 前提实测: card thread readings at this head:

    • 115 derived gates exit 0, --ran 115/115;
    • lint 9037/9037;
    • extension-fixture sweep green;
    • full dogfood 469 files / 3974 tests, VERDICT 0.

    The seat read the prose faces at TIER_DEFAULT: the changeset title, BREAKING and Migration: lines name both arms.

  • 契约复审: CONTRACT_REVIEW_TIER:

    • r1 6901169669: PASS + S1, fable.
    • r2 6902412653 @98cb74ae: PASS + S1/S2, review#2. This round also fixed the Test Core (3/8) fixture regression.
    • r3 6903533262 @4fa9c1cd: PASS, clean.
    • Merge-delta r4 6905018152 @ this head: PASS. review#2 re-derived the merge tree with merge-tree and found the diff byte-identical. No must-fix and no should-fix.
  • 门禁 check-runs: this head, 68 runs: 58 success, 10 skipped, 0 failed, 0 in progress.

  • 接受的偏差:

    • Nits N1–N3 (r3/r4) are prose and pin-coverage only.
    • The internal option rename servedObjects → extensionWrite is module-internal.
  • 范围外去向: fieldPatches is not read by field-label-duplicate → field-label-duplicate does not read objectExtensions fieldPatches, so a patch that relabels into a clash publishes unjudged and an add-then-patch-away is refused #34134, serial behind this PR. Its card thread gets r4's N2(a) (no door case with a clashing object beside the extended target) and N1 (the object door's locale-only hint).

  • 落地条款: ready + auto-merge now, under the maintainer's standing orders 「按照 pm-dispatch 规则复核过的都授权」 (2026-10-25T11:35Z) and 「你应该使用 pm-dispatch 技能审核和落地pr」 (2026-11-07T16:59Z). K = 6 first-parent commits on main past PRBASE dfb8ed35 (this head's Test Core Affected-set diff base), < 15.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 16, 2026 01:45
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 43788211187 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (2/8) — 失败步骤: Run this shard's tests

    @objectstack/spec:test:      ✓ inverts the card's measured control: the three bogus keys now FAIL parse instead of adding zero warnings  345ms
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/spec:test:repo:  FAIL   repo  scripts/root-index.test.ts > content/docs/references/index.mdx (the committed page) > states no count that its own rows contradict
      ↳ 失败原因: @objectstack/spec:test:repo: AssertionError: expected [ 218, 1663 ] to deeply equal [ 218, 1664 ]
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 18 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

Requeue · PR #34132 · head 69c48313fdd44af818e43e763d239fd6b92bf608 · 2026-11-16T02:12Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

Requeue · PR #34132 · head 69c48313fdd44af818e43e763d239fd6b92bf608 · 2026-11-16T02:33Z

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 43789922361 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test UI (5/16) — 失败步骤: Run the ui tests (shard 5/16)

    × (b) CONTROL: 404 RESOURCE_NOT_FOUND still draws "Object Not Found" 1038ms
    FAIL   dom  packages/app-shell/src/console/__tests__/AppContent.disabledPackageDeepLink-13052.test.tsx > a deep link to an object read by name always leaves the splash (objectui#13052) > (b) CONTROL: 
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • ⚠️ 本 PR 过去 24h 已在队列失败 1 次(不含本次)。 内容未变而反复失败 ⇒ 高度怀疑 flaky 测试或与同组 PR 的语义冲突,重排不解决。
  • 过去 24h 队列共有 20 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

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 size/l 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.

lint door: judge object_extension writes with the duplicate-field-label rule, so an extension cannot add a second field under an existing label

2 participants