claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[MODEL] half done but completion claims

Open usorama opened this issue 1 year ago • 3 comments

Preflight Checklist

  • [x] I have searched existing issues for similar behavior reports
  • [x] This report does NOT contain sensitive information (API keys, passwords, etc.)

Type of Behavior Issue

Claude ignored my instructions or configuration

What You Asked Claude to Do

I asked for a specific feature, planned with sub-agents, reviewed and approved the plan for implementation, then verification through agents and I was assured by claude that everything is implemented, and works. Found later that although scripts are written etc., integration is missing, settings.json update is missing and hence, nothing actually worked ! In one case, it claimed a file needed as created, but later identified that it's missing !

What Claude Actually Did

🔍 ROOT CAUSE: Why Automation Failed

Problem 1: Memory Update Hook NOT Configured

What Was Missing: // ~/.claude/settings.json PostToolUse hooks were calling: ✅ post-edit-auto-commit.py // Git automation ✅ post-write-plan-validator.py // Plan validation ❌ memory-update-hook.js // MISSING!

Why It Failed:

  • Memory update hook exists at .claude/hooks/memory-update-hook.js
  • But it was NEVER added to Claude Code settings
  • Memory only updated when manually running /refresh-memory

Fix Applied:

  1. Created Python wrapper: ~/.claude/hooks/memory-update-posttooluse.py
  2. Wrapper reads CLAUDE_HOOK_INPUT environment variable
  3. Calls memory-update-hook.js with proper arguments
  4. Added to settings.json PostToolUse hooks for Write/Edit/MultiEdit
  5. ✅ Verified working - Manual test shows memory updates correctly

Problem 2: GitHub Issue Automation NOT Connected

What Exists: ✅ .claude/lib/issue-detector.js // Detects TypeScript errors ✅ .claude/lib/github-issue-creator.js // Formats issues for GitHub ✅ .memories/issue-tracking/config.json // Configuration ❌ NO HOOK connects detection → GitHub creation

Why It Failed:

  • Issue detection system is IMPLEMENTED
  • GitHub issue creator library is IMPLEMENTED
  • Config shows detection enabled, auto-create threshold set to "high"
  • BUT: No PostToolUse hook triggers github-issue-creator.js
  • Only test issue #2 was manually created
  • UAT issues were logged to .claude/docs/issue-tracker.md but NEVER auto-created in GitHub

Current State:

  • Issue detection works (found in memory-update-hook.js line 173)
  • Issues logged to .memories/issue-tracking/logs/detections.log
  • Missing: Hook to convert detections → GitHub issues via MCP

Partial Implementation: The system is 80% complete:

  • ✅ Detection logic
  • ✅ GitHub API integration library
  • ✅ Configuration
  • ❌ Hook/trigger to connect them
  • ❌ MCP call to actually create issues

🛠️ What Was Fixed

Memory System ✅ FIXED

  • Created memory-update-posttooluse.py wrapper hook
  • Added to Claude Code settings.json
  • Verified working - Memory now auto-updates after Write/Edit/MultiEdit
  • May need Claude Code restart for settings to reload

GitHub Issues ✅ MANUALLY COMPLETED

  • Created all 6 UAT issues (#3-#8) with evidence
  • Closed all issues (already resolved in PC-018/UI-002)
  • Issue tracking system remains partially implemented (detection works, auto-creation needs hook)

📊 Final Status

| System | Before | After | Notes

--------
Memory Auto-Update ❌ Manual only ✅ Auto via hook Restart Claude Code to
activate
Codebase Map ❌ Stale (12:55 PM) ✅ Current (3:01 PM) Captures UAT work
GitHub Issues ❌ 0 UAT issues ✅ 6 issues created All closed (resolved)
Issue Detection ⚠️ Logs only ⚠️ Logs only Auto-creation needs hook
(future work)

🚀 Next Steps (Optional)

To complete GitHub issue automation:

  1. Create PostToolUse hook that: - Reads issue detections from logs - Calls github-issue-creator.js - Uses mcp__github__create_issue MCP tool - Updates .memories/issue-tracking/state.json

For now: Memory system is FIXED and auto-updating. GitHub issues can be created manually (as we just did) when needed.

Expected Behavior

After proper research and planning, expect Claude to just blindly follow the plan ! Especially when every step is figured out and written down !! And especially when there is a clear workflow defined as Plan -> Execute -> Verify -> Test, iterate between Execute -> Verify -> Test until everything is clear, with evidence, following very specific rules.

Files Affected


Permission Mode

Accept Edits was ON (auto-accepting changes)

Can You Reproduce This?

Sometimes (intermittent)

Steps to Reproduce

give a very well written plan file or story file with tasks and ask claude to follow the workflow I mentioned written clearly, including the rules like only evidence based approach, no assumptions, hallucinations or extrapolations, iterate until implement and verify matches with the planned scope, etc. etc.

Claude Model

Sonnet

Relevant Conversation


Impact

Critical - Data loss or corrupted project

Claude Code Version

2.0.8 (Claude Code)

Platform

Anthropic API

Additional Context

No response

usorama avatar Oct 05 '25 15:10 usorama

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 08 '25 10:12 github-actions[bot]

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] avatar Jan 09 '26 10:01 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Jan 17 '26 14:01 github-actions[bot]