You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(parity): guard empty --langs, capture headBefore/headAfter in step 4.6
- Guard against --langs with no value: an empty langsFilter array is truthy
so filtering produces zero fixtures and exits 0 — a false pass. Now exits 2
with an explicit error message.
- Add headBefore capture to step 4.6b and headAfter capture to step 4.6e so
the commit-audit command in 4.6e has concrete variables to expand.
Copy file name to clipboardExpand all lines: .claude/skills/titan-run/SKILL.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -763,6 +763,10 @@ test -f .claude/skills/parity/SKILL.md && echo "PARITY SKILL FOUND" || echo "NO
763
763
764
764
Record `phaseTimestamps.parity.startedAt`.
765
765
766
+
```bash
767
+
headBefore=$(git rev-parse HEAD)
768
+
```
769
+
766
770
### 4.6c. Run Pre-Agent Gate (G1-G4)
767
771
768
772
### 4.6d. Dispatch sub-agent
@@ -780,8 +784,13 @@ Agent → "Run /parity. Read .claude/skills/parity/SKILL.md and follow it exactl
780
784
### 4.6e. Post-phase validation
781
785
782
786
After the agent returns:
787
+
788
+
```bash
789
+
headAfter=$(git rev-parse HEAD)
790
+
```
791
+
783
792
- `git status --short` → the working tree must be clean. The sub-agent commits its fixes; uncommitted changes mean it stopped mid-fix → **stop** and report.
784
-
- If the agent fixed divergences, run V16-style commit audit: `git log --oneline <headBefore>..<headAfter>` and print the parity-fix commits.
793
+
- If the agent fixed divergences, run V16-style commit audit: `git log --oneline $headBefore..$headAfter` and print the parity-fix commits.
785
794
- If the agent reports divergences introduced by THIS run that it could not fix → **stop**: "PARITY failed — this run introduced implementation drift. Fix before CLOSE or revert the offending commits." Pre-existing divergences filed as issues are not blockers; print the issue URLs.
786
795
787
796
Print: `"PARITY complete: <clean | N divergences fixed | N pre-existing filed as issues>"`
0 commit comments