[Bug] Claude fails to consistently follow project rules despite acknowledging violations
Bug Description
Honesty without the capacity to learn or remember is extremely frustrating. This session _ignored_ the rule in the project constitution to never commit with linting errors upwards of 5 times. It was aware enough to retrospectively notice it broke the rule, acknowledge and apologize, but it clearly had no capacity to stop doing it. From a human perspective this is incredibly annoying.
Even worse, I have a rule in core memory to run tests in the test container with the test db. Should be pretty obvious without the rule, but I've learned that the hard way. Guess what else happened this session? We ran TESTS in my WEB container. It did NOT notice this until I saw my local data changed and asked about it. Then it noticed there was a rule in the memory, apologized, and explained this was due to the rule "not being specific enough". Then, it checked the rule - turns out its already pretty specific. So, it says it will include a consequence to the rule, which is something that has no impact on its process of actually checking said rules or obeying them.
Announcing errors helps in that it surfaces issues so I am aware of them, but given that the only tools I have to improve processes are clearly broken, it just makes the user, frustrated and powerless.
Environment Info
- Platform: darwin
- Terminal: waveterm
- Version: 2.1.158
- Feedback ID: 802f8a50-b8ff-4a30-a5e4-682ad491e8e2
Errors
[{"error":"The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()","timestamp":"2026-05-30T09:40:19.301Z"},{"error":"Error: Tool Result not found\n at FOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n at h3 (/$bunfs/root/src/entrypoints/cli.js:579:21150)\n at Ww (/$bunfs/root/src/entrypoints/cli.js:579:39921)\n at s9H (/$bunfs/root/src/entrypoints/cli.js:579:50731)\n at H7H (/$bunfs/root/src/entrypoints/cli.js:579:87746)\n at vt (/$bunfs/root/src/entrypoints/cli.js:579:86710)\n at Nt (/$bunfs/root/src/entrypoints/cli.js:579:86530)\n at zg (/$bunfs/root/src/entrypoints/cli.js:579:82872)\n at j_ (/$bunfs/root/src/entrypoints/cli.js:579:6438)\n at vM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-05-30T18:48:09.327Z"},{"error":"Error: Tool Result not found\n at FOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n at h3 (/$bunfs/root/src/entrypoints/cli.js:579:21150)\n at Ww (/$bunfs/root/src/entrypoints/cli.js:579:39921)\n at s9H (/$bunfs/root/src/entrypoints/cli.js:579:50731)\n at H7H (/$bunfs/root/src/entrypoints/cli.js:579:87746)\n at vt (/$bunfs/root/src/entrypoints/cli.js:579:86710)\n at Nt (/$bunfs/root/src/entrypoints/cli.js:579:86530)\n at zg (/$bunfs/root/src/entrypoints/cli.js:579:82872)\n at j_ (/$bunfs/root/src/entrypoints/cli.js:579:6438)\n at vM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-05-30T18:48:10.261Z"},{"error":"Error: Tool Result not found\n at FOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n at h3 (/$bunfs/root/src/entrypoints/cli.js:579:21150)\n at Ww (/$bunfs/root/src/entrypoints/cli.js:579:39921)\n at s9H (/$bunfs/root/src/entrypoints/cli.js:579:50731)\n at H7H (/$bunfs/root/src/entrypoints/cli.js:579:87746)\n at vt (/$bunfs/root/src/entrypoints/cli.js:579:86710)\n at Nt (/$bunfs/root/src/entrypoints/cli.js:579:86530)\n at zg (/$bunfs/root/src/entrypoints/cli.js:579:82872)\n at j_ (/$bunfs/root/src/entrypoints/cli.js:579:6438)\n at vM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-05-30T18:48:10.401Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗