Stack/graceful deletion/02 deletion api - #18
Open
dzdidi wants to merge 6 commits into
Open
Conversation
Signed-off-by: dzdidi <[email protected]>
Signed-off-by: dzdidi <[email protected]>
Signed-off-by: dzdidi <[email protected]>
Signed-off-by: dzdidi <[email protected]>
Signed-off-by: dzdidi <[email protected]>
Signed-off-by: dzdidi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part 2 of the graceful-deletion stack. Depends on Part 1.
Introduces the durable content-lock deletion model and creator-authorized API without executing destructive deletion phases yet.
The change:
Deletion that commits first blocks later proof admission. Proof admission that commits first is included in the frozen deletion snapshot.
Contract and risk impact
Public routes:
DELETE /creator/content-locks/{lock_id}GET /creator/content-locks/{lock_id}/deletionThe creator is derived from the authenticated frontend session. Public responses omit internal job IDs, task IDs, claim tokens, frozen manifests, and credentials.
Migrations:
0011_content_lock_deletions.sql0012_content_lock_deletion_task_snapshot.sql0013_content_lock_publication_intents.sqlVerification
The following commands were run successfully on the final combined stack:
cargo fmt --all -- --checkcargo test --workspace --all-targets --all-featurescargo clippy --workspace --all-targets --all-features -- -D warningsgit diff --check codex/bitkit-local-e2e-fixes..stack/graceful-deletion/05-executionThe final run included:
locks-servicelibrary: 355 passed;This intermediate slice was not independently rerun after restacking; its isolated CI result should be recorded before merge.
Documentation
Updated:
docs/API.mddocs/DOMAIN_MODEL.mddocs/RUNTIME.mddocs/ADRs/0020-locks-paykit-v1-integration-boundary.mddocs/plans/2026-08-10-graceful-content-lock-deletion.mdThe documentation covers the authenticated routes, redacted lifecycle, durable job model, admission cutoff, and publication fencing.
Checklist