[Feature] Create focused tests for access changes when role assignments are granted, revoked, or expire #5

Closed
opened 2026-07-07 21:01:10 +02:00 by zemion · 3 comments
Owner

Imported from the repository seed backlog.

  • Source: /mnt/DATA/git/govoplan-postbox/docs/POSTBOX_BACKLOG.md
  • Line: 9
  • Section: P1 Immediate
  • Milestone: P1 Immediate

Backlog item:

Create focused tests for access changes when role assignments are granted, revoked, or expire

Additional cases

Cover multiple simultaneous incumbents, vacancy, account-specific acting context, delegated assignment expiry, reassignment, function/unit deactivation, tenant crossover attempts, stale cache invalidation, immutable historical evidence, and idempotent repeated delivery.

<!-- codex-module-seed-fingerprint:8eb467d214eb50d75a9c5e8a --> Imported from the repository seed backlog. - Source: `/mnt/DATA/git/govoplan-postbox/docs/POSTBOX_BACKLOG.md` - Line: `9` - Section: `P1 Immediate` - Milestone: `P1 Immediate` Backlog item: ```text Create focused tests for access changes when role assignments are granted, revoked, or expire ``` <!-- codex-postbox-test-refinement-2026-07-28 --> ## Additional cases Cover multiple simultaneous incumbents, vacancy, account-specific acting context, delegated assignment expiry, reassignment, function/unit deactivation, tenant crossover attempts, stale cache invalidation, immutable historical evidence, and idempotent repeated delivery.
zemion added this to the P1 Immediate milestone 2026-07-07 21:01:10 +02:00
Author
Owner

Codex State: progress

Focused tests now cover direct access grant/revocation, acting-context selection, vacancy, deterministic template materialization, immutable revisions, idempotent delivery, personal receipts, notification/event deduplication, tenant-safe API round trips, migrations, and hidden grouping-source retention. The broader inactive-function, reassignment, and policy matrix remains open.

## Codex State: progress Focused tests now cover direct access grant/revocation, acting-context selection, vacancy, deterministic template materialization, immutable revisions, idempotent delivery, personal receipts, notification/event deduplication, tenant-safe API round trips, migrations, and hidden grouping-source retention. The broader inactive-function, reassignment, and policy matrix remains open.
zemion added
status
in-progress
and removed
status
ready
labels 2026-07-29 00:20:18 +02:00
zemion added the source/backlog-import label 2026-07-29 14:15:14 +02:00
Author
Owner

Close-out audit, 2026-07-31

The test matrix has grown to 24 passing backend tests plus the WebUI structure test. It now covers access rule ordering, direct/delegated/acting sources, vacancy, assignment removal, tenant isolation, idempotent delivery, immutable route evidence, hierarchy cycles/deduplication, delayed vacancy escalation, and source-preserving grouping.

Remaining focused cases are function/unit deactivation, reassignment between incumbents, delegated-source expiry using the real IDM directory, and classification-policy transitions. Complete those alongside #3, then close this issue and the Postbox P1 milestone.

## Close-out audit, 2026-07-31 The test matrix has grown to 24 passing backend tests plus the WebUI structure test. It now covers access rule ordering, direct/delegated/acting sources, vacancy, assignment removal, tenant isolation, idempotent delivery, immutable route evidence, hierarchy cycles/deduplication, delayed vacancy escalation, and source-preserving grouping. Remaining focused cases are function/unit deactivation, reassignment between incumbents, delegated-source expiry using the real IDM directory, and classification-policy transitions. Complete those alongside #3, then close this issue and the Postbox P1 milestone.
Author
Owner

Completed in 0b6ebc3. The 31-test backend matrix now includes real SQL Identity/IDM/Organizations directory transitions for incumbent reassignment, delegated assignment expiry, function deactivation, unit deactivation, and function reassignment, plus classification-policy transitions. Existing vacancy, acting context, tenant isolation, idempotency, hierarchy, and evidence cases remain covered.

Completed in 0b6ebc3. The 31-test backend matrix now includes real SQL Identity/IDM/Organizations directory transitions for incumbent reassignment, delegated assignment expiry, function deactivation, unit deactivation, and function reassignment, plus classification-policy transitions. Existing vacancy, acting context, tenant isolation, idempotency, hierarchy, and evidence cases remain covered.
zemion removed the
status
in-progress
label 2026-07-31 18:22:16 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GovOPlaN/govoplan-postbox#5