@bongos/core 1.19.868 → 1.19.869

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,11 +2,11 @@
2
2
  "artifact": "bongos-core",
3
3
  "manifest_schema": 1,
4
4
  "generator": "scripts/gds/package-core.js",
5
- "core_version": "1.19.868",
6
- "core_contract": "1.19.868",
7
- "source_commit": "6e35e3093dab9de214c45a87c227247fdc311bab",
5
+ "core_version": "1.19.869",
6
+ "core_contract": "1.19.869",
7
+ "source_commit": "1c05e3dc3377bbcf20a40718645967ba72233f33",
8
8
  "source_ref": "HEAD",
9
- "built_at": "2026-09-18T18:45:12.625Z",
9
+ "built_at": "2026-09-18T18:53:22.567Z",
10
10
  "redaction": {
11
11
  "model": "docs-redacted+functional-verbatim",
12
12
  "docs_redacted": 500,
@@ -17,7 +17,7 @@
17
17
  "gate": "passed"
18
18
  },
19
19
  "file_count": 2812,
20
- "tree_sha256": "f61ec14f3d7f288cca2d20b1c27a0d0f4685e6e3474f344058c2bb7894cc3bef",
20
+ "tree_sha256": "95583ff799fe688c99189403a7dd43769bb9fcd6497b578ff5ddd7704fc3c15e",
21
21
  "files": [
22
22
  {
23
23
  "path": ".claude/skills/ask-for-help/SKILL.md",
@@ -2602,7 +2602,7 @@
2602
2602
  {
2603
2603
  "path": "docs/module-api-changelog.md",
2604
2604
  "mode": "0000644",
2605
- "sha256": "3a71551ddb488315c33aa0f3bd4850e96f91e79940e801eeaa9c5c9304cdc653"
2605
+ "sha256": "76f1f5bc881e852c64c7b486e017ff4d1b12d28b341b1a5de39b652c1cf7f4d0"
2606
2606
  },
2607
2607
  {
2608
2608
  "path": "docs/modules-contract.md",
@@ -7927,12 +7927,12 @@
7927
7927
  {
7928
7928
  "path": "package-lock.json",
7929
7929
  "mode": "0000644",
7930
- "sha256": "89633564a9bfe53d895b487d7d0d06e8f23c3c1fcbabca119e7be607be5986b5"
7930
+ "sha256": "fae81f32534c62d0ed9a54fdd6a2671f4bcc1b4d16fc3ecb3dbfbb98b23e9fef"
7931
7931
  },
7932
7932
  {
7933
7933
  "path": "package.json",
7934
7934
  "mode": "0000644",
7935
- "sha256": "266b5d6ca4a1c4342a451577885abc475091a30a1e9bceb3a1749e579e97121d"
7935
+ "sha256": "4bb8ccfe89e010be6ddde0cb7a301dc02d876b953679f175e28d5ca87b3192c1"
7936
7936
  },
7937
7937
  {
7938
7938
  "path": "public-docs/index.html",
@@ -9882,7 +9882,7 @@
9882
9882
  {
9883
9883
  "path": "src/module-api.js",
9884
9884
  "mode": "0000644",
9885
- "sha256": "a1045f7acc428f16a6ebdfbcdc8ecf0eb0829c16fde30829b3c8541150372c05"
9885
+ "sha256": "c67aa62fe4d84efbcdfd2658102ee5d2d929f9bb479d6e33e1acee5ddb84055e"
9886
9886
  },
9887
9887
  {
9888
9888
  "path": "src/module-loader/catalog.js",
@@ -13087,7 +13087,7 @@
13087
13087
  {
13088
13088
  "path": "tests/reward_gate.mjs",
13089
13089
  "mode": "0000644",
13090
- "sha256": "f1cb5f34e9ecbd072b56840facdc57ca2b9d2fa6efc48427ce738cc65a72011f"
13090
+ "sha256": "038940af4f863bb3efc096bf522351900fbcd393c0c117f3ac75fe3a0f05ffe7"
13091
13091
  },
13092
13092
  {
13093
13093
  "path": "tests/reward_mode_cost_plus_only.mjs",
@@ -2210,5 +2210,7 @@ is load-bearing: the script throws rather than guess if it is missing, and
2210
2210
  landed since 1.19.866 with no explicit bump. run 35380895321. (task 1002620)
2211
2211
  1.19.868 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
2212
2212
  landed since 1.19.867 with no explicit bump. run 35381947323. (task 1002620)
2213
+ 1.19.869 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
2214
+ landed since 1.19.868 with no explicit bump. run 35382740500. (task 1002620)
2213
2215
  ---------------------------------------------------------------------------
2214
2216
  ```
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@bongos/core",
3
- "version": "1.19.868",
3
+ "version": "1.19.869",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bongos/core",
9
- "version": "1.19.868",
9
+ "version": "1.19.869",
10
10
  "license": "AGPL-3.0-or-later",
11
11
  "dependencies": {
12
12
  "express": "^4.21.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bongos/core",
3
- "version": "1.19.868",
3
+ "version": "1.19.869",
4
4
  "description": "Cloud Bongos — the AI-first build platform core (GDS + platform surfaces + module system), installed as a versioned dependency (ADR 0108).",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "main": "src/platform-server.js",
package/src/module-api.js CHANGED
@@ -71,7 +71,7 @@ const { responsibilityFor, ROLE_RESPONSIBILITIES } = require('./role-responsibil
71
71
  // there. scripts/gds/bump-version.js still rewrites the literal below; it appends
72
72
  // the entry to that file. Look for a version's history there, not here.
73
73
  // ---------------------------------------------------------------------------
74
- const CORE_VERSION = '1.19.868'; // CI auto-patch carrier (ADR 0161); changelog: docs/module-api-changelog.md
74
+ const CORE_VERSION = '1.19.869'; // CI auto-patch carrier (ADR 0161); changelog: docs/module-api-changelog.md
75
75
 
76
76
  // A namespaced logger so a module's log lines are attributable + consistent.
77
77
  // Usage: const log = api.logger('dev-box'); log.info('mounted');
@@ -261,8 +261,16 @@ t('createTask logs a [creation] audit line on auto-assign', () => {
261
261
  // rather than depending on a magic window size. A fixed 4800-char window
262
262
  // silently broke when task 1763 added the goal_id fallback before the INSERT,
263
263
  // sliding the [creation] audit line past its end.
264
+ // The `end > start ? end : <bytes>` ternary this used to carry defeated its own
265
+ // purpose: a renamed or reordered boundary symbol did not fail, it quietly
266
+ // reverted to exactly the magic window the anchor was introduced to remove,
267
+ // while the comment above still told the next reader the slice was anchored
268
+ // (task 1004016). Assert the boundary instead.
264
269
  const end = dbSrc.indexOf('async function findTaskBySourceRef', start);
265
- const body = dbSrc.slice(start, end > start ? end : start + 6000);
270
+ assert.ok(start >= 0, 'createTask not found in the lifecycle data layer');
271
+ assert.ok(end > start,
272
+ 'findTaskBySourceRef boundary not found — re-anchor this slice to whatever function now follows createTask');
273
+ const body = dbSrc.slice(start, end);
266
274
  assert.match(body, /suggestCreditsReward/, 'createTask must reuse the capped helper');
267
275
  assert.match(body, /\[reward-gate\] AUTO-ASSIGN.*\[creation\]/s, 'createTask must log a [creation] audit line');
268
276
  });
@@ -277,8 +285,12 @@ t('POST /tasks surfaces the assigned credits_reward in the 201 response', () =>
277
285
  // `credits_reward: task.credits_reward` response line to offset 11027, 27 chars
278
286
  // past the window — failing on main and reddening every PR's `unit` check
279
287
  // (task 2026; supersedes the never-pushed task 1967, same brittleness).
288
+ // Same defect as the createTask sibling above, same fix (task 1004016): the
289
+ // fallback window made a lost boundary invisible.
280
290
  const end = tasksRouteSrc.indexOf('router.', start + 'router.post'.length);
281
- const body = tasksRouteSrc.slice(start, end > start ? end : start + 13000);
291
+ assert.ok(end > start,
292
+ 'next router registration not found — re-anchor this slice to whatever follows the POST /tasks handler');
293
+ const body = tasksRouteSrc.slice(start, end);
282
294
  assert.match(body, /credits_reward: task\.credits_reward/, 'response must surface the born-with reward');
283
295
  });
284
296