@bongos/core 1.19.804 → 1.19.806

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 (241) hide show
  1. package/.bongos-core.json +267 -242
  2. package/.claude/skills/ask-for-help/SKILL.md +6 -6
  3. package/.claude/skills/backlog-review/SKILL.md +1 -1
  4. package/.claude/skills/blocker-review/SKILL.md +7 -7
  5. package/.claude/skills/blocker-solve/SKILL.md +5 -5
  6. package/.claude/skills/bug-triage/SKILL.md +7 -7
  7. package/.claude/skills/builder-claim/SKILL.md +3 -3
  8. package/.claude/skills/builder-cost/SKILL.md +2 -2
  9. package/.claude/skills/builder-end/SKILL.md +2 -2
  10. package/.claude/skills/builder-exit/SKILL.md +7 -7
  11. package/.claude/skills/builder-key/SKILL.md +2 -2
  12. package/.claude/skills/builder-reauth/SKILL.md +2 -2
  13. package/.claude/skills/builder-redteam/SKILL.md +7 -7
  14. package/.claude/skills/builder-release/SKILL.md +2 -2
  15. package/.claude/skills/builder-sequence/SKILL.md +1 -1
  16. package/.claude/skills/builder-setup/SKILL.md +3 -3
  17. package/.claude/skills/builder-ship/SKILL.md +1 -1
  18. package/.claude/skills/builder-stage/SKILL.md +1 -1
  19. package/.claude/skills/builder-start/SKILL.md +1 -1
  20. package/.claude/skills/fix-task/SKILL.md +4 -4
  21. package/.claude/skills/goal-create/SKILL.md +18 -18
  22. package/.claude/skills/goal-review/SKILL.md +7 -7
  23. package/.claude/skills/grade-audit/SKILL.md +5 -5
  24. package/.claude/skills/grade-recover/SKILL.md +4 -4
  25. package/.claude/skills/grader-health/SKILL.md +6 -6
  26. package/.claude/skills/idea-triage/SKILL.md +14 -14
  27. package/.claude/skills/merge-mode/SKILL.md +3 -3
  28. package/.claude/skills/planning-session/SKILL.md +20 -20
  29. package/.claude/skills/priority-session/SKILL.md +10 -10
  30. package/.claude/skills/recall/SKILL.md +1 -1
  31. package/.claude/skills/scan-before-install/SKILL.md +3 -3
  32. package/.claude/skills/status/SKILL.md +2 -2
  33. package/.claude/skills/strand-fix/SKILL.md +2 -2
  34. package/clients/bongos-client/README.md +1 -1
  35. package/clients/bongos-client/bongos-client.global.js +2 -0
  36. package/clients/bongos-client/index.cjs +2 -0
  37. package/clients/bongos-client/index.d.ts +2 -0
  38. package/clients/bongos-client/index.mjs +2 -0
  39. package/docs/api/openapi.json +45 -11
  40. package/docs/api-reference.md +11 -10
  41. package/docs/copy-inventory.md +47 -34
  42. package/docs/copy-registry.json +200 -72
  43. package/docs/module-api-changelog.md +4 -0
  44. package/modules/builder-settings/profile-nudge-prefs.js +1 -1
  45. package/modules/builder-settings/render-prefs.js +1 -1
  46. package/modules/dev-box/app/README.md +1 -1
  47. package/modules/dev-box/app/src/gds-client.js +11 -9
  48. package/modules/dev-box/app/src/vendor/bongos-client.cjs +2 -0
  49. package/modules/dev-box/app/test/unit.mjs +13 -13
  50. package/modules/dev-box/box-access.js +3 -3
  51. package/modules/dev-box/box-onboard.js +7 -7
  52. package/modules/discord/bug-attachments.js +1 -1
  53. package/modules/economy/cost-classify.js +6 -6
  54. package/modules/grading/grader-rubric.json +1 -1
  55. package/modules/grading/grader-score.js +1 -1
  56. package/modules/hall-ui/module.json +1 -1
  57. package/modules/hall-ui/public/drachmae.js +3 -3
  58. package/modules/hall-ui/public/goals-page.js +1 -1
  59. package/modules/hall-ui/public/goals-render.js +144 -22
  60. package/modules/hall-ui/public/goals.css +16 -1
  61. package/modules/hall-ui/public/idea.js +1 -1
  62. package/modules/hall-ui/public/md-reader.js +1 -1
  63. package/modules/hall-ui/public/people.html +1 -1
  64. package/modules/hall-ui/public/people.js +2 -2
  65. package/modules/hall-ui/public/primer.js +4 -4
  66. package/modules/hall-ui/public/roster.js +1 -1
  67. package/modules/hall-ui/public/shell.js +1 -1
  68. package/modules/hall-ui/public/task.js +1 -1
  69. package/modules/ideas/inbox.js +2 -2
  70. package/modules/lifecycle/db-analytics.js +1 -1
  71. package/modules/lifecycle/done-when.js +4 -4
  72. package/modules/lifecycle/version-close.js +1 -1
  73. package/modules/memory/learnings.js +2 -2
  74. package/modules/memory/memory.js +1 -1
  75. package/modules/onboarding/onboarding.js +1 -1
  76. package/modules/platform-identity/routes/my-projects.js +1 -1
  77. package/modules/platform-identity/routes/sso.js +2 -2
  78. package/modules/public-landing/public/index.html +2 -2
  79. package/modules/public-landing/public/projects-floor.states.json +1 -1
  80. package/modules/public-landing/public/projects.html +1 -1
  81. package/modules/public-landing/public/projects.states.json +1 -1
  82. package/modules/sessions/db.js +120 -0
  83. package/modules/sessions/module.json +2 -2
  84. package/modules/sessions/pollers/session-upload-health.js +111 -0
  85. package/modules/sessions/pulse.js +2 -2
  86. package/modules/sessions/routes/sessions.js +46 -0
  87. package/modules/sessions/upload-health.js +197 -0
  88. package/modules/status-ui/module.json +1 -1
  89. package/modules/status-ui/public/explore.js +1 -1
  90. package/package-lock.json +2 -2
  91. package/package.json +1 -1
  92. package/scripts/gds/agent-invoke.js +3 -3
  93. package/scripts/gds/api.js +4 -4
  94. package/scripts/gds/api.sh +1 -1
  95. package/scripts/gds/architect-audit.js +1 -1
  96. package/scripts/gds/artifact-audit.js +2 -2
  97. package/scripts/gds/audit-ships.js +2 -2
  98. package/scripts/gds/backfill-cost.js +1 -1
  99. package/scripts/gds/backfill-sessions.js +1 -1
  100. package/scripts/gds/backfill-subagent-rewards.js +1 -1
  101. package/scripts/gds/backfill-task-rewards.js +2 -2
  102. package/scripts/gds/box-auth-check.js +1 -1
  103. package/scripts/gds/box-sync.js +3 -3
  104. package/scripts/gds/box.js +10 -10
  105. package/scripts/gds/build-cli-package.js +3 -3
  106. package/scripts/gds/capture.js +2 -2
  107. package/scripts/gds/ci-grade.js +1 -1
  108. package/scripts/gds/claim-recall.js +2 -2
  109. package/scripts/gds/cli-lib.js +3 -3
  110. package/scripts/gds/context-pack.js +1 -1
  111. package/scripts/gds/copy-apply.js +2 -2
  112. package/scripts/gds/dev-lib.js +2 -2
  113. package/scripts/gds/fetch-art-key.js +2 -2
  114. package/scripts/gds/fetch-sound-prefs.js +3 -3
  115. package/scripts/gds/grade-smoke.js +1 -1
  116. package/scripts/gds/hooks/pre-push.js +1 -1
  117. package/scripts/gds/init.js +9 -9
  118. package/scripts/gds/key-card.js +1 -1
  119. package/scripts/gds/learning-capture.js +2 -2
  120. package/scripts/gds/linkify-refs.js +2 -2
  121. package/scripts/gds/local-preview-lib.js +1 -1
  122. package/scripts/gds/login.js +11 -10
  123. package/scripts/gds/main-audit.js +1 -1
  124. package/scripts/gds/newcomer-floor.config.json +1 -1
  125. package/scripts/gds/newcomer-floor.js +2 -2
  126. package/scripts/gds/newcomer-floor.templates.json +2 -2
  127. package/scripts/gds/onboarding-ship.js +1 -1
  128. package/scripts/gds/paste-token.js +3 -3
  129. package/scripts/gds/portability-smoke-memory.sh +5 -5
  130. package/scripts/gds/prove-strict-versioning.js +2 -2
  131. package/scripts/gds/provision-net.js +2 -2
  132. package/scripts/gds/provision-units.js +3 -3
  133. package/scripts/gds/pulse.js +2 -2
  134. package/scripts/gds/push-path-brief.js +2 -2
  135. package/scripts/gds/reauth.js +1 -1
  136. package/scripts/gds/recall.js +1 -1
  137. package/scripts/gds/redteam-patrol.js +3 -3
  138. package/scripts/gds/render-ideas.js +5 -5
  139. package/scripts/gds/repo-metrics.js +1 -1
  140. package/scripts/gds/sandbox-stage.js +3 -3
  141. package/scripts/gds/seed-adopt-tasks.js +3 -3
  142. package/scripts/gds/seed-board-room-tasks.js +1 -1
  143. package/scripts/gds/seed-bongos-app-tasks.js +2 -2
  144. package/scripts/gds/seed-bongos-coreB-tranche1-tasks.js +3 -3
  145. package/scripts/gds/seed-bongos-coreB-tranche2-tasks.js +4 -4
  146. package/scripts/gds/seed-bongos-tasks.js +5 -5
  147. package/scripts/gds/seed-bongos-v1-idea-routing-tasks.js +1 -1
  148. package/scripts/gds/seed-bongos-v1-seo-tasks.js +1 -1
  149. package/scripts/gds/seed-bv1-community-tasks.js +1 -1
  150. package/scripts/gds/seed-bv1-privacy-invites-tasks.js +1 -1
  151. package/scripts/gds/seed-bv1-profile-page-tasks.js +1 -1
  152. package/scripts/gds/seed-bv1-profiles-tasks.js +1 -1
  153. package/scripts/gds/seed-bv1-r01-delta-tasks.js +1 -1
  154. package/scripts/gds/seed-gds-v4-tasks.js +3 -3
  155. package/scripts/gds/seed-medusa-tasks.js +1 -1
  156. package/scripts/gds/seed-productization-tasks.js +1 -1
  157. package/scripts/gds/seed-project-admin-console-tasks.js +1 -1
  158. package/scripts/gds/seed-provisioning-tasks.js +2 -2
  159. package/scripts/gds/seed-strict-versioning-tasks.js +3 -3
  160. package/scripts/gds/seed-v2-world-tasks.js +2 -2
  161. package/scripts/gds/seed-verify-criteria.js +1 -1
  162. package/scripts/gds/session-digest.js +1 -1
  163. package/scripts/gds/session.js +2 -2
  164. package/scripts/gds/setup.js +7 -7
  165. package/scripts/gds/ship-flow.js +3 -3
  166. package/scripts/gds/ship-grade-steps.js +3 -3
  167. package/scripts/gds/ship-memory-sync.js +1 -1
  168. package/scripts/gds/ship-session-upload.js +3 -3
  169. package/scripts/gds/smoke-batch-claim.sh +10 -10
  170. package/scripts/gds/smoke-batch-release.sh +14 -14
  171. package/scripts/gds/smoke-claim-consistency.sh +19 -19
  172. package/scripts/gds/smoke-dependencies.sh +9 -9
  173. package/scripts/gds/smoke-write.sh +11 -11
  174. package/scripts/gds/start.js +1 -1
  175. package/scripts/gds/status.js +2 -2
  176. package/scripts/gds/strand-watch.js +1 -1
  177. package/scripts/gds/triage.js +4 -4
  178. package/scripts/gds/version-close.js +2 -2
  179. package/scripts/hall-preview/README.md +1 -1
  180. package/scripts/hall-preview/server.js +1 -1
  181. package/src/bongos/auth-admission.js +3 -3
  182. package/src/bongos/auth-idp.js +2 -2
  183. package/src/bongos/auth.js +3 -3
  184. package/src/bongos/db.js +2 -2
  185. package/src/bongos/llm-cache.js +2 -2
  186. package/src/bongos/metrics.js +1 -1
  187. package/src/bongos/middleware/audit.js +3 -3
  188. package/src/bongos/middleware/rate-limit.js +1 -1
  189. package/src/bongos/platform-visibility-gate.js +2 -2
  190. package/src/bongos/routes/_helpers.js +1 -1
  191. package/src/bongos/routes/audit-log.js +1 -1
  192. package/src/bongos/routes/auth.js +5 -5
  193. package/src/bongos/routes/backup.js +1 -1
  194. package/src/bongos/routes/builders.js +1 -1
  195. package/src/bongos/routes/instance.js +1 -1
  196. package/src/bongos/routes/live.js +1 -1
  197. package/src/bongos/routes/me.js +2 -2
  198. package/src/bongos/routes/modules.js +2 -2
  199. package/src/bongos/routes/public.js +1 -1
  200. package/src/bongos/routes/security.js +4 -4
  201. package/src/bongos/routes.js +1 -1
  202. package/src/bongos/serve-internal.js +6 -6
  203. package/src/branding.js +1 -1
  204. package/src/module-api.js +1 -1
  205. package/src/module-seams.js +2 -2
  206. package/src/platform-server.js +2 -2
  207. package/tests/api_alias_exceptions.mjs +67 -0
  208. package/tests/application_echo.mjs +12 -12
  209. package/tests/artifact_audit.mjs +1 -1
  210. package/tests/auth_page_gate.mjs +4 -4
  211. package/tests/auth_web_recovery.mjs +11 -11
  212. package/tests/bongos_login.mjs +7 -4
  213. package/tests/box_env.mjs +6 -6
  214. package/tests/bug_attachments.mjs +1 -1
  215. package/tests/cli_sessions.mjs +1 -1
  216. package/tests/dev_lib.mjs +1 -1
  217. package/tests/discord_bugs.mjs +2 -2
  218. package/tests/discord_inbound.mjs +2 -2
  219. package/tests/explore_visible_states.mjs +1 -1
  220. package/tests/goal_invite_consent.mjs +307 -0
  221. package/tests/government_page_gates.mjs +1 -1
  222. package/tests/hall_reference_world.mjs +1 -1
  223. package/tests/idea_ideate_full.mjs +1 -1
  224. package/tests/idp_federation.mjs +2 -2
  225. package/tests/llm-cache.mjs +1 -1
  226. package/tests/manage_manifest_shared_read.mjs +3 -3
  227. package/tests/people_directory_clip.mjs +1 -1
  228. package/tests/planning_session_skill.mjs +1 -1
  229. package/tests/platform_visibility_gate.mjs +15 -15
  230. package/tests/profile_route.mjs +25 -25
  231. package/tests/projects_hub.mjs +2 -2
  232. package/tests/provision.mjs +2 -2
  233. package/tests/provision_settings_apply.mjs +4 -4
  234. package/tests/sandbox_stage.mjs +8 -8
  235. package/tests/scouting_owner_access_and_reach.mjs +3 -3
  236. package/tests/session_upload_health.mjs +329 -0
  237. package/tests/setup_device_flow_fallback.mjs +1 -1
  238. package/tests/skill_ask_for_help.mjs +3 -3
  239. package/tests/skill_grade_audit.mjs +2 -2
  240. package/tests/skill_grader_health.mjs +3 -3
  241. package/tests/smoke_write_contract.mjs +1 -1
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  // Renders generative-ideas.md from the GDS idea_inbox table.
3
3
  //
4
- // Reads via GET /api/gds/inbox (authenticated). Writes a generated markdown
4
+ // Reads via GET /api/bongos/inbox (authenticated). Writes a generated markdown
5
5
  // view to the repo's top-level generative-ideas.md. The file is overwritten
6
6
  // on every run — manual edits will not survive. Capture via /builder-capture
7
7
  // or `node scripts/gds/capture.js`; triage via /builder-triage or the API.
8
8
  //
9
- // Note (2026-05-10): the current GET /api/gds/inbox endpoint returns open
9
+ // Note (2026-05-10): the current GET /api/bongos/inbox endpoint returns open
10
10
  // ideas only (see src/bongos/inbox.js listOpenIdeas). The "Recently Promoted",
11
11
  // "Recently Discarded", and "Merged" sections will be empty until the API
12
12
  // is extended to expose those statuses. The script is forward-compatible:
@@ -33,7 +33,7 @@ const HEADER = `<!-- GENERATED FILE — Edit via /builder-capture or /builder-tr
33
33
  >
34
34
  > **Capture an idea:** \`node scripts/gds/capture.js "short title"\` (or the \`/builder-capture\` slash command).
35
35
  >
36
- > **Triage open ideas:** \`/idea-triage\` (or \`PATCH /api/gds/inbox/<id>\` with \`{ status: 'promoted' | 'discarded' | 'merged', promoted_to_task_id: N }\`).
36
+ > **Triage open ideas:** \`/idea-triage\` (or \`PATCH /api/bongos/inbox/<id>\` with \`{ status: 'promoted' | 'discarded' | 'merged', promoted_to_task_id: N }\`).
37
37
  `;
38
38
 
39
39
  function fmtTimestamp(iso) {
@@ -102,13 +102,13 @@ function renderSection(heading, ideas, emptyMsg) {
102
102
  }
103
103
 
104
104
  async function fetchAllIdeas() {
105
- // GET /api/gds/inbox currently returns open ideas only. We request the max
105
+ // GET /api/bongos/inbox currently returns open ideas only. We request the max
106
106
  // limit so this works as the inbox grows. When the API is extended to
107
107
  // return other statuses, this script will pick them up automatically.
108
108
  const api = await cliClient();
109
109
  const { ok, status, data } = await api.inbox.getInbox({ query: { limit: 500 } });
110
110
  if (!ok) {
111
- throw new Error(`GET /api/gds/inbox failed: HTTP ${status} ${JSON.stringify(data)}`);
111
+ throw new Error(`GET /api/bongos/inbox failed: HTTP ${status} ${JSON.stringify(data)}`);
112
112
  }
113
113
  return data.ideas || [];
114
114
  }
@@ -5,7 +5,7 @@
5
5
  // "You can't manage what you don't measure." This dependency-free CLI shells
6
6
  // out to git / wc / knip and emits a JSON snapshot of repo health, then upserts
7
7
  // it into repo_health_snapshots (idempotent on calendar date — rerun same day
8
- // = upsert, not a new row). The latest row feeds /api/gds/public/repo-health,
8
+ // = upsert, not a new row). The latest row feeds /api/bongos/public/repo-health,
9
9
  // which renders a trend tile on status.example.com.
10
10
  //
11
11
  // What the snapshot contains:
@@ -219,11 +219,11 @@ function restartPreview(deps = {}) {
219
219
  // task 1002607: the discriminator probe URL — same origin as the health URL, at
220
220
  // the API healthz path only the FULL server mounts. Pure + exported for tests.
221
221
  function apiHealthzProbeUrl(healthUrl) {
222
- try { return new URL('/api/gds/healthz', healthUrl).toString(); } catch { return null; }
222
+ try { return new URL('/api/bongos/healthz', healthUrl).toString(); } catch { return null; }
223
223
  }
224
224
 
225
225
  // task 1002607: is the thing answering the health URL actually the MAIN server?
226
- // The game-only preview entry (ADR 0052) mounts no /api/gds, so a 200 from the
226
+ // The game-only preview entry (ADR 0052) mounts no /api/bongos, so a 200 from the
227
227
  // API healthz proves the answerer is the full server — whose default bind is the
228
228
  // SAME 127.0.0.1:3000 the box health check probes — not the preview. A probe
229
229
  // error/404 means "not the main server", which is the expected preview answer.
@@ -254,7 +254,7 @@ async function waitHealthy(deps = {}) {
254
254
  if (await answeredByMainServer(healthUrl, fetchImpl)) {
255
255
  return {
256
256
  ok: false,
257
- reason: `${healthUrl} is answered by the MAIN server (/api/gds/healthz responded 200), not the game preview — the preview did not start (its port is taken by the full server)`,
257
+ reason: `${healthUrl} is answered by the MAIN server (/api/bongos/healthz responded 200), not the game preview — the preview did not start (its port is taken by the full server)`,
258
258
  };
259
259
  }
260
260
  return { ok: true };
@@ -38,7 +38,7 @@ const TASKS = [
38
38
  const idByRef = {};
39
39
  // Phase 1: create tasks (idempotent on source_ref) + link the criterion.
40
40
  for (const t of TASKS) {
41
- const create = await apiCall('POST', '/api/gds/tasks', {
41
+ const create = await apiCall('POST', '/api/bongos/tasks', {
42
42
  version_id: 'BONGOS-V1',
43
43
  goal_id: GOAL_ID,
44
44
  title: t.title,
@@ -54,7 +54,7 @@ const TASKS = [
54
54
  const id = task && task.id;
55
55
  if (!id) { console.log(` ${t.ref}: CREATE FAILED — ${create.status} ${JSON.stringify(create.data).slice(0, 160)}`); continue; }
56
56
  idByRef[t.ref] = id;
57
- const link = await apiCall('POST', `/api/gds/tasks/${id}/criteria`, { criterion_ids: t.crit });
57
+ const link = await apiCall('POST', `/api/bongos/tasks/${id}/criteria`, { criterion_ids: t.crit });
58
58
  console.log(` ${t.ref} -> task ${id} (${t.kind}, P${t.priority}, goal ${task.goal_id}) · criterion ${link.status === 200 ? 'ok' : (JSON.stringify(link.data).slice(0, 120))}`);
59
59
  }
60
60
  // Phase 2: dependency edges (idempotent on (task_id, depends_on_task_id)).
@@ -65,7 +65,7 @@ const TASKS = [
65
65
  const localDepIds = t.deps.map((d) => idByRef[d]).filter(Boolean);
66
66
  const allDeps = [...localDepIds, ...t.extDeps];
67
67
  for (const depId of allDeps) {
68
- const r = await apiCall('POST', `/api/gds/tasks/${id}/dependencies`, { depends_on_task_id: depId });
68
+ const r = await apiCall('POST', `/api/bongos/tasks/${id}/dependencies`, { depends_on_task_id: depId });
69
69
  console.log(` ${t.ref}(${id}) -> ${depId} ${r.status === 200 || r.status === 201 ? 'ok' : (JSON.stringify(r.data).slice(0, 120))}`);
70
70
  }
71
71
  }
@@ -15,7 +15,7 @@ const H = { Authorization: `Bearer ${TOKEN}`, 'Content-Type': 'application/json'
15
15
  const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
16
16
  async function api(method, path, body, _tries = 0) {
17
17
  await sleep(500); // base throttle to stay under the per-IP rate limit
18
- const res = await fetch(`${BASE}/api/gds${path}`, {
18
+ const res = await fetch(`${BASE}/api/bongos${path}`, {
19
19
  method, headers: H, body: body ? JSON.stringify(body) : undefined,
20
20
  });
21
21
  const text = await res.text();
@@ -6,8 +6,8 @@
6
6
  // Design home: the "Bongos App — V1" plan artifact (favicon 🥁).
7
7
  //
8
8
  // Shape mirrors seed-bongos-tasks.js exactly:
9
- // - POST /api/gds/tasks { version_id:'BONGOS-V1', criterion_ids:['C1'], ... }
10
- // - POST /api/gds/tasks/:id/dependencies { depends_on_task_ids:[...] }
9
+ // - POST /api/bongos/tasks { version_id:'BONGOS-V1', criterion_ids:['C1'], ... }
10
+ // - POST /api/bongos/tasks/:id/dependencies { depends_on_task_ids:[...] }
11
11
  // - idempotent on source_ref (skips already-created); deps idempotent server-side.
12
12
  // Run migration 120_bongos_v1_planning_seed.sql FIRST so the version + C1..C4 exist.
13
13
  // After this runs, promote the zero-dependency tasks (R01/R02/R03) to 'ready'
@@ -53,12 +53,12 @@ async function post(path, body) {
53
53
  criterion_ids: ['C7'],
54
54
  source: 'planning', source_ref: `BONGOS-V1-coreB-${t.ref}`,
55
55
  };
56
- let { status, json } = await post('/api/gds/tasks', body);
56
+ let { status, json } = await post('/api/bongos/tasks', body);
57
57
  let id = json.id || (json.task && json.task.id);
58
58
  if (!id && t.kind === 'verify') {
59
59
  // memory: kind=verify has 500'd before (idea #357). Fall back, keep going.
60
60
  console.log(` ${t.ref}: kind=verify failed (${json.error || status}); retrying as kind=feature`);
61
- ({ status, json } = await post('/api/gds/tasks', { ...body, kind: 'feature' }));
61
+ ({ status, json } = await post('/api/bongos/tasks', { ...body, kind: 'feature' }));
62
62
  id = json.id || (json.task && json.task.id);
63
63
  }
64
64
  if (!id) { console.log(` ${t.ref}: CREATE FAILED — ${status} ${JSON.stringify(json).slice(0, 160)}`); continue; }
@@ -73,7 +73,7 @@ async function post(path, body) {
73
73
  for (const dep of t.deps) {
74
74
  const depId = idByRef[dep];
75
75
  if (!depId) { console.log(` ${t.ref}: dep ${dep} not created — skip`); continue; }
76
- const { status, json } = await post(`/api/gds/tasks/${id}/dependencies`, { depends_on_task_id: depId });
76
+ const { status, json } = await post(`/api/bongos/tasks/${id}/dependencies`, { depends_on_task_id: depId });
77
77
  console.log(` ${t.ref}(${id}) depends on ${dep}(${depId}) -> ${status === 200 || status === 201 ? 'ok' : (json.error || status)}`);
78
78
  }
79
79
  }
@@ -69,19 +69,19 @@ async function post(path, body) {
69
69
  criterion_ids: ['C7'],
70
70
  source: 'planning', source_ref: `BONGOS-V1-coreB-${t.ref}`,
71
71
  };
72
- let { status, json } = await post('/api/gds/tasks', body);
72
+ let { status, json } = await post('/api/bongos/tasks', body);
73
73
  let id = json.id || (json.task && json.task.id);
74
74
  if (!id && t.kind === 'verify') {
75
75
  // memory: kind=verify has 500'd before (idea #357). Fall back, keep going.
76
76
  console.log(` ${t.ref}: kind=verify failed (${json.error || status}); retrying as kind=feature`);
77
- ({ status, json } = await post('/api/gds/tasks', { ...body, kind: 'feature' }));
77
+ ({ status, json } = await post('/api/bongos/tasks', { ...body, kind: 'feature' }));
78
78
  id = json.id || (json.task && json.task.id);
79
79
  }
80
80
  if (!id) { console.log(` ${t.ref}: CREATE FAILED — ${status} ${JSON.stringify(json).slice(0, 160)}`); continue; }
81
81
  idByRef[t.ref] = id;
82
82
  // Link C7 explicitly (criterion_ids at create is not honored on this build;
83
83
  // the /criteria endpoint is idempotent — re-adding an existing link is a no-op).
84
- const link = await post(`/api/gds/tasks/${id}/criteria`, { criterion_ids: ['C7'] });
84
+ const link = await post(`/api/bongos/tasks/${id}/criteria`, { criterion_ids: ['C7'] });
85
85
  console.log(` ${t.ref} -> task ${id} (${t.kind}, P${t.priority}) · C7 link ${link.status === 200 ? 'ok' : (link.json.error || link.status)}`);
86
86
  }
87
87
  // Phase 2: wire dependencies (idempotent on (task_id, depends_on_task_id)).
@@ -92,7 +92,7 @@ async function post(path, body) {
92
92
  for (const dep of t.deps) {
93
93
  const depId = idByRef[dep];
94
94
  if (!depId) { console.log(` ${t.ref}: dep ${dep} not created — skip`); continue; }
95
- const { status, json } = await post(`/api/gds/tasks/${id}/dependencies`, { depends_on_task_id: depId });
95
+ const { status, json } = await post(`/api/bongos/tasks/${id}/dependencies`, { depends_on_task_id: depId });
96
96
  console.log(` ${t.ref}(${id}) depends on ${dep}(${depId}) -> ${status === 200 || status === 201 ? 'ok' : (json.error || status)}`);
97
97
  }
98
98
  }
@@ -5,8 +5,8 @@
5
5
  // instance 1). Design doc: artifact 02bcca71 (the bongos toolkit).
6
6
  //
7
7
  // Shape mirrors seed-medusa-tasks.js exactly:
8
- // - POST /api/gds/tasks { version_id:'GDS-V4', criterion_ids:['C8'], ... }
9
- // - POST /api/gds/tasks/:id/dependencies { depends_on_task_ids:[...] }
8
+ // - POST /api/bongos/tasks { version_id:'GDS-V4', criterion_ids:['C8'], ... }
9
+ // - POST /api/bongos/tasks/:id/dependencies { depends_on_task_ids:[...] }
10
10
  // - idempotent on source_ref (skips already-created); deps idempotent server-side.
11
11
  //
12
12
  // Display R## numbers are assigned dynamically from the current max V4.R## in
@@ -81,12 +81,12 @@ A \`curl -fsSL https://get.bongos.dev | sh\` bootstrap (detects OS/arch, downloa
81
81
  },
82
82
  {
83
83
  key: 'P4A',
84
- title: 'Instance manifest endpoint — GET /api/gds/instance (brand + modules + repo)',
84
+ title: 'Instance manifest endpoint — GET /api/bongos/instance (brand + modules + repo)',
85
85
  description: `Part of Cloud Bongos / C8. Cross-ref: R53 (branding-contract layer), R54 (feature-module selection). This is the read-API over those two configs — the conda "environment.yml" a CLI fetches to configure itself.
86
86
 
87
87
  A small public, read-only endpoint returning the instance descriptor assembled from the R53 branding contract + the R54 module flags: product/instance name + brand (identity, copy, theme — NO secrets), enabled feature-modules, the GitHub repo binding, the rank ladder, supported auth methods (device-flow / app-pair), admission policy (invite-only vs open), and whether a managed dev-box backend is available. So \`bongos login <url>\` brands itself, knows the repo for \`--local\`, and hides verbs an instance doesn't run (e.g. no \`box\` if dev-box is off). Today GET /healthz returns only { ok, auth_configured } — this is a genuine gap.
88
88
 
89
- **Done when:** GET /api/gds/instance returns a documented manifest assembled from the branding contract + module flags, contains no secrets/topology, is fetchable pre-auth (CORS read), and the CLI can brand + feature-gate itself from it. Depends on R53/R54 so the brand + module sources exist.`,
89
+ **Done when:** GET /api/bongos/instance returns a documented manifest assembled from the branding contract + module flags, contains no secrets/topology, is fetchable pre-auth (CORS read), and the CLI can brand + feature-gate itself from it. Depends on R53/R54 so the brand + module sources exist.`,
90
90
  kind: 'feature', discipline: 'engineer', priority: 3,
91
91
  est_minutes: 240, manual_degree: 2, credits_reward: 50,
92
92
  touches: ['src/bongos/routes/', 'src/bongos/'], criteria: ['C8'], deps: ['R53', 'R54'],
@@ -96,7 +96,7 @@ A small public, read-only endpoint returning the instance descriptor assembled f
96
96
  title: 'bongos login <instance> (instance-agnostic) + stranger access-request flow; folds in init/upgrade',
97
97
  description: `Part of Cloud Bongos / C8. Cross-ref: P1, P4A (manifest), R64 (\`medusa/bongos upgrade\`), R65 (\`init\`), ADR 0050/0057/0059 (admission).
98
98
 
99
- \`bongos login <instance-url>\` fetches the P4A manifest, runs the GitHub device-flow (browser-click, no token paste — the UI-first rule), stores a per-instance scoped session, and brands the CLI for that instance. For someone NOT yet admitted, it files the public POST /api/gds/access-requests (their GitHub username) and polls — telling them "an Archon will approve you with a 👍 in Discord" — until admission flips, then completes sign-in. No GitHub collaborator invite is involved. Default admission is invite-only. Also folds the already-planned \`bongos init\` (scaffold a brand-new instance, R65) and \`bongos upgrade\` (R64) in as subcommands of the same CLI.
99
+ \`bongos login <instance-url>\` fetches the P4A manifest, runs the GitHub device-flow (browser-click, no token paste — the UI-first rule), stores a per-instance scoped session, and brands the CLI for that instance. For someone NOT yet admitted, it files the public POST /api/bongos/access-requests (their GitHub username) and polls — telling them "an Archon will approve you with a 👍 in Discord" — until admission flips, then completes sign-in. No GitHub collaborator invite is involved. Default admission is invite-only. Also folds the already-planned \`bongos init\` (scaffold a brand-new instance, R65) and \`bongos upgrade\` (R64) in as subcommands of the same CLI.
100
100
 
101
101
  **Done when:** \`bongos login <any-instance-url>\` works end-to-end including the not-yet-admitted path (files the request, polls, completes once approved); the CLI is instance-agnostic (no hard-coded example); \`init\`/\`upgrade\` are reachable subcommands.`,
102
102
  kind: 'feature', discipline: 'engineer', priority: 3,
@@ -28,7 +28,7 @@ const H = { Authorization: `Bearer ${TOKEN}`, 'Content-Type': 'application/json'
28
28
  const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
29
29
  async function api(method, path, body, _tries = 0) {
30
30
  await sleep(400); // base throttle to stay under the per-IP rate limit
31
- const res = await fetch(`${BASE}/api/gds${path}`, {
31
+ const res = await fetch(`${BASE}/api/bongos${path}`, {
32
32
  method, headers: H, body: body ? JSON.stringify(body) : undefined,
33
33
  });
34
34
  const text = await res.text();
@@ -16,7 +16,7 @@ const H = { Authorization: `Bearer ${TOKEN}`, 'Content-Type': 'application/json'
16
16
  const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
17
17
  async function api(method, path, body, _tries = 0) {
18
18
  await sleep(400); // base throttle to stay under the per-IP rate limit
19
- const res = await fetch(`${BASE}/api/gds${path}`, {
19
+ const res = await fetch(`${BASE}/api/bongos${path}`, {
20
20
  method, headers: H, body: body ? JSON.stringify(body) : undefined,
21
21
  });
22
22
  const text = await res.text();
@@ -20,7 +20,7 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
20
20
 
21
21
  async function api(method, path, body, _tries = 0) {
22
22
  await sleep(1500);
23
- const r = await apiCall(method, `/api/gds${path}`, body);
23
+ const r = await apiCall(method, `/api/bongos${path}`, body);
24
24
  if (r.status === 429 && _tries < 8) {
25
25
  const wait = (r.data?.error?.details?.retry_after_seconds || 30) + 1;
26
26
  console.log(` …rate-limited, waiting ${wait}s`);
@@ -24,7 +24,7 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
24
24
  // Throttled + 429-aware wrapper (same shape as the sibling seeders).
25
25
  async function api(method, path, body, _tries = 0) {
26
26
  await sleep(1500);
27
- const r = await apiCall(method, `/api/gds${path}`, body);
27
+ const r = await apiCall(method, `/api/bongos${path}`, body);
28
28
  if (r.status === 429 && _tries < 8) {
29
29
  const wait = (r.data?.error?.details?.retry_after_seconds || 30) + 1;
30
30
  console.log(` …rate-limited, waiting ${wait}s`);
@@ -33,7 +33,7 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
33
33
  // is exactly the shape the per-IP limiter is there to catch.
34
34
  async function api(method, path, body, _tries = 0) {
35
35
  await sleep(400);
36
- const r = await apiCall(method, `/api/gds${path}`, body);
36
+ const r = await apiCall(method, `/api/bongos${path}`, body);
37
37
  if (r.status === 429 && _tries < 8) {
38
38
  const wait = (r.data?.error?.details?.retry_after_seconds || 30) + 1;
39
39
  console.log(` …rate-limited, waiting ${wait}s`);
@@ -24,7 +24,7 @@ const H = { Authorization: `Bearer ${TOKEN}`, 'Content-Type': 'application/json'
24
24
  const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
25
25
  async function api(method, path, body, _tries = 0) {
26
26
  await sleep(400); // base throttle to stay under the per-IP rate limit
27
- const res = await fetch(`${BASE}/api/gds${path}`, {
27
+ const res = await fetch(`${BASE}/api/bongos${path}`, {
28
28
  method, headers: H, body: body ? JSON.stringify(body) : undefined,
29
29
  });
30
30
  const text = await res.text();
@@ -29,7 +29,7 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
29
29
  // Throttled + 429-aware wrapper (same shape as the sibling seeders).
30
30
  async function api(method, path, body, _tries = 0) {
31
31
  await sleep(1500);
32
- const r = await apiCall(method, `/api/gds${path}`, body);
32
+ const r = await apiCall(method, `/api/bongos${path}`, body);
33
33
  if (r.status === 429 && _tries < 8) {
34
34
  const wait = (r.data?.error?.details?.retry_after_seconds || 30) + 1;
35
35
  console.log(` …rate-limited, waiting ${wait}s`);
@@ -162,7 +162,7 @@ Nightly sweep (systemd timer modeled on gds-db-backup) indexing: tasks.descripti
162
162
  },
163
163
  {
164
164
  ref: 'R11',
165
- title: 'POST /api/gds/search — lexical hybrid (FTS + trgm) fused with RRF',
165
+ title: 'POST /api/bongos/search — lexical hybrid (FTS + trgm) fused with RRF',
166
166
  description: `**Criterion:** one-call-recall. Cross-ref: V4.R06.
167
167
 
168
168
  requireBuilder-gated search endpoint: websearch_to_tsquery leg + pg_trgm leg fused with Reciprocal Rank Fusion in one SQL CTE; k, filters (source_type, track), source citations in results. Per-builder read limiter (memory.js pattern — the global limiter doesn't cap GETs). Add to smoke-gds.js CHECKS (401 unauth).
@@ -202,7 +202,7 @@ The #1 tool-error class (84 hits): edits/git ops landing in the wrong tree. Add
202
202
  title: 'JSON 404 + hint on API-shaped paths; promote-hint on TASK_NOT_READY 409',
203
203
  description: `**Criterion:** machine-room-ergonomics.
204
204
 
205
- Two self-describing-error fixes: (1) requests to API-shaped paths (/tasks, /gds/*, /api/*) that miss the /api/gds mount get a JSON 404 with a hint instead of the HTML island page (which today causes a secondary JSON.parse fault); (2) the TASK_NOT_READY 409 names the promote endpoint.
205
+ Two self-describing-error fixes: (1) requests to API-shaped paths (/tasks, /gds/*, /api/*) that miss the /api/bongos mount get a JSON 404 with a hint instead of the HTML island page (which today causes a secondary JSON.parse fault); (2) the TASK_NOT_READY 409 names the promote endpoint.
206
206
 
207
207
  **Done when:** both error shapes verified by tests; smoke unaffected.`,
208
208
  kind: 'feature', discipline: 'engineering', priority: 4,
@@ -238,7 +238,7 @@ tests/grader_panel.mjs fails 2/7 on a clean baseline (noted in the 2026-06-08 se
238
238
  title: '/recall skill — one-call project-knowledge search from any session',
239
239
  description: `**Criterion:** one-call-recall. Cross-refs: V4.R11, V4.R12.
240
240
 
241
- New slash skill wrapping POST /api/gds/search via the cross-platform scripts/gds/api.js: query in, cited sources out, with guidance to follow up by reading the real source. Works identically on laptop, dev box, and browser-only sessions.
241
+ New slash skill wrapping POST /api/bongos/search via the cross-platform scripts/gds/api.js: query in, cited sources out, with guidance to follow up by reading the real source. Works identically on laptop, dev box, and browser-only sessions.
242
242
 
243
243
  **Done when:** skill shipped + documented in CLAUDE.md quick-nav; round-trip verified against prod.`,
244
244
  kind: 'feature', discipline: 'engineering', priority: 4,
@@ -56,7 +56,7 @@ Locks: the exact GDS/game boundary; the per-instance branding-contract schema (c
56
56
 
57
57
  A Medusa-only boot (sibling to src/preview-server.js) that builds the Express app, mounts buildGdsRouter() + public-builders/ + public-status/, and constructs NO Colyseus game server and NO Phaser/tile static mounts. The existing game boot (server.js) stays untouched.
58
58
 
59
- **Done when:** a smoke test boots Medusa, reaches /api/gds/health + the hall, and asserts no game route/asset is reachable in the process.`,
59
+ **Done when:** a smoke test boots Medusa, reaches /api/bongos/health + the hall, and asserts no game route/asset is reachable in the process.`,
60
60
  kind: 'infra', discipline: 'engineer', priority: 5,
61
61
  est_minutes: 240, manual_degree: 2, credits_reward: 40,
62
62
  touches: ['server.js', 'src/'], criteria: ['C8'], deps: ['R50'],
@@ -11,7 +11,7 @@
11
11
  // clean" -> C32.
12
12
  //
13
13
  // Shape mirrors seed-bongos-tasks.js exactly:
14
- // - POST /api/gds/tasks { version_id:'BONGOS-V1', criterion_ids:['C32'], ... }
14
+ // - POST /api/bongos/tasks { version_id:'BONGOS-V1', criterion_ids:['C32'], ... }
15
15
  // - idempotent on source_ref (skips already-created)
16
16
  // - display BV1.R## assigned dynamically after the current max (decorative)
17
17
  //
@@ -15,7 +15,7 @@ const SRC = 'planning-session';
15
15
  const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
16
16
  async function api(method, path, body, _tries = 0) {
17
17
  await sleep(400); // base throttle to stay under the per-IP rate limit
18
- const r = await apiCall(method, `/api/gds${path}`, body);
18
+ const r = await apiCall(method, `/api/bongos${path}`, body);
19
19
  const json = r.data || {};
20
20
  if (r.status === 429 && _tries < 8) {
21
21
  const wait = ((json.error && json.error.details && json.error.details.retry_after_seconds) || 30) + 1;
@@ -62,7 +62,7 @@ async function post(path, body) {
62
62
  est_minutes: t.est, goal_id: GOAL,
63
63
  source: 'planning', source_ref: `BONGOS-V1-prov-${t.ref}`,
64
64
  };
65
- const { status, json } = await post('/api/gds/tasks', body);
65
+ const { status, json } = await post('/api/bongos/tasks', body);
66
66
  const id = json.id || (json.task && json.task.id);
67
67
  if (!id) { console.log(` ${t.ref}: CREATE FAILED — ${status} ${JSON.stringify(json).slice(0, 160)}`); continue; }
68
68
  idByRef[t.ref] = id;
@@ -75,7 +75,7 @@ async function post(path, body) {
75
75
  if (!id) continue;
76
76
  const allDeps = [...t.deps.map((d) => idByRef[d]).filter(Boolean), ...t.extDeps];
77
77
  for (const depId of allDeps) {
78
- const { status, json } = await post(`/api/gds/tasks/${id}/dependencies`, { depends_on_task_id: depId });
78
+ const { status, json } = await post(`/api/bongos/tasks/${id}/dependencies`, { depends_on_task_id: depId });
79
79
  console.log(` ${t.ref}(${id}) depends on ${depId} -> ${status === 200 || status === 201 ? 'ok' : (json.error || status)}`);
80
80
  }
81
81
  }
@@ -244,7 +244,7 @@ async function main() {
244
244
  source_ref: `${PREFIX}-${t.ref}`,
245
245
  criterion_ids: t.criteria,
246
246
  };
247
- const r = await throttledWrite('POST', '/api/gds/tasks', body);
247
+ const r = await throttledWrite('POST', '/api/bongos/tasks', body);
248
248
  const id = r.json?.task?.id;
249
249
  if (!id) throw new Error(`No task id back for ${t.ref} (status ${r.status}): ${JSON.stringify(r.json)}`);
250
250
  ids[t.ref] = id;
@@ -256,7 +256,7 @@ async function main() {
256
256
  for (const t of TASKS) {
257
257
  for (const dep of t.deps) {
258
258
  if (!ids[dep]) throw new Error(`${t.ref} depends on unknown ref ${dep}`);
259
- const r = await throttledWrite('POST', `/api/gds/tasks/${ids[t.ref]}/dependencies`, { depends_on_task_id: ids[dep] });
259
+ const r = await throttledWrite('POST', `/api/bongos/tasks/${ids[t.ref]}/dependencies`, { depends_on_task_id: ids[dep] });
260
260
  console.log(` ${t.ref} depends on ${dep} (${ids[dep]}) ${r.status}`);
261
261
  }
262
262
  }
@@ -265,7 +265,7 @@ async function main() {
265
265
  await verifySeedCriteriaLinks({
266
266
  goalId: GOAL,
267
267
  expectedCounts: expectedCriterionCounts(planned),
268
- fetchGoal: (goalId) => api('GET', `/api/gds/goals/${goalId}`),
268
+ fetchGoal: (goalId) => api('GET', `/api/bongos/goals/${goalId}`),
269
269
  });
270
270
 
271
271
  console.log('\nSeed complete. Task ids:');
@@ -187,8 +187,8 @@ const TASKS = [
187
187
  credits_reward: 40, module_key: 'game', requires_rank: 'metic',
188
188
  criterion_ids: ['map-editor'], depends_on_refs: ['ED2', 'E4'] },
189
189
 
190
- { ref: 'ED4', version: 'V3', title: 'V3.W06 — save: rank-gated POST /api/gds/maps/:id validated by mapFormat',
191
- description: 'Save maps back to the game: rank-gated `POST /api/gds/maps/:id`, validated by `mapFormat`, persisted per the S3 (V3.W02) save-model spike. Depends on ED3 (V3.W05) + S3 (V3.W02). Criterion map-editor.',
190
+ { ref: 'ED4', version: 'V3', title: 'V3.W06 — save: rank-gated POST /api/bongos/maps/:id validated by mapFormat',
191
+ description: 'Save maps back to the game: rank-gated `POST /api/bongos/maps/:id`, validated by `mapFormat`, persisted per the S3 (V3.W02) save-model spike. Depends on ED3 (V3.W05) + S3 (V3.W02). Criterion map-editor.',
192
192
  kind: 'feature', discipline: 'engineer', priority: 2, est_minutes: 180, manual_degree: 3,
193
193
  credits_reward: 30, module_key: 'game', requires_rank: 'metic',
194
194
  criterion_ids: ['map-editor'], depends_on_refs: ['ED3', 'S3'] },
@@ -5,7 +5,7 @@
5
5
  // success; only a manual GET /goals rollup caught it, after the fact). A seed
6
6
  // script tallies the criterion_ids it actually POSTed per task into its own
7
7
  // plan, then calls verifySeedCriteriaLinks() as its LAST step to fetch
8
- // GET /api/gds/goals/<id> and diff `criteria[].linked_tasks` against that
8
+ // GET /api/bongos/goals/<id> and diff `criteria[].linked_tasks` against that
9
9
  // plan — loud and non-zero-exit on any mismatch, zero included.
10
10
  //
11
11
  // Transport-agnostic on purpose: seed scripts don't share one HTTP client
@@ -2,7 +2,7 @@
2
2
  // scripts/gds/session-digest.js — BFG 6D session capture on the SessionEnd seam
3
3
  // (ADR 0027; follow-up to #608/#617, idea #178).
4
4
  //
5
- // Uploads the FULL session digest to the BFG corpus (POST /api/gds/sessions)
5
+ // Uploads the FULL session digest to the BFG corpus (POST /api/bongos/sessions)
6
6
  // when a Claude Code session ENDS. Wired as a SessionEnd hook in
7
7
  // .claude/settings.json (sibling to session-cost.js), which pipes
8
8
  // { session_id, transcript_path, cwd, reason } as JSON on stdin.
@@ -11,8 +11,8 @@
11
11
  // --all show the long-tail (everything else that's claimable)
12
12
  // --json machine-readable output
13
13
  //
14
- // Calls POST /api/gds/session/optimize when available; falls back to
15
- // GET /api/gds/tasks/claimable + a deterministic local greedy when the
14
+ // Calls POST /api/bongos/session/optimize when available; falls back to
15
+ // GET /api/bongos/tasks/claimable + a deterministic local greedy when the
16
16
  // endpoint isn't deployed yet (P1 #44 ships it in parallel; P2 #45 the
17
17
  // batch-claim endpoint is also not in flight). The fallback uses the same
18
18
  // scoring rules so the recommendation set is stable either way.
@@ -286,7 +286,7 @@ const { isDeviceFlowDisabled, deviceFlowFallbackLines } = require('./device-flow
286
286
  async function redeemCliToken(token) {
287
287
  let res;
288
288
  try {
289
- res = await fetch(`${API_BASE}/api/gds/me`, { headers: { Authorization: `Bearer ${token}` } });
289
+ res = await fetch(`${API_BASE}/api/bongos/me`, { headers: { Authorization: `Bearer ${token}` } });
290
290
  } catch (err) {
291
291
  console.error(`Could not reach ${API_BASE}: ${err.message}`);
292
292
  return { ok: false, status: 0 };
@@ -392,7 +392,7 @@ async function main() {
392
392
  console.log('');
393
393
  const preExisting = await loadSession();
394
394
  if (preExisting && preExisting.token && !forceFlag) {
395
- dryRunStep(`Would verify existing session at ${SESSION_PATH} via GET /api/gds/me.`);
395
+ dryRunStep(`Would verify existing session at ${SESSION_PATH} via GET /api/bongos/me.`);
396
396
  dryRunStep('If the token is valid: on an interactive shell, would ASK whether to continue as that builder or set up as a different one ([1] continue / [2] sign in again, replacing the saved session). Non-interactive shells keep the existing session. (--force skips the question and re-auths directly.)');
397
397
  dryRunStep('If the token is rejected (401), would fall through to the Device Flow.');
398
398
  } else if (preExisting && forceFlag) {
@@ -400,17 +400,17 @@ async function main() {
400
400
  } else {
401
401
  dryRunStep(`No existing session at ${SESSION_PATH}; would proceed straight to Device Flow.`);
402
402
  }
403
- dryRunStep('Would POST /api/gds/auth/device/start to get a user_code + verification_uri from GitHub.');
403
+ dryRunStep('Would POST /api/bongos/auth/device/start to get a user_code + verification_uri from GitHub.');
404
404
  dryRunStep('If GitHub refuses with device_flow_disabled (a one-click App whose checkbox is unticked, task 1003051): would print the web sign-in guidance (hall Settings → CLI Access) and prompt for a pasted CLI token instead of dead-ending.');
405
- dryRunStep('Would print the verification_uri and user_code, then poll /api/gds/auth/device/poll every few seconds until the user approves or the code expires.');
405
+ dryRunStep('Would print the verification_uri and user_code, then poll /api/bongos/auth/device/poll every few seconds until the user approves or the code expires.');
406
406
  dryRunStep(`On approval, would write the bearer token + builder profile to ${SESSION_PATH} (chmod 600).`);
407
407
  if (SKIP_KEYS) {
408
408
  dryRunStep('Would skip the Gemini-key prompt (--skip-keys set).');
409
409
  } else {
410
410
  dryRunStep(`Would prompt for a per-builder GOOGLE_AI_STUDIO_KEY on TTY shells and store it as gemini_api_key in ${SESSION_PATH} (mode 600). Used by modules/art-pipeline/pipeline/gen_api.py for per-builder cost attribution.`);
411
411
  }
412
- dryRunStep('Would read ~/.claude.json oauthAccount and, on a TTY, prompt to confirm the Anthropic email; on a match would POST /api/gds/me/anthropic-link and store anthropic_user_id in the session (kept as cosmetic attribution; the identity pin was removed — task 1039 / idea 258). On mismatch would REFUSE to link.');
413
- dryRunStep('Would prompt for preferred disciplines (creative / engineering / both / skip) and PATCH /api/gds/me/disciplines on TTY shells.');
412
+ dryRunStep('Would read ~/.claude.json oauthAccount and, on a TTY, prompt to confirm the Anthropic email; on a match would POST /api/bongos/me/anthropic-link and store anthropic_user_id in the session (kept as cosmetic attribution; the identity pin was removed — task 1039 / idea 258). On mismatch would REFUSE to link.');
413
+ dryRunStep('Would prompt for preferred disciplines (creative / engineering / both / skip) and PATCH /api/bongos/me/disciplines on TTY shells.');
414
414
  dryRunStep(`Would prompt for onboarding-friction consent (Y/n) and record the decision to ${onboardingConfig.CONSENT_PATH} on TTY shells.`);
415
415
  dryRunStep('Would print "Authenticated as <github_login>" and exit 0.');
416
416
  process.exit(0);
@@ -503,7 +503,7 @@ async function main() {
503
503
  // GitHub device flow below (auth.idp unset) is untouched — the self-hosted default.
504
504
  let idpCfg = null;
505
505
  try {
506
- const m = await fetch(`${API_BASE}/api/gds/instance`);
506
+ const m = await fetch(`${API_BASE}/api/bongos/instance`);
507
507
  const mj = m.ok ? await m.json() : null;
508
508
  idpCfg = (mj && mj.auth && mj.auth.idp) || null;
509
509
  } catch (_) { /* manifest unreachable → fall through to the direct flow */ }
@@ -563,7 +563,7 @@ async function shipMain() {
563
563
  console.error(' grade fails, fix its findings and re-run (unlimited, no attempt cap):');
564
564
  console.error(` node scripts/gds/ship.js ${taskId} --regrade`);
565
565
  console.error(` If the grade genuinely cannot pass, ask a builder whose role holds`);
566
- console.error(` task.confirm.grade_bypass${floorNote} to POST /api/gds/tasks/${taskId}/confirm.`);
566
+ console.error(` task.confirm.grade_bypass${floorNote} to POST /api/bongos/tasks/${taskId}/confirm.`);
567
567
  process.exit(1);
568
568
  }
569
569
  console.error(`manual-confirm failed: ${apiErrorLine(confirm.data, confirm.status)}`);
@@ -601,7 +601,7 @@ async function shipMain() {
601
601
  console.error('Task stays at completed. Manual options:');
602
602
  console.error(` - Re-run /builder-ship ${taskId} to try grading again, or`);
603
603
  console.error(` - node scripts/gds/ship.js ${taskId} --regrade after fixing findings, or`);
604
- console.error(` - POST /api/gds/tasks/${taskId}/confirm to manual-confirm (last resort —`);
604
+ console.error(` - POST /api/bongos/tasks/${taskId}/confirm to manual-confirm (last resort —`);
605
605
  console.error(' permission-gated on task.confirm.grade_bypass).');
606
606
  process.exit(1);
607
607
  }
@@ -896,7 +896,7 @@ async function regradeMain() {
896
896
  console.error('');
897
897
  console.error(`✖ Confirming without a passing grade is permission-gated: task.confirm.grade_bypass${floor ? ` (floor: ${floor})` : ''}.`);
898
898
  console.error(' This is an authorization wall, not a verdict on your work.');
899
- console.error(` Ask a builder whose role holds it to POST /api/gds/tasks/${taskId}/confirm.`);
899
+ console.error(` Ask a builder whose role holds it to POST /api/bongos/tasks/${taskId}/confirm.`);
900
900
  process.exit(1);
901
901
  }
902
902
  console.error(`manual-confirm failed: ${apiErrorLine(confirm.data, confirm.status)}`);
@@ -293,7 +293,7 @@ function formatGradeOutcome(g, taskId, cliFinding = null) {
293
293
  out.push('When the grader is reachable again, re-grade:');
294
294
  out.push(` node scripts/gds/ship.js ${taskId} --regrade`);
295
295
  out.push('Or land it now via manual-confirm:');
296
- out.push(` curl -X POST -H "Authorization: Bearer <token>" ${resolveInstanceBase() || '<instance-origin>'}/api/gds/tasks/${taskId}/confirm`);
296
+ out.push(` curl -X POST -H "Authorization: Bearer <token>" ${resolveInstanceBase() || '<instance-origin>'}/api/bongos/tasks/${taskId}/confirm`);
297
297
  return out.join('\n');
298
298
  }
299
299
 
@@ -350,7 +350,7 @@ function formatGradeOutcome(g, taskId, cliFinding = null) {
350
350
  out.push('When the grader is healthy again, re-grade:');
351
351
  out.push(` node scripts/gds/ship.js ${taskId} --regrade`);
352
352
  out.push('Or land it now via manual-confirm:');
353
- out.push(` curl -X POST -H "Authorization: Bearer <token>" ${resolveInstanceBase() || '<instance-origin>'}/api/gds/tasks/${taskId}/confirm`);
353
+ out.push(` curl -X POST -H "Authorization: Bearer <token>" ${resolveInstanceBase() || '<instance-origin>'}/api/bongos/tasks/${taskId}/confirm`);
354
354
  return out.join('\n');
355
355
  }
356
356
 
@@ -377,7 +377,7 @@ function formatGradeOutcome(g, taskId, cliFinding = null) {
377
377
  out.push('Grade failed — task stays at completed. Fix the issues above, commit, then re-grade:');
378
378
  out.push(` node scripts/gds/ship.js ${taskId} --regrade`);
379
379
  out.push('Last resort (only if the grade was wrong):');
380
- out.push(` curl -X POST -H "Authorization: Bearer <token>" ${resolveInstanceBase() || '<instance-origin>'}/api/gds/tasks/${taskId}/confirm`);
380
+ out.push(` curl -X POST -H "Authorization: Bearer <token>" ${resolveInstanceBase() || '<instance-origin>'}/api/bongos/tasks/${taskId}/confirm`);
381
381
  }
382
382
  return out.join('\n');
383
383
  }
@@ -17,7 +17,7 @@ const { REPO_ROOT } = require('./ship-state.js');
17
17
  // ---------- Memory sync-on-ship (Task #274 / V3.R55) ----------
18
18
  //
19
19
  // After a successful ship, push the builder's local Claude Code memory dir to
20
- // the server (POST /api/gds/memory/sync), so a builder's MEMORY.md +
20
+ // the server (POST /api/bongos/memory/sync), so a builder's MEMORY.md +
21
21
  // feedback_*.md follow them across machines and survive a dead laptop. This is
22
22
  // the push half of ADR 0024's cloneable-memory chain; #275 wires the pull side.
23
23
  //
@@ -18,7 +18,7 @@ const { REPO_ROOT } = require('./ship-state.js');
18
18
  // ---------- Session upload-on-ship (6D.1 / ADR 0027) ----------
19
19
  //
20
20
  // After a successful ship, upload a COMPACT, secret-scrubbed digest of this
21
- // Claude Code session (POST /api/gds/sessions), so the BFG (a local Claude Code
21
+ // Claude Code session (POST /api/bongos/sessions), so the BFG (a local Claude Code
22
22
  // routine — 6D.3) can later search the corpus (6D.2) and deep-dive the wasteful
23
23
  // sessions. We never upload raw transcript CONTENT — only per-turn metadata
24
24
  // (role, tool name, error flag, token usage, length) + short scrubbed snippets
@@ -277,14 +277,14 @@ async function uploadSessionOnShip(taskId) {
277
277
  recordUploadSkip(taskId, {
278
278
  code: 'session_invalid',
279
279
  reason:
280
- 'POST /api/gds/sessions returned 401 — the GDS session token is missing or invalid, so the ' +
280
+ 'POST /api/bongos/sessions returned 401 — the GDS session token is missing or invalid, so the ' +
281
281
  'digest was rejected. Re-auth with /builder-reauth. This ship will NOT appear in the BFG session corpus.',
282
282
  });
283
283
  } else {
284
284
  recordUploadSkip(taskId, {
285
285
  code: `http_${r.status}`,
286
286
  reason:
287
- `POST /api/gds/sessions returned ${r.status}${r.data && r.data.error ? ` (${apiErrorLine(r.data)})` : ''} — ` +
287
+ `POST /api/bongos/sessions returned ${r.status}${r.data && r.data.error ? ` (${apiErrorLine(r.data)})` : ''} — ` +
288
288
  'the API rejected or could not store the digest. This ship will NOT appear in the BFG session corpus.',
289
289
  });
290
290
  }