Skip to content

feat(doctor): add multi-file spec state consistency checker script #185

Open

Description

@danielvm-git

Problem

Epic and story development states are mirrored across four locations:

  1. specs/state.yaml (active_epic, active_flow)
  2. specs/execution-status.yaml (development_status, stories)
  3. specs/release-plan.yaml (epics[].status)
  4. specs/epics/eNN-slug/epic.yaml (status)

If an agent or human aborts a build mid-flight, these files can fall out of sync, leading to contradictory orchestration behavior.

Proposed Solution

Create a lightweight doctor/audit script (e.g. scripts/check-spec-state.sh or integrate into scripts/audit-compliance.sh):

  1. Parse all four spec state sources.
  2. Flag any discrepancies where an epic/story is marked done in one file but in_progress or pending in another.
  3. Provide an automatic sync or clear diagnostic remediation message.

Affected Files

  • scripts/check-spec-state.sh (new)
  • scripts/audit-compliance.sh

Activity

  1. added
    enhancement
    on Nov 2, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions