@bluenyang/reins 0.1.3-rc.2 → 0.1.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.
- package/cli/dist/commands/install.js +2 -2
- package/cli/dist/lib/upstream.js +5 -0
- package/package.json +1 -1
- package/skills/reins-implement/SKILL.md +1 -1
- package/skills/reins-intent/SKILL.md +1 -1
- package/skills/reins-loop/SKILL.md +1 -1
- package/skills/reins-release/SKILL.md +1 -1
- package/skills/reins-retro/SKILL.md +1 -1
- package/skills/reins-review/SKILL.md +1 -1
- package/skills/reins-roadmap/SKILL.md +1 -1
- package/skills/reins-setup/SKILL.md +1 -1
- package/skills/reins-spec/SKILL.md +1 -1
- package/skills/reins-test/SKILL.md +1 -1
|
@@ -6,7 +6,7 @@ import { CONFIRMED_MODELS, checkBinding, discoverGates, newModelCache, vendorOf,
|
|
|
6
6
|
import { apply, listFiles } from '../lib/fsx.js';
|
|
7
7
|
import { repoRoot } from '../lib/git.js';
|
|
8
8
|
import { SKILLS_INDEX_HEADER, skillsIndex, splitFrontmatter } from '../lib/skills.js';
|
|
9
|
-
import { harnessVersion, packageHarness, packageSkills, tierSkills } from '../lib/upstream.js';
|
|
9
|
+
import { harnessVersion, packageHarness, packageSkills, packageVersion, tierSkills, } from '../lib/upstream.js';
|
|
10
10
|
import { generateVendorFiles } from '../lib/generate.js';
|
|
11
11
|
import { writeGenerated } from '../lib/vendor-write.js';
|
|
12
12
|
/** Which upstream harness files a tier installs (design §1, tier table). */
|
|
@@ -165,7 +165,7 @@ export async function runInstall(o) {
|
|
|
165
165
|
// 3. generated configuration
|
|
166
166
|
if (o.tier === 'graph' && !hasBindings)
|
|
167
167
|
add('.agents/harness/bindings.yaml', buildBindings(up, avail, vs, o.mode, o.modelCache ?? newModelCache()), 'role ↔ model bindings');
|
|
168
|
-
add('.agents/harness/install.yaml', `# version pin and install settings (R25) — read by reins update\n${stringify({ schema: 'reins/install@1', tier: o.tier, version, mode: o.mode, language })}`, 'version pin');
|
|
168
|
+
add('.agents/harness/install.yaml', `# version pin and install settings (R25) — read by reins update\n${stringify({ schema: 'reins/install@1', tier: o.tier, version, cli: packageVersion(), mode: o.mode, language })}`, 'version pin');
|
|
169
169
|
// 4. layout skeleton (design §1); never overwrite project files
|
|
170
170
|
if (o.tier !== 'harness') {
|
|
171
171
|
addIfMissing('.agents/intent/.gitkeep', '', 'intent folders live here');
|
package/cli/dist/lib/upstream.js
CHANGED
|
@@ -11,6 +11,11 @@ export function packageHarness() {
|
|
|
11
11
|
}
|
|
12
12
|
throw new Error('reins: cannot find the packaged harness/ directory');
|
|
13
13
|
}
|
|
14
|
+
/** The version of the installed package (package.json next to `harness/`); stage skills pin the CLI to it. */
|
|
15
|
+
export function packageVersion() {
|
|
16
|
+
const p = join(packageHarness(), '..', 'package.json');
|
|
17
|
+
return JSON.parse(readFileSync(p, 'utf8')).version;
|
|
18
|
+
}
|
|
14
19
|
export function harnessVersion(dir) {
|
|
15
20
|
return readFileSync(join(dir, 'VERSION'), 'utf8').trim();
|
|
16
21
|
}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ description: Implement one ticket as the implementer role — runs the T1 ticket
|
|
|
5
5
|
|
|
6
6
|
# reins-implement
|
|
7
7
|
|
|
8
|
-
implementer role. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `
|
|
8
|
+
implementer role. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `cli` in `.agents/harness/install.yaml` (no `cli` line: installed before 0.1.3, run `npx @bluenyang/reins@latest update` once) (inside the reins repository: `node cli/dist/reins.js`). Verdicts: CONTINUE (exit 0) go on · HOLD (10) ask the user, one line: reason id + what you need · STOP (20) do what `resume` says, then re-run the same check · ESCALATE (30) next role in the chain (pl → pm → advisor → user).
|
|
9
9
|
|
|
10
10
|
1. **Check first (T1).** `reins check --stage ticket-start --ticket <id>`. Not CONTINUE → stop and follow the verdict; do not start. Open `asks:` hold for the user; the check also names recorded decisions that may already answer them.
|
|
11
11
|
2. Branch `type/<NNN>-<slug>` from the default branch (never commit on it). Launch the `reins-implementer` subagent: ticket → plan section → `reins recall` → implement.
|
|
@@ -5,7 +5,7 @@ description: Turn a request into an approved intent — runs the questionnaire w
|
|
|
5
5
|
|
|
6
6
|
# reins-intent
|
|
7
7
|
|
|
8
|
-
The point where a person decides (design §4): **the intent is approved by the user.** Never cross it alone. pm role. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `
|
|
8
|
+
The point where a person decides (design §4): **the intent is approved by the user.** Never cross it alone. pm role. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `cli` in `.agents/harness/install.yaml` (no `cli` line: installed before 0.1.3, run `npx @bluenyang/reins@latest update` once) (inside the reins repository: `node cli/dist/reins.js`). Verdicts: CONTINUE (exit 0) go on · HOLD (10) ask the user, one line: reason id + what you need · STOP (20) do what `resume` says, then re-run the same check · ESCALATE (30) next role in the chain (pl → pm → advisor → user).
|
|
9
9
|
|
|
10
10
|
1. **Check first.** `reins check --drift`. HOLD or STOP → follow it.
|
|
11
11
|
2. Search what was already decided or rejected: `reins recall <keywords>` (until it ships:
|
|
@@ -8,7 +8,7 @@ description: Conduct an accepted spec through the reins loop by calling the stag
|
|
|
8
8
|
Roles judge, scripts enforce. Each stage skill starts with its own check, and **its verdict decides what happens next**:
|
|
9
9
|
CONTINUE → go on · HOLD → ask the user (one line: reason id + what you need) · STOP → do what `resume` says,
|
|
10
10
|
then re-run the same check · ESCALATE → the next role in the chain (pl → pm → advisor → user).
|
|
11
|
-
Exit codes 0/10/20/30. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `
|
|
11
|
+
Exit codes 0/10/20/30. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `cli` in `.agents/harness/install.yaml` (no `cli` line: installed before 0.1.3, run `npx @bluenyang/reins@latest update` once) (inside the reins repository: `node cli/dist/reins.js`).
|
|
12
12
|
|
|
13
13
|
## Order
|
|
14
14
|
1. `reins-roadmap` (when the roadmap changes) → `reins-intent` → `reins-spec`
|
|
@@ -5,7 +5,7 @@ description: Release a finished version as the deploy role — T5 rc-close check
|
|
|
5
5
|
|
|
6
6
|
# reins-release
|
|
7
7
|
|
|
8
|
-
deploy role, inside the pre-release loop only. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `
|
|
8
|
+
deploy role, inside the pre-release loop only. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `cli` in `.agents/harness/install.yaml` (no `cli` line: installed before 0.1.3, run `npx @bluenyang/reins@latest update` once) (inside the reins repository: `node cli/dist/reins.js`). Verdicts: CONTINUE (exit 0) go on · HOLD (10) ask the user, one line: reason id + what you need · STOP (20) do what `resume` says, then re-run the same check · ESCALATE (30) next role in the chain (pl → pm → advisor → user).
|
|
9
9
|
|
|
10
10
|
1. **Check first (T5).** `reins check --stage rc-close --release <version>`. Not CONTINUE → no dispatch; follow the verdict. T4 runs in the pre-push hook and holds a direct push to the default branch.
|
|
11
11
|
2. Follow the deploy role's procedures in `.agents/harness/roles/deploy.md`: **Merge procedure** (push the feature branch, `gh pr create`, `gh pr checks --watch`, `gh pr merge --rebase --delete-branch` on green only) and **rc procedure** (rc number from T5, dispatch, identify the run, ledger line, user approves on npm). Do not restate them here; announce each step.
|
|
@@ -5,7 +5,7 @@ description: Entry point for the retrospective of a released version, as the pm
|
|
|
5
5
|
|
|
6
6
|
# reins-retro
|
|
7
7
|
|
|
8
|
-
pm role. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `
|
|
8
|
+
pm role. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `cli` in `.agents/harness/install.yaml` (no `cli` line: installed before 0.1.3, run `npx @bluenyang/reins@latest update` once) (inside the reins repository: `node cli/dist/reins.js`). Verdicts: CONTINUE (exit 0) go on · HOLD (10) ask the user, one line: reason id + what you need · STOP (20) do what `resume` says, then re-run the same check · ESCALATE (30) next role in the chain (pl → pm → advisor → user).
|
|
9
9
|
|
|
10
10
|
1. **Check first.** `reins status`. HOLD or STOP → follow it.
|
|
11
11
|
2. **Aggregate.** `reins retro --release <v>` after an rc (or with no flag, any time). It counts repeats across units (a ticket counts once): stop ids, review reasons, decisions, failed rounds (HOLD/STOP), tokens by role, and promotion candidates (a key seen in 2+ units not yet in active knowledge). `--json` for machine reading.
|
|
@@ -5,7 +5,7 @@ description: Verify and review a finished ticket — verify-tool runs the gates
|
|
|
5
5
|
|
|
6
6
|
# reins-review
|
|
7
7
|
|
|
8
|
-
Nobody judges their own work. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `
|
|
8
|
+
Nobody judges their own work. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `cli` in `.agents/harness/install.yaml` (no `cli` line: installed before 0.1.3, run `npx @bluenyang/reins@latest update` once) (inside the reins repository: `node cli/dist/reins.js`). Verdicts: CONTINUE (exit 0) go on · HOLD (10) ask the user, one line: reason id + what you need · STOP (20) do what `resume` says, then re-run the same check · ESCALATE (30) next role in the chain (pl → pm → advisor → user).
|
|
9
9
|
|
|
10
10
|
## With a ticket
|
|
11
11
|
1. **Check first.** `reins check --drift`. Then verify: `reins new request <id> verify` creates `.loctx/bus/<id>_<nn>.request.yaml`; fill changes · why · tried · not_tried · revert. verify-tool runs
|
|
@@ -5,7 +5,7 @@ description: Update the public roadmap (docs/ROADMAP.md and docs/ROADMAP.ko.md)
|
|
|
5
5
|
|
|
6
6
|
# reins-roadmap
|
|
7
7
|
|
|
8
|
-
pm role. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `
|
|
8
|
+
pm role. Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `cli` in `.agents/harness/install.yaml` (no `cli` line: installed before 0.1.3, run `npx @bluenyang/reins@latest update` once) (inside the reins repository: `node cli/dist/reins.js`). Verdicts: CONTINUE (exit 0) go on · HOLD (10) ask the user, one line: reason id + what you need · STOP (20) do what `resume` says, then re-run the same check · ESCALATE (30) next role in the chain (pl → pm → advisor → user).
|
|
9
9
|
|
|
10
10
|
1. **Check first.** `reins status` and `reins check --drift`. HOLD or STOP → follow it; do not edit the roadmap on top of drift.
|
|
11
11
|
2. Read the user's instruction, `docs/ROADMAP.md` and the open intents (`reins status`). Ask only what only the user knows (what moves, why); state defaults for the rest.
|
|
@@ -6,7 +6,7 @@ description: Install reins in this repository, or move an existing harness onto
|
|
|
6
6
|
# reins-setup
|
|
7
7
|
|
|
8
8
|
You act as the **pm** role (`.agents/harness/roles/pm.md` once installed). The CLI does the work; you collect
|
|
9
|
-
the answers only the user can give and report what happened. Run the CLI as `npx @bluenyang/reins@0.1.3
|
|
9
|
+
the answers only the user can give and report what happened. Run the CLI as `npx @bluenyang/reins@0.1.3 …`
|
|
10
10
|
(the version is pinned to this skill's release; inside the reins repository itself: `node cli/dist/reins.js …`).
|
|
11
11
|
|
|
12
12
|
Defaults from the plugin settings: language `${user_config.language}`, install mode `${user_config.default_mode}`.
|
|
@@ -5,7 +5,7 @@ description: Turn an approved intent into an accepted spec, a reviewed plan and
|
|
|
5
5
|
|
|
6
6
|
# reins-spec
|
|
7
7
|
|
|
8
|
-
The point where a person decides (design §4): **the spec summary may be vetoed by the user** (R64). Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `
|
|
8
|
+
The point where a person decides (design §4): **the spec summary may be vetoed by the user** (R64). Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `cli` in `.agents/harness/install.yaml` (no `cli` line: installed before 0.1.3, run `npx @bluenyang/reins@latest update` once) (inside the reins repository: `node cli/dist/reins.js`). Verdicts: CONTINUE (exit 0) go on · HOLD (10) ask the user, one line: reason id + what you need · STOP (20) do what `resume` says, then re-run the same check · ESCALATE (30) next role in the chain (pl → pm → advisor → user).
|
|
9
9
|
|
|
10
10
|
1. **Check first.** `reins check --drift`, then read the intent's frontmatter: it must be `status: approved`. No approved intent → HOLD: ask the user, or send them to `reins-intent`.
|
|
11
11
|
2. **planner:** copy `templates/spec.md`; every requirement is `S-n` with the intent sentence it comes from;
|
|
@@ -5,7 +5,7 @@ description: Test a version before release — qa-design designs e2e scenarios f
|
|
|
5
5
|
|
|
6
6
|
# reins-test
|
|
7
7
|
|
|
8
|
-
Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `
|
|
8
|
+
Run the CLI as `npx @bluenyang/reins@<v>` where `<v>` is `cli` in `.agents/harness/install.yaml` (no `cli` line: installed before 0.1.3, run `npx @bluenyang/reins@latest update` once) (inside the reins repository: `node cli/dist/reins.js`). Verdicts: CONTINUE (exit 0) go on · HOLD (10) ask the user, one line: reason id + what you need · STOP (20) do what `resume` says, then re-run the same check · ESCALATE (30) next role in the chain (pl → pm → advisor → user).
|
|
9
9
|
|
|
10
10
|
1. **Check first.** `reins status` and `reins check --drift`. The version must have no open ticket and every planned ticket done; anything left → HOLD (do not re-run T3 on a closed ticket).
|
|
11
11
|
2. **qa-design:** write the e2e scenarios from the version's spec acceptance criteria (call per `../reins-loop/references/vendor-cli.md`).
|