✨ feat: what onboard writes says niyam (P-56)

Merged
AT
23d ago
+1319-407

Slice: #267

Everything onboard writes in a repository now uses niyam's names. The old names are still read until P-57 (#268). The owner asked in chat on 2026-11-11, "I want to fix everything", and approved this with a šŸ‘.

Workflow

  • onboard writes .github/workflows/niyam.yml and deletes process-rules.yml in the same pull request. A client's own edits survive the move.
  • The jobs are niyam, niyam-weekly, niyam-merged and niyam-asks. Their name: lines don't change, so the check names and the rulesets stay as they are.
  • The input is niyam-ref. checks.yml declares both niyam-ref and process-rules-ref, because a caller passing an undeclared input would be invalid and hold every pull request. It checks out under .niyam, and its concurrency group is niyam-decisions-….
  • CI now installs actionlint, and a test lints callers that pass each input, and an unknown one.

Cloud setup

  • The file is .github/niyam/cloud-setup.sh, installing under /opt/niyam.
  • The Setup snippet runs the new file, else the old one, with NIYAM_SETUP and PROCESS_RULES_SETUP both set.
  • onboard also writes the old file, with the same content, so the snippet already pasted keeps working until the owner pastes the new one. The from-setup mark is read in either place.

Settings, branch and template

  • onboard moves .github/process-rules.json to .github/niyam.json byte for byte, deleting the old file. Readers keep the fallback.
  • The work rules let onboard's pull request delete only those two moved files, each into its own new name.
  • The onboard branch is niyam/onboard. owner-step and the newer-pin checks also recognise process-rules/onboard.
  • The board template, Project athya-hq #4, is now titled "niyam template".

Internal names: the decisions status mark, the temp folder prefix, the test-commit branch, and the title of a new agent token and signing key.

Tests: older-texts.test.ts freezes the real 0.6.8 workflow, settings and cloud file of athya_mono, niyam and niyam-sandbox. Each repo moves to the new names, and a rerun changes nothing. Older templates under the old ids, mixed old-and-new states, the snippet in a real shell, and owner-step on both ids and branches are covered too. pnpm check passes (1351 tests) and so does actionlint.

This repo's own onboarded files stay as they are. They pin v0.6.8, whose checks.yml has no niyam-ref; onboard moves them after the release. Recorded in docs/decisions.md; the README is updated.

šŸ¤– Generated with Claude Code


Summary by cubic

Everything onboard writes in a repository now uses niyam's names: the workflow, the settings file, the cloud setup file, and the onboard branch. The old names are still read until P-57 (#268).

Behavior changes

  • The workflow becomes .github/workflows/niyam.yml with jobs niyam, niyam-weekly, niyam-merged, niyam-asks, and input niyam-ref; checks.yml also declares process-rules-ref so callers onboarded before this PR stay valid.
  • The settings file moves byte for byte to .github/niyam.json, and the cloud setup file to .github/niyam/cloud-setup.sh, installing under /opt/niyam.
  • The onboard pull request deletes the old workflow and settings file in the same PR; work rules allow moving only those two files. A rerun updates a pull request still open from the old branch, except when niyam/onboard's own pull request is open, which alone gets updated.
  • The Setup snippet runs the new cloud setup file, else the old one; the setup mark records which file ran, and doctor names it.
  • checks.yml keeps the decisions concurrency key process-rules-decisions-… until P-57, so it never runs at once with older releases.
  • owner-step reads workflows with CRLF line endings as LF, and with identity alone leaves a workflow under its old name as is.
  • Internal names changed: the decisions status mark, temp folder prefix, token and signing-key titles, and the board template title.

Migration

  • Clients' own edits survive the move.
  • This repo's own onboarded files stay as they are and move after the release.