Skip to content

docs: add CONTRIBUTING.md with the isolated-instance dev loop - #1237

Merged
edwin-zvs merged 1 commit into
mainfrom
contributing-md
Aug 7, 2026
Merged

docs: add CONTRIBUTING.md with the isolated-instance dev loop#1237
edwin-zvs merged 1 commit into
mainfrom
contributing-md

Conversation

@edwin-zvs

Copy link
Copy Markdown
Contributor

Adds a CONTRIBUTING.md centered on the simplest possible dev loop:

cargo build
CONSTRUCT_HOME=/tmp/construct-dev ./target/debug/construct

CONSTRUCT_HOME relocates all four path layers (config/state/data/run, including the IPC socket), so the TUI auto-starts a private daemon from the freshly built single binary — a fully isolated instance running your branch's code, coexisting with your daily one.

Also covers:

  • daemon restart to swap in a rebuild in place (sessions preserved)
  • driving the scratch instance from the control CLI (list, new --no-tui shell, daemon paths, daemon stop)
  • the short-socket-path caveat (macOS ~104-byte sun_path limit)
  • per-branch worktrees (each has its own target/), web UI hot reload pointer
  • tests: run cargo test --workspace unfiltered; cargo build first so e2e execs a fresh binary; browser tests skip without Chrome
  • PR expectations, with deeper repo conventions deferred to AGENTS.md

README's documentation list links to it.

Every command in the doc was executed against a scratch CONSTRUCT_HOME using this branch's debug binary (daemon start → new --no-tui shell → list → daemon stop) to make sure the loop works exactly as written.

Document the simple day-to-day loop: cargo build, then run the freshly
built binary against a scratch home —

    CONSTRUCT_HOME=/tmp/construct-dev ./target/debug/construct

— which relocates all four path layers (config/state/data/run + socket)
so the TUI auto-starts a private daemon from the branch's own binary,
fully isolated from the daily instance. Covers restart-in-place after
rebuilds, CLI usage against the scratch instance, the short-socket-path
caveat, per-branch worktrees, web UI hot reload, tests (build before
e2e, Chrome optional), and PR expectations. Linked from the README's
documentation list; deeper repo conventions stay in AGENTS.md.

All commands verified against a scratch CONSTRUCT_HOME on this branch's
binary.
@edwin-zvs
edwin-zvs merged commit 038563d into main Aug 7, 2026
1 of 2 checks passed
@edwin-zvs
edwin-zvs deleted the contributing-md branch August 7, 2026 22:06
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.

1 participant