trace-first-starter

TS — TFW-8: Reviewer Role and Workflow

Date: 2026-03-12 Author: Coordinator (AI) Status: 🟡 TS — Awaiting approval Parent HL: HL-TFW-8


1. Goal

Extract review from handoff.md into a standalone /tfw-review workflow with its own Role Lock, add a Reviewer role to the glossary and conventions, update all references across the project, and log the change in CHANGELOG. Two phases: A = core extraction, B = documentation sync.

2. Scope

In Scope

Out of Scope

3. Affected Files

Phase A: Core extraction (2 NEW + 6 MODIFY)

File Action Description
.tfw/workflows/review.md CREATE Canonical review workflow with Role Lock: Reviewer
.agent/workflows/tfw-review.md CREATE Adapter copy (byte-identical, YAML frontmatter)
.tfw/workflows/handoff.md MODIFY Remove Phase 4 (L99-140), add STOP block, update header/role lock/diagram/anti-patterns
.agent/workflows/tfw-handoff.md MODIFY Adapter sync — same edits as canonical handoff.md
.tfw/conventions.md MODIFY §8 add review.md row, fix handoff role; §14 add anti-pattern; §15 fix Role Lock table
.tfw/glossary.md MODIFY Add Reviewer role; update Coordinator role; update Workflow definition
AGENTS.md MODIFY Add review.md to workflow list, update handoff description
.tfw/CHANGELOG.md MODIFY Add entry in [Unreleased] section

Budget: 2 NEW + 6 MODIFY = 8 files. Over by 1 — justified: 2 MODIFYs are adapter copies (byte-identical to canonical).

Phase B: Documentation sync (0 NEW + 5 MODIFY)

File Action Description
.tfw/README.md MODIFY L77 directory tree, L168 workflows table, L281 evolution
.tfw/workflows/plan.md MODIFY L14, L76 — add /tfw-review mention after handoff
.tfw/workflows/resume.md MODIFY L83 — add review step reference
.tfw/init.md MODIFY L97, L184, L192 — add review to workflow lists
.tfw/adapters/antigravity/README.md MODIFY L21, L39, L51 — add review workflow to adapter setup

Budget: 0 NEW + 5 MODIFY = 5 files. Within budget ✅

4. Detailed Steps — Phase A

Step 1: Create .tfw/workflows/review.md

Canonical review workflow. Must contain:

Step 2: Create .agent/workflows/tfw-review.md

Byte-identical copy of .tfw/workflows/review.md. Same YAML frontmatter — Antigravity picks up the description field for /tfw-review slash command.

Step 3: Modify .tfw/workflows/handoff.md

Four changes:

3a. Update header and role lock block (lines 1-15):

3b. Replace Phase 4 (lines 99-140) with STOP block:

## 🛑 Executor STOP

> **Your work is done.** Do NOT proceed to review.
> Inform the user: "RF is complete. Start `/tfw-review` to review the results."
> Writing a REVIEW file as executor is a **🔒 Role Lock violation**.

3c. Update Multi-Phase diagram (lines 142-161):

3d. Update Anti-patterns (lines 163-178):

Step 4: Modify .agent/workflows/tfw-handoff.md

Apply identical edits as Step 3. This is the Antigravity adapter copy — must stay byte-identical to canonical handoff.md.

Step 5: Modify .tfw/conventions.md

5a. §8 Workflows table (lines 138-146):

5b. §14 Anti-patterns (around line 195):

5c. §15 Role Lock table (lines 202-209):

5d. §15 Hard Stop Rule (lines 211-217):

Step 6: Modify .tfw/glossary.md

6a. Update Workflow definition (line 63):

6b. Add Reviewer role (after Executor, around line 93):

### Reviewer (AI — coordinator in review mode)
- Reads RF and TS (for DoD verification)
- Writes REVIEW file with 9-point checklist
- Triages executor Observations → TECH_DEBT.md
- Updates Task Board status
- Cannot: write code, write ONB, write RF, modify HL/TS

6c. Update Coordinator role (lines 79-84):

Step 7: Modify AGENTS.md

7a. Workflow list (lines 29-32):

Step 8: Modify .tfw/CHANGELOG.md

8a. Under [Unreleased] section (line 6):

## [Unreleased]
### Added
- `review.md` workflow — standalone review process with `🔒 ROLE LOCK: REVIEWER`
- Reviewer role — coordinator in review-locked mode (glossary, conventions)
### Changed
- `handoff.md` — removed Phase 4 (review), added executor STOP block
- `conventions.md` — Role Lock table updated, "any role" for REVIEW removed
### Removed
- Review phase from `handoff.md` (moved to `review.md`)

5. Detailed Steps — Phase B

Step 9: Modify .tfw/README.md

9a. Directory tree (around L77):

9b. Workflows table (around L168):

9c. Evolution section (around L281):

Step 10: Modify .tfw/workflows/plan.md

10a. Role Lock block (L14):

10b. Small task path (L76):

10c. Multi-phase pattern (L106-116):

Step 11: Modify .tfw/workflows/resume.md

11a. Handoff reference (L83):

Step 12: Modify .tfw/init.md

12a. Adapter copy instructions (L97):

12b. Workflow references (L184, L192):

Step 13: Modify .tfw/adapters/antigravity/README.md

13a. Copy instructions (L21):

13b. Directory listing (L39):

13c. Sync section (L51):

6. Acceptance Criteria

7. Risks

Risk Mitigation
Executor still sees review instructions via cached context The canonical handoff.md is the source — once Phase 4 is removed, new sessions won’t have it
Existing REVIEW files in TFW-6/TFW-7 reference “Coordinator (AI)” as author Historical — no retroactive change needed. New reviews will say “Reviewer”
TD-10/TD-11 (“Three canonical workflows”) need updating Step 6a addresses this — the Workflow glossary definition gets updated
Phase B scope may uncover more references Grep scan covered all .tfw/ files — unlikely to find more

*TS — TFW-8: Reviewer Role and Workflow 2026-03-12*