Skip to content

docs(agents): work in treehouse worktrees and land changes through no-mistakes - #8245

Merged
ritzorama merged 2 commits into
masterfrom
chore/agents-worktrees-no-mistakes
Oct 26, 2026
Merged

ritzorama merged 2 commits into
masterfrom
chore/agents-worktrees-no-mistakes

Conversation

@ritzorama

Copy link
Copy Markdown
Contributor

Intent

AGENTS.md: work in leased treehouse worktrees, never the main clone; land every change through no-mistakes, at most three runs per pull request

What Changed

  • Added a "Worktrees and landing a change" section to AGENTS.md. It says to work in a leased treehouse worktree (treehouse get --lease -b <branch>) and never in the main clone, and never to use git worktree add or a second clone. It also says to release the worktree with treehouse return <path> after the change merges.
  • In the same section, AGENTS.md now says to land every change through no-mistakes axi run, at most three runs per pull request. After the third run, merge the pull request as it stands and open an issue for anything still flagged. It also says which runs count toward the limit.
  • Updated the layer5-blog-writer skill (.claude/skills/layer5-blog-writer/SKILL.md) to match. Step 4 now uses treehouse get --lease. Step 8 replaces the manual push, gh pr create, gh pr checks --watch and gh pr merge flow with the no-mistakes run plus treehouse return. The failure-handling notes were rewritten for the new flow.

Risk Assessment

✅ Low: Docs-only addition to AGENTS.md that matches the stated intent (treehouse worktrees, no-mistakes, three-run cap) with no code impact.

Testing

The change only edits agent instructions in AGENTS.md. The earlier run read --help output of the installed CLIs to confirm the cited commands and flags exist. That is not a live run of the product. No lease or pipeline was run, since this phase may not write to the shared worktree pool or start another pipeline. No UI is affected.

  • Live validation: ⚠️ inconclusive - 0 of 3 scenarios driven live against the product
Scenario Result Live Evidence
AGENTS.md cites real treehouse commands and flags (get --lease -b, --base, return <path>, status) ⏸️ untested no The prior payload only read --help output. It never ran a real treehouse lease or return, so it did not establish a live result.
AGENTS.md cites real no-mistakes commands (init, axi run --intent, axi status, axi respond) ⏸️ untested no The prior payload only read --help output. It never ran a real no-mistakes pipeline, and this phase is forbidden from starting one, so it did not establish a live result.
Agents follow the worktree and three-run guidance at runtime ⏸️ untested no The change is natural-language instructions with no executable behavior. Model compliance is not testable deterministically here. A live lease or pipeline run would write outside the worktree and star…
  • Outcome: ⚠️ 1 warning across 2 runs (1m14s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

⚠️ **Test** - 1 warning
  • ⚠️ live validation verdict: inconclusive (0 of 2 scenarios were driven live against the product); untested: AGENTS.md instructions reference real treehouse and no-mistakes commands/flags, Agents follow the new worktree and three-run guidance at runtime
  • Live validation: ⚠️ inconclusive - 0 of 2 scenarios driven live against the product
Scenario Result Live Evidence
AGENTS.md instructions reference real treehouse and no-mistakes commands/flags ⏸️ untested no The prior payload only read the tools' help output (static inspection) and did not drive any live product, so it did not establish a live pass or fail.
Agents follow the new worktree and three-run guidance at runtime ⏸️ untested no The change is documentation text, and the prior payload did not drive any live scenario. Whether agents follow the guidance cannot be tested deterministically.
  • git diff 853b01237 1796d5496 --stat (only AGENTS.md, 16 lines added)
  • treehouse get --help (confirmed --lease, --base, -b exist)
  • no-mistakes axi --help (confirmed run, status, respond exist)
  • ls -l CLAUDE.md AGENTS.md (symlink intact)

🔧 No changes applied.
1 warning still open:

  • ⚠️ live validation verdict: inconclusive (0 of 3 scenarios were driven live against the product); untested: AGENTS.md cites real treehouse commands and flags (get --lease -b, --base, return <path>, status), AGENTS.md cites real no-mistakes commands (init, axi run --intent, axi status, axi respond), Agents follow the worktree and three-run guidance at runtime
  • Live validation: ⚠️ inconclusive - 0 of 3 scenarios driven live against the product
Scenario Result Live Evidence
AGENTS.md cites real treehouse commands and flags (get --lease -b, --base, return <path>, status) ⏸️ untested no The prior payload only read --help output. It never ran a real treehouse lease or return, so it did not establish a live result.
AGENTS.md cites real no-mistakes commands (init, axi run --intent, axi status, axi respond) ⏸️ untested no The prior payload only read --help output. It never ran a real no-mistakes pipeline, and this phase is forbidden from starting one, so it did not establish a live result.
Agents follow the worktree and three-run guidance at runtime ⏸️ untested no The change is natural-language instructions with no executable behavior. Model compliance is not testable deterministically here. A live lease or pipeline run would write outside the worktree and star…
  • git diff 853b01237 1796d5496 (only AGENTS.md changed, +16 lines)
  • treehouse get --help, treehouse return --help, treehouse status --help
  • no-mistakes axi --help, no-mistakes axi run --help, no-mistakes init --help
🔧 **Document** - 1 issue found → auto-fixed ✅
  • ⚠️ .claude/skills/layer5-blog-writer/SKILL.md:96 - The new AGENTS.md rule says never to create worktrees with git worktree add and to land changes through no-mistakes. The layer5-blog-writer skill still tells agents to run git worktree add under .claude/worktrees and to push and auto-merge (Step 4 and Step 8). I left it alone because the fix needs a human decision on how the blog workflow should work. Proposed follow-up: change the skill to use treehouse get --lease -b &lt;branch&gt; and treehouse return &lt;path&gt;, and to land through no-mistakes.

🔧 Fix applied.
✅ Re-checked - no issues remain.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

…at most three runs

Agents work in a leased treehouse worktree (treehouse get --lease -b <branch>,
treehouse return <path>), never in the main clone, and land every change
through no-mistakes, at most three runs per pull request.

Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
@ritzorama
ritzorama merged commit 521061d into master Oct 26, 2026
2 of 4 checks passed
@ritzorama
ritzorama deleted the chore/agents-worktrees-no-mistakes branch October 26, 2026 21:20
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Preview removed because the pull request was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants