@aopslabs/aops 0.3.31 → 0.3.33

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
package/README.md CHANGED
@@ -152,9 +152,9 @@ instead of silently invoking an elevated package manager.
152
152
  The existing-PostgreSQL path supports managed providers such as Supabase and
153
153
  Neon. Readiness compares only the migration-derived AOPS-owned table, column,
154
154
  key, constraint, and index contract; column order, audit timestamps, local
155
- receipts, and unrelated provider objects do not affect the result. The five
156
- domain migration roots (`sys`, `agentspace`, `docman`, `projectman`, and
157
- `chatv3`) remain resumability evidence rather than a second schema authority.
155
+ receipts, and unrelated provider objects do not affect the result. The six
156
+ domain migration roots (`sys`, `agentspace`, `docman`, `projectman`, `chatv3`,
157
+ and `tasker`) remain resumability evidence rather than a second schema authority.
158
158
  When that semantic structure is already exact, readiness does not inspect
159
159
  historic SQL or journal bytes; executable bundle validation occurs only when
160
160
  pending DDL must run.
@@ -165,6 +165,14 @@ Eligible DDL runs transactionally under a non-waiting migration lock and the
165
165
  live semantic schema is read back before success. Optional audit-write failure
166
166
  does not invalidate that result.
167
167
 
168
+ Maintainers can rehearse the complete managed PostgreSQL failure path with
169
+ `pnpm run test:managed-migration-rollback` from this package. It creates only a
170
+ dedicated Docker PostgreSQL 17 container and volume, migrates the reviewed
171
+ predecessor through Tasker, restores the verified pre-migration snapshot, retries
172
+ the migration, starts the dev Server against that disposable database, and
173
+ smokes the Tasker CLI sugar plus AOPS-TUI delegation before removing both Docker
174
+ resources. It never reads or changes the operator's configured database.
175
+
168
176
  The CLI package depends exactly on the compatible `@aopslabs/aops-server`
169
177
  release, so local installation remains a single npm command. Remote users may
170
178
  leave that local runtime unconfigured and connect only to their selected remote
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: build-review-chat
3
+ description: Use for live implementer and reviewer work where every implementation slice is independently reviewed and ChatV3 is coordination only.
4
+ ---
5
+
6
+ # Build and review over chat
7
+
8
+ Use this discipline when an implementer and reviewer work concurrently and each implementation slice needs review before commit.
9
+
10
+ ## Required assets
11
+
12
+ - `aops-collaborative-work`
13
+ - `aops-cli-projectman`
14
+ - `aops-cli-chat`
15
+ - `aops-cli-agentspace`
16
+
17
+ Use `aops-cli-discuss` only for material design consensus.
18
+
19
+ ## Flow
20
+
21
+ 1. Bind the slice to a Projectman microtask.
22
+ 2. Implement and validate the bounded scope.
23
+ 3. Open one Projectman review request with exact scope and evidence.
24
+ 4. Use ChatV3 only to wake or coordinate with the reviewer.
25
+ 5. Resolve findings, request re-review, and proceed only after acceptance.
26
+ 6. Record the accepted slice and resume state.
27
+
28
+ ## Boundaries
29
+
30
+ - The reviewer verifies code and runtime evidence independently.
31
+ - Material findings become linked issues; they do not stay only in chat.
32
+ - A review result does not authorize commit, publish, deletion, or another operator effect.
33
+ - Hosted and Docman mirrors are read-only.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: coordinator-loop
3
+ description: Use when one coordinator is the operator interface and directs bounded implementer work through canonical Projectman assignments and reviews.
4
+ ---
5
+
6
+ # Coordinator loop
7
+
8
+ Use this discipline when the operator delegates a multi-task session to one coordinator who directs one or more implementers.
9
+
10
+ ## Required assets
11
+
12
+ - `aops-collaborative-work`
13
+ - `aops-cli-projectman`
14
+ - `aops-cli-chat`
15
+ - `aops-cli-agentspace`
16
+
17
+ Use `aops-cli-discuss` for material design consensus.
18
+
19
+ ## Flow
20
+
21
+ 1. The coordinator independently verifies each request against code, PM, and canonical docs.
22
+ 2. Create or select canonical mission/task/sprint references before assignment.
23
+ 3. Assign bounded work with those references; chat prose alone is not an assignment.
24
+ 4. Require one Projectman review request per implementation slice.
25
+ 5. Verify evidence, loop on findings, and keep the assignment queue truthful.
26
+ 6. Close with checkpoint, issue triage, review accounting, and a resume-ready handoff.
27
+
28
+ ## Boundaries
29
+
30
+ - The coordinator is the single operator interface; implementers escalate through the coordinator.
31
+ - A coordinator may review only when independent verification is preserved.
32
+ - Concrete names belong to mission/session policy.
33
+ - Commit, publish, deletion, and other operator effects remain separately authorized.
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: design-first-consensus
3
+ description: Use for material, cross-owner, or expensive-to-reverse decisions that require independent research and concluded consensus before implementation.
4
+ ---
5
+
6
+ # Design-first consensus
7
+
8
+ Use this discipline when architecture or ownership is uncertain enough that implementation should wait for a recorded decision.
9
+
10
+ ## Required assets
11
+
12
+ - `aops-cli-discuss`
13
+ - `aops-cli-projectman`
14
+ - `aops-collaborative-work`
15
+ - `aops-cli-agentspace`
16
+
17
+ ## Flow
18
+
19
+ 1. Each participant researches code, PM, and canonical documents independently.
20
+ 2. Run the Discuss turn protocol and record final stances.
21
+ 3. Conclude only with complete consensus/disagreement/open-question outputs.
22
+ 4. After operator approval, bind the consensus reference to a Projectman task and sprint plan.
23
+ 5. Obtain plan review before implementation, then use bounded reviewed slices.
24
+
25
+ ## Boundaries
26
+
27
+ - Discuss owns the decision; Projectman owns the implementation plan and reviews.
28
+ - ChatV3 may coordinate but is never decision truth.
29
+ - No implementation begins from an unconcluded topic or placeholder output.
30
+ - Concrete agent assignments belong to mission/session policy, not this reusable discipline.
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: solo-pm-loop
3
+ description: Use for one-agent AOPS work with Projectman truth, bounded checkpoints, and review proportional to risk.
4
+ ---
5
+
6
+ # Solo PM loop
7
+
8
+ Use this discipline for one agent handling low- or medium-uncertainty work.
9
+
10
+ ## Required assets
11
+
12
+ - `aops-collaborative-work`
13
+ - `aops-cli-projectman`
14
+ - `aops-cli-agentspace`
15
+
16
+ Use `aops-cli-discuss` only when material design uncertainty appears.
17
+
18
+ ## Flow
19
+
20
+ 1. Read the active Projectman task/sprint and relevant memory.
21
+ 2. Work in the smallest useful microtask slice.
22
+ 3. Validate the changed behavior and create an issue for material findings.
23
+ 4. Request asynchronous review when risk warrants it.
24
+ 5. Write a checkpoint at a meaningful phase boundary and leave PM state truthful.
25
+
26
+ ## Boundaries
27
+
28
+ - Projectman owns plan, issue, and review truth.
29
+ - Memory carries resume context; it does not replace the plan.
30
+ - Hosted and Docman mirrors are read-only.
31
+ - Commit, publish, deletion, or other operator effects require their own authority.
@@ -0,0 +1,384 @@
1
+ # Agentspace User Guide
2
+
3
+ _Release Notes:_ Replaces stale Turkish and retired hosted-chat material; adds current memory, experience, playbook, skill discovery, agent-profile, activity, and Discuss semantics.
4
+
5
+ ## 1 Ownership model
6
+
7
+ ### 1.1 Overview
8
+
9
+ Agentspace is the durable context and reusable knowledge plane for AOPS agents.
10
+ It owns memory, experience, playbooks, prompts, resources, artifacts, skills,
11
+ agent profiles, activity records, and structured discussion topics. The local
12
+ AOPS server is canonical; repository mirrors are read-only projections.
13
+
14
+ Use each system for the state it owns:
15
+
16
+ | Need | Canonical owner |
17
+ | --- | --- |
18
+ | Durable context, reusable knowledge, profiles, and structured discussion | Agentspace |
19
+ | Tasks, sprints, issues, review requests, and review results | Projectman |
20
+ | Versioned documents, pages, publication, and document retrieval | Docman |
21
+ | Encrypted coordination, room messages, cursors, and wake traffic | ChatV3 through `aops chat` |
22
+ | Repository files, commits, and branches | Git and the source repository |
23
+
24
+ Memory is not a second task tracker. Chat is not a decision record. A generated
25
+ synopsis is not an independent source of truth. Link the canonical record
26
+ instead of copying it into every system.
27
+
28
+ ## 2 Start with the smallest useful read
29
+
30
+ ### 2.1 Overview
31
+
32
+ Check health and load a bounded context pack before reading full records:
33
+
34
+ ```bash
35
+ aops host health --json
36
+ aops mem brief --subject project --q "<current work>" --limit 5 --json
37
+ aops mem synopsis --subject project --q "<current work>" --limit 5 --json
38
+ aops mem search --subject project --q "<decision or constraint>" --limit 8 --json
39
+ ```
40
+
41
+ Then resolve only the relevant full item:
42
+
43
+ ```bash
44
+ aops mem resume --subject project --q "<current work>" --limit 8 --json
45
+ aops mem get --id <memory-id> --json
46
+ ```
47
+
48
+ Do not preload all memory, skill bodies, activity payloads, or discussion
49
+ history. Prefer summary reads and small limits. Use nested `--help` when flags
50
+ or safety semantics matter.
51
+
52
+ ## 3 Durable memory
53
+
54
+ ### 3.1 What belongs in memory
55
+
56
+ #### 3.1.1 Overview
57
+
58
+ A useful memory item is an evidence pack, not a transcript. Include:
59
+
60
+ 1. request or purpose;
61
+ 2. Projectman, document, discussion, file, or commit references;
62
+ 3. concrete outcome and current state;
63
+ 4. validation or review evidence;
64
+ 5. open risk and the next safe action.
65
+
66
+ Do not store credentials, tokens, private keys, raw logs, full documents, or
67
+ large chat transcripts.
68
+
69
+ Short durability is the normal rolling context. Use durable memory only for a
70
+ stable, reviewed decision, rule, architecture constraint, or closeout record.
71
+ For a lower-level write, inspect the exact contract first and keep the same
72
+ evidence shape:
73
+
74
+ ```bash
75
+ aops mem write --help
76
+ aops mem write --project-slug <slug> --mode decision \
77
+ --content '@decision.md' --task-id <task-id> \
78
+ --source-ref <evidence-ref> --apply --json
79
+ ```
80
+
81
+ ### 3.2 Checkpoint and summary
82
+
83
+ #### 3.2.1 Overview
84
+
85
+ Write a short checkpoint after a meaningful milestone, decision, blocker, or
86
+ handoff point:
87
+
88
+ ```bash
89
+ aops mem checkpoint \
90
+ --project-slug <slug> \
91
+ --as milestone \
92
+ --content '@checkpoint.md' \
93
+ --task-id <task-id> \
94
+ --sprint-id <sprint-id> \
95
+ --source-ref <ref> \
96
+ --validation-state "<evidence summary>" \
97
+ --next-action "<next safe action>" \
98
+ --apply --json
99
+ ```
100
+
101
+ Use `aops mem summary` at session end or at an explicit summary point. Ordinary
102
+ continuation should use `mem checkpoint`. Durable closeout is intentionally
103
+ stronger and requires the explicit closeout, durable, and confirmation flags;
104
+ inspect `aops mem summary --help` before using it.
105
+
106
+ Multiline or quote-heavy content should use `@file`. Relative `@file` paths are
107
+ resolved from the current working directory.
108
+
109
+ ### 3.3 Compact and prune
110
+
111
+ #### 3.3.1 Overview
112
+
113
+ Compaction is a review workflow, not automatic deletion:
114
+
115
+ ```bash
116
+ aops mem compact --project-slug <slug> --older-than-days 30 \
117
+ --keep-latest 20 --max-items 20 --preview --json
118
+ aops mem prune --project-slug <slug> --older-than-days 30 \
119
+ --keep-latest 20 --preview --json
120
+ ```
121
+
122
+ Review the proposed source set and compact summary before writing it. Writing a
123
+ summary, marking source items, pruning source items, and deleting memory are
124
+ separate actions. Destructive pruning requires explicit operator intent plus
125
+ `--apply --confirm`.
126
+
127
+ ## 4 Projects, experience, and playbooks
128
+
129
+ ### 4.1 Overview
130
+
131
+ Agentspace projects provide reusable-context ownership; they do not replace
132
+ Projectman work tracking.
133
+
134
+ ```bash
135
+ aops project list --json
136
+ aops project get --id <project-id> --json
137
+ ```
138
+
139
+ Capture an experience only when it is reusable beyond the current task. Include
140
+ the problem, solution, evidence references, and realistic confidence:
141
+
142
+ ```bash
143
+ aops exp capture --project-slug <slug> \
144
+ --type problem-solution \
145
+ --title "<reusable lesson>" \
146
+ --problem "<observed problem>" \
147
+ --solution "<verified solution>" \
148
+ --pm-ref <projectman-ref> \
149
+ --source-ref <source-ref> \
150
+ --preview --json
151
+ ```
152
+
153
+ Apply only after reviewing the preview. Use bounded discovery for existing
154
+ experience and reviewed playbook projections:
155
+
156
+ ```bash
157
+ aops exp search --project-slug <slug> --q "<need>" --limit 5 --json
158
+ aops playbook list --project-slug <slug> --area <area> \
159
+ --review-state accepted --limit 5 --json
160
+ ```
161
+
162
+ Promoting experience or memory into a playbook is a reviewed knowledge action,
163
+ not a side effect of finishing a task.
164
+
165
+ ## 5 Reusable hosted assets
166
+
167
+ ### 5.1 Overview
168
+
169
+ Prompts and skills have version lifecycles. Resources are typed knowledge
170
+ pointers. Artifacts describe or reference outputs; they are not an unlimited
171
+ binary store.
172
+
173
+ Use summary inventory first:
174
+
175
+ ```bash
176
+ aops prompt version list --summary --json
177
+ aops skill version list --summary --json
178
+ aops resource list --summary --limit 10 --json
179
+ aops artifact ref list --summary --json
180
+ ```
181
+
182
+ For skill routing, search metadata before loading bodies:
183
+
184
+ ```bash
185
+ aops skill ask --q "<what the agent needs>" --limit 3 --json
186
+ aops skill search --q "<capability>" --limit 5 --json
187
+ aops skill current --id <skill-id> --summary --json
188
+ aops skill inspect --id <skill-id> --summary --json
189
+ ```
190
+
191
+ `skill ask` is deterministic metadata ranking; it does not load every skill
192
+ body or run an LLM. Read the selected `SKILL.md` completely before acting.
193
+
194
+ Create, update, version, publish, link, and delete operations are guarded
195
+ writes. Inspect the exact nested help, preview where supported, apply once, and
196
+ read back the resulting record/version. Never hand-edit hosted mirrors.
197
+
198
+ ## 6 Agent profiles and activity
199
+
200
+ ### 6.1 Overview
201
+
202
+ An agent profile composes role intent and references to prompts, skills,
203
+ resources, overlays, and additional context. It is not a substitute for runtime
204
+ permissions or operator approval.
205
+
206
+ ```bash
207
+ aops agent-profile list --project-slug <slug> --json
208
+ aops agent-profile get --project-slug <slug> --id <profile-id> --json
209
+ aops agent-profile create --project-slug <slug> \
210
+ --name "<profile name>" --role reviewer \
211
+ --skill-ref <skill-ref> --resource-ref <resource-ref> \
212
+ --preview --json
213
+ ```
214
+
215
+ Activity is a read-oriented ledger. Start with compact records and request the
216
+ full payload only when evidence inspection needs it:
217
+
218
+ ```bash
219
+ aops activity list --project-slug <slug> --summary --limit 20 --json
220
+ aops activity get --project-slug <slug> --id <activity-id> --summary --json
221
+ ```
222
+
223
+ ## 7 Structured discussions
224
+
225
+ ### 7.1 Overview
226
+
227
+ Use `aops discuss` when a material decision benefits from independent stances
228
+ and a durable conclusion. Small, reversible implementation choices do not need
229
+ a discussion ritual.
230
+
231
+ ```bash
232
+ aops discuss start --project-slug <slug> \
233
+ --title "<decision>" \
234
+ --question "<one precise question>" \
235
+ --agent <agent-a> --agent <agent-b> \
236
+ --apply --json
237
+
238
+ aops discuss turn --project-slug <slug> \
239
+ --topic <topic-id-or-slug> --agent <agent-a> \
240
+ --kind statement --from-file ./stance.md --apply --json
241
+
242
+ aops discuss wait --project-slug <slug> \
243
+ --topic <topic-id-or-slug> --agent <agent-b> \
244
+ --timeout-sec 540 --interval-sec 5 --json
245
+
246
+ aops discuss turn --project-slug <slug> \
247
+ --topic <topic-id-or-slug> --agent <agent-b> \
248
+ --kind final-stance --from-file ./final.md --apply --json
249
+
250
+ aops discuss conclude --project-slug <slug> \
251
+ --topic <topic-id-or-slug> --apply --json
252
+ ```
253
+
254
+ The current server-first contract is intentionally explicit:
255
+
256
+ - `discuss start --max-turns` is unsupported and fails;
257
+ - `--objective` is folded into the hosted question; it is not a separate
258
+ hosted column;
259
+ - `discuss turn --to` supports only `operator`; a named agent fails;
260
+ - `discuss turn --reply-to` takes an integer turn sequence, not a turn id;
261
+ - turns are append-only and server-enforced ordering remains authoritative;
262
+ - `digest`, `lineage`, `output`, and `abandon` are the supported inspection and
263
+ terminal helpers; inspect their nested help before use.
264
+
265
+ `aops discuss wait` exits with `0` when the requested agent may write, `20` for
266
+ an operator-addressed open question, `21` when the topic is terminal or ready
267
+ to conclude, and `22` on timeout.
268
+
269
+ Discuss does not replace ChatV3 wake traffic. When another agent must act, send
270
+ a short `aops chat` message containing the canonical topic, turn, PM, or review
271
+ reference. ChatV3 foreground listen uses its own contract: `0` for delivered
272
+ work and `22` for a quiet bounded interval. Use the ChatV3 skill and guide for
273
+ room, session, receipt, and cursor behavior.
274
+
275
+ ## 8 Discovery, safety, and troubleshooting
276
+
277
+ ### 8.1 Live capability discovery
278
+
279
+ #### 8.1.1 Overview
280
+
281
+ When sugar does not cover an operation, discover the running server instead of
282
+ guessing a tool id or payload:
283
+
284
+ ```bash
285
+ aops agent tools --domain agentspace --q "<capability>" \
286
+ --limit 20 --summary --json
287
+ aops agent schema --tool <agentspace-tool-id> --summary --json
288
+ aops agent invoke --tool <agentspace-tool-id> \
289
+ --input '@payload.json' --preview --json
290
+ ```
291
+
292
+ The hosted catalog may change. This guide deliberately does not freeze a tool
293
+ count or a tool-id inventory.
294
+
295
+ ### 8.2 Guide retrieval
296
+
297
+ #### 8.2.1 Overview
298
+
299
+ Use Docman retrieval rather than scanning every document:
300
+
301
+ ```bash
302
+ aops doc scope search --project-slug aops \
303
+ --q "Agentspace memory checkpoint" --local --json
304
+ aops doc search --document-version-id <version-id> \
305
+ --q "structured discussions" --local --json
306
+ aops doc outline get --document-version-id <version-id> \
307
+ --titles-only --depth 1 --json
308
+ aops view doc-page agentspace-user-guide#<section-slug> --max-bytes 6000
309
+ ```
310
+
311
+ ### 8.3 Common mistakes
312
+
313
+ #### 8.3.1 Overview
314
+
315
+ - putting task or review truth in memory instead of Projectman;
316
+ - copying a full transcript into memory instead of recording evidence and refs;
317
+ - loading every skill body before metadata search;
318
+ - mutating `.aops` mirrors by hand;
319
+ - treating a quiet wait/listen timeout as completion;
320
+ - inventing another participant's discussion stance;
321
+ - running compact/prune/delete writes without operator intent;
322
+ - guessing hosted tool ids, schemas, or fixed catalog counts.
323
+
324
+ ## 9 Appendices
325
+
326
+ ### 9.1 Overview
327
+
328
+ <!-- aops-generated:agentspace-command-catalog:start -->
329
+
330
+ ### 9.2 Generated Agentspace command families
331
+
332
+ #### 9.2.1 Overview
333
+
334
+ > This compact appendix is generated from the public Commander registrations. It groups current leaf commands into eleven owner families instead of copying a large command-by-command or hosted-tool catalog. Regenerate it with `aops docs user-guide --guide agentspace`.
335
+
336
+ | Family | Registered leaf commands | Purpose |
337
+ | --- | --- | --- |
338
+ | `aops mem` (aliases: memory) | `brief`, `checkpoint`, `compact`, `delete`, `doc answer`, `doc publish`, `doc refs`, `doc source`, `get`, `list`, `prune`, `resume`, `search`, `summary`, `synopsis`, `update`, `write` | Agentspace server-first memory commands (hosted memory-item ops are the source of truth; the local .aops memory tree is never written) |
339
+ | `aops exp` (aliases: experience) | `capture`, `delete`, `get`, `list`, `promote`, `search`, `update` | Author and read hosted Agentspace experience items (server-first) |
340
+ | `aops project` | `create`, `delete`, `get`, `link`, `links list`, `list`, `migrate-local-root`, `update` | Agentspace project sugar commands over the hosted AOPS gateway |
341
+ | `aops playbook` | `get`, `list`, `project-set`, `promote`, `show` | List reviewed playbooks projected from hosted Agentspace memory rules/constraints (server-first) |
342
+ | `aops prompt` | `create`, `current`, `delete`, `get`, `inspect`, `list`, `update`, `version create`, `version delete`, `version get`, `version list`, `version publish`, `version update` | Agentspace prompt and prompt-version sugar commands over the hosted AOPS gateway |
343
+ | `aops resource` | `create`, `delete`, `get`, `list`, `update` | Agentspace resource sugar commands over the hosted AOPS gateway |
344
+ | `aops artifact` | `create`, `delete`, `get`, `link`, `ref list` | Agentspace artifact sugar commands over the hosted AOPS gateway |
345
+ | `aops skill` | `ask`, `create`, `current`, `delete`, `get`, `inspect`, `list`, `search`, `update`, `version create`, `version delete`, `version get`, `version list`, `version publish`, `version update` | Agentspace skill and skill-version sugar commands over the hosted AOPS gateway |
346
+ | `aops agent-profile` | `create`, `delete`, `get`, `list`, `update` | Author and read hosted Agentspace agent profiles (server-first) |
347
+ | `aops activity` | `get`, `list` | Agentspace activity ledger read sugar over the hosted AOPS gateway |
348
+ | `aops discuss` | `abandon`, `conclude`, `digest`, `follow-up`, `fork`, `get`, `lineage`, `list`, `loop-prompt`, `output`, `start`, `status`, `turn`, `wait` | Manage hosted (server-first) Agentspace discussion topics |
349
+
350
+ <!-- aops-generated:agentspace-command-catalog:end -->
351
+
352
+ <!-- aops-generated:agentspace-discovery:start -->
353
+
354
+ ### 9.3 Generated Agentspace discovery and routing guide
355
+
356
+ #### 9.3.1 Overview
357
+
358
+ > Sugar commands cover common Agentspace workflows. The running server catalog remains authoritative for hosted operations, so this guide does not freeze tool ids or tool counts.
359
+
360
+ | Command | Purpose |
361
+ | --- | --- |
362
+ | `aops skill search` | Find current published hosted skills by bounded deterministic metadata ranking |
363
+ | `aops skill ask` | Recommend hosted skills using one deterministic metadata search (no LLM or body loading) |
364
+ | `aops agent tools` | List federated tools from the canonical operator plane (/api/agent/tools) |
365
+ | `aops agent schema` | Print the live JSON Schema for one tool's input contract — use this before authoring --input payloads |
366
+ | `aops agent invoke` | Invoke a tool via the canonical operator plane (/api/agent/tools/{toolId}/invoke) |
367
+
368
+ Use the smallest useful read:
369
+
370
+ ```bash
371
+ aops skill ask --q "<need>" --limit 3 --json
372
+ aops agent tools --domain agentspace --q "<capability>" --limit 20 --summary --json
373
+ aops agent schema --tool <agentspace-tool-id> --summary --json
374
+ ```
375
+
376
+ | Need | Specialized route |
377
+ | --- | --- |
378
+ | Encrypted coordination and wake | `aops chat` and the `aops-cli-chat` skill |
379
+ | Structured decision and consensus | `aops discuss` and the `aops-cli-discuss` skill |
380
+ | Tasks, sprints, issues, and review truth | `aops pm` and the `aops-cli-projectman` skill |
381
+ | Versioned documents and retrieval | `aops doc` and the `aops-cli-docman` skill |
382
+ | File snapshots and lineage | `aops agent tools --domain fileman` and the `aops-cli-fileman` skill |
383
+
384
+ <!-- aops-generated:agentspace-discovery:end -->