@bongos/core 1.19.286 → 1.19.288

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.
package/.bongos-core.json CHANGED
@@ -2,22 +2,22 @@
2
2
  "artifact": "bongos-core",
3
3
  "manifest_schema": 1,
4
4
  "generator": "scripts/gds/package-core.js",
5
- "core_version": "1.19.286",
6
- "core_contract": "1.19.286",
7
- "source_commit": "340b919c505ff5fc5c7701cff26cc21dc237aa65",
5
+ "core_version": "1.19.288",
6
+ "core_contract": "1.19.288",
7
+ "source_commit": "9ad9d2000bfddb7710afeb83f8a33e072ffee604",
8
8
  "source_ref": "HEAD",
9
- "built_at": "2026-08-21T22:36:56.458Z",
9
+ "built_at": "2026-08-22T02:33:44.096Z",
10
10
  "redaction": {
11
11
  "model": "docs-redacted+functional-verbatim",
12
- "docs_redacted": 319,
12
+ "docs_redacted": 320,
13
13
  "agent_docs_stubbed": 22,
14
- "functional_verbatim": 1383,
14
+ "functional_verbatim": 1386,
15
15
  "rules": 3,
16
16
  "gate_literals": 3,
17
17
  "gate": "passed"
18
18
  },
19
- "file_count": 1724,
20
- "tree_sha256": "b9e4aeff64c00012240dbc9966201e7e8d6d1068ce7a1c91e7112d9234c5c305",
19
+ "file_count": 1728,
20
+ "tree_sha256": "40a6f311bd544cbfef6bc326a7d0eb6767685f660dea1dbb1ece69f205603cce",
21
21
  "files": [
22
22
  {
23
23
  "path": ".claude/skills/blocker-review/SKILL.md",
@@ -152,7 +152,7 @@
152
152
  {
153
153
  "path": ".claude/skills/goal-review/SKILL.md",
154
154
  "mode": "0000644",
155
- "sha256": "66b744096d83b3b478f7973ac0c123402475257c67b16c7589b1b88a6effb2e3"
155
+ "sha256": "71bc5b89e2b2793a8f30c0510f4c30249436a9dd26c0eda6d1bd0634620c26ce"
156
156
  },
157
157
  {
158
158
  "path": ".claude/skills/grade-audit/SKILL.md",
@@ -347,12 +347,12 @@
347
347
  {
348
348
  "path": "clients/bongos-client/README.md",
349
349
  "mode": "0000644",
350
- "sha256": "28ea93104b710162845534c03881affa2ebfa5e9e622c195ef5332fb919762c4"
350
+ "sha256": "75389c8fbcfeb39ce0320d182ea25cc97d2292814743521f834bd98de0ff83da"
351
351
  },
352
352
  {
353
353
  "path": "clients/bongos-client/bongos-client.global.js",
354
354
  "mode": "0000644",
355
- "sha256": "8b6c0691763e21272008f0cb5c24e40d7bc65b297d81e4d1c1b2f58d5f1ab657"
355
+ "sha256": "f008fd2b92e818e1734bbbd4388af483730050780d14822daf16ca5e05110401"
356
356
  },
357
357
  {
358
358
  "path": "clients/bongos-client/examples/hello-world.mjs",
@@ -362,17 +362,17 @@
362
362
  {
363
363
  "path": "clients/bongos-client/index.cjs",
364
364
  "mode": "0000644",
365
- "sha256": "3b7b24b5ced8eead07e1d758e4c1b59321b0fb0f2108aefefd0e4b73bb7cc78b"
365
+ "sha256": "ac7eba0af25322341547f46f9daa385bd557e52c1f580d4873a5d4b35a633ca7"
366
366
  },
367
367
  {
368
368
  "path": "clients/bongos-client/index.d.ts",
369
369
  "mode": "0000644",
370
- "sha256": "183d88c492aae87e1a06a1cb69ba5227db6b023057676637025fee0a77bddd88"
370
+ "sha256": "6d151ca60431e5346007c1939f10f711111c7b7a38f9914be7c8a6ff12d6a75d"
371
371
  },
372
372
  {
373
373
  "path": "clients/bongos-client/index.mjs",
374
374
  "mode": "0000644",
375
- "sha256": "0348faad8b08aefdc42d7bdff79a97a94f547f824c3ec37ed7642cde357a6950"
375
+ "sha256": "60a6ec5d2b7a41e8727769953bd5b38a6746e2373cd8a271ee7b0ba750b84f34"
376
376
  },
377
377
  {
378
378
  "path": "clients/bongos-client/package.json",
@@ -1394,20 +1394,25 @@
1394
1394
  "mode": "0000644",
1395
1395
  "sha256": "119637165d2d6b89f8c00afccd07d9f073629f1502f4b2f2cdc673001b2f8d2a"
1396
1396
  },
1397
+ {
1398
+ "path": "docs/adr/0183-criteria-close-themselves.md",
1399
+ "mode": "0000644",
1400
+ "sha256": "e7d0245b21406ddcd118dce29ffb1df5a4797e33d66231aa6bc734316c19530f"
1401
+ },
1397
1402
  {
1398
1403
  "path": "docs/adr/README.md",
1399
1404
  "mode": "0000644",
1400
- "sha256": "56d478e1b5285c1c133225240c65ec23c6b3b4f280cdda853c50b33564cc2910"
1405
+ "sha256": "5e8bcc7eff0a9940760952e4dffe3855474e506439d677625f411164ae226a35"
1401
1406
  },
1402
1407
  {
1403
1408
  "path": "docs/api-reference.md",
1404
1409
  "mode": "0000644",
1405
- "sha256": "1f499b7f98aba5e51d30f7e3a76c00a3c1b535fe676eb03a31f1eb559d9a0f13"
1410
+ "sha256": "ae992fbebcc171bbc4e669a45f01d3a5dd840bcaad334262136a2060fc362a43"
1406
1411
  },
1407
1412
  {
1408
1413
  "path": "docs/api/openapi.json",
1409
1414
  "mode": "0000644",
1410
- "sha256": "7fa333bb7864fa72672b463f5c53ae9340bd5ecad808bbfe193e835e57ae3e8d"
1415
+ "sha256": "55c2cbd3c8473ed041d0df0c6d9eebe16ed3d333afae9f7dbe3b0ef1a211b4c6"
1411
1416
  },
1412
1417
  {
1413
1418
  "path": "docs/architecture.md",
@@ -3692,7 +3697,7 @@
3692
3697
  {
3693
3698
  "path": "modules/ideas/inbox.js",
3694
3699
  "mode": "0000644",
3695
- "sha256": "379a6e51a8865dcf52061d858e7e2f3b572f16bc04473aba163e52cadcaf1873"
3700
+ "sha256": "19af72245517260ac6ee670c93fa3cda99a678da25a7fa6a5d6ec565995201ce"
3696
3701
  },
3697
3702
  {
3698
3703
  "path": "modules/ideas/migrations/ideas_001_grades.sql",
@@ -3727,7 +3732,7 @@
3727
3732
  {
3728
3733
  "path": "modules/ideas/routes/inbox.js",
3729
3734
  "mode": "0000644",
3730
- "sha256": "9c7027f70daba8cb956ab540567972afcec96900ce8d7f7793647bc58c13abdd"
3735
+ "sha256": "47c2a3beb6bed3b206ec36344950fe115189debf75a38cf202bfafaa5dbb2adb"
3731
3736
  },
3732
3737
  {
3733
3738
  "path": "modules/ideas/routing.js",
@@ -3767,7 +3772,7 @@
3767
3772
  {
3768
3773
  "path": "modules/lifecycle/db.js",
3769
3774
  "mode": "0000644",
3770
- "sha256": "74eedb9ee1c423c9ecdea6f09d8555fa3200ac9e3a86a194182774cb72f0cd0b"
3775
+ "sha256": "18b2053d9195936be86d98e00812ab69980986f91cf83bc9db054441036192fd"
3771
3776
  },
3772
3777
  {
3773
3778
  "path": "modules/lifecycle/dead-deps.js",
@@ -3777,7 +3782,7 @@
3777
3782
  {
3778
3783
  "path": "modules/lifecycle/done-when.js",
3779
3784
  "mode": "0000644",
3780
- "sha256": "4e6f6af1cdaf026466155c1b0656a0e89872aa2bb264f36c50997ec4f069e808"
3785
+ "sha256": "fab91acf54bea4fca254bfd420a9a934e6eae434101ff57ae2a1bed48d2342d5"
3781
3786
  },
3782
3787
  {
3783
3788
  "path": "modules/lifecycle/est-advisory.js",
@@ -3804,6 +3809,11 @@
3804
3809
  "mode": "0000644",
3805
3810
  "sha256": "ff30d2749a0f6b17beb776be2d862967cdea2ad03488e7ab499d2f9d093e8805"
3806
3811
  },
3812
+ {
3813
+ "path": "modules/lifecycle/goal-edits.js",
3814
+ "mode": "0000644",
3815
+ "sha256": "0367f88aefa890d8d7f2472dd847467d632150a93db8a96b85717b5fb1cc8c9e"
3816
+ },
3807
3817
  {
3808
3818
  "path": "modules/lifecycle/hierarchy.js",
3809
3819
  "mode": "0000644",
@@ -3842,7 +3852,7 @@
3842
3852
  {
3843
3853
  "path": "modules/lifecycle/publish-reconciler.js",
3844
3854
  "mode": "0000644",
3845
- "sha256": "1cca02e8eff2b0a7fdc1fa06ad6be2f633e25a29bdd10dddf6147610fdae087a"
3855
+ "sha256": "900fc9ecfe91a0c1e9cd62b619f609c1416196d502c007d0bbb87c41387b6163"
3846
3856
  },
3847
3857
  {
3848
3858
  "path": "modules/lifecycle/routes/analytics.js",
@@ -3862,7 +3872,7 @@
3862
3872
  {
3863
3873
  "path": "modules/lifecycle/routes/done-when.js",
3864
3874
  "mode": "0000644",
3865
- "sha256": "c81e1474e237dfa2e3be5f80df56344cf7f9ca50dc7b84e45b2fec64509b900f"
3875
+ "sha256": "7fb4a74237c1f84a5c20591663e634a7b190861e6a3f1c5804e22145ef58f6be"
3866
3876
  },
3867
3877
  {
3868
3878
  "path": "modules/lifecycle/routes/gate-approvals.js",
@@ -3872,7 +3882,7 @@
3872
3882
  {
3873
3883
  "path": "modules/lifecycle/routes/goals.js",
3874
3884
  "mode": "0000644",
3875
- "sha256": "a986f861d919aec81e58683782ceae902e8590cb581710842113a04439984c16"
3885
+ "sha256": "a94284db44e4108b21ff3a5f60ac25c0b16ff4330839f9d37045e90e763d430e"
3876
3886
  },
3877
3887
  {
3878
3888
  "path": "modules/lifecycle/routes/lifecycle.js",
@@ -4507,12 +4517,12 @@
4507
4517
  {
4508
4518
  "path": "package-lock.json",
4509
4519
  "mode": "0000644",
4510
- "sha256": "ade48bed2ae2a0e3019f7937eefa6eff80495f6bb0fa7de7cda033b7e6acee2c"
4520
+ "sha256": "d9e17adc0e87df8ff8a0c36f03b483d48824fe5eba09ff0859dbebad9f79a90c"
4511
4521
  },
4512
4522
  {
4513
4523
  "path": "package.json",
4514
4524
  "mode": "0000644",
4515
- "sha256": "7eb6abceda41293042967ce827a4fa252646a35b45e60bae9ba1a6a348d320a1"
4525
+ "sha256": "750961d5bd5a5377928326efbdd529d4d2c5be2ab7e864e55416645e97133086"
4516
4526
  },
4517
4527
  {
4518
4528
  "path": "public-docs/index.html",
@@ -6022,7 +6032,7 @@
6022
6032
  {
6023
6033
  "path": "src/bongos/route-rank-check.js",
6024
6034
  "mode": "0000644",
6025
- "sha256": "93b2a09220f4d96f69294531cbca274b1132d164cf32be2f66d40d30e1953551"
6035
+ "sha256": "be8bc6ecd3ab1dbec4d3224d684b64d100920ad2cf7d08c51898160fefdaf534"
6026
6036
  },
6027
6037
  {
6028
6038
  "path": "src/bongos/routes.js",
@@ -6157,7 +6167,7 @@
6157
6167
  {
6158
6168
  "path": "src/module-api.js",
6159
6169
  "mode": "0000644",
6160
- "sha256": "32e103cd07c81ccc0a2137ef31b3824e5085a93ebf95f9cca7c107d58b25da3c"
6170
+ "sha256": "410c4b2cfa57fddbcfa3e4d6b2a66a8c3c286b49822cc49c53759f6fb6a6aea7"
6161
6171
  },
6162
6172
  {
6163
6173
  "path": "src/module-loader/catalog.js",
@@ -6379,6 +6389,11 @@
6379
6389
  "mode": "0000644",
6380
6390
  "sha256": "4697e7e264023c148d1f18cac9695157de56b5dd3db4b60f2ab94d73a8d7af65"
6381
6391
  },
6392
+ {
6393
+ "path": "tests/auto_satisfy_criteria.mjs",
6394
+ "mode": "0000644",
6395
+ "sha256": "1a5524b0e63631a0ebdc5e3e87c04eb862a9be7021b3b1caf5a44afb2dcb455b"
6396
+ },
6382
6397
  {
6383
6398
  "path": "tests/autonomous_fit_protected_paths.mjs",
6384
6399
  "mode": "0000644",
@@ -7939,6 +7954,11 @@
7939
7954
  "mode": "0000644",
7940
7955
  "sha256": "211aa868b86a2b663f5525c3d2ddfa406498d608363d28c0786219d3c0b6e249"
7941
7956
  },
7957
+ {
7958
+ "path": "tests/prose_edits.mjs",
7959
+ "mode": "0000644",
7960
+ "sha256": "d5918a7f47e989355e2b78083710736278c6d5f75c13ac8434d5ad6fac6a3d03"
7961
+ },
7942
7962
  {
7943
7963
  "path": "tests/provision.mjs",
7944
7964
  "mode": "0000644",
@@ -1,13 +1,26 @@
1
1
  ---
2
2
  name: goal-review
3
- description: Walk the Bongos criterion review queue — for each criterion auto-flagged "met — pending review" (all its tasks shipped, not yet confirmed), prompt to confirm (→ satisfied), reject (not actually met), or note/defer. Confirming a goal's LAST criterion auto-flips the goal open→achieved. Triggers when the user says "/goal-review", "review goals", "review flagged criteria", "what criteria are ready to confirm", "confirm criteria", "walk the goal review queue", or runs as a scheduled daily task. Metic+ rank only (Metic and Archon; not Xenos).
3
+ description: Walk the Bongos criterion review queue. As of task 1002069 (ADR 0183) this is NO LONGER A GATE — a criterion whose gating tasks have all shipped satisfies ITSELF, and a goal whose criteria are all satisfied achieves itself. What remains here is the residue automation deliberately refuses: chiefly a criterion whose linked tasks were ALL ABANDONED (nothing delivered), plus rejecting a criterion that is not actually met. Prompt to confirm (→ satisfied), reject, or note/defer. Triggers when the user says "/goal-review", "review goals", "review flagged criteria", "what criteria are ready to confirm", "confirm criteria", "walk the goal review queue", or runs as a scheduled daily task. Metic+ rank only (Metic and Archon; not Xenos).
4
4
  ---
5
5
 
6
6
  You are running the **goal-review** session for this Cloud Bongos instance. It mirrors `/idea-triage`, but for the *closing* end of the work hierarchy (ADR 0086 §6): criteria that have **auto-flagged "met — pending review"** get walked one-at-a-time and dispositioned, so finished work actually closes out instead of sitting in limbo.
7
7
 
8
8
  > **The other end of this lifecycle is [`/goal-create`](../goal-create/SKILL.md)** — it opens a goal (scope wall, criteria, seed tasks); this one closes it out.
9
9
 
10
- **The auto-flag is derived, not stored.** When every task linked to a criterion has shipped — and the criterion has not yet been confirmed — the server flags it `pending_review` (deterministic from `task_criteria` + ship status; no manual propose step). This skill surfaces that queue and lets a trusted builder confirm or reject each one. Confirming sets the criterion `satisfied=true`; confirming a goal's **last** unsatisfied criterion auto-flips the goal `open → achieved`.
10
+ **The auto-flag is derived, not stored.** When every task linked to a criterion has shipped — and the criterion has not yet been confirmed — the server flags it `pending_review` (deterministic from `task_criteria` + ship status; no manual propose step). Confirming sets the criterion `satisfied=true`; confirming a goal's **last** unsatisfied criterion auto-flips the goal `open → achieved`.
11
+
12
+ ## ⚠ This skill is no longer a GATE (task 1002069 / [ADR 0183](../../../docs/adr/<redacted>.md))
13
+
14
+ **A criterion now closes itself.** `doneWhen.autoSatisfyShippedCriteria` runs inside `shipTask`'s transaction (immediately, for the ship that completed it) and unscoped on every `publish-reconciler` tick (draining the backlog and self-healing). A goal whose criteria are all satisfied achieves itself the same way. Nobody has to run this skill for finished work to close — that dependence was producing a **lying board** (goal 1000072 measured `6/9 shipped, 0/5 criteria`).
15
+
16
+ So expect the queue to be **mostly empty**, and read what IS in it as a signal rather than a chore. Automation refuses exactly two shapes, and they are what you are here for:
17
+
18
+ 1. **A criterion whose linked tasks were ALL ABANDONED.** Auto-close requires ≥1 task actually `shipped`, so cut work can never complete anything — but the review flag deliberately still surfaces it, because *somebody must decide whether the criterion still means anything now that its work is gone*. Options: confirm (it was satisfied another way), reject, or re-link it to the work that will actually deliver it. **This is the main reason the skill still exists.**
19
+ 2. **A criterion with NO linked tasks.** Automation requires ≥1 linked task, so it never auto-closes. If a criterion is genuinely met by work that was never linked, link the tasks (better — it makes the board true) or confirm manually.
20
+
21
+ A criterion sitting here with shipped tasks and no explanation means the sweep has not run or errored — check the `publish-reconciler` logs rather than confirming by hand, or you will paper over a broken sweep.
22
+
23
+ **Rejecting is now the more valuable verdict.** Confirming mostly duplicates what automation already did; rejecting is information only a human has.
11
24
 
12
25
  ## Rank gate — Metic+ only
13
26
 
@@ -5,7 +5,7 @@ A **generated**, zero-dependency typed client for the Bongos API — produced fr
5
5
  by hand; it regenerates when the spec changes, so it can never drift from the routes.
6
6
 
7
7
  - API version: **v1** (served at `/api/bongos/v1`)
8
- - 290 operations across 47 resource groups
8
+ - 293 operations across 47 resource groups
9
9
 
10
10
  ## Install
11
11
 
@@ -279,6 +279,8 @@ function createClient(opts = {}) {
279
279
  postDiscordChannelsReconcile: (args) => request("POST", "/discord/channels/reconcile", { hasBody: true }, args),
280
280
  },
281
281
  "doneWhen": {
282
+ // PATCH /done-when/{criterionId} — rank: metic+archon — PATCH /done-when/:criterionId
283
+ patchDoneWhenCriterionId: (args) => request("PATCH", "/done-when/{criterionId}", { hasBody: true }, args),
282
284
  // POST /done-when/{criterionId}/satisfy — rank: metic+archon — POST /done-when/:criterionId/satisfy
283
285
  postDoneWhenCriterionIdSatisfy: (args) => request("POST", "/done-when/{criterionId}/satisfy", { hasBody: true }, args),
284
286
  // POST /done-when/{criterionId}/unsatisfy — rank: metic+archon — POST /done-when/:criterionId/unsatisfy
@@ -309,6 +311,8 @@ function createClient(opts = {}) {
309
311
  postGoals: (args) => request("POST", "/goals", { hasBody: true }, args),
310
312
  // GET /goals/{id} — rank: any-builder — GET /goals/:id
311
313
  getGoalsId: (args) => request("GET", "/goals/{id}", { hasBody: false }, args),
314
+ // PATCH /goals/{id} — rank: any-builder — PATCH /goals/:id
315
+ patchGoalsId: (args) => request("PATCH", "/goals/{id}", { hasBody: true }, args),
312
316
  // POST /goals/{id}/archive — rank: metic+archon — POST /goals/:id/archive
313
317
  postGoalsIdArchive: (args) => request("POST", "/goals/{id}/archive", { hasBody: true }, args),
314
318
  // GET /goals/{id}/conflicts — rank: any-builder — GET /goals/:id/conflicts
@@ -397,6 +401,8 @@ function createClient(opts = {}) {
397
401
  getInboxId: (args) => request("GET", "/inbox/{id}", { hasBody: false }, args),
398
402
  // PATCH /inbox/{id} — rank: metic+archon — PATCH /inbox/:id
399
403
  patchInboxId: (args) => request("PATCH", "/inbox/{id}", { hasBody: true }, args),
404
+ // PATCH /inbox/{id}/body — rank: any-builder — PATCH /inbox/:id/body
405
+ patchInboxIdBody: (args) => request("PATCH", "/inbox/{id}/body", { hasBody: true }, args),
400
406
  // POST /inbox/{id}/ratify — rank: metic+archon — POST /inbox/:id/ratify
401
407
  postInboxIdRatify: (args) => request("POST", "/inbox/{id}/ratify", { hasBody: true }, args),
402
408
  // POST /inbox/{id}/resubmit — rank: any-builder — POST /inbox/:id/resubmit
@@ -278,6 +278,8 @@ function createClient(opts = {}) {
278
278
  postDiscordChannelsReconcile: (args) => request("POST", "/discord/channels/reconcile", { hasBody: true }, args),
279
279
  },
280
280
  "doneWhen": {
281
+ // PATCH /done-when/{criterionId} — rank: metic+archon — PATCH /done-when/:criterionId
282
+ patchDoneWhenCriterionId: (args) => request("PATCH", "/done-when/{criterionId}", { hasBody: true }, args),
281
283
  // POST /done-when/{criterionId}/satisfy — rank: metic+archon — POST /done-when/:criterionId/satisfy
282
284
  postDoneWhenCriterionIdSatisfy: (args) => request("POST", "/done-when/{criterionId}/satisfy", { hasBody: true }, args),
283
285
  // POST /done-when/{criterionId}/unsatisfy — rank: metic+archon — POST /done-when/:criterionId/unsatisfy
@@ -308,6 +310,8 @@ function createClient(opts = {}) {
308
310
  postGoals: (args) => request("POST", "/goals", { hasBody: true }, args),
309
311
  // GET /goals/{id} — rank: any-builder — GET /goals/:id
310
312
  getGoalsId: (args) => request("GET", "/goals/{id}", { hasBody: false }, args),
313
+ // PATCH /goals/{id} — rank: any-builder — PATCH /goals/:id
314
+ patchGoalsId: (args) => request("PATCH", "/goals/{id}", { hasBody: true }, args),
311
315
  // POST /goals/{id}/archive — rank: metic+archon — POST /goals/:id/archive
312
316
  postGoalsIdArchive: (args) => request("POST", "/goals/{id}/archive", { hasBody: true }, args),
313
317
  // GET /goals/{id}/conflicts — rank: any-builder — GET /goals/:id/conflicts
@@ -396,6 +400,8 @@ function createClient(opts = {}) {
396
400
  getInboxId: (args) => request("GET", "/inbox/{id}", { hasBody: false }, args),
397
401
  // PATCH /inbox/{id} — rank: metic+archon — PATCH /inbox/:id
398
402
  patchInboxId: (args) => request("PATCH", "/inbox/{id}", { hasBody: true }, args),
403
+ // PATCH /inbox/{id}/body — rank: any-builder — PATCH /inbox/:id/body
404
+ patchInboxIdBody: (args) => request("PATCH", "/inbox/{id}/body", { hasBody: true }, args),
399
405
  // POST /inbox/{id}/ratify — rank: metic+archon — POST /inbox/:id/ratify
400
406
  postInboxIdRatify: (args) => request("POST", "/inbox/{id}/ratify", { hasBody: true }, args),
401
407
  // POST /inbox/{id}/resubmit — rank: any-builder — POST /inbox/:id/resubmit
@@ -123,10 +123,12 @@ export interface PatchBuildersIdBudgetResponse { builder: unknown }
123
123
  export interface PatchBuildersIdRankRequest { rank: string }
124
124
  export interface PatchBuildersIdRankResponse { builder: unknown; previous_rank: unknown; direction: unknown; credit_delta: unknown; broadcast: unknown }
125
125
  export interface PatchBuildersIdStatusRequest { status: "active" | "inactive"; reason?: string }
126
+ export interface PatchDoneWhenCriterionIdRequest { criterion_md: string }
127
+ export interface PatchDoneWhenCriterionIdResponse { ok: boolean; criterion: unknown; deltas: unknown; unchanged: boolean }
126
128
  export interface PatchGoalsIdMembersBuilderIdRequest { membership_kind: string }
127
129
  export interface PatchGoalsIdMembersBuilderIdResponse { ok: boolean; member: unknown; changed: boolean }
128
- export interface PatchGoalsIdVisibilityRequest { visibility: string }
129
- export interface PatchGoalsIdVisibilityResponse { ok: boolean; goal: unknown }
130
+ export interface PatchInboxIdBodyRequest { body_md: string }
131
+ export interface PatchInboxIdBodyResponse { ok: boolean; idea: unknown; delta: unknown; unchanged: unknown }
130
132
  export interface PatchInboxIdRequest { status?: "open" | "promoted" | "discarded" | "merged"; kind?: string; promoted_to_task_id?: number; reviewed_at?: unknown; merged_into_idea_id?: number; triage_note?: string }
131
133
  export interface PatchInboxIdResponse { idea: unknown }
132
134
  export interface PatchMeCrossProjectRequest { hide_stats: boolean }
@@ -538,6 +540,8 @@ export interface BongosClient {
538
540
  postDiscordChannelsReconcile(args?: RequestArgs): Promise<PostDiscordChannelsReconcileResponse>;
539
541
  };
540
542
  "doneWhen": {
543
+ /** PATCH /done-when/{criterionId} — rank: metic+archon */
544
+ patchDoneWhenCriterionId(args: RequestArgs & { body: PatchDoneWhenCriterionIdRequest }): Promise<PatchDoneWhenCriterionIdResponse>;
541
545
  /** POST /done-when/{criterionId}/satisfy — rank: metic+archon */
542
546
  postDoneWhenCriterionIdSatisfy(args?: RequestArgs & { body?: PostDoneWhenCriterionIdSatisfyRequest }): Promise<PostDoneWhenCriterionIdSatisfyResponse>;
543
547
  /** POST /done-when/{criterionId}/unsatisfy — rank: metic+archon */
@@ -568,6 +572,8 @@ export interface BongosClient {
568
572
  postGoals(args: RequestArgs & { body: PostGoalsRequest }): Promise<PostGoalsResponse>;
569
573
  /** GET /goals/{id} — rank: any-builder */
570
574
  getGoalsId(args?: RequestArgs): Promise<GetGoalsIdResponse>;
575
+ /** PATCH /goals/{id} — rank: any-builder */
576
+ patchGoalsId(args?: RequestArgs): Promise<ApiResponse>;
571
577
  /** POST /goals/{id}/archive — rank: metic+archon */
572
578
  postGoalsIdArchive(args?: RequestArgs): Promise<PostGoalsIdArchiveResponse>;
573
579
  /** GET /goals/{id}/conflicts — rank: any-builder */
@@ -605,7 +611,7 @@ export interface BongosClient {
605
611
  /** POST /goals/{id}/transfer — rank: any-builder */
606
612
  postGoalsIdTransfer(args?: RequestArgs & { body?: PostGoalsIdTransferRequest }): Promise<PostGoalsIdTransferResponse>;
607
613
  /** PATCH /goals/{id}/visibility — rank: any-builder */
608
- patchGoalsIdVisibility(args: RequestArgs & { body: PatchGoalsIdVisibilityRequest }): Promise<PatchGoalsIdVisibilityResponse>;
614
+ patchGoalsIdVisibility(args?: RequestArgs): Promise<ApiResponse>;
609
615
  /** GET /goals/inbox — rank: any-builder */
610
616
  getGoalsInbox(args?: RequestArgs): Promise<ApiResponse>;
611
617
  /** POST /goals/reorder — rank: metic+archon */
@@ -656,6 +662,8 @@ export interface BongosClient {
656
662
  getInboxId(args?: RequestArgs): Promise<GetInboxIdResponse>;
657
663
  /** PATCH /inbox/{id} — rank: metic+archon */
658
664
  patchInboxId(args?: RequestArgs & { body?: PatchInboxIdRequest }): Promise<PatchInboxIdResponse>;
665
+ /** PATCH /inbox/{id}/body — rank: any-builder */
666
+ patchInboxIdBody(args: RequestArgs & { body: PatchInboxIdBodyRequest }): Promise<PatchInboxIdBodyResponse>;
659
667
  /** POST /inbox/{id}/ratify — rank: metic+archon */
660
668
  postInboxIdRatify(args?: RequestArgs & { body?: PostInboxIdRatifyRequest }): Promise<ApiResponse>;
661
669
  /** POST /inbox/{id}/resubmit — rank: any-builder */
@@ -275,6 +275,8 @@ export function createClient(opts = {}) {
275
275
  postDiscordChannelsReconcile: (args) => request("POST", "/discord/channels/reconcile", { hasBody: true }, args),
276
276
  },
277
277
  "doneWhen": {
278
+ // PATCH /done-when/{criterionId} — rank: metic+archon — PATCH /done-when/:criterionId
279
+ patchDoneWhenCriterionId: (args) => request("PATCH", "/done-when/{criterionId}", { hasBody: true }, args),
278
280
  // POST /done-when/{criterionId}/satisfy — rank: metic+archon — POST /done-when/:criterionId/satisfy
279
281
  postDoneWhenCriterionIdSatisfy: (args) => request("POST", "/done-when/{criterionId}/satisfy", { hasBody: true }, args),
280
282
  // POST /done-when/{criterionId}/unsatisfy — rank: metic+archon — POST /done-when/:criterionId/unsatisfy
@@ -305,6 +307,8 @@ export function createClient(opts = {}) {
305
307
  postGoals: (args) => request("POST", "/goals", { hasBody: true }, args),
306
308
  // GET /goals/{id} — rank: any-builder — GET /goals/:id
307
309
  getGoalsId: (args) => request("GET", "/goals/{id}", { hasBody: false }, args),
310
+ // PATCH /goals/{id} — rank: any-builder — PATCH /goals/:id
311
+ patchGoalsId: (args) => request("PATCH", "/goals/{id}", { hasBody: true }, args),
308
312
  // POST /goals/{id}/archive — rank: metic+archon — POST /goals/:id/archive
309
313
  postGoalsIdArchive: (args) => request("POST", "/goals/{id}/archive", { hasBody: true }, args),
310
314
  // GET /goals/{id}/conflicts — rank: any-builder — GET /goals/:id/conflicts
@@ -393,6 +397,8 @@ export function createClient(opts = {}) {
393
397
  getInboxId: (args) => request("GET", "/inbox/{id}", { hasBody: false }, args),
394
398
  // PATCH /inbox/{id} — rank: metic+archon — PATCH /inbox/:id
395
399
  patchInboxId: (args) => request("PATCH", "/inbox/{id}", { hasBody: true }, args),
400
+ // PATCH /inbox/{id}/body — rank: any-builder — PATCH /inbox/:id/body
401
+ patchInboxIdBody: (args) => request("PATCH", "/inbox/{id}/body", { hasBody: true }, args),
396
402
  // POST /inbox/{id}/ratify — rank: metic+archon — POST /inbox/:id/ratify
397
403
  postInboxIdRatify: (args) => request("POST", "/inbox/{id}/ratify", { hasBody: true }, args),
398
404
  // POST /inbox/{id}/resubmit — rank: any-builder — POST /inbox/:id/resubmit
@@ -0,0 +1,58 @@
1
+ # ADR 0183 — A done-when criterion closes itself; the review queue becomes a place to look
2
+
3
+ - **Status:** accepted
4
+ - **Date:** 2026-08-21
5
+ - **Task:** 1002069 (owner request 2026-07-05, scope owner-confirmed)
6
+ - **Supersedes part of:** [ADR 0086](<redacted>.md) §6 / BV1.R63 — the criterion auto-flag stays, but confirming it is no longer the only way a criterion closes.
7
+
8
+ ## Context
9
+
10
+ Under ADR 0086 §6 a criterion became `satisfied` in exactly one way: a Metic+ called `POST /done-when/:id/satisfy`, and if it was the goal's last criterion the goal flipped `open→achieved`. The "met — pending review" flag was **derived** — every gating task shipped, nothing stored — and `/goal-review` walked that queue so a human could confirm each one.
11
+
12
+ That gate cost more than it bought. The signal it gated on is already unambiguous: *every task under this criterion has shipped.* A human confirming that adds no information, and when nobody runs `/goal-review` the consequence is not "a careful pause" but a **lying board** — criteria sitting unsatisfied and goals sitting `open` long after the work landed. The owner asked for the flip to be automatic (2026-07-05).
13
+
14
+ This session supplied the evidence for how bad the drift gets: goal 1000072 read `6/9 shipped, 0/5 criteria` — six tasks landed, not one criterion moved.
15
+
16
+ ## Decision
17
+
18
+ **A criterion satisfies itself once its gating set is fully delivered, and a goal achieves itself once all its criteria are satisfied.** One helper, `doneWhen.autoSatisfyShippedCriteria(exec, { taskId })`, run from two places:
19
+
20
+ | Where | Scope | Why both |
21
+ |---|---|---|
22
+ | `shipTask`, inside its transaction | `{ taskId }` — only what this ship gates | Immediate. A builder shipping a goal's last task sees the goal close *now*. On the txn client, so a rolled-back ship cannot leave a goal achieved. |
23
+ | `publish-reconciler` tick, every ~5 min | `{}` — every unsatisfied criterion | **Backlog drain** (criteria whose tasks shipped before this existed — nothing will ship against them again) and **self-heal** (a criterion linked after its tasks shipped, a hand-edited status, a ship whose best-effort in-txn close was skipped). |
24
+
25
+ `exec` is caller-supplied on purpose; the helper never reaches for a module pool. It is idempotent — it only reads `satisfied = false` rows — which is what makes an every-tick sweep safe.
26
+
27
+ `/goal-review` is **not** deleted. It stops being a gate and becomes a place to look: what closed, and the ambiguous cases automation deliberately refuses (below).
28
+
29
+ ### The delivery guard, and a deliberate asymmetry
30
+
31
+ Auto-close requires **both**:
32
+
33
+ 1. no linked task outside `{shipped, abandoned}` — nothing is still pending; and
34
+ 2. **at least one linked task actually `shipped`** — something was delivered.
35
+
36
+ The second is not redundant, and it is the whole reason this ADR exists rather than a one-line commit. Since [task 1002651](https://cloudbongos.com/builders#/task/1002651) made `abandoned` terminal-not-pending, a criterion whose linked tasks were **all cut** satisfies condition 1 *vacuously* — every task is accounted for, none is pending. Automating on condition 1 alone would satisfy criteria on **zero delivered work** and cascade their goals to `achieved`. Measured, not hypothetical: `buildCriterionProgress` returns `pending_review: true` for exactly that shape today.
37
+
38
+ **But `pending_review` keeps that wider meaning.** It answers "should a human look at this?", and task 1002651 chose on purpose that an all-abandoned criterion surfaces there — its work was cut, so someone must decide whether the criterion still means anything. Auto-close answers the narrower "may this close itself, unattended?"
39
+
40
+ > Everything that auto-closes was flagged for review. Not everything flagged for review auto-closes.
41
+
42
+ An earlier draft of this task "aligned" the two predicates and broke 1002651's intent; `tests/criterion_progress.mjs` caught it. **Do not re-align them.** The gap is the design.
43
+
44
+ ## Consequences
45
+
46
+ - **Criteria and goals stop lying by default.** No cadence discipline required.
47
+ - **`/goal-review` keeps a real job** — the all-abandoned case, and any criterion a human wants to reject.
48
+ - **The manual `POST /satisfy` route is untouched**, still Metic+. It remains the way to close a criterion that automation cannot judge (e.g. one with no linked tasks at all — automation requires ≥1, so a task-less criterion never auto-closes).
49
+ - **A close is only as good as its task links.** Auto-satisfy cannot help a criterion nothing is linked to; goal 1000072's five criteria have zero linked tasks and will stay `0/5` until they are linked. Automating the flip makes that gap *more* visible, not less — which is the point.
50
+ - **`achieveGoalIfComplete` (db.js) now has a sibling** that re-implements its rules in SQL on a caller's `exec`, because it reads through the module pool and could not see an uncommitted in-txn flip. The duplication is deliberate and noted at both sites; collapsing it would mean either a require cycle (`done-when` ↔ `db`) or moving goal reads out of `db.js`.
51
+ - **Observability:** the in-txn close logs from `closeCompletedWorkForShip`, which means it prints *before* commit — the one wart, accepted and documented there, because threading the summary back out through `withTx` would have cost ~5 lines in the over-threshold `db.js` (shrink-only ratchet policy).
52
+
53
+ ## Alternatives rejected
54
+
55
+ - **Sweep only, no ship hook.** Simpler, but a builder who ships a goal's last task would wait up to 5 minutes to see it close — losing the moment that makes the board feel alive.
56
+ - **Ship hook only, no sweep.** Leaves every pre-existing completed criterion unsatisfied forever, since nothing will ship against them again.
57
+ - **A stored `pending_review` column.** ADR 0086 §6 deliberately derives the flag; storing it adds a second source of truth to keep in sync.
58
+ - **Deleting `/goal-review`.** It still has the all-abandoned case and rejection to handle.
@@ -256,5 +256,6 @@ This keeps the decision history honest and traceable.
256
256
  | 0180 | [**Dependency intake & drift policy: baseline-ratchet audit gate, install scripts off, cooldown via patrol, OIDC publish** ([task 1003127](https://cloudbongos.com/builders#/task/1003127), goal 1000076). The red-team baseline audit found 18 advisories (2 high) sitting unwatched in 9 production deps, the `undici ^6.27.0` override pinned INSIDE a vulnerable range while also breaking Node 26 CLIs, and nothing gated what an agent may install — against a 2025 npm threat wave (chalk/debug, Shai-Hulud, Nx) that ran on postinstall scripts and long-lived publish tokens. Four decisions. (1) `scripts/gds/audit-gate.js` runs in the required `unit` check: a high/critical advisory NOT in the committed `config/audit-baseline.json` fails the merge gate; the baseline is **shrink-only pre-gate debt** (10 findings at adoption) — adding an entry to silence a NEW advisory is out of policy. Fail-OPEN on registry/infra errors, fail-CLOSED on findings: the gate catches new advisories, it does not prove registry uptime. Notably a blanket `npm audit fix` cannot even run here (`workspace:` protocol, EUNSUPPORTEDPROTOCOL) — fixes are explicit tasks. (2) `.npmrc ignore-scripts=true`: the tree needs no install-lifecycle scripts — sharp installs prebuilds via optionalDependencies, proven by a script-less `npm ci` + full 430-test suite; a future dep needing one is an ADR-level exception. (3) Update cooldown is PATROL-enforced (task 1003128 flags versions younger than 7 days + stale overrides + action-pin drift) rather than `.npmrc`-enforced, because CI's npm 10 warns on the npm-11 `minimum-release-age` key for every builder; move it into `.npmrc` when the toolchain floor reaches npm ≥ 11.10. (4) Publish auth moves to npm **trusted publishing (OIDC)** — needs a one-time owner registration on npmjs.com (blocker filed); until then the granular 90-day `NPM_TOKEN` is a documented exception.](<redacted>.md) | devsecops / supply chain |
257
257
  | 0181 | [**Teardown accepts every state but `torn_down`, and deliberately keeps the address** ([task 1003042](https://cloudbongos.com/builders#/task/1003042), goal 1000058). Walk finding N5: an instance at `status='error'` could never be removed — the owner's teardown answered 409 `not_teardownable` and the archon `force-teardown`, which exists as the escape hatch, answered the SAME refusal, because both read one hand-kept whitelist `['provisioning','active','tearing_down']` that omitted `requested` and `error`. No role had a path out, so errored rows accumulated permanently (instance 15 `swag` from 2026-08-07). The whitelist justified itself as "nothing running to tear down", which is FALSE for `error`: a provision failing mid-run lands there AFTER it may have created the database, taken a port, and written the systemd unit, Caddy block and DNS record — a partial standup is the thing most in need of reclaiming. `TEARDOWN_FROM` is now DERIVED from `INSTANCE_STATES` minus `torn_down`, so a future state is teardownable by DEFAULT — the bug was an allow-list that silently omitted states, and for a failure mode whose signature is "a row with no exit", the safe default is that an exit exists. The runner needed no change (its steps are each `allowFail`); only the web guard refused. The one surviving refusal is now ONE shared helper: the copies had drifted, and force-teardown's positional `res.fail` form put the bare code `not_teardownable` on the wire as the human text. **The `port` and `domain` are deliberately NOT released** — releasing the port alone would be WORSE than the status quo, because the `<slug>.caddy` block survives teardown and proxies the hostname to a PORT NUMBER, so a later instance given that port would answer at the torn-down project's still-live address (verified live: two projects torn down 2026-08-13 still resolved on 2026-08-19). Holding the port is what keeps the address inert at a harmless 502; releasing both is [task 1002897](https://cloudbongos.com/builders#/task/1002897). Retention is also correct for revive, which re-uses the same hostname. Copy was corrected to match: it had promised "the address stops answering", which was never true.](0181-teardown-state-gate-and-address-retention.md) | provisioning / lifecycle |
258
258
  | 0182 | [**Project visibility is TWO axes: a derived publish gate and a stored join door** ([task 1002320](https://cloudbongos.com/builders#/task/1002320), goal 1000046). Goal 1000046 seeded 31 tasks each citing "per R01" — this ADR — so nothing in the goal could start until it landed: it gated **29 open tasks**, the largest single chokepoint in the repo, while itself parked at `backlog` with no dependencies. The spec its planning task cites was never written, so this is the design of record. The goal's criterion says **four** states (Public/Private/Stealth/Unlisted) and R04 says **three** stored plus a derived dark-matter; both are right and conflating them is the trap. There are two INDEPENDENT axes: **publishability** (DERIVED from the identity gate — name + description, per the owner interview) decides whether a project is on the map at all, and **the join door** (STORED `visibility ∈ public|private|stealth`, owner-set) decides how it renders and who gets in. Four user-facing states = 3 × publishable + one derived state that collapses all three. The column name `visibility` is a mild lie kept for consistency with `goals.visibility` (ADR 0112) — it does NOT decide visibility, publishability does — and the ADR is the mitigation. All three stored states are VISIBLE; only the derived state is invisible, which is what makes the 3+1 split honest rather than a workaround. `private` inherits ADR 0112's exact meaning (visible-but-closed); `stealth` exposes EXISTENCE but not IDENTITY, and its redaction is **server-side in the feed** — the naive client-side version leaks to anyone opening the network tab, and the orbs page is a static site OUTSIDE this repo (R09) so it could never be enforced there. Three mechanisms touch "does this appear" and are separated: `status` (operational), `visibility` (owner), `featured` (Archon editorial) — on the map iff `status='active' AND publishable`, with `featured` only ranking among those. That is a real behaviour change: today's predicate is `featured=true AND status='active'`, so **featuring is currently load-bearing for visibility at all** and the goal's owner-control premise silently does not work without it. Visibility is owned by the INSTANCE and the hub row is a CACHE (ADR 0141 §3 + the admin-console spike's D1) — so `owner_github_id` being "advisory, not an authority" is CORRECT rather than a gap, R05 moves to an instance surface, and R08's absent-report default is fail-closed (unreported ⇒ dark matter, off the map rather than exposed by omission). Per-state join rules compose with the separate `open|closed` join policy ([task 1002817](https://cloudbongos.com/builders#/task/1002817)) by one rule: **visibility sets the ceiling, join policy may only narrow** — otherwise the two settings are a coin-flip decided by evaluation order. Finally, `stealth` COLLIDES with the existing instance-wide pre-launch password gate (`STEALTH_PASSWORD`, `src/bongos/stealth-gate.js`), which means nearly the opposite (a whole instance made unreadable vs a project publicly on the map, anonymously); per ADR 0174 the product meaning keeps the word and the infra rename is filed separately rather than decided by an ADR about visibility. Rejected: a stored 4-valued enum (makes `unlisted` compete with `private`, and lets publishable+unlisted disagree), a separate `published` boolean (can drift from the identity it summarises; derived cannot), and keeping `featured` as the visibility gate (an owner who sets public and appears nowhere has not been given control).](<redacted>.md) | platform-identity / project visibility |
259
+ | 0183 | [**A done-when criterion closes itself; the review queue becomes a place to look** ([task 1002069](https://cloudbongos.com/builders#/task/1002069), goal 1000072, owner request 2026-07-05). ADR 0086 §6 made `satisfied` reachable exactly one way — a Metic+ calling `POST /done-when/:id/satisfy` — even though the signal it gated on is unambiguous (**every** gating task shipped) and a human confirming it adds no information. When nobody runs `/goal-review` the result is not a careful pause but a **lying board**: this session measured goal 1000072 at `6/9 shipped, 0/5 criteria`. Now one helper, `doneWhen.autoSatisfyShippedCriteria(exec, {taskId})`, runs from **two** places for two different reasons — inside `shipTask`'s txn (scoped, **immediate**, on the txn client so a rolled-back ship cannot leave a goal achieved) and unscoped on every `publish-reconciler` tick (**backlog drain** for criteria whose tasks shipped before this existed, since nothing will ship against them again, plus **self-heal**). Idempotent by construction — it reads only `satisfied=false` rows — which is what makes an every-tick sweep safe. **The load-bearing subtlety is the delivery guard.** Auto-close needs BOTH "nothing still pending" AND **≥ 1 task actually `shipped`**; the second is not redundant, because since [task 1002651](https://cloudbongos.com/builders#/task/1002651) made `abandoned` terminal-not-pending, a criterion whose tasks were **all cut** satisfies the first clause *vacuously* and would auto-close on ZERO delivered work, cascading its goal to `achieved` (measured: `buildCriterionProgress` returns `pending_review:true` for exactly that shape). Yet `pending_review` **keeps** that wider meaning on purpose — it asks "should a human LOOK at this", and 1002651 chose that an all-abandoned criterion surfaces so someone decides whether it still means anything. So: everything that auto-closes was flagged; not everything flagged auto-closes. An earlier draft "aligned" the two predicates and broke that intent — `tests/criterion_progress.mjs` caught it; **do not re-align them**, the gap is the design. `/goal-review` is kept, demoted from gate to viewing surface; manual `POST /satisfy` stays for what automation cannot judge (a criterion with no linked tasks never auto-closes). Honest limits recorded: auto-satisfy cannot help a criterion nothing is LINKED to, and the in-txn close logs before commit (accepted — threading the summary out through `withTx` would cost ~5 lines in the over-threshold `db.js` under shrink-only ratchet policy). Rejected: sweep-only (up to 5 min to see your own goal close), hook-only (never drains the backlog), a stored `pending_review` column (second source of truth), deleting `/goal-review`.](<redacted>.md) | lifecycle / goal tier |
259
260
 
260
261
  > ⚠️ **Numbering collision (known):** two ADRs share `0008`. The numbers were assigned in parallel sessions before the lock could be enforced. The files are kept under their existing filenames to preserve git history, but the table disambiguates them as `0008-a` / `0008-b`. New ADRs should resume at `0040` to avoid further collisions. (`0024` is also a real on-disk duplicate: the cloneable-repo/local-first-memory ADR and the multi-agent-system-architecture ADR were both numbered `0024` in parallel; both keep their filenames, disambiguated as `0024-a` / `0024-b` like `0008`. Likewise `0025` ended up with two on-disk files — the offsite-backup ADR and the structured-criterion↔task-link ADR — both kept under their existing filenames and disambiguated as `0025-a` / `0025-b`; separately, the BFG ADR had also claimed `0025` on 2026-05-30 and yielded to `0026`. A third happened 2026-06-06: `0036` was claimed in parallel by the builders-subdomain ADR ([#726](https://example.com/builders#/task/726)) and this Discord-channels ADR ([#727](https://example.com/builders#/task/727)); the Discord-channels ADR yielded to `0037`. A fourth landed 2026-06-10: `0044` was claimed in parallel by the palette-replacement ADR and the per-box game-preview ADR ([#897](https://example.com/builders#/task/897)); both keep their filenames, disambiguated as `0044-a` / `0044-b` like `0008`. A fifth was caught pre-land 2026-06-13: `0050` was claimed in parallel by the device-flow-admission ADR ([#1000](https://example.com/builders#/task/1000)) and the sandbox-for-everyone ADR ([#1001](https://example.com/builders#/task/1001)); the latter yielded to `0052` before merging, so there is no `0050` duplicate. A sixth was caught pre-land 2026-06-21: the tool-agnostic-design-layer ADR ([#1375](https://example.com/builders#/task/1375)) first collided at `0079` with the value-gated-autonomous-engagement ADR, then at `0080` with the llm-cache-api-transport ADR (both part of the 0075–0080 LLM-cost-reduction series, landed on `main` in parallel); it yielded to `0081` before merging, so there is no `0079`/`0080` design-layer duplicate. A seventh landed 2026-06-23: `0084` was claimed in parallel by the auto-derived-per-task-rank-floor ADR and the remove-default-spend-cap ADR (task 1499); the rank-floor ADR landed on `main` first, so the spend-cap ADR yielded to `0085`, leaving no `0084` duplicate. An eighth landed 2026-06-27: `0095` was claimed in parallel by the borrowed-memory-and-retrieval-concepts ADR (PR #459, landed first) and the cross-agent-context-management ADR ([#1651](https://example.com/builders#/task/1651), PR #460); both keep their filenames, disambiguated as `0095-a` / `0095-b` like `0008`. These two are companions — `0095-a` adopts the memory/retrieval concepts and explicitly defers the grep-vs-semantic question to `0095-b`.)