What problem does it solve?
It closes out a requirement pipeline by aggregating code change statistics and cost metrics, generating a standardized commit message, committing the code to git, and syncing the TAPD story status to "for test".
Core Features & Use Cases
- Change Statistics: Computes total, added, deleted, logic, test, and documentation line counts via git diff against the implement baseline commit.
- Cost Reconciliation Gate: Reconciles cost-events.jsonl against meta.yaml per_call entries by ts_event, deduplicating and backfilling any missed subagent cost events before final aggregation.
- Commit & Status Sync: Builds a conventional commit message with a --story footer, writes a commit.md record, commits the code, and updates the TAPD story status via MCP.
- Use Case: After a requirement passes architecture, security, code review, and test validation, run this stage to produce an auditable commit with full cost and change metrics recorded in meta.yaml and commit.md.
Quick Start
Run the commit stage for the current validated requirement to reconcile costs, commit the code, and mark the TAPD story as for test.