| name | tdd |
| description | Vertical-slice test-driven workflow for meminsight features and fixes, anchored to OpenSpec capabilities and fixture validation. |
TDD
Purpose
Build changes in thin, behavior-first slices:
- Write one failing behavior check.
- Implement minimum code to pass.
- Refactor safely.
- Repeat.
Meminsight-specific rules
- Start each slice from an OpenSpec capability in openspec/specs.
- For parser/report changes, use fixture-based checks in test/ and test/run_ut.sh.
- Avoid implementation-coupled tests when behavior-level checks are possible.
- Preserve existing CSV structure unless explicitly changing behavior.
- Validate optional JSON behavior where feature flags or schema are touched.
Slice template
- Capability: C01 (example)
- Behavior under test: short statement
- Failing proof: command or test path
- Minimal implementation change: files touched
- Passing proof: command or test path
Exit criteria
- All new behavior is linked to a capability spec.
- Tests fail before and pass after implementation.
- No unrelated behavior drift introduced.