@aopslabs/aops 0.3.30 → 0.3.32

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 (147) hide show
  1. package/README.md +11 -3
  2. package/aops-assets-release/aops-assets.json.gz +0 -0
  3. package/aops-assets-release/disciplines/build-review-chat/SKILL.md +33 -0
  4. package/aops-assets-release/disciplines/coordinator-loop/SKILL.md +33 -0
  5. package/aops-assets-release/disciplines/design-first-consensus/SKILL.md +30 -0
  6. package/aops-assets-release/disciplines/solo-pm-loop/SKILL.md +31 -0
  7. package/aops-assets-release/docs/user-guides/agentspace-user-guide.md +384 -0
  8. package/aops-assets-release/docs/user-guides/aops-cli-user-guide.md +2067 -0
  9. package/aops-assets-release/docs/user-guides/chatv3-user-guide.md +500 -0
  10. package/aops-assets-release/docs/user-guides/docman-user-guide.md +1009 -0
  11. package/aops-assets-release/docs/user-guides/projectman-user-guide.md +763 -0
  12. package/aops-assets-release/docs/user-guides/tasker-user-guide.md +244 -0
  13. package/aops-assets-release/release.json +6 -0
  14. package/aops-assets-release/roles/coordinator/ROLE.md +28 -0
  15. package/aops-assets-release/roles/implementer/ROLE.md +27 -0
  16. package/aops-assets-release/roles/reviewer/ROLE.md +27 -0
  17. package/aops-assets-release/skills/aops/SKILL.md +112 -0
  18. package/aops-assets-release/skills/aops-bootstrapper-authoring/SKILL.md +245 -0
  19. package/aops-assets-release/skills/aops-cli-agentspace/SKILL.md +186 -0
  20. package/aops-assets-release/skills/aops-cli-board-lifecycle/SKILL.md +64 -0
  21. package/aops-assets-release/skills/aops-cli-chat/SKILL.md +204 -0
  22. package/aops-assets-release/skills/aops-cli-collab/SKILL.md +42 -0
  23. package/aops-assets-release/skills/aops-cli-core/SKILL.md +219 -0
  24. package/aops-assets-release/skills/aops-cli-discuss/SKILL.md +172 -0
  25. package/aops-assets-release/skills/aops-cli-docman/SKILL.md +192 -0
  26. package/aops-assets-release/skills/aops-cli-fileman/SKILL.md +169 -0
  27. package/aops-assets-release/skills/aops-cli-mission/SKILL.md +128 -0
  28. package/aops-assets-release/skills/aops-cli-operator-brief/SKILL.md +67 -0
  29. package/aops-assets-release/skills/aops-cli-projectman/SKILL.md +235 -0
  30. package/aops-assets-release/skills/aops-cli-sugar-authoring/SKILL.md +188 -0
  31. package/aops-assets-release/skills/aops-cli-tasker/SKILL.md +108 -0
  32. package/aops-assets-release/skills/aops-cli-tooling-agent/SKILL.md +112 -0
  33. package/aops-assets-release/skills/aops-cli-view/SKILL.md +210 -0
  34. package/aops-assets-release/skills/aops-collaborative-work/SKILL.md +304 -0
  35. package/aops-assets-release/skills/aops-interactive/SKILL.md +70 -0
  36. package/aops-assets-release/skills/aops-loop-interactive/SKILL.md +314 -0
  37. package/aops-assets-release/skills/aops-working-disciplines/SKILL.md +310 -0
  38. package/aops-assets-release/skills/feature-retirement-flow/SKILL.md +126 -0
  39. package/assets/skills/aops-install/SKILL.md +18 -17
  40. package/dist/commands/assets.js +93 -1264
  41. package/dist/commands/community-server.js +27 -8
  42. package/dist/commands/community-setup.js +1 -2
  43. package/dist/commands/discuss.js +1 -1
  44. package/dist/commands/doc.js +88 -27
  45. package/dist/commands/docs.js +68 -0
  46. package/dist/commands/global-update.js +28 -0
  47. package/dist/commands/init.js +3 -1
  48. package/dist/commands/loop.js +6379 -0
  49. package/dist/commands/memory.js +2 -1
  50. package/dist/commands/pm/index.js +11 -9
  51. package/dist/commands/pm/projectman.js +33 -2
  52. package/dist/commands/project.js +6 -6
  53. package/dist/commands/prompt.js +1 -1
  54. package/dist/commands/repo-sync.js +92 -27
  55. package/dist/commands/runner.js +257 -0
  56. package/dist/commands/skill.js +1 -1
  57. package/dist/commands/start.js +1 -1
  58. package/dist/commands/tasker.js +361 -0
  59. package/dist/commands/view.js +53 -9
  60. package/dist/lib/commercial-setup-readiness-adapter.js +0 -1
  61. package/dist/lib/community-migration-snapshot.js +7 -9
  62. package/dist/lib/community-native-database-recovery.js +5 -14
  63. package/dist/lib/community-native-lifecycle.js +13 -0
  64. package/dist/lib/setup-agent-assets-bridge.js +28 -148
  65. package/dist/lib/setup-agent-assets-release.js +16 -44
  66. package/dist/lib/setup-init-orchestrator.js +11 -15
  67. package/dist/lib/simple-agent-assets.js +447 -0
  68. package/dist/lib/user-guide-sections.js +488 -0
  69. package/dist/main.js +10 -2
  70. package/dist/seeds/agents-md.js +3 -3
  71. package/dist/utils/agents-md.js +1 -1
  72. package/dist/utils/guide-paths.js +7 -7
  73. package/dist/utils/hosted-workspace.js +2 -1
  74. package/dist/utils/repo-first-storage.js +26 -1
  75. package/dist/utils/session-state.js +2 -7
  76. package/launchers/aops-cockpit.sh +0 -0
  77. package/launchers/aops-server.sh +0 -0
  78. package/package.json +67 -35
  79. package/THIRD_PARTY_NOTICES +0 -16169
  80. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/SKILL.md +0 -47
  81. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/agentspace/SKILL.md +0 -72
  82. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/aops-cli-core/SKILL.md +0 -110
  83. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/chatv3/SKILL.md +0 -59
  84. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/collaborative-work/SKILL.md +0 -81
  85. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/discuss/SKILL.md +0 -66
  86. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/docman/SKILL.md +0 -75
  87. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/projectman/SKILL.md +0 -92
  88. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/sys/SKILL.md +0 -36
  89. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/view/SKILL.md +0 -58
  90. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/references/working-disciplines/SKILL.md +0 -66
  91. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/agent-assets.md +0 -81
  92. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/agentspace.md +0 -183
  93. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/aops-cli.md +0 -1108
  94. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/aops-system.md +0 -102
  95. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/chatv3.md +0 -113
  96. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/docman.md +0 -223
  97. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/projectman.md +0 -233
  98. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/sys.md +0 -94
  99. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/files/user-guides/working-disciplines.md +0 -482
  100. package/agent-assets-release/agent-assets/core/bc42dd7792dbe66040e99a7ef3d80b3bc788c72b369b5a065cf936aef29f53fb/manifest.json +0 -117
  101. package/agent-assets-release/agent-assets/gateway/aops/SKILL.md +0 -14
  102. package/agent-assets-release/agent-assets/inventory.json +0 -29
  103. package/agent-assets-release/agent-assets/projection.json +0 -8
  104. package/agent-assets-release/agent-assets-release.json +0 -171
  105. package/agent-assets-release/agent-assets-release.sigstore.json +0 -67
  106. package/assets/agent-assets/core/SKILL.md +0 -47
  107. package/assets/agent-assets/core/references/agentspace/SKILL.md +0 -72
  108. package/assets/agent-assets/core/references/aops-cli-core/SKILL.md +0 -110
  109. package/assets/agent-assets/core/references/chatv3/SKILL.md +0 -59
  110. package/assets/agent-assets/core/references/collaborative-work/SKILL.md +0 -81
  111. package/assets/agent-assets/core/references/discuss/SKILL.md +0 -66
  112. package/assets/agent-assets/core/references/docman/SKILL.md +0 -75
  113. package/assets/agent-assets/core/references/projectman/SKILL.md +0 -92
  114. package/assets/agent-assets/core/references/sys/SKILL.md +0 -36
  115. package/assets/agent-assets/core/references/view/SKILL.md +0 -58
  116. package/assets/agent-assets/core/references/working-disciplines/SKILL.md +0 -66
  117. package/assets/agent-assets/core/user-guides/agent-assets.md +0 -81
  118. package/assets/agent-assets/core/user-guides/agentspace.md +0 -183
  119. package/assets/agent-assets/core/user-guides/aops-cli.md +0 -1108
  120. package/assets/agent-assets/core/user-guides/aops-system.md +0 -102
  121. package/assets/agent-assets/core/user-guides/chatv3.md +0 -113
  122. package/assets/agent-assets/core/user-guides/docman.md +0 -223
  123. package/assets/agent-assets/core/user-guides/projectman.md +0 -233
  124. package/assets/agent-assets/core/user-guides/sys.md +0 -94
  125. package/assets/agent-assets/core/user-guides/working-disciplines.md +0 -482
  126. package/assets/agent-assets/gateway/aops/SKILL.md +0 -14
  127. package/dist/lib/agent-assets/gateway.js +0 -15
  128. package/dist/lib/agent-assets/guards.js +0 -23
  129. package/dist/lib/agent-assets/hosted-discovery.js +0 -148
  130. package/dist/lib/agent-assets/hosted-package-input.js +0 -154
  131. package/dist/lib/agent-assets/legacy-pointer-migration.js +0 -677
  132. package/dist/lib/agent-assets/native-fs.js +0 -589
  133. package/dist/lib/agent-assets/roots.js +0 -45
  134. package/dist/lib/agent-assets/runtime-binding-reader.js +0 -545
  135. package/dist/lib/agent-assets/runtime-targets.js +0 -50
  136. package/dist/lib/agent-assets/store-reader.js +0 -1212
  137. package/dist/lib/agent-assets/store-writer.js +0 -1484
  138. package/native/bin/darwin-arm64/aops-agent-assets-fs +0 -0
  139. package/native/bin/darwin-x64/aops-agent-assets-fs +0 -0
  140. package/native/bin/linux-arm64/aops-agent-assets-fs +0 -0
  141. package/native/bin/linux-x64/aops-agent-assets-fs +0 -0
  142. package/native/bin/win32-x64/aops-agent-assets-fs.exe +0 -0
  143. package/native/manifest.json +0 -49
  144. package/native/qualifications/win32-x64.json +0 -23
  145. package/native/tui/darwin-arm64/aops-tui +0 -0
  146. package/native/tui/linux-x64/aops-tui +0 -0
  147. package/native/tui/win32-x64/aops-tui.exe +0 -0
@@ -1,94 +0,0 @@
1
- <!-- Public packaged guide derived from the mounted Community Sys catalog. Read only the relevant section; live schema wins on drift. -->
2
-
3
- # Sys User Guide
4
-
5
- Sys provides small infrastructure capabilities shared by Community domains:
6
- tenant-scoped counters, country lookup, event persistence, and rate-limit
7
- state. It is mounted on the AOPS gateway but intentionally has no separate
8
- `aops sys` sugar tree.
9
-
10
- ## Discover the live contract
11
-
12
- ```bash
13
- aops agent tools --domain sys --summary --json
14
- aops agent tools --domain sys --q counter --limit 10 --examples --summary --json
15
- aops agent schema --tool sys.counter.next --summary --json
16
- ```
17
-
18
- Use `--examples` only when a small invocation shape is useful. If a compact
19
- schema is opaque, inspect the full schema or tool detail; never guess inner
20
- `body` fields after a validation error.
21
-
22
- ## Countries
23
-
24
- ```bash
25
- aops agent invoke --tool sys.country.resolve-iso2 \
26
- --input '{"body":{"iso2Code":"TR"}}' --json
27
- aops agent invoke --tool sys.country.search \
28
- --input '{"body":{}}' --json
29
- ```
30
-
31
- Country records are shared reference data. Normalize ISO2 input to the shape
32
- required by the live schema and prefer lookup over duplicating country truth
33
- inside another domain.
34
-
35
- ## Counters
36
-
37
- ```bash
38
- aops agent invoke --tool sys.counter.get \
39
- --input '{"body":{"counterKey":"inventory.item.code"}}' --json
40
- aops agent invoke --tool sys.counter.preview-next \
41
- --input '{"body":{"counterKey":"inventory.item.code","prefix":"ITM","width":5}}' --json
42
- ```
43
-
44
- `preview-next` does not allocate a value. `next` atomically allocates one and
45
- requires a guarded write:
46
-
47
- ```bash
48
- aops agent invoke --tool sys.counter.next \
49
- --input '@counter-next.json' --apply --json
50
- ```
51
-
52
- Treat `counter.reset` as destructive. Read the live schema, inspect the current
53
- counter first, and use an idempotency key when the invoke surface supports it.
54
-
55
- ## Event store
56
-
57
- Read operations include `list`, `list-by-aggregate`, and `list-by-type`.
58
- Publishing persists a domain event:
59
-
60
- ```bash
61
- aops agent schema --tool sys.event-store.publish --summary --json
62
- aops agent invoke --tool sys.event-store.publish \
63
- --input '@event.json' --preview --json
64
- aops agent invoke --tool sys.event-store.publish \
65
- --input '@event.json' --apply --idempotency-key event-001 --json
66
- ```
67
-
68
- Use the business domain as the semantic owner. Sys stores the event; it does
69
- not invent aggregate or event-type conventions for another domain. Preview
70
- cleanup and verify retention scope before applying it.
71
-
72
- ## Rate limiter
73
-
74
- ```bash
75
- aops agent invoke --tool sys.rate-limiter.check \
76
- --input '{"body":{"key":"user:123","scope":"login"}}' --json
77
- aops agent invoke --tool sys.rate-limiter.record-attempt \
78
- --input '@rate-attempt.json' --preview --json
79
- ```
80
-
81
- `record-attempt`, `reset`, and `cleanup-expired` mutate database state. Inspect
82
- the live contract and current stats before reset/cleanup. Do not put secrets or
83
- raw authentication tokens into limiter keys.
84
-
85
- ## Safety and troubleshooting
86
-
87
- 1. Use `aops agent tools --domain sys --summary --json` to confirm the connected
88
- server actually exposes the operation.
89
- 2. Use `aops agent schema --tool sys.<operation> --summary --json` before every
90
- new raw payload.
91
- 3. Stop random retries after a validation error; compare against full schema or
92
- the operation detail.
93
- 4. Keep tenant/scope context explicit when the server requires it.
94
- 5. Preview writes when supported, apply once, then read back the result.
@@ -1,482 +0,0 @@
1
- <!-- Public packaged snapshot from canonical slug:aops working-discipline guidance. Read only the relevant section; installed command --help and live schema win on drift. -->
2
-
3
- # AOPS Working Disciplines v7
4
-
5
- _Release Notes:_ Adds coordinator-loop discipline (operator -> coordinator -> implementer delegation, free-form multi-task sessions) + guardrails + signal mapping
6
-
7
- ## 1 Core model
8
-
9
- ### 1.1 Overview
10
-
11
- #### 1.1.1 Overview
12
-
13
- `discipline` is the user-facing name for a policy preset. `method` is a
14
- compatibility alias in `aops start` output and flags.
15
-
16
- A discipline is:
17
-
18
- - a policy preset id
19
- - `guardrails[]`
20
- - when-to-use signals
21
- - review and RRR timing
22
- - issue timing
23
- - memory cadence
24
- - plan and slice rhythm
25
-
26
- A discipline is role-agnostic. Reusable discipline text names roles such as `implementer`, `reviewer`, `coordinator`, and `operator-approver`; it does not bind concrete agents to those roles. Concrete agent-to-role assignment belongs in the session-specific discipline policy.
27
-
28
- The four canonical ids are:
29
-
30
- | Discipline | Best for | Primary surfaces |
31
- | --- | --- | --- |
32
- | `solo-pm-loop` | Single-agent or low-uncertainty work | Projectman, optional RR, memory |
33
- | `build-review-chat` | Live implementer plus reviewer work | Projectman RR/RRR, ChatV3 wake, memory |
34
- | `design-first-consensus` | High design uncertainty or irreversible choices | Discuss, operator approval, Projectman |
35
- | `coordinator-loop` | Operator delegates session management to one coordinator agent directing implementer agents | Projectman RR/RRR, ChatV3 room, memory |
36
-
37
- `mode` is transport/session shape: `solo`, `solo+async-review`, or `chat-room`.
38
- `discipline` is the work policy. A chat-room mode usually maps to
39
- `build-review-chat`, but an operator can override with `--discipline`.
40
- `coordinator-loop` also runs in `chat-room` mode; the difference is the
41
- authority shape: in `build-review-chat` the operator coordinates peers, in
42
- `coordinator-loop` the operator talks only to the coordinator and the
43
- coordinator directs the other agents.
44
-
45
- `verify-first consensus-to-build` is a composite recipe, not a discipline.
46
- Use it when an operator reports an AOPS/project improvement issue and wants two
47
- agents to verify the problem before deciding whether a formal discuss topic is
48
- needed. It combines a short verify-first stance from each active role,
49
- `design-first-consensus` when the decision is material, and `build-review-chat`
50
- for reviewed implementation slices after consensus is bound to Projectman.
51
-
52
- ## 2 Start selection
53
-
54
- ### 2.1 Overview
55
-
56
- #### 2.1.1 Overview
57
-
58
- `aops start` exposes the transition vocabulary:
59
-
60
- ```bash
61
- aops start --mode chat-room --board <board> --discipline build-review-chat --json
62
- aops start --mode solo --board <board> --method solo-pm-loop --json
63
- aops start --mode chat-room --board <board> --discipline coordinator-loop --json
64
- ```
65
-
66
- `--discipline` is preferred. `--method` is a compatibility alias. Supplying both
67
- with different values is an error.
68
-
69
- Signal mapping:
70
-
71
- | Signal | Match | Discipline | Why |
72
- | --- | --- | --- | --- |
73
- | `decisionUncertainty` | `high` | `design-first-consensus` | Settle design before implementation. |
74
- | `operatorInterface` | `delegated` | `coordinator-loop` | Operator wants one coordinator as the single interface; other agents work under it. |
75
- | `mode` | `chat-room` | `build-review-chat` | Chat is live coordination for build/review. |
76
- | `agentCount` | `>1` | `build-review-chat` | Multiple agents need per-slice review gates. |
77
- | `workSize + decisionUncertainty` | `large + medium` | `design-first-consensus` | Large uncertain work should converge first. |
78
- | default | otherwise | `solo-pm-loop` | Single-agent or low-uncertainty PM loop. |
79
-
80
- `operatorInterface: delegated` wins over the plain `chat-room ->
81
- build-review-chat` mapping because the delegation hierarchy changes review
82
- authority and escalation routing, not just transport.
83
-
84
- The start pack includes:
85
-
86
- - `discipline.selected`, `discipline.recommended`, `discipline.reasons`
87
- - `method.selected` with `aliasOf: "discipline"`
88
- - `guardrails[]`
89
- - `guardrailGroups.execution` and `guardrailGroups.closeout`
90
- - `policy.closeout` with explicit closeout command hints
91
- - apply-required `deferredBindings`
92
-
93
-
94
- ## 3 Guardrail registry
95
-
96
- ### 3.1 Overview
97
-
98
- #### 4.1.1 Overview
99
-
100
- Every guardrail now has a phase:
101
-
102
- - `execution`: applies while planning, implementing, reviewing, and committing.
103
- - `closeout`: applies before leaving a session or handing it to the next run.
104
-
105
- Empty `evidence` means reviewer-attested/non-auto-checkable in S1/S2. A later
106
- future read-only check can inspect.
107
-
108
- | Guardrail id | Phase | Disciplines | Evidence | Enforcement |
109
- | --- | --- | --- | --- | --- |
110
- | `pm-task-sprint-before-implementation` | execution | all | `projectman.kanban-task`, `projectman.sprint` | advisory |
111
- | `microtask-slice-rhythm` | execution | all | `projectman.sprint.phases.microtasks` | advisory |
112
- | `verify-first-initial-stance` | execution | `build-review-chat`, `design-first-consensus` | `chatv3.message` | advisory |
113
- | `coordinator-independent-research` | execution | `coordinator-loop` | `projectman.kanban-task`, `projectman.sprint` | advisory |
114
- | `single-operator-interface` | execution | `coordinator-loop` | `chatv3.message` | advisory |
115
- | `assignment-via-canonical-refs` | execution | `coordinator-loop` | `projectman.kanban-task`, `projectman.sprint` | advisory |
116
- | `idle-window-improvement` | execution | `coordinator-loop` | `projectman.issue`, `projectman.feedback` | advisory |
117
- | `review-request-per-slice` | execution | `build-review-chat`, `coordinator-loop` | `projectman.review-request`, `chatv3.message` | advisory |
118
- | `verify-in-code` | execution | `build-review-chat`, `coordinator-loop` | empty | advisory |
119
- | `smoke-before-accept` | execution | `build-review-chat`, `coordinator-loop` | empty | advisory |
120
- | `explicit-pathspec-commit` | execution | `build-review-chat`, `coordinator-loop` | empty | advisory |
121
- | `no-fake-validation` | execution | `build-review-chat`, `coordinator-loop` | empty | advisory |
122
- | `material-findings-become-issues` | execution | all | `projectman.issue` | advisory |
123
- | `memory-checkpoint-cadence` | execution | all | `agentspace.memory-item` | advisory |
124
- | `consensus-before-implementation` | execution | `design-first-consensus` | `agentspace.discussion-topic.final-stance`, `operator.approval` | advisory |
125
- | `consensus-to-plan-binding` | execution | `design-first-consensus`, `build-review-chat`, `coordinator-loop` | `agentspace.discussion-topic.outputs`, `projectman.sprint`, `projectman.review-request`, `operator.approval` | advisory |
126
- | `no-conclude-before-final-stance` | execution | `design-first-consensus` | empty | advisory |
127
- | `no-tbd-output` | execution | `design-first-consensus` | empty | advisory |
128
- | `chat-is-coordination-only` | execution | `build-review-chat`, `design-first-consensus`, `coordinator-loop` | `projectman.review-request`, `agentspace.discussion-topic`, `agentspace.memory-item` | advisory |
129
- | `no-hosted-mirror-hand-edit` | execution | all | empty | advisory |
130
- | `closeout-handoff-memory` | closeout | all | `agentspace.memory-item` | soft-preflight |
131
- | `closeout-pm-status-audit` | closeout | all | `projectman.status.audit`, `projectman.status.reconcile` | soft-preflight |
132
- | `closeout-triage-open-reviews` | closeout | all | `projectman.review-request` | soft-preflight |
133
- | `closeout-triage-open-issues` | closeout | all | `projectman.issue` | soft-preflight |
134
- | `closeout-resume-readiness` | closeout | all | `agentspace.memory`, `projectman.implementation-plan`, `projectman.handoff` | soft-preflight |
135
- | `closeout-session-summary` | closeout | all | `agentspace.memory-item` | soft-preflight |
136
- | `closeout-slice-review-accounted` | closeout | `build-review-chat`, `coordinator-loop` | `projectman.review-request`, `projectman.issue` | soft-preflight |
137
- | `closeout-commit-scope-recorded` | closeout | `build-review-chat`, `coordinator-loop` | `git.commit`, `projectman.review-request`, `chatv3.message` | soft-preflight |
138
- | `closeout-assignment-queue-truthful` | closeout | `coordinator-loop` | `projectman.kanban-task` | soft-preflight |
139
- | `closeout-discuss-output-finalized` | closeout | `design-first-consensus` | `agentspace.discussion-topic.outputs` | soft-preflight |
140
- | `closeout-decision-carried-to-execution` | closeout | `design-first-consensus` | `projectman.kanban-task`, `projectman.sprint`, `projectman.issue`, `projectman.feedback` | soft-preflight |
141
-
142
- ### 3.2 Closeout discipline
143
-
144
- #### 4.2.1 Overview
145
-
146
- Closeout is the explicit before-leaving phase for an active session. It
147
- is not the same as operator board closeout or leaving a ChatV3 room.
148
-
149
- Use handoff when work continues or a future session must resume. Use complete
150
- only when no required work remains and the operator-approved lifecycle state
151
- allows completion. Board and room closeout stay operator-only unless the
152
- operator explicitly delegates them.
153
-
154
- All disciplines share this closeout checklist:
155
-
156
- - write handoff/resume memory with next action, validation state, and source refs
157
- - run `aops pm status audit` for the active task/board before saying work is done; resolve, reconcile, or explicitly defer stale task/sprint status findings with an owner
158
- - triage open review requests as accepted, linked to follow-up work, or deferred with owner
159
- - triage open issues as resolved, linked to follow-up work, or deferred with owner
160
- - prove resume readiness from objective, policy, plan, memory, review, issue, and next-action refs
161
- - record a concise session summary with changed scope and validation evidence
162
-
163
- Closeout status values are intentionally descriptive, not hard-fail booleans:
164
- `present`, `missing`, `deferred-with-owner`, `not-applicable`, and
165
- `waived-by-operator`.
166
-
167
- Use the owner surfaces instead:
168
-
169
- ```bash
170
- aops pm status audit --task <task-id> --sprint <sprint-id> --json
171
- aops pm handoff write --help
172
- aops mem checkpoint --help
173
- ```
174
-
175
- Agents enforce closeout through PM/RR state, memory, review, chat wake refs,
176
- and honest handoff notes.
177
-
178
- ## 4 solo-pm-loop
179
-
180
- ### 4.1 Overview
181
-
182
- #### 5.1.1 Overview
183
-
184
- When to use:
185
-
186
- - one agent is implementing
187
- - uncertainty is low or medium
188
- - review can be optional or asynchronous
189
- - no live coordination room is required
190
-
191
- Preset:
192
-
193
- - `discipline.id`: `solo-pm-loop`
194
- - enforcement: `advisory`
195
- - review: async optional at slice or session boundary
196
- - issue: create when validation or review finds a material blocker
197
- - memory: checkpoint at meaningful phase boundaries; summary at session end
198
- - rhythm: task/sprint plus microtask iteration
199
-
200
- Expected flow:
201
-
202
- ```bash
203
- aops pm ktask create --board <board> --column Doing --title "<task>" --apply --json
204
- aops pm sprint create --task <task-id> --name "<sprint>" --goal "<goal>" --apply --json
205
- # implement and validate
206
- aops mem checkpoint --task-id <task-id> --content "<progress>" --apply --json
207
- ```
208
-
209
- RR/RRR:
210
-
211
- - optional for low-risk work
212
- - recommended for shared CLI/domain behavior
213
- - material findings become PM issues
214
-
215
- Closeout checklist:
216
-
217
- - base closeout guardrails only: handoff memory, review/issue triage, resume readiness, and session summary
218
- - optional async review is either accepted or deferred with owner
219
- - next agent can resume from PM sprint/task plus memory without reading the whole chat
220
-
221
- ## 5 build-review-chat
222
-
223
- ### 5.1 Overview
224
-
225
- #### 6.1.1 Overview
226
-
227
- When to use:
228
-
229
- - operator assigns live implementer and reviewer
230
- - chat room is used for wake/coordination
231
- - each implementation slice needs fast RRR
232
- - commit should happen after accepted review
233
-
234
- Preset:
235
-
236
- - `discipline.id`: `build-review-chat`
237
- - review: required per implementation slice before commit
238
- - issue: material RRR findings become linked PM issues before re-review
239
- - memory: checkpoint after accepted slice or handoff-relevant review
240
- - rhythm: slice equals microtask; open RR, post chat wake, resolve before commit
241
-
242
- Consensus-to-plan binding:
243
-
244
- - when a material consensus exists, the implementer or reviewer proactively asks whether it should become a PM implementation plan
245
- - the operator approval gate decides whether the consensus is carried into Projectman
246
- - execution waits until the plan references the consensus and the reviewer accepts the plan review request
247
- - the reusable recipe stays role-agnostic; the discipline policy decides which concrete agent is implementer or reviewer
248
-
249
- Verify-first consensus-to-build recipe:
250
-
251
- - operator reports an issue or improvement request in the room
252
- - each active role records a short verify-first stance before formal discuss: whether the problem appears real, which truth source was checked, whether formal consensus is needed, and the suspected risk/scope
253
- - skip standalone discuss only when the stances agree the work is low-uncertainty or atomic; otherwise open a standalone discuss topic
254
- - after accepted consensus, bind the decision into a PM task/sprint-backed implementation plan and require reviewer acceptance before implementation
255
- - implementation continues through per-slice review requests, ChatV3 wakes, PM issues/feedback for material findings, checkpoints when useful, and explicit closeout
256
-
257
- Expected flow:
258
-
259
- ```bash
260
- aops pm review-request create \
261
- --task <task-id> \
262
- --sprint <sprint-id> \
263
- --review-scope "sprint:<plan-id>" \
264
- --requested-by <agent> \
265
- --target-agent <reviewer> \
266
- --apply --json
267
-
268
- aops chat send --session <session> --room general \
269
- --text "REVIEW READY: PM RR <id> ..." --json
270
-
271
- # reviewer appends result
272
- aops pm review-request result --id <rr-id> --reviewer <reviewer> \
273
- --outcome approved --summary "<evidence>" --apply --json
274
- ```
275
-
276
- Reviewer RRR summaries should explicitly mention stale PM status when seen:
277
- task Done with open sprint/microtask evidence, completed sprint with task not
278
- Done, or progress/status mismatch. Material stale-status findings become linked
279
- PM issues or an explicit deferred owner before approval/handoff.
280
-
281
- Use `sprint:<plan-id>` as the default review-scope when the slice is sprint or
282
- microtask backed; this matches the `aops start` deferred-binding hint.
283
- `aops pm review-request create --help` also accepts `files:<glob>`, which is
284
- appropriate when the reviewer should inspect an explicit file set. For mixed
285
- slices, put the sprint ref in `--review-scope` and list exact files in
286
- `--reference` or the instructions, unless the reviewer asks for a file-only RR.
287
-
288
- Commit discipline:
289
-
290
- - use explicit pathspec
291
- - include only the reviewed slice
292
- - do not bundle PM/doc/hosted drift unless that drift is the reviewed scope
293
- - announce the commit hash in the room
294
-
295
- Closeout checklist:
296
-
297
- - every slice RR is accepted, linked to a PM issue, or explicitly deferred with owner
298
- - PM status audit is clean, reconciled, or deferred with owner; stale task/sprint status must be named in the RRR instead of hidden in chat
299
- - commit hash, reviewed pathspec, and validation evidence are recorded in PM/RR and announced in chat
300
- - unresolved review findings become PM issues before handoff or completion
301
- - do not close the room or board unless the operator says to close them
302
-
303
- ## 6 design-first-consensus
304
-
305
- ### 6.1 Overview
306
-
307
- #### 7.1.1 Overview
308
-
309
- When to use:
310
-
311
- - design uncertainty is high
312
- - a change crosses owner boundaries
313
- - the decision is expensive to reverse
314
- - implementation should not start until consensus is accepted
315
-
316
- Preset:
317
-
318
- - `discipline.id`: `design-first-consensus`
319
- - review: after final stances and operator approval define the implementation slice
320
- - issue: open issues for unresolved blockers
321
- - memory: record accepted consensus and handoff checkpoints
322
- - rhythm: discuss first, carry consensus ref into sprint plan, then implement
323
-
324
- Expected flow:
325
-
326
- ```bash
327
- aops discuss start --title "<decision>" --question "<question>" --apply --json
328
- # run the full protocol: at least four substantive non-final turns
329
- aops discuss turn --topic <topic> --agent <agent> --kind final-stance --apply --json
330
- aops discuss conclude --topic <topic> --apply --json
331
- ```
332
-
333
- Do not conclude before final stances are present. Do not publish conclusion
334
- outputs with `_TBD_` placeholders. After conclusion, ask or record operator
335
- approval before implementation if the consensus contract requires it.
336
-
337
- For verify-first consensus-to-build, the discuss topic starts only after the
338
- active roles have recorded initial stances in the room. The topic output should
339
- carry those stance refs into the consensus, and the implementation plan should
340
- carry the discussion ref plus the verify-first refs before any code or canonical
341
- document changes start.
342
-
343
- Consensus-to-plan binding is mandatory for this discipline when implementation follows from the decision:
344
-
345
- - carry the concluded consensus ref into a Projectman task, sprint-backed implementation plan, issue, or feedback record before implementation resumes
346
- - the implementation plan goal should explain `NE / NICIN / DONE-WHEN` in operator-readable language
347
- - execution stays blocked until the operator-approved consensus is bound to the plan and the reviewer accepts the plan approval review request
348
- - concrete agent names stay in discipline policy; the reusable discipline names only implementer, reviewer, and operator-approver roles
349
-
350
- Closeout checklist:
351
-
352
- - final stances, consensus, disagreements, and open questions are finalized without placeholders
353
- - decision refs are carried into PM task, sprint-backed implementation plan, issue, or feedback records before implementation resumes
354
- - the plan approval review request is accepted or explicitly deferred with owner before execution begins
355
- - unresolved decision work is deferred with owner instead of disappearing into chat
356
- - handoff memory names the accepted decision and the next execution surface
357
-
358
- ## 7 coordinator-loop
359
-
360
- ### 7.1 Overview
361
-
362
- #### 8.1.1 Overview
363
-
364
- When to use:
365
-
366
- - the operator wants exactly one agent as their interface and delegates session
367
- management to it
368
- - one or more implementer agents execute work under coordinator direction in a
369
- shared ChatV3 room
370
- - the session is free-form: multiple, possibly independent tasks arrive over
371
- time and the team must adapt without a fixed sprint scope
372
- - review authority is delegated: the coordinator (or a bound reviewer) accepts
373
- slices; the operator is not paged per slice
374
-
375
- Roles (generic, bound per session):
376
-
377
- - `operator`: human intent, priorities, and approvals; speaks only to the
378
- coordinator.
379
- - `coordinator`: single operator interface. Researches independently before
380
- assigning, authors task/plan records, assigns work with canonical
381
- refs, reviews RRs, instructs commits, keeps PM/memory truthful, and
382
- uses idle windows for improvement work (docs, skills, tooling) plus
383
- issue/feedback capture.
384
- - `implementer` (one or more): executes assigned slices, opens an RR per slice,
385
- routes questions and decisions to the coordinator (never directly to the
386
- operator), commits only on coordinator instruction.
387
- - `reviewer` (optional): defaults to the coordinator; a session may bind a
388
- separate reviewer.
389
-
390
- Role names are open: `master` or `operator-agent` are discouraged aliases for
391
- `coordinator` — `coordinator` is the canonical role id because it does not
392
- collide with the human `operator` role and carries no ambiguous authority
393
- connotation.
394
-
395
- Preset:
396
-
397
- - `discipline.id`: `coordinator-loop`
398
- - enforcement: `advisory`
399
- - review: RR per implementation slice; reviewer defaults to the coordinator;
400
- commit only after the RR is accepted and the coordinator instructs the commit
401
- - issue: material findings become PM issues/feedback; both coordinator and
402
- implementer file them; the coordinator also files doc/skill gap findings
403
- discovered during policy checks
404
- - memory: the coordinator writes kickoff/checkpoint/closeout memory; assignment
405
- truth lives in ktask/plan records, not in chat prose
406
- - rhythm: operator request -> coordinator independent research (code, PM,
407
- docs) -> ktask/plan authoring -> chat assignment with canonical
408
- refs -> implementer slices with RRs -> coordinator review and fix loop ->
409
- instructed pathspec commit -> next task or idle-window improvement work
410
-
411
- Expected flow:
412
-
413
- ```bash
414
- # coordinator: durable anchor + role binding
415
- --policy-json '{"discipline":"coordinator-loop","roles":{"operator":"<name>","coordinator":"<agent>","implementer":"<agent>"}}' \
416
- --apply --json
417
-
418
- # coordinator: per task
419
- aops pm ktask create --board <board> --column Doing --title "<task>" --apply --json
420
- aops plan create --task <task-id> --name "<plan>" --goal "<goal>" \
421
- --scope-item "S1 ..." --scope-item "S2 ..." --apply --json
422
- aops chat send --session <session> --room general \
423
- "GOREV ATAMASI: ktask <id> / plan <id> - S1'den basla, slice basina RR" --json
424
-
425
- # implementer: per slice
426
- aops pm review-request create --task <task-id> --sprint <plan-id> \
427
- --review-scope "sprint:<plan-id>" --requested-by <implementer> \
428
- --target-agent <coordinator> --apply --json
429
-
430
- # coordinator: review result
431
- aops pm review-request result --id <rr-id> --reviewer <coordinator> \
432
- --outcome approved --summary "<evidence>" --apply --json
433
- ```
434
-
435
- Free-form session notes:
436
-
437
- - multiple independent tasks may be active at once; each gets its own
438
- ktask/plan; the plan stays the session anchor and
439
- `activeImplementationPlanRef` tracks the current focus
440
- - the coordinator adapts the depth of process to the task: an atomic fix may
441
- run as a single RR without a plan; multi-slice work gets a sprint-backed plan
442
- - when material design uncertainty appears inside a task, the coordinator runs
443
- a bounded peer deliberation with the implementer first (for example two
444
- turns); if positions converge the coordinator proposes the converged path,
445
- and only unresolved material decisions escalate to the operator
446
- - the escalation boundary is explicit: implementers never page the operator;
447
- the coordinator escalates only operator-owned decisions (scope, budget,
448
- irreversible product choices)
449
- - binding project policy documents (for example a UI system doc) are named in
450
- the assignment; both coordinator and implementer re-read the relevant
451
- sections as a policy check before and during the work, and gaps found in
452
- those documents are filed as PM issues/feedback
453
-
454
- Closeout checklist:
455
-
456
- - base closeout guardrails plus `build-review-chat` items: every slice RR
457
- accounted for; commit hash, pathspec, and validation evidence recorded
458
- - assignment queue truthful: every operator request in the session is bound to
459
- a ktask/plan record, completed, or explicitly deferred with owner
460
- - coordinator improvement findings are filed as PM issues/feedback, not left in
461
- chat
462
- - handoff memory names the active assignments, review states, and the next
463
- action per implementer
464
-
465
- ## 8 Owner boundaries
466
-
467
- ### 8.1 Overview
468
-
469
- #### 9.1.1 Overview
470
-
471
- | Surface | Owner | Use for |
472
- | --- | --- | --- |
473
- | Projectman | Projectman | task, sprint, microtask, issue, review truth |
474
- | Discuss | Agentspace discuss | material decisions and final stances |
475
- | Memory | Agentspace memory | durable carry-forward context |
476
- | ChatV3 | ChatV3 | coordination and wake |
477
- | Docman | Docman | published documentation |
478
- | Hosted skills | Agentspace skill | reusable runtime guidance |
479
-
480
- Do not hand-edit `.aops/hosted/**` or `.aops/docman/**` as canonical truth.
481
- Use hosted commands, then refresh mirrors.
482
-