Skip to content

fix(metadata-protocol): a package copy under a new namespace calls its own flows - #38642

Merged
objectstack-fleet[bot] merged 11 commits into
mainfrom
claude/issue-38595-rename-flow-refs
Nov 30, 2026
Merged

objectstack-fleet[bot] merged 11 commits into
mainfrom
claude/issue-38595-rename-flow-refs

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #38595

Clause-②: no
Metadata-protocol: none

维护者速读

  • 管理员把一个应用包以新的命名空间安装或复制之后,复制出来的流程调用的是复制包自己的子流程,按钮触发的也是复制包自己的流程;以前调用的是原包的流程,或者因为找不到流程而每次运行都失败。复制时如果调用方流程排在被调用流程前面,现在两个流程都会复制成功,不再被保存检查拒掉调用方;如果被调用的流程本身复制失败,调用它的流程也一并列为失败并撤回,不会留下指向不存在流程的调用。
  • 属于"软件包安装与复制"这块能力,替用新命名空间安装应用包、或复制一份应用包来改的管理员解决"复制后流程跑不起来或串到原包"的问题。
  • 只影响带新命名空间的安装和复制;如果改名规则出错,复制包里的某个流程调用会指向错误的名字,原包不受影响,可以直接撤回这次合并恢复原来的行为。
  • 无

What changes

planNamespaceRename (packages/metadata-protocol/src/package-namespace-rename.ts), the one rename engine behind the unmanaged install's targetNamespace and duplicatePackage, renamed a package flow under the prefix swap (crm_child to crm2_child) but rewrote no name that calls it. It now builds a flow rename map from the package's own flow items and rewrites a value that EQUALS a renamed flow name, whole, at:

  • the derived index's flow sites, REFERENCE_SITES.byTarget.get('flow'), read the same way the object sites are (by property, wherever it occurs). Dumped at runtime on this tree it holds {fromType:'flow', property:'flowName'} and {fromType:'translation', property:'flows'}, so a subflow step's config.flowName and a translation's flows keys follow;
  • the one hand-written site, commented as such in the code: a target whose sibling executor is 'flow'. That is type: 'flow' on an action (ActionSchema, an object's actions[], an inline action, an action:group member, an API endpoint) and actionType: 'flow' on an action:button / action:icon page block, where type is the component. The index cannot carry target, because on every other executor it names a URL, script, page, endpoint or form, and a property-wide site would rewrite those too and list them in the "Used by" answer.

A flow the package does not hold keeps its name, a flow the prefix swap keeps keeps its name, and nothing is substring-rewritten. A value that is not a renamed flow name falls through to the rules every string already took, so nothing that read the same before reads differently now. Collisions work as they do for objects: a renamed flow name that meets a name the item already holds at that site (a translation keyed by both crm_child and crm2_child) refuses the item, and the refusal names the flow. The internal atReference: boolean of the walk became the site's rename map (object or flow), so both kinds share one walk and one collision rule.

This round (delta after PR #38594 merged as d33183a). origin/main was merged into this branch with a merge commit (3a7134a, no conflicts). With both changes on one tree, a parent-first duplicatePackage was refused by the publish gate (measurement below). So the duplicatePackage leg's host.saveMetaItem call in protocol-package-commits.ts now passes copyPlanFlowNames on a flow write, the unmanaged-install leg's way: the copy names (rename.copyName) of every flow row the same duplicate writes. On a non-flow write nothing is passed. The gate's rule itself is not touched; the names are additive (pending.flows), so they can let a call to a flow of the same copy through and refuse nothing.

Third round (L1 REWORK 7267334209, route per claim amendment 7267347516). duplicatePackage is best-effort, so a planned flow can still land in failed[] after the gate passed its caller on the plan's word. The duplicate leg now closes its flow plan after the copy loop. Each copied flow whose subflow / map step calls a planned flow (its copy name) that was not written is taken back out of the copy, through the same undoBatchRowWrite the object settle uses. It is reported in failed[] with an error that names that callee. This repeats until nothing changes, so a caller's caller goes too. The loop reads a caller's address before and after its write for that undo, only when the caller calls a planned flow. The plan is now one list built before the loop (planFlowSources). The callee walk uses the spec's FLOW_REGION_SLOTS_BY_TYPE, the region table the publish gate walks. The install leg is not touched.

Tests

Engine pins, package-namespace-rename.test.ts (7 new cases)

flowName follows; other_flow, an unprefixed bare_child and a superstring crm_child_v2 keep their names; a flow action's target follows while modal / script / api targets equal to the same string do not; the object actions[], API endpoint and page actionType spellings; translation flows keys; the collision refusal; and a copy that keeps the source namespace renames nothing.

Door pins, new package-namespace-rename-flow-refs-38595.test.ts (6 cases)

The harness (makeEngine, crmBody) is copied from package-unmanaged-install.test.ts, which is not edited. Its automation service answers listFlows, so a gate that judges a step's called flow has a non-empty universe.

  • an unmanaged install with targetNamespace: 'crm2' installs, and the stored crm2_parent calls crm2_child;
  • the copied flow action reads target: 'crm2_child', and the modal control keeps target: 'crm_child';
  • with the source package installed under its own names beside the copy, the copy's crm2_parent calls crm2_child;
  • a call to other_flow keeps its name;
  • duplicatePackage into crm2 gives the same result with the source installed, and the source still calls crm_child;
  • parity: the duplicate and the import into crm2 store identical flow and action items.
Stacking measurement (this round), new describe in package-namespace-rename-flow-refs-38595.test.ts (2 cases)

The source package is installed with its stored flow rows in the order crm_parent (a subflow step calling crm_child), then crm_child; the test asserts that order. It is then duplicated into crm2. The automation service holds other_flow, crm_child, crm_parent, never crm2_child.

Measured at 2af21e1 (merge of main plus the test, before the fix), the gate refuses. duplicated.failed was, verbatim:

[{ type: 'flow', name: 'crm_parent', error: 'flow/crm2_parent failed author-time validation: 1 issue — flows[0].nodes[1].config.flowName [flow-subflow-unknown]' }]

and only crm2_child was copied (Tests 2 failed | 6 passed (8)). With the fix (300cf74) the case passes: failed is empty, both flows are stored and crm2_parent calls crm2_child.

CONTROL, the gate is live in this harness: a third flow crm_caller calls crm_ghost, which the engine holds at the source install and no longer at the copy, and the package holds no such flow. The copy keeps the name crm_ghost, and with the fix the duplicate still refuses exactly flow/crm_caller with flow-subflow-unknown while both other flows are copied. So the plan names let through only the copy's own flows.

Withdrawal pins (third round), same describe (2 cases)
  • (a) L1's parent-first case. crm_parent calls crm_child, and crm_child calls crm_ghost, which the engine holds at the source install and drops before the duplicate. failed holds flow/crm_child and flow/crm_parent, and the parent's error names 'crm2_child'. No flow of the copy is stored, no stored copied flow calls a flow the deployment does not hold, and the copy's object is still copied.
  • (b) A two-level chain, crm_a to crm_b to crm_c, with crm_c calling the dropped crm_ghost. All three end in failed[] (the errors of a and b name 'crm2_b' and 'crm2_c'). crm2_solo, outside the chain, is the only copied flow, and nothing copied calls a missing flow.
  • The success pins and the crm_ghost CONTROL pass unchanged: Tests 10 passed (10) for the card file at 712fda7.

Ablations, each run after the fix commit 28e4856 with scripts/ablation-replace.mjs:

  • Cascade off: if (withdrawn.length === 0) break; became if (withdrawn.length >= 0) break; (blob 4ca8e112244c to 6eec66471fb7). Result: Tests 2 failed | 8 passed (10). (a) fails with expected [ 'flow/crm_child' ] to deeply equal [ 'flow/crm_child', 'flow/crm_parent' ], which is L1's measured state, and (b) fails with expected [ 'flow/crm_c' ] ….
  • Transitive step off: the line that marks a withdrawn caller as not written was deleted (blob 4ca8e112244c to 378006812f35). Result: Tests 1 failed | 9 passed (10). Only (b) fails, with expected [ 'flow/crm_b', 'flow/crm_c' ] ….
  • Both times the tool restored the file: blob equal to HEAD, and git diff HEAD empty.
Ablation of the second round's line

The fix was committed first (300cf74). node scripts/ablation-replace.mjs replaced the guard ...(singular === 'flow' of the new spread with ...(false (anchor 1 to 0, blob d064b03b149a to f110fae517f4). The card test file then failed both new cases (Tests 2 failed | 6 passed (8)): the parent-first case with the refusal above, the CONTROL because crm2_parent was refused beside crm_caller. The tool restored the file: blob equal to HEAD, git diff HEAD empty.

Package run at 712fda7 (third round)

pnpm --filter @objectstack/metadata-protocol typecheck && pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2 under the verify lock: VERDICT command-exit 0, Test Files 374 passed | 9 skipped (383), Tests 23690 passed | 45 skipped (23735). The 69 families dispatch-gates --commands derives for this round's four paths: 67 exit 0. check:dual-build-cjs-loads and check:lean-entry-closure exit 3 (PREREQUISITE NOT MET: they read every package's dist), so they are NOT MEASURED here and left to CI. overlap-check: clean.

Package run at 964a326 (second round)

pnpm --filter @objectstack/metadata-protocol typecheck && pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2 under the verify lock, after building the closure (pnpm --filter '@objectstack/metadata-protocol^...' build): VERDICT command-exit 0, Test Files 374 passed | 9 skipped (383), Tests 23688 passed | 45 skipped (23733). The card pins after the merge (package-namespace-rename-flow-refs-38595.test.ts, package-namespace-rename.test.ts, package-unmanaged-install.test.ts): Test Files 3 passed (3), Tests 152 passed (152).

Package run at 5ec669b (first round)

pnpm --filter @objectstack/metadata-protocol typecheck && … exec vitest run --maxWorkers=2 under the verify lock: VERDICT command-exit 0, Test Files 373 passed | 9 skipped (382), Tests 23670 passed | 45 skipped (23715). The typecheck program lists the test files.

Ablation

The fix commit came first. Then scripts/ablation-replace.mjs swapped the one line that fills the flow rename map for a no-op (anchor 1 to 0, blob e90813508b99 to 114356add0b3). With that in place, 9 of the 13 new cases failed (Tests 9 failed | 26 passed (35)): every rewrite pin on both test files. The four that stayed green were the three controls and the parity case, which stays equal when both doors are equally wrong. The tool then restored the file: the blob matched HEAD again and git diff HEAD was empty.

Under PR #38594's gate (head 93f3643)

In a throwaway tree at that head, with this branch's two commits cherry-picked, the closure was built and both test files passed (Tests 42 passed). With the same ablation there, the install pins fail with the gate's own 422: INVALID_METADATA, flow-subflow-unknown at flows[0].nodes[1].config.flowName, "calls flow 'crm_child' … Did you mean crm2_child". So the gate is live in this harness and the pins pass under it, without depending on its code. The tree was removed afterwards.

Acceptance notes

  • The parent-first duplicate is fixed in this PR now. The first round reported that with this branch and PR fix(lint)!: the publish gate refuses a subflow or map step that calls a flow the deployment does not hold #38594 both applied, a parent-first duplicatePackage fails flow-subflow-unknown and writes only the child. PR fix(lint)!: the publish gate refuses a subflow or map step that calls a flow the deployment does not hold #38594 merged without a copy-plan on its duplicate leg, so the seat routed the fix here (claim amendment 7266007014). It was re-measured on the merged tree (see Tests) and fixed on the duplicate leg's saveMetaItem call alone.

  • The copyPlanFlowNames doc comment in protocol-door-requests.ts said "duplicatePackage copies stored rows, which the gate's own read of the stored flows already holds". That stopped being true once the copy's calls name the copy's flows. Per claim amendment 7266793287, 48420e0 rewords that comment only: both copy doors state the field, the names the same copy writes under their written names. In the third round (712fda7), the comment and the changeset sentence say the gate is told the flows the copy PLANS to write. They also say that on the duplicate, a caller whose planned callee was not written is withdrawn with it. No logic changes; metadata-protocol typecheck exits 0, and the 48 families dispatch-gates --commands derives for that path ran with 46 at exit 0 and check:dual-build-cjs-loads / check:lean-entry-closure at exit 3 (PREREQUISITE NOT MET, left to CI).

  • Measured with the same engine probe, outside this card: the names of other non-object items (dashboard, page, report) are renamed by the prefix swap, but their references are not. That covers app navigation's dashboardName / pageName / reportName and a translation's dashboards / pages / reports keys. A dashboard header action with actionType: 'flow' keeps its actionUrl. These are reported to the seat as one family. They are not fixed here.

  • Outside the dispatched file surface, added by the PM's amendment: scripts/engine-double-contract.pinned.json gains 3 rows (15 lines) for the new test file's copied stub engine, produced by node scripts/check-engine-double-contract.mjs --write. No existing row changed, and pnpm check:engine-double-contract exits 0 at fb44b0f and again at 964a326.

  • Local gates at 964a326: the 77 families dispatch-gates --commands derives for this diff were run; 75 exit 0, and check:dual-build-cjs-loads and check:lean-entry-closure exit 3 (PREREQUISITE NOT MET: they read every package's built dist, which this worktree built only for the closure), so those two are NOT MEASURED here and are left to CI. overlap-check: clean against origin/main, feat(approvals): piece 4 — a step records the child runs it started, and the reconciler finishes an approval whose flow stopped (ADR-0162 item 8) #38618 and feat(objectql): a record in a closed state, and its lines, are closed to change (closedStates, ADR-0162) — trunk #38497.

  • Read, not changed (for the seat): whether importUnmanagedPackage has the same gap on partial failure. It does not, as read at 712fda7. Its prepare pass refuses the whole install before the base exists if any item fails to convert or rename (422 or the rename refusal). Its copyPlanFlowNames is built from prepared, which is exactly the items the write loop writes. Any saveMetaItem throw in that loop, and any object the batch settle refuses, goes through rollBackUnmanagedImport, which deletes the whole new base. So on success every planned flow is written, and on failure nothing remains. The one residue is a rollback that itself fails. It is not silent: console.error, plus an answer saying the base could NOT be fully removed and must be uninstalled.

Verification

Read first, by risk:

  1. protocol-package-commits.ts, the duplicatePackage leg's close: the withdrawal block after the copy loop (the fixpoint, the undo and the error text), and plannedCalleesOf with planFlowSources above the loop. Check that a withdrawn caller is removed from copied and pushed to failed[] exactly once.
  2. package-namespace-rename.ts, the deepRewrite object branch: the child-site expression referenceSiteOf(k) ?? (site && k === 'name' ? site : flowTargetSite(v, k)) replaced the old boolean. Object sites must behave exactly as before.
  3. package-namespace-rename-flow-refs-38595.test.ts: the parent-first duplicate and its CONTROL, the source-still-installed case and the duplicate parity. (flowTargetSite and FLOW_EXECUTOR_KEYS in package-namespace-rename.ts, the one hand-written site, were read in the first round's review.)

Two-minute check: pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2 src/package-namespace-rename-flow-refs-38595.test.ts src/package-namespace-rename.test.ts should report 2 files and 39 tests passing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmQJUGAAa5rz9Yi2DvW

…enamed flows

planNamespaceRename renamed a package flow under the prefix swap but kept
every name that calls it: a subflow step's config.flowName, a translation's
flows keys and a flow action's target still named the source's flow. The
copy now rewrites a value equal to a renamed flow name, whole, at the derived
index's flow sites and at a target beside a 'flow' executor.

Claude-Session: https://claude.ai/code/session_01ADHkmRar3Kkg6SpwVgaaVE
Co-authored-by: Claude <noreply@anthropic.com>
…'s renamed flows

Engine pins (subflow flowName, flow action target with a non-flow control,
the API endpoint and page action-block spellings, translation flows keys and
their collision refusal) and door pins for the unmanaged import with
targetNamespace and duplicatePackage, including the source-still-installed
case and the parity of the two doors.

Claude-Session: https://claude.ai/code/session_01ADHkmRar3Kkg6SpwVgaaVE
Co-authored-by: Claude <noreply@anthropic.com>
…ng a copy's flows

Claude-Session: https://claude.ai/code/session_01ADHkmRar3Kkg6SpwVgaaVE
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l 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 29, 2026
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/metadata-protocol, touching 8 documentable anchor(s).

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

  • content/docs/automation/flows.mdx (via actionType (literal, a string literal in FLOW_EXECUTOR_KEYS))
  • content/docs/deployment/validating-metadata.mdx (via actionType (literal, a string literal in FLOW_EXECUTOR_KEYS))
  • content/docs/frontend/layout.mdx (via actionType (literal, a string literal in FLOW_EXECUTOR_KEYS))
  • content/docs/frontend/quick-start.mdx (via actionType (literal, a string literal in FLOW_EXECUTOR_KEYS))
  • content/docs/frontend/schema-rendering.mdx (via actionType (literal, a string literal in FLOW_EXECUTOR_KEYS))
  • content/docs/kernel/services-checklist.mdx (via SaveMetaItemRequest (symbol, a top-level type))
  • content/docs/ui/create-vs-edit-form.mdx (via actionType (literal, a string literal in FLOW_EXECUTOR_KEYS))

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

  • content/docs/releases/v16.mdx (via actionType (literal, a string literal in FLOW_EXECUTOR_KEYS))
  • content/docs/releases/v17/17-0.mdx (via actionType (literal, a string literal in FLOW_EXECUTOR_KEYS))
  • content/docs/releases/v17/17-6.mdx (via actionType (literal, a string literal in FLOW_EXECUTOR_KEYS))
  • content/docs/releases/v17/17-7.mdx (via actionType (literal, a string literal in FLOW_EXECUTOR_KEYS))
  • content/docs/releases/v18/18-3.mdx (via duplicatePackage (symbol, a method of class ProtocolPackageCommitsFacet))

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
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 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; 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 — 10 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 302a4c32df7bb6c9fcaf7786234415e68d284602 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 39ac83a035de556faaba7aa4f6521a45e97687ef — the merge of head 712fda7a6db7ff43af8b13f9fab2e6dd16d78464 into base 302a4c32df7bb6c9fcaf7786234415e68d284602, 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 39ac83a035de556faaba7aa4f6521a45e97687ef && git checkout 39ac83a035de556faaba7aa4f6521a45e97687ef
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 302a4c32df7bb6c9fcaf7786234415e68d284602 712fda7a6db7ff43af8b13f9fab2e6dd16d78464 && git checkout -B drift-repro 302a4c32df7bb6c9fcaf7786234415e68d284602 && git merge --no-ff 712fda7a6db7ff43af8b13f9fab2e6dd16d78464

node scripts/docs-audit/affected-docs.mjs --json 302a4c32df7bb6c9fcaf7786234415e68d284602

⚠️ 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 302a4c32df7bb6c9fcaf7786234415e68d284602 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…ne doubles

The door pins for the flow-reference rename copy the stub engine of
package-unmanaged-install.test.ts; `check-engine-double-contract --write`
records its three pinned verbs (15 lines added, none changed, no seam lost).

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmRar3Kkg6SpwVgaaVE

Final head for L1: fb44b0f29e0379caad9cd73d7bfc531cfbd98a11 — CI green on this head by the newest run of each check (the PR-body guards job 141455012061 was cancelled by the body edit's re-run, job 141455176390, success; every other check success or expected skip), mergeable_state clean, as of 2026-11-29T19:19Z. Card #38595; Clause-②: no, Metadata-protocol: none; no contract face (no packages/spec/src/**, no governed path, no narrowing arm), so no L2 is owed.

Points for the reviewer:

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv
L1-a, the seat's L1 thread · 2026-11-29T19:26Z · first review

席位核对

ACCEPT @ fb44b0f29e0379caad9cd73d7bfc531cfbd98a11 (card #38595, Fixes, zone o3-P). No L2 is owed. The diff touches packages/metadata-protocol/src/**, .changeset/** and scripts/engine-double-contract.pinned.json. That is no packages/spec/src change and no governed path, with Clause-②: no and no narrowing: a copy's calls move from a stale name to the copy's own flow, and nothing that published is refused. The zone lands it, after PR #38594 merges and only once the landing condition below holds.

Read at head:

  • Fix A, as the card recommends.
    • flowRenames is filled only from the package's own flow items, by renameName, and only when the name actually changes.
    • It is applied whole-value at REFERENCE_SITES.byTarget.get('flow') (flowName, a translation's flows) and at the one hand-written site, target beside type: 'flow' or actionType: 'flow' in the same object.
    • Object sites behave as before. referenceSiteOf tries the object properties first. The old atReference && k === 'name' arm is now site && k === 'name' ? site, which passes the same site through. A non-site string still falls to the view, form and object passes.
    • Collisions are refused, never merged, and now name their noun ("copied flow").
  • Done when. All three boxes are pinned: the install calls crm2_child; the action target follows; with the source installed, the copy calls its own flow. Duplicate parity is pinned too. Under fix(lint)!: the publish gate refuses a subflow or map step that calls a flow the deployment does not hold #38594's gate, the body's cherry-pick tree passes both files and fails with the gate's own 422 when the fix is ablated, so the pins hold on that gate.
  • My own runs, in a clean worktree at this head:
    • package-namespace-rename-flow-refs-38595.test.ts plus package-namespace-rename.test.ts: 2 passed, 35 passed (35).
    • My ablation, disabling only flowTargetSite: 5 failed | 30 passed. Exactly the target cases, the source-installed case and the duplicate case go red; the modal / script / api CONTROLs stay green. Restored, tree clean.
    • The body's own ablation (the rename map no-op, 9/13 red) covers the flowName arm.
  • Pinned JSON. scripts/engine-double-contract.pinned.json adds 3 rows for the new test file's copied stub engine. Each was produced by the checker's --write, no existing row moves, and it sits in the PM's file-surface amendment.
  • Changeset, read sentence by sentence. It is true: the three call sites with their executor spellings, whole-name-only, a target beside other executors kept, the collision refusal, and "Nothing an author writes changes". metadata-protocol ships dist from src, so a patch bump.
  • Mechanical face. The only l1-face flag is all-checks. The cancelled PR-body guards run (141455012061) is superseded on this head by run 141455176390, which succeeded. Checks at this head: 40 success, 18 expected skip, 0 failed. mergeable_state is clean.

Landing condition (seat): the body's first Acceptance note says that with this branch and PR #38594 both applied, duplicatePackage of a base whose stored rows hold the parent flow before the child fails flow-subflow-unknown and writes only the child. The note puts the remedy in #38594's duplicate leg, which states no copy-plan flow names. #38594 belongs to seat 1 and is at Tier H. If this lands second, main holds that refusal. Before this PR enters the queue, the seat confirms the finding has reached seat 1 with a carrier (a must-fix on #38594, or a card) and names it on this PR.

Out of scope, for the seat:

  • The family "references to renamed dashboards, pages and reports do not follow" (app navigation dashboardName / pageName / reportName, a translation's dashboards / pages / reports, and a dashboard header actionType: 'flow' keeping its actionUrl) was measured outside the card and reported to the seat. It needs the filing gate.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Carriers for the L1 ACCEPT 7261286317 (2026-11-29T19:27Z):

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv
L1-a, the seat's L1 thread · 2026-11-30T02:48Z · delta review

席位核对

REWORK @ 48420e0856cb35fd889d0cee976b0d6ac0b418ec (card #38595, zone o3-P). This is the delta from ACCEPT 7261286317 at fb44b0f2. It answers that review's landing condition under claim amendments 7266007014 and 7266793287. There is one must-fix: the duplicate leg tells the publish gate about flows the copy may not end up writing.

Must-fix 1. A caller is copied pointing at a callee that the same duplicate fails to write.

  • copyPlanFlowNames on the duplicate leg (protocol-package-commits.ts:606-611) is built from every stored flow rows holds. That is the right list on the unmanaged install, because that door is all-or-nothing: it is built from prepared, and any refusal in its loop rolls the whole copy back.
  • duplicatePackage is best-effort. A flow row can still land in failed[] after the plan is stated: it may fail to canonicalize, fail to convert, be refused by the rename, or be refused by the save door itself, flow-subflow-unknown included. When the callee fails this way, the caller has already passed the gate on the plan's word.
  • Measured at this head with a probe appended to package-namespace-rename-flow-refs-38595.test.ts, using the file's own makeProtocol, callerBody and flow. The package is parent-first: crm_parent calls crm_child, and crm_child calls crm_ghost. The engine holds crm_ghost at install and drops it before the duplicate, exactly as in the zone's CONTROL. The result:
    • failed is ["flow/crm_child: flow/crm2_child failed author-time validation: 1 issue — flows[0].nodes[1].config.flowName"];
    • the copied flows are ["flow/crm2_parent"], and crm2_parent calls crm2_child.
      So the copy holds a subflow call to a flow that exists nowhere, which is exactly what fix(lint)!: the publish gate refuses a subflow or map step that calls a flow the deployment does not hold #38594's gate exists to refuse. With the package stored child-first, the same failure refuses the parent, so the outcome depends on stored order. I removed the probe, and the tree is clean.
  • What fixes it is the zone's and seat's call. Any of these works:
    • write the package's flows callee-first, so the gate reads flows that are really written;
    • prepare every row before the first write and plan only from what prepared, though that still misses a save-door refusal of the callee;
    • after the loop, refuse (move to failed[], with the undo the loop already has) every copied caller whose planned callee is in failed[].
      Whichever is chosen needs a pin: a parent-first duplicate whose child fails leaves no copied caller calling it.
  • Two sentences follow the code.
    • The changeset's new sentence, "the publish gate is told the flows the same copy writes", must stay true for the chosen fix.
    • So must the copyPlanFlowNames doc comment (protocol-door-requests.ts:32-37, "The names of the flows the same package copy writes").

Read at this head (these stand):

  • The merge is clean. 3a7134ab63's tree, 0de567d081, is byte-identical to git merge-tree --write-tree fb44b0f2 34daac1a. So no conflict resolution rode in, and fix(lint)!: the publish gate refuses a subflow or map step that calls a flow the deployment does not hold #38594 (d33183ac51) is now in the branch.
  • The fix's names are the loop's names. rename.copyName(String(r.type), r.name) is the same call the loop uses for newName (:480). The plan is stated on a flow write only, as on the install leg (:885). protocol-save.ts:1959 turns it into the gate's pending.flows.
  • The new pins. The parent-first duplicate pins the stored order (['crm_parent', 'crm_child']), failed: [], both flows copied, and crm2_parent → crm2_child. The CONTROL keeps crm_ghost refused with flow-subflow-unknown. The zone reports that removing the fix turns 2 red. My own run of this file at this head: 9 passed (9).
  • The comment-only commit 48420e08 is a doc comment only, and it is true for the success path.
  • Checks. At 02:55Z: 26 success, 18 expected skip, 0 failed and 13 in progress. mergeable_state read unknown.

The landing condition of 7261286317 moves into this PR: the parent-first refusal is now this PR's to fix, not a carrier on #38594's. It is met once must-fix 1 is answered.

…lanned callee was not written

Claude-Session: https://claude.ai/code/session_01ADHkmQJUGAAa5rz9Yi2DvW
Co-authored-by: Claude <noreply@anthropic.com>
… and a duplicate withdraws callers of an unwritten flow

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv
L1-a, the seat's L1 thread · 2026-11-30T03:33Z · delta review

席位核对

ACCEPT @ 712fda7a6db7ff43af8b13f9fab2e6dd16d78464 (card #38595, zone o3-P). This is the delta 48420e08..712fda7a, two commits, and it answers must-fix 1 of REWORK 7267334209 by the seat's route 3 (claim amendment 7267347516). No L2 is owed (Clause-②: no, Metadata-protocol: none, no packages/spec/src change), and the zone lands it once this head's checks are green.

  • Must-fix 1 is met.
    • The plan is built once (planFlowSources: copy name → source name), from the same rename.copyName the loop uses.
    • A copied flow that calls a planned flow is recorded in writtenCallers, with its address read before and after the write. Calls are found by subflow / map config.flowName, at any region depth, through the spec's FLOW_REGION_SLOTS_BY_TYPE, excluding the flow itself.
    • After the loop, the close marks every planned flow missing from copied as not written. It then withdraws each copied caller of one through undoBatchRowWrite: the caller leaves copied and enters failed[] with the callee named, and it is itself marked not written. This repeats until nothing changes.
    • An undo that fails is told apart as a heal failure or a store failure, each with its own remedy text.
  • My probe at this head, appended to the PR's own test file and then removed. The tree is clean.
    • Parent-first crm_parent → crm_child → crm_ghost, with crm_ghost dropped before the duplicate: failed is [crm_child, crm_parent], and the only stored flow is crm2_ok.
    • The same package stored child-first gives the same answer. So the outcome no longer depends on stored order, which was the point of the must-fix.
    • A mixed chain (crm_top → crm_parent → crm_child → crm_ghost, plus crm_ok → crm_parent) withdraws all four transitively. No flow is stored, and the answer's copied lists no flow. So the answer and the store agree.
    • The file's own 10 cases plus my probe gave 11 passed (11).
  • The pins. (a) is my parent-first ghost cell. (b) is the two-level a→b→c chain. The zone reports that disabling the withdraw turns 2 red, in exactly the state I measured, and that dropping the transitive step turns only (b) red.
  • Read sentence by sentence.
    • The changeset's new sentence says "the flows the copy plans to write", and that "every copied flow that calls it is withdrawn with it, transitively, into failed[] with an error naming that flow, so no copied flow calls a flow that exists nowhere". It is true against the close above.
    • The copyPlanFlowNames doc comment says "plans to write", and that "the plan holds once the loop ends". It is true for both doors: the import is all-or-nothing behind rollBackUnmanagedImport, and the duplicate is settled by the close.
  • Checks. At 03:35Z this head read 13 success, 18 expected skip, 0 failed and 25 in progress. They must be green before landing.

For the seat, not blocking:

  • A non-flow caller of a withdrawn flow stays copied. In my probe, the copied action crm2_run_child (type: 'flow', target: 'crm2_child') stays copied after crm2_child lands in failed[], so its target names a flow that exists nowhere. The changeset scopes its promise to flows, so no sentence is false, and no publish gate refuses an action's flow target today. The answer's failed[] names the flow, so an author sees it.
  • The deviations the zone disclosed (a third copy of the region walker, since neither existing walker is exported; the plan built outside the loop) are code shape. They are the seat's call.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmQJUGAAa5rz9Yi2DvW

Landing · 2026-11-30T03:57Z · head 712fda7a6db7ff43af8b13f9fab2e6dd16d78464 · ACCEPT → PR #38642 comment 7267996976 (delta; first-pass reading 7261286317)

Probe Reading
check-governed-merges.mjs --pr 38642 NOT governed (0 of 7 paths hit the register); 783 changed lines (+764 / -19) ≤ 3000
landing-k.mjs --pr 38642 K = 2 < 15; no locale pack; no shared book moved

Checks at this head: 41 success, 18 expected skip, 0 unexpected skip, 0 failed, 0 pending (pr-state.mjs). mergeable_state is clean. No L2 is owed: Clause-②: no, Metadata-protocol: none, and no path touches a contract-review surface. State: ready, and auto-merge armed through the relay. Fixes #38595 closes the card on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 30, 2026 03:57
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 4895661 Nov 30, 2026
60 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-38595-rename-flow-refs branch November 30, 2026 04:26
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…ng declares (objectstack-ai#38648)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9JeHmqv6CKCkW8ewrPBLekk)_
Fixes objectstack-ai#38623
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 在 Studio、元数据接口或 AI
助手里保存或发布一条翻译时,如果它指向一个已经不存在的对象、字段、校验规则、里程碑或权限集,保存结果里会多出一条提示;以前保存显示一切正常,什么都不说。
- 属于“错误的元数据要被明确指出”这项构建能力:本地校验早就会报这类问题,线上保存却静默通过,这次替在 Studio 和 AI
助手里写翻译的作者补上这个缺口。
-
出错的最坏情况是对一条其实有效的翻译多报一条提示,保存本身照常成功、不会被拒;应用的导航菜单和应用名这类翻译这次仍不检查,可以直接撤回这次改动。
- 无。

## What changes

A `translation` item saved (active) or published over the metadata API
now runs `validateTranslationReferences` at the runtime publish gate. An
orphan key comes back as a `translation-target-unknown` **advisory** on
the save and publish answer (`advisories`, severity `warning`). Before
this, no rule ran on a `translation` write
(`runtimeAuthoringRulesFor('translation')` was `[]`): the item was
accepted as valid while `os validate` refused the same key.

**Never a refusal.** Every finding on a translation write is a
`warning`, so it lands in `advisories` and never in the 422 `errors`. A
published item that names a key an upgrade removed still loads and
saves. `os validate` keeps reporting the same key at `error`.

**Families the door judges** (the ones the per-write snapshot carries,
`RuntimeStackContext`: objects, permissions, books, datasets):

- `objects.NAME`, only when the gate did not narrow `objects` to the
write's package closure. The i18n layer is process-wide, so a
translation may legitimately name an object outside its package's
closure.
- `objects.NAME.fields.FIELD`, and the field's `options` keys, only for
a field that declares options inline. A picklist-bound field's served
options are not in the snapshot.
- `objects.NAME._validations.RULE`
- `objects.NAME._milestones.FIELD.VALUE`
- `permissions.NAME`

**Not judged at the door:** apps and their navigation
(platform-contributed nav items included), `_views`, `_sections`,
`_tabs`, `_relatedLists`, `_actions`, `globalActions`, `dashboards`,
`forms`, `pages`, `picklists`, `positions`, `reports`, `mappings`,
`books` (the implicit per-package book is named by a package id the
snapshot never sees), `flows`, `hooks`. Each resolves into a collection
no per-write snapshot carries, so the door never guesses a key there
unknown; `os validate` still judges all of them. Judging apps and
navigation at the door would mean carrying served apps in the snapshot.
That is a separate decision and not this card.

The changes:

- `authoring-rules.ts`: the `validateReferenceIntegrity` entry's
`runtimeTypes` gains `translation`, so a translation write dispatches
the suite.
- `reference-integrity-suite.ts`: the `validateTranslationReferences`
member gains `runtimeTypes: ['flow', 'translation']` and still hands its
run context straight through.
- `validate-translation-references.ts`: the rule reads `runtimeWriteType
=== 'translation'` off that context as its save-door reading. That is
the signal the suite's other members already read for `wholeCollection`.
In that reading the rule treats the entry as one item (keyed by its own
`locale`), reduces the item to the judged families, and maps every
finding to `warning`.
- `runtime-gate.ts`: `TYPE_TO_STACK_KEY` gains `translation:
'translations'`. No context row is added, and no metadata-protocol
source changes.
- `scripts/engine-double-contract.pinned.json`: the three engine doubles
the new protocol pin uses (`delete`, `findOne`, `update`) are recorded,
written by `check-engine-double-contract --write`.
- `content/docs/deployment/validating-metadata.mdx`: the "Reference
integrity" row's runtime-publish cell gains `translation`
(`✓ᶠᵛᵒᵈᵗʳᵖᵃᶜᵗ`), and its text says what a translation write runs. The
superscript legend gains `✓ᵗ` `translation`, and the longest-first note
now covers it. Nothing else on the page changes.

The CLI reading is byte-identical: without `runtimeWriteType` the rule
takes its old path, the whole rule at its own severities.

**Control pins moved** (each held `translation` as the ungated control;
it now crosses, so the control moves to a type that stays ungated;
`tool`'s own control is untouched):

- `packages/lint/src/authoring-rule-wiring.test.ts` ("a type nobody
gated returns nothing"): `translation` → `doc`
- `packages/lint/src/runtime-gate.test.ts` ("runs nothing for a metadata
type no rule gates"): `translation` → `doc`
- `packages/lint/src/runtime-gate.test.ts` ("returns null for an
unmapped type"): `translation` → `doc`
- `packages/lint/src/runtime-gate.inert-type-writes.test.ts` ("crossing
these five widened no OTHER type s roster"): `translation` →
`capability`
- `packages/lint/src/runtime-gate.datasource-writes.test.ts` ("the types
still awaiting their own readings are untouched"): `translation` →
`capability`, and the comment says `translation` crossed on its own
reading

The seat's reading (7260663888 on objectstack-ai#38623) takes this card as the
`translation` reading that the ADR-0049 group B line defers the wiring
to.

**Read these first** (ranked by risk):

1. `packages/lint/src/validate-translation-references.ts`:
`doorJudgedSubset` and the `localeEntries` / `atSaveDoor` lines in
`validateTranslationReferences`. This hunk decides what the door may
judge; a family added here without its collection in the snapshot is a
false advisory on every save.
2. `packages/lint/src/reference-integrity-suite.ts`: the member's
`runtimeTypes`.
3. `packages/lint/src/authoring-rules.ts`: the entry's `runtimeTypes`.

**Two-minute verification:** `pnpm --filter @objectstack/lint exec
vitest run --maxWorkers=2
src/runtime-gate.translation-writes-38623.test.ts` shows 9 passing. The
removed field key, the orphan object, rule and milestone, and the orphan
permission set come back in `advisories` with `errors` empty. Live keys
and the unjudged families come back with neither.

## Tests

New files, named for this card:

- `packages/lint/src/runtime-gate.translation-writes-38623.test.ts`,
through the gate's own entry (`runRuntimeAuthoringRules`):
  - the dispatch: suite on `translation`, exactly the translation member
  - a removed field → advisory, `errors` `[]`
  - an orphan object, validation rule and milestone → advisories
  - an orphan permission set → advisory
  - live keys → none
- apps, navigation, global actions, positions, views and sections → not
judged
  - a picklist-bound field's option keys → not judged
- under a package closure, an object outside it is not judged while its
sibling's removed field still is
  - the CLI reading is unchanged (a bundle, at `error`)
-
`packages/metadata-protocol/src/protocol.translation-target-door-38623.test.ts`,
through the real `saveMetaItem` / `publishMetaItem` write path over a
stub engine:
- an active save naming a removed field → `success`, the advisory, and
the row landed
- a draft save says nothing (D1), and its publish answers with the
advisory
  - a permission-set orphan → advisory
  - live keys → none
- an already-published orphan neither blocks nor rides on an unrelated
translation write

<details><summary>Test runs: the new files at 8775b06; the
whole-package readings at 66c22be (before the main merge, which
brought no lint or metadata-protocol file)</summary>

- At head 8775b06, under the verify lock, after a fresh build of the
`@objectstack/metadata-protocol...` closure:
`protocol.translation-target-door-38623.test.ts` Tests 5 passed (5),
`runtime-gate.translation-writes-38623.test.ts` Tests 9 passed (9),
`VERDICT command-exit 0`. The later docs commit changes no code.

- `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2`
(whole package): Test Files 247 passed (247), Tests 9977 passed (9977)
- `pnpm --filter @objectstack/lint typecheck`: exit 0 (`tsc --noEmit`
and `check:test-typecheck` OK)
- `pnpm --filter @objectstack/metadata-protocol typecheck`: exit 0
- `pnpm --filter @objectstack/metadata-protocol exec vitest run
--maxWorkers=2 src/protocol.translation-target-door-38623.test.ts`:
Tests 5 passed (5)
- The 29 metadata-protocol test files that mention `translation`: Test
Files 29 passed (29), Tests 862 passed (862)

</details>

<details><summary>Ablation: the entry widening reverted</summary>

`'translation'` removed from the entry's `runtimeTypes` through
`scripts/ablation-replace.mjs`:

- The anchor hit once and the mutation landed (blob 663f139 →
3068dd8e9df2).
- lint was rebuilt, and `ablation-dist-preflight.mjs @objectstack/lint
'"page", "action", "translation"]' --absent` confirmed the marker absent
from all 20 built files. It had been present in the pristine
`dist/runtime.js` and `dist/index.js`.

Results on the mutant:

- lint file: 5 failed / 4 passed. The dispatch case, the removed field,
the orphan object, rule and milestone, the permission set and the
closure case went quiet. Live keys stayed clean, and so did the
unjudged-families, picklist and CLI cases.
- protocol file: 4 failed / 1 passed. The active save, the draft publish
and the permission set went quiet. The live-key save stayed clean. The
already-published-orphan case also fails, because its first save asserts
the advisory as a precondition.

Restored: blob == HEAD (663f139) and `git diff HEAD` empty. lint
was rebuilt, and the protocol file then read 5 passed (5).

</details>

## Acceptance notes

- **False positives, measured on `examples/app-showcase`'s real
`ShowcaseTranslationBundle`** (en + zh-CN; context = the showcase's
objects, permissions, books and datasets):
  - whole-stack `validateTranslationReferences`: 0 findings
- the rule unrestricted on the door's snapshot: 85 phantom
`translation-target-unknown`. By family: `_views` 28, `_sections` 19,
positions 10, flows 10, dashboards 6, `_tabs` 4, reports 4,
`globalActions` 2, apps 1, mappings 1. That is why the door judges only
the families listed above.
- this PR, through `runRuntimeAuthoringRules({ type: 'translation' })`
per locale: errors 0, advisories 0
- the lit control on the same context (a removed `showcase_project`
field) comes back as one `warning` advisory
- A draft save is still never gated (objectstack-ai#4463 D1). The advisory appears on
an active save and on publishing a draft, not on the draft save itself.
- Found while measuring, not changed here: `os validate` refuses a
bundle key under the platform `studio` app at the app level, whatever
the navigation id (`translations[0]["zh-CN"].apps.studio`, "which this
stack neither defines nor contributes into"), even for a live id such as
`nav_api_console`. The lint's apps rung has no platform-app ladder; the
objects rung has `isPlatformProvidedObjectName`. Reported to the seat
with the CLI reproduction.

## Verification

<details><summary>Local gates, derived with dispatch-gates
--commands</summary>

At head 9b075e6. Gates were derived with `node
scripts/pm/dispatch-gates.mjs --commands` (105 families) and each exit
code was captured before any pipe. The `--ran` reconciliation reads: 105
derived, 103 run, 2 NOT MEASURED (derived from a recorded exit 3), 0
unrun.

- 68 code families were read at the code head: 266bea7, then
8775b06 for the ledger. The docs commit 9b075e6 changes only the
page.
- 37 families the docs path adds, all at 9b075e6: exit 0. They
include `check-adr-links` with its self-test (the local half of Check
Documentation Links; lychee runs only in CI, and the edit adds no link),
`check:doc-anchors`, `check:doc-frontmatter`, `check:docs-redirects`,
`check:docs-single-h1`, `check:docs-spec-enumerations`,
`check:docs-audit-scope` and `@objectstack/spec` `check:docs`.
- `@objectstack/spec` `check:skill-examples` first exited 3
(PREREQUISITE NOT MET: client SDK not built). After building
`@objectstack/client-react...` and `@objectstack/client...` under the
lock, it exits 0: "352 prose examples type-check across 3 surface(s)".
- `pnpm check:engine-double-contract`: exit 1 before the ledger commit,
exit 0 after it at 8775b06.
- `pnpm check:objectql-double-limit`: exit 0 ("none new").
- `node scripts/check-nul-bytes.mjs`: exit 0.
- `node scripts/pm/overlap-check.mjs --branch=HEAD` at 9b075e6:
`VERDICT clean exit 0`. The branch merges cleanly with origin/main and
with objectstack-ai#38643, objectstack-ai#38642, objectstack-ai#38594, objectstack-ai#38550 and objectstack-ai#38497.
- NOT MEASURED:
- `node scripts/check-plugin-teardown-shape.mjs --self-test`: exit 3
(shallow checkout).
- `pnpm check:dual-build-cjs-loads`: exit 3 (needs a full `pnpm build`).
- `pnpm check:dts-closure`: exit 1. The self-test passed. The scan's red
came from a local build that skipped declaration output in an earlier
worktree. `@objectstack/lint` and `@objectstack/metadata-protocol` were
not among the packages it named. CI's fresh build gives the real
reading.

The families CI runs (the repo-wide lint, `test:repo`, Check
Documentation Links' lychee step, the artifact roster) are read from
this PR's check-runs. They were not re-run here.

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01ADHkmSwS4mQyXWrddL4r6B

<!-- signed: repo:objectstack#3 · os-steve ·
session_01ADHkmSwS4mQyXWrddL4r6B -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
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

2 participants