Configuration and first health checks
Use this guide after workspace initialization. It keeps observation separate from mutation: inspect effective configuration and health first, preview optional integrations, then authorize only the smallest required write.
Understand configuration layers
Section titled “Understand configuration layers”Day Shift resolves configuration in this precedence order:
- Built-in defaults provide baseline behavior.
- Shared
.day-shift/config.tomloverrides supported repository-scoped values and marks the effective workspace root. - Local
.day-shift/local.tomloverrides supported machine-specific values and should remain uncommitted.
The order is defaults < repository < local, but each key has an allowed source-layer contract. A local file cannot override a repository-only key merely because local has higher precedence. Unknown keys, wrong scopes, malformed TOML, invalid types, and invalid threshold ordering fail closed.
Inspect resolved values and their provenance without writing:
day-shift config get --format jsonday-shift config get default_readiness --format jsonday-shift config inventory --format jsonconfig get reports effective values, source layers, and source paths. config inventory adds ownership, mutability, sensitivity, validation, display policy, and whether a key is writable through config set; sensitive values can be summarized, redacted, or omitted.
day-shift config set <key> <value> is a workspace write. It validates the catalog key and value, selects the key’s supported target layer, preserves unrelated TOML, and reports the target path. Most writable collaboration settings go to shared .day-shift/config.toml; machine-specific editor goes to local .day-shift/local.toml. Review version control before changing shared policy.
If configuration cannot be parsed or the workspace schema is stale or partially migrated, stop. Do not delete files or copy values between layers. Run read-only doctor checks, then preview the supported migration before any confirmed apply:
day-shift doctor --runtime-only --format jsonday-shift workspace migrate --target-schema-version <supported-version> --dry-runAdd shell completion optionally
Section titled “Add shell completion optionally”Completion supports bash, zsh, and fish. Script and candidate resolution are read-only and do not execute the target command:
day-shift completion script --shell bashday-shift completion complete --shell bash --line "day-shift con" --cursor 13You may source the generated script for the current session. Persistent installation changes a shell-native file under the current user’s home directory, so preview it first:
day-shift completion install --shell bash --dry-run --format jsonday-shift completion install --shell bash --format jsonUse --shell zsh or --shell fish for those shells. Install creates or updates only the Day Shift-managed integration. An unmanaged target is blocked; --force is the explicit host-write boundary for replacing it. Inspect and back up that file before force.
Removal is also a host write and removes only recognized Day Shift-managed content:
day-shift completion uninstall --shell bash --dry-run --format jsonday-shift completion uninstall --shell bash --format jsonRun the first health checks
Section titled “Run the first health checks”doctor is read-only. It reports structured findings and a derived readiness status without repairing files, changing status, applying migrations, or creating planning artifacts.
day-shift doctor --runtime-only --format jsonday-shift doctor --artifact .day-shift/planning/example/task-definition.md --format jsonday-shift doctor --planning-directory .day-shift/planning/example --format jsonday-shift doctor --repository-audit --format jsonThe scope selectors are mutually exclusive: choose only one of --runtime-only, --artifact, --planning-directory, or --repository-audit. With no selector, repository audit is the default. Artifact and directory targets must already exist inside the configured planning root.
Use --action "<exact command>" to classify findings against one authoritative command descriptor, for example --action "task new". Current-action blockers can be narrower than repository-wide findings, but warnings still require review or explicit acceptance. Doctor evidence never authorizes its recommended write command.
Go from an empty repository to planning
Section titled “Go from an empty repository to planning”Follow this order so every write has prior evidence:
- Create or enter the repository and verify
day-shift --help. - Run
day-shift init --dry-run, inspect every planned path, then runday-shift init. - Run
day-shift agentto read the repository contract and confirm the nearest.day-shift/config.tomlworkspace. - Run
day-shift config get --format jsonandday-shift config inventory --format json; useconfig setonly for a deliberate supported override. - Preview completion installation if desired; it is optional for planning.
- Run
day-shift doctor --runtime-only --format json. Resolve blocking setup or compatibility findings through the stated preview-first recovery route. - Inspect registered source intent with
day-shift spec listand useday-shift planning next-action --artifact <existing-artifact>when planning already exists. Create a spec or downstream planning artifact only when your chosen workflow explicitly authorizes that write.
Fresh, existing, customized, stale, and partially migrated workspaces all use the same safety rule: preserve user-owned state, gather read-only evidence, preview the supported operation, and apply only with explicit intent. Never repair uncertainty by manually moving or deleting .day-shift/ or by testing completion against the operator’s real shell files.
For diagnostic interpretation and recovery escalation, continue to Troubleshooting.