Skip to content

feat: per-department ceremony policy override in template schema #980

@Aureliolo

Description

@Aureliolo

Summary

Add per-department ceremony policy override support to the template schema and department configuration. This enables the 3-level config resolution: project default + department override + per-ceremony override.

Design Reference

See Ceremony Scheduling design page -- "3-Level Resolution" section.

Requirements

  • Extend TemplateDepartmentConfig (or the runtime department config) with an optional ceremony_policy: CeremonyPolicyConfig | None field
  • When None, the department inherits the project-level policy
  • When set, its fields override the project-level policy field-by-field
  • Per-ceremony overrides still take precedence over department-level
  • Template YAML files can optionally declare department-level ceremony policies
  • resolve_ceremony_policy() from feat: sprint ceremony runtime scheduler with task-driven cadence support #961 handles the 3-level merge

Example

departments:
  engineering:
    # inherits project default (task_driven)
  marketing:
    ceremony_policy:
      strategy: calendar  # marketing uses calendar
  design:
    ceremony_policy:
      strategy: event_driven
      transition_threshold: 0.8  # auto-transition at 80%

Implementation

  • Modify: src/synthorg/templates/schema.py -- add ceremony_policy to TemplateDepartmentConfig
  • Modify: template renderer to pass department policy to config resolution
  • Update tests for department-level policy resolution

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio:lowNice to have, can deferscope:smallLess than 1 day of workspec:task-workflowDESIGN_SPEC Section 6 - Task & Workflow Enginetype:featureNew feature implementationv0.6Minor version v0.6v0.6.0Patch release v0.6.0

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions