@bongos/core 1.19.591 → 1.19.593

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 (42) hide show
  1. package/.bongos-core.json +72 -42
  2. package/.claude/skills/planning-session/SKILL.md +2 -2
  3. package/clients/bongos-client/README.md +1 -1
  4. package/clients/bongos-client/bongos-client.global.js +3 -1
  5. package/clients/bongos-client/index.cjs +3 -1
  6. package/clients/bongos-client/index.d.ts +6 -2
  7. package/clients/bongos-client/index.mjs +3 -1
  8. package/docs/adr/0157-archon-is-rank-and-identity-only.md +2 -0
  9. package/docs/api/openapi.json +103 -7
  10. package/docs/api-reference.md +4 -3
  11. package/docs/copy-inventory.md +135 -116
  12. package/docs/copy-registry.json +319 -138
  13. package/docs/module-api-changelog.md +4 -0
  14. package/migrations/core_233_versions_one_planning_idx.sql +47 -0
  15. package/modules/dev-box/app/src/vendor/bongos-client.cjs +3 -1
  16. package/modules/government/catalog.js +20 -11
  17. package/modules/government/migrations/government_012_version_create_archon.sql +45 -0
  18. package/modules/hall-ui/public/goals-render.js +182 -6
  19. package/modules/hall-ui/public/goals.css +51 -0
  20. package/modules/hall-ui/public/roadmap.css +5 -0
  21. package/modules/hall-ui/public/roadmap.js +25 -0
  22. package/modules/hall-ui/public/task-detail.js +22 -11
  23. package/modules/lifecycle/db-goals.js +34 -2
  24. package/modules/lifecycle/db-versions.js +195 -3
  25. package/modules/lifecycle/db.js +4 -1
  26. package/modules/lifecycle/routes/goals.js +15 -1
  27. package/modules/lifecycle/routes/version-route-authz.js +171 -1
  28. package/modules/lifecycle/routes/versions.js +130 -10
  29. package/package-lock.json +2 -2
  30. package/package.json +1 -1
  31. package/scripts/gds/triage.js +60 -26
  32. package/src/module-api.js +1 -1
  33. package/tests/goal_archive_hall.mjs +198 -0
  34. package/tests/government_require_permission.mjs +7 -3
  35. package/tests/government_seed.mjs +101 -9
  36. package/tests/one_planning_version.mjs +25 -8
  37. package/tests/promote_goal_id.mjs +85 -30
  38. package/tests/publish_reconciler.mjs +35 -5
  39. package/tests/task_detail_ui.mjs +36 -9
  40. package/tests/version_build_slot.mjs +157 -0
  41. package/tests/version_close_route.mjs +261 -0
  42. package/tests/version_override_visibility.mjs +176 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Bongos API reference
4
4
 
5
- > **Generated from the live route files** — the route file is authoritative. 359 endpoints across 58 route files.
5
+ > **Generated from the live route files** — the route file is authoritative. 360 endpoints across 58 route files.
6
6
  > Machine-readable spec: [`docs/api/openapi.json`](api/openapi.json) (OpenAPI 3.1). Rendered docs site: **`/docs`** (e.g. `cloudbongos.com/docs`).
7
7
 
8
8
  Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/<redacted>.md)): `public` < `any-builder` < `metic+archon` < `archon`.
@@ -621,12 +621,13 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/<redacted>
621
621
  | GET | `/api/bongos/tasks/peer-votes/feed` | `any-builder` | — | GET /tasks/peer-votes/feed — recent confirmed/shipped work by OTHER builders, each with its net vote total and the caller's own current v… |
622
622
  | POST | `/api/bongos/tasks/peer-votes/tally` | `metic+archon` | — | POST /tasks/peer-votes/tally — fold matured votes (≥7 days old, not yet counted) into karma_log, one net row per shipping builder, then m… |
623
623
 
624
- ## `versions` (7)
624
+ ## `versions` (8)
625
625
 
626
626
  | Method | Path | Rank | Body | Description |
627
627
  |---|---|---|---|---|
628
628
  | GET | `/api/bongos/versions` | `public` | — | read-only version list; mirrors /public/versions. |
629
- | POST | `/api/bongos/versions` | `metic+archon` | `id`, `name`, `status`, `track`, `done_when`, `scope_doc_path`, `criteria` | POST /versions — create a version + its done-when criteria in one call. |
629
+ | POST | `/api/bongos/versions` | `archon` | `id`, `name`, `status`, `track`, `done_when`, `scope_doc_path`, `criteria` | POST /versions — create a version + its done-when criteria in one call. |
630
+ | POST | `/api/bongos/versions/:id/close` | `archon` | `reason`, `dispositions` | POST /versions/:id/close — the move a version has never had (BV1.R12, task 1003599, goal 1000086, ADR 0250 D5, ADR 0263 §5). |
630
631
  | GET | `/api/bongos/versions/:id/done-when` | `public` | — | Public: the status dashboard (status.<apex>) fetches this every 60s alongside other public/* surfaces. |
631
632
  | POST | `/api/bongos/versions/:id/done-when` | `metic+archon` | `criterion_id`, `criterion_md`, `goal_id`, `sort_order` | Auth (Metic+, then the goal's own authority): create a done-when criterion at RUNTIME. |
632
633
  | GET | `/api/bongos/versions/:id/progress` | `public` | — | Per-criterion progress rollup: each done-when criterion → the tasks that gate it (task_criteria, migration 055) → live statuses → what re… |