feat(api): M8 7.15 slice 3 — downgrade discipline: auto-revoke + notify (CLS-07) #205
No reviewers
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit!205
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/m8-715-classification-core-3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Completes CLS-07 and the 7.15 enforcement trio (#158).
What
A level LOWER now auto-revokes every active share of the resource whose holder's current clearance is below the new level:
RevokeViolatingSharesAsync(ClassificationGates): joins active shares to tenant memberships, resolves holder ranks via the ladder (null clearance = Internal, per CLS-02), revokes + audits each (share_auto_revoked_classification) + notifies each holder (in-app + push)revoked_grantsfor the F-CLS5 consequences dialogSemantics worth noting
The revoke-on-lower doubles as stale-grant hygiene: a grant stranded by a holder's clearance drop (denied at access since, row intact) is finally revoked when the document is lowered to a rank they still violate — while holders the new level admits regain functionality immediately.
Verification
3 new tests (stale-grant revocation + notification + audit with compliant holder untouched; folder-lower revokes folder grants but never file grants; raise-never-revokes). Full suite 1073/0/40 locally.
7.15 enforcement is now complete: CLS-04 (slice 1), CLS-05/06 (slice 2), CLS-07 (this PR). Remaining in M8: 7.16 client UX.