Skip to content

docs(api): TRA-789 BB67 — Errors catalog correction + q parameter docs#183

Merged
mikestankavich merged 6 commits into
mainfrom
docs/tra-789-bb67
May 18, 2026
Merged

docs(api): TRA-789 BB67 — Errors catalog correction + q parameter docs#183
mikestankavich merged 6 commits into
mainfrom
docs/tra-789-bb67

Conversation

@mikestankavich
Copy link
Copy Markdown
Contributor

Summary

Docs-only fixes from the BB67 multi-org parallel triage. No platform PR — the committed customer-facing spec already encodes the post-BB63 / BB66 contract; only the prose is being aligned.

  • F1docs/api/errors.md read_only catalog entry no longer claims external_key and tags PATCH divergence emits code: read_only (they emit code: invalid_context per the BB63 split). invalid_context entry expanded to document the second semantic category (field handed off to a dedicated write subresource on PATCH).
  • F2parent_external_key removed from the read-only field list on the Errors page (it is fully writable on PATCH /locations/{id} for re-parenting). Cross-reference added.
  • F3docs/api/pagination-filtering-sorting.md q parameter section gains an explicit asymmetry callout (reports endpoint matches asset-side identifying fields only — no description, no location fields) and a single-value semantics note (only the first ?q= is honored).

Audit sweep

Per F1's "audit sibling pages for the same drift" verification step, additional sites carrying the same outdated read_only claim or parent_external_key-as-read-only listing have been corrected:

  • docs/api/pagination-filtering-sorting.md — "Validator behavior on writes" section.
  • docs/api/http-method-coverage.md — PATCH content-type section.
  • docs/api/resource-identifiers.mdUpdateLocationRequest / UpdateAssetRequest paragraphs (lines 300–301).
  • docs/api/design-notes.mdupdated_at optimistic-concurrency note (light-touch parenthetical for the code split).

No changelog

None of F1/F2/F3 is a runtime behavior change. The wire contract is what it has been since BB63 / BB66; only the prose is being aligned. No changelog entry needed (matches the ticket).

Test plan

  • pnpm build succeeds with no broken links
  • Render preview docs at https://docs.preview.trakrf.id and confirm:
    • /docs/api/errors read_only list contains exactly: id, created_at, updated_at, deleted_at, asset location_id, asset location_external_key
    • /docs/api/errors invalid_context entry has both semantic categories
    • /docs/api/pagination-filtering-sorting q section has asymmetry callout + single-value note
    • No other reference page lists parent_external_key as read-only or claims code: read_only for external_key / tags divergence

🤖 Generated with Claude Code

Mike Stankavich added 6 commits May 18, 2026 18:08
… catalog correction

read_only field list trimmed to truly server-managed fields and asset
location_* (scan-derived). external_key, tags, and parent_external_key
no longer appear: external_key and tags PATCH divergence emits
code: invalid_context per the BB63 split; parent_external_key is fully
writable on PATCH /locations/{id} for re-parenting.

invalid_context entry expanded with the second semantic category
(field handed off to a dedicated write subresource on PATCH), listing
external_key (via /rename) and tags (via /tags POST + DELETE).
…ites section code split

"Validator behavior on writes" section previously claimed a uniform
code: read_only across all non-settable PATCH fields, listed
parent_external_key among them, and pointed the rename/tags-subresource
hints at the read_only code. All three drift items: code is now split
(read_only for server-managed + asset location_*; invalid_context for
external_key + tags); parent_external_key called out as fully writable
on PATCH for re-parenting.
…ion code split

PATCH content-type section claimed a uniform code: read_only with
/rename and /tags hints, and lumped parent_external_key into the
natural-key reference enumeration. Split the code per BB63 (read_only
for server-managed and asset location_*; invalid_context for
external_key + tags). Call out parent_external_key as fully writable
on PATCH for re-parenting.
…otes light-touch code split

resource-identifiers.md (UpdateLocationRequest / UpdateAssetRequest
bullets): replace stale 400 read_only mentions with the BB63 code split
on external_key + tags (invalid_context) vs scan-derived asset
location_* (read_only).

design-notes.md (updated_at concurrency token): clarify the
accept-if-matches rule covers fields not directly settable on PATCH
(rather than "read-only fields"), with a parenthetical pointing at
the code split.
…alue semantics

Existing substring-search section had the per-endpoint matched-fields
matrix but didn't call out the reports asymmetry (no description, no
location fields — searches asset's identifying fields only) or the
single-value runtime behavior (only first ?q= wins; multi-value not
supported by the spec).
@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

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 18, 2026

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5003eab
Status: ✅  Deploy successful!
Preview URL: https://7d810bf2.docs-4n7.pages.dev
Branch Preview URL: https://preview.docs-4n7.pages.dev

View logs

@mikestankavich mikestankavich merged commit 121ed32 into main May 18, 2026
2 checks passed
@mikestankavich mikestankavich deleted the docs/tra-789-bb67 branch May 18, 2026 23:56
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