fix: export AGENT_BRAIN_PATH for Claude, document the contract #118
No reviewers
Labels
No labels
Agent
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor!118
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/agents-memory-path-and-honesty"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two failure modes surfaced from a tier-1 ticket:
The bot didn't actually save a memory it told us it would,
because AGENTS.md said "use the Edit/Write tool" without
making the brain path explicit. From a tier-1 worktree, a
relative path like
memories/projects/foo.mdlands in thetarget repo's worktree, not in brain, and gets either shipped
in the PR diff or torn down with the worktree.
Worse, even if the bot HAD known to use $AGENT_BRAIN_PATH, the
variable wasn't exported to any of the four Claude Code
invocations after the cost-ledger refactor -- the inline
AGENT_BRAIN_PATH=X commandpatterns only scoped to specificsubprocesses (rag_query, discretionary-read.sh). The main
claude --printinvocation in tier-1 / PR-review / maintenance/ site-work saw no brain path at all.
As a separate honesty issue, the bot's PR body checked off
"Save memory about X" with a green checkmark despite never
writing the file. Fabricated completed work breaks reviewer
trust.
Fixes:
tick.sh right after BOT_USER is resolved, so every Claude
invocation inherits them.
absolute-path requirement with examples ($AGENT_BRAIN_PATH/
memories/projects/.md etc.), and explains why a
relative path silently fails.
every checkbox in PR_BODY.md must correspond to an actual
diff change. Don't ship a PR claiming work that wasn't done.
Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com