Skip to content

docs(api): TRA-816 — tag-cascade soft-delete docs#189

Merged
mikestankavich merged 4 commits into
mainfrom
docs/tra-816-tag-cascade
May 23, 2026
Merged

docs(api): TRA-816 — tag-cascade soft-delete docs#189
mikestankavich merged 4 commits into
mainfrom
docs/tra-816-tag-cascade

Conversation

@mikestankavich
Copy link
Copy Markdown
Contributor

Summary

Docs companion to platform PR trakrf/platform#397 (TRA-816, merged). Narrow scope:

  • New changelog entry under ## v1.0 — Launch (TBD) describing the parent-soft-delete cascade to attached tags, the one-shot sweep migration, and the conflict-detail join filter.
  • One sentence added to docs/api/resource-identifiers.md Tag CRUD section noting the cascade and cross-linking the existing soft-delete-visibility paragraph.

The documented contract on the Tag CRUD page already said the natural-key slot is freed on soft-delete; the platform was failing to match that on the parent-cascade path. These edits close the inference gap and log the fix.

Spec: superpowers/specs/2026-05-23-tra-816-tag-cascade-design.md
Plan: superpowers/plans/2026-05-23-tra-816-tag-cascade.md

Closes TRA-816.

Test plan

  • pnpm build succeeds with no broken internal links.
  • git grep audit: no stale prose contradicts the new cascade contract; the existing "cascade is not supported" hits on DELETE /locations are about bulk hard-cascade, a separate concept.
  • Reviewer eyes on the changelog phrasing and the placement of the new Tag CRUD sentence.

🤖 Generated with Claude Code

Mike Stankavich added 4 commits May 23, 2026 08:34
… tags

Companion docs change for platform PR #397. Narrow scope: one changelog
entry under v1.0 Launch and one Tag CRUD sentence in
resource-identifiers.md noting that parent soft-delete cascades to
attached tag rows in the same transaction. No errors.md, data-model.md,
design-notes.md, or spec changes — the documented contract was already
the post-fix shape; runtime is now matching it.
Two edits in docs/api/: one Tag CRUD sentence in resource-identifiers
plus one new entry at the top of the v1.0 Launch section of the
changelog. Plus build verification and PR open.
… rows

One sentence added to the Tag CRUD section: when a parent asset or
location is soft-deleted, its attached tag rows are soft-deleted in the
same transaction with the same deleted_at, so the (org_id, tag_type,
value) natural-key slot is released for immediate reattachment on
another entity in the same org. Cross-links the existing soft-delete
visibility section for the read-side counterpart.
New entry under v1.0 Launch: parent soft-delete now cascades to
attached tag rows, the existing orphan footprint is swept by the
release migration, and the conflict-detail join filter ensures
soft-deleted parent names cannot leak into 409 detail strings. Frames
the fix as bringing runtime in line with the existing
soft-delete-frees-the-handle contract on the Tag CRUD page.
@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

@mikestankavich mikestankavich merged commit 12e0d41 into main May 23, 2026
1 of 2 checks passed
@mikestankavich mikestankavich deleted the docs/tra-816-tag-cascade branch May 23, 2026 13:39
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