@tenkara/afm-linux-arm64 4.0.0-alpha.8 → 4.0.0-alpha.9

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.
Files changed (113) hide show
  1. package/bin/afm +2 -2
  2. package/content/CHANGELOG.md +22 -0
  3. package/content/core/afm.md +1 -1
  4. package/content/ops/evolve.md +61 -9
  5. package/content/ops/reflect.md +18 -13
  6. package/content/ops/restructure.md +2 -2
  7. package/content/ops/update.md +26 -2
  8. package/content/roles/explorer.md +1 -1
  9. package/content/roles/reviewer.md +1 -1
  10. package/content/skills/adr.md +3 -3
  11. package/content/skills/analyze.md +2 -8
  12. package/content/skills/clarify.md +2 -8
  13. package/content/skills/deliver.md +4 -20
  14. package/content/skills/diagnose.md +3 -11
  15. package/content/skills/evolve.md +6 -30
  16. package/content/skills/export-template.md +2 -5
  17. package/content/skills/generalize.md +6 -22
  18. package/content/skills/gotcha.md +3 -3
  19. package/content/skills/init.md +2 -7
  20. package/content/skills/plan.md +3 -9
  21. package/content/skills/policy.md +0 -6
  22. package/content/skills/promote.md +1 -3
  23. package/content/skills/protocol.md +2 -3
  24. package/content/skills/reconcile.md +2 -6
  25. package/content/skills/refactor.md +2 -7
  26. package/content/skills/reflect.md +7 -17
  27. package/content/skills/remediate.md +3 -9
  28. package/content/skills/restructure.md +8 -14
  29. package/content/skills/rule.md +3 -4
  30. package/content/skills/specify.md +3 -9
  31. package/content/skills/tasks.md +4 -14
  32. package/content/skills/update.md +6 -4
  33. package/content/skills/verify.md +1 -3
  34. package/content/templates/evolution-report.template.md +5 -0
  35. package/package.json +1 -1
  36. package/plugin/agy/plugin.json +1 -1
  37. package/plugin/agy/skills/afm-adr/SKILL.md +7 -3
  38. package/plugin/agy/skills/afm-analyze/SKILL.md +4 -6
  39. package/plugin/agy/skills/afm-clarify/SKILL.md +4 -6
  40. package/plugin/agy/skills/afm-deliver/SKILL.md +6 -20
  41. package/plugin/agy/skills/afm-diagnose/SKILL.md +5 -9
  42. package/plugin/agy/skills/afm-evolve/SKILL.md +9 -29
  43. package/plugin/agy/skills/afm-export-template/SKILL.md +6 -5
  44. package/plugin/agy/skills/afm-generalize/SKILL.md +8 -20
  45. package/plugin/agy/skills/afm-gotcha/SKILL.md +7 -3
  46. package/plugin/agy/skills/afm-init/SKILL.md +3 -6
  47. package/plugin/agy/skills/afm-plan/SKILL.md +5 -7
  48. package/plugin/agy/skills/afm-policy/SKILL.md +2 -4
  49. package/plugin/agy/skills/afm-promote/SKILL.md +4 -2
  50. package/plugin/agy/skills/afm-protocol/SKILL.md +6 -3
  51. package/plugin/agy/skills/afm-reconcile/SKILL.md +5 -5
  52. package/plugin/agy/skills/afm-refactor/SKILL.md +3 -6
  53. package/plugin/agy/skills/afm-reflect/SKILL.md +9 -15
  54. package/plugin/agy/skills/afm-remediate/SKILL.md +5 -7
  55. package/plugin/agy/skills/afm-restructure/SKILL.md +10 -12
  56. package/plugin/agy/skills/afm-rule/SKILL.md +7 -4
  57. package/plugin/agy/skills/afm-specify/SKILL.md +5 -7
  58. package/plugin/agy/skills/afm-tasks/SKILL.md +6 -12
  59. package/plugin/agy/skills/afm-update/SKILL.md +10 -4
  60. package/plugin/agy/skills/afm-verify/SKILL.md +4 -2
  61. package/plugin/claude-code/.claude-plugin/plugin.json +1 -1
  62. package/plugin/claude-code/agents/afm-explorer.md +1 -1
  63. package/plugin/claude-code/agents/afm-reviewer.md +1 -1
  64. package/plugin/claude-code/skills/adr/SKILL.md +7 -3
  65. package/plugin/claude-code/skills/analyze/SKILL.md +4 -6
  66. package/plugin/claude-code/skills/clarify/SKILL.md +4 -6
  67. package/plugin/claude-code/skills/deliver/SKILL.md +6 -20
  68. package/plugin/claude-code/skills/diagnose/SKILL.md +5 -9
  69. package/plugin/claude-code/skills/evolve/SKILL.md +9 -29
  70. package/plugin/claude-code/skills/export-template/SKILL.md +6 -5
  71. package/plugin/claude-code/skills/generalize/SKILL.md +8 -20
  72. package/plugin/claude-code/skills/gotcha/SKILL.md +7 -3
  73. package/plugin/claude-code/skills/init/SKILL.md +3 -6
  74. package/plugin/claude-code/skills/plan/SKILL.md +5 -7
  75. package/plugin/claude-code/skills/policy/SKILL.md +2 -4
  76. package/plugin/claude-code/skills/promote/SKILL.md +4 -2
  77. package/plugin/claude-code/skills/protocol/SKILL.md +6 -3
  78. package/plugin/claude-code/skills/reconcile/SKILL.md +5 -5
  79. package/plugin/claude-code/skills/refactor/SKILL.md +3 -6
  80. package/plugin/claude-code/skills/reflect/SKILL.md +9 -15
  81. package/plugin/claude-code/skills/remediate/SKILL.md +5 -7
  82. package/plugin/claude-code/skills/restructure/SKILL.md +10 -12
  83. package/plugin/claude-code/skills/rule/SKILL.md +7 -4
  84. package/plugin/claude-code/skills/specify/SKILL.md +5 -7
  85. package/plugin/claude-code/skills/tasks/SKILL.md +6 -12
  86. package/plugin/claude-code/skills/update/SKILL.md +10 -4
  87. package/plugin/claude-code/skills/verify/SKILL.md +4 -2
  88. package/plugin/opencode/agents/afm-explorer.md +9 -0
  89. package/plugin/opencode/agents/afm-reviewer.md +9 -0
  90. package/plugin/opencode/skills/afm-adr/SKILL.md +7 -3
  91. package/plugin/opencode/skills/afm-analyze/SKILL.md +4 -6
  92. package/plugin/opencode/skills/afm-clarify/SKILL.md +4 -6
  93. package/plugin/opencode/skills/afm-deliver/SKILL.md +6 -20
  94. package/plugin/opencode/skills/afm-diagnose/SKILL.md +5 -9
  95. package/plugin/opencode/skills/afm-evolve/SKILL.md +9 -29
  96. package/plugin/opencode/skills/afm-export-template/SKILL.md +6 -5
  97. package/plugin/opencode/skills/afm-generalize/SKILL.md +8 -20
  98. package/plugin/opencode/skills/afm-gotcha/SKILL.md +7 -3
  99. package/plugin/opencode/skills/afm-init/SKILL.md +3 -6
  100. package/plugin/opencode/skills/afm-plan/SKILL.md +5 -7
  101. package/plugin/opencode/skills/afm-policy/SKILL.md +2 -4
  102. package/plugin/opencode/skills/afm-promote/SKILL.md +4 -2
  103. package/plugin/opencode/skills/afm-protocol/SKILL.md +6 -3
  104. package/plugin/opencode/skills/afm-reconcile/SKILL.md +5 -5
  105. package/plugin/opencode/skills/afm-refactor/SKILL.md +3 -6
  106. package/plugin/opencode/skills/afm-reflect/SKILL.md +9 -15
  107. package/plugin/opencode/skills/afm-remediate/SKILL.md +5 -7
  108. package/plugin/opencode/skills/afm-restructure/SKILL.md +10 -12
  109. package/plugin/opencode/skills/afm-rule/SKILL.md +7 -4
  110. package/plugin/opencode/skills/afm-specify/SKILL.md +5 -7
  111. package/plugin/opencode/skills/afm-tasks/SKILL.md +6 -12
  112. package/plugin/opencode/skills/afm-update/SKILL.md +10 -4
  113. package/plugin/opencode/skills/afm-verify/SKILL.md +4 -2
@@ -10,7 +10,7 @@ description: |
10
10
 
11
11
  > **Questions in this host.** `afm ask <op>` prompts only in a terminal, and your shell tool has none: it exits 2. Run `afm ask <op> --json` instead and put each pending question to the operator with the host's question tool when it has one, and otherwise in chat as a numbered list: the `prompt`, then the `options` with their descriptions, the recommended one first and marked. Wait for the answer. Then record each choice with `afm answer <op> <id> <label>` (one label per selected option). Run `afm ask <op>` again: `all questions answered` means the op may go on.
12
12
 
13
- Atomic skill of AFM. The canonical procedure is the op file that `afm path ops/remediate.md` prints.
13
+ > **Procedure.** Run `afm read ops/remediate.md` and follow it; read an on-demand section when its condition holds.
14
14
 
15
15
  ## When NOT to activate
16
16
 
@@ -26,16 +26,14 @@ Use `afm.md § 5.1` for an in-task retry at the moment of the error. Use `afm-go
26
26
 
27
27
  ## Procedure
28
28
 
29
- Read the op (`afm path ops/remediate.md`) end to end and follow it literally. It includes the promotion gate (#5): 1 user correction OR at least 2 mechanical occurrences promote a failure. A transient failure does not promote. It also includes classification through the rubric `rubrics/failure-classification.md` (`afm path rubrics/failure-classification.md`). For each delta, propose the artifact (procedure or learning) and cite the source `sig=` (hard rule 19). Ask the artifact question with `afm ask remediate --scope <sig>`, materialize the result, close the signature with `afm failures close --sig <sig> --as remediated`, and report it (#6).
29
+ The op includes the promotion gate (#5): 1 user correction OR at least 2 mechanical occurrences promote a failure. A transient failure does not promote. It also includes classification through the rubric `rubrics/failure-classification.md` (`afm path rubrics/failure-classification.md`). For each delta, propose the artifact (procedure or learning) and cite the source `sig=` (hard rule 19). Ask the artifact question with `afm ask remediate --scope <sig>`, materialize the result, close the signature with `afm failures close --sig <sig> --as remediated`, and report it (#6).
30
30
 
31
31
  ## Invariant principles
32
32
 
33
- The single canonical source is `PRINCIPLES.md` (`afm path PRINCIPLES.md`). See in particular #3 (CRITIC corollary — recognition by tool, not self-judgment). See also #5 (do not promote a failure without recurrence or an oracle) and #6 (propose only, the human approves).
33
+ Most relevant here: #3 (CRITIC corollary — recognition by tool, not self-judgment). See also #5 (do not promote a failure without recurrence or an oracle) and #6 (propose only, the human approves).
34
34
 
35
35
  ## Continuous doctrine
36
36
 
37
- The `reconcile` skill owns passive mode, and it is always on. It reads `afm failures promotable` at the end of the turn and can propose remediation with no explicit command. The `evolve` cycle uses the failure events as evidence for `reflect`, toward a final remediation. This skill is the active record of the loop.
37
+ Passive mode (`afm-reconcile`) is always on. It reads `afm failures promotable` at the end of the turn and can propose remediation with no explicit command. The `afm-evolve` cycle uses the failure events as evidence for `afm-reflect`, toward a final remediation. This skill is the active record of the loop.
38
38
 
39
- ## Version
40
-
41
- Content version: `afm version` prints it.
39
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -10,9 +10,9 @@ description: |
10
10
 
11
11
  > **Questions in this host.** `afm ask <op>` prompts only in a terminal, and your shell tool has none: it exits 2. Run `afm ask <op> --json` instead and put each pending question to the operator with the host's question tool when it has one, and otherwise in chat as a numbered list: the `prompt`, then the `options` with their descriptions, the recommended one first and marked. Wait for the answer. Then record each choice with `afm answer <op> <id> <label>` (one label per selected option). Run `afm ask <op>` again: `all questions answered` means the op may go on.
12
12
 
13
- This is a mechanism skill of AFM. The canonical procedure is the op file that `afm path ops/restructure.md` prints.
13
+ > **Procedure.** Run `afm read ops/restructure.md` and follow it; read an on-demand section when its condition holds.
14
14
 
15
- > **Carve-out (does not overlap existing ops):** `diagnose` A1 finds a **dead reference** (the path does not exist). `restructure` staleness finds a path that **exists but changed** while the doc did not. `reconcile` adds **missing** information. `restructure` relocates information that **exists but sits in the wrong place**. `reflect` targets **clarity**. `restructure` targets **location and freshness**. `evolve` is the **orchestrator** that composes this skill when `diagnose` flags staleness or bloat.
15
+ > **Carve-out (does not overlap existing ops):** `afm-diagnose` A1 finds a **dead reference** (the path does not exist). `restructure` staleness finds a path that **exists but changed** while the doc did not. `afm-reconcile` adds **missing** information. `restructure` relocates information that **exists but sits in the wrong place**. `afm-reflect` targets **clarity**. `restructure` targets **location and freshness**. `afm-evolve` is the **orchestrator** that composes this skill when `afm-diagnose` flags staleness or bloat.
16
16
  >
17
17
  > **Maturity (honest YAGNI):** the actionable core today is **staleness** (from git) plus **findability**. **Temperature tiering** (always-hot vs on-demand) is an **opt-in** ADR proposal, only for a doc that has actually outgrown its size. Small docs do not need it.
18
18
 
@@ -20,7 +20,7 @@ This is a mechanism skill of AFM. The canonical procedure is the op file that `a
20
20
 
21
21
  This is a disambiguation guide for a skill that has already activated. It does not gate activation, so it stays in the body, not in the resident listing.
22
22
 
23
- A path that does not exist belongs to `afm-diagnose` (A1). Staleness means the path exists but changed. Information never documented belongs to `reconcile` → `afm-gotcha` or `afm-rule`. An ambiguous doc belongs to `afm-reflect`. Merging gotchas belongs to `afm-generalize`. The full cycle belongs to `afm-evolve`.
23
+ A path that does not exist belongs to `afm-diagnose` (A1). Staleness means the path exists but changed. Information never documented belongs to passive mode (`afm-reconcile`) → `afm-gotcha` or `afm-rule`. An ambiguous doc belongs to `afm-reflect`. Merging gotchas belongs to `afm-generalize`. The full cycle belongs to `afm-evolve`.
24
24
 
25
25
  ## Pre-check
26
26
 
@@ -30,25 +30,23 @@ A path that does not exist belongs to `afm-diagnose` (A1). Staleness means the p
30
30
 
31
31
  ## Procedure
32
32
 
33
- Read the op (`afm path ops/restructure.md`) end to end. Follow it literally. Use these five steps.
33
+ Use these five steps.
34
34
 
35
35
  1. **Staleness scan.** `afm doctor --json` runs it (findings with axis `staleness` and `dead-gotcha`); read them. The git trigger fires in two cases. First case: a path cited in the doc has a later last commit than the doc. Second case: the doc has been stale for more than N commits. A hit is a candidate, not a verdict. The scan never rewrites the doc on its own.
36
- 2. **Findability.** Relocate or cross-reference information that exists but sits buried or in the wrong doc. Cite both locations. Route information that is genuinely missing to `reconcile`.
36
+ 2. **Findability.** Relocate or cross-reference information that exists but sits buried or in the wrong doc. Cite both locations. Route information that is genuinely missing to passive mode (`afm-reconcile`).
37
37
  3. **Temperature partition.** Propose a hot/on-demand loading strategy as an opt-in ADR. Do this only when a doc has outgrown its size. Preserve 100% of the content.
38
- 4. **Its own gate.** This gate is load-bearing and earned, one `afm ask restructure --scope <item-slug>` per finding. It follows the **shared-proposal discipline** in `evolve.md` (`afm path ops/evolve.md`), instead of a duplicate copy of that discipline. `evolve` suppresses this gate when it runs.
39
- 5. **Record.** Write the result to `docs/evolution/NNN-<date>.md`. Suggest `promote` if the finding generalizes.
38
+ 4. **Its own gate.** This gate is load-bearing and earned, one `afm ask restructure --scope <item-slug>` per finding. It follows the **shared-proposal discipline** in `evolve.md` (`afm path ops/evolve.md`), instead of a duplicate copy of that discipline. `afm-evolve` suppresses this gate when it runs.
39
+ 5. **Record.** Write the result to `docs/evolution/NNN-<date>.md`. Suggest `afm-promote` if the finding generalizes.
40
40
 
41
41
  ## Invariant principles
42
42
 
43
- The single canonical source is `PRINCIPLES.md` (`afm path PRINCIPLES.md`). Universal principles §1-8 apply here. Four principles matter most for this skill.
43
+ Most relevant here:
44
44
 
45
45
  - #2: get git evidence before you propose a change.
46
46
  - #3: staleness needs an executable git trigger.
47
- - #4/#5: missing product content becomes `[TBD]` or goes to `reconcile`. Never invent it.
47
+ - #4/#5: missing product content becomes `[TBD]` or goes to passive mode (`afm-reconcile`). Never invent it.
48
48
  - #6/#8: self-check the work, then pass an earned gate.
49
49
 
50
50
  **No new principle here.** `restructure` is a composed materialization. The doctrine lives in the op file.
51
51
 
52
- ## Version
53
-
54
- Content version: `afm version` prints it.
52
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -9,9 +9,10 @@ description: |
9
9
 
10
10
  > **Questions in this host.** `afm ask <op>` prompts only in a terminal, and your shell tool has none: it exits 2. Run `afm ask <op> --json` instead and put each pending question to the operator with the host's question tool when it has one, and otherwise in chat as a numbered list: the `prompt`, then the `options` with their descriptions, the recommended one first and marked. Wait for the answer. Then record each choice with `afm answer <op> <id> <label>` (one label per selected option). Run `afm ask <op>` again: `all questions answered` means the op may go on.
11
11
 
12
- Atomic skill of `afm`. The canonical procedure is the op `afm path ops/rule`. The CLI owns the number, the
13
- rule file, the index line and the runner skeleton, and refuses a rule with no honest trigger form. This
14
- skill keeps only the judgment.
12
+ > **Procedure.** Run `afm read ops/rule.md` and follow it; read an on-demand section when its condition holds.
13
+
14
+ The CLI owns the number, the rule file, the index line and the runner skeleton, and refuses a rule with no
15
+ honest trigger form. This skill keeps only the judgment.
15
16
 
16
17
  ## When NOT to activate
17
18
 
@@ -38,9 +39,11 @@ that already exist.
38
39
 
39
40
  ## Invariant principles
40
41
 
41
- Single canonical source: `afm path PRINCIPLES`. Universals §1-8 apply. Note especially #3 (a hard rule needs
42
+ Most relevant here: #3 (a hard rule needs
42
43
  a mechanical trigger, or it is a principle instead) and #6 (autonomy-first: materialize the change and
43
44
  report it).
44
45
 
45
46
  Passive mode (`afm-reconcile`) is always on and can propose `afm-rule` when it detects the signal "the user
46
47
  corrected an approach with a reusable rule".
48
+
49
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -9,11 +9,11 @@ description: |
9
9
 
10
10
  > **Questions in this host.** `afm ask <op>` prompts only in a terminal, and your shell tool has none: it exits 2. Run `afm ask <op> --json` instead and put each pending question to the operator with the host's question tool when it has one, and otherwise in chat as a numbered list: the `prompt`, then the `options` with their descriptions, the recommended one first and marked. Wait for the answer. Then record each choice with `afm answer <op> <id> <label>` (one label per selected option). Run `afm ask <op>` again: `all questions answered` means the op may go on.
11
11
 
12
- An atomic skill. The procedure lives in the op: read it with `afm path ops/specify.md`, end to end, and follow it literally.
12
+ > **Procedure.** Run `afm read ops/specify.md` and follow it; read an on-demand section when its condition holds.
13
13
 
14
14
  ## When NOT to activate
15
15
 
16
- A trivial change (no feature folder needed) goes straight to the `afm.md § 2` loop. A full end-to-end delivery is `deliver`, which composes this op.
16
+ A trivial change (no feature folder needed) goes straight to the `afm.md § 2` loop. A full end-to-end delivery is `afm-deliver`, which composes this op.
17
17
 
18
18
  ## Pre-check
19
19
 
@@ -25,12 +25,10 @@ The number comes from `afm next-id feature`, never by hand. What is left to you
25
25
 
26
26
  ## Invariant principles
27
27
 
28
- Single canonical source: `afm path PRINCIPLES.md`. Universals §1-8 apply. In particular #2 (discover-first: compute the heuristic and the US from the scan), #5 (never invent a success criterion) and #6 (autonomy-first).
28
+ Most relevant here: #2 (discover-first: compute the heuristic and the US from the scan), #5 (never invent a success criterion) and #6 (autonomy-first).
29
29
 
30
30
  ## Continuous doctrine
31
31
 
32
- Passive mode is the always-on `reconcile` skill. This skill covers only the opening of the feature.
32
+ Passive mode (`afm-reconcile`) is always on. This skill covers only the opening of the feature.
33
33
 
34
- ## Version
35
-
36
- `afm version`. History: `afm path CHANGELOG.md`.
34
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -7,28 +7,22 @@ description: |
7
7
 
8
8
  # AFM — Tasks
9
9
 
10
- An atomic skill. The procedure lives in the op: read it with `afm path ops/tasks.md`, end to end, and follow it literally.
10
+ > **Procedure.** Run `afm read ops/tasks.md` and follow it; read an on-demand section when its condition holds.
11
11
 
12
12
  ## When NOT to activate
13
13
 
14
- There is no `plan.md` yet: run `afm-plan` first. An end-to-end delivery is `deliver`, which composes this op.
14
+ There is no `plan.md` yet: run `afm-plan` first. An end-to-end delivery is `afm-deliver`, which composes this op.
15
15
 
16
16
  ## Pre-check
17
17
 
18
18
  Run `afm preflight` (exit 3: stop and suggest `afm-init` or `afm-refactor`). Run `afm feature status <NNN> --json`: a non-empty `blockers` is an open `[NEEDS CLARIFICATION:]` in the plan. That is a hard refusal with no override, not a question.
19
19
 
20
- ## Procedure
20
+ ## Principles
21
21
 
22
- Create the file with the generator (`afm new feature-tasks --feature NNN-slug`), then add every task with `afm task add <NNN> --kind <k> --text <t>`: setup tasks, then for each spec scenario a red task (`--scenario N`) and the green task that closes it (`--closes Txxx`), an optional refactor, the validation task of each plan boundary (`--validates <boundary name>`), and one reconcile task, last. Never write a task by hand: the tasks live in the frontmatter `tasks:` list, and the CLI assigns the id and validates the item. Mark `--parallel` only where a task does not depend on the one before it; a green never is. Give every task a `US-NNN` or `RF-NN` (`--refs`). The CLI refuses an item that breaks a lint rule. Then run `afm feature lint <NNN>` and fix what it reports until it exits 0: a missing task with `afm task add`, a wrong field or kind with `afm task set <NNN> <Txxx> --<field> <value>` (`--clear <field>` clears one), a task that should not exist with `afm task remove <NNN> <Txxx>`. Never edit the YAML by hand. The reconcile task closes the `status:` keys; close each task with `afm task done`. Autonomy-first: write and report.
23
-
24
- ## Invariant principles
25
-
26
- Single canonical source: `afm path PRINCIPLES.md`. Universals §1-8 apply. In particular #5 (every task traces to a US or RF) and rule 1 (TDD: no green task without the red task it closes).
22
+ Most relevant here: #5 (every task traces to a US or RF) and rule 1 (TDD: no green task without the red task it closes).
27
23
 
28
24
  ## Continuous doctrine
29
25
 
30
- Passive mode is the always-on `reconcile` skill. This skill covers only the task list.
31
-
32
- ## Version
26
+ Passive mode (`afm-reconcile`) is always on. This skill covers only the task list.
33
27
 
34
- `afm version`. History: `afm path CHANGELOG.md`.
28
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -9,8 +9,9 @@ description: |
9
9
 
10
10
  > **Questions in this host.** `afm ask <op>` prompts only in a terminal, and your shell tool has none: it exits 2. Run `afm ask <op> --json` instead and put each pending question to the operator with the host's question tool when it has one, and otherwise in chat as a numbered list: the `prompt`, then the `options` with their descriptions, the recommended one first and marked. Wait for the answer. Then record each choice with `afm answer <op> <id> <label>` (one label per selected option). Run `afm ask <op>` again: `all questions answered` means the op may go on.
11
11
 
12
- This is the sync skill of `afm`. The canonical procedure is the op `afm path ops/update`. The CLI runs the
13
- codemod registry, proves each op and moves the pin. This skill keeps the judgment.
12
+ > **Procedure.** Run `afm read ops/update.md` and follow it; read an on-demand section when its condition holds.
13
+
14
+ The CLI runs the codemod registry, proves each op and moves the pin. This skill keeps the judgment.
14
15
 
15
16
  > **Carve-out (does not overlap existing ops):** `afm-init` and `afm-refactor` **create** the instance
16
17
  > (bootstrap). `update` brings an **existing** instance forward, the path that `afm-refactor` refuses.
@@ -44,15 +45,20 @@ the run. A pin **ahead** of the binary is an anomaly: report it, never roll it b
44
45
  4. **Language migration** (when the instance is not English): read `prd.md` § 11.1 FIRST and derive the
45
46
  excluded scope from it, and only then read a file. `[TBD]` there stops the step and asks
46
47
  `afm ask update-strings`. It never picks a language. The artifacts question is
47
- `afm ask update-artifacts`.
48
+ `afm ask update-artifacts`. On migrate, run the rewrite as one orchestrated batch through
49
+ parallel subagents, where the host has them, else one file at a time, with a light model per agent (the smallest model the host offers) for the rewrite and the loss
50
+ check. Escalate only a flagged file to a capable model. The session model keeps the excluded scope and
51
+ the final gate.
48
52
  5. Post-conditions: `afm index --check` returns 0 and the plugin boundary stays clean. Report in chat what
49
53
  migrated and what stayed pending. Under `afm-evolve`, feed it to `docs/evolution/`.
50
54
 
51
55
  ## Invariant principles
52
56
 
53
- Single canonical source: `afm path PRINCIPLES`. Universals §1-8 apply. Follow #2 (discover-first): the proof of
57
+ Most relevant here: #2 (discover-first): the proof of
54
58
  need is the grep that shows what is missing. Follow #4/#5: materialize only what the plugin already provides
55
59
  ready-made, and never invent missing product content. Follow #6 (autonomy-first with a gate). Bright line
56
60
  #7 applies: only **read** the plugin, and write only to the instance.
57
61
 
58
62
  **No new principle here.** `update` is composed materialization. The doctrine lives in the op file.
63
+
64
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -9,7 +9,7 @@ description: |
9
9
 
10
10
  > **Questions in this host.** `afm ask <op>` prompts only in a terminal, and your shell tool has none: it exits 2. Run `afm ask <op> --json` instead and put each pending question to the operator with the host's question tool when it has one, and otherwise in chat as a numbered list: the `prompt`, then the `options` with their descriptions, the recommended one first and marked. Wait for the answer. Then record each choice with `afm answer <op> <id> <label>` (one label per selected option). Run `afm ask <op>` again: `all questions answered` means the op may go on.
11
11
 
12
- Atomic skill of `afm`. The canonical procedure is the op `afm path ops/verify`.
12
+ > **Procedure.** Run `afm read ops/verify.md` and follow it; read an on-demand section when its condition holds.
13
13
 
14
14
  ## When not to activate
15
15
 
@@ -30,4 +30,6 @@ agent actor. Report the tier that resulted and what it means.
30
30
 
31
31
  ## Invariant principles
32
32
 
33
- Single canonical source: `afm path PRINCIPLES`. Universals §1-8 apply. #5 is load-bearing here.
33
+ Most relevant here: #5 is load-bearing.
34
+
35
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "afm",
3
3
  "description": "Agent Flow Methodology: autonomous discovery, a strict TDD delivery loop, and documentation that evolves from measured evidence. The CLI owns state, ids, gates and lint; the skills carry the judgment.",
4
- "version": "4.0.0-alpha.8",
4
+ "version": "4.0.0-alpha.9",
5
5
  "author": {
6
6
  "name": "Mapree"
7
7
  },
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: afm-explorer
3
3
  description: Read-only investigator. Answers one question from the code, the docs or the web, cites what it read, and changes nothing; dispatched with a brief.
4
- tools: mcp__plugin_afm_afm__approve, mcp__plugin_afm_afm__config, mcp__plugin_afm_afm__detect, mcp__plugin_afm_afm__doctor, mcp__plugin_afm_afm__failures_promotable, mcp__plugin_afm_afm__feature_lint, mcp__plugin_afm_afm__feature_status, mcp__plugin_afm_afm__gate, mcp__plugin_afm_afm__index, mcp__plugin_afm_afm__lang, mcp__plugin_afm_afm__next_id, mcp__plugin_afm_afm__path, mcp__plugin_afm_afm__policy, mcp__plugin_afm_afm__preflight, mcp__plugin_afm_afm__version, Read, Grep, Glob, WebFetch, WebSearch
4
+ tools: mcp__plugin_afm_afm__approve, mcp__plugin_afm_afm__config, mcp__plugin_afm_afm__detect, mcp__plugin_afm_afm__doctor, mcp__plugin_afm_afm__failures_promotable, mcp__plugin_afm_afm__feature_lint, mcp__plugin_afm_afm__feature_status, mcp__plugin_afm_afm__gate, mcp__plugin_afm_afm__index, mcp__plugin_afm_afm__lang, mcp__plugin_afm_afm__next_id, mcp__plugin_afm_afm__path, mcp__plugin_afm_afm__policy, mcp__plugin_afm_afm__preflight, mcp__plugin_afm_afm__read, mcp__plugin_afm_afm__sessions, mcp__plugin_afm_afm__sessions_signals, mcp__plugin_afm_afm__version, Read, Grep, Glob, WebFetch, WebSearch
5
5
  maxTurns: 60
6
6
  ---
7
7
  You are an explorer. The message that dispatched you is your brief: follow it.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: afm-reviewer
3
3
  description: Blind auditor. Checks one piece of work it did not write against its sources and rules, and returns a verdict with evidence; dispatched with a brief.
4
- tools: mcp__plugin_afm_afm__approve, mcp__plugin_afm_afm__config, mcp__plugin_afm_afm__detect, mcp__plugin_afm_afm__doctor, mcp__plugin_afm_afm__failures_promotable, mcp__plugin_afm_afm__feature_lint, mcp__plugin_afm_afm__feature_status, mcp__plugin_afm_afm__gate, mcp__plugin_afm_afm__index, mcp__plugin_afm_afm__lang, mcp__plugin_afm_afm__next_id, mcp__plugin_afm_afm__path, mcp__plugin_afm_afm__policy, mcp__plugin_afm_afm__preflight, mcp__plugin_afm_afm__version, Read, Grep, Glob, WebFetch, WebSearch
4
+ tools: mcp__plugin_afm_afm__approve, mcp__plugin_afm_afm__config, mcp__plugin_afm_afm__detect, mcp__plugin_afm_afm__doctor, mcp__plugin_afm_afm__failures_promotable, mcp__plugin_afm_afm__feature_lint, mcp__plugin_afm_afm__feature_status, mcp__plugin_afm_afm__gate, mcp__plugin_afm_afm__index, mcp__plugin_afm_afm__lang, mcp__plugin_afm_afm__next_id, mcp__plugin_afm_afm__path, mcp__plugin_afm_afm__policy, mcp__plugin_afm_afm__preflight, mcp__plugin_afm_afm__read, mcp__plugin_afm_afm__sessions, mcp__plugin_afm_afm__sessions_signals, mcp__plugin_afm_afm__version, Read, Grep, Glob, WebFetch, WebSearch
5
5
  ---
6
6
  You are a reviewer. The message that dispatched you is your brief: follow it.
7
7
 
@@ -9,8 +9,10 @@ description: |
9
9
 
10
10
  > **Questions in this host.** `afm ask <op>` prompts only in a terminal, and the Bash tool has none: it exits 2. Run `afm ask <op> --json` instead and put each pending question to the operator with `AskUserQuestion`: its `header`, `prompt` and `options` as they come, the recommended option first, `multiSelect` as given. Then record each choice with `afm answer <op> <id> <label>` (one label per selected option). Run `afm ask <op>` again: `all questions answered` means the op may go on.
11
11
 
12
- Atomic skill of `afm`. The canonical procedure is the op `afm path ops/adr`. The CLI owns the number, the
13
- template, the frontmatter, the supersede link and the index. This skill keeps only the judgment.
12
+ > **Procedure.** Run `afm read ops/adr.md` and follow it; read an on-demand section when its condition holds.
13
+
14
+ The CLI owns the number, the template, the frontmatter, the supersede link and the index. This skill keeps
15
+ only the judgment.
14
16
 
15
17
  ## When NOT to activate
16
18
 
@@ -37,8 +39,10 @@ project (signal: `afm.md` § 3.1 forward-only exists). A greenfield project forb
37
39
 
38
40
  ## Invariant principles
39
41
 
40
- Single canonical source: `afm path PRINCIPLES`. Universals §1-8 apply. Additional #9 (a retroactive ADR is
42
+ Additional #9 (a retroactive ADR is
41
43
  load-bearing-only) applies ONLY in a refactored project.
42
44
 
43
45
  Passive mode (`/afm:reconcile`) is always on and can propose `/afm:adr` when it detects a "novel structural
44
46
  decision" signal. This skill covers only the active creation.
47
+
48
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -9,7 +9,7 @@ description: |
9
9
 
10
10
  > **Questions in this host.** `afm ask <op>` prompts only in a terminal, and the Bash tool has none: it exits 2. Run `afm ask <op> --json` instead and put each pending question to the operator with `AskUserQuestion`: its `header`, `prompt` and `options` as they come, the recommended option first, `multiSelect` as given. Then record each choice with `afm answer <op> <id> <label>` (one label per selected option). Run `afm ask <op>` again: `all questions answered` means the op may go on.
11
11
 
12
- An atomic skill. The procedure lives in the op: read it with `afm path ops/analyze.md`, end to end, and follow it exactly.
12
+ > **Procedure.** Run `afm read ops/analyze.md` and follow it; read an on-demand section when its condition holds.
13
13
 
14
14
  ## When NOT to activate
15
15
 
@@ -25,12 +25,10 @@ Start from the mechanical findings: `afm feature lint <NNN> --json` covers the p
25
25
 
26
26
  ## Invariant principles
27
27
 
28
- Single canonical source: `afm path PRINCIPLES.md`. Universals §1-8 apply, especially #2 (detection is an autonomous scan, not a question), #5 (no finding without evidence) and #6 (analyze is read-only: it reports in chat, writes no file, and remediates only on request).
28
+ Most relevant here: #2 (detection is an autonomous scan, not a question), #5 (no finding without evidence) and #6 (analyze is read-only: it reports in chat, writes no file, and remediates only on request).
29
29
 
30
30
  ## Continuous doctrine
31
31
 
32
- Passive mode is the always-on `reconcile` skill. This skill covers only active auditing.
32
+ Passive mode (`/afm:reconcile`) is always on. This skill covers only active auditing.
33
33
 
34
- ## Version
35
-
36
- `afm version`. History: `afm path CHANGELOG.md`.
34
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -9,7 +9,7 @@ description: |
9
9
 
10
10
  > **Questions in this host.** `afm ask <op>` prompts only in a terminal, and the Bash tool has none: it exits 2. Run `afm ask <op> --json` instead and put each pending question to the operator with `AskUserQuestion`: its `header`, `prompt` and `options` as they come, the recommended option first, `multiSelect` as given. Then record each choice with `afm answer <op> <id> <label>` (one label per selected option). Run `afm ask <op>` again: `all questions answered` means the op may go on.
11
11
 
12
- An atomic skill. The procedure lives in the op: read it with `afm path ops/clarify.md`, end to end, and follow it literally.
12
+ > **Procedure.** Run `afm read ops/clarify.md` and follow it; read an on-demand section when its condition holds.
13
13
 
14
14
  ## When NOT to activate
15
15
 
@@ -25,12 +25,10 @@ Judgment only: a 9-category scan of the spec, a prioritized queue (at most 5 que
25
25
 
26
26
  ## Invariant principles
27
27
 
28
- Single canonical source: `afm path PRINCIPLES.md`. Universals §1-8 apply. #2 is discover-first: resolve each question yourself through the scan or the docs, then ask. #4 says `[TBD]` beats invention, and a recommendation is a rejectable hypothesis, not a guess. #6 is autonomy-first: write the integration into spec § 7 and report. #8 is recommendation-first questions.
28
+ Most relevant here: #2 is discover-first: resolve each question yourself through the scan or the docs, then ask. #4 says `[TBD]` beats invention, and a recommendation is a rejectable hypothesis, not a guess. #6 is autonomy-first: write the integration into spec § 7 and report. #8 is recommendation-first questions.
29
29
 
30
30
  ## Continuous doctrine
31
31
 
32
- Passive mode is the always-on `reconcile` skill. This skill covers only the active resolution of ambiguity.
32
+ Passive mode (`/afm:reconcile`) is always on. This skill covers only the active resolution of ambiguity.
33
33
 
34
- ## Version
35
-
36
- `afm version`. History: `afm path CHANGELOG.md`.
34
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -7,9 +7,9 @@ description: |
7
7
 
8
8
  # AFM — Deliver (orchestrated autonomous delivery)
9
9
 
10
- > **Questions in this host.** `afm ask <op>` prompts only in a terminal, and the Bash tool has none: it exits 2. Run `afm ask <op> --json` instead and put each pending question to the operator with `AskUserQuestion`: its `header`, `prompt` and `options` as they come, the recommended option first, `multiSelect` as given. Then record each choice with `afm answer <op> <id> <label>` (one label per selected option). Run `afm ask <op>` again: `all questions answered` means the op may go on.
10
+ > **Procedure.** Run `afm read ops/deliver.md` and follow it; read an on-demand section when its condition holds.
11
11
 
12
- The **orchestrator** of the delivery loop. One request takes "build feature X" from discovery to a delivered feature. The procedure lives in the op: read it with `afm path ops/deliver.md`, end to end, and follow it literally. It does not duplicate the sub-steps: it reads and follows `specify`, `plan`, `tasks`, `clarify`, `analyze` and `reconcile` through a suppression contract.
12
+ The **orchestrator** of the delivery loop. One request takes "build feature X" from discovery to a delivered feature. It does not duplicate the sub-steps: it reads and follows `/afm:specify`, `/afm:plan`, `/afm:tasks`, `/afm:clarify`, `/afm:analyze` and `/afm:reconcile` through a suppression contract. External unknowns go through `/nasca:research`, or `/nasca:campaign` for a deep study; ask the operator if nasca is missing.
13
13
 
14
14
  ## When NOT to activate
15
15
 
@@ -19,26 +19,12 @@ An isolated step ("just open the spec", "just generate the tasks") is the matchi
19
19
 
20
20
  Run `afm preflight`. Exit 0 continues. Exit 3 means no `docs/.afm-version`: stop and suggest `/afm:init` (greenfield) or `/afm:refactor` (brownfield). Exit 4 or 5: report the line it printed. Do not fall back silently.
21
21
 
22
- ## Procedure
22
+ ## Most relevant here
23
23
 
24
- The CLI holds the state; the skill keeps only the judgment. Drive the loop with `afm feature status <NNN> --json`, which returns the phase to resume at, the next task and the blockers.
25
-
26
- - **Discovery:** scan scoped to the feature, external unknowns through the nasca research flow (`nasca-research`, or `nasca-campaign` for a deep study; ask the operator if nasca is missing), unknowns sorted into resolved-by-scan, researchable and irreducible. One batched, recommendation-first round, capped by the protocol (`/afm:protocol`).
27
- - **Draft:** spec, plan and tasks, verified with `afm feature lint <NNN>` plus the judgment passes of `analyze`.
28
- - **Gate:** the earned questions plus the `outcome` question (`afm ask deliver`), then `afm approve <NNN>`. An explicit "go" skips the questions, never the record.
29
- - **Execute:** the tasks of the `tasks:` list run in order (`core/afm.md` § 2: a red task, the green task that closes it, an optional refactor), each checked with `afm gate --staged`, then closed with `afm task done <NNN> <Txxx>`. Tasks are added with `afm task add`, never by hand. Halt on the failure of a task that is not `parallel` after the capped retry.
30
- - **Reconcile:** § 8.5 plus a passive sweep.
31
-
32
- If artifacts already exist, resume from the correct phase, including "tasks already exist, run from the first task that is not done".
33
-
34
- ## Invariant principles
35
-
36
- Single canonical source: `afm path PRINCIPLES.md`. Universals §1-8 apply. The backbone is **#2** (discover-first: resolve unknowns by scan and research, ask only the irreducible part, never guess product or criteria) and **#6** (autonomy-first: approval at checkpoint granularity, the consolidated plan IS the proposal).
24
+ **#2** (discover-first: resolve unknowns by scan and research, ask only the irreducible part, never guess product or criteria) and **#6** (autonomy-first: approval at checkpoint granularity, the consolidated plan IS the proposal).
37
25
 
38
26
  ## Continuous doctrine
39
27
 
40
- Passive mode is the always-on `reconcile` skill. It runs in parallel with `deliver` and takes the closing turn of Phase 4.
41
-
42
- ## Version
28
+ Passive mode (`/afm:reconcile`) is always on. It runs in parallel with `/afm:deliver` and takes the closing turn of Phase 4 (`core/afm.md` § 8.5 plus a passive sweep).
43
29
 
44
- `afm version`. History: `afm path CHANGELOG.md`.
30
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -8,9 +8,9 @@ description: |
8
8
 
9
9
  # AFM — Diagnose (mechanical weakness-mining, read-only)
10
10
 
11
- This is a mechanism skill of AFM. The canonical procedure is the op file that `afm path ops/diagnose.md` prints.
11
+ > **Procedure.** Run `afm read ops/diagnose.md` and follow it; read an on-demand section when its condition holds.
12
12
 
13
- > **Carve-out (does not overlap existing ops):** `analyze` audits **one feature**. `diagnose` audits the **whole instance** of `/docs/`. `reflect` uses **behavioral** evidence, where the agent stumbled. `diagnose` is **static**, based on filesystem and git. `evolve` is the **orchestrator**. It combines `diagnose` (mechanical evidence) with `reflect` (behavioral evidence) into one proposal and one gate. `diagnose` is **read-only**. It never proposes an edit or opens a gate.
13
+ > **Carve-out (does not overlap existing ops):** `/afm:analyze` audits **one feature**. `diagnose` audits the **whole instance** of `/docs/`. `/afm:reflect` uses **behavioral** evidence, where the agent stumbled. `diagnose` is **static**, based on filesystem and git. `/afm:evolve` is the **orchestrator**. It combines `diagnose` (mechanical evidence) with `/afm:reflect` (behavioral evidence) into one proposal and one gate. `diagnose` is **read-only**. It never proposes an edit or opens a gate.
14
14
 
15
15
  ## When NOT to activate
16
16
 
@@ -25,8 +25,6 @@ Validation of ONE feature is `/afm:analyze`. Behavioral friction, where a doc mi
25
25
 
26
26
  ## Procedure
27
27
 
28
- Read the op (`afm path ops/diagnose.md`) end to end. Follow it literally.
29
-
30
28
  The procedure has two phases. **Phase 0 — Scan** is gap-driven. Run `afm doctor --json`: it checks A1-A6, staleness and dead gotchas mechanically, and every finding carries a command plus `file:line`. You add A7 yourself. All 7 axes are checked, every time.
31
29
 
32
30
  Axis A7, cross-doc contradiction, uses a paired read. That read applies an anti-false-positive layer test. An axis that cannot be covered becomes "not-covered: <reason>".
@@ -35,16 +33,14 @@ Axis A7, cross-doc contradiction, uses a paired read. That read applies an anti-
35
33
 
36
34
  Phase 1 requires rival mechanisms, for example "agent non-compliant" versus "target legitimately removed". It applies an addressability filter and a self-sufficient severity matrix.
37
35
 
38
- **Output** is an evidence bundle ordered by severity. Run à la carte, the skill prints the report to chat. It does not write to disk. It opens no gate. Under `evolve`, it feeds the proposal instead.
36
+ **Output** is an evidence bundle ordered by severity. Run à la carte, the skill prints the report to chat. It does not write to disk. It opens no gate. Under `/afm:evolve`, it feeds the proposal instead.
39
37
 
40
38
  This scan has no cooldown. It is read-only and cheap. The cycle's cooldown belongs to the orchestrator.
41
39
 
42
40
  ## Invariant principles
43
41
 
44
- Single canonical source: `PRINCIPLES.md` (`afm path PRINCIPLES.md`). Universals §1-8 apply. Especially relevant: #2 (discover-first — diagnose with evidence before any proposal). Also #3 (mechanize-or-demote — the checks must pass the test they audit). Also #5 (no finding without evidence external to the text).
42
+ Most relevant here: #2 (discover-first — diagnose with evidence before any proposal). Also #3 (mechanize-or-demote — the checks must pass the test they audit). Also #5 (no finding without evidence external to the text).
45
43
 
46
44
  **No new principle here.** `diagnose` is a composed materialization. The doctrine lives in the op file.
47
45
 
48
- ## Version
49
-
50
- Content version: `afm version` prints it.
46
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -10,11 +10,11 @@ description: |
10
10
 
11
11
  > **Questions in this host.** `afm ask <op>` prompts only in a terminal, and the Bash tool has none: it exits 2. Run `afm ask <op> --json` instead and put each pending question to the operator with `AskUserQuestion`: its `header`, `prompt` and `options` as they come, the recommended option first, `multiSelect` as given. Then record each choice with `afm answer <op> <id> <label>` (one label per selected option). Run `afm ask <op>` again: `all questions answered` means the op may go on.
12
12
 
13
+ > **Procedure.** Run `afm read ops/evolve.md` and follow it; read an on-demand section when its condition holds.
14
+
13
15
  This is an orchestrator skill of AFM. The canonical procedure is the op file that `afm path ops/evolve.md` prints.
14
16
 
15
- > **Conductor, not executor** (same pattern as `deliver`). `evolve` owns 3 things that no mechanism owns alone: (1) the evidence-collection driver for the whole instance (combines `diagnose` + `reflect`), (2) the split into buckets plus the single gate, (3) the apply driver, post-conditions, and the log/lineage record. It reads and follows everything else from the mechanisms, through a suppression contract.
16
- >
17
- > **Carve-outs (it does not override existing ops):** `diagnose`/`reflect`/`generalize`/`restructure` are the **mechanisms** (each runs à la carte). `analyze` audits **one feature** (read-only). `reconcile` proposes **one single edit** at the end of a turn. `promote` **records** a finding meant for the plugin (it does not edit the plugin). `evolve` is the **cycle** that chains the mechanisms with one gate and one log — the level no other op covers.
17
+ > **Carve-outs (it does not override existing ops):** `/afm:diagnose`, `/afm:reflect`, `/afm:generalize` and `/afm:restructure` are the **mechanisms** (each runs à la carte). `/afm:analyze` audits **one feature** (read-only). Passive mode (`/afm:reconcile`) proposes **one single edit** at the end of a turn. `/afm:promote` **records** a finding meant for the plugin (it does not edit the plugin). `evolve` is the **cycle** that chains the mechanisms with one gate and one log — the level no other op covers.
18
18
 
19
19
  ## When NOT to activate
20
20
 
@@ -22,7 +22,7 @@ This section helps someone who already activated the skill decide if it fits. It
22
22
 
23
23
  Use a single mechanism instead when the need is narrow. A report is `/afm:diagnose`. Refining a doc that misled you is `/afm:reflect`. Merging gotchas is `/afm:generalize`.
24
24
 
25
- A structure or staleness check is `/afm:restructure`. A version bump is `/afm:update`. `reconcile` proposes a one-off additive signal (new gotcha, rule, or ADR) directly.
25
+ A structure or staleness check is `/afm:restructure`. A version bump is `/afm:update`. Passive mode (`/afm:reconcile`) proposes a one-off additive signal (new gotcha, rule, or ADR) directly.
26
26
 
27
27
  A feature-level check is `/afm:analyze` or `/afm:deliver`. Recording a finding for the plugin is `/afm:promote`.
28
28
 
@@ -34,36 +34,16 @@ A feature-level check is `/afm:analyze` or `/afm:deliver`. Recording a finding f
34
34
 
35
35
  ## Procedure
36
36
 
37
- Read the op (`afm path ops/evolve.md`) end to end and follow it exactly. The op has 5 phases.
38
-
39
- **Phase 1 — Evidence collection.** Combine two sources through the suppression contract. `diagnose` is the mechanical scan of the 7 axes (`afm doctor --json` plus the A7 reading), read-only. `reflect` is behavioral evidence of docs that misled the agent. Run `generalize`/`restructure` on demand, when their own trigger signal fires. An empty diagnosis counts as a valid result.
40
-
41
- **Phase 2 — Proposal.** This phase plays the IMPROVER role. Apply the op's **shared proposal discipline**: retrieval before create, then a dry run before the gate. Split the proposals into 3 buckets.
42
-
43
- A non-restorable change always goes through the gate. It never invents its own target. Decide here whether to downgrade, archive, or merge an artifact. Cap bucket (b) at 8 items per cycle (`afm evolve gate-check --critical <n> --high <n> --medium <n> --low <n>` computes what to ask and what to stage). Recurring failures come from `afm failures promotable`.
44
-
45
- **Phase 3 — Single gate.** Ask item by item with `afm ask evolve --scope <item-slug>`, at most 4 questions per call. This gate is never skippable — there is no "go" shortcut.
46
-
47
- **Phase 4 — Apply and post-conditions.** Re-run `afm doctor --json`, `afm index --check` and `afm detect --for <file>` over the touched docs, and confirm the content root is clean (`git status`, or a timestamp check with no git).
48
-
49
- **Phase 5 — Log.** Record the cycle in `docs/evolution/NNN-<date>.md`. Suggest `promote` when a finding generalizes beyond this instance.
37
+ Read the op (`afm path ops/evolve.md`) end to end and follow it exactly. The op has 5 phases: evidence collection (diagnose plus reflect), proposal in 3 buckets, a single gate (`afm ask evolve`), apply with post-conditions, and the log in `docs/evolution/`.
50
38
 
51
39
  Consult the rubric `rubrics/when-to-evolve-methodology.md` (`afm path rubrics/when-to-evolve-methodology.md`) to decide between a full cycle, a single mechanism, or a one-off fix.
52
40
 
53
- ## Invariant principles
54
-
55
- The single canonical source is `PRINCIPLES.md` (`afm path PRINCIPLES.md`). Universals §1-8 apply. #2 (discover-first) applies: diagnose with evidence before you propose. #3 (mechanize-or-downgrade) applies too: evolve's own signals must pass the same test evolve applies to others.
56
-
57
- #8 (earned questions, recommendation-first) also applies to this skill.
41
+ ## Most relevant principles
58
42
 
59
- #6 (autonomy-first with self-check) follows the pattern *produce → self-check → report*. The gate is the load-bearing residue. Bright lines for #7 plugin, deletion, and push still apply.
60
-
61
- **No new principle here** — evolve is a composed materialization. The doctrine lives in the op and the rubric.
43
+ #2 (discover-first): diagnose with evidence before you propose. #3 (mechanize-or-downgrade): evolve's own signals must pass the same test evolve applies to others. #6 (autonomy-first with self-check): the gate is the load-bearing residue, and the bright lines for #7 plugin, deletion, and push still apply. #8 (earned questions, recommendation-first).
62
44
 
63
45
  ## Continuous doctrine
64
46
 
65
- The `reconcile` skill owns passive mode, and it is always on. Reconcile may **suggest** `/afm:evolve` when it detects a Class B signal. That signal is a lived contradiction between docs, or perceived inflation at apply time. Only the user can invoke the full cycle.
66
-
67
- ## Version
47
+ Passive mode (`/afm:reconcile`) is always on. It may **suggest** `/afm:evolve` when it detects a Class B signal. That signal is a lived contradiction between docs, or perceived inflation at apply time. Only the user can invoke the full cycle.
68
48
 
69
- Content version: `afm version` prints it.
49
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.
@@ -9,8 +9,9 @@ description: |
9
9
 
10
10
  > **Questions in this host.** `afm ask <op>` prompts only in a terminal, and the Bash tool has none: it exits 2. Run `afm ask <op> --json` instead and put each pending question to the operator with `AskUserQuestion`: its `header`, `prompt` and `options` as they come, the recommended option first, `multiSelect` as given. Then record each choice with `afm answer <op> <id> <label>` (one label per selected option). Run `afm ask <op>` again: `all questions answered` means the op may go on.
11
11
 
12
- Atomic skill of `afm`. The canonical procedure is the op `afm path ops/export-template`. The CLI owns the plan,
13
- the diff and the marker. This skill keeps the judgment.
12
+ > **Procedure.** Run `afm read ops/export-template.md` and follow it; read an on-demand section when its condition holds.
13
+
14
+ The CLI owns the plan, the diff and the marker. This skill keeps the judgment.
14
15
 
15
16
  ## When NOT to activate
16
17
 
@@ -34,9 +35,9 @@ stop and suggest `/afm:init` (greenfield) or `/afm:refactor` (brownfield) first.
34
35
 
35
36
  ## Invariant principles
36
37
 
37
- Single canonical source: `afm path PRINCIPLES`. Universals §1-8 apply.
38
-
39
- Especially #5 (do not invent metadata when the operator leaves it blank: use `[TBD]` in the JSON). Also #6
38
+ Most relevant here: #5 (do not invent metadata when the operator leaves it blank: use `[TBD]` in the JSON). Also #6
40
39
  (autonomy-first, but deleting files is a bright line): confirm the diff before you delete.
41
40
 
42
41
  Passive mode (`/afm:reconcile`) is always on. This skill focuses only on the active conversion to a template.
42
+
43
+ **Principles and version.** `afm path PRINCIPLES.md` (universals §1-8 apply). `afm version` prints the version; history: `afm path CHANGELOG.md`.