โจ feat: the lock reads niyam names, old ones too (P-50)
Merged
AT
24d ago+589+589+012345678901234567890123456789-218-218-012345678901234567890123456789
P-50 of W-39 (athya-hq/athya_mono#3210): what P-17's lock reads takes niyam's names, and the old ones are still read. The owner approved this part on its own with a ๐ on #227. P-49 (#234) has merged.
Keychain
- The agent's token is stored under service
niyam.readtriesniyam, thenprocess-rules. machinecopies a token found only underprocess-rulestoniyam(a plan line,token copied to service niyam, account <agent>). It leaves the old entry, so an older CLI on the Mac still reads it.- The session file reads
niyam, thenprocess-rules. A session file an older release wrote, which readsprocess-rulesalone, still counts for session-start and as-agent (sessionFileIsโolder).doctormarks itโฒ session file from an older release; it still works โ niyam machine. So no session locks out betweenupgradeandmachine.
Settings file
.github/niyam.json, with.github/process-rules.jsonread where it is missing. This covers loadSettings (session-start, guard, as-agent, doctor), the work rules, design, features, asks and the shared checks' Settings step. Errors name the file actually read.onboardwrites.github/niyam.jsononly in a repo that has neither. It keeps an existing.github/process-rules.json, which older CLIs and athya_mono'sbrief-issue.tsread.
Unchanged in P-17 and P-18: the lock's placeholder token, the SSH refusal, ~/.config/process-rules, the launcher and PROCESS_RULES_AGENT.
Tests for each fallback read:
- token under the old service only, under both, under neither;
- copy on
machine, and a refused copy; - older session file in session-start, doctor and
sessionFileIs; - settings: new only, old only, both (new wins), neither;
onboardkeeping the old file;- the shared checks' Settings step under each name.
pnpm check passes: 1174 tests. No version bump; the coordinator releases.
Slice: #227
๐ค Generated with Claude Code
Summary by cubic
Updates the lock to read niyam's names while still accepting the pre-rename ones, so a repo or Mac set up before niyam keeps working without locking out.
Behavior
- The token is stored under keychain service
niyam. A token found only underprocess-rulesis still read, andmachinecopies it toniyamwhile leaving the old entry for older CLIs; while the old entry is present, a new token is stored under both names. - The settings file is now
.github/niyam.json, with.github/process-rules.jsonread everywhere the new one is missing.onboardkeeps an existing old file, andagentHere, design warnings, renamed-feature lines, and the workflow schedule comment name the settings file actually read. - Session files an older release wrote still count for session-start and as-agent;
doctormarks them as older untilmachinerewrites them.