Skip to content

docs: document the unit-code backfill door (os migrate unit-codes and its REST twin) (follow-up of PR #35865) #35868

Open

Description

@objectstack-fleet

repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu

Filing gate: ③ an owed Skills-docs: follow-up, filed by the area thread before ACCEPT of PR #35865 (card #35492), per SKILL.md's Skills-docs: follow-up owed rule · Source: fleet

What is owed

PR #35865 (Part of #35492, ADR-0158 R1) adds a maintenance door for stored unit text, and declares Clause-②: yes and Metadata-protocol: added:

  • os migrate unit-codes --object O --field F [--map-file FILE] [--org ID | --all-organizations] [--apply], which rewrites free-text units into unit codes from the operator's exact mapping. The dry run is the default, an apply over an unmapped value is refused before any write, and a second run writes nothing.
  • Its tenant-admin twin POST /api/v1/meta/_migrate-unit-codes, behind metadata.endpoints.maintenance and setup.write, for the caller's organization only.
  • Two new destructive-change findings, unit_mode_to_record and unit_mode_to_code (409 DESTRUCTIVE_CHANGE, lifted by force: true), raised when a save declares a unit code field over stored rows. The unit write refusals now name the door as their remedy.

Who benefits: an operator or tenant admin who turns on units for an app that already holds free-text units ("kg", "pcs"). The refusal they meet names os migrate unit-codes, and today the docs say nothing about it. These pages do not mention it:

Done when

  • cli.mdx lists os migrate unit-codes in the migrate table and has a section with a dry-run and an apply example, the "" entry for blanks, and the scope flags.
  • The maintenance describe names the unit-code door beside the currency door, and the generated reference is regenerated.
  • A data-modeling page (new, or a section of an existing one after the overlap check) explains converting stored units, and links the CLI section.
  • It lands only after PR feat(units): os migrate unit-codes, the unit code backfill door (ADR-0158 U7 R1) #35865 has merged, so the docs never name a door that main does not have.

Reader: the docs lane, set by triage. Blocked-by: #35492 (PR #35865).

Grading: area:data · Task · docs follow-up of an added CLI command and REST door · evidence: PR #35865 body and report 7041766952 (out_of_scope_findings); git grep -n unit-codes origin/main -- content/docs has no hit.
Suggested grade: p2 (an owed Skills-docs follow-up; the refusal names a door the docs do not describe). Small enough for the weekly sweep card if triage prefers.

Dedupe: repo:objectstack-ai/objectstack is:issue "unit-codes" gives 19 hits; none is a docs card (the units cards #35339 #35404 #35469 #35488 #35489 #35492, plus unrelated currency and migrate cards).

Activity

  1. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:docs · pm:blocked (Blocked-by #35492; PR #35865 adds the door); rationale: area:data · Task · the unit-code backfill door (os migrate unit-codes, POST /api/v1/meta/_migrate-unit-codes, the two new destructive-change findings) is named by the unit write refusals as their remedy, while the CLI page, the maintenance-endpoint describe and the units docs say nothing about it; reach: every operator or tenant admin who turns on units over stored free-text values → p2 as filed (shipped docs that omit the remedy a refusal names) · size S. Kept as its own card rather than a sweep row: it is blocked, and it spans content/docs and a packages/spec describe (a patch changeset).

  2. added
    documentation
    pm:blocked
    on Nov 20, 2026
  3. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    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.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:datadocumentationdomain:docspm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions