Closed
Labels
area:workflowDeveloper workflow, commands, rules, skillsarea:workspaceWorkspace tooling, justfile, templatesfeatureNew feature or requestsemver:minorNew feature, backward-compatible
Description
Tracking: #625
Context
Epic #625 made flake.nix's devTools list the single source of truth for the
toolchain, provisioned via nix develop / direnv allow (#631, #632, #633). It
decommissioned the Debian image path (#642) and moved CI to flake provisioning
(#632). But the contributor bootstrap was never touched: just init →
scripts/init.sh is still a ~680-line OS-detecting installer driven by
scripts/requirements.yaml — a 14-tool list with per-OS apt/brew/dnf/apk/curl
install commands. That file is now a second toolchain SSoT that already drifts
from flake.nix devTools (22+ tools), violating the SSoT principle. No existing
sub-issue covers reworking just init.
Scope
In:
- Rewrite
scripts/init.shinto a Nix-first prerequisite gate + one-time project
bootstrap: gate onnix+direnv(with install guidance) and on being inside
the dev-shell; then bootstrapuv sync --frozen --all-extras, git hooks path,
commit-message template, andpre-commit install-hooks; advisorypodman infoand
gh auth statuschecks (probe + guide, never install). - Delete
scripts/requirements.yaml; makeflake.nix devToolsthe sole toolchain SSoT. - Repoint docs: trim
docs/generate.py(drop requirements loader/table/install
functions + context keys) and rewrite theCONTRIBUTE.md.j2"Requirements" section
into "Prerequisites: Nix + direnv + a working host container runtime"; regenerate
CONTRIBUTE.md. - Update the
justfileinitrecipe comment.
Out:
- Changing the flake
shellHook(bootstrap stays in the recipe, not on every shell entry). - Stale README base-image line and
verify-auth.sheditor comment (separate cleanups). - Auto-installing Nix or podman.
Tasks
- RED: rewrite
tests/bats/init.batsto the new gate/bootstrap contract; trim the
requirements test classes intests/test_utils.py - GREEN: rewrite
scripts/init.sh - Delete
scripts/requirements.yaml; trimdocs/generate.py; rewrite
docs/templates/CONTRIBUTE.md.j2; regenerateCONTRIBUTE.mdviajust docs - Update
justfileinitrecipe comment +CHANGELOG.mdUnreleased (Changed, Removed)
Acceptance criteria
scripts/requirements.yamlno longer exists;grep -r requirements.yamlis clean.just initexits non-zero with install guidance when Nix/direnv are absent, and
performs project bootstrap idempotently when inside the dev-shell.- Docs state "Prerequisites: Nix + direnv + host podman"; the toolchain is sourced
fromflake.nix devTools. bats tests/bats/init.bats,uv run pytest tests/test_utils.py,just docs, and
the fulljust testsuite are green.
Dependencies
- Depends-on: T1.1 — De-duplicate the flake into the real SSoT #631, T1.2 — CI provisions tooling via the flake #632, T1.3 — direnv onboarding (nix-direnv) #633 (flake SSoT + direnv onboarding) — merged on the epic branch.
- Blocks: none.
Files
scripts/init.shscripts/requirements.yaml(delete)docs/generate.pydocs/templates/CONTRIBUTE.md.j2CONTRIBUTE.md(regenerated)tests/bats/init.batstests/test_utils.pyjustfile
Test notes
- Strict TDD: failing tests first (
test:commit), then implementation. - Confirm
just testparity (testinfra + bats + renovate validation) before PR. - PR targets the epic branch
feature/625-nix-claude-migration.
Metadata
Metadata
Assignees
Labels
area:workflowDeveloper workflow, commands, rules, skillsarea:workspaceWorkspace tooling, justfile, templatesfeatureNew feature or requestsemver:minorNew feature, backward-compatible
Activity
test(scripts): cover Nix-first init gate and bootstrap
feat(scripts): make just init Nix-first; retire requirements.yaml
feat(scripts): make just init Nix-first; retire requirements.yaml (#672)
chore: drop CODEOWNERS entry for the retired requirements.yaml
c-vigo commentedon Jun 30, 2026
Resolved by #672 (aef2fca) on the Nix-migration branch (epic #625, PR #670). Closing as part of post-merge backlog hygiene (#677).
chore: release 0.4.0 (#195)
chore: release 0.4.0 (#813)