docs(agents): per-worktree scratch subfolders for parallel agents #154
No reviewers
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral!154
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/agent-scratch-folders"
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?
Problem
The three parallel view agents (#147, #148, #149) shared one session scratchpad. One agent wrote its PR body to
pr.mdthere, a sibling overwrote it, and the Day PR's description got posted to the Month PR #147. It was restored right away.Change
docs/agents/workspaces.mdgains a Scratch files section: temporary files (PR/issue bodies, review drafts, fixtures, screenshots) go in a subfolder named after the agent's worktree, never at the top level of the shared scratch directory.Verification
scripts/check_docs.pyis clean; pre-commit passes.🤖 Generated with Claude Code
Review and fixes
The first review (both axes) had five findings, all fixed in
b3793c3:forgejo-cli.mdtells agents to put bodies in a scratchpad file without naming the subfolder, which is where the incident happened.workspaces.md#scratch-files).pr.mdstays its own".<scratch>is ambiguous with the repo's.scratch/issue folder.<scratchpad>, stated not to be.scratch/.review-pr-154/.check_docsis clean.🤖 Generated with Claude Code
Second pass: all five first-pass fixes are verified, the
#scratch-filesanchor resolves, andcheck_docsis clean. The only remaining item (R1, P3, a one-word generalisation in forgejo-cli.md) is filed on #140. Approved.