@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
@@ -1,102 +0,0 @@
1
- # AOPS Community system guide
2
-
3
- AOPS consists of a server, a CLI, independent domain capabilities, and optional monitoring surfaces.
4
-
5
- - `aops-server` hosts the installed domains and is canonical for their records.
6
- - the `aops` CLI provides setup, target/auth configuration, domain sugar, generic discovery/invoke, and local client-asset lifecycle commands.
7
- - Domain plugins own their semantics and operation schemas.
8
- - Cockpit applications are optional presentation and monitoring surfaces.
9
-
10
- The server and CLI need not be on the same computer. A local client selects a target and keeps credentials in its user-level configuration. Repository `.aops` content binds a project and caches derived views; it does not replace hosted records or the verified user-level agent-assets store.
11
-
12
- ## Installation boundary
13
-
14
- `aops setup init` is the setup authority. It can use an operator-supplied
15
- PostgreSQL URL, manage only an AOPS-owned Docker PostgreSQL, or create a
16
- dedicated AOPS role/database in loopback PostgreSQL already installed on the
17
- computer. All server paths use the same migration verification. PostgreSQL
18
- administrator credentials for local provisioning are transient and never
19
- stored; the application connection is kept in the private user server-env.
20
- Use `aops setup guide` for the small installation skill and live
21
- `aops setup init --help` for exact flags.
22
-
23
- Successful default setup also installs or repairs the signed global AOPS
24
- gateway for every registered agent runtime. Its offline core provides a
25
- token-efficient router plus rich, on-demand guides for the mounted Community
26
- domains and available working disciplines. A discipline is never selected or
27
- activated automatically.
28
-
29
- After local setup, invoking `aops` without arguments shows the operator home
30
- without starting or stopping either local service. Use the separate Server and
31
- Cockpit controls when you want to change their process state.
32
-
33
- The installed CLI also ships direct `.sh` and `.ps1` launchers. The server
34
- launcher runs the normal installed lifecycle in the current terminal with live
35
- logs and Ctrl+C cleanup. The Cockpit launcher starts only its independent
36
- background process. Both call package-relative Node entrypoints and never
37
- carry database secrets in the script or argv.
38
-
39
- ## Guarded global update
40
-
41
- The bundled Rust TUI has an Update page for an already installed npm-based
42
- AOPS system. Its Check action is read-only. Prepare downloads and verifies the
43
- exact public candidate and restore tarballs and writes a plan without changing
44
- services or packages. Apply requires that exact plan, briefly stops Cockpit
45
- and Server, installs one global `@aopslabs/aops` CLI with its exact nested
46
- Server dependency, and repeatedly verifies direct Server, Cockpit, and
47
- Cockpit-proxy health. Failure automatically restores the prior exact versions,
48
- package layout, and services.
49
-
50
- The same lifecycle is available headlessly:
51
-
52
- ```text
53
- aops update check --json
54
- aops update prepare --json
55
- aops update apply --plan <update-plan.json> --confirm <sha256-plan-id> --json
56
- ```
57
-
58
- CLI versions released before candidate-owned execution cannot retroactively
59
- load the safer apply implementation. For that one transition, let the
60
- installed old CLI run `prepare`, then launch the exact target package outside
61
- the global installation and use its explicit bridge command. macOS/Linux:
62
-
63
- ```text
64
- npm exec --yes --registry=https://registry.npmjs.org --userconfig=/dev/null --package=@aopslabs/aops@<exact-target> -- aops update bridge --plan <update-plan.json> --confirm <sha256-plan-id> --json
65
- ```
66
-
67
- Windows uses the same command with `--userconfig=NUL`. The bridge rejects the
68
- installed old CLI entrypoint and a candidate version that differs from the
69
- plan target; that external candidate then stages and re-verifies the complete
70
- executor closure before any global mutation. Once this transition succeeds,
71
- ordinary TUI and headless Apply actions use candidate-owned execution.
72
-
73
- All metadata and tarball reads are pinned to the public npm registry. A legacy
74
- top-level Server dedupe is treated as a repairable package-layout issue. The
75
- updater does not publish packages, create tags/releases, or replace the normal
76
- candidate acceptance and independent review gates.
77
-
78
- ## Capability discovery
79
-
80
- Start with the relevant CLI family help. When a server has custom or newer domains, query its live catalog:
81
-
82
- ```text
83
- aops agent tools --summary --json
84
- aops agent tools --domain <domain> --q <intent> --limit 5 --summary --json
85
- aops agent schema --tool <domain.operation> --summary
86
- ```
87
-
88
- Sugar `--help` is authoritative for CLI flags. Live tool schema is authoritative for direct `agent invoke` payloads.
89
-
90
- ## Composition without prescription
91
-
92
- Projectman can represent boards, tasks, sprints/plans, reviews, issues, and handoffs. These are independent capabilities: board-only, sprint-only, combined, and neither are all valid choices. The same principle applies to memory, documents, chat, task execution, and optional working-discipline assets.
93
-
94
- ## Local state boundaries
95
-
96
- - user configuration selects servers and authentication;
97
- - the logical AOPS data root contains machine-local runtime state;
98
- - `agent-assets` beneath that data root contains verified immutable packages and activation/binding receipts;
99
- - a repository `.aops` directory contains project binding and derived cache views;
100
- - hosted reusable skills and prompts remain server-canonical unless an exact package is explicitly materialized.
101
-
102
- For current paths, flags, previews, apply requirements, and troubleshooting, use `aops --help` and the relevant nested help.
@@ -1,113 +0,0 @@
1
- <!-- Public packaged snapshot from canonical slug:aops ChatV3 guidance. Installed command --help and live schema win on drift. -->
2
-
3
- # ChatV3 User Guide
4
-
5
- ## 1 Canonical CLI surface
6
-
7
- `aops chat` is the canonical ChatV3 command tree. `aops chatv3` is retained as
8
- a compatibility alias and exposes the same behavior. The former Agentspace
9
- hosted-chat sugar is no longer projected as a second `aops chat` system.
10
-
11
- | Need | Command |
12
- | --- | --- |
13
- | Join from an invite | `aops chat join "<invite>" --handle <agent> --save-session --json` |
14
- | Send text | `aops chat send --session <id> --room <slug> "<text>" --json` |
15
- | Read once | `aops chat read --session <id> --room <slug> --after-seq <n> --json` |
16
- | Foreground wait | `aops chat listen --session <id> --room <slug> --after-seq <n> --timeout-sec 60 --json` |
17
- | Bind PM/doc refs | `aops chat binding add --session <id> --room <slug> --binding-type <type> --ref-id <id> --json` |
18
- | Roster/presence | `aops chat member list ...`, `aops chat presence set ...` |
19
- | Local sessions | `aops chat session list|get|forget ... --json` |
20
-
21
- `read` and `listen` return `messages`, `messageCount`, `latestSeq`, and
22
- `caughtUp`. `listen` exits `0` when it finds messages and `22` on timeout. A
23
- timeout is not task completion: continue bounded foreground listening while
24
- the room still owns active work.
25
-
26
- ## 2 Agent-owned local session store
27
-
28
- ChatV3 session records include encrypted member tokens plus either E2E wrap
29
- material or server-managed room epoch keys. They are local credentials and
30
- must never appear in messages, source files, logs, PM records, or shell
31
- history.
32
-
33
- The default store is isolated by local agent owner under
34
- `~/.aops/chatv3/<owner-hash>/sessions.json`. Owner selection is:
35
-
36
- 1. explicit `--session-owner <id>`;
37
- 2. `AOPS_CHATV3_SESSION_OWNER`;
38
- 3. detected Codex or Claude session identity;
39
- 4. the local interactive operator identity.
40
-
41
- The raw identity is hashed before it is persisted or shown. Each owner also
42
- has a separate encryption key file. Passing a store owned by a different
43
- agent fails closed. A legacy `~/.aops/chatv3-sessions.json` session is claimed
44
- once and copied into the first owner that loads it; another owner cannot claim
45
- that same legacy session afterward.
46
-
47
- `--store-path` remains an advanced exact-path override. Even with that
48
- override, the store header must match the current owner.
49
-
50
- ## 3 Cursor safety
51
-
52
- Use `read` or `listen` to consume messages and then advance delivered/read
53
- cursors to the highest message actually returned.
54
-
55
- `send --mark-delivered --mark-read` is guarded. Before sending, the CLI reads
56
- the current member receipt. It advances to the sent sequence only when the
57
- previous cursor is exactly `sentSeq - 1`. If another message arrived in the
58
- gap, the message is still sent but `result.cursorAdvance` reports
59
- `unseen_message_gap` and the cursor is not advanced. Read the missing range,
60
- then mark it explicitly. This prevents a concurrent sender from making an
61
- unseen peer message appear read.
62
-
63
- ## 4 Encryption modes and invites
64
-
65
- | Mode | Cipher suite | Invite fragment | Content access model |
66
- | --- | --- | --- | --- |
67
- | `e2e` | `v0-shared-epoch` | `#<keyId>.<accessSecret>.<wrapSecret>` | server-blind content; clients require wrap/recovery material |
68
- | `server-encrypted` | `v1-server-managed` | `#srv.<keyId>.<accessSecret>` | server-managed encryption; server can access message content |
69
-
70
- Cockpit creates `server-encrypted` channels by default and offers `e2e` as the
71
- stricter client-managed option. Documentation must not describe
72
- `server-encrypted` as E2E.
73
-
74
- Removing a member blocks future member-auth reads, re-mint, and managed epoch
75
- key reads. It cannot erase material already fetched by that member; rotate keys
76
- when stronger post-removal secrecy is required.
77
-
78
- ## 5 Coordination boundaries
79
-
80
- ChatV3 messages wake and coordinate agents. Durable execution/review truth
81
- lives in Projectman; structured design stances and conclusions live in
82
- `aops discuss`; durable narrative handoff belongs in memory. Bind the relevant
83
- PM, Docman, Discuss, or repository reference to the room, and include the same
84
- reference in review requests/results.
85
-
86
- Room summaries expose source messages only as summarization input. Persist an
87
- abstractive digest plus refs and sequence range, never a verbatim transcript.
88
-
89
- ## 6 Membership and Cockpit
90
-
91
- Members are `active` or `removed`; standard roles are `owner`, `member`,
92
- `operator`, and `observer`. Presence is room-scoped and uses `active`, `idle`,
93
- `working`, `reviewing`, `blocked`, or `offline`.
94
-
95
- Participation is room-scoped on servers with the room-members feature: a new
96
- room starts with only its creator; joining a channel binds you to the
97
- `general` room only. You become a participant of another room by sending a
98
- message there or with `aops chat room join --session <id> --room <slug>`
99
- (presence alone does not join a roster). `room leave` detaches you (disjoin;
100
- re-join any time);
101
- `room members` lists active participants by default (`--status
102
- left|removed|all` for the rest). The room
103
- creator or a channel owner/operator can kick with `member remove --member
104
- <id> --room <slug>` and re-add with `member restore --member <id> --room
105
- <slug>`; a room-level kick is sticky (self re-join is rejected) and blocks
106
- sending, but it does not touch channel membership. Note: kicks do not revoke
107
- already-fetched crypto material — rotate the channel for that.
108
-
109
- `aops chat leave` is the channel-level self-removal path. Owners/operators
110
- may remove other
111
- active members. Cockpit must keep bearer/member tokens out of local storage
112
- and visible text, expose room guidance and cursor state, and preserve honest
113
- copy for each encryption mode.
@@ -1,223 +0,0 @@
1
- <!-- Public packaged snapshot from Docman domain user guide. Read only the relevant section; installed command --help and live schema win on drift. -->
2
-
3
- # Docman User Guide
4
-
5
- Docman keeps canonical written knowledge organized, searchable, versioned, and
6
- available to both people and AI agents. Documents live on the hosted server
7
- rather than being scattered across local files and chat sessions.
8
-
9
- ## Ownership
10
-
11
- - Projectman owns current execution plans and task status.
12
- - Agentspace owns durable working context and reusable agent assets.
13
- - Docman owns canonical written knowledge and its version history.
14
- - Operator-owned storage owns file bytes and recovery lineage.
15
-
16
- References can connect these domains without duplicating their source of truth.
17
-
18
- ## Document Structure
19
-
20
- Docman separates identity, versions, and composition:
21
-
22
- ```text
23
- group -> document -> document version
24
- -> section -> ordered page link -> page -> page version
25
- ```
26
-
27
- Snippets, embeds, and assets can be linked into pages. This structure allows a
28
- document to evolve without silently rewriting earlier published versions.
29
-
30
- ## Help-First Discovery
31
-
32
- Use the installed CLI help because command flags and available operations may
33
- change between versions:
34
-
35
- ```bash
36
- aops doc --help
37
- aops doc group --help
38
- aops doc --help
39
- aops doc version --help
40
- aops doc section --help
41
- aops doc page --help
42
- aops doc search --help
43
- aops doc answer --help
44
- aops doc mirror --help
45
- ```
46
-
47
- For raw hosted operations, inspect the schema first:
48
-
49
- ```bash
50
- aops agent tools --domain docman
51
- aops agent schema --tool docman.document.create
52
- ```
53
-
54
- Do not infer raw payload fields from sugar CLI flags.
55
-
56
- ## Create and Organize Knowledge
57
-
58
- The normal authoring flow is:
59
-
60
- 1. Create or select a document group.
61
- 2. Create the document identity and metadata.
62
- 3. Create an immutable document version.
63
- 4. Add sections for the intended reading structure.
64
- 5. Create pages and page versions.
65
- 6. Link pages to sections in explicit order.
66
- 7. Set current versions after the content is reviewed.
67
-
68
- Read the relevant help before each write. Prefer small CRUD operations over a
69
- large import when making targeted changes.
70
-
71
- ## Versioning
72
-
73
- Versions are immutable snapshots of authored content. To revise content:
74
-
75
- 1. read the current version
76
- 2. create a new version with the intended change
77
- 3. validate the new content and links
78
- 4. set the new version as current
79
-
80
- This preserves what readers and agents saw previously and makes publication
81
- history auditable.
82
-
83
- ### Review evidence for mutable drafts
84
-
85
- Before requesting review, compose or materialize the exact candidate and keep
86
- the returned version identifiers and `contentHash`. Record one complete
87
- immutable evidence reference in the Projectman review request, for example:
88
-
89
- ```text
90
- docman:page-version:<id>#contentHash=sha256:<digest>
91
- ```
92
-
93
- An approved review result repeats the exact same reference. Saving the draft
94
- again changes the content hash; the earlier result remains historical evidence
95
- for the old content and a linked re-review is required for the new hash. A
96
- mutable page-version id without its content hash is not sufficient approval
97
- evidence.
98
-
99
- ## Sections and Pages
100
-
101
- Sections provide navigation and grouping. Pages hold readable content. Ordered
102
- link records determine which pages appear in a section and in what order.
103
-
104
- Do not assume that creating a page automatically places it in a document. The
105
- page must be linked into the appropriate section. Likewise, a document version
106
- does not implicitly replace page versions.
107
-
108
- ## Exact Text Files
109
-
110
- Docman also supports UTF-8 text files such as `.cs` and `.txt`. The persisted
111
- profile is explicit:
112
-
113
- - `contentMode=structured` uses the normal section/page graph and `.md` mirror
114
- - `contentMode=text-file` has exactly one root page, no sections, and no second page
115
- - `page-version.format` describes source syntax (`text`); `fileExtension`
116
- describes the lowercase/path-safe file identity (`cs`, `txt`)
117
-
118
- Uppercase extensions are rejected instead of normalized. Do not infer or fix an
119
- extension from file content.
120
-
121
- Save an immutable source snapshot with the final operation/sugar surface:
122
-
123
- ```bash
124
- aops doc source-file save \
125
- --document-id <document-id> \
126
- --extension cs \
127
- --source ./device-control.cs \
128
- --expected-version-id <current-version-id> \
129
- --expected-content-hash <current-source-hash> \
130
- --publish-now \
131
- --apply \
132
- --json
133
- ```
134
-
135
- The operation id is `document.source-file.save`; the earlier design name
136
- `document-version.source-file.put` is not supported. Exact source materializes
137
- with `doc publish --target source`. Cockpit selects an escaped monospace
138
- renderer from the returned metadata, hides the outline, and offers wrap, copy,
139
- and download using the persisted suggested filename.
140
-
141
- ## Search and Answer
142
-
143
- Docman indexes hosted content so agents can retrieve only the material relevant
144
- to a task. Search returns matching sources. Answer operations produce a
145
- deterministic response with evidence pointing back to canonical records.
146
-
147
- When using a result:
148
-
149
- - retain the source document/page/version identifiers
150
- - reopen the exact version when accuracy matters
151
- - distinguish retrieved evidence from an agent's inference
152
- - avoid copying the answer into another canonical store without a reason
153
-
154
- ## Markdown Import
155
-
156
- Markdown is useful for initial migration or a guarded baseline. It is not a
157
- second long-term source of truth.
158
-
159
- Before import:
160
-
161
- - identify the target group and document
162
- - confirm whether the import creates or revises content
163
- - inspect baseline/version guards
164
- - preview the resulting structure when supported
165
-
166
- After import, author subsequent canonical changes through Docman and export or
167
- refresh mirrors as projections.
168
-
169
- ## Publish and Export
170
-
171
- Publication creates a readable projection of approved hosted content. Markdown
172
- export makes documents portable for distribution or repository consumption.
173
- Neither flow transfers canonical ownership away from Docman.
174
-
175
- ## Read-Only Mirrors
176
-
177
- Repositories may keep a read-only mirror for local agent context:
178
-
179
- ```bash
180
- aops doc mirror pull \
181
- --project-slug <project> \
182
- --group-uid <group> \
183
- --out-dir ./.aops/docman \
184
- --apply \
185
- --json
186
- ```
187
-
188
- Mirrors must not be hand-edited and pushed back. Make the canonical change on
189
- the hosted server, then pull the mirror again.
190
-
191
- There are two compatible mirror profiles:
192
-
193
- - doc-mirror-v2 preserves existing structured/legacy `.md` behavior
194
- - doc-mirror-v3 writes text-file source as raw `<slug>.<ext>` plus adjacent
195
- `<slug>.<ext>.docman.json`, with no injected frontmatter/comments
196
-
197
- For v3, guarded push is an explicit authoring action: it validates sidecar
198
- identity, project/scope, version/hash, extension, exact UTF-8, and NUL safety
199
- before creating a new immutable snapshot. A structured version with an explicit
200
- non-`md` extension is rejected: no structured mirror path migration contract
201
- exists yet, and silently ignoring the persisted extension would be unsafe.
202
-
203
- ## Raw Invoke Fallback
204
-
205
- If a sugar command fails because its wrapper no longer matches a strict hosted
206
- schema, stop trying guessed flag combinations. Inspect the operation contract:
207
-
208
- ```bash
209
- aops agent schema --tool docman.<operation-id>
210
- aops agent invoke --tool docman.<operation-id> --input @input.json --apply
211
- ```
212
-
213
- Use raw invocation only as a bounded workaround and record the sugar defect for
214
- repair.
215
-
216
- ## Agent Guidance
217
-
218
- - Retrieve the smallest relevant content set.
219
- - Preserve source and version references in decisions and handoffs.
220
- - Create a new version instead of mutating historical content.
221
- - Keep execution status in Projectman and session context in Agentspace.
222
- - Treat local mirrors as read-only projections.
223
- - Validate links and current-version pointers before publishing.
@@ -1,233 +0,0 @@
1
- <!-- Public packaged snapshot from Projectman domain user guide. Read only the relevant section; installed command --help and live schema win on drift. -->
2
-
3
- # Projectman User Guide
4
-
5
- This guide explains how operators and AI agents use Projectman through the
6
- hosted `aops pm` surface. Projectman is the source of truth for current
7
- planning and execution status.
8
-
9
- ## Mental Model
10
-
11
- ```text
12
- board
13
- -> kanban task
14
- -> sprint
15
- -> phase
16
- -> microtask
17
- ```
18
-
19
- - The board makes delivery visible.
20
- - The kanban task represents the work item.
21
- - The sprint is the task-scoped implementation plan.
22
- - Phases organize the plan.
23
- - Microtasks track the smallest verifiable units of work.
24
-
25
- Durable session context belongs in Agentspace memory. Canonical long-form
26
- knowledge belongs in Docman. Projectman records what is being delivered, its
27
- state, its evidence, and its review lineage.
28
-
29
- ## Help-First Discovery
30
-
31
- Read the exact command surface before writing:
32
-
33
- ```bash
34
- aops pm --help
35
- aops pm board --help
36
- aops pm ktask --help
37
- aops pm sprint --help
38
- aops pm utask --help
39
- aops pm issue --help
40
- aops pm feedback --help
41
- aops pm review-request --help
42
- aops pm handoff --help
43
- ```
44
-
45
- Use sugar commands for routine work. For raw operation invocation, inspect the
46
- hosted schema first:
47
-
48
- ```bash
49
- aops agent tools --domain projectman
50
- aops agent schema --tool projectman.kanban-task.create
51
- ```
52
-
53
- ## Select the Project
54
-
55
- Projectman writes are project-scoped. Bind the repository or pass the exact
56
- project selector required by the installed CLI. Confirm the active project
57
- before mutating a board, task, or sprint.
58
-
59
- ## Boards
60
-
61
- Create a board when the project does not already have an appropriate delivery
62
- surface:
63
-
64
- ```bash
65
- aops pm board create --name "Delivery" --apply
66
- aops pm board list --json
67
- ```
68
-
69
- A board contains ordered columns. Board lifecycle actions can initialize or
70
- resume a working board, but closing a board is an operator decision.
71
-
72
- ## Kanban Tasks
73
-
74
- Create a task before implementation starts:
75
-
76
- ```bash
77
- aops pm ktask create \
78
- --board delivery \
79
- --column Todo \
80
- --title "Implement the selected capability" \
81
- --apply
82
- ```
83
-
84
- The task is the visible delivery item. Keep its state honest: moving a task to
85
- Done should follow implementation and validation, not intention.
86
-
87
- Useful reads:
88
-
89
- ```bash
90
- aops pm ktask list --board delivery --json
91
- aops pm ktask get --task <task-id> --json
92
- ```
93
-
94
- ## Sprints and Implementation Plans
95
-
96
- Create a sprint under the kanban task. State what will change, why it matters,
97
- and how completion will be verified:
98
-
99
- ```bash
100
- aops pm sprint create \
101
- --task <task-id> \
102
- --name "Capability implementation" \
103
- --goal "NE: deliver the capability; NICIN: make the workflow usable; DONE-WHEN: tests and live verification pass" \
104
- --apply
105
- ```
106
-
107
- The `aops plan` surface is a facade over this sprint plan. It does not create
108
- a second plan store.
109
-
110
- Use microtasks for bounded, verifiable steps. Update each item individually so
111
- the sprint remains a trustworthy execution record:
112
-
113
- ```bash
114
- aops pm utask create --sprint <sprint-id> --title "Implement" --apply
115
- aops pm utask create --sprint <sprint-id> --title "Validate" --apply
116
- aops pm utask update --id <microtask-id> --status doing --apply
117
- aops pm utask update --id <microtask-id> --status completed --apply
118
- ```
119
-
120
- Inspect `aops pm utask --help` for the exact phase and ordering flags in the
121
- installed version.
122
-
123
- ## Issues and Feedback
124
-
125
- Use issues for defects, blockers, or follow-up work that must remain visible.
126
- Use feedback for operator observations and requested improvements. Preserve the
127
- link to the task, sprint, or review that produced the item.
128
-
129
- ```bash
130
- aops pm issue --help
131
- aops pm feedback --help
132
- ```
133
-
134
- Feedback can become tracked work without losing its origin. Do not copy the
135
- same concern into unrelated records without retaining lineage.
136
-
137
- ## Review Requests
138
-
139
- Review requests coordinate synchronous or asynchronous review between agents or
140
- operators. The implementation remains attached to its Projectman context, and
141
- review results are appended rather than overwritten.
142
-
143
- ```bash
144
- aops pm review-request --help
145
- ```
146
-
147
- A reviewer can approve, comment, or request changes. When changes are requested:
148
-
149
- 1. keep the original result intact
150
- 2. update the implementation task and sprint
151
- 3. record the new evidence
152
- 4. create or continue the linked re-review flow
153
-
154
- When the reviewed candidate is a mutable Docman draft, the review request must
155
- carry the exact composed evidence reference: document/page version ids together
156
- with `contentHash=sha256:<digest>`. An approved result repeats that full
157
- reference exactly. If the draft is edited, its hash changes and the previous
158
- approval no longer covers the new content; keep the old result and open a
159
- linked re-review.
160
-
161
- Chat can wake or coordinate participants, but Projectman remains the review and
162
- execution source of truth.
163
-
164
- ## Handoffs
165
-
166
- A handoff should let another agent continue without reconstructing the entire
167
- session. Include:
168
-
169
- - what changed
170
- - what was validated and with which evidence
171
- - what remains open
172
- - the exact next action
173
- - relevant task, sprint, issue, review, document, or artifact references
174
-
175
- Use `aops pm handoff --help` for the installed command shape. Durable
176
- narrative context may also be written to Agentspace memory, but do not duplicate
177
- the active execution status in a competing store.
178
-
179
- ## Reading Local Presentation Views
180
-
181
- After synchronizing the read-only cache, Projectman can be inspected through
182
- local views without mutating hosted state:
183
-
184
- ```bash
185
- aops view dashboard --style agent
186
- aops view board <selector>
187
- aops view task <selector>
188
- aops view sprint <selector>
189
- aops view digest --task <selector>
190
- ```
191
-
192
- Views do not call the server, synchronize data, or write decisions. Use normal
193
- `pm`, `mem`, or `discuss` commands for durable changes.
194
-
195
- ## Status Discipline
196
-
197
- - `todo`: planned but not started
198
- - `doing`: active work
199
- - `completed`: implemented and honestly validated
200
- - blocked or cancelled states: use only when supported by the current command
201
- and record the reason
202
-
203
- The `pm utask` and `pm sprint` sugar write boundaries accept `done` and
204
- `complete` as human-facing aliases, but always send and report the canonical
205
- domain status `completed`. Raw `agent invoke` payloads do not use those aliases:
206
- inspect the live schema and send `completed`. For kanban tasks, `Done` is a
207
- board-column label rather than a microtask status. Task create/move sugar
208
- resolves a name, slug, placement UUID, or legacy reusable column UUID to the
209
- selected board's canonical board-column placement UUID.
210
-
211
- `aops pm status audit` is read-only and also checks accepted review evidence.
212
- It reports `review_scope_dangling` once per review request when a referenced
213
- sprint phase or microtask no longer exists. Repair only when the logical mapping
214
- is deterministic; otherwise preserve the original scope and record an explicit
215
- historical disposition instead of inventing a replacement identity.
216
-
217
- Do not close boards, rooms, or project-level work merely because one agent turn
218
- ended. Ordinary closeout writes current status and a handoff, leaving shared
219
- surfaces open for the operator.
220
-
221
- ## Raw Invoke Fallback
222
-
223
- If a sugar wrapper fails because its payload no longer matches a strict hosted
224
- schema, stop guessing flags. Inspect the raw contract and invoke the operation
225
- directly only when necessary:
226
-
227
- ```bash
228
- aops agent schema --tool projectman.<operation-id>
229
- aops agent invoke --tool projectman.<operation-id> --input @input.json --apply
230
- ```
231
-
232
- Record the sugar defect separately so the workaround does not become the normal
233
- workflow.