From dea5c2b2c5622aad3dea467f1ffe568ec10b6dd4 Mon Sep 17 00:00:00 2001 From: samuido <176191237+rebuildup@users.noreply.github.com> Date: Sun, 29 Nov 2026 17:12:00 +0900 Subject: [PATCH] docs: define personal workspace placement (#255) --- AGENTS.md | 1 + README.md | 4 ++++ docs/adr/ADR-0005.md | 4 ++++ home/.config/dotfiles/workspace-policy.md | 13 +++++++++++++ 4 files changed, 22 insertions(+) create mode 100644 home/.config/dotfiles/workspace-policy.md diff --git a/AGENTS.md b/AGENTS.md index f05893a..c62782c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,6 +14,7 @@ This repository manages personal CLI configuration. Preserve these project-local - Environment-shaped secrets should use process-scoped `infisical run` injection rather than global shell exports or persistent plaintext files. - Do not manage Infisical credential/cache directories, SSH private keys, `.env` files, SOPS payloads, or private key material through `home/`. - SSH private keys are device-local by default. Do not silently convert a device identity into a portable shared key. +- For file placement, follow the personal [workspace policy](home/.config/dotfiles/workspace-policy.md); do not infer authority from generic directory names. - Keep configuration minimal. Do not add dependencies or abstractions without an observed need. - Durable architecture/workflow decisions belong in `docs/adr/`; supporting external research belongs in `docs/research/`. - Before presenting a change as ready, run `./script/test`, `./script/test-workflow`, `./script/check-secrets`, and relevant `./script/check` / `./script/secrets-doctor` validation. diff --git a/README.md b/README.md index 6dbef2f..160baf3 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,10 @@ The native `claude` command keeps the official Claude Code login and is never wr See [agent launcher](docs/agent-launcher.md). For example `agent list`, `agent claude deepseek -- -p 'say ok'`, `agent opencode zen`, `agent opencode logfare -- run 'say ok'` or plain `agent claude` (native mode: no provider, no injection). +## Workspace placement + +Personal placement defaults are maintained in [workspace-policy.md](home/.config/dotfiles/workspace-policy.md) and intended to be linked into `~/.config/dotfiles/workspace-policy.md`. These are flexible preferences, not a sandbox or path allowlist. Agent-specific instruction entrypoints should reference this shared policy rather than duplicate its content (ADR-0005). + ## Agent configuration Global Claude Code, Codex, and OpenCode repositories are pinned as sibling submodules under `agents/`. A fresh clone does not need `--recurse-submodules`: `script/bootstrap` authenticates GitHub, stores the GitHub credential helper in machine-local `~/.gitconfig.local`, links the stable global Git config, then initializes the exact commits recorded by the parent repository. diff --git a/docs/adr/ADR-0005.md b/docs/adr/ADR-0005.md index 43a9b7c..ca4fb1e 100644 --- a/docs/adr/ADR-0005.md +++ b/docs/adr/ADR-0005.md @@ -68,6 +68,10 @@ The same global instruction source is exposed through product-specific names: Shared skills should use an Agent Skills-compatible source and be linked into only the discovery locations required by each product. +## Personal workspace preference + +The user-specific placement decision is maintained once in [workspace-policy.md](../../home/.config/dotfiles/workspace-policy.md). Agent-specific global instruction entrypoints reference this document through the user's dotfiles config directory rather than embedding local paths in distributed upstream Skills. Preserve existing agent-specific instructions; do not replace their managed files with a competing owner. + ## Tool-specific assets The common repository must not absorb configuration merely because it expresses a similar intent. diff --git a/home/.config/dotfiles/workspace-policy.md b/home/.config/dotfiles/workspace-policy.md new file mode 100644 index 0000000..57d5151 --- /dev/null +++ b/home/.config/dotfiles/workspace-policy.md @@ -0,0 +1,13 @@ +# Personal workspace placement + +Choose paths by purpose, lifetime and ownership. These are preferences, not an allowlist. + +- Use the existing registered or explicitly selected project checkout and its worktree rules for continuing development. +- Prefer `~/work/` for temporary clones, investigation, prototypes and experiments. +- Prefer `~/Desktop/` for temporary handoff and artifacts the user needs to inspect directly. Resolve the actual Desktop location if the platform differs. +- Use the OS temporary directory for short-lived automated intermediates; keep required evidence in its designated durable location. +- Follow the owning tool's existing OS-specific data/config/state/cache/deployment conventions for persistent tool files. +- Do not independently establish generic permanent roots such as `~/src`, `~/projects`, or `~/workspace`. Existence of a directory is not authority to write anywhere beneath it. +- Use a reasonable alternative when the task, platform or existing ownership boundary calls for it. Do not ask the user merely to choose a path for routine reversible work. Preserve existing user data and other sessions' files; no implicit relocation or deletion. + +WSL development with frequent build/watch operations stays on the Linux-native filesystem. These preferences do not override explicit project, tool, or sandbox requirements.