# SPDX-License-Identifier: MPL-2.0
# Dustfile — Standards repo recovery and rollback
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>

version: 1

recovery:
  source:
    - name: source-rollback
      description: "Revert all source changes to the last commit."
      rollback: "git checkout HEAD -- ."
      notes: "Use when a bad spec or template edit lands before review."

  generated:
    - name: regen-contractile-just
      description: "Re-derive contractile.just from the contractiles/ template set."
      handler: "contractile gen-just --dir contractiles"
      notes: "Regenerate after any change to Dustfile, Mustfile, Trustfile.a2ml, or Intentfile.a2ml."

  templates:
    - name: template-rollback
      description: "Roll back a specific contractile template to its last known-good revision."
      rollback: "git checkout HEAD~1 -- contractiles/"
      notes: "Use when a template update introduces an SPDX typo or template residue regression."

deprecation:
  - name: lust-intentfile-legacy
    what: "contractiles/lust/Intentfile (plain-text compatibility form)"
    since: "v1.0.0"
    remove-by: "v2.0.0"
    migration: "Use contractiles/intend/Intentfile.a2ml (canonical A2ML form) for all new repos."
    notes: "lust/ is kept only while repos that copied the old template still exist in the estate."
