--- type: Learnings purpose: Keep what jj turned out to do under a headless agent, against what was assumed. answers: - "What did we get wrong about jj under a headless agent?" cites: - skills/productivity/commit-atomic-jj/anti-patterns.md - skills/productivity/resolve-conflicts-jj/SKILL.md status: live --- # octobot — learnings: version control - Believed: `jj squash`/`describe` can run like any shell command. True: without `-m` / `--use-destination-message` they open an editor and hang headless sessions; backgrounded jj mutations race the working-copy snapshot. Source: `skills/productivity/commit-atomic-jj/anti-patterns.md`, session 2026-07-19. - Believed: a conflicted jj chain must be resolved where it stands. True: check topology first — a chain rebased onto the wrong root produces phantom conflicts; rebasing onto the true destination shrank a 2-file conflict to 1 file before any hand-resolution. Source: session 2026-07-19 (write-readme-py conflict).