@bluenyang/reins 0.3.3 → 0.3.4-rc.1

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.
@@ -9,6 +9,10 @@
9
9
  "properties": { "required": { "type": "boolean" } }
10
10
  },
11
11
  "default": { "$ref": "#/$defs/binding" },
12
+ "local": {
13
+ "type": "object", "additionalProperties": false,
14
+ "properties": { "force_with_lease": { "enum": ["deny", "allow"] } }
15
+ },
12
16
  "tools": {
13
17
  "type": "object",
14
18
  "additionalProperties": {
@@ -51,7 +51,7 @@ The first conversation after installation, and any conversation that finds a pen
51
51
  <!-- reins:begin stops v=0.3.0 -->
52
52
  ## When to stop and ask
53
53
 
54
- - **Ask the user and stop:** an irreversible action (force push, deleting a tag, rewriting the default branch, data or production changes); a merge; a stable release; work that would touch a red line; a work unit that has to be added, dropped or rescoped; scope moving outside the intent and spec; a conflict with a past decision; a next step that needs an approval not yet given. Pushing a branch of the work in progress and opening its PR is part of the flow (an accepted spec's work units, their records, release documents); taking anything else out of the machine still needs the user's word.
54
+ - **Ask the user and stop:** an irreversible action (force push to the default branch or a tag, deleting a tag, rewriting the default branch, data or production changes); a merge; a stable release; work that would touch a red line; a work unit that has to be added, dropped or rescoped; scope moving outside the intent and spec; a conflict with a past decision; a next step that needs an approval not yet given. Pushing a branch of the work in progress and opening its PR is part of the flow (an accepted spec's work units, their records, release documents); taking anything else out of the machine still needs the user's word.
55
55
  - **While you wait for the user** — a release approval, a merge instruction, a stable instruction — report and wait; do not start another unit's work. Stabilising the same version is this loop's work.
56
56
  - **The retro ends the loop:** report that it is closed and stop.
57
57
  - **Stop and find the cause:** two failures in the same work unit; empty or doubtful check output; a pass without evidence (a pass needs the raw output's path).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluenyang/reins",
3
- "version": "0.3.3",
3
+ "version": "0.3.4-rc.1",
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": {
@@ -16,7 +16,7 @@ Both audits run in a fresh context that gets only the records, never the working
16
16
  2. Before handing the audit over, the PM collects the PR and its CI checks as the repository host's CLI prints them, unedited (e.g. `gh pr view <n> --json number,headRefOid,body`, `gh pr checks <n>`), into files under `.loctx/reports/<version>/`, and passes their paths to the audit. Do not summarise or rewrite them. Then fill in the gate logs: for every commit of the branch, `.loctx/reports/gates/<tree>.log` (`<tree>` is `git rev-parse <commit>^{tree}`) should hold a run with `worktree: clean` and `exit: 0`. Hooks leave these logs as you commit, but a commit made again by a rebase, on another machine or past the hook has none. For each commit without one, with a clean work tree: `git checkout --detach <commit>`, prepare it as the project needs (install dependencies), run `sh .agents/harness/run-gates.sh audit`, and return to your branch. Do not fix a run that fails; pass it on as it is. If the project has no `run-gates.sh`, say so instead.
17
17
  3. Read: AGENTS.md and the harness settings as they were, the intent, spec, `docs/ROADMAP.md`, `.loctx/ROADMAP.local.md`, `.agents/knowledge/`, git history, history, gate and test logs, the gate logs per commit (`.loctx/reports/gates/<tree>.log`), the PR and CI records the PM collected (`.loctx/reports/<version>/`).
18
18
  4. Look for **risk**, step by step: local roadmap → roadmap → intent → approval → spec → approval → implementation and commits → review → test → PR and CI. Kept, violated, cannot confirm (no evidence path), or skipped on the user's instruction (recorded in `waivers:`). Judge against the rules in force at the time. What counts as risk: an approval that is missing or was not given by the user; scope beyond the intent and spec; a red line; a work unit that was not reviewed (unless the spec's adjustment record says so and why); a check that failed or cannot be confirmed; a generated or harness file changed by hand. Commits: each commit is a meaningful unit — a point you can revert or reset to without taking other working work or features with it; several commits for one work unit (implementation, review fixes) are fine, and small units that may be reverted together may share one. A commit that mixes unrelated work, so one part cannot be reverted alone, is a violation. Gates: for each commit, the log of its tree holds a run with `worktree: clean` and `exit: 0` — say whether it was left at commit time (`stage: pre-commit`, `pre-push`) or filled in before the audit (`stage: audit`); no such run is "cannot confirm", and a clean run whose last `exit:` is not 0 is a violation. A work unit added, dropped or rescoped without approval is a violation; an adjustment recorded in the spec is kept; an adjustment made without a record is a violation whose remedy is the record. A generated or harness file changed by a commit that is not an `update`/`config` commit is a violation. In `.claude/settings.json` only reins' deny rules count (listed under `owned:` in `.agents/harness/generated.yaml`); the user's own entries there are not drift.
19
- 5. Criticise each violation precisely and give a remedy (pl or advisor opinions by severity); list each known acceptance apart from the violations. The PM writes the answer under `## 1차 감사` and commits the record on the PR branch, so that it is merged with the work. Push it: that commit moves the PR's head, so wait for CI again.
19
+ 5. Criticise each violation precisely and give a remedy, and rate each violation's severity; for a high one, get opinions given without seeing each other from pl/discussion or advisor/committee (if switched on) and put them beside the remedy with the paths of their originals; list each known acceptance apart from the violations. The PM writes the answer under `## 1차 감사` and commits the record on the PR branch, so that it is merged with the work. Push it: that commit moves the PR's head, so wait for CI again.
20
20
  6. The PM reports to the user — this is the one report of the flow (`merge`): fix a violation before the merge, or the user accepts it. Write the user's decision under `### 사용자 처리`, commit and push; a fix goes the same way, and the merge waits until CI is green on the last of these commits. A fix made after the audit is not audited again; only a high-risk violation whose fix is a large change is, and the PM writes there which it was and why.
21
21
 
22
22
  ### Second audit — after the release
@@ -25,7 +25,7 @@ Both audits run in a fresh context that gets only the records, never the working
25
25
  3. It does not tell anyone to fix anything: it lists what is handed to the retro, with each known acceptance apart. The PM writes the answer under `## 2차 감사` and, beneath it, the SHA table under `### SHA 대응`. It has no user-decision section: the retro reads it, and what the user decides there goes under `### 회고에서의 처리`. The record is committed with the retro's commits, in one PR. That closing PR — this record, the retro's changes — is audited by neither audit.
26
26
 
27
27
  ## 3. Delegation
28
- Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. The audit never runs inside the working conversation.
28
+ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Always keep the request sent to another model and its final answer in .loctx/reports/<version>/ as they came, when you get them; they are deleted after the retro. The audit never runs inside the working conversation.
29
29
 
30
30
  ## 4. Files and lifetime
31
31
  - `.agents/audit/<version>.md` — one file per version with both audits; committed, kept.
@@ -9,7 +9,7 @@ description: Implement the spec's work units in order, committing at meaningful
9
9
  The spec is accepted and has open work units.
10
10
 
11
11
  ## 2. Procedure
12
- 1. Work on a feature branch (`type/topic`), never the default branch.
12
+ 1. When work starts, check whether `.loctx/delegation.local.md` exists; if it does, open it before anything else and use its table. Work on a feature branch (`type/topic`), never the default branch.
13
13
  2. Take the next open work unit. Implement it so the requirement holds everywhere it applies — never to pass.
14
14
  3. Run the project's gates (`.agents/harness/gates.yaml`; the hooks run them too). Keep the raw output under `.loctx/reports/<version>/`.
15
15
  4. Commit at meaningful units: each commit is a point you can revert or reset to without taking other working work or features with it. One work unit may take several commits (implementation, review fixes); small units that may be reverted together may share one; never mix unrelated work in one commit. Adding, dropping or rescoping a work unit is a change of the spec: stop, change the spec with the reason, and get the user's 진행 or 수정 on the summary. Anything smaller is an adjustment — another method inside the same unit, a small fix that a review, an audit or the check of an rc asks for, another order of the units, a change with a similar precedent in `.agents/knowledge/` or history: go on, record it in the spec's adjustment record as `- A-n (date, W-n) what · why · commit`, and list the adjustments in the report at the end of the flow. If you cannot tell which it is, stop and ask.
@@ -17,7 +17,7 @@ The spec is accepted and has open work units.
17
17
  6. When the plan turns out wrong, update the intent or spec in the same commit, or stop and ask.
18
18
 
19
19
  ## 3. Delegation
20
- Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Implementer (code, qa, doc) does the units when switched on; independent units may run in parallel; the code, tests and documents of one feature stay in one run.
20
+ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Always keep the request sent to another model and its final answer in .loctx/reports/<version>/ as they came, when you get them; they are deleted after the retro. Implementer (code, qa, doc) does the units when switched on; independent units may run in parallel; the code, tests and documents of one feature stay in one run.
21
21
 
22
22
  ## 4. Files and lifetime
23
23
  - Commits — kept.
@@ -9,13 +9,13 @@ description: Write the intent of one piece of work — the direction and the pla
9
9
  A settled roadmap item has no approved intent, the user started this work, and the previous loop is closed (its retro is done). An intent added to the version in work belongs to the same loop. If the user asks for the next intent before the retro, record a waiver and write it.
10
10
 
11
11
  ## 2. Procedure
12
- 1. Create `.agents/intent/<NNN>_<slug>/intent.md` from `.agents/harness/templates/intent.md` (next free number).
12
+ 1. When work starts, check whether `.loctx/delegation.local.md` exists; if it does, open it before anything else and use its table. Then create `.agents/intent/<NNN>_<slug>/intent.md` from `.agents/harness/templates/intent.md` (next free number).
13
13
  2. Write it in the user's words: problem, desired result, **plan** (order of work), scope, constraints, open questions, not doing. Quote the user; mark your own interpretation as yours. Decisions you made go under "decided by agents" with the alternative and the reason.
14
14
  3. Ask only the open questions the user must answer. For a large or abstract request, get opinions first (pl/discussion or advisor/committee, if switched on) and show where they differ.
15
15
  4. Show the intent and ask for approval. When the user approves, add `{ role: user, by, at, words, rev }` to `approvals:` (quote the words; `rev` is the commit you showed), set `status: approved`, commit.
16
16
 
17
17
  ## 3. Delegation
18
- Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. The intent itself is always written by the PM.
18
+ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Always keep the request sent to another model and its final answer in .loctx/reports/<version>/ as they came, when you get them; they are deleted after the retro. The intent itself is always written by the PM.
19
19
 
20
20
  ## 4. Files and lifetime
21
21
  - `intent.md` — committed, kept.
@@ -18,7 +18,7 @@ The version is tested.
18
18
  7. When the merge made the commits again (rebase, squash), a record written after the merge names the default branch's SHAs. Do not rewrite the first audit's record: right after the merge, write the table of branch SHAs and default-branch SHAs under `.loctx/reports/<version>/`, hand it to the second audit and commit it under `### SHA 대응` of the audit record. Correct the spec's ticks to the default branch's SHAs in the next record commit.
19
19
 
20
20
  ## 3. Delegation
21
- Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Executor (deployer) does this when switched on, within the same limits.
21
+ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Always keep the request sent to another model and its final answer in .loctx/reports/<version>/ as they came, when you get them; they are deleted after the retro. Executor (deployer) does this when switched on, within the same limits.
22
22
 
23
23
  ## 4. Files and lifetime
24
24
  - The PR — on the forge, kept.
@@ -29,4 +29,4 @@ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table
29
29
  After CI: `audit` (the first audit). After the merge: `release`.
30
30
 
31
31
  ## 6. Stop and ask
32
- - Never force-push, rewrite the default branch or bypass hooks.
32
+ - Never force-push the default branch or a tag, rewrite the default branch or bypass hooks. A work branch behind the default branch is rebased and pushed with `git push --force-with-lease origin <branch>`, naming the branch; where that is not possible, merge the default branch into it (a rebase merge drops that merge commit).
@@ -20,7 +20,7 @@ For `tidy` only: reins brought the AGENTS.md guide to an install that was made b
20
20
  5. Set the marker to `done` (`<!-- reins:onboarding done -->` / `<!-- reins:reconcile done -->` / `<!-- reins:tidy done -->`), delete `.agents/AGENTS.previous.md` once the user has accepted where each part of it went — until then it stays — and commit on a branch.
21
21
 
22
22
  ## 3. Delegation
23
- Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Onboarding itself stays with the PM.
23
+ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Always keep the request sent to another model and its final answer in .loctx/reports/<version>/ as they came, when you get them; they are deleted after the retro. Onboarding itself stays with the PM.
24
24
 
25
25
  ## 4. Files and lifetime
26
26
  - AGENTS.md project sections — committed, kept.
@@ -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.3.3 install --mode <mode>`
19
- - an older harness or `.ai/`: `npx @bluenyang/reins@0.3.3 migrate --dry-run`, then without `--dry-run`
20
- - reins already installed: `npx @bluenyang/reins@0.3.3 update`
21
- - to change models, the mode or the audit later: `npx @bluenyang/reins@0.3.3 config` (the user can run `reins config`)
18
+ - nothing installed: `npx @bluenyang/reins@0.3.4-rc.1 install --mode <mode>`
19
+ - an older harness or `.ai/`: `npx @bluenyang/reins@0.3.4-rc.1 migrate --dry-run`, then without `--dry-run`
20
+ - reins already installed: `npx @bluenyang/reins@0.3.4-rc.1 update`
21
+ - to change models, the mode or the audit later: `npx @bluenyang/reins@0.3.4-rc.1 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.
@@ -15,7 +15,7 @@ The first audit is done (its findings fixed or accepted by the user) and the wor
15
15
  4. After the rc, a defect found while checking it is fixed in the same version, then the next rc. A small fix is an adjustment recorded in the spec (`A-n`); one that needs a new work unit changes the spec first and is approved.
16
16
 
17
17
  ## 3. Delegation
18
- Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Executor (deployer) does this when switched on, within the same limits.
18
+ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Always keep the request sent to another model and its final answer in .loctx/reports/<version>/ as they came, when you get them; they are deleted after the retro. Executor (deployer) does this when switched on, within the same limits.
19
19
 
20
20
  ## 4. Files and lifetime
21
21
  - Tags, release notes — on the forge, kept.
@@ -24,5 +24,5 @@ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table
24
24
  `audit` (the second audit — after stable, or when the user declares the version closed), then `retro`.
25
25
 
26
26
  ## 6. Stop and ask
27
- - Stable, force-pushing, deleting tags: ask the user every time.
27
+ - Stable, force-pushing the default branch or a tag, deleting tags: ask the user every time.
28
28
  - A release that waits for the user is not idle time to fill: no intent, spec or code of the next version before this one's retro, unless the user says so (then record a waiver).
@@ -18,7 +18,7 @@ After the second audit — that is, after stable, or when the user declares a ve
18
18
  7. Report that the loop is closed and stop. The retro ends the loop; the next work begins when the user starts it — unless the user named another end for this run (quoted in `.loctx/ROADMAP.local.md`).
19
19
 
20
20
  ## 3. Delegation
21
- Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you.
21
+ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Always keep the request sent to another model and its final answer in .loctx/reports/<version>/ as they came, when you get them; they are deleted after the retro.
22
22
 
23
23
  ## 4. Files and lifetime
24
24
  - `.loctx/history/<version>.md` — local, kept.
@@ -10,13 +10,13 @@ Work units are done and not reviewed.
10
10
 
11
11
  ## 2. Procedure
12
12
  1. Every work unit is reviewed, including one that changes tests or documents only. If a unit is not reviewed, record that and why in the spec's adjustment record; a unit left unreviewed without that record is a finding of the first audit.
13
- 2. Review the diff against the spec: does each S-n hold, with which commit and which evidence (test, log path)? Look for defects, not only for the checklist.
13
+ 2. Put `git diff --stat <base>..<head>` as it prints at the head of the review request; the reviewer first checks that the files of the diff it received match that list, and hands it back to the PM before reviewing if one is missing. Review the diff against the spec: does each S-n hold, with which commit and which evidence (test, log path)? Look for defects, not only for the checklist. If one language edition of a document changed, compare the two language editions again after the last change; a waiver or a skipped check does not stand in for it.
14
14
  3. Multi mode: one reviewer (pl/code-reviewer, doc-reviewer …). Single mode: fill the table spec item ↔ commit ↔ evidence path yourself and state that it is not an independent review.
15
15
  4. Findings go back to the PM, who sends fixes to `implement`. A small fix is an adjustment: it goes on and is recorded in the spec (`A-n`); a finding that needs a work unit added, dropped or rescoped changes the spec first.
16
16
  5. A large decision or an unresolved disagreement: pl/discussion (every assigned model, without seeing each other); combine with the originals attached, keeping minority views.
17
17
 
18
18
  ## 3. Delegation
19
- Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you.
19
+ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Always keep the request sent to another model and its final answer in .loctx/reports/<version>/ as they came, when you get them; they are deleted after the retro.
20
20
 
21
21
  ## 4. Files and lifetime
22
22
  - Review notes under `.loctx/reports/<version>/` — deleted after the retro, once summarised.
@@ -15,7 +15,7 @@ The user brings an idea, a change of plan, or asks what comes next.
15
15
  4. Name the version of the next work. Hand over to `intent` when the user starts that work and the previous loop is closed (its retro is done).
16
16
 
17
17
  ## 3. Delegation
18
- Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you.
18
+ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Always keep the request sent to another model and its final answer in .loctx/reports/<version>/ as they came, when you get them; they are deleted after the retro.
19
19
 
20
20
  ## 4. Files and lifetime
21
21
  - `.loctx/ROADMAP.local.md` — local, the user keeps it.
@@ -13,10 +13,10 @@ The intent is approved and has no accepted spec.
13
13
  2. Review it against the user's own words, the intent and the product boundary (pl/plan-reviewer and pl/qa-plan-reviewer if switched on; else review it yourself and say so).
14
14
  3. Write `summary_for_user` (3–5 lines) and show it. Wait for 진행 or 수정 — every time, no auto-accept.
15
15
  4. On 진행: add `{ role: user, by, at, words, rev, kind: summary }` to `approvals:`, set `status: accepted`, commit.
16
- 5. After acceptance the spec may still move while the work goes on. A work unit added, dropped or rescoped comes back here: change the spec, show the summary, wait for 진행 or 수정. A smaller adjustment is recorded by `implement` under the spec's adjustment record (`A-n`) without stopping.
16
+ 5. After acceptance the spec may still move while the work goes on. A work unit added, dropped or rescoped comes back here: change the spec, show the summary, wait for 진행 or 수정. A smaller adjustment is recorded by `implement` under the spec's adjustment record (`A-n`) without stopping. When you revise the spec, read both roadmaps and the review records of the version being revised (`docs/ROADMAP.md`, `.loctx/ROADMAP.local.md`, the reviews under `.loctx/reports/<version>/`) and say in the revision that it does not contradict them, or where it does.
17
17
 
18
18
  ## 3. Delegation
19
- Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Planner (spec-writer, qa-designer) does steps 1 when switched on.
19
+ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Always keep the request sent to another model and its final answer in .loctx/reports/<version>/ as they came, when you get them; they are deleted after the retro. Planner (spec-writer, qa-designer) does steps 1 when switched on.
20
20
 
21
21
  ## 4. Files and lifetime
22
22
  - `spec.md` — committed, kept.
@@ -10,11 +10,11 @@ Every work unit of the version is reviewed.
10
10
 
11
11
  ## 2. Procedure
12
12
  1. Build, then run every check V-n as written. Keep the raw output under `.loctx/reports/<version>/`.
13
- 2. Judge each against its expected result. Ambiguous is a fail.
13
+ 2. Judge each against its expected result. Ambiguous is a fail. If one language edition of a document changed, compare the two language editions again after the last change; a waiver or a skipped check does not stand in for it.
14
14
  3. A fail goes back to the PM → `implement`.
15
15
 
16
16
  ## 3. Delegation
17
- Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Executor (qa-runner) runs the checks when switched on; tool-executor summarises a large log.
17
+ Check `.loctx/delegation.local.md` if it exists, otherwise the delegation table in AGENTS.md. If the role group named here has a model, hand it the work with the list of files and decisions it needs and wait for its report; otherwise do it yourself. Read-heavy work (research, large log summaries, review) or urgent parallel work on independent units may go to subagents of your own model. A role never calls another model; it returns to you. Always keep the request sent to another model and its final answer in .loctx/reports/<version>/ as they came, when you get them; they are deleted after the retro. Executor (qa-runner) runs the checks when switched on; tool-executor summarises a large log.
18
18
 
19
19
  ## 4. Files and lifetime
20
20
  - `.loctx/reports/<version>/` test logs — deleted after the retro, once summarised.