šŸ”„ feat: the old process-rules names go (P-57)

Merged
AT
23d ago
+1512-2331

Slice: #268

niyam stops reading and writing every process-rules name. P-55 (#269) and P-56 (#270), released in 0.6.10, wrote the niyam names; veda-hq/niyam, niyam-sandbox and athya-hq/athya_mono are onboarded at 0.6.10, and the owner's Mac has run machine. The owner asked in chat on 2026-11-11, "I want to fix everything", and approved this with a šŸ‘.

Mac and lock

  • Only ~/.config/niyam and NIYAM_AGENT are read; PROCESS_RULES_AGENT is no longer set or read.
  • Only niyam-no-agent-token counts as the placeholder.
  • The hooks find the launcher at ~/.config/niyam/bin/niyam, else niyam on PATH. 0.6.10's hook texts join the older lists, so onboard replaces them in place.
  • A 0.6.10 session file still counts until machine rewrites it, so no session locks out between the upgrade and machine.

Destructive, each a line in machine's plan before its one yes

  • It removes ~/.config/process-rules and the old launcher.
  • It deletes the process-rules keychain entry, only after reading back that niyam holds the same token. When they differ or a read fails, it leaves the entry and says why.
  • doctor marks ā–² any of those left behind.

Repository

  • Only .github/niyam.json, .github/workflows/niyam.yml (job niyam, niyam-ref), .github/niyam/cloud-setup.sh, /opt/niyam and niyam/onboard are read.
  • onboard stops writing .github/process-rules/cloud-setup.sh and deletes it in its own pull request.
  • checks.yml takes niyam-ref alone, and the decisions concurrency group is niyam-decisions-….
  • owner-step reads only the niyam ids and check names.

Releases (destructive)

  • The bridge archive athya-hq-process-rules-<v>.tgz is no longer attached.
  • upgrade asks veda-hq/niyam alone and no longer handles @athya-hq/process-rules.
  • old-cli.ts is deleted.

What stays, and why: the reader of <!-- process-rules vetted … --> marks (data; dropping it would un-vet decisions), the frozen older hook texts onboard compares against, the names of leftovers kept only to delete or report them, and the history in docs/decisions.md and docs/roadmap.md.

pnpm check passes (1312 tests), and actionlint is clean as CI runs it. The release waits until no niyam worktree or athya_mono pull request branch still carries pre-0.6.10 hooks.

šŸ¤– Generated with Claude Code


Summary by cubic

Completes the rename from process-rules to niyam: no release reads or writes a process-rules name anymore. P-55 and P-56 wrote the niyam names while still reading the old ones; this slice removes those reads, since onboarded repositories and this Mac have already moved.

Destructive steps, each a line in machine's plan

  • Removes ~/.config/process-rules and deletes the process-rules keychain entry after verifying niyam holds the same token (counted gone only when security reports item-not-found); as-agent strips an inherited PROCESS_RULES_AGENT from the commands it runs; doctor marks ā–² either leftover, and āœ— a launcher that still runs process-rules.
  • Stops attaching the athya-hq-process-rules-<v>.tgz bridge archive and deletes old-cli.ts; upgrade asks veda-hq/niyam alone.
  • onboard stops writing .github/process-rules/cloud-setup.sh and deletes it from adopters; the setup file also removes a leftover /usr/local/bin/process-rules; checks.yml takes niyam-ref alone, and owner-step takes process-rules / … checks out of adopters' rulesets, requiring the niyam check of the same job where the workflow runs it.

What stays, and why

  • The reader of <!-- process-rules vetted … --> marks (data; dropping it would un-vet decisions), the frozen older hook texts onboard compares against, and names kept only to delete or report leftovers.
  • The process-rules-decisions-… concurrency key stays one more release, since a workflow_dispatch can run from any branch.
  • A 0.6.10 session file still counts until machine rewrites it, so no session locks out between the upgrade and machine.