Skip to content

feat: add department policies to default templates #723

@Aureliolo

Description

@Aureliolo

Problem

No template uses the policies field on departments. The field exists in TemplateDepartmentConfig and DepartmentPolicies supports review requirements, approval chains, and operational constraints -- but every template leaves it empty.

With #674 adding department detail pages to the org chart, these policies become visible and actionable.

Proposed Changes

Add realistic policies to templates with 3+ departments:

dev_shop

  • engineering: code_review_required: true, min_reviewers: 1
  • quality_assurance: test_coverage_required: true

product_team

  • engineering: code_review_required: true, min_reviewers: 1
  • design: design_review_required: true

agency

  • engineering: code_review_required: true, min_reviewers: 1
  • operations: client_approval_required: true

full_company

  • engineering: code_review_required: true, min_reviewers: 2, approval_chain: ["Software Architect", "CTO"]
  • security: security_review_required: true, approval_chain: ["Security Engineer", "CTO"]
  • operations: change_management_required: true

Scope

YAML-only changes. Policies must conform to whatever DepartmentPolicies schema supports at the time of implementation.

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio:mediumShould do, but not blockingscope:smallLess than 1 day of workspec:company-structureDESIGN_SPEC Section 4 - Company Structurespec:templatesDESIGN_SPEC Section 14 - Templates & Buildertype:featureNew feature implementationv0.5Minor version v0.5v0.5.1Patch release v0.5.1

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions