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
{{ message }}
Repository navigation
[BUG] Target 40 critic prompt diffs against HEAD instead of locked APPROVED_TREE (empty diff before Target 50 commit) #1
At Target 40 (adversarial-review), changes are staged into the Git index via git add -A && git write-tree > .workflow/state/approved_tree.txt and are not committed until Target 50 (commit). However, agents/adversarial-critic.md (line 13) and CLAUDE.md (line 29) instruct the critic to diff against HEAD instead of $APPROVED_TREE, which produces an empty diff on the first commit of a fresh ticket branch.
Environment
Agent runtime: Antigravity IDE / CLI, Claude Code
Operating system: macOS / Linux
Project language(s): All (workflow orchestration)
Plugin version: 1.3.0 (1719139)
Steps to Reproduce
Create a fresh branch at Target 10 (git checkout -b feat/1-example from main).
Implement changes during Target 30 without committing (per rule 8 of agents/tdd-worker.md: "Do not run git commit").
Reach Target 40 (adversarial-review) and run git add -A && git write-tree > .workflow/state/approved_tree.txt.
Invoke adversarial-critic, which follows rule 2 of agents/adversarial-critic.md:
git diff $(git merge-base HEAD origin/main) HEAD
Because HEAD is still equal to origin/main (nothing has been committed yet), the diff is completely empty and the critic approves a vacuous diff.
Expected Result
agents/adversarial-critic.md and CLAUDE.md should match skills/makefile-workflow/references/04_six_pillars_adversarial_review.md (lines 24–25) and diff against the locked Merkle tree hash in .workflow/state/approved_tree.txt:
APPROVED_TREE=$(cat .workflow/state/approved_tree.txt)
git diff $(git merge-base HEAD origin/main)"$APPROVED_TREE"
Logs and State Files
agents/adversarial-critic.md line 13:
2. Read the branch diff with `git diff $(git merge-base HEAD origin/main) HEAD`.
CLAUDE.md line 29:
claude -p --model claude-3-opus-20240229 "Run Six-Pillar review on $(git merge-base HEAD origin/main)..HEAD"
Activity
chore(workflow): record ticket #1 in request history ledger
docs(history): record resolution of Issue #1 (PR #6)