# DO NOT EDIT -- overwritten on every update.
#
# Workflow customization surface for xiaoma-spec.
#
# Override files (not edited here):
#   {project-root}/_xiaoma/custom/xiaoma-spec.toml        (team)
#   {project-root}/_xiaoma/custom/xiaoma-spec.user.toml   (personal)

[workflow]

# --- Configurable below. Overrides merge per XiaoMa structural rules: ---
#   scalars: override wins • arrays: append

# Steps to run before the standard activation (config load, greet).
activation_steps_prepend = []

# Steps to run after greet but before the operation begins.
activation_steps_append = []

# Persistent facts the workflow keeps in mind for the whole run.
# Each entry is either a literal sentence, a skill prefixed with `skill:`,
# or a `file:`-prefixed path/glob whose contents are loaded as facts.
# Default points to a single top-level file; override in team/user TOML
# to widen the scope (e.g. `_xiaoma/**/project-context.md`) if needed.
persistent_facts = [
  "file:{project-root}/project-context.md",
]

# Executed when the workflow completes. Scalar or array of instructions.
on_complete = ""

# Spec template. The five-field kernel skeleton. Override the path in
# team/user TOML to enforce a different shape (e.g. a hypothesis field
# for research initiatives, or a mechanics field for games).
spec_template = "assets/spec-template.md"

# Canonical filename for the kernel artifact inside the spec folder.
# Uppercase by convention to signal "the central source of truth."
spec_filename = "SPEC.md"

# Output path for spec folders. Lands directly under {output_folder}
# so xiaoma-spec works in core-only installs and matches the
# long-term XiaoMa direction of grouping artifacts as siblings under
# {output_folder}/<type>/ rather than nested inside planning vs
# implementation folders.
spec_output_path = "{output_folder}/specs"

# Run-folder pattern inside spec_output_path. Resolved against the
# input-derived slug at activation. Same slug = same folder, so a
# second invocation updates the existing spec in place (capability
# IDs preserved). Override to add {date} or other components if a
# fresh dated history is preferred.
run_folder_pattern = "spec-{slug}"
