# .devflow/ git-tracking policy
# ---------------------------------------------------------------------------
# Only curated, shared team knowledge is committed to git:
#   - decisions/decisions.md, decisions/pitfalls.md      (ADR / pitfall records)
#   - features/index.json, features/<slug>/KNOWLEDGE.md  (feature knowledge bases)
#
# Everything else under .devflow/ is per-developer or transient (memory, dream,
# docs, locks, runtime state, manifest, scratch results) and is
# intentionally ignored. Model: ignore-by-default, then re-include the curated
# files. Any NEW file under .devflow/ is ignored unless explicitly listed below.

# 1. Ignore everything under .devflow/ by default
*

# 2. Keep this policy file
!.gitignore

# 3. Track the decisions knowledge (not its log / config / locks / usage state)
!decisions/
!decisions/decisions.md
!decisions/pitfalls.md

# 4. Track the feature knowledge bases (not locks / sentinels / scratch results)
!features/
!features/index.json
!features/*/
!features/*/KNOWLEDGE.md
