Skip to content

[5a] Policy editor — admin CRUD + activation #8

Description

@andrmaz

What to build

Admin can create, update, activate, and deactivate department policy JSON configurations via a policy editor. The editor validates rule structure before saving so malformed configs never reach the runtime evaluator. Policy records are scoped to a department within an organization.

Acceptance criteria

  • Admin can create a policy config (JSON) scoped to a department via POST /api/admin/policies.
  • Admin can activate and deactivate a policy version.
  • Invalid JSON rule shapes are rejected with validation errors before persisting.
  • Admin UI includes a policy editor with validation feedback.
  • Only one policy version is active per department at a time.

Blocked by

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmvpCortex MVP scope

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions