Skip to content

docs: sync CLAUDE.md with unified event-driven work flow#84

Merged
max-tet merged 1 commit into
mainfrom
docs/sync-claude-md-unified-work-flow
May 26, 2026
Merged

docs: sync CLAUDE.md with unified event-driven work flow#84
max-tet merged 1 commit into
mainfrom
docs/sync-claude-md-unified-work-flow

Conversation

@ClaydeCode
Copy link
Copy Markdown
Owner

What

CLAUDE.md still documented the old two-phase preliminary → thorough → 👍 plan state machine, deleted task files (tasks/plan.py, implement.py, review.py), removed prompts (preliminary_plan.j2, thorough_plan.j2, address_review.j2, …), the dropped is_plan_approved gate, and stale state fields (last_seen_comment_id, last_seen_review_id, preliminary_comment_id).

Reality on main: a single unified work task (tasks/work.py + prompts/work.j2) where Claude decides the next action (ask / plan / implement / open PR / address review). Verified: those stale terms appear nowhere in src/.

Why it matters

CLAUDE.md is loaded as Clayde's system prompt, so the stale doc actively misleads Clayde about its own architecture.

Changes (docs only)

  • Project Structure tree → work.py / work.j2
  • "State Machine" → "Work Loop (event-driven)" with the actual persisted state fields + activity-detection rules
  • Three task sections collapsed into one "Work Task" section
  • Safety Gates: drop is_plan_approved, add get_new_visible_comments
  • Logger names corrected

Scope: only the staleness already landed on main. The assigned-PR handling from #82 (pr_work.py) is intentionally not documented here — it should be documented by #82 when it merges.

🤖 Generated with Claude Code

The two-phase preliminary/thorough plan state machine was replaced by a
single unified work task (tasks/work.py, prompts/work.j2) where Claude
decides the next action. CLAUDE.md still described the old lifecycle,
deleted task files, removed prompts, stale state fields, and the
is_plan_approved gate — and since CLAUDE.md is loaded as Clayde's system
prompt, that staleness misleads Clayde about its own architecture.

Updates: project tree, State Machine -> Work Loop, single Work Task
section, Safety Gates, logger names.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@max-tet max-tet merged commit ae06454 into main May 26, 2026
3 checks passed
@max-tet max-tet deleted the docs/sync-claude-md-unified-work-flow branch May 26, 2026 13:14
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.

2 participants