Skip to content

feat: write lane logs beside the worktrees, not in the checkout - #46

Merged
ancelin-code merged 1 commit into
developfrom
feat/lane-logs-beside-worktrees
Nov 6, 2026
Merged

ancelin-code merged 1 commit into
developfrom
feat/lane-logs-beside-worktrees

Conversation

@ancelin-code

Copy link
Copy Markdown
Owner

What and why

Lane session logs move from `.lanes/logs/` in the checkout to `.logs/` in the worktree root, so `../lanes//.logs/.log` by default. They now live outside every repository: nothing needs ignoring, and a log survives `git worktree remove` when a lane is stopped, which is when it is most wanted.

Because of that, `install-routing.sh` no longer edits `.gitignore` (added in #42, now unnecessary) and its three tests are removed.

How to review

  • Start with `launch-lanes.sh`: `log_dir` is derived from the worktree root once that is resolved. `DELIVERY_WORKTREE_ROOT` and `--worktree-root` move the logs with the worktrees; `--log-dir` still overrides.
  • `follow.sh` computes the same default, including a `--worktree-root` passed after `--`.
  • The rest is wording (README, `references/lanes.md`, `SKILL.md`, `publish-lane.sh` message, CHANGELOG) and tests.
  • Left out: the documentation site pages, which are on `docs/zensical-site` and need the same path change once both land.

How to try it

Run a lane with no `--log-dir` and see `../lanes//.logs/.log` appear, with `git status` in the checkout clean. The new test `test_logs_go_beside_the_worktrees_by_default` does this.

Does it earn its place?

It removes a rule (the `.gitignore` edit) instead of adding one. The change is visible to people who already ran lanes: their old `.lanes/` directory is no longer written to or read by `follow.sh`; it can be deleted. Recorded in CHANGELOG.md.

🤖 Generated with Claude Code

Logs go to .logs/ in the worktree root (../lanes/<repo>/.logs/ by default),
outside every repository. Nothing needs ignoring any more, so install-routing.sh
stops editing .gitignore, and a log survives the removal of its lane's worktree.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the ai-assisted AI agents worked on this change label Nov 6, 2026
@ancelin-code
ancelin-code merged commit 4075aef into develop Nov 6, 2026
5 checks passed
@ancelin-code
ancelin-code deleted the feat/lane-logs-beside-worktrees branch November 6, 2026 09:04
ancelin-code added a commit that referenced this pull request Nov 6, 2026
…ixes

Lane logs move to .logs/ in the worktree root (#46) and the kit is GitHub-only
for now (ADR-012). The review lens skill '-' means the harness's own review,
tiers.conf documents advisor, and docs.yaml takes the mise-action bump (#44).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted AI agents worked on this change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant