Skip to content

[BUG] Target 40 critic prompt diffs against HEAD instead of locked APPROVED_TREE (empty diff before Target 50 commit) #1

Closed

Description

@RandalSchwartz

Bug Summary

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

  1. Create a fresh branch at Target 10 (git checkout -b feat/1-example from main).
  2. Implement changes during Target 30 without committing (per rule 8 of agents/tdd-worker.md: "Do not run git commit").
  3. Reach Target 40 (adversarial-review) and run git add -A && git write-tree > .workflow/state/approved_tree.txt.
  4. Invoke adversarial-critic, which follows rule 2 of agents/adversarial-critic.md:
    git diff $(git merge-base HEAD origin/main) HEAD
  5. 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

  1. added
    bug
    on Oct 30, 2026
  2. added a commit that references this issue on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions