# commit-tracker-spores.md
# task-class: commit-tracker
# scion-model: n/a — hook-maintained, not scion-maintained
# token-budget: n/a — read by parent agent, not scion
# last-updated: 2026-03-24
#
# NOTE: This file uses spores as state flags, not policy decisions.
# Entries are written by the commit-state-hook.py PostToolUse hook
# and read by the parent agent to determine commit readiness.
# This is a novel usage pattern — documented in SEEDS.md.

---
spore: uncommitted-changes-state
task-class: commit-tracker
scion-model: n/a
deposited: 2026-03-24
hook: hooks/commit-state-hook.py
---
policy: flag when site/ has been written since last confirmed git push
trigger: PostToolUse · tool=Write · file_path in site/
status: clean                  # clean | pending | confirmed
pending-sections: []           # list of site/ paths written since last commit
last-commit: null              # ISO datetime of last confirmed push
last-write: null               # ISO datetime of most recent site/ write
on-novel: escalate to parent

# --- STATE LOG ---
# Hook appends entries here as writes occur and clears on confirmed commit.
# Parent reads this section to determine whether to proceed with next build.
#
# Format:
#   [YYYY-MM-DD HH:MM] PENDING   site/index.html
#   [YYYY-MM-DD HH:MM] PENDING   site/writings/essay-one.html
#   [YYYY-MM-DD HH:MM] COMMITTED all — confirmed push to gitea
