docs: add CONTRIBUTING.md with the isolated-instance dev loop - #1237
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
CONTRIBUTING.mdcentered on the simplest possible dev loop:CONSTRUCT_HOMErelocates 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 restartto swap in a rebuild in place (sessions preserved)list,new --no-tui shell,daemon paths,daemon stop)sun_pathlimit)target/), web UI hot reload pointercargo test --workspaceunfiltered;cargo buildfirst so e2e execs a fresh binary; browser tests skip without ChromeREADME's documentation list links to it.
Every command in the doc was executed against a scratch
CONSTRUCT_HOMEusing this branch's debug binary (daemon start → new --no-tui shell → list → daemon stop) to make sure the loop works exactly as written.