Repository navigation
Description
repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht
Filing gate: ① product defect with a named locus (read, not measured) · Source: fleet (isolated L1 of PR #39347, card #39341; filed by zone package-1203 under the areas' standing follow-up permission)
Grading: area:package · Bug · p3 · reach: by reading — any duplicate of a package whose seeds carry record values spelled like a renamed object name, or a dependsOn naming an object by its bare name · evidence: read at PR #39347 head 6187abde, not measured.
Parent: #39341 (sub-issue; #39341's fix makes copied seeds land, so these two effects now reach the copy).
Dedupe: searched duplicate seed rewrite records, seed dependsOn duplicate rename, planNamespaceRename seed → no card.
Reader: a zone of seat repo:objectstack@os-bill after triage's first touch.
Business reason
Before #39341 a duplicated package lost its seeds outright. Now they land, but a copy whose seed data happens to contain a value spelled like one of the package's object names gets that value silently changed, and a seed whose load order names an object by its bare name may be refused at load. Either one is silent data damage in the copy the organization takes as its own.
What happens (by reading)
duplicatePackage(packages/metadata-protocol/src/protocol-package-commits.ts~:640–650) sends every copied body, seeds included, throughrename.rewrite. Its free-text pass (package-namespace-rename.ts:425) rewrites whole-identifier matches of prefixed object names anywhere in the body, so a seedrecordsvalue spelled like a renamed object name is rewritten in the copy. A record field whose key is a reference-site name (object,flow, …) is also rewritten.- The unmanaged import (
protocol-package-commits.ts~:973, An unmanaged install can copy the package's seed data, removable as one batch, owned by the installer (gallery demos need data) #30808) already treats seeds as data and never passes them throughrewrite; the duplicate door does not. dependsOnholds object names but is not a reference site, so a bare name there does not follow the copied object; the loader may then refuse the copy's seed load.
Done when
- First measure both effects on
mainafter package duplicate: every seed of the installed Starter is refused "Unrecognized key(s) on this seed: name", so the copy answers success:false #39341 lands (a package whose seed has a record value equal to a renamed object name, and adependsOnnaming a bare object). Close with the reading if neither reproduces. - The duplicate door copies a seed without the free-text rewrite (as the unmanaged import does), maps
objectanddependsOnthrough the object renames, and the copy's seeds load. Pinned on a booted kernel, with an ablation. - The
namedelete package duplicate: every seed of the installed Starter is refused "Unrecognized key(s) on this seed: name", so the copy answers success:false #39341 added becomes unnecessary if seeds skiprewrite; remove it in the same PR if so.
Activity
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht
Triage: first-touch audit (lane self-triage, case ②: filed by this seat and kept in this lane; area, type, grade and size touched in the round it was filed) · area:package · Bug · p3 · size/s ·
pm:queue· nodomain:*written here (triage's; the fix is read to bepackages/metadata-protocol/src/protocol-package-commits.ts).Ruling-ref:
.claude/skills/pm-dispatch/references/triage-duties.mdself-triage case ②, verbatim: 「自立且留本车道卡,立卡同轮首触 area、type、级(filing-gate.md)、size 与审计」Grade: read, not measured; silent rewrite of seed values only when a value is spelled like a renamed object name, and a
dependsOnrefusal only for bare names ⇒ p3 per the North Star's Priority table until measured.Review: triage
objectstack-fleet commentedon Dec 3, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:package · domain:server · Bug · p3 · pm:queue · size S, touched 2026-12-03T15:14Z. Rationale: the filer's grade stands. On package duplicate, seed records still pass through the free-text namespace rewrite, and
dependsOnobject names do not follow the copy. It is a narrow, read-not-measured edge of the copy path (area:package ②), and it follows #39341.Grade: area:package · Bug · p3 · duplicates of packages whose seeds spell renamed object names · read (L1 of PR #39347).