Skip to content

2 Architecture Constraints

The constraints every script here is written under: the root CLAUDE.md (CLAUDE.md), "Rules the scripts follow". They are given, not chosen, and they hold for a new script as for a changed one. Most of them are also a quality of SPEC.md (SPEC.md) §7; the Quality column names it.

Constraint Consequence Quality
PowerShell is pwsh 7, and it runs on Linux too CI tests every .ps1 with pwsh on Linux. A branch only Windows takes is not tested in CI, because Windows is supported only as the owner's workstation, not for agents (ci/checks.md, #946), so it stays small and says why it exists Q-3, which names Windows PowerShell 5.1 beside 7
No privilege escalation on the host The host user that runs Claude Code has no sudo. A script that needs root stages a file that user owns and prints the exact sudo command for the owner; it never runs it (setup/linux-host.md). Root inside a sandbox's throwaway VM is allowed, for provisioning (#530) Q-5
Idempotent scripts The scripts are run again after every new repository and every token change, so running one twice is harmless: each step skips what is in place Q-6
Staged versus active A value written to the staging file has not reached the service until its unit is restarted, and a script reports the two states separately (setup/linux-host.md) Q-7
No token in the chat or on a command line A script reads a token with hidden input and refuses to prompt when stdin is not a terminal; a pasted value is validated before it is stored; a new token is tested before it is staged, and the old one revoked only after the new one is active (setup/token-rotation.md) Q-4