Skip to content

Conversation

@TrevorHinesley
Copy link
Contributor

Problem

The review/resolve pipeline can delete plan files created by /workflows:plan.

Note: this might be heavy-handed, so I'm open to feedback. But deleting such a valuable artifact seems like a no-no :)

When running the full pipeline (plan → work → review → resolve → compound), the review step's parallel agents — specifically code-simplicity-reviewer (YAGNI) and git-history-analyzer — can flag docs/plans/*.md files as unnecessary cleanup candidates. The resolve step then executes those findings, deleting the plan file and adding docs/plans/ to .gitignore.

This directly contradicts /workflows:work, which treats plans as living documents and checks off tasks inside them as work progresses.

Fix

Rather than a single guardrail that could be bypassed, this adds protection at four layers in the pipeline:

Layer File What it does
Review orchestrator commands/workflows/review.md New "Protected Artifacts" section before agents launch; discard filter in synthesis checklist
YAGNI reviewer agents/review/code-simplicity-reviewer.md Exception added to the YAGNI rules — skip docs/plans/ and docs/solutions/
History analyzer agents/research/git-history-analyzer.md Note not to characterize pipeline artifacts as unnecessary
Resolve executor commands/resolve_todo_parallel.md Safety net — skip and wont_fix any todo targeting these paths

The same protection covers docs/solutions/*.md since those are also pipeline-managed artifacts.

Testing

This was discovered while running the full compound-engineering pipeline on a fresh Rails project. The plan file (docs/plans/2026-01-31-feat-projects-crud-plan.md, 750 lines) was deleted by the resolve step after being flagged as P3 cleanup by two review agents.

Workaround (adding a note to CLAUDE.md) confirmed the root cause — agents respect explicit instructions but had no built-in awareness of pipeline artifacts.

Fixes #140

Axl Ottle added 2 commits February 2, 2026 14:03
The review/resolve pipeline could flag docs/plans/*.md and
docs/solutions/*.md files for deletion, contradicting /workflows:work
which treats them as living documents.

Adds protection at three layers:
- review.md: Protected Artifacts section + synthesis filter
- code-simplicity-reviewer.md: YAGNI exception for pipeline artifacts
- resolve_todo_parallel.md: Safety check to skip/wont_fix such todos

Fixes EveryInc#140
The review/resolve pipeline could flag docs/plans/*.md and
docs/solutions/*.md files for deletion, contradicting /workflows:work
which treats them as living documents.

Adds protection at four layers:
- review.md: Protected Artifacts section and synthesis filter
- code-simplicity-reviewer.md: YAGNI exception for pipeline artifacts
- resolve_todo_parallel.md: Skip and wont_fix todos targeting these paths
- git-history-analyzer.md: Note not to characterize them as unnecessary

Fixes EveryInc#140
@kieranklaassen
Copy link
Collaborator

TY!

@kieranklaassen kieranklaassen merged commit 9f93f54 into EveryInc:main Feb 2, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review/resolve pipeline can delete plan files created by /workflows:plan

2 participants