Skip to content

Commit d0ebca0

Browse files
committed
fix(skill): add cycle to forge Step 11 routing and gate rollback labels (#557)
1 parent c553800 commit d0ebca0

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.claude/skills/titan-forge/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ For each target in the current phase:
219219

220220
11. **Run /titan-gate:**
221221
Use the Skill tool to invoke `titan-gate`.
222-
- If FAIL on **test/lint/build** (gate auto-rolls back staged changes) → go to rollback (step 13) to also revert working tree.
223-
- If FAIL on **semantic/structural** (gate does not auto-rollback its staging area, but forge must clean up for the next target) → unstage with `git reset HEAD <files> && git checkout -- <files>`, add to `execution.failedTargets` with reason, log the gate report, and continue to the next target. Do NOT go to step 13 — that step is for test/gate failures where gate already unstaged; going there again would attempt a duplicate rollback.
222+
- If FAIL on **cycle/test/lint/build** (gate auto-rolls back staged changes) → go to rollback (step 13) to also revert working tree.
223+
- If FAIL on **semantic/structural** (gate does not auto-rollback its staging area, but forge must clean up for the next target) → unstage with `git reset HEAD <files> && git checkout -- <files>`, add to `execution.failedTargets` with reason, log the gate report, and continue to the next target. Do NOT go to step 13 — that step is for cycle/test/gate failures where gate already unstaged; going there again would attempt a duplicate rollback.
224224

225225
12. **On success:**
226226
```bash

.claude/skills/titan-gate/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Aggregate all checks:
302302
| **WARN** | Warnings only — commit at your discretion |
303303
| **FAIL** | Failures present — auto-rollback triggered |
304304

305-
### Auto-rollback on FAIL (build/test/lint failures only)
305+
### Auto-rollback on FAIL (cycle/build/test/lint failures)
306306

307307
1. **Restore graph** to the most recent snapshot:
308308
```bash
@@ -392,7 +392,7 @@ GATE WARN — review before committing
392392
- Architecture: directory src/domain/ cohesion dropped 0.6 → 0.45
393393
```
394394

395-
**FAIL (test/lint/build failures — rollback triggered):**
395+
**FAIL (cycle/test/lint/build failures — rollback triggered):**
396396
```
397397
GATE FAIL — changes unstaged, graph restored
398398
Failures:

docs/examples/claude-code-skills/titan-forge/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ For each target in the current phase:
219219

220220
11. **Run /titan-gate:**
221221
Use the Skill tool to invoke `titan-gate`.
222-
- If FAIL on **test/lint/build** (gate auto-rolls back staged changes) → go to rollback (step 13) to also revert working tree.
223-
- If FAIL on **semantic/structural** (gate does not auto-rollback its staging area, but forge must clean up for the next target) → unstage with `git reset HEAD <files> && git checkout -- <files>`, add to `execution.failedTargets` with reason, log the gate report, and continue to the next target. Do NOT go to step 13 — that step is for test/gate failures where gate already unstaged; going there again would attempt a duplicate rollback.
222+
- If FAIL on **cycle/test/lint/build** (gate auto-rolls back staged changes) → go to rollback (step 13) to also revert working tree.
223+
- If FAIL on **semantic/structural** (gate does not auto-rollback its staging area, but forge must clean up for the next target) → unstage with `git reset HEAD <files> && git checkout -- <files>`, add to `execution.failedTargets` with reason, log the gate report, and continue to the next target. Do NOT go to step 13 — that step is for cycle/test/gate failures where gate already unstaged; going there again would attempt a duplicate rollback.
224224

225225
12. **On success:**
226226
```bash

docs/examples/claude-code-skills/titan-gate/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Aggregate all checks:
302302
| **WARN** | Warnings only — commit at your discretion |
303303
| **FAIL** | Failures present — auto-rollback triggered |
304304

305-
### Auto-rollback on FAIL (build/test/lint failures only)
305+
### Auto-rollback on FAIL (cycle/build/test/lint failures)
306306

307307
1. **Restore graph** to the most recent snapshot:
308308
```bash
@@ -392,7 +392,7 @@ GATE WARN — review before committing
392392
- Architecture: directory src/domain/ cohesion dropped 0.6 → 0.45
393393
```
394394

395-
**FAIL (test/lint/build failures — rollback triggered):**
395+
**FAIL (cycle/test/lint/build failures — rollback triggered):**
396396
```
397397
GATE FAIL — changes unstaged, graph restored
398398
Failures:

0 commit comments

Comments
 (0)