@bongos/core 1.19.319 → 1.19.321

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 (51) hide show
  1. package/.bongos-core.json +125 -40
  2. package/.claude/skills/merge-mode/SKILL.md +3 -1
  3. package/.devcontainer/init-firewall.sh +41 -5
  4. package/clients/bongos-client/examples/hello-world.mjs +11 -2
  5. package/docs/copy-inventory.md +20 -20
  6. package/docs/copy-registry.json +22 -22
  7. package/modules/dev-box/box-access.js +20 -0
  8. package/modules/hall-ui/public/builders.js +0 -1
  9. package/package-lock.json +2 -2
  10. package/package.json +1 -1
  11. package/scripts/gds/audit-replay.sh +20 -3
  12. package/scripts/gds/box.js +79 -86
  13. package/scripts/gds/db-backup-nightly.sh +17 -4
  14. package/scripts/gds/db-backup-offsite.sh +23 -6
  15. package/scripts/gds/discipline-modes.json +1 -1
  16. package/scripts/gds/doc-cli-guard.js +34 -2
  17. package/scripts/gds/fitness-ratchets.js +54 -6
  18. package/scripts/gds/fitness.js +8 -4
  19. package/scripts/gds/gds-db-backup.service +15 -4
  20. package/scripts/gds/gds-db-backup.timer +12 -1
  21. package/scripts/gds/gds-db-offsite.service +16 -5
  22. package/scripts/gds/gds-db-offsite.timer +12 -1
  23. package/scripts/gds/instance-apex.js +28 -0
  24. package/scripts/gds/newcomer-floor.templates.json +2 -2
  25. package/scripts/gds/provision.js +7 -3
  26. package/scripts/gds/ship-deploy-target.js +388 -0
  27. package/scripts/gds/ship-finish.js +377 -0
  28. package/scripts/gds/ship-flow.js +814 -0
  29. package/scripts/gds/ship-git.js +100 -0
  30. package/scripts/gds/ship-grade-steps.js +376 -0
  31. package/scripts/gds/ship-grade.js +319 -0
  32. package/scripts/gds/ship-io.js +100 -0
  33. package/scripts/gds/ship-land.js +539 -0
  34. package/scripts/gds/ship-memory-sync.js +192 -0
  35. package/scripts/gds/ship-merge.js +297 -0
  36. package/scripts/gds/ship-preflight-steps.js +323 -0
  37. package/scripts/gds/ship-regen.js +286 -0
  38. package/scripts/gds/ship-resume.js +151 -0
  39. package/scripts/gds/ship-session-upload.js +216 -0
  40. package/scripts/gds/ship-state.js +73 -0
  41. package/scripts/gds/ship-surprise.js +84 -0
  42. package/scripts/gds/ship.js +105 -4195
  43. package/scripts/status-probe.mjs +30 -2
  44. package/src/module-api.js +5 -1
  45. package/tests/box_access.mjs +46 -0
  46. package/tests/fitness_ratchets.mjs +82 -0
  47. package/tests/helpers.mjs +13 -0
  48. package/tests/provision.mjs +7 -1
  49. package/tests/regrade_eligibility.mjs +43 -0
  50. package/tests/ship_assurance.mjs +4 -2
  51. package/tests/ship_publish_error.mjs +43 -0
@@ -133,11 +133,11 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
133
133
  | `daf73127afff` | certain | A word on why | `modules/hall-ui/public/builders.js:553` |
134
134
  | `996edffc1966` | certain | Access requests | `modules/hall-ui/public/watch.html:38` |
135
135
  | `996edffc1966` | certain | Access requests | `modules/hall-ui/public/watch.html:53` |
136
- | `303f8d90266f` | certain | Achievements could not be loaded. | `modules/hall-ui/public/builders.js:2317` |
136
+ | `303f8d90266f` | certain | Achievements could not be loaded. | `modules/hall-ui/public/builders.js:2316` |
137
137
  | `6ca31dd5eb91` | certain | Acknowledge the primer | `modules/hall-ui/public/primer.html:65` |
138
138
  | `4461b13f95c2` | certain | Actions apply at once. Closing stops and deletes the box; you can start a fresh one anytime. | `modules/hall-ui/public/settings.html:162` |
139
139
  | `7cf0163d4cde` | certain | Aggregate totals across every recorded work session. | `modules/hall-ui/public/sessions.html:35` |
140
- | `8b736e365191` | certain | All builders | `modules/hall-ui/public/builders.js:1574` |
140
+ | `8b736e365191` | certain | All builders | `modules/hall-ui/public/builders.js:1573` |
141
141
  | `b5e03617b319` | certain | All goals | `modules/hall-ui/public/goals.html:41` |
142
142
  | `bea7817e57a4` | certain | All surfaces | `modules/hall-ui/public/copy-desk.html:48` |
143
143
  | `bea7817e57a4` | certain | All surfaces | `modules/hall-ui/public/copy-desk.js:191` |
@@ -146,7 +146,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
146
146
  | `e99cc5d37404` | certain | Already a member? | `modules/hall-ui/public/builders.js:553` |
147
147
  | `200a83529fa6` | certain | Already acknowledged — you're all set. | `modules/hall-ui/public/primer.html:68` |
148
148
  | `d11477f287b7` | certain | An objection returns the idea to its author with your reason and the section it faults \u2014 the feedback the | `modules/hall-ui/public/government.js:741` |
149
- | `69f0ca4a4d84` | certain | Analytics scope | `modules/hall-ui/public/builders.js:1572` |
149
+ | `69f0ca4a4d84` | certain | Analytics scope | `modules/hall-ui/public/builders.js:1571` |
150
150
  | `14bdceaac078` | certain | Answer the five questions and this spark becomes a Full Idea. | `modules/hall-ui/public/ideas.js:415` |
151
151
  | `52ed0e2e3470` | certain | Any rank | `modules/hall-ui/public/task-lib.js:62` |
152
152
  | `c89833aa985a` | certain | Approval failed — try again. | `modules/hall-ui/public/pair.js:92` |
@@ -302,7 +302,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
302
302
  | `ebeda72a6c15` | certain | Could not request access right now. | `modules/hall-ui/public/my-projects.js:135` |
303
303
  | `ebeda72a6c15` | certain | Could not request access right now. | `modules/hall-ui/public/my-projects.js:137` |
304
304
  | `bb5a7753e62b` | certain | Could not reset: {…} | `modules/hall-ui/public/government.js:253` |
305
- | `b526ee0b8c48` | certain | Could not save just now. Try again. | `modules/hall-ui/public/builders.js:1271` |
305
+ | `b526ee0b8c48` | certain | Could not save just now. Try again. | `modules/hall-ui/public/builders.js:1270` |
306
306
  | `41a351aea8d4` | certain | Could not save the volume. Try again. | `modules/hall-ui/public/settings.js:214` |
307
307
  | `5305186a4154` | certain | Could not save your choice. Try again. | `modules/hall-ui/public/settings.js:104` |
308
308
  | `e16f67afb595` | certain | Could not save your cross-project preference. Try again. | `modules/hall-ui/public/settings.js:604` |
@@ -363,7 +363,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
363
363
  | `541127601291` | certain | Download for Mac | `modules/hall-ui/public/settings.html:177` |
364
364
  | `2ed2fd8376c0` | certain | Download for Windows | `modules/hall-ui/public/settings.html:178` |
365
365
  | `c7af57097d94` | certain | Download the Dev Box app: | `modules/hall-ui/public/builders.js:984` |
366
- | `9cf07334a5a9` | certain | Downvote (−1) | `modules/hall-ui/public/builders.js:1756` |
366
+ | `9cf07334a5a9` | certain | Downvote (−1) | `modules/hall-ui/public/builders.js:1755` |
367
367
  | `9c728558d6e7` | certain | Drachmae & karma | `modules/hall-ui/public/drachmae.html:15` |
368
368
  | `9c728558d6e7` | certain | Drachmae & karma | `modules/hall-ui/public/drachmae.html:15` |
369
369
  | `9d9cc4ef8557` | certain | Drachmae & karma — {{worldName}} | `modules/hall-ui/public/drachmae.html:6` |
@@ -454,7 +454,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
454
454
  | `a4ff1e9c34e3` | certain | Idea {…} | `modules/hall-ui/public/idea.js:244` |
455
455
  | `ba82ec56f1e3` | certain | Idea — {{worldName}} | `modules/hall-ui/public/idea.html:6` |
456
456
  | `ba82ec56f1e3` | certain | Idea — {{worldName}} | `modules/hall-ui/public/idea.html:6` |
457
- | `e181637c5a5e` | certain | Ideas awaiting triage | `modules/hall-ui/public/builders.js:1876` |
457
+ | `e181637c5a5e` | certain | Ideas awaiting triage | `modules/hall-ui/public/builders.js:1875` |
458
458
  | `379b20d548ad` | certain | Ideas whose author has said "I had the thought but not the full picture". Anyone can develop one — the author | `modules/hall-ui/public/ideas.html:33` |
459
459
  | `ef224c9de7c8` | certain | Ideas — {{worldName}} | `modules/hall-ui/public/ideas.html:6` |
460
460
  | `ef224c9de7c8` | certain | Ideas — {{worldName}} | `modules/hall-ui/public/ideas.html:6` |
@@ -481,9 +481,9 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
481
481
  | `fbe40b5818a3` | certain | Key removed. | `modules/hall-ui/public/settings.js:1088` |
482
482
  | `93c17262bacf` | certain | Key storage is being set up by an Archon — check back shortly. {…} | `modules/hall-ui/public/settings.js:967` |
483
483
  | `2a3c9e501f8e` | certain | Key storage isn't set up yet. As an Archon you can turn it on now — the server generates and safely stores the | `modules/hall-ui/public/settings.js:963` |
484
- | `7d6eaa8d4514` | certain | Kinds of work shipped | `modules/hall-ui/public/builders.js:1624` |
484
+ | `7d6eaa8d4514` | certain | Kinds of work shipped | `modules/hall-ui/public/builders.js:1623` |
485
485
  | `d7b4392e0ea6` | certain | Largest files | `modules/hall-ui/public/watch.js:795` |
486
- | `81f62e066dbf` | certain | Last 14 days: {…} / 10 average across {…} graded work{…} ({…} passed). | `modules/hall-ui/public/builders.js:1492` |
486
+ | `81f62e066dbf` | certain | Last 14 days: {…} / 10 average across {…} graded work{…} ({…} passed). | `modules/hall-ui/public/builders.js:1491` |
487
487
  | `35a15eb0a117` | certain | Last 30 days | `modules/hall-ui/public/hall-widgets.js:129` |
488
488
  | `9be8b839eff8` | certain | Last 7 days | `modules/hall-ui/public/hall-widgets.js:129` |
489
489
  | `59f0bc78a28f` | certain | Last 90 days | `modules/hall-ui/public/hall-widgets.js:130` |
@@ -525,7 +525,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
525
525
  | `df335a1224ae` | certain | Member since {…} | `modules/hall-ui/public/builders.js:757` |
526
526
  | `df335a1224ae` | certain | Member since {…} | `modules/hall-ui/public/builders.js:811` |
527
527
  | `df335a1224ae` | certain | Member since {…} | `modules/hall-ui/public/profile.js:58` |
528
- | `7637613c231b` | certain | Metic rank and above may vote | `modules/hall-ui/public/builders.js:1760` |
528
+ | `7637613c231b` | certain | Metic rank and above may vote | `modules/hall-ui/public/builders.js:1759` |
529
529
  | `d7ce4a3bb745` | certain | Minimize the welcome panel | `modules/hall-ui/public/hall-widgets.js:52` |
530
530
  | `19b0ed5781ae` | certain | Minimum rank required to claim this task | `modules/hall-ui/public/task-lib.js:65` |
531
531
  | `64e91044df43` | certain | Mint a fresh CLI token using this browser session and paste it into your terminal — the quick way back in when | `modules/hall-ui/public/settings.html:117` |
@@ -552,7 +552,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
552
552
  | `659d8256139c` | certain | Next up — ready to claim | `modules/hall-ui/public/hall-widgets.js:103` |
553
553
  | `f52ba261d930` | certain | Next › | `modules/hall-ui/public/hall-kit.js:71` |
554
554
  | `41ec1cf65d6f` | certain | No GitHub account yet? Make a free one at | `modules/hall-ui/public/builders.js:553` |
555
- | `c255749ec989` | certain | No achievements earned yet. | `modules/hall-ui/public/builders.js:1287` |
555
+ | `c255749ec989` | certain | No achievements earned yet. | `modules/hall-ui/public/builders.js:1286` |
556
556
  | `c255749ec989` | certain | No achievements earned yet. | `modules/hall-ui/public/profile.js:108` |
557
557
  | `83f62fc94271` | certain | No builder account found for this sign-in. | `modules/hall-ui/public/settings.js:1278` |
558
558
  | `2e9c154c09cd` | certain | No builder selected. Open a builder from the | `modules/hall-ui/public/profile.js:265` |
@@ -821,7 +821,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
821
821
  | `381f29be7497` | certain | The most recently shipped tasks. | `modules/hall-ui/public/work.html:97` |
822
822
  | `82479c539fca` | certain | The name shown beside your work — in the roster, the leaderboard, and the work feed. Your sign-in and the cred | `modules/hall-ui/public/settings.html:67` |
823
823
  | `b88dd8b96b72` | certain | The next person to notice this sentence reads your note instead of re-litigating it. | `modules/hall-ui/public/copy-desk.html:122` |
824
- | `aa716f3dd551` | certain | The page could not be loaded. Try again. | `modules/hall-ui/public/builders.js:2555` |
824
+ | `aa716f3dd551` | certain | The page could not be loaded. Try again. | `modules/hall-ui/public/builders.js:2554` |
825
825
  | `3bc5ec5f35ec` | certain | The ranks, lowest to highest | `modules/hall-ui/public/ranks.html:39` |
826
826
  | `3b5260b8780a` | certain | The reserved 16-rank ladder, which ranks are live today (archon, metic, thetes, xenos), and what each may do. | `modules/hall-ui/public/diagrams.html:69` |
827
827
  | `cfa55899240b` | certain | The roadmap could not be loaded right now. Reload to try again. | `modules/hall-ui/public/roadmap.js:407` |
@@ -872,14 +872,14 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
872
872
  | `1a64679fbb42` | certain | Typo or grammar | `modules/hall-ui/public/copy-desk.html:96` |
873
873
  | `2c1c20785a6e` | certain | Unclear — a person would not know what to do | `modules/hall-ui/public/copy-desk.html:93` |
874
874
  | `aa445f06cc5e` | certain | Unlink failed: {…} | `modules/hall-ui/public/settings.js:843` |
875
- | `67fbc770b3b3` | certain | Upvote (+1) | `modules/hall-ui/public/builders.js:1756` |
875
+ | `67fbc770b3b3` | certain | Upvote (+1) | `modules/hall-ui/public/builders.js:1755` |
876
876
  | `e8d747720e47` | certain | View all sessions → | `modules/hall-ui/public/watch.html:96` |
877
877
  | `9b92aa01516d` | certain | View all {…} {…} → | `modules/hall-ui/public/goals-page.js:969` |
878
878
  | `4babdfeaf27f` | certain | View full standing → | `modules/hall-ui/public/hall-widgets.js:86` |
879
879
  | `f8546b3e285e` | certain | View tasks {…} | `modules/hall-ui/public/roadmap.js:134` |
880
880
  | `71c09cda8246` | certain | Voice for {…} | `modules/hall-ui/public/settings.js:76` |
881
881
  | `2940b7828d26` | certain | Volume {…}%. | `modules/hall-ui/public/settings.js:211` |
882
- | `6905f2ee5702` | certain | Vote on this work | `modules/hall-ui/public/builders.js:1756` |
882
+ | `6905f2ee5702` | certain | Vote on this work | `modules/hall-ui/public/builders.js:1755` |
883
883
  | `b2937e14ee9b` | certain | Vote yes | `modules/hall-ui/public/government.js:741` |
884
884
  | `8cc425582984` | certain | Vulnerability reports | `modules/hall-ui/public/watch.html:117` |
885
885
  | `b1e63e33f739` | certain | Vulnerability reports, engagement reports, override requests, and the audit log. | `modules/hall-ui/public/watch.html:115` |
@@ -912,7 +912,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
912
912
  | `a3ac116b499a` | certain | Why? | `modules/hall-ui/public/copy-desk.html:99` |
913
913
  | `6108c16edece` | certain | Window: last {…} days. | `modules/hall-ui/public/watch.js:628` |
914
914
  | `0dcb485477b6` | certain | Windows (ARM) | `modules/hall-ui/public/builders.js:984` |
915
- | `c5fd76a9e03d` | certain | Won {…} | `modules/hall-ui/public/builders.js:1294` |
915
+ | `c5fd76a9e03d` | certain | Won {…} | `modules/hall-ui/public/builders.js:1293` |
916
916
  | `c5fd76a9e03d` | certain | Won {…} | `modules/hall-ui/public/profile.js:115` |
917
917
  | `520d139df9eb` | certain | Work is complete but the version is held — no tasks are being claimed here right now. | `modules/hall-ui/public/roadmap.js:223` |
918
918
  | `52e5fe3c6075` | certain | Write a Full Idea | `modules/hall-ui/public/ideas.html:43` |
@@ -994,7 +994,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
994
994
  | `77b0b2b446a1` | certain | e.g. octocat | `modules/hall-ui/public/builders.js:553` |
995
995
  | `89cc9754d633` | certain | e.g. runaway cost — paused pending review | `modules/hall-ui/public/harbor.js:146` |
996
996
  | `5321f9da0841` | certain | exists in schema, no behavior yet | `modules/hall-ui/public/diagrams.html:53` |
997
- | `df941da50c7c` | certain | fell short | `modules/hall-ui/public/builders.js:1469` |
997
+ | `df941da50c7c` | certain | fell short | `modules/hall-ui/public/builders.js:1468` |
998
998
  | `31735e119a04` | certain | first vote | `modules/hall-ui/public/government.js:500` |
999
999
  | `9563bd9f4971` | certain | first — your username is all we need. | `modules/hall-ui/public/builders.js:553` |
1000
1000
  | `1874087e6d87` | certain | for Mac or Windows, sign in with your | `modules/hall-ui/public/builders.js:984` |
@@ -1035,9 +1035,9 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
1035
1035
  | `fdfb8b2ce948` | certain | new identity | `modules/hall-ui/public/box-panel.js:339` |
1036
1036
  | `86f235ddfe01` | certain | new thread | `modules/hall-ui/public/settings.html:213` |
1037
1037
  | `b9f2e0d43c94` | certain | no clock | `modules/hall-ui/public/government.js:510` |
1038
- | `e02979266baf` | certain | no data | `modules/hall-ui/public/builders.js:1516` |
1038
+ | `e02979266baf` | certain | no data | `modules/hall-ui/public/builders.js:1515` |
1039
1039
  | `739a4bd6bd83` | certain | node scripts/setup-builder.js | `modules/hall-ui/public/builders.js:1051` |
1040
- | `01a3d68d80c1` | certain | not graded (grader outage) | `modules/hall-ui/public/builders.js:1466` |
1040
+ | `01a3d68d80c1` | certain | not graded (grader outage) | `modules/hall-ui/public/builders.js:1465` |
1041
1041
  | `3916a3dc8e98` | certain | not started | `modules/hall-ui/public/roadmap.js:108` |
1042
1042
  | `3916a3dc8e98` | certain | not started | `modules/hall-ui/public/roadmap.js:263` |
1043
1043
  | `e2c643fbf4d6` | certain | npm install | `modules/hall-ui/public/builders.js:1025` |
@@ -1081,7 +1081,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
1081
1081
  | `b8e12f871044` | certain | to graduate and open the rest of {{worldName}}'s builder hub. | `modules/hall-ui/public/not-ready.html:28` |
1082
1082
  | `47204e5f11de` | certain | to see your own profile. | `modules/hall-ui/public/profile.js:265` |
1083
1083
  | `23488ca48320` | certain | to take a task right here — no terminal needed. Then click | `modules/hall-ui/public/work.html:54` |
1084
- | `c0449d0ec0b8` | certain | trend, latest {…} | `modules/hall-ui/public/builders.js:1528` |
1084
+ | `c0449d0ec0b8` | certain | trend, latest {…} | `modules/hall-ui/public/builders.js:1527` |
1085
1085
  | `679c0150f586` | certain | upkeep: undeclared | `modules/hall-ui/public/modules.js:73` |
1086
1086
  | `c07944e0cf29` | certain | upkeep: {…} | `modules/hall-ui/public/modules.js:80` |
1087
1087
  | `969577b937d6` | certain | versions in flight | `modules/hall-ui/public/roadmap.js:273` |
@@ -1142,7 +1142,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
1142
1142
  | `893901f11e81` | certain | · {…} permission{…} | `modules/hall-ui/public/government.js:125` |
1143
1143
  | `4a5ff4f662df` | certain | — ${…} of ${…} this month ({…}%). {…} | `modules/hall-ui/public/builders.js:719` |
1144
1144
  | `cbd220dd9184` | certain | — a later push must be re-approved. | `modules/hall-ui/public/gate.js:87` |
1145
- | `a6ae9cbdee30` | certain | — all builders — | `modules/hall-ui/public/builders.js:1692` |
1145
+ | `a6ae9cbdee30` | certain | — all builders — | `modules/hall-ui/public/builders.js:1691` |
1146
1146
  | `729d4ce22b99` | certain | — any — | `modules/hall-ui/public/hall-widgets.js:132` |
1147
1147
  | `9ac518dfa95e` | certain | — none (the version's general bucket) — | `modules/hall-ui/public/task-detail.js:315` |
1148
1148
  | `da9962dc1729` | certain | — or open any diagram fullscreen. | `modules/hall-ui/public/diagrams.html:42` |
@@ -1154,7 +1154,7 @@ Identical copy within one surface. Sometimes right (a repeated button), sometime
1154
1154
  | `ff6b84565e10` | certain | — {…}{…} | `modules/hall-ui/public/government.js:605` |
1155
1155
  | `5b9fa7cb4fb0` | certain | …and {…} more waiting — | `modules/hall-ui/public/goal-inbox.js:121` |
1156
1156
  | `b2a04abfead0` | certain | …{…} more awaiting a nod. | `modules/hall-ui/public/goal-inbox.js:251` |
1157
- | `e35f11bdc5d7` | certain | …{…} more open ideas — triage clears them one at a time. | `modules/hall-ui/public/builders.js:1874` |
1157
+ | `e35f11bdc5d7` | certain | …{…} more open ideas — triage clears them one at a time. | `modules/hall-ui/public/builders.js:1873` |
1158
1158
  | `de8fa5223aee` | certain | ‹ Prev | `modules/hall-ui/public/hall-kit.js:71` |
1159
1159
  | `d4b84b7fbdeb` | certain | ← All goals | `modules/hall-ui/public/goals.html:56` |
1160
1160
  | `7d29dc9e0391` | certain | ← Back to Home | `modules/hall-ui/public/not-ready.html:35` |
@@ -764,7 +764,7 @@
764
764
  "text": "No achievements earned yet.",
765
765
  "occurrences": 2,
766
766
  "at": [
767
- "modules/hall-ui/public/builders.js:1287",
767
+ "modules/hall-ui/public/builders.js:1286",
768
768
  "modules/hall-ui/public/profile.js:108"
769
769
  ]
770
770
  },
@@ -1114,7 +1114,7 @@
1114
1114
  "text": "Won {…}",
1115
1115
  "occurrences": 2,
1116
1116
  "at": [
1117
- "modules/hall-ui/public/builders.js:1294",
1117
+ "modules/hall-ui/public/builders.js:1293",
1118
1118
  "modules/hall-ui/public/profile.js:115"
1119
1119
  ]
1120
1120
  },
@@ -1784,7 +1784,7 @@
1784
1784
  "surface": "builders-hall",
1785
1785
  "text": "Achievements could not be loaded.",
1786
1786
  "file": "modules/hall-ui/public/builders.js",
1787
- "line": 2317,
1787
+ "line": 2316,
1788
1788
  "origin": "js-markup",
1789
1789
  "confidence": "certain"
1790
1790
  },
@@ -1820,7 +1820,7 @@
1820
1820
  "surface": "builders-hall",
1821
1821
  "text": "All builders",
1822
1822
  "file": "modules/hall-ui/public/builders.js",
1823
- "line": 1574,
1823
+ "line": 1573,
1824
1824
  "origin": "js-markup",
1825
1825
  "confidence": "certain"
1826
1826
  },
@@ -1901,7 +1901,7 @@
1901
1901
  "surface": "builders-hall",
1902
1902
  "text": "Analytics scope",
1903
1903
  "file": "modules/hall-ui/public/builders.js",
1904
- "line": 1572,
1904
+ "line": 1571,
1905
1905
  "origin": "js-markup",
1906
1906
  "confidence": "certain"
1907
1907
  },
@@ -3305,7 +3305,7 @@
3305
3305
  "surface": "builders-hall",
3306
3306
  "text": "Could not save just now. Try again.",
3307
3307
  "file": "modules/hall-ui/public/builders.js",
3308
- "line": 1271,
3308
+ "line": 1270,
3309
3309
  "origin": "js-notice",
3310
3310
  "confidence": "certain"
3311
3311
  },
@@ -3854,7 +3854,7 @@
3854
3854
  "surface": "builders-hall",
3855
3855
  "text": "Downvote (−1)",
3856
3856
  "file": "modules/hall-ui/public/builders.js",
3857
- "line": 1756,
3857
+ "line": 1755,
3858
3858
  "origin": "js-markup",
3859
3859
  "confidence": "certain"
3860
3860
  },
@@ -4673,7 +4673,7 @@
4673
4673
  "surface": "builders-hall",
4674
4674
  "text": "Ideas awaiting triage",
4675
4675
  "file": "modules/hall-ui/public/builders.js",
4676
- "line": 1876,
4676
+ "line": 1875,
4677
4677
  "origin": "js-markup",
4678
4678
  "confidence": "certain"
4679
4679
  },
@@ -4916,7 +4916,7 @@
4916
4916
  "surface": "builders-hall",
4917
4917
  "text": "Kinds of work shipped",
4918
4918
  "file": "modules/hall-ui/public/builders.js",
4919
- "line": 1624,
4919
+ "line": 1623,
4920
4920
  "origin": "js-markup",
4921
4921
  "confidence": "certain"
4922
4922
  },
@@ -4934,7 +4934,7 @@
4934
4934
  "surface": "builders-hall",
4935
4935
  "text": "Last 14 days: {…} / 10 average across {…} graded work{…} ({…} passed).",
4936
4936
  "file": "modules/hall-ui/public/builders.js",
4937
- "line": 1492,
4937
+ "line": 1491,
4938
4938
  "origin": "js-text-assign",
4939
4939
  "confidence": "certain"
4940
4940
  },
@@ -5312,7 +5312,7 @@
5312
5312
  "surface": "builders-hall",
5313
5313
  "text": "Metic rank and above may vote",
5314
5314
  "file": "modules/hall-ui/public/builders.js",
5315
- "line": 1760,
5315
+ "line": 1759,
5316
5316
  "origin": "js-markup",
5317
5317
  "confidence": "certain"
5318
5318
  },
@@ -5555,7 +5555,7 @@
5555
5555
  "surface": "builders-hall",
5556
5556
  "text": "No achievements earned yet.",
5557
5557
  "file": "modules/hall-ui/public/builders.js",
5558
- "line": 1287,
5558
+ "line": 1286,
5559
5559
  "origin": "js-markup",
5560
5560
  "confidence": "certain"
5561
5561
  },
@@ -7976,7 +7976,7 @@
7976
7976
  "surface": "builders-hall",
7977
7977
  "text": "The page could not be loaded. Try again.",
7978
7978
  "file": "modules/hall-ui/public/builders.js",
7979
- "line": 2555,
7979
+ "line": 2554,
7980
7980
  "origin": "js-notice",
7981
7981
  "confidence": "certain"
7982
7982
  },
@@ -8435,7 +8435,7 @@
8435
8435
  "surface": "builders-hall",
8436
8436
  "text": "Upvote (+1)",
8437
8437
  "file": "modules/hall-ui/public/builders.js",
8438
- "line": 1756,
8438
+ "line": 1755,
8439
8439
  "origin": "js-markup",
8440
8440
  "confidence": "certain"
8441
8441
  },
@@ -8498,7 +8498,7 @@
8498
8498
  "surface": "builders-hall",
8499
8499
  "text": "Vote on this work",
8500
8500
  "file": "modules/hall-ui/public/builders.js",
8501
- "line": 1756,
8501
+ "line": 1755,
8502
8502
  "origin": "js-markup",
8503
8503
  "confidence": "certain"
8504
8504
  },
@@ -8795,7 +8795,7 @@
8795
8795
  "surface": "builders-hall",
8796
8796
  "text": "Won {…}",
8797
8797
  "file": "modules/hall-ui/public/builders.js",
8798
- "line": 1294,
8798
+ "line": 1293,
8799
8799
  "origin": "js-markup",
8800
8800
  "confidence": "certain"
8801
8801
  },
@@ -9533,7 +9533,7 @@
9533
9533
  "surface": "builders-hall",
9534
9534
  "text": "fell short",
9535
9535
  "file": "modules/hall-ui/public/builders.js",
9536
- "line": 1469,
9536
+ "line": 1468,
9537
9537
  "origin": "js-markup",
9538
9538
  "confidence": "certain"
9539
9539
  },
@@ -9902,7 +9902,7 @@
9902
9902
  "surface": "builders-hall",
9903
9903
  "text": "no data",
9904
9904
  "file": "modules/hall-ui/public/builders.js",
9905
- "line": 1516,
9905
+ "line": 1515,
9906
9906
  "origin": "js-markup",
9907
9907
  "confidence": "certain"
9908
9908
  },
@@ -9920,7 +9920,7 @@
9920
9920
  "surface": "builders-hall",
9921
9921
  "text": "not graded (grader outage)",
9922
9922
  "file": "modules/hall-ui/public/builders.js",
9923
- "line": 1466,
9923
+ "line": 1465,
9924
9924
  "origin": "js-markup",
9925
9925
  "confidence": "certain"
9926
9926
  },
@@ -10316,7 +10316,7 @@
10316
10316
  "surface": "builders-hall",
10317
10317
  "text": "trend, latest {…}",
10318
10318
  "file": "modules/hall-ui/public/builders.js",
10319
- "line": 1528,
10319
+ "line": 1527,
10320
10320
  "origin": "js-markup",
10321
10321
  "confidence": "certain"
10322
10322
  },
@@ -10865,7 +10865,7 @@
10865
10865
  "surface": "builders-hall",
10866
10866
  "text": "— all builders —",
10867
10867
  "file": "modules/hall-ui/public/builders.js",
10868
- "line": 1692,
10868
+ "line": 1691,
10869
10869
  "origin": "js-markup",
10870
10870
  "confidence": "certain"
10871
10871
  },
@@ -10973,7 +10973,7 @@
10973
10973
  "surface": "builders-hall",
10974
10974
  "text": "…{…} more open ideas — triage clears them one at a time.",
10975
10975
  "file": "modules/hall-ui/public/builders.js",
10976
- "line": 1874,
10976
+ "line": 1873,
10977
10977
  "origin": "js-markup",
10978
10978
  "confidence": "certain"
10979
10979
  },
@@ -158,6 +158,26 @@ const BASE_SPARSE_PATHS = [
158
158
  // and box-source-fetch re-applies this server-computed list every tick
159
159
  // (task 1002745). Generated ESM only, no product runtime.
160
160
  'clients',
161
+ // config/ — task 1003227. Without it a box CANNOT RUN ITS OWN QUALITY GATE:
162
+ // `scripts/gds/fitness.js` compares against config/fitness-baselines.json, and
163
+ // with the file absent the ratchet used to report PASS (it read the baselines
164
+ // through a try/catch that returned {}, so every metric had no floor to breach).
165
+ // A planted 5,000-line + 94-cycle regression sailed straight through. So a boxed
166
+ // builder shipped believing they were clean and learned otherwise from red CI,
167
+ // with nothing on the box to reproduce it. The fail-closed half is fixed in
168
+ // fitness-ratchets.js; this is the half that lets the gate actually run.
169
+ //
170
+ // Precedent, and why the "a module glob will pull it" argument does not hold:
171
+ // ADR 0174 put config/government.json in the `government` key's globs and the
172
+ // parent-directory emission below exists precisely because `config` was not in
173
+ // BASE — task 1003018 was RELEASED because its box could never see the file that
174
+ // was its entire deliverable. BASE is the right home, not a per-module accident.
175
+ //
176
+ // Secret posture unchanged: a cone-mode directory of JSON config. The NEUTRAL
177
+ // packs are already public, and an instance pack (config/branding.json,
178
+ // config/government.json) is host content the box's own builder authors — no
179
+ // credentials live here (ADR 0022); those are in /etc and the box env.
180
+ 'config',
161
181
  ];
162
182
 
163
183
  // sparsePathsForScopeKeys — PURE. Given the module KEYS a builder's active claims
@@ -1240,7 +1240,6 @@
1240
1240
  }
1241
1241
  }
1242
1242
 
1243
-
1244
1243
  // V3 (2026-05-30): clear the pick_disciplines onboarding stage from the path
1245
1244
  // checklist. Saves the chosen craft via the same PATCH /me/disciplines route
1246
1245
  // the profile uses, then re-renders the checklist (and the profile picker) so
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@bongos/core",
3
- "version": "1.19.319",
3
+ "version": "1.19.321",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bongos/core",
9
- "version": "1.19.319",
9
+ "version": "1.19.321",
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.319",
3
+ "version": "1.19.321",
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",
@@ -54,17 +54,34 @@ fi
54
54
  DROPLET="lars@104.236.254.243"
55
55
  PG_SOCKET="/var/run/postgresql"
56
56
 
57
+ # Database + role: explicit env wins, else the branding-pack resolver (task
58
+ # 1002757 — the founder DB/unix-user pair was baked in as runtime args). The
59
+ # role defaults to the CURRENT unix user (peer auth), matching migrate.sh.
60
+ # Resolved BEFORE any SSH re-invocation: the remote side has no repo to
61
+ # resolve from, so the value rides the wire in GDS_AUDIT_DB.
62
+ AUDIT_DB="${GDS_AUDIT_DB:-${PGDATABASE:-}}"
63
+ if [ -z "$AUDIT_DB" ]; then
64
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" 2>/dev/null && pwd || true)"
65
+ [ -n "$SCRIPT_DIR" ] && AUDIT_DB="$(node -e "process.stdout.write(require(process.argv[1]).instanceDbName() || '')" "$SCRIPT_DIR/../../src/bongos/pool" 2>/dev/null || true)"
66
+ fi
67
+ if [ -z "$AUDIT_DB" ]; then
68
+ echo "audit-replay: cannot determine the database — set GDS_AUDIT_DB or PGDATABASE (refusing a baked-in default, task 1002757)." >&2
69
+ exit 2
70
+ fi
71
+
57
72
  if [ ! -S "$PG_SOCKET/.s.PGSQL.5432" ]; then
58
73
  # Re-invoke ourselves on the droplet. The script doesn't depend on any
59
74
  # repo file at runtime, so we ship the script body over stdin to avoid a
60
- # rsync step. Quoting on the SSH side preserves the timestamp args.
75
+ # rsync step. Quoting on the SSH side preserves the timestamp args; the
76
+ # locally-resolved DB name rides along (no repo on the remote side).
61
77
  exec ssh -o ConnectTimeout=10 "$DROPLET" \
62
- "bash -s -- '$BUILDER_ID' '$START' '$END'" < "$0"
78
+ "GDS_AUDIT_DB='$AUDIT_DB' bash -s -- '$BUILDER_ID' '$START' '$END'" < "$0"
63
79
  fi
64
80
 
65
81
  # From here down: running where Postgres is reachable on the Unix socket.
66
82
 
67
- PSQL_ARGS=(-h "$PG_SOCKET" -d amazonprimea -U lars -t -A -F $'\t' --no-psqlrc)
83
+ PSQL_ARGS=(-h "$PG_SOCKET" -d "$AUDIT_DB" -t -A -F $'\t' --no-psqlrc)
84
+ [ -n "${GDS_AUDIT_PG_USER:-}" ] && PSQL_ARGS+=(-U "$GDS_AUDIT_PG_USER")
68
85
 
69
86
  q() {
70
87
  PGOPTIONS='--client-min-messages=warning' psql "${PSQL_ARGS[@]}" -c "$1"