[Feature] Govern inherited and reusable flow definitions with explainable Policy decisions #8

Open
opened 2026-07-28 14:02:51 +02:00 by zemion · 1 comment
Owner

Define the domain-neutral Policy decision used by Dataflow and Workflow for inherited definitions, templates, derivation, reuse, execution, and trigger creation.

Acceptance criteria:

  • evaluate system, tenant, group, and user definition scopes without importing either domain module
  • distinguish view, edit, run/start, reuse/derive, and automate actions
  • templates can be viewed and derived but can never be run, started, or scheduled directly
  • lower scopes can only narrow ancestor visibility, reuse, execution, and automation grants
  • every decision returns ordered source provenance, effective limitations, reason, and requirements
  • malformed explicit policy fails closed; absence of Policy leaves modules in tenant-local conservative mode
  • backend contract tests cover system-to-tenant, tenant-to-group/user, read-only inheritance, and denial paths
Define the domain-neutral Policy decision used by Dataflow and Workflow for inherited definitions, templates, derivation, reuse, execution, and trigger creation. Acceptance criteria: - evaluate system, tenant, group, and user definition scopes without importing either domain module - distinguish view, edit, run/start, reuse/derive, and automate actions - templates can be viewed and derived but can never be run, started, or scheduled directly - lower scopes can only narrow ancestor visibility, reuse, execution, and automation grants - every decision returns ordered source provenance, effective limitations, reason, and requirements - malformed explicit policy fails closed; absence of Policy leaves modules in tenant-local conservative mode - backend contract tests cover system-to-tenant, tenant-to-group/user, read-only inheritance, and denial paths
Author
Owner

Implemented foundation in govoplan-core@26ae034 and govoplan-policy@d6e09fb.

Completed:

  • domain-neutral system/tenant/group/user definition scope and flow/template action contract
  • view, edit, run/start, reuse/derive, and automate decisions
  • templates fail closed for execution and automation
  • inherited system definitions are read-only at lower scopes
  • ancestor inheritance/run/reuse/automation ceilings are preserved transitively and cannot be broadened by update or another derivation
  • ordered source path, effective limits, denial reason, and requirements are returned to consumers
  • conservative tenant-local fallback when Policy is absent
  • contract and denial-path tests, including ancestor visibility regression coverage

Remaining before closure:

  • persist and administer explicit Policy override records, including malformed-record fail-closed tests
  • broaden hierarchy tests for tenant-to-group/user policy records rather than definition-owned limits alone

Verification: Policy 26 tests pass; consolidated focused suite passes.

Implemented foundation in govoplan-core@26ae034 and govoplan-policy@d6e09fb. Completed: - domain-neutral system/tenant/group/user definition scope and flow/template action contract - view, edit, run/start, reuse/derive, and automate decisions - templates fail closed for execution and automation - inherited system definitions are read-only at lower scopes - ancestor inheritance/run/reuse/automation ceilings are preserved transitively and cannot be broadened by update or another derivation - ordered source path, effective limits, denial reason, and requirements are returned to consumers - conservative tenant-local fallback when Policy is absent - contract and denial-path tests, including ancestor visibility regression coverage Remaining before closure: - persist and administer explicit Policy override records, including malformed-record fail-closed tests - broaden hierarchy tests for tenant-to-group/user policy records rather than definition-owned limits alone Verification: Policy 26 tests pass; consolidated focused suite passes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GovOPlaN/govoplan-policy#8
No description provided.