[Feature] Add advanced function delegation ceilings and timed escalation #10

Closed
opened 2026-07-31 19:43:22 +02:00 by zemion · 2 comments
Owner

Goal

Extend the governed function-assignment aggregate delivered by #8/#9 with advanced, explicitly configured delegation and escalation controls.

Scope

  • Policy fields for allowing delegation, maximum delegation-chain depth, and delegated validity ceilings.
  • Recheck the complete effective delegation chain at submission, approval, and application.
  • Configurable escalation target function and timeout per review step.
  • A durable escalated state/transition with Notifications and Audit provenance; never silently substitute an approver.
  • Explain unavailable, vacant, expired, cyclic, over-depth, and policy-tightened delegation/escalation routes in API and UI.
  • Lifecycle tests for timed escalation, concurrent recovery, changed authority/holder facts, and exact-once application after escalation.

Boundary

IDM owns assignment/change state and delegation-chain facts. Policy resolves limits and escalation authority. Workflow Engine coordinates the pinned route. This issue does not change the base holder/authority/recipient journeys completed in #8/#9.

## Goal Extend the governed function-assignment aggregate delivered by #8/#9 with advanced, explicitly configured delegation and escalation controls. ## Scope - Policy fields for allowing delegation, maximum delegation-chain depth, and delegated validity ceilings. - Recheck the complete effective delegation chain at submission, approval, and application. - Configurable escalation target function and timeout per review step. - A durable escalated state/transition with Notifications and Audit provenance; never silently substitute an approver. - Explain unavailable, vacant, expired, cyclic, over-depth, and policy-tightened delegation/escalation routes in API and UI. - Lifecycle tests for timed escalation, concurrent recovery, changed authority/holder facts, and exact-once application after escalation. ## Boundary IDM owns assignment/change state and delegation-chain facts. Policy resolves limits and escalation authority. Workflow Engine coordinates the pinned route. This issue does not change the base holder/authority/recipient journeys completed in #8/#9.
zemion added
status
in-progress
and removed
status
ready
labels 2026-08-22 02:42:42 +02:00
Author
Owner

Starting the autonomous implementation slice. I will extend the existing governed function-assignment aggregate with configured delegation depth/validity ceilings, full-chain rechecks, durable timed escalation, fail-closed authority changes, Notifications/Audit provenance, explainable API/UI states, and concurrency/exact-once fixtures. No deployment credential or product-policy decision is required by this issue.

Starting the autonomous implementation slice. I will extend the existing governed function-assignment aggregate with configured delegation depth/validity ceilings, full-chain rechecks, durable timed escalation, fail-closed authority changes, Notifications/Audit provenance, explainable API/UI states, and concurrency/exact-once fixtures. No deployment credential or product-policy decision is required by this issue.
Author
Owner

Implemented, verified, and published as a coordinated release.

Delivered:

  • Core policy contracts for delegation permission, maximum delegation depth, delegated-validity ceilings, explicit per-step escalation targets/timeouts, and the approve_escalation action.
  • Policy resolution that returns those bounded decisions and route-specific unavailability reasons.
  • IDM full-chain validation for vacant, unavailable, expired, cyclic, over-depth, source-invalid, and policy-tightened delegation routes at submission, approval, application, and recovery.
  • Durable review deadlines and escalated state via migration c2d3e4f5a6b7; escalation records append-only workflow evidence, a platform event, Audit evidence, and Notifications without silently completing or substituting an approval.
  • Explicit escalation-target approval plus final changed-fact and quorum rechecks; stale/concurrent recovery is guarded by resource revisions and assignment application remains exactly once.
  • Tenant settings API and IDM UI controls for delegation ceilings and holder/authority/recipient escalation rules, including referenced-function validation.
  • API/UI state fields and user/admin documentation for deadlines, escalation provenance, blockers, recovery, and operational consequences.

Published commits and tags:

  • Core 0c1358b / v0.1.29
  • Policy 5753488 / v0.1.20
  • IDM 21e8f0b / v0.1.20
  • Workspace 4eb9007 / v0.1.29

Verification:

  • Core: 613 tests passed (3 PostgreSQL-only skips).
  • Policy: 65 tests passed.
  • IDM: 47 tests passed, including fresh migration, delegation-chain failures, timed exact-once escalation, changed facts, recovery, and exactly-once assignment application.
  • Ruff passed for all three changed repositories.
  • Manifest registry: 68/68; AST: 1,942 Python files; dependency and documentation contracts passed.
  • Production WebUI TypeScript/Vite build and bundle budget passed.
  • Full tools/checks/check-focused.sh passed, including 59 module permutations and 8 Playwright accessibility/layout conformance tests.

No manual configuration or product decision is required to close this implementation issue; tenants choose the delegation and escalation policy values.

Implemented, verified, and published as a coordinated release. Delivered: - Core policy contracts for delegation permission, maximum delegation depth, delegated-validity ceilings, explicit per-step escalation targets/timeouts, and the approve_escalation action. - Policy resolution that returns those bounded decisions and route-specific unavailability reasons. - IDM full-chain validation for vacant, unavailable, expired, cyclic, over-depth, source-invalid, and policy-tightened delegation routes at submission, approval, application, and recovery. - Durable review deadlines and escalated state via migration c2d3e4f5a6b7; escalation records append-only workflow evidence, a platform event, Audit evidence, and Notifications without silently completing or substituting an approval. - Explicit escalation-target approval plus final changed-fact and quorum rechecks; stale/concurrent recovery is guarded by resource revisions and assignment application remains exactly once. - Tenant settings API and IDM UI controls for delegation ceilings and holder/authority/recipient escalation rules, including referenced-function validation. - API/UI state fields and user/admin documentation for deadlines, escalation provenance, blockers, recovery, and operational consequences. Published commits and tags: - Core 0c1358b / v0.1.29 - Policy 5753488 / v0.1.20 - IDM 21e8f0b / v0.1.20 - Workspace 4eb9007 / v0.1.29 Verification: - Core: 613 tests passed (3 PostgreSQL-only skips). - Policy: 65 tests passed. - IDM: 47 tests passed, including fresh migration, delegation-chain failures, timed exact-once escalation, changed facts, recovery, and exactly-once assignment application. - Ruff passed for all three changed repositories. - Manifest registry: 68/68; AST: 1,942 Python files; dependency and documentation contracts passed. - Production WebUI TypeScript/Vite build and bundle budget passed. - Full tools/checks/check-focused.sh passed, including 59 module permutations and 8 Playwright accessibility/layout conformance tests. No manual configuration or product decision is required to close this implementation issue; tenants choose the delegation and escalation policy values.
zemion removed the
status
in-progress
label 2026-08-22 03:32:51 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GovOPlaN/govoplan-idm#10