You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
client: add meta.migrateUnitCodes, the SDK twin of the unit-code backfill door (follow-up of PR #35865) #35869
Filing gate: ③ a review follow-up, filed by the area thread on L1 7041952857 and L2 7041994401 of PR #35865 (card #35492), both answering the dev's open question 1 with A · Source: fleet
What is owed
PR #35865 (Part of #35492, ADR-0158 R1) adds the tenant-admin REST door POST /api/v1/meta/_migrate-unit-codes, which converts stored free-text units to unit codes from an operator's mapping. Its route ledger row ships as server-only, because packages/client was outside that card's file surface. The currency twin of the same door already has its SDK method, client.meta.migrateRecordCurrencyCodes (packages/client/src/index.ts ~L2490 on main, pinned in meta-automation-descriptors.test.ts).
Who benefits: a tenant admin tool or script that calls the backfill over HTTP. Without the method, it builds the fetch by hand against the route's closed body set, and the two backfill doors have different shapes in the SDK.
Done when
client.meta.migrateUnitCodes({ object, field, mapping, apply? }) posts to _migrate-unit-codes with exactly the route's closed body set, and returns its report and refusals as the currency method does.
It is pinned beside the migrateRecordCurrencyCodes case, and the route ledger row in packages/rest/src/rest-route-ledger.ts flips from server-only to sdk.
A changeset at minor for @objectstack/client (a new method).
Reader: area:data, set by triage. Blocked-by: #35492 (PR #35865).
Grading: area:data · Task · SDK parity follow-up of a new REST door · evidence: PR #35865 report 7041766952 (open_questions, Q1) and its route ledger row; git grep -n migrateUnitCodes origin/main -- packages/client has no hit.
Suggested grade: p3 (the door is reachable through the CLI and REST today; this is parity). Small enough for a weekly sweep card if triage prefers.
Triage: lands in domain:server (packages/client, the REST route ledger) · pm:blocked (Blocked-by #35492; PR #35865 adds the door); rationale: area:data · Task · client.meta.migrateUnitCodes, the SDK twin of the new unit-code backfill door, matching the existing migrateRecordCurrencyCodes; effect: a tenant-admin script calls the backfill by hand-built fetch until it lands; the ledger row flips server-only → sdk → p3 as filed · size S. Kept as its own card while blocked; once unblocked it is a sweep-row candidate for the data sweep.
Unlock (daily scan): every Blocked-by: target is closed, so pm:blocked → pm:queue; grade unchanged.
Targets read this round, all closed in this repository: #35492 (and its PR #35865, merged). The body named it mid-sentence, which the line reader does not take. No Unlock-action: line, no assignee; same repository, so no installability check is owed.
Activity
objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(packages/client, the REST route ledger) ·pm:blocked(Blocked-by #35492; PR #35865 adds the door); rationale: area:data · Task ·client.meta.migrateUnitCodes, the SDK twin of the new unit-code backfill door, matching the existingmigrateRecordCurrencyCodes; effect: a tenant-admin script calls the backfill by hand-built fetch until it lands; the ledger row flipsserver-only→sdk→ p3 as filed · size S. Kept as its own card while blocked; once unblocked it is a sweep-row candidate for the data sweep.objectstack-fleet commentedon Nov 23, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Unlock (daily scan): every
Blocked-by:target is closed, sopm:blocked→pm:queue; grade unchanged.Targets read this round, all closed in this repository: #35492 (and its PR #35865, merged). The body named it mid-sentence, which the line reader does not take. No
Unlock-action:line, no assignee; same repository, so no installability check is owed.