[Feature] Move hierarchical policy evaluation into policy #3

Closed
opened 2026-07-10 22:00:33 +02:00 by zemion · 1 comment
Owner

Moved from add-ideas/govoplan-core#88.

Reason: Policy extraction work belongs to the policy module.

Original issue body:

Imported from a backlog-like text file.

  • Source: /mnt/DATA/Nextcloud/ADD ideas UG/Products/govoplan/split-concept-action-plan.md
  • Line: 208
  • Source kind: product
  • Section: GovOPlaN Split Concept and Action Plan > Staged Refactor Plan > Phase 4: Extract Policy

Imported item:

Move hierarchical policy evaluation into policy.
Moved from add-ideas/govoplan-core#88. Reason: Policy extraction work belongs to the policy module. Original issue body: <!-- codex-generic-backlog-fingerprint:fcaaeafa3e5f4a99437b43ca --> Imported from a backlog-like text file. - Source: `/mnt/DATA/Nextcloud/ADD ideas UG/Products/govoplan/split-concept-action-plan.md` - Line: `208` - Source kind: `product` - Section: `GovOPlaN Split Concept and Action Plan > Staged Refactor Plan > Phase 4: Extract Policy` Imported item: ```text Move hierarchical policy evaluation into policy. ```
Author
Owner

Codex State: done

Summary

  • Added reusable hierarchical policy validation helpers in govoplan_policy.backend.hierarchy.
  • Privacy retention now routes parent-lock and effective policy validation through the policy-owned helper.

Changed Files

  • src/govoplan_policy/backend/hierarchy.py
  • src/govoplan_policy/backend/retention.py
  • docs/POLICY_DECISION_PROVENANCE.md

Verification

  • PYTHONPATH=src:/mnt/DATA/git/govoplan-core/src python -m unittest discover -s tests
## Codex State: done ### Summary - Added reusable hierarchical policy validation helpers in govoplan_policy.backend.hierarchy. - Privacy retention now routes parent-lock and effective policy validation through the policy-owned helper. ### Changed Files - `src/govoplan_policy/backend/hierarchy.py` - `src/govoplan_policy/backend/retention.py` - `docs/POLICY_DECISION_PROVENANCE.md` ### Verification - `PYTHONPATH=src:/mnt/DATA/git/govoplan-core/src python -m unittest discover -s tests`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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