@aopslabs/aops 0.3.3 → 0.3.5

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 (38) hide show
  1. package/README.md +4 -3
  2. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/SKILL.md +49 -0
  3. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/references/agentspace/SKILL.md +78 -0
  4. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/references/aops-cli-core/SKILL.md +110 -0
  5. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/references/chatv3/SKILL.md +49 -0
  6. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/references/collaborative-work/SKILL.md +85 -0
  7. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/references/discuss/SKILL.md +66 -0
  8. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/references/docman/SKILL.md +69 -0
  9. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/references/hosted-chat/SKILL.md +64 -0
  10. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/references/mission/SKILL.md +54 -0
  11. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/references/projectman/SKILL.md +86 -0
  12. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/references/sys/SKILL.md +36 -0
  13. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/references/view/SKILL.md +58 -0
  14. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/references/working-disciplines/SKILL.md +69 -0
  15. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/user-guides/agent-assets.md +81 -0
  16. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/user-guides/agentspace.md +1098 -0
  17. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/user-guides/aops-cli.md +1106 -0
  18. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/user-guides/aops-system.md +63 -0
  19. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/user-guides/chatv3.md +113 -0
  20. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/user-guides/docman.md +162 -0
  21. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/user-guides/projectman.md +212 -0
  22. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/user-guides/sys.md +94 -0
  23. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/files/user-guides/working-disciplines.md +588 -0
  24. package/agent-assets-release/agent-assets/core/8b06775d96e37f8aef535673b8b855c11f29042f3c70ec4f273b6df04dbe824a/manifest.json +127 -0
  25. package/agent-assets-release/agent-assets/gateway/aops/SKILL.md +14 -0
  26. package/agent-assets-release/agent-assets/inventory.json +29 -0
  27. package/agent-assets-release/agent-assets/projection.json +8 -0
  28. package/agent-assets-release/agent-assets-release.json +181 -0
  29. package/agent-assets-release/agent-assets-release.sigstore.json +62 -0
  30. package/dist/lib/agent-assets/envelope.js +2 -0
  31. package/dist/lib/agent-assets/release-input.js +14 -2
  32. package/dist/lib/community-release-verifier.js +3 -2
  33. package/dist/lib/setup-agent-assets-release.js +8 -2
  34. package/dist/lib/setup-docker-server.js +2 -2
  35. package/dist/lib/tui-launcher.js +1 -0
  36. package/native/tui/darwin-arm64/aops-tui +0 -0
  37. package/native/tui/win32-x64/aops-tui.exe +0 -0
  38. package/package.json +4 -4
@@ -0,0 +1,1106 @@
1
+ <!-- Public packaged snapshot from canonical slug:aops CLI guidance. Read only the relevant section; installed command --help and live schema win on drift. -->
2
+
3
+ # AOPS CLI User Guide
4
+
5
+ ## 1 Temel model
6
+
7
+ ### 1.1 Overview
8
+
9
+ ## 2 En kisa kurulum akisi
10
+
11
+ ### 2.1 TUI-guided npm installation
12
+
13
+ #### 2.1.1 Overview
14
+
15
+ ```bash
16
+ aops
17
+ aops server status --json
18
+ aops host health
19
+ ```
20
+
21
+ `setup init` can connect to an existing local/remote PostgreSQL, provision an
22
+ AOPS-owned PostgreSQL container, create a dedicated AOPS role/database in a
23
+ supported local PostgreSQL, or configure this CLI for an existing AOPS Server
24
+ through path `4`. Local-server paths verify migrations and start the npm
25
+ server. Path `4` does not install or operate local PostgreSQL or server
26
+ processes. Use the Rust TUI private fields for operator-led setup, or documented
27
+ private environment/configuration inputs for direct CLI automation.
28
+
29
+ Parameterless `aops` opens the bundled Rust TUI without changing either
30
+ service. Argument-bearing invocations retain the existing CLI behavior. AOPS
31
+ Server and Cockpit have separate start, stop, restart, status, health, and log
32
+ commands.
33
+
34
+ For visible foreground server logs, run `launchers/aops-server.sh` from the
35
+ installed CLI package on macOS/Linux or `launchers/aops-server.ps1` on Windows.
36
+ The script directly invokes the package-relative Node launcher; Ctrl+C or
37
+ closing that terminal stops the foreground server. The matching
38
+ `aops-cockpit.sh`/`.ps1` starts only Cockpit in its normal independent
39
+ background mode. These scripts accept `--instance` and `--data-root`, not
40
+ database credentials.
41
+
42
+ ### 2.2 Browser-approved auth
43
+
44
+ #### 2.2.1 Overview
45
+
46
+ ```bash
47
+ aops setup init
48
+ aops setup first-admin --target <target-name>
49
+ aops auth login --target <target-name>
50
+ aops auth status --target <target-name>
51
+ ```
52
+
53
+ ## 3 `init`
54
+
55
+ ### 3.1 Overview
56
+
57
+ The default local-server contract is `trusted-local` on
58
+ `127.0.0.1:5900`. It never trusts a LAN or Tailscale interface. AOPS Server on
59
+ `5900` and Cockpit on `5922` are separate services; neither redirects to the
60
+ other.
61
+
62
+ Use setup path `4` for an existing server. A scripted flow first previews the
63
+ exact endpoint, then applies the named target:
64
+
65
+ ```bash
66
+ aops setup init --path 4 \
67
+ --api-base-url https://aops.example.com \
68
+ --target-name remote \
69
+ --target-auth-provider authv2-jwt-session \
70
+ --target-tls-policy system-ca \
71
+ --yes --json
72
+
73
+ aops setup init --path 4 \
74
+ --api-base-url https://aops.example.com \
75
+ --target-name remote \
76
+ --target-auth-provider authv2-jwt-session \
77
+ --target-tls-policy system-ca \
78
+ --apply --yes --json
79
+ ```
80
+
81
+ A non-loopback server is an explicit `authenticated-network` +
82
+ `authv2-jwt-session` deployment. External targets normally require HTTPS and
83
+ the operating system CA store. The only plain-HTTP exception is a literal
84
+ Tailscale IP in `100.64.0.0/10` or `fd7a:115c:a1e0::/48`, paired with
85
+ `authv2-jwt-session` and `tailscale-http`. MagicDNS hostnames and ordinary LAN
86
+ IPs do not qualify.
87
+
88
+ For explicit add/check/select control:
89
+
90
+ ```bash
91
+ aops target add --name remote --api-base-url https://aops.example.com \
92
+ --auth-provider authv2-jwt-session --tls-policy system-ca --apply
93
+ aops target doctor remote --json
94
+ aops target use remote --apply
95
+ ```
96
+
97
+ ## 4 `setup server-env`
98
+
99
+ ### 4.1 Overview
100
+
101
+ `aops setup server-env` owns the private PostgreSQL connection used by local
102
+ server paths. The TUI may pass the URL through a private child-process
103
+ environment. Direct CLI automation must use `AOPS_PG_URL` or an existing
104
+ owner-only environment file; never put a PostgreSQL URL or password in argv,
105
+ chat, or committed files.
106
+
107
+ The default provider is `trusted-local`. Before an explicit non-loopback host,
108
+ generate the complete AuthV2 runtime closure in the same owner-only file:
109
+
110
+ ```bash
111
+ AOPS_PG_URL='<private-url>' aops setup server-env \
112
+ --auth authv2-jwt-session --yes --json
113
+ ```
114
+
115
+ The command prints only a secret-free summary. It preserves an existing
116
+ provider and secrets when rerun without `--auth`.
117
+
118
+ ## 5 `setup first-admin`
119
+
120
+ ### 5.1 Overview
121
+
122
+ Use `aops setup first-admin --target <target-name>` only while AuthV2 reports
123
+ that no first admin exists. The TUI owns operator input. Direct CLI automation
124
+ may use `AOPS_AUTH_EMAIL`, `AOPS_AUTH_PASSWORD`, and `AOPS_ADMIN_KEY` in its
125
+ private process environment. Secret command arguments are refused.
126
+
127
+ ## 6 User yonetimi
128
+
129
+ ### 6.1 Overview
130
+
131
+ First-admin is a one-time bootstrap, not a general user-management bypass.
132
+ After bootstrap, authenticate normally and use the AuthV2-authorized admin
133
+ surface exposed by the installed server. Check the live CLI help and agent-tool
134
+ schema before mutations.
135
+
136
+ ## 7 Login ve tokenlar
137
+
138
+ ### 7.1 Overview
139
+
140
+ ```bash
141
+ aops auth login --target remote
142
+ aops auth status --target remote --json
143
+ aops auth logout --target remote
144
+ ```
145
+
146
+ Login stores encrypted credentials bound to the selected target endpoint.
147
+ Normal logout revokes the remote session before clearing the local copy. If the
148
+ server is unavailable and the explicit intent is local cleanup, use
149
+ `aops auth logout --target remote --local-only`. Passwords and tokens belong
150
+ only in TUI private fields, secure stores, browser-approved flows, or documented
151
+ private environment variables, never argv.
152
+
153
+ ## 8 Diagnostik
154
+
155
+ ### 8.1 Overview
156
+
157
+ ```bash
158
+ aops target show remote --json
159
+ aops target doctor remote --json
160
+ aops auth status --target remote --json
161
+ ```
162
+
163
+ `target doctor` does not mutate the remote endpoint or rotate session tokens.
164
+ Its JSON reports `networkMutationFree: true`; loading an older local target
165
+ configuration may still apply the CLI's safe credential-format migration, so
166
+ the overall `mutationFree` field is false. `auth status` additionally verifies
167
+ the current authenticated principal. Always diagnose the same named target
168
+ that setup checked; an unrelated active target is not proof that the requested
169
+ endpoint is ready.
170
+
171
+ ## 9 Owner modeli ve domain secimi
172
+
173
+ ### 9.1 Overview
174
+
175
+ ## 10 Projectman sugar komutlari
176
+
177
+ ### 10.1 Overview
178
+
179
+ ## 12 `.aops` local cache & sync
180
+
181
+ ### 12.1 Overview
182
+
183
+ #### 12.1.1 Project registry, `authoringMode`, and `localRoot`
184
+
185
+ Multi-project repos use `.aops/aops.config.json` as a project registry. The
186
+ hosted server is the source of truth for project identity and for all
187
+ Projectman/Agentspace records; the repo registry only records which local
188
+ directory mirrors a hosted project as a read-only cache:
189
+
190
+ ```bash
191
+ aops project link --slug aops --mode local --local-root .aops/projects/aops --apply --json
192
+ aops project link --slug demo --mode hosted-only --apply --json
193
+ aops project links list --json
194
+ aops project migrate-local-root --project-slug aops --local-root .aops/projects/aops --dry-run --json
195
+ aops project migrate-local-root --project-slug aops --local-root .aops/projects/aops --apply --confirm --json
196
+ ```
197
+
198
+ Contract:
199
+
200
+ 1. `project link/links` manages only the repo project registry after verifying
201
+ the hosted project exists and is not archived/deleted.
202
+ 2. `authoringMode: local` means a local cache directory is materialized under
203
+ `localRoot` (normally `.aops/projects/<slug>`). Create/write/read still go to
204
+ the hosted server; `localRoot` is a read-only mirror refreshed by
205
+ `aops sync pull` (and `aops doc mirror pull` for docs), not a
206
+ repo-first source tree.
207
+ 3. `authoringMode: hosted-only` means no local cache directory is materialized.
208
+ Reads and writes both use the hosted gateway directly.
209
+ 4. `migrate-local-root` is repo-local cache relocation. Always run `--dry-run`;
210
+ the real move requires `--apply --confirm` because old flat roots are
211
+ archived.
212
+ 5. hosted-only-vs-local is only a cache-presence decision: local mode keeps a
213
+ refreshable read-only mirror on disk, hosted-only mode reads straight from
214
+ the server. Neither makes the repo the source of truth.
215
+
216
+ #### 12.1.2 Partitioned sync
217
+
218
+ Project-partitioned `sync pull` refreshes the local cache using the same
219
+ project registry selector contract. There is no `sync push`: the hosted server
220
+ is canonical, so the cache is only ever pulled, never pushed back.
221
+
222
+ ```bash
223
+ aops sync status --project-slug aops --json
224
+ aops sync pull --project-slug aops --apply --json
225
+ aops sync status --all-projects --json
226
+ aops sync pull --all-projects --apply --json
227
+ ```
228
+
229
+ Rules:
230
+
231
+ 1. `sync --project-slug/--all-projects` refreshes the read-only cache of hosted
232
+ Projectman and Agentspace records. It is separate from
233
+ `--hosted-project-slug`, which refreshes the read-only hosted prompt/skill
234
+ mirrors.
235
+ 2. `--project-slug` resolves the linked project, then refreshes that project's
236
+ `localRoot` cache when `authoringMode` is `local`.
237
+ 3. `--all-projects` runs once per repo-config local project and reports
238
+ project-level results without fail-fast. Hosted-only links have no cache to
239
+ refresh on this path; local links without a usable `localRoot` are
240
+ reported/skipped rather than treated as another project's cache.
241
+ 4. Because the server is canonical, conflict/drift resolution is not part of the
242
+ pull: a refresh simply overwrites the local cache with current server state.
243
+
244
+ #### 12.1.3 Archive lifecycle
245
+
246
+ `aops archive` prepares hosted Projectman graph cleanup from a local bundle.
247
+ It is deliberately a CLI composition over existing hosted Projectman surfaces,
248
+ not a new hosted archive domain.
249
+
250
+ ```bash
251
+ aops archive create --project-slug aops --apply --json
252
+ aops archive verify --manifest .aops/archive/aops/<ts>/manifest.json --apply --json
253
+ aops archive delete --manifest .aops/archive/aops/<ts>/manifest.json --json
254
+ aops archive delete --manifest .aops/archive/aops/<ts>/manifest.json --apply --confirm --json
255
+ aops archive decommission-check --manifest .aops/archive/aops/<ts>/manifest.json --json
256
+ ```
257
+
258
+ Rules:
259
+
260
+ 1. `archive create` downloads the hosted PM graph into
261
+ `.aops/archive/<slug>/<timestamp>` and records `pendingDomains`; it does not
262
+ delete anything.
263
+ 2. `archive verify --apply` re-fetches hosted PM data, compares counts and
264
+ checksums, then persists `verification.status: passed` into the manifest.
265
+ 3. `archive delete` without `--apply` is a preview. Destructive delete requires
266
+ a verified manifest plus `--apply --confirm`.
267
+ 4. Delete order is children-before-parents so review requests, feedback,
268
+ issues, microtasks, sprints, tasks, columns, and boards are removed in a
269
+ dependency-safe sequence. The manifest records per-action deletion state for
270
+ resumability.
271
+ 5. `archive decommission-check` permits full project/scope decommission only
272
+ when the manifest is verification-passed, `decommissionSafe` is true, and
273
+ `pendingDomains` is empty. Current bundles can still list Agentspace memory,
274
+ discussions, chat, and hosted prompt/skill/resource/artifact domains as
275
+ pending until those owners have their own archive coverage.
276
+
277
+ #### 12.1.4 Agent-tool catalog verification
278
+
279
+ No new hosted `archive.*` tool is expected for this slice. The CLI verifies or
280
+ composes existing hosted surfaces:
281
+
282
+ 1. `project link` verifies hosted projects through existing
283
+ `agentspace.project.*` tools, then writes the repo registry.
284
+ 2. hosted-only PM direct commands use existing `projectman.*` tools.
285
+ 3. archive cleanup composes existing Projectman read/delete tools and records a
286
+ local manifest.
287
+
288
+ Spot-check the catalog before writing raw hosted payloads:
289
+
290
+ ```bash
291
+ aops agent tools --domain agentspace --q project --summary --json
292
+ aops agent tools --domain projectman --q delete --summary --json
293
+ ```
294
+
295
+ ### 12.2 AOPS markdown view sugar
296
+
297
+ #### 12.2.1 Overview
298
+
299
+ `view` komut ailesi read-only presentation layer'dir. Varsayilan komutlar
300
+ read-only local cache `.aops/**` dosyalarini okur (canonical truth hosted
301
+ server'dadir; cache `sync pull` ile tazelenir). Explicit hosted komutlar
302
+ (`hosted-projects`, `hosted-inventory`) hosted list API'larini sadece okuma
303
+ amaciyla cagirir; sync yapmaz, cache/index yazmaz ve domain mutation
304
+ calistirmaz. Varsayilan cikti agent/TUI uyumlu Markdown'dir; `--json` ayni
305
+ read-model'i stabil envelope olarak dondurur.
306
+
307
+ Komut seti:
308
+
309
+ ```bash
310
+ aops view dashboard --style agent
311
+ aops view projects
312
+ aops view hosted-projects --style compact
313
+ aops view hosted-inventory --hosted-project aops --style compact
314
+ aops view boards
315
+ aops view board <selector>
316
+ aops view tasks
317
+ aops view task <selector>
318
+ aops view sprints
319
+ aops view sprint <selector> --max-items 20
320
+ aops view issues
321
+ aops view feedback
322
+ aops view memory
323
+ aops view resume
324
+ aops view discussions
325
+ aops view discussion <selector>
326
+ aops view experience
327
+ aops view skills
328
+ aops view prompts
329
+ aops view docs
330
+ aops view doc <selector>
331
+ aops view doc-page <doc-selector>#<heading-selector>
332
+ aops view digest --task <selector> --depth deep --max-bytes 32768
333
+ ```
334
+
335
+ Selector cozumu (`<selector>` argumanini bekleyen tum komutlar):
336
+
337
+ ```bash
338
+ # full UUID
339
+ aops view task 0ea46e18-d717-454d-8244-90ad388c4a80
340
+
341
+ # 8+ karakter id prefix (uuid'nin ilk 8 karakteri veya dosya adindaki -<8>.md kismi)
342
+ aops view task 0ea46e18
343
+
344
+ # slug
345
+ aops view board ops
346
+
347
+ # exact title/name
348
+ aops view sprint "AOPS CLI view follow-up"
349
+
350
+ # doc-page composite selector (document#heading)
351
+ aops view doc-page tooling-cli-host-plugin-system#runtime-config
352
+ ```
353
+
354
+ Ambiguous selector fail eder ve aday tablo/JSON dondurur. `<selector>`
355
+ yoksa veya birden fazla esleserse aday listesinden dogru hedefi se cebilirsin.
356
+
357
+ Tum view komutlarinda kullanilabilen ortak flagler:
358
+
359
+ | Flag | Anlam | Default |
360
+ |------|-------|---------|
361
+ | `--json` | Stabil envelope JSON dondurur (markdown yerine) | false |
362
+ | `--style agent\|compact\|wide` | Markdown yogunluk/format profili | `agent` (ASCII, emoji-free, link-mode none) |
363
+ | `--link-mode none\|relative\|absolute` | Path linki davranisi | `none` |
364
+ | `--max-items <n>` | Liste/tablo basina maksimum satir | 25 |
365
+ | `--max-bytes <n>` | Toplam markdown budget; 32768 hard cap | 32768 |
366
+ | `--project-id\|--project-name\|--project-slug <v>` | Repo config'inde aktif olmayan baska bir projeyi sec | aktif proje |
367
+
368
+ Hosted view komutlari icin ek flagler:
369
+
370
+ | Flag | Anlam | Default |
371
+ |------|-------|---------|
372
+ | `--api-base-url <url>` | Hosted API base URL | env/default host |
373
+ | `--access-token <token>` | Hosted API access token | auth config/env |
374
+ | `--refresh-token <token>` | Hosted API refresh token | auth config/env |
375
+ | `--timeout-ms <ms>` | Hosted request timeout | client default |
376
+ | `--tenant-id <id>` | Agent gateway tenant header | - |
377
+ | `--locale`, `--fallback-locale` | Agent gateway locale header'lari | - |
378
+ | `--scope-id <id>` | Hosted scope override | repo/project context |
379
+ | `--scope-resolution explicit\|cascade` | Hosted asset scope cozumu | `explicit` for inventory |
380
+ | `view hosted-inventory --hosted-project <selector>` | Hosted project id, slug, name veya 8+ char prefix ile daralt | tum fetched projects |
381
+
382
+ Footer kontrati (her view ciktisinin altinda):
383
+
384
+ ```text
385
+ - source: <relative-path-or-directory>
386
+ - local-state: local|dirty|synced|conflict|deleted|-
387
+ - updatedAt: <iso>
388
+ - lastPushedAt: <iso?>
389
+ - lastPulledAt: <iso?>
390
+ - truncated: true|false
391
+ ```
392
+
393
+ `local-state` semantigi `effectiveLocalState` ile hesaplanir: `synced`
394
+ sayilan bir kayit `baseHash` ile mevcut icerik arasinda drift tespit
395
+ edilirse `dirty` olarak isaretlenir. Ham `syncState` field'ina degil bu
396
+ hesaplanan degere guvenmek gerekir.
397
+
398
+ `view digest` icin pratik kararlar:
399
+
400
+ 1. shallow default `--depth shallow` agent context icin yeterli ozetdir
401
+ 2. detayli inspection icin `--depth deep`, ama `--max-bytes` budget'ini
402
+ asagi cek: ornekteki gibi tek sprint deep digest ~8KB civarinda kalir
403
+ 3. truncation footer `truncated: true` raporlarsa `--max-items` veya daha
404
+ dar bir selector ile yeniden cek
405
+
406
+ Tipik kullanim senaryolari:
407
+
408
+ ```bash
409
+ # Agent kickoff: tek komutla aktif pencereyi oku
410
+ aops view dashboard --style agent
411
+
412
+ # Sprint resume: phase/microtask + linked memory + discussions
413
+ aops view sprint <sprint-id>
414
+
415
+ # Codex/Claude desktop'a context pack pipe et
416
+ aops view digest --sprint <sprint-id> --depth deep | pbcopy
417
+
418
+ # Terminal'de mdcat/glow ile renderli okuma
419
+ aops view board <board-slug> | glow -p
420
+
421
+ # JSON ile script/automation
422
+ aops view tasks --json | jq '.result.data[] | select(.localState == "dirty") | .label'
423
+
424
+ # Hosted project inventory: ustte proje tablosu, altta docs/skills/prompts/resources gruplari
425
+ aops view hosted-inventory --hosted-project aops --style compact
426
+
427
+ # Selector ambiguity'sini debug et
428
+ aops view task Duplicate --json | jq '.error.candidates'
429
+ ```
430
+
431
+ Session-state nudge:
432
+
433
+ 1. `view dashboard --style agent` read-only olarak `.aops/agentspace/session-state/**` dosyalarini tarayip `Session State Nudges` bolumu gosterebilir.
434
+ 2. Bu bolum memory yazmaz; agent'a sadece "checkpoint gecikti", "summary dus" veya benzeri runtime hijyen sinyali verir.
435
+ 3. Nudge'a cevap yazmak gerekiyorsa owner command `aops mem checkpoint` veya `aops mem summary` olmalidir.
436
+
437
+ Filter flag'leri (her listeleme komutu icin):
438
+
439
+ ```bash
440
+ # Memory: durability/kind/subject/id
441
+ aops view memory --durability sticky --kind rule
442
+ aops view memory --subject sprint --id <sprint-id>
443
+ aops view memory --subject task --id <task-id-prefix>
444
+ aops view resume --subject project
445
+
446
+ # Projectman tasks: board + status (column adi cozulur)
447
+ aops view tasks --board ops --status Done
448
+ aops view tasks --board engineering --status Doing
449
+
450
+ # Projectman issues: status + severity + board/sprint/task
451
+ aops view issues --status open
452
+ aops view issues --severity high --status resolved
453
+ aops view issues --board ops --sprint <sprint-id>
454
+
455
+ # Projectman feedback: status + board/sprint/task
456
+ aops view feedback --status open --board ops
457
+
458
+ # Projectman sprints: board + status
459
+ aops view sprints --board ops --status doing
460
+
461
+ # Discussions: status + participant
462
+ aops view discussions --status concluding
463
+ aops view discussions --agent claude
464
+
465
+ # Experience: type + area
466
+ aops view experience --type technique
467
+ aops view experience --area memory
468
+ ```
469
+
470
+ Filter sozlesmesi:
471
+
472
+ | Komut | Filter flag'leri | Anlam |
473
+ |-------|------------------|-------|
474
+ | `view memory`, `view resume` | `--durability`, `--kind`, `--subject`, `--id` | durability=short\|durable\|sticky; kind=kickoff\|resume\|closeout\|note\|rule\|...; subject=project\|board\|sprint\|task\|ktask\|utask\|issue\|feedback; id=full UUID veya 8+ char prefix |
475
+ | `view tasks` | `--board`, `--status` | board=slug/name/id; status=column adi veya slug (Done, Todo, Doing, Backlog) |
476
+ | `view issues`, `view feedback` | `--status`, `--severity`, `--board`, `--sprint`, `--task` | status=frontmatter status; severity=low\|medium\|high\|critical; board/sprint/task=ilgili subject relation |
477
+ | `view sprints` | `--board`, `--status` | board=slug/name; status=todo\|doing\|completed\|paused\|... |
478
+ | `view discussions` | `--status`, `--agent` | status=active\|concluding\|concluded\|abandoned; agent=participants icindeki agent id |
479
+ | `view experience` | `--type`, `--area` | type=technique\|tool\|script\|problem-solution\|idea; area=areas[] tag |
480
+
481
+ Birden fazla filter AND mantigi ile uygulanir. Sonuc bos ise empty table fallback (`No matching records.`) gosterilir.
482
+
483
+ Owner boundary kurallari (`view` icin):
484
+
485
+ 1. Cache-reading view komutlari (`dashboard`, `boards`, `tasks`, `issues`,
486
+ `feedback`, `memory`, `skills`, `prompts`, `docs`, `digest`, ...) sadece
487
+ read-only local cache `.aops/**/*.md` dosyalarini okur; hosted tool, sync,
488
+ cache write, mutation veya `~/.aops` yazimi yapmaz.
489
+ 2. Hosted view komutlari (`hosted-projects`, `hosted-inventory`) sadece
490
+ hosted read/list tool'larini cagirir: `agentspace.project.list-projects`,
491
+ `docman.document.list`, `agentspace.skill.list-skills`,
492
+ `agentspace.prompt.list-prompts`, `agentspace.resource.list-resources`.
493
+ Mutation, sync, mirror refresh veya cache write yapmaz.
494
+ 3. Cross-domain join'ler mevcut frontmatter/API alanlarini (`subjectType`,
495
+ `subjectId`, `boardId`, `sprintLocalId`, `pmContext.taskId` vs.) takip
496
+ eder; yeni domain semantigi icat etmez.
497
+ 4. `view skills` ve `view prompts` `.aops/hosted/**` mirror dosyalarindan
498
+ okur; canonical truth hosted Docman/server'da kalir, view onu
499
+ yenilemez.
500
+ 5. `view docs` ve `view doc-page` `.aops/docman/**` mirror'undan okur;
501
+ read-only mirror banner'i ve `pulledAt` footer'da gozukur.
502
+ 6. Projectman planning view'lari cache uzerinden okur; PM tablo ihtiyaci
503
+ icin `view boards`, `view tasks`, `view sprints`, `view issues` ve
504
+ `view feedback` kullanilir.
505
+
506
+ V2'ye birakilan yuzeyler:
507
+
508
+ 1. `view relations <selector>` cross-domain RelationResolver
509
+ 2. `view skill/prompt/experience <selector>` detail inspect (V1 list-only)
510
+ 3. `aops ls`, `aops show` aliaslari
511
+ 4. `--out <path>` generated artifact writer (V1 stdout default)
512
+ 5. hosted relation graph icin daha derin cross-domain edge resolver
513
+ 6. performans gerekirse cache/index
514
+
515
+ Kritik kurallar:
516
+ - Server wins: hosted server canonical'dir; `sync pull` server state'ini read-only local cache'e yansitir. `sync push` yoktur (S4'te kaldirildi) -- repo source-of-truth degildir.
517
+ - UI/server tarafinda yapilan degisiklikler bir sonraki `sync pull` ile cache'e gelir; cache uzerinde yapilan elle degisiklikler canonical degildir ve tazelemede ezilir.
518
+ - Derived view'lar cache uzerinden hesaplanir; cache'i guncel tutmak icin `sync pull` calistirilir.
519
+ - Reusable `prompt` ve hosted `skill` shell/version truth'u server/DB tarafinda kalir; `sync pull` bunlari sadece `.aops/hosted/**` altina read-only mirror olarak ceker.
520
+ - Ayni repo isterse baska bir projenin hosted prompt/skill mirror'unu da `--hosted-project-id|name|slug` ile cekebilir.
521
+ - `sync pull` project-level bir server -> cache refresh komutudur; hosted prompt/skill mirror refresh icin `--hosted-project-id|name|slug` kullan.
522
+
523
+ Baslangic akisi:
524
+
525
+ 1. Yeni repo icin `aops init`
526
+ 2. Hosted state'in read-only cache'ini tazelemek icin `aops sync pull --project-slug aops --apply --json`
527
+ 3. Cache context'i icin `.aops/projectman/views/index.md` ve `.aops/agentspace/memory/index.md` oku
528
+ 4. Reusable prompt/skill context gerekiyorsa `.aops/hosted/index.md`, `.aops/hosted/skills/index.md`, ve `.aops/hosted/prompts/index.md` oku
529
+ 5. PM authoring icin `aops pm ...`, memory icin `aops mem ...`, agent tecrubesi icin `aops exp ...`, agent tartisma workspace'i icin `aops discuss ...` kullan (hepsi dogrudan hosted server'a yazar)
530
+
531
+ Kapanis akisi:
532
+
533
+ 1. PM/memory kayitlarini owner komutlariyla (`aops pm ...`, `aops mem ...`) hosted server uzerinde guncelle
534
+ 2. Cache'i guncel gormek istersen `aops sync pull --apply --json` calistir
535
+
536
+ Memory/handoff ayrimi:
537
+ - `--write-memory`: ana PM mutation basarili olduktan sonra opt-in memory side-effect yazar; AI varsayilani short memory olarak kalmalidir
538
+ - `pm handoff write`: mutation disinda kickoff/resume/decision/blocker/closeout/rule memory kaydi yazar
539
+ - `pm handoff resume`: mevcut tracked PM subject icin curated resume pack okur; subject record yaratmaz
540
+ - durable `note` ve sticky `rule` operator/human kontrolundedir; agent calisirken default olarak yazilmaz, yalnizca acikca istendiginde yazilir
541
+
542
+ Phase notu:
543
+ - `phase` Projectman icinde first-class planning kavramidir ama bugun standalone `phase.*` CRUD operation ailesi yoktur
544
+ - `phase` sprint planinin nested grouping/status katmanidir
545
+ - bu yuzden AOPS sugar tarafinda `pm phase ...` yerine mevcut `pm sprint` + `pm utask` surface'i korunur
546
+
547
+ ## 14 Prompt sugar
548
+
549
+ ### 14.1 Overview
550
+
551
+ ## 15 Project sugar
552
+
553
+ ### 15.1 Overview
554
+
555
+ ## 16 Durable memory ve synopsis sugar
556
+
557
+ ### 16.1 Overview
558
+
559
+ #### 16.1.1 Overview
560
+
561
+ Recommended agent memory path:
562
+
563
+ ```bash
564
+ aops mem brief --subject project --json
565
+ aops mem checkpoint --content "Slice devam ediyor." --task-id <task-id> --sprint-id <sprint-id> --apply --json
566
+ aops mem summary --content "Session summary." --apply --json
567
+ ```
568
+
569
+ Kural:
570
+
571
+ 1. `mem brief` session basinda/resume'da kullanilan read-only startup pack'tir; PM state'in yerine gecmez ve memory yazmaz.
572
+ 2. `mem checkpoint` anlamli milestone, decision, blocker veya handoff noktasinda short rolling status yazar; her chat satiri veya kucuk edit icin kullanilmaz.
573
+ 3. `mem summary` session sonu veya operator summary istegi icindir; ordinary summary short kalir. Durable closeout ancak `--closeout --durability durable --confirm` ile yazilir.
574
+ 4. Memory evidence pack olmalidir: request/purpose, board/task/sprint/issue refs, concrete outcome, validation/review evidence, open risks ve next action.
575
+
576
+ ### 16.2 Hangi koordinasyon yuzeyini ne zaman kullan
577
+
578
+ #### 16.2.1 Overview
579
+
580
+ `discuss`, `chat` ve `pm review-request` ayri koordinasyon yuzeyleridir: karar/konsensus `discuss`, koordinasyon/uyandirma hosted chat odalari (`chat`), review ise Projectman (`pm review-request`). Yanlis yazici/dinleyici eslesmesi sessiz trafik kaybinin en sik sebebi; koordinasyon mesaji ile dinleyici ayni hosted chat odasinda olmali (`aops-cli-chat` skill'ine bak).
581
+
582
+ | Ihtiyac | Komut | Skill |
583
+ |--------------------------------------------------------|--------------------------------|------------------|
584
+ | Yapilandirilmis karar transcript'i + sonuc kararlari | `aops discuss start` | `aops-cli-discuss` |
585
+ | Agent sirasi/lifecycle icin karar dongusu | `aops discuss wait`, `aops discuss turn`, `aops discuss conclude` | `aops-cli-discuss` |
586
+ | Multi-agent koordinasyon/uyandirma odasi | `aops chat room create`, `aops chat message send` | `aops-cli-chat` |
587
+ | Agent'in bekleyen oda/mesaj islerini kesfetmesi | `aops chat inbox --for <agent>` | `aops-cli-chat` |
588
+ | Oda trafigini dinleme / unread okuma | `aops chat listen`, `aops chat catchup` | `aops-cli-chat` |
589
+ | Review iste / sonucla / re-review | `aops pm review-request create`, `aops pm review-request result` | `aops-cli-projectman` |
590
+
591
+ Koordinasyon (uyandirma, oda mesajlasmasi, listener) hosted chat odalarinda yasar; karar ritueli `discuss` tarafindadir. Yapilandirilmis bir karar/stance `discuss turn`/`conclude` ile transcript'e yazilir; karsi agent'i uyandirmak icin ayni isi bagli hosted chat odasina kisa bir `chat message send` ile duyur (oda mesaji uyandirma sinyali, discuss transcript kanonik kayit). Davet/dinleyici beklentisini de chat odasinda netlestir. Detaylar icin `aops-cli-chat` (oda lifecycle, members, `chat send/listen/catchup`) ve `aops-cli-discuss` (karar ritueli, `discuss wait` exit kodlari) skillerine bak. Review akisi (RR/RRR, re-review, material issue) `aops-cli-projectman` tarafindadir.
592
+
593
+ Slug-first operator contract:
594
+
595
+ 1. `discuss start --slug <slug>` topic frontmatter'ina canonical slug yazar. Slug verilmezse title'dan derive edilir ve JSON'da `topicSlug` olarak doner. Hosted chat odalari da `chat room create --slug <slug>` ile slug tasir.
596
+ 2. Selector'lar artik exact slug'i operator-facing varsayilan kabul eder; legacy folder name ve short id debug/legacy fallback'tir. Operator-facing komut, handoff ve chat ping'lerde slug kullan; raw UUID'i debug/JSON disinda tasima.
597
+ 3. Legacy folder-name veya implicit short-id match kazanirsa JSON envelope `cliDeprecationWarnings` dondurur. Debug ihtiyaci disinda bu uyarilar "slug'a gec" sinyali sayilir.
598
+ 4. Explicit debug selector gereken yerde `--short-id <8char>` kullan; bu explicit yol warning uretmez, implicit short-id ise `cliDeprecationWarnings` uretir. Ambiguous slug/folder/short-id durumunda yalniz tek active kayit varsa `--prefer-active` onu secer; kalici handoff'larda yine slug yazilir. Discuss komutlarinda `--short-id` topic selector'udur.
599
+ 5. Yeni agent bootstrap'i: once `aops chat inbox --for <agent> --json`, sonra bagli odadaki unread'i `chat catchup --for <agent> --apply --json` ile oku; aktif uyandirma icin `chat listen --for <agent> --max-loops 1 --json`. Bekleyen review icin `aops pm review-request list --json`.
600
+ 6. `discuss conclude`, `consensus.md`, agent final stance, `disagreement.md` ve `open-questions.md` dosyalarini `_TBD_` placeholder olarak birakmaz. Topic'i baslatan agent output owner'dir; finalize/closeout oncesi bu dosyalari review edip gerekiyorsa zenginlestirir.
601
+
602
+ ### 16.3 PM window + chat-room baglama ve active window
603
+
604
+ #### 16.3.1 Overview
605
+
606
+ Iki ajanli execution pencerelerinde Projectman window'u tek olsun. Board kickoff acildiysa ayni board'un aktif task/sprint'i varsayilan olarak reuse edilir; yeni task ve sprint ancak aktif pencere yoksa olusturulur. (Repo-first `collab pm-bind` komutu emekliye ayrildi; PM penceresi dogrudan `pm` ile yonetilir, koordinasyon ise board'a bagli hosted chat odasinda yapilir.)
607
+
608
+ ```bash
609
+ aops pm board kickoff --board ops --title "AOPS PM tooling triage" --goal "..." --apply --json
610
+ # Koordinasyon odasini board'a bagla (uyandirma/akis hosted chat'te):
611
+ aops chat room create --slug ops-room --title "Ops" --created-by <agent> --apply --json
612
+ aops chat binding add --room-id <room-id> --binding-type projectman.board --binding-id <board-id> --label "Active board" --created-by <agent> --apply --json
613
+ ```
614
+
615
+ Explicit task/sprint secimi gerektiğinde ilgili `pm sprint`/`pm utask` komutlarini
616
+ kullan. Operator bilincli olarak yeni pencere acacaksa yeni bir `pm board
617
+ kickoff`/sprint acar; aksi halde duplicate kickoff window olusturmak yerine
618
+ aktif board referanslari tercih edilir.
619
+
620
+ ### 16.4 Iki ajanli arastirma ve istisare akisi
621
+
622
+ #### 16.4.1 Overview
623
+
624
+ Operator "tartisin", "Claude ile konusup plan koyun", "beraber arastirin" gibi bir istek verdiginde ana ajan tek basina plan yazip sonradan review istemez. Varsayilan akis iki tarafin da bagimsiz context uretmesi, sonra discuss topic'i (karar) + hosted chat odasi (uyandirma) uzerinden yakinsamasidir. Review tarafi Projectman'dedir.
625
+
626
+ Ana ajan akisi:
627
+
628
+ 1. `aops discuss start --slug <slug>` ile hedefi/agent'lari tasiyan bir karar topic'i ac; koordinasyon icin `aops chat room create` ile bagli bir oda ac.
629
+ 2. Operator istegini, repo root'larini, kisitlari ve beklenen deliverable'lari topic'in ilk turn'une (veya odaya context mesaji olarak) yaz.
630
+ 3. Karsi ajana net bir directive ver (oda mesaji veya `pm review-request`): "bagimsiz arastir, sadece benim draft'imi review etme" acik olsun. Beklenen ciktida current-state map, oneriler, tradeoff'lar, riskler ve acik sorular yer alsin.
631
+ 4. Directive'i odaya `chat message send` ile duyur; karsi ajan manuel baslatilacaksa hangi odayi/topic'i dinleyecegini operator'e bildir.
632
+ 5. Ana ajan kendi arastirmasini paralel yapar ve kendi stance'ini `discuss turn` ile topic'e yazar.
633
+ 6. Karar turn'unu odaya kisa bir `chat message send` ile duyur; topic id/turn ve karsi ajandan istenen review sorulari yazilsin.
634
+ 7. Cevap icin karar dongusunu `aops discuss wait --id <topic> --for <agent> --timeout-sec 540 --interval-sec 5 --json`, koordinasyon uyandirmasini `aops chat listen --for <agent> --max-loops 1 --json` ile bekle.
635
+ 8. Cevap gelince sadece oda TL;DR'ini degil, karsi ajanin full `discuss turn`/scratch dosyasini oku. Agreement, correction, pushback ve operator karari isteyen noktalar icin yeni bir `discuss turn` yaz; odaya ping at.
636
+ 9. Ciddi ayrilik varsa bir bounded loop daha ver. Mimari/yuksek etki konularda tek oda cevabindan sonra final plan yazma.
637
+ 10. Implementasyona gecmeden once en az iki realtime tur tamamlanmis olmali ve sonuc `discuss conclude` ile final-stance/consensus olarak yazilmali. Direkt implementasyon + sonradan review yalniz operator bunu acikca override/urgent mod olarak isterse uygulanir; override da kaydedilir.
638
+ 11. Sonuc: kilitlenen kararlar (discuss conclude), acik operator sorulari, POC sirasi ve owner/domain sinirlari. Projectman veya Docman kaydi yalniz explicit komutla yapilir.
639
+
640
+ Karsi ajan akisi:
641
+
642
+ 1. Directive'i ele al ve odaya "arastiriyorum, sonuc donecegim" notu yaz; `chat catchup --apply` ile read cursor'u ilerlet.
643
+ 2. Istenen kaynaklardan bagimsiz arastirma yap; ana ajanin draft'ini tek truth sayma.
644
+ 3. Kendi research/stance'ini `discuss turn` ile yaz ve oda cevabinda topic id/turn ile kisa ozet ver.
645
+ 4. Ana ajan kanitli pushback verirse yeni bir `discuss turn` ile hangi noktalari kabul ettigini, hangilerini surdurdugunu ve hangilerini operator'e biraktigini belirt.
646
+
647
+ Minimum kalite kapisi: iki ajanin da en az bir bagimsiz context/research turn'u olur; ya da ana ajan bounded timeout'u ve "karsi cevap beklenmeden ilerleniyor" notunu operator'e acikca yazar.
648
+
649
+ ### 16.5 ChatV3 product-channel room context
650
+
651
+ #### 16.5.1 Overview
652
+
653
+ `aops chatv3`, hosted `aops chat` odasi degildir; encrypted product-channel/session CLI'idir. Invite/session/member token ve room epoch key context'i local ChatV3 session store uzerinden calisir. Hosted AOPS coordination icin `aops chat`, aktif product-room takibi icin `aops chatv3` kullanilir.
654
+
655
+ Common commands:
656
+
657
+ ```bash
658
+ aops chatv3 listen --session codex --room general --after-seq <last-seq> --timeout-sec 60 --json
659
+ aops chatv3 binding add --session codex --room general --binding-type projectman.review-request --ref-id <rr-id> --title "Slice review" --json
660
+ aops chatv3 binding list --session codex --room general --json
661
+ aops chatv3 room brief --session codex --room general --for claude --json
662
+ aops chatv3 room summary --session codex --room general --after-seq <last-seq> --json
663
+ ```
664
+
665
+ Kural:
666
+
667
+ 1. `listen` exit `0` yeni mesaj, exit `22` timeout anlamindadir; read/listen output'u `latestSeq` ve `caughtUp` tasir.
668
+ 2. `binding add/list/remove` loose refs tutar; PM/RR/Docman/discuss truth'unu degistirmez.
669
+ 3. `room brief` guidance, members, presence, bindings, cursor refs ve recommended next reads iceren read-only onboarding pack'tir.
670
+ 4. `room summary` agent-composed narrative digest pack'tir; `sourceRef.type=chatv3.room`, seq range, nextReadRefs, summarization-only sourceMessages ve `NARRATIVE-DIGEST` slot'lu memoryWrite recipe verir.
671
+ 5. `sourceMessages` yalniz ozetleme girdisidir; memory'ye aynen yazilmaz. Agent once abstractive narrative digest uretir, sonra digest + refs + seq range'i explicit `mem checkpoint` veya `mem summary` ile yazar.
672
+
673
+ ## 17 Resource sugar
674
+
675
+ ### 17.1 Overview
676
+
677
+ #### 17.1.1 Overview
678
+
679
+ `aops resource` is the hosted Agentspace surface for durable knowledge pointers. A resource describes where knowledge lives; it does not own the document body, snapshot bytes, or planning state.
680
+
681
+ Use it when an agent needs a reusable pointer such as a guide, rule, spec, link, reference, template, dataset, code note, or skill-related reference:
682
+
683
+ ```bash
684
+ aops resource create --name "Hexagen Guide" --resource-type document --uri "docman:aops/hexagen" --apply --json
685
+ aops resource list --resource-type document --json
686
+ aops resource get --id <resource-id> --json
687
+ aops resource update --id <resource-id> --uri "https://example.test/spec" --apply --json
688
+ aops resource delete --id <resource-id> --apply --confirm --json
689
+ ```
690
+
691
+ Before raw hosted writes, check the live schema:
692
+
693
+ ```bash
694
+ aops agent schema --tool agentspace.resource.create --timeout-ms 120000 --json
695
+ ```
696
+
697
+ If `agent schema` ever returns only a flexible `data` envelope for an Agentspace operation, fall back to the matching sugar help (`aops resource create --help`) and inspect an existing list/get record before composing payloads. Do not guess nested field names from memory.
698
+
699
+ ## 18 Artifact sugar
700
+
701
+ ### 18.1 Overview
702
+
703
+ #### 18.1.1 Overview
704
+
705
+ `aops artifact` is hosted metadata for generated or external artifacts. It stores the artifact shell and links to project-scoped refs; it is not the byte store. Use artifact records for pointers such as storage paths, report paths, exported archives, screenshots, or generated JSON; keep file bytes in an operator-owned storage system.
706
+
707
+ Core flow:
708
+
709
+ ```bash
710
+ aops artifact create --artifact-type file --storage-path "s3://bucket/report.json" --apply --json
711
+ aops artifact link --artifact-id <artifact-id> --ref-type resource --ref-id <resource-id> --apply --json
712
+ aops artifact ref list --ref-type resource --ref-id <resource-id> --json
713
+ aops artifact get --id <artifact-id> --json
714
+ aops artifact delete --id <artifact-id> --apply --confirm --json
715
+ ```
716
+
717
+ Keep artifact content small and pointer-shaped. If the artifact is a repo file, include the path and validation context in memory or PM; do not paste large file bodies into artifact metadata.
718
+
719
+ ## 19 Skill sugar
720
+
721
+ ### 19.1 Overview
722
+
723
+ #### 19.1.1 Overview
724
+
725
+ `aops skill` owns hosted reusable skill shells and skill versions. `.aops/hosted/skills/**` is only the read-only mirror; never edit it as canonical truth.
726
+
727
+ Authoring loop:
728
+
729
+ ```bash
730
+ aops skill list --hosted-project-slug aops --name "aops-working-disciplines" --json
731
+ aops skill inspect --id <skill-id> --json
732
+ aops skill version list --skill-id <skill-id> --json
733
+ aops skill version create --hosted-project-slug aops --skill-id <skill-id> --content '@./SKILL.md' --entry-file SKILL.md --skill-standard aops-skill-v1 --meta '@./meta.json' --apply --json
734
+ aops skill version publish --hosted-project-slug aops --id <skill-version-id> --apply --json
735
+ aops sync pull --apply --hosted-project-slug aops --json
736
+ aops assets install --target all --apply --json
737
+ ```
738
+
739
+ When `--version` is omitted, the CLI resolves the next version from hosted versions. If a publish or create reports a version conflict, use `skill version list`; mirror frontmatter can lag by one version immediately after publish.
740
+
741
+ ## 20 Durable activity logs
742
+
743
+ ### 20.1 Overview
744
+
745
+ #### 20.1.1 Overview
746
+
747
+ Durable activity logs are audit/readback evidence for hosted operations. Many hosted write sugars append best-effort activity records or structured server logs. Treat these logs as verification context, not planning truth.
748
+
749
+ Current operator rules:
750
+
751
+ 1. Planning and execution state still belongs in Projectman.
752
+ 2. Durable handoff and decisions still belong in Agentspace memory.
753
+ 3. Activity logs are useful when proving that a hosted write, invoke, or flow ran with a concrete request/response.
754
+ 4. If a dedicated `aops activity ...` command is not present in your runtime, discover the hosted activity surfaces with `aops agent tools --domain agentspace --json` or use the domain guide. Do not invent an activity command from old docs.
755
+
756
+ ## 22 Docman sugar
757
+
758
+ ### 22.1 Overview
759
+
760
+ #### 22.1.1 Overview
761
+
762
+ `aops doc` is the hosted Docman surface for document groups, documents, versions, sections, pages, page versions, retrieval rows, publish output, and mirror pull.
763
+
764
+ Common flows:
765
+
766
+ ```bash
767
+ aops doc list --project-slug aops --json
768
+ aops doc version list --document-id <doc-id> --json
769
+ aops doc outline get --document-version-id <docver-id> --titles-only --depth 2 --json
770
+ aops doc page draft-save --page-version-id <pagever-id> --document-link-id <section-page-link-id> --content '@./page.md' --apply --json
771
+ aops doc set-current-version --document-id <doc-id> --version-id <docver-id> --publish-now --apply --json
772
+ aops doc mirror pull --project-slug aops --group-uid aops-guides --document-slug aops-cli-user-guide --out-dir ./.aops/docman --apply --json
773
+ ```
774
+
775
+ For a known page edit, use clone_all + targeted page/section CRUD. For a whole markdown refresh, use `doc import --from-markdown` with `--baseline`, `--guard-target`, and a `--dry-run` first.
776
+
777
+ Retrieval notes:
778
+
779
+ 1. `doc scope search --local` searches the local mirror and can rank source or architecture files above the guide you expected.
780
+ 2. `doc search --local` is document-granular and confirms presence; do not assume it returned a full section body.
781
+ 3. To read a mirror section, use `aops view doc-page <document>#<number-prefixed-slug>`, for example `aops view doc-page aops-cli-user-guide#27-guard-flag-konvansiyonu`.
782
+ 4. `doc outline get --titles-only --depth <n>` is the cheapest structure probe for a known hosted version.
783
+
784
+ ## 23 Sık görülen operator notlari
785
+
786
+ ### 23.1 Overview
787
+
788
+ #### 23.1.1 Overview
789
+
790
+ High-signal operator notes:
791
+
792
+ 1. First cold hosted calls can take around 20 seconds; use `--timeout-ms 120000` for schema, doc, skill, or file smoke commands.
793
+ 2. `--yes` is a compatibility/fail-fast flag. The CLI never prompts, and the flag is not a magic fix for validation errors.
794
+ 3. In PowerShell, quote file pointers for multiline or quote-heavy content: `--content '@file'` or `--input '@file.json'`.
795
+ 4. If sugar returns validation errors, stop retrying guessed flags. Read `<command> --help`; for raw invokes, read `agent schema`.
796
+ 5. If command help and skill text disagree, command help wins.
797
+ 6. If a user guide and skill text disagree, the user guide wins.
798
+
799
+ ## 24 Onerilen gunluk akış
800
+
801
+ ### 24.1 Overview
802
+
803
+ #### 24.1.1 Overview
804
+
805
+ For a normal agent session:
806
+
807
+ ```bash
808
+ aops mem resume --subject project --json
809
+ aops view dashboard --style agent
810
+ aops <family> --help
811
+ # do the scoped work
812
+ aops mem write --mode resume --subject project --durability short --content '@./checkpoint.md' --apply --json
813
+ ```
814
+
815
+ Use `view` for read-only context, then mutate through the owner family: `pm` for planning, `mem` for durable context, `doc` for documents, and `skill`/`prompt` for hosted reusable assets.
816
+
817
+ Do not run closeout commands unless the operator explicitly approves closeout. Ordinary stop points should write resume/handoff memory.
818
+
819
+ ## 25 Installer mantigi
820
+
821
+ ### 25.1 Overview
822
+
823
+ #### 25.1.1 Overview
824
+
825
+ Runtime skills are loaded through the verified user-level AOPS gateway, not
826
+ directly from repository mirrors. Setup installs or repairs one managed gateway
827
+ for every agent runtime registered by this CLI.
828
+
829
+ Typical refresh:
830
+
831
+ ```bash
832
+ aops assets install --target all --apply --json
833
+ aops assets status --verify full --json
834
+ aops assets resolve --gateway aops --json
835
+ ```
836
+
837
+ Restart an agent runtime if it caches skill discovery. Hosted optional packages
838
+ remain server-owned and inert until explicitly discovered and installed; the
839
+ offline Community core is immutable and signed independently.
840
+
841
+ ## 26 Help-first model
842
+
843
+ ### 26.1 Overview
844
+
845
+ #### 26.1.1 Overview
846
+
847
+ AOPS command discovery is help-first:
848
+
849
+ ```bash
850
+ aops --help
851
+ aops <family> --help
852
+ aops <family> <subcommand> --help
853
+ ```
854
+
855
+ Decision chain:
856
+
857
+ 1. Use sugar help for routine CLI work.
858
+ 2. Use `aops agent tools --domain <domain> --json` to find hosted operations when sugar is missing.
859
+ 3. Use `aops agent schema --tool <domain>.<operation> --json` before raw payload authoring.
860
+ 4. Use `aops agent invoke --tool <id> --input '@payload.json' --apply --json` only when sugar is absent or broken.
861
+ 5. Use `aops api call` only as an explicit low-level escape hatch.
862
+
863
+ ## 27 Guard flag konvansiyonu
864
+
865
+ ### 27.1 Overview
866
+
867
+ #### 27.1.1 Overview
868
+
869
+ Guard flags are consistent across AOPS sugar:
870
+
871
+ | Flag | Meaning |
872
+ |---|---|
873
+ | `--preview` | Validate and describe the operation without mutation. |
874
+ | `--apply` | Execute a guarded write. |
875
+ | `--confirm` | Confirm destructive actions such as delete, restore overwrite, cleanup, or reset. |
876
+ | `--idempotency-key <key>` | Make write retries deterministic when the command supports it. |
877
+ | `--json` | Return scriptable structured output. |
878
+ | `--yes` | Compatibility/fail-fast mode; missing required choices remain errors. |
879
+
880
+ Read commands need no guard. Normal writes require `--apply`. Destructive writes require `--apply --confirm`. `--preview` without `--apply` should not mutate; if a command mutates during preview, file an issue.
881
+
882
+ ## 28 Hosted source of truth ve mirror cache
883
+
884
+ ### 28.1 Overview
885
+
886
+ #### 28.1.1 Overview
887
+
888
+ The hosted server is the source of truth. The `.aops/**` tree is a read-only
889
+ local cache; do not treat it as canonical or hand-edit it as truth.
890
+
891
+ Server-canonical, mirrored as read-only caches:
892
+
893
+ 1. `.aops/projectman/**` caches Projectman boards, tasks, sprints, issues, feedback, and views. Refresh with `aops sync pull --project-slug aops --apply --json`.
894
+ 2. `.aops/agentspace/memory/items/**` caches Agentspace memory. Refresh with `aops sync pull ...`.
895
+ 3. `.aops/agentspace/discussions/**` caches discuss topics/transcripts (discuss authoring is hosted). Refresh with `aops sync pull ...`.
896
+ 4. `.aops/hosted/prompts/**` and `.aops/hosted/skills/**` mirror hosted Agentspace prompt/skill current versions. Refresh with `aops sync pull --apply --hosted-project-slug aops --json`.
897
+ 5. `.aops/docman/**` mirrors hosted Docman documents. Refresh with `aops doc mirror pull ...`.
898
+
899
+ To change content, write through the owner surface (`aops pm ...`, `aops mem ...`, `aops discuss ...`, `aops doc ...`), then refresh the cache.
900
+
901
+ ## 29 Hosted guide mirror bootstrap
902
+
903
+ ### 29.1 Overview
904
+
905
+ #### 29.1.1 Overview
906
+
907
+ Guide mirrors are Docman-owned, not `sync pull`-owned. Refresh AOPS operator guides with:
908
+
909
+ ```bash
910
+ aops doc mirror pull --project-slug aops --group-uid aops-guides --document-slug aops-cli-user-guide --document-slug aops-agent-assets-bootstrap --out-dir ./.aops/docman --apply --json
911
+ aops doc mirror pull --project-slug aops --group-uid domain-guides --document-slug agentspace-user-guide --out-dir ./.aops/docman --apply --json
912
+ ```
913
+
914
+ Use `sync pull` for hosted prompts/skills, and `doc mirror pull` for guides/documents.
915
+
916
+ ## 30 Cross-cutting anti-patterns
917
+
918
+ ### 30.1 Overview
919
+
920
+ #### 30.1.1 Overview
921
+
922
+ Avoid these:
923
+
924
+ 1. Guessing flags after a validation error instead of reading `--help`.
925
+ 2. Writing raw `agent invoke` payloads without `agent schema`.
926
+ 3. Treating `aops` as semantic owner for planning, memory, docs, files, or domain business state.
927
+ 4. Hand-editing `.aops/hosted/**` or `.aops/docman/**` mirrors.
928
+ 5. Assuming `sync pull` refreshes Docman guides.
929
+ 6. Running full Docman import for a one-page edit when CRUD ids are known.
930
+ 7. Writing closeout memory for an ordinary checkpoint.
931
+ 8. Treating a capability mentioned in old guidance as mounted without confirming it through `aops agent tools --summary --json`.
932
+
933
+ ## 31 Skill ve user guide arama disiplini
934
+
935
+ ### 31.1 Overview
936
+
937
+ #### 31.1.1 Overview
938
+
939
+ Use the smallest useful read:
940
+
941
+ ```bash
942
+ aops <family> --help
943
+ aops doc scope search --project-slug aops --q "<keywords>" --local --json
944
+ aops doc outline get --document-version-id <docver-id> --titles-only --depth 2 --json
945
+ aops view doc-page aops-cli-user-guide#27-guard-flag-konvansiyonu
946
+ ```
947
+
948
+ Search rules:
949
+
950
+ 1. Search by document title + section name + keywords, not bare section numbers.
951
+ 2. `doc scope search` is broad; verify the `documentSlug` and `mirrorPath` before trusting a hit.
952
+ 3. `doc search --local` is not a section body reader by itself.
953
+ 4. `view doc-page <document>#<number-prefixed-slug>` is the ergonomic local section reader.
954
+ 5. If a skill is thin, follow its canonical guide pointer rather than expecting full mechanics in the skill body.
955
+
956
+ ## 32 AGENTS.md prompt-template bootstrap
957
+
958
+ ### 32.1 Overview
959
+
960
+ #### 32.1.1 Overview
961
+
962
+ `aops agents-md` manages generated AGENTS.md prompt-template blocks. Keep project-specific rules outside the managed block.
963
+
964
+ ```bash
965
+ aops agents-md preview --collab
966
+ aops agents-md update --collab --apply
967
+ aops agents-md reset --apply --confirm
968
+ ```
969
+
970
+ Use this when a repo needs the standard AOPS task execution or collaborative work protocol reminders. Do not manually edit the managed block unless recovering from a broken generated state.
971
+
972
+ ## 33 Agent runtime prompt/skill bootstrap
973
+
974
+ ### 33.1 Overview
975
+
976
+ #### 33.1.1 Overview
977
+
978
+ Before asking a supported terminal agent to use AOPS, install and verify the
979
+ global gateway for all registered runtimes:
980
+
981
+ ```bash
982
+ aops assets install --target all --apply --json
983
+ aops assets status --verify quick --json
984
+ aops assets resolve --gateway aops --json
985
+ ```
986
+
987
+ `--target all` expands to the CLI's registered runtimes. A comma-separated or
988
+ repeated `--target` selects a subset. Runtime gateways point to the verified
989
+ user-level asset store and never require a repository checkout. If resolution
990
+ fails, inspect `aops assets status --verify full --json`; repair never
991
+ overwrites unknown user-owned files.
992
+
993
+ ## 34 `start` kickoff composer
994
+
995
+ ### 34.1 Overview
996
+
997
+ #### 34.1.1 Overview
998
+
999
+ `aops start`, hosted "AOPS Collaborative Startup" starter promptunu kickoff cevaplarindan derler. Komutun canli yardimi kanoniktir:
1000
+
1001
+ ```bash
1002
+ aops start --help
1003
+ ```
1004
+
1005
+ Iki kullanim modu:
1006
+
1007
+ 1. Operator TTY: `aops start` sorulari interaktif sorar ve promptu stdout'a veya `--out <file>` ile dosyaya yazar.
1008
+ 2. Agent interview: `aops start --json` `result.missing` sorularini `askOperator` isaretiyle dondurur. Agent bildigi cevaplari flag olarak verir; yalniz `askOperator` kalemlerini operatore sorar. Roller operator-only'dir.
1009
+
1010
+ Varsayilan `--json` cikti compact'tir. Prompt govdesi inline gelmek yerine `result.promptRef` ile isaretlenir; `--out tmp/start.md` kullanmak uzun promptu dosyada tutar. Inline prompt sadece gercekten gerekiyorsa `--full-output` ile istenir.
1011
+
1012
+ Sik kullanilan komutlar:
1013
+
1014
+ ```bash
1015
+ aops start --mode solo --board <board> --task "<task>" --json --out tmp/start.md
1016
+ aops start --mode chat-room --board <board> --discipline build-review-chat --json
1017
+ aops start --resume <mission-id> --mode solo --board <board> --json
1018
+ aops start --reminder --task "<current task>" --area <area> --limit 3 --json
1019
+ ```
1020
+
1021
+ Ready sonucunda onemli alanlar:
1022
+
1023
+ 1. `result.promptRef.path` / `result.promptRef.sha256` - prompt dosyasi ve hash'i.
1024
+ 2. `result.memoryBrief` - read-only local-cache memory startup pack; `--no-memory-brief` bunu atlar.
1025
+ 3. `result.sessionGuidance` - layered runtime rules, discipline guardrails, accepted playbooks, ranked experience briefs.
1026
+ 4. `result.mission.policyJson` - mission create/update icin free-form policy seed.
1027
+
1028
+ `start --reminder` full kickoff degildir: soru sormaz, full starter prompt serialize etmez, PM/memory/hosted state yazmaz. Session ortasinda "neredeydik, hangi kurallar/playbook/experience gecerlidir?" sorusuna bounded read-only cevap verir.
1029
+
1030
+ ## 35 Mission and implementation plan
1031
+
1032
+ ### 35.1 Overview
1033
+
1034
+ #### 35.1.1 Overview
1035
+
1036
+ Mission Agentspace-owned session anchor'dir; Projectman task/sprint/RR truth'un yerine gecmez. Implementation-plan ise Projectman sprint facade'idir; plan id sprint id'dir.
1037
+
1038
+ ```bash
1039
+ aops mission create --objective "<objective>" --policy-json '<json>' --apply --json
1040
+ aops mission list --summary --json
1041
+ aops mission get --id <mission-id> --json
1042
+ aops mission update --id <mission-id> --active-plan <sprint-id> --apply --json
1043
+ aops mission resume --id <mission-id> --depth light --limit 8 --json
1044
+
1045
+ aops plan create --task <task-id> --name "<plan name>" --goal "<goal>" --apply --json
1046
+ aops plan get --id <sprint-id> --json
1047
+ aops plan update --id <sprint-id> --phases-json '@tmp/phases.json' --apply --json
1048
+ ```
1049
+
1050
+ Kurallar:
1051
+
1052
+ 1. Mission intent, status, policy ve active plan ref tutar.
1053
+ 2. Task, sprint phase/microtask, issue, feedback, RR/RRR Projectman'dedir.
1054
+ 3. Mission resume compact ve token-bounded'dir; raw skeleton icin `mission resume --full` yalniz gerekliyse kullanilir.
1055
+ 4. `start --resume <mission-id>` starter prompt ile ayni compact mission pack'i birlestirir.
1056
+ 5. Tek maddelik microtask editleri icin `aops pm utask ...` kullan; plan facade ikinci tablo degildir.
1057
+
1058
+ ## 36 Playbook and experience consult
1059
+
1060
+ ### 36.1 Overview
1061
+
1062
+ #### 36.1.1 Overview
1063
+
1064
+ Playbook ve experience startup'ta bulk-load edilmez. Once bounded pack okunur:
1065
+
1066
+ ```bash
1067
+ aops start --reminder --task "<current task>" --area <area> --limit 3 --json
1068
+ aops view experience --area <area>
1069
+ aops skill current --id <skill-id> --summary --json
1070
+ ```
1071
+
1072
+ `result.sessionGuidance` uc katmanli okunur:
1073
+
1074
+ 1. L1 runtime pointers: AGENTS.md, ChatV3/channel rules, command refs.
1075
+ 2. L2 discipline guardrails: id/title/phase/enforcement/evidence summary.
1076
+ 3. L3 accepted playbook briefs + ranked experience briefs.
1077
+
1078
+ Default experience limit 3, hard max 5'tir. Brief ilgisizse full body okunmaz; ilgiliyse skill/prompt/current summary, memory/experience detail veya doc ladder ile hedefli okunur.
1079
+
1080
+ ## 37 Checkpoint cadence
1081
+
1082
+ ### 37.1 Overview
1083
+
1084
+ #### 37.1.1 Overview
1085
+
1086
+ Checkpoint memory transcript degil, resume evidence pack'tir. Her chat satiri veya kucuk edit icin yazilmaz; anlamli milestone, decision, blocker, RR/RRR sonucu, import/publish slice'i veya session handoff noktasinda yazilir.
1087
+
1088
+ ```bash
1089
+ aops mem checkpoint --subject sprint --id <sprint-id> \
1090
+ --content '@tmp/checkpoint.md' \
1091
+ --task-id <task-id> --sprint-id <sprint-id> \
1092
+ --source-ref "projectman.review-request:<rr-id>" \
1093
+ --validation-state "PASS: tests/typecheck/smoke" \
1094
+ --next-action "<next action>" \
1095
+ --apply --json
1096
+ ```
1097
+
1098
+ Iyi checkpoint su bilgileri tasir:
1099
+
1100
+ 1. Request/purpose ve PM surface refs.
1101
+ 2. Concrete outcome ve current status.
1102
+ 3. Validation/review evidence.
1103
+ 4. Open risks/blockers.
1104
+ 5. Next action ve next-read refs.
1105
+
1106
+ Durable closeout memory operator onayi gerektirir; ordinary checkpoint short resume/carry-forward kalir.