Skip to content

docs(api): finalize location external_key auto-mint to LOC-NNN#191

Merged
mikestankavich merged 5 commits into
mainfrom
docs/tra-551-loc-auto-mint
May 27, 2026
Merged

docs(api): finalize location external_key auto-mint to LOC-NNN#191
mikestankavich merged 5 commits into
mainfrom
docs/tra-551-loc-auto-mint

Conversation

@mikestankavich
Copy link
Copy Markdown
Contributor

@mikestankavich mikestankavich commented May 27, 2026

Summary

Docs follow-on to platform PR trakrf/platform#418. The location external_key auto-mint format shipped as LOC-NNN (3 digits, first mint LOC-001), narrower than ASSET-NNNN (4 digits) by deliberate triage decision — locations are typically named-and-known artifacts (warehouse rooms, dock doors, zones) where auto-mint is the exception rather than the norm.

  • docs/api/resource-identifiers.md — auto-mint table updated; new paragraph after the table explains the asset/location asymmetry rationale and the digit-count-agnostic property of both formats (past the natural width — LOC-1000+, ASSET-10000+ — the pattern continues without zero-pad reflow, so client parsers should match ^LOC-\d{3,}$ / ^ASSET-\d{4,}$ rather than fixed-width groups).
  • docs/api/errors.md — the retry-mint reference in the POST /assets, POST /locations idempotency bullet now reads LOC-NNN.
  • docs/api/date-fields.md — outbound example payload uses LOC-001 / LOC-002.
  • docs/api/changelog.md — new entry under ## v1.0 — Launch (TBD) documenting the finalization.

The BB52 historical paragraph in the changelog that mentions the previously-documented LOC-NNNN shape is preserved as-written — replacing it would rewrite history. The new entry above supersedes it for the current format.

Test plan

  • pnpm typecheck — clean
  • pnpm lint — no new findings (the docs/api/errors.md and superpowers/* warnings are pre-existing on main)
  • pnpm build — clean, no broken links, MDX compiles
  • Platform PR #418 behavior is on preview (per-PR preview deploy is up) — the "docs ship behind preview, not prod" gate is satisfied; this docs PR can merge in parallel with #418 rather than waiting on #418 to land on main
  • Visual spot-check of the rendered auto-mint section on the docs-PR preview deploy — confirm the new paragraph reads cleanly after the table and the in-page anchor from the changelog entry resolves

🤖 Generated with Claude Code

Mike Stankavich and others added 5 commits May 27, 2026 08:40
Aligns the resource-identifiers page with the location external_key
auto-mint format shipped server-side: LOC-NNN (3 digits, first mint
LOC-001) instead of LOC-NNNN (4 digits). Adds a paragraph after the
auto-mint table explaining the asset/location asymmetry — locations are
typically named-and-known artifacts so a 3-digit slot suffices for the
typical ad-hoc volume — and notes that both formats are digit-count-
agnostic past the natural width (LOC-1000+, ASSET-10000+) so client
parsers should match \d{3,} / \d{4,} rather than fixed widths.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The auto-mint format for locations is LOC-NNN (3 digits), not LOC-NNNN.
Matches resource-identifiers.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Match the LOC-NNN (3 digit) location external_key format.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Documents the 3-digit location auto-mint format and the deliberate
asymmetry with ASSET-NNNN. Pre-launch correction superseding the
previously-documented LOC-NNNN format.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 15ed87f
Status:🚫  Build failed.

View logs

@github-actions
Copy link
Copy Markdown

🚀 Preview Deployment Update

✅ This PR has been successfully merged into the preview branch.

The preview environment will update shortly at: https://docs.preview.trakrf.id

github-actions Bot added a commit that referenced this pull request May 27, 2026
@mikestankavich mikestankavich merged commit 0684f42 into main May 27, 2026
1 of 2 checks passed
@mikestankavich mikestankavich deleted the docs/tra-551-loc-auto-mint branch May 27, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant