Skip to content

docs(api): TRA-742 BB43 F1+F2 — info.contact.url + external_key symmetry sweep#157

Closed
mikestankavich wants to merge 1 commit into
mainfrom
worktree-tra-742-bb43-f1f2-docs
Closed

docs(api): TRA-742 BB43 F1+F2 — info.contact.url + external_key symmetry sweep#157
mikestankavich wants to merge 1 commit into
mainfrom
worktree-tra-742-bb43-f1f2-docs

Conversation

@mikestankavich
Copy link
Copy Markdown
Contributor

Summary

Syncs trakrf/platform@24db422. BB43 hygiene/fix-now findings batched per the BB42 F1+F2 precedent (TRA-739).

F1info.contact.url was https://app.trakrf.id/api (returned the SPA HTML shell, not contact info). Now https://docs.trakrf.id/. With the literal app.trakrf.id/api removed from the spec, the three existing contact-URL swap mechanisms (platform runtime, refresh-openapi.sh DEPLOY_ENV=preview block, swap-openapi-env.mjs postbuild) all silently no-op — docs-mirror and platform-served copies remain byte-identical with no platform-side code change.

F2CreateAssetWithTagsRequest.external_key now carries a field-level description + example structurally parallel to CreateLocationWithTagsRequest.external_key.

Sweep — swept Create*Request / Update*Request Asset+Location pairs, Tag*Request variants, and *View response schemas. 5 additional asymmetries surfaced and batched in the same PR per the up-to-5 rule: CreateAssetWithTagsRequest description+name examples; UpdateAssetRequest description+is_active+name examples. Tag variants and *View schemas confirmed symmetric — no changes.

Files

  • static/api/openapi.{json,yaml} — refreshed from platform
  • static/api/platform-meta.json — bumped 07b5edb24db422

Follow-up (not in this PR)

scripts/swap-openapi-env.mjs and the DEPLOY_ENV=preview block in scripts/refresh-openapi.sh are now permanently no-op (their sole purpose was swapping the app.trakrf.id/api literal that's no longer in the spec). Suggest a separate cleanup PR removes them plus the postbuild hook in package.json.

Cross-references

  • Parent: TRA-741 (BB43 cycle findings)
  • Precedent: TRA-739 (BB42 F1+F2 combined-ticket pattern)
  • Triage framework: TRA-728

Test plan

  • Preview deploy renders updated contact URL on the OpenAPI reference page
  • Preview-served app.preview.trakrf.id/api/v1/openapi.yaml byte-identical to docs.preview.trakrf.id/api/openapi.yaml (BB spec-sync preflight)
  • Spot-check Swagger UI / Redoc render of the new external_key description on POST /assets

🤖 Generated with Claude Code

…try sweep

Syncs trakrf/platform@24db422. Spec edits batched in the platform PR:

F1 — info.contact.url: was https://app.trakrf.id/api (SPA HTML shell), now
https://docs.trakrf.id/ (docs site). With the literal app.trakrf.id/api gone
from the spec, the three contact-URL swap mechanisms (platform runtime,
refresh-openapi.sh DEPLOY_ENV=preview block, swap-openapi-env.mjs postbuild)
all silently no-op; docs-mirror and platform-served copies remain
byte-identical without any platform-side code change.

F2 — CreateAssetWithTagsRequest.external_key gains description + example
parallel to CreateLocationWithTagsRequest.external_key.

Sweep — 5 additional Asset/Location asymmetries surfaced and batched per
the up-to-5 rule: CreateAssetWithTagsRequest description+name examples;
UpdateAssetRequest description+is_active+name examples. Tag*Request
variants and *View response schemas reviewed and confirmed symmetric.

Cleanup follow-up (not in this PR): swap-openapi-env.mjs and the
DEPLOY_ENV=preview block in refresh-openapi.sh are now permanently
no-op and can be removed in a follow-up; their only job was swapping
the app.trakrf.id/api literal that no longer appears in the spec.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@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 16, 2026

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: b00f65d
Status: ✅  Deploy successful!
Preview URL: https://ea62cebb.docs-4n7.pages.dev
Branch Preview URL: https://preview.docs-4n7.pages.dev

View logs

@mikestankavich
Copy link
Copy Markdown
Contributor Author

Closing — the env-leak analysis surfaced that the docs-side mirror itself is the root issue (manual sync ceremony, contact-URL swap dance, BB byte-identity preflight all exist to manage a mirror that probably shouldn't exist). Pivoting to a redirect-based architecture. Follow-up on TRA-743.

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