@bluenyang/reins 0.4.0-rc.2 → 0.4.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -190,7 +190,7 @@ export function resetNote(profile) {
190
190
  'whether to split `.loctx/ROADMAP.local.md` into notes under `.loctx/intent/`',
191
191
  'whether to split the gates into areas (the `gates` skill, or `reins config gates`)',
192
192
  `the profile in \`.agents/harness/bindings.yaml\` is \`${profile}\`, which keeps how the harness worked — confirm it; \`reins config\` changes it`,
193
- 'the records up to 0.3 (`.agents/intent/`, `.agents/audit/`) are reference material, not current rules; a spec in progress can be continued',
193
+ 'the records up to 0.3 (`.agents/intent/`, `.agents/audit/`) are reference material, not current rules — ask the person whether to remove them from the repository; before removing, check open branches and pull requests for specs under `.agents/intent/` and move them to `.agents/spec/` on that branch, move what work in progress still needs into notes under `.loctx/intent/`, point links to the records at the last commit that has them, and keep `.agents/audit/` (with a `.gitkeep`) for audits a person starts',
194
194
  ];
195
195
  return [
196
196
  RESET_PENDING,
@@ -12,6 +12,7 @@ Read by `reins update`: it lists the entries newer than a project's pinned versi
12
12
  - gates.yaml version 2 (`reins/gates@2`): `areas` (name → path globs) and, per gate, `areas` and `on` (stages). `run-gates.sh` runs only the gates of the areas a change touches; a gate without areas always runs. From 0.3, `update` changes only the schema line, so every gate runs as before; split the gates into areas with the `gates` skill or `reins config gates`.
13
13
  - Deny rules in `.claude/settings.json`: merging and releasing are a person's — `gh pr merge`, `git push` to the default branch (its name is read at install into `install.yaml`'s `default_branch`), `npm publish`, `pnpm publish`, `yarn publish`, `yarn npm publish`, `bun publish`, `gh release create`, `gh workflow run`, and tag pushes (`--tags`, `--follow-tags`, a `refs/tags/` refspec). A work branch push stays allowed. These are globs over the command string: they prevent mistakes, they do not enforce.
14
14
  - From 0.3, `update` leaves `<!-- reins:reset pending -->` in AGENTS.md with a to-do list for the `onboard` skill: old flow wording in the project sections, whether to split `.loctx/ROADMAP.local.md` into notes under `.loctx/intent/`, whether to split the gates into areas, the profile, and that the records up to 0.3 are reference material. `.agents/intent/`, `.agents/audit/`, `.agents/knowledge/` and `.loctx/` are not touched, so a 0.3 spec in progress can be continued.
15
+ - The reset to-do asks whether to remove the 0.3 records (`.agents/intent/`, `.agents/audit/`) from the repository; before removing, specs of open branches and pull requests move to `.agents/spec/` on those branches, work in progress goes into `.loctx/intent/` notes, links point at the last commit that has the records, and `.agents/audit/` stays for audits a person starts. A pending tidy or reset note no longer blocks other work, and `update` rewrites the note of an earlier rc.
15
16
 
16
17
  ## 0.3.4
17
18
  - Stable 2026-11-25 (same harness as rc.2).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluenyang/reins",
3
- "version": "0.4.0-rc.2",
3
+ "version": "0.4.0-rc.3",
4
4
  "description": "Installs, migrates and updates an agent harness (harness → loop → graph) that keeps coding agents inside their permitted roles.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,7 +38,12 @@ move only what they accept. Knowledge is written only on their word.
38
38
  - whether to split the gates into areas (the `gates` skill);
39
39
  - the profile in `.agents/harness/bindings.yaml` (`light` or `full`): confirm it with the person, who
40
40
  changes it with `reins config`;
41
- - the records up to 0.3 (`.agents/intent/`, `.agents/audit/`) are reference material, not current rules.
41
+ - the records up to 0.3 (`.agents/intent/`, `.agents/audit/`) are reference material, not current rules;
42
+ ask whether to remove them from the repository. Before removing: check open branches and pull requests
43
+ for specs under `.agents/intent/` and move them to `.agents/spec/` on that branch (removing the folder
44
+ on the default branch first makes their merge conflict or bring it back); move what work in progress
45
+ still needs into notes under `.loctx/intent/`; point links to the records at the last commit that has
46
+ them. Keep `.agents/audit/` with a `.gitkeep` — audits a person starts go there.
42
47
 
43
48
  ## Finish
44
49
  Change the marker to `done` (`<!-- reins:<marker> done -->`) and commit on a branch. If the project's own
@@ -15,10 +15,10 @@ If either still starts with `${` (unsubstituted — this copy lives in a project
15
15
  1. **Look.** Is there an `.agents/harness/` (reins installed), an `.ai/` workspace, or an older harness
16
16
  (`.claude/commands/`, many skills)? Say which.
17
17
  2. **Show the user the command** for their terminal, with the version pinned to this skill's release:
18
- - nothing installed: `npx @bluenyang/reins@0.4.0-rc.2 install --mode <mode>`
19
- - an older harness or `.ai/`: `npx @bluenyang/reins@0.4.0-rc.2 migrate --dry-run`, then without `--dry-run`
20
- - reins already installed: `npx @bluenyang/reins@0.4.0-rc.2 update`
21
- - to change models, the mode, the profile or the recommended audit model later: `npx @bluenyang/reins@0.4.0-rc.2 config` (the user can run `reins config`)
18
+ - nothing installed: `npx @bluenyang/reins@0.4.0-rc.3 install --mode <mode>`
19
+ - an older harness or `.ai/`: `npx @bluenyang/reins@0.4.0-rc.3 migrate --dry-run`, then without `--dry-run`
20
+ - reins already installed: `npx @bluenyang/reins@0.4.0-rc.3 update`
21
+ - to change models, the mode, the profile or the recommended audit model later: `npx @bluenyang/reins@0.4.0-rc.3 config` (the user can run `reins config`)
22
22
  Run it yourself only when the user asks you to, and only that command.
23
23
  3. **Explain what follows.** reins writes AGENTS.md blocks with an onboarding note; the next conversation starts
24
24
  with the `onboard` skill, which reads the project, asks the user, and writes AGENTS.md's project sections.