Aventuras/scripts
failerko b56e03f802
Some checks are pending
CI / Lint, format, typecheck, docs (push) Waiting to run
CI / Storybook tests (vitest + playwright) (push) Waiting to run
CI / E2E (Playwright + Electron, packaged) (push) Waiting to run
Keep the main checkout on slot 0 under dev-slot auto (#547)
Under `AVENTURAS_DEV_SLOT=auto`, the main checkout used to claim a slot
like any worktree. It is never removed, so that claim never came back:
on the worker machine, one `pnpm desktop` in the base clone (where Orca
sets `auto` for every terminal) would hold slot 1 for good and push
workers onto slots with no emulator.

- Under `auto` the main checkout resolves to slot 0 without claiming,
and writes slot 0's env file (replacing one an earlier claim left).
- A claim the main checkout already holds counts as free, so the next
linked worktree takes it over, wiping its data as with any hand-over.
- `docs/dev-environment.md` states the rule in the settings table and
under Claiming.

Tests: two new cases (main stays on 0 with a slot-0 env file; a slot
main held is reclaimed), two existing cases moved from main to linked
worktrees. Each new check was mutation-tested: dropping the main check,
counting main as live, or skipping its env file each fails exactly its
test.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* The main checkout now consistently uses slot 0, while linked worktrees
retain their own slot assignments.
* Environment files reflect each worktree’s assigned slot, and slots
previously claimed by the main checkout are freed along with stale slot
data.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 23:49:45 +02:00
..
dev-slot Keep the main checkout on slot 0 under dev-slot auto (#547) 2026-09-27 23:49:45 +02:00
mock-llm Dev slots: per-worktree ports and userData for parallel workers (#543) 2026-09-27 18:13:09 +02:00
seed Dev slots: per-worktree ports and userData for parallel workers (#543) 2026-09-27 18:13:09 +02:00
check-commit-msg.sh chore: tighten commit line num 2026-05-17 23:05:57 +02:00
check-migrations-format.ts fix: mig check 2026-06-10 16:47:04 +02:00
compiler-bailouts.baseline.json Triage pass 2026 09 23 (#531) 2026-09-24 02:40:06 +02:00
compiler-bailouts.test.ts Triage pass 2026 09 23 (#531) 2026-09-24 02:40:06 +02:00
compiler-bailouts.ts Triage pass 2026 09 23 (#531) 2026-09-24 02:40:06 +02:00
desktop.ts Dev slots: per-worktree ports and userData for parallel workers (#543) 2026-09-27 18:13:09 +02:00
e2e.ts Slice 3.4b — Retrieval wiring: per-turn phase, memory blocks, reader surfaces (#423) 2026-08-07 20:03:17 +02:00
reset-project.js chore: add lefthook, editorconfig, node pin; drop semicolons 2026-04-23 03:14:32 +02:00
themes-audit.test.ts refactor: lib modules structure 2026-06-03 14:57:05 +02:00
themes-audit.ts refactor: lib modules structure 2026-06-03 14:57:05 +02:00