Skip to content

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

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
  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

    Claim: area o5-D round 1 · 2026-11-25T23:39Z · area:data p2 (the maintainer, verbatim, 2026-11-25T23:33Z in this seat's project: 「开一个专区 ,接 data 的 p1 p2」)
    Area: o5-D
    Session: session_01Utp6CbdHk3orAeensH6EzS
    Account: os-bill
    Branch: claude/issue-35868-unit-codes-docs
    Worktree: objectstack-issue-35868
    Domain: domain:docs
    Seat: repo:objectstack#5
    File surface: content/docs/deployment/cli.mdx (the os migrate table row and a new os migrate unit-codes section), content/docs/data-modeling/** (a units page or a section of an existing page, plus meta.json if a page is added), the metadata.endpoints.maintenance describe in packages/spec/src/api/rest-server.zod.ts and its generated reference content/docs/references/**/rest-server.mdx, root .changeset/ (patch). Stop on breach and explain in the report.
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate, "the tier stays below the ceiling"), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7108893226
    Premise: holds at origin/main 98bda0a — git grep unit-codes -- content/docs hits only content/docs/permissions/system-context.mdx:209; cli.mdx has no unit-codes row; packages/spec/src/api/rest-server.zod.ts does not name the unit-code door; no units page under content/docs/data-modeling/. PR #35865 (the door) merged.
    Pre-claim lane: content/docs/** → docs, packages/spec/src/api/rest-server.zod.ts describe only → spec (text, Clause-②: no); kept in this lane per area-lease 留道.
    Pre-claim deps: Blocked-by: #35492 closed (PR #35865 merged). Hot files: open PR #37314 edits content/docs/deployment/cli.mdx (other sections); overlap-check before push decides order.
    Prior rulings read: check-prior-rulings --card 35868 --paths (cli.mdx, data-modeling/**, rest-server.zod.ts) → 115 ADR candidates, 0 ruling comments on the card; governing text ADR-0158 U7 (ruled on #35339, record 7001193034); no ruling conflicts with a docs-only change.
    Serial constraints cleared: open-PR file scan of 36 open PRs: #37314 (cli.mdx, data-modeling/seed-data.mdx) only; release PR #35129 touches changesets only.
    Scope: the card's three "Done when" items. Fixes #35868.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
  7. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS
    os-dev-report

    {
      "issue": 35868,
      "status": "blocked",
      "branch": "claude/issue-35868-unit-codes-docs",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37378",
      "head": "9ec53fc0",
      "gates": "local, at 9ec53fc0: dispatch-gates derived 104 families, 104 run (--ran reconciliation 104/104). exit 1: pnpm check:docs-audit-scope (scripts/docs-audit/handwritten-docs.json lacks content/docs/data-modeling/units.mdx; that path is outside the claim's File surface, so not committed). exit 3 / NOT MEASURED (prerequisite: whole-workspace build or unshallow clone, CI runs them): check:dual-build-cjs-loads, check:lean-entry-closure, spec check:skill-examples, check-plugin-teardown-shape --self-test. exit 3 then 0 after building the lint closure: lint check:doc-formula-expressions, lint check:doc-security-posture, check:docs-transcript-drift. exit 1 then 0 after the index fix: check-section-landing-index. All other 93: exit 0. spec check:generated: 1 of 14 stale (check:docs), fixed with --fix. spec typecheck + vitest src/api/rest-server.test.ts: 53/53. overlap-check: clean vs origin/main and #37314. CI check-runs: in_progress at report time.",
      "line_budget": "+202 / -3 over 7 files; under the 3000 human-merge threshold; no skills/** touched",
      "deviations": "none on the file surface. Pending: one generated line in scripts/docs-audit/handwritten-docs.json (outside File surface), awaiting the seat's word.",
      "files_changed": [".changeset/35868-maintenance-describe-unit-codes.md", "content/docs/data-modeling/index.mdx", "content/docs/data-modeling/meta.json", "content/docs/data-modeling/units.mdx", "content/docs/deployment/cli.mdx", "content/docs/references/api/rest-server.mdx", "packages/spec/src/api/rest-server.zod.ts"],
      "security_findings": "none"
    }
  8. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

    Claim amendment to comment 7177875522 (area o5-D) · 2026-11-26T00:18Z
    File surface (adds to the claim's line): scripts/docs-audit/handwritten-docs.json, only the generated line node scripts/docs-audit/check-audit-scope.mjs --write emits for the new content/docs/data-modeling/units.mdx. Reason: a new hand-written page always forces that line; pnpm check:docs-audit-scope is red on PR #37378 without it.

  9. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

    Close-out · area o5-D · 2026-11-26T01:25Z
    Delivered by PR #37378 (merged, 2e07e61647): os migrate unit-codes row and section in content/docs/deployment/cli.mdx; the maintenance describe names the unit-code door (reference regenerated, @objectstack/spec patch changeset); new content/docs/data-modeling/units.mdx with "Converting a field that already holds rows". L1 ACCEPT 7179258645.
    Remaining: none. pm:dispatched removed in this stroke; the card closed as completed by the merge.

  10. removed
    pm:dispatched
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:datadocumentationdomain:docspriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions