[Task] Wave 0 policy decision display and provenance contract #1

Closed
opened 2026-07-08 20:43:06 +02:00 by zemion · 1 comment
Owner

Goal

Make policy decisions understandable in the UI by exposing effective decision, enforced/override state, and concrete provenance path consistently.

Scope

  • Define policy decision payloads for allow/deny/inherit/enforced states and source path entries.
  • Provide display helpers or shared components for effective policy columns and help text.
  • Ensure lower-level options are disabled or hidden when parent policy prevents them.
  • Keep the payload generic enough for mail policy, retention policy, and future modules.

Acceptance Criteria

  • Users see why a policy value is effective without reading raw JSON.
  • The provenance path uses concrete sources such as System: Allow > Tenant: Deny without override.
  • UI controls prevent obviously invalid lower-level choices before save.
  • The policy contract is documented and tested against partial module deployments.
  • Wave 0 platform hardening.
  • govoplan-core policy contract and shared UI components.
## Goal Make policy decisions understandable in the UI by exposing effective decision, enforced/override state, and concrete provenance path consistently. ## Scope - Define policy decision payloads for allow/deny/inherit/enforced states and source path entries. - Provide display helpers or shared components for effective policy columns and help text. - Ensure lower-level options are disabled or hidden when parent policy prevents them. - Keep the payload generic enough for mail policy, retention policy, and future modules. ## Acceptance Criteria - Users see why a policy value is effective without reading raw JSON. - The provenance path uses concrete sources such as `System: Allow > Tenant: Deny without override`. - UI controls prevent obviously invalid lower-level choices before save. - The policy contract is documented and tested against partial module deployments. ## Related - Wave 0 platform hardening. - govoplan-core policy contract and shared UI components.
Author
Owner

Implemented and verified.

  • Core policy DTOs define PolicyDecision, PolicySourceStep, source paths, requirements, and details.
  • Retention explain endpoint returns the shared decision/provenance shape; UI helper PolicySourcePath renders concrete source paths.
  • Added govoplan-policy/docs/POLICY_DECISION_PROVENANCE.md and README linkage.
  • Focused checks: tests/test_policy_contracts.py passed.
Implemented and verified. - Core policy DTOs define `PolicyDecision`, `PolicySourceStep`, source paths, requirements, and details. - Retention explain endpoint returns the shared decision/provenance shape; UI helper `PolicySourcePath` renders concrete source paths. - Added `govoplan-policy/docs/POLICY_DECISION_PROVENANCE.md` and README linkage. - Focused checks: `tests/test_policy_contracts.py` passed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: add-ideas/govoplan-policy#1
No description provided.