@bongos/core 1.19.360 → 1.19.362
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 +45 -35
- package/docs/copy-inventory.md +61 -61
- package/docs/copy-registry.json +70 -70
- package/docs/file-map.md +2 -0
- package/modules/autonomy/routes/autonomy.js +19 -0
- package/modules/dev-box/app/src/config.js +13 -1
- package/modules/economy/achievements.js +21 -0
- package/modules/economy/routes/cost.js +16 -0
- package/modules/economy/routes/leaderboard.js +12 -0
- package/modules/hall-ui/public/government.js +35 -17
- package/modules/ideas/routes/blockers.js +24 -3
- package/modules/ideas/routes/inbox.js +34 -3
- package/modules/lifecycle/routes/claims.js +22 -0
- package/modules/lifecycle/routes/tasks.js +22 -0
- package/modules/lifecycle/routes/versions.js +18 -0
- package/modules/memory/routes/learnings.js +21 -0
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/scripts/gds/claude-md-template.js +1 -0
- package/scripts/gds/doc-comment-coverage.js +139 -0
- package/scripts/gds/fitness.js +5 -0
- package/scripts/gds/me.js +10 -1
- package/src/bongos/routes/auth.js +28 -0
- package/src/bongos/routes/builders.js +24 -0
- package/src/bongos/routes/healthz.js +10 -0
- package/src/bongos/routes/me.js +21 -0
- package/src/bongos/routes/optimizer.js +12 -0
- package/src/bongos/routes/public.js +19 -1
- package/src/module-api.js +5 -1
- package/tests/doc_comment_coverage.mjs +87 -0
- package/tests/hall_page_gate_map.mjs +5 -4
package/docs/copy-registry.json
CHANGED
|
@@ -1025,7 +1025,7 @@
|
|
|
1025
1025
|
"occurrences": 2,
|
|
1026
1026
|
"at": [
|
|
1027
1027
|
"modules/hall-ui/public/gate.js:205",
|
|
1028
|
-
"modules/hall-ui/public/government.js:
|
|
1028
|
+
"modules/hall-ui/public/government.js:859"
|
|
1029
1029
|
]
|
|
1030
1030
|
},
|
|
1031
1031
|
{
|
|
@@ -1608,7 +1608,7 @@
|
|
|
1608
1608
|
"surface": "builders-hall",
|
|
1609
1609
|
"text": ", membership",
|
|
1610
1610
|
"file": "modules/hall-ui/public/government.js",
|
|
1611
|
-
"line":
|
|
1611
|
+
"line": 803,
|
|
1612
1612
|
"origin": "js-markup",
|
|
1613
1613
|
"confidence": "certain"
|
|
1614
1614
|
},
|
|
@@ -1932,7 +1932,7 @@
|
|
|
1932
1932
|
"surface": "builders-hall",
|
|
1933
1933
|
"text": "An objection returns the idea to its author with your reason and the section it faults \\u2014 the feedback they revise against.",
|
|
1934
1934
|
"file": "modules/hall-ui/public/government.js",
|
|
1935
|
-
"line":
|
|
1935
|
+
"line": 758,
|
|
1936
1936
|
"origin": "js-markup",
|
|
1937
1937
|
"confidence": "certain"
|
|
1938
1938
|
},
|
|
@@ -2103,7 +2103,7 @@
|
|
|
2103
2103
|
"surface": "builders-hall",
|
|
2104
2104
|
"text": "As configuration:",
|
|
2105
2105
|
"file": "modules/hall-ui/public/government.js",
|
|
2106
|
-
"line":
|
|
2106
|
+
"line": 650,
|
|
2107
2107
|
"origin": "js-markup",
|
|
2108
2108
|
"confidence": "certain"
|
|
2109
2109
|
},
|
|
@@ -2148,7 +2148,7 @@
|
|
|
2148
2148
|
"surface": "builders-hall",
|
|
2149
2149
|
"text": "Assigned {…} to builder {…}.",
|
|
2150
2150
|
"file": "modules/hall-ui/public/government.js",
|
|
2151
|
-
"line":
|
|
2151
|
+
"line": 408,
|
|
2152
2152
|
"origin": "js-notice",
|
|
2153
2153
|
"confidence": "certain"
|
|
2154
2154
|
},
|
|
@@ -2373,7 +2373,7 @@
|
|
|
2373
2373
|
"surface": "builders-hall",
|
|
2374
2374
|
"text": "Cast objection",
|
|
2375
2375
|
"file": "modules/hall-ui/public/government.js",
|
|
2376
|
-
"line":
|
|
2376
|
+
"line": 758,
|
|
2377
2377
|
"origin": "js-markup",
|
|
2378
2378
|
"confidence": "certain"
|
|
2379
2379
|
},
|
|
@@ -2436,7 +2436,7 @@
|
|
|
2436
2436
|
"surface": "builders-hall",
|
|
2437
2437
|
"text": "Charter library",
|
|
2438
2438
|
"file": "modules/hall-ui/public/government.js",
|
|
2439
|
-
"line":
|
|
2439
|
+
"line": 627,
|
|
2440
2440
|
"origin": "js-markup",
|
|
2441
2441
|
"confidence": "certain"
|
|
2442
2442
|
},
|
|
@@ -2679,7 +2679,7 @@
|
|
|
2679
2679
|
"surface": "builders-hall",
|
|
2680
2680
|
"text": "Closed sittings",
|
|
2681
2681
|
"file": "modules/hall-ui/public/government.js",
|
|
2682
|
-
"line":
|
|
2682
|
+
"line": 829,
|
|
2683
2683
|
"origin": "js-markup",
|
|
2684
2684
|
"confidence": "certain"
|
|
2685
2685
|
},
|
|
@@ -3003,7 +3003,7 @@
|
|
|
3003
3003
|
"surface": "builders-hall",
|
|
3004
3004
|
"text": "Could not assign: {…}",
|
|
3005
3005
|
"file": "modules/hall-ui/public/government.js",
|
|
3006
|
-
"line":
|
|
3006
|
+
"line": 413,
|
|
3007
3007
|
"origin": "js-notice",
|
|
3008
3008
|
"confidence": "certain"
|
|
3009
3009
|
},
|
|
@@ -3093,7 +3093,7 @@
|
|
|
3093
3093
|
"surface": "builders-hall",
|
|
3094
3094
|
"text": "Could not create rank: {…}",
|
|
3095
3095
|
"file": "modules/hall-ui/public/government.js",
|
|
3096
|
-
"line":
|
|
3096
|
+
"line": 393,
|
|
3097
3097
|
"origin": "js-notice",
|
|
3098
3098
|
"confidence": "certain"
|
|
3099
3099
|
},
|
|
@@ -3129,7 +3129,7 @@
|
|
|
3129
3129
|
"surface": "builders-hall",
|
|
3130
3130
|
"text": "Could not load government data just now.",
|
|
3131
3131
|
"file": "modules/hall-ui/public/government.js",
|
|
3132
|
-
"line":
|
|
3132
|
+
"line": 901,
|
|
3133
3133
|
"origin": "js-markup",
|
|
3134
3134
|
"confidence": "certain"
|
|
3135
3135
|
},
|
|
@@ -3201,7 +3201,7 @@
|
|
|
3201
3201
|
"surface": "builders-hall",
|
|
3202
3202
|
"text": "Could not load the Board Room just now.",
|
|
3203
3203
|
"file": "modules/hall-ui/public/government.js",
|
|
3204
|
-
"line":
|
|
3204
|
+
"line": 821,
|
|
3205
3205
|
"origin": "js-markup",
|
|
3206
3206
|
"confidence": "certain"
|
|
3207
3207
|
},
|
|
@@ -3210,7 +3210,7 @@
|
|
|
3210
3210
|
"surface": "builders-hall",
|
|
3211
3211
|
"text": "Could not load the constitution just now.",
|
|
3212
3212
|
"file": "modules/hall-ui/public/government.js",
|
|
3213
|
-
"line":
|
|
3213
|
+
"line": 645,
|
|
3214
3214
|
"origin": "js-markup",
|
|
3215
3215
|
"confidence": "certain"
|
|
3216
3216
|
},
|
|
@@ -3363,7 +3363,7 @@
|
|
|
3363
3363
|
"surface": "builders-hall",
|
|
3364
3364
|
"text": "Could not remove: {…}",
|
|
3365
3365
|
"file": "modules/hall-ui/public/government.js",
|
|
3366
|
-
"line":
|
|
3366
|
+
"line": 321,
|
|
3367
3367
|
"origin": "js-notice",
|
|
3368
3368
|
"confidence": "certain"
|
|
3369
3369
|
},
|
|
@@ -3390,7 +3390,7 @@
|
|
|
3390
3390
|
"surface": "builders-hall",
|
|
3391
3391
|
"text": "Could not reset: {…}",
|
|
3392
3392
|
"file": "modules/hall-ui/public/government.js",
|
|
3393
|
-
"line":
|
|
3393
|
+
"line": 260,
|
|
3394
3394
|
"origin": "js-notice",
|
|
3395
3395
|
"confidence": "certain"
|
|
3396
3396
|
},
|
|
@@ -3633,7 +3633,7 @@
|
|
|
3633
3633
|
"surface": "builders-hall",
|
|
3634
3634
|
"text": "Could not vote: {…}",
|
|
3635
3635
|
"file": "modules/hall-ui/public/government.js",
|
|
3636
|
-
"line":
|
|
3636
|
+
"line": 785,
|
|
3637
3637
|
"origin": "js-notice",
|
|
3638
3638
|
"confidence": "certain"
|
|
3639
3639
|
},
|
|
@@ -3651,7 +3651,7 @@
|
|
|
3651
3651
|
"surface": "builders-hall",
|
|
3652
3652
|
"text": "Could not {…}: {…}",
|
|
3653
3653
|
"file": "modules/hall-ui/public/government.js",
|
|
3654
|
-
"line":
|
|
3654
|
+
"line": 273,
|
|
3655
3655
|
"origin": "js-notice",
|
|
3656
3656
|
"confidence": "certain"
|
|
3657
3657
|
},
|
|
@@ -3678,7 +3678,7 @@
|
|
|
3678
3678
|
"surface": "builders-hall",
|
|
3679
3679
|
"text": "Create a custom rank first.",
|
|
3680
3680
|
"file": "modules/hall-ui/public/government.js",
|
|
3681
|
-
"line":
|
|
3681
|
+
"line": 404,
|
|
3682
3682
|
"origin": "js-notice",
|
|
3683
3683
|
"confidence": "certain"
|
|
3684
3684
|
},
|
|
@@ -3714,7 +3714,7 @@
|
|
|
3714
3714
|
"surface": "builders-hall",
|
|
3715
3715
|
"text": "Created rank {…}.",
|
|
3716
3716
|
"file": "modules/hall-ui/public/government.js",
|
|
3717
|
-
"line":
|
|
3717
|
+
"line": 387,
|
|
3718
3718
|
"origin": "js-notice",
|
|
3719
3719
|
"confidence": "certain"
|
|
3720
3720
|
},
|
|
@@ -4326,7 +4326,7 @@
|
|
|
4326
4326
|
"surface": "builders-hall",
|
|
4327
4327
|
"text": "Full Idea",
|
|
4328
4328
|
"file": "modules/hall-ui/public/government.js",
|
|
4329
|
-
"line":
|
|
4329
|
+
"line": 686,
|
|
4330
4330
|
"origin": "js-markup",
|
|
4331
4331
|
"confidence": "certain"
|
|
4332
4332
|
},
|
|
@@ -4596,7 +4596,7 @@
|
|
|
4596
4596
|
"surface": "builders-hall",
|
|
4597
4597
|
"text": "How a project moves between structures over time — summarized from the synthesis:",
|
|
4598
4598
|
"file": "modules/hall-ui/public/government.js",
|
|
4599
|
-
"line":
|
|
4599
|
+
"line": 627,
|
|
4600
4600
|
"origin": "js-markup",
|
|
4601
4601
|
"confidence": "certain"
|
|
4602
4602
|
},
|
|
@@ -4614,7 +4614,7 @@
|
|
|
4614
4614
|
"surface": "builders-hall",
|
|
4615
4615
|
"text": "How it has changed",
|
|
4616
4616
|
"file": "modules/hall-ui/public/government.js",
|
|
4617
|
-
"line":
|
|
4617
|
+
"line": 650,
|
|
4618
4618
|
"origin": "js-markup",
|
|
4619
4619
|
"confidence": "certain"
|
|
4620
4620
|
},
|
|
@@ -4677,7 +4677,7 @@
|
|
|
4677
4677
|
"surface": "builders-hall",
|
|
4678
4678
|
"text": "How this project is governed — the constitution it runs, the Board Room, and the ranks & permissions that administer it.",
|
|
4679
4679
|
"file": "modules/hall-ui/public/government.js",
|
|
4680
|
-
"line":
|
|
4680
|
+
"line": 888,
|
|
4681
4681
|
"origin": "js-text-assign",
|
|
4682
4682
|
"confidence": "certain"
|
|
4683
4683
|
},
|
|
@@ -5703,7 +5703,7 @@
|
|
|
5703
5703
|
"surface": "builders-hall",
|
|
5704
5704
|
"text": "No custom ranks yet",
|
|
5705
5705
|
"file": "modules/hall-ui/public/government.js",
|
|
5706
|
-
"line":
|
|
5706
|
+
"line": 310,
|
|
5707
5707
|
"origin": "js-markup",
|
|
5708
5708
|
"confidence": "certain"
|
|
5709
5709
|
},
|
|
@@ -5775,7 +5775,7 @@
|
|
|
5775
5775
|
"surface": "builders-hall",
|
|
5776
5776
|
"text": "No machine principals declared.",
|
|
5777
5777
|
"file": "modules/hall-ui/public/government.js",
|
|
5778
|
-
"line":
|
|
5778
|
+
"line": 332,
|
|
5779
5779
|
"origin": "js-markup",
|
|
5780
5780
|
"confidence": "certain"
|
|
5781
5781
|
},
|
|
@@ -5811,7 +5811,7 @@
|
|
|
5811
5811
|
"surface": "builders-hall",
|
|
5812
5812
|
"text": "No rank assignments yet.",
|
|
5813
5813
|
"file": "modules/hall-ui/public/government.js",
|
|
5814
|
-
"line":
|
|
5814
|
+
"line": 284,
|
|
5815
5815
|
"origin": "js-markup",
|
|
5816
5816
|
"confidence": "certain"
|
|
5817
5817
|
},
|
|
@@ -5838,7 +5838,7 @@
|
|
|
5838
5838
|
"surface": "builders-hall",
|
|
5839
5839
|
"text": "No sitting has closed yet.",
|
|
5840
5840
|
"file": "modules/hall-ui/public/government.js",
|
|
5841
|
-
"line":
|
|
5841
|
+
"line": 830,
|
|
5842
5842
|
"origin": "js-markup",
|
|
5843
5843
|
"confidence": "certain"
|
|
5844
5844
|
},
|
|
@@ -5892,7 +5892,7 @@
|
|
|
5892
5892
|
"surface": "builders-hall",
|
|
5893
5893
|
"text": "No votes yet{…}.",
|
|
5894
5894
|
"file": "modules/hall-ui/public/government.js",
|
|
5895
|
-
"line":
|
|
5895
|
+
"line": 704,
|
|
5896
5896
|
"origin": "js-markup",
|
|
5897
5897
|
"confidence": "certain"
|
|
5898
5898
|
},
|
|
@@ -6454,6 +6454,15 @@
|
|
|
6454
6454
|
"origin": "js-markup",
|
|
6455
6455
|
"confidence": "certain"
|
|
6456
6456
|
},
|
|
6457
|
+
{
|
|
6458
|
+
"id": "e1e10dc5e357",
|
|
6459
|
+
"surface": "builders-hall",
|
|
6460
|
+
"text": "Permissions is the Archon administration surface. The Constitution and the Board Room are yours to read.",
|
|
6461
|
+
"file": "modules/hall-ui/public/government.js",
|
|
6462
|
+
"line": 872,
|
|
6463
|
+
"origin": "js-markup",
|
|
6464
|
+
"confidence": "certain"
|
|
6465
|
+
},
|
|
6457
6466
|
{
|
|
6458
6467
|
"id": "2ec5f77eb6f0",
|
|
6459
6468
|
"surface": "builders-hall",
|
|
@@ -6652,15 +6661,6 @@
|
|
|
6652
6661
|
"origin": "js-markup",
|
|
6653
6662
|
"confidence": "certain"
|
|
6654
6663
|
},
|
|
6655
|
-
{
|
|
6656
|
-
"id": "084261c45654",
|
|
6657
|
-
"surface": "builders-hall",
|
|
6658
|
-
"text": "Ranks & Permissions is the Archon administration surface. The Constitution and the Board Room are yours to read.",
|
|
6659
|
-
"file": "modules/hall-ui/public/government.js",
|
|
6660
|
-
"line": 854,
|
|
6661
|
-
"origin": "js-markup",
|
|
6662
|
-
"confidence": "certain"
|
|
6663
|
-
},
|
|
6664
6664
|
{
|
|
6665
6665
|
"id": "6824ec470f99",
|
|
6666
6666
|
"surface": "builders-hall",
|
|
@@ -6918,7 +6918,7 @@
|
|
|
6918
6918
|
"surface": "builders-hall",
|
|
6919
6919
|
"text": "Removed {…} from builder {…}.",
|
|
6920
6920
|
"file": "modules/hall-ui/public/government.js",
|
|
6921
|
-
"line":
|
|
6921
|
+
"line": 317,
|
|
6922
6922
|
"origin": "js-notice",
|
|
6923
6923
|
"confidence": "certain"
|
|
6924
6924
|
},
|
|
@@ -7062,7 +7062,7 @@
|
|
|
7062
7062
|
"surface": "builders-hall",
|
|
7063
7063
|
"text": "Reset to default",
|
|
7064
7064
|
"file": "modules/hall-ui/public/government.js",
|
|
7065
|
-
"line":
|
|
7065
|
+
"line": 224,
|
|
7066
7066
|
"origin": "js-text-assign",
|
|
7067
7067
|
"confidence": "certain"
|
|
7068
7068
|
},
|
|
@@ -7080,7 +7080,7 @@
|
|
|
7080
7080
|
"surface": "builders-hall",
|
|
7081
7081
|
"text": "Reset {…} to its default permissions?\\n\\nEvery change you've made to this rank is discarded, and it takes effect for every builder at this rank on their next request.",
|
|
7082
7082
|
"file": "modules/hall-ui/public/government.js",
|
|
7083
|
-
"line":
|
|
7083
|
+
"line": 252,
|
|
7084
7084
|
"origin": "js-notice",
|
|
7085
7085
|
"confidence": "certain"
|
|
7086
7086
|
},
|
|
@@ -7107,7 +7107,7 @@
|
|
|
7107
7107
|
"surface": "builders-hall",
|
|
7108
7108
|
"text": "Restricted.",
|
|
7109
7109
|
"file": "modules/hall-ui/public/government.js",
|
|
7110
|
-
"line":
|
|
7110
|
+
"line": 859,
|
|
7111
7111
|
"origin": "js-text-assign",
|
|
7112
7112
|
"confidence": "certain"
|
|
7113
7113
|
},
|
|
@@ -7404,7 +7404,7 @@
|
|
|
7404
7404
|
"surface": "builders-hall",
|
|
7405
7405
|
"text": "Selectable today",
|
|
7406
7406
|
"file": "modules/hall-ui/public/government.js",
|
|
7407
|
-
"line":
|
|
7407
|
+
"line": 627,
|
|
7408
7408
|
"origin": "js-markup",
|
|
7409
7409
|
"confidence": "certain"
|
|
7410
7410
|
},
|
|
@@ -8016,7 +8016,7 @@
|
|
|
8016
8016
|
"surface": "builders-hall",
|
|
8017
8017
|
"text": "The developmental ladder: {…}. Formality is adopted only where informal coordination breaks.",
|
|
8018
8018
|
"file": "modules/hall-ui/public/government.js",
|
|
8019
|
-
"line":
|
|
8019
|
+
"line": 633,
|
|
8020
8020
|
"origin": "js-markup",
|
|
8021
8021
|
"confidence": "certain"
|
|
8022
8022
|
},
|
|
@@ -8187,7 +8187,7 @@
|
|
|
8187
8187
|
"surface": "builders-hall",
|
|
8188
8188
|
"text": "The seven government structures, for getting a team up to speed before deciding when to flip a switch.",
|
|
8189
8189
|
"file": "modules/hall-ui/public/government.js",
|
|
8190
|
-
"line":
|
|
8190
|
+
"line": 627,
|
|
8191
8191
|
"origin": "js-markup",
|
|
8192
8192
|
"confidence": "certain"
|
|
8193
8193
|
},
|
|
@@ -8412,7 +8412,7 @@
|
|
|
8412
8412
|
"surface": "builders-hall",
|
|
8413
8413
|
"text": "This is your idea \\u2014 its author does not vote on it. The board decides; a return comes back to you with its reason.",
|
|
8414
8414
|
"file": "modules/hall-ui/public/government.js",
|
|
8415
|
-
"line":
|
|
8415
|
+
"line": 754,
|
|
8416
8416
|
"origin": "js-markup",
|
|
8417
8417
|
"confidence": "certain"
|
|
8418
8418
|
},
|
|
@@ -8637,7 +8637,7 @@
|
|
|
8637
8637
|
"surface": "builders-hall",
|
|
8638
8638
|
"text": "Vote yes",
|
|
8639
8639
|
"file": "modules/hall-ui/public/government.js",
|
|
8640
|
-
"line":
|
|
8640
|
+
"line": 758,
|
|
8641
8641
|
"origin": "js-markup",
|
|
8642
8642
|
"confidence": "certain"
|
|
8643
8643
|
},
|
|
@@ -8781,7 +8781,7 @@
|
|
|
8781
8781
|
"surface": "builders-hall",
|
|
8782
8782
|
"text": "What this project runs today",
|
|
8783
8783
|
"file": "modules/hall-ui/public/government.js",
|
|
8784
|
-
"line":
|
|
8784
|
+
"line": 650,
|
|
8785
8785
|
"origin": "js-markup",
|
|
8786
8786
|
"confidence": "certain"
|
|
8787
8787
|
},
|
|
@@ -8889,7 +8889,7 @@
|
|
|
8889
8889
|
"surface": "builders-hall",
|
|
8890
8890
|
"text": "Why \\u2014 the reason the author will act on",
|
|
8891
8891
|
"file": "modules/hall-ui/public/government.js",
|
|
8892
|
-
"line":
|
|
8892
|
+
"line": 758,
|
|
8893
8893
|
"origin": "js-markup",
|
|
8894
8894
|
"confidence": "certain"
|
|
8895
8895
|
},
|
|
@@ -9060,7 +9060,7 @@
|
|
|
9060
9060
|
"surface": "builders-hall",
|
|
9061
9061
|
"text": "You have not voted on this item. Casting arrives with the vote form.",
|
|
9062
9062
|
"file": "modules/hall-ui/public/government.js",
|
|
9063
|
-
"line":
|
|
9063
|
+
"line": 802,
|
|
9064
9064
|
"origin": "js-markup",
|
|
9065
9065
|
"confidence": "certain"
|
|
9066
9066
|
},
|
|
@@ -9087,7 +9087,7 @@
|
|
|
9087
9087
|
"surface": "builders-hall",
|
|
9088
9088
|
"text": "You voted",
|
|
9089
9089
|
"file": "modules/hall-ui/public/government.js",
|
|
9090
|
-
"line":
|
|
9090
|
+
"line": 801,
|
|
9091
9091
|
"origin": "js-markup",
|
|
9092
9092
|
"confidence": "certain"
|
|
9093
9093
|
},
|
|
@@ -9402,7 +9402,7 @@
|
|
|
9402
9402
|
"surface": "builders-hall",
|
|
9403
9403
|
"text": "active builder{…}: {…}",
|
|
9404
9404
|
"file": "modules/hall-ui/public/government.js",
|
|
9405
|
-
"line":
|
|
9405
|
+
"line": 627,
|
|
9406
9406
|
"origin": "js-markup",
|
|
9407
9407
|
"confidence": "certain"
|
|
9408
9408
|
},
|
|
@@ -9483,7 +9483,7 @@
|
|
|
9483
9483
|
"surface": "builders-hall",
|
|
9484
9484
|
"text": "as configuration: {…}",
|
|
9485
9485
|
"file": "modules/hall-ui/public/government.js",
|
|
9486
|
-
"line":
|
|
9486
|
+
"line": 621,
|
|
9487
9487
|
"origin": "js-markup",
|
|
9488
9488
|
"confidence": "certain"
|
|
9489
9489
|
},
|
|
@@ -9573,7 +9573,7 @@
|
|
|
9573
9573
|
"surface": "builders-hall",
|
|
9574
9574
|
"text": "cannot be read, so",
|
|
9575
9575
|
"file": "modules/hall-ui/public/government.js",
|
|
9576
|
-
"line":
|
|
9576
|
+
"line": 499,
|
|
9577
9577
|
"origin": "js-markup",
|
|
9578
9578
|
"confidence": "certain"
|
|
9579
9579
|
},
|
|
@@ -9627,7 +9627,7 @@
|
|
|
9627
9627
|
"surface": "builders-hall",
|
|
9628
9628
|
"text": "documented for later",
|
|
9629
9629
|
"file": "modules/hall-ui/public/government.js",
|
|
9630
|
-
"line":
|
|
9630
|
+
"line": 619,
|
|
9631
9631
|
"origin": "js-markup",
|
|
9632
9632
|
"confidence": "certain"
|
|
9633
9633
|
},
|
|
@@ -9690,7 +9690,7 @@
|
|
|
9690
9690
|
"surface": "builders-hall",
|
|
9691
9691
|
"text": "first vote",
|
|
9692
9692
|
"file": "modules/hall-ui/public/government.js",
|
|
9693
|
-
"line":
|
|
9693
|
+
"line": 517,
|
|
9694
9694
|
"origin": "js-markup",
|
|
9695
9695
|
"confidence": "certain"
|
|
9696
9696
|
},
|
|
@@ -9933,7 +9933,7 @@
|
|
|
9933
9933
|
"surface": "builders-hall",
|
|
9934
9934
|
"text": "ladder · read-only",
|
|
9935
9935
|
"file": "modules/hall-ui/public/government.js",
|
|
9936
|
-
"line":
|
|
9936
|
+
"line": 123,
|
|
9937
9937
|
"origin": "js-markup",
|
|
9938
9938
|
"confidence": "certain"
|
|
9939
9939
|
},
|
|
@@ -9978,7 +9978,7 @@
|
|
|
9978
9978
|
"surface": "builders-hall",
|
|
9979
9979
|
"text": "means expressible through the real configuration — a rank-based membership plus a pass rule — with no new code. This project has",
|
|
9980
9980
|
"file": "modules/hall-ui/public/government.js",
|
|
9981
|
-
"line":
|
|
9981
|
+
"line": 627,
|
|
9982
9982
|
"origin": "js-markup",
|
|
9983
9983
|
"confidence": "certain"
|
|
9984
9984
|
},
|
|
@@ -10050,7 +10050,7 @@
|
|
|
10050
10050
|
"surface": "builders-hall",
|
|
10051
10051
|
"text": "no clock",
|
|
10052
10052
|
"file": "modules/hall-ui/public/government.js",
|
|
10053
|
-
"line":
|
|
10053
|
+
"line": 527,
|
|
10054
10054
|
"origin": "js-markup",
|
|
10055
10055
|
"confidence": "certain"
|
|
10056
10056
|
},
|
|
@@ -10113,7 +10113,7 @@
|
|
|
10113
10113
|
"surface": "builders-hall",
|
|
10114
10114
|
"text": "objected to",
|
|
10115
10115
|
"file": "modules/hall-ui/public/government.js",
|
|
10116
|
-
"line":
|
|
10116
|
+
"line": 711,
|
|
10117
10117
|
"origin": "js-markup",
|
|
10118
10118
|
"confidence": "certain"
|
|
10119
10119
|
},
|
|
@@ -10203,7 +10203,7 @@
|
|
|
10203
10203
|
"surface": "builders-hall",
|
|
10204
10204
|
"text": "or above",
|
|
10205
10205
|
"file": "modules/hall-ui/public/government.js",
|
|
10206
|
-
"line":
|
|
10206
|
+
"line": 511,
|
|
10207
10207
|
"origin": "js-markup",
|
|
10208
10208
|
"confidence": "certain"
|
|
10209
10209
|
},
|
|
@@ -10257,7 +10257,7 @@
|
|
|
10257
10257
|
"surface": "builders-hall",
|
|
10258
10258
|
"text": "recommended at your headcount",
|
|
10259
10259
|
"file": "modules/hall-ui/public/government.js",
|
|
10260
|
-
"line":
|
|
10260
|
+
"line": 620,
|
|
10261
10261
|
"origin": "js-markup",
|
|
10262
10262
|
"confidence": "certain"
|
|
10263
10263
|
},
|
|
@@ -10311,7 +10311,7 @@
|
|
|
10311
10311
|
"surface": "builders-hall",
|
|
10312
10312
|
"text": "selectable today",
|
|
10313
10313
|
"file": "modules/hall-ui/public/government.js",
|
|
10314
|
-
"line":
|
|
10314
|
+
"line": 618,
|
|
10315
10315
|
"origin": "js-markup",
|
|
10316
10316
|
"confidence": "certain"
|
|
10317
10317
|
},
|
|
@@ -10356,7 +10356,7 @@
|
|
|
10356
10356
|
"surface": "builders-hall",
|
|
10357
10357
|
"text": "tally: {…} yes · {…} no — sitting under",
|
|
10358
10358
|
"file": "modules/hall-ui/public/government.js",
|
|
10359
|
-
"line":
|
|
10359
|
+
"line": 803,
|
|
10360
10360
|
"origin": "js-markup",
|
|
10361
10361
|
"confidence": "certain"
|
|
10362
10362
|
},
|
|
@@ -10590,7 +10590,7 @@
|
|
|
10590
10590
|
"surface": "builders-hall",
|
|
10591
10591
|
"text": "your vote",
|
|
10592
10592
|
"file": "modules/hall-ui/public/government.js",
|
|
10593
|
-
"line":
|
|
10593
|
+
"line": 708,
|
|
10594
10594
|
"origin": "js-markup",
|
|
10595
10595
|
"confidence": "certain"
|
|
10596
10596
|
},
|
|
@@ -10689,7 +10689,7 @@
|
|
|
10689
10689
|
"surface": "builders-hall",
|
|
10690
10690
|
"text": "{…} minutes",
|
|
10691
10691
|
"file": "modules/hall-ui/public/government.js",
|
|
10692
|
-
"line":
|
|
10692
|
+
"line": 532,
|
|
10693
10693
|
"origin": "js-markup",
|
|
10694
10694
|
"confidence": "certain"
|
|
10695
10695
|
},
|
|
@@ -10770,7 +10770,7 @@
|
|
|
10770
10770
|
"surface": "builders-hall",
|
|
10771
10771
|
"text": "{…} proposed",
|
|
10772
10772
|
"file": "modules/hall-ui/public/government.js",
|
|
10773
|
-
"line":
|
|
10773
|
+
"line": 544,
|
|
10774
10774
|
"origin": "js-markup",
|
|
10775
10775
|
"confidence": "certain"
|
|
10776
10776
|
},
|
|
@@ -10779,7 +10779,7 @@
|
|
|
10779
10779
|
"surface": "builders-hall",
|
|
10780
10780
|
"text": "{…} reset to its default {…} permissions.",
|
|
10781
10781
|
"file": "modules/hall-ui/public/government.js",
|
|
10782
|
-
"line":
|
|
10782
|
+
"line": 256,
|
|
10783
10783
|
"origin": "js-notice",
|
|
10784
10784
|
"confidence": "certain"
|
|
10785
10785
|
},
|
|
@@ -10914,7 +10914,7 @@
|
|
|
10914
10914
|
"surface": "builders-hall",
|
|
10915
10915
|
"text": "{…} · via rank",
|
|
10916
10916
|
"file": "modules/hall-ui/public/government.js",
|
|
10917
|
-
"line":
|
|
10917
|
+
"line": 294,
|
|
10918
10918
|
"origin": "js-markup",
|
|
10919
10919
|
"confidence": "certain"
|
|
10920
10920
|
},
|
|
@@ -10995,7 +10995,7 @@
|
|
|
10995
10995
|
"surface": "builders-hall",
|
|
10996
10996
|
"text": "· {…} permission{…}",
|
|
10997
10997
|
"file": "modules/hall-ui/public/government.js",
|
|
10998
|
-
"line":
|
|
10998
|
+
"line": 132,
|
|
10999
10999
|
"origin": "js-markup",
|
|
11000
11000
|
"confidence": "certain"
|
|
11001
11001
|
},
|
|
@@ -11103,7 +11103,7 @@
|
|
|
11103
11103
|
"surface": "builders-hall",
|
|
11104
11104
|
"text": "— {…}{…}",
|
|
11105
11105
|
"file": "modules/hall-ui/public/government.js",
|
|
11106
|
-
"line":
|
|
11106
|
+
"line": 622,
|
|
11107
11107
|
"origin": "js-markup",
|
|
11108
11108
|
"confidence": "certain"
|
|
11109
11109
|
},
|
package/docs/file-map.md
CHANGED
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
│ │ └── 0001…0120-*.md ← 133 ADR files (a handful of numbers collide — see README.md's disambiguation note; README.md has the live list)
|
|
46
46
|
│ ├── architecture.md ← §10 detail: live infra, app stack, DB schema, Bongos API (split out V3.R86)
|
|
47
47
|
│ ├── canonical-permissions.md ← rank ladder + trust boundary reference (read-only mirror; DB enforces)
|
|
48
|
+
│ ├── code-conventions.md ← ADR 0095 (task 1001654): the doc-comment convention — every module a header, every public symbol a line, saying WHAT it does and WHY it exists. The findability layer agents grep. Advisory only; the nudge is scripts/gds/doc-comment-coverage.js
|
|
48
49
|
│ ├── design/ ← game design docs (V2 visual redesign cluster)
|
|
49
50
|
│ │ ├── container-exterior.md ← (#641) container building exterior: two-storey stacked-container structure, glass facade, deck, rooftop
|
|
50
51
|
│ │ └── container-interior.md ← (#645) container building interior: layered industrial shell + aqua wave floor + boutique display; palette reconciled to ADR 0044
|
|
@@ -180,6 +181,7 @@
|
|
|
180
181
|
│ ├── worktree.js ← (task 1002809) junction-safe worktree add/remove/list — outside-repo worktrees get a node_modules junction via node (no shell quoting), removed BEFORE `git worktree remove`
|
|
181
182
|
│ ├── learning-capture.js ← file a `learnings` row (DB-backed short-form rule capture, replacing hand-edited recipe files for a single gotcha)
|
|
182
183
|
│ ├── docs-entropy.js ← ([#…] docs-entropy) markdown-corpus linter: broken internal links + cross-file duplicate-prose detector across every tracked `.md`; `--verbose` / `--file-ideas`
|
|
184
|
+
│ ├── doc-comment-coverage.js ← ADR 0095 / task 1001654: the ADVISORY doc-comment nudge (fitness Check 28) — reports source files under src/·scripts/·modules/ that open with no module header. Never hard-fails: a doc-comment gate that blocks a ship buys filler prose, and making it blocking needs owner sign-off + its own ADR. CRLF-safe (unlike docs-entropy.js); an empty enumeration throws as a scan defect
|
|
183
185
|
│ ├── copy-inventory.js ← R01 of goal 1000074 (the artist's loop): the COPY REGISTRY — every user-facing string across the hall / status / landing surfaces, each row naming the render path that shows it (html-text · html-attr · js-markup · js-notice · js-text-assign) + a stable id that survives a move. Writes docs/copy-registry.json + docs/copy-inventory.md; `--check` fails on drift. Precision over recall: a JS literal with no render path is not listed
|
|
184
186
|
│ ├── gen-diagrams.js ← generates the 5 onboarding diagrams (`.mmd`/`.svg`/`.png` + `assertions.json`) from templates in this file — never hand-edit a `.mmd`/assertions.json; runs on deploy
|
|
185
187
|
│ ├── gen-api-docs.js ← ADR 0109: generates `docs/api/openapi.json` + `docs/api-reference.md` from the live route files via `route-rank-check.js` introspection, so the API reference cannot drift from what the server actually mounts
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
// modules/autonomy/routes/autonomy.js — GET /autonomy/precheck: should an
|
|
2
|
+
// autonomous run start at all? (ADR 0095 backfill).
|
|
3
|
+
//
|
|
4
|
+
// WHY. The nightly routines boot real models that spend real money, so the
|
|
5
|
+
// go/no-go decision must be made BEFORE any model starts — and must itself be
|
|
6
|
+
// free. This is Step 0 of the Multi-Agent System (ADR 0024, System 3): a $0
|
|
7
|
+
// deterministic gate over live signals (is there claimable work, is there budget
|
|
8
|
+
// left, has anything actually changed since the last `go`), exposed over HTTP so
|
|
9
|
+
// an operator can ask the same question the cron asks.
|
|
10
|
+
//
|
|
11
|
+
// TWO SAFETY PROPERTIES worth preserving: it is INERT until `OTB_AUTONOMY_ENABLED=1`
|
|
12
|
+
// (an un-armed instance always answers `go`, so nothing here can start work by
|
|
13
|
+
// accident), and it is Archon-gated, because the answer decides autonomous spend.
|
|
14
|
+
//
|
|
15
|
+
// The decision logic is not here — it lives in the gate CLI
|
|
16
|
+
// `scripts/gds/autonomy-gate.js`, deliberately OUTSIDE the module boundary, since
|
|
17
|
+
// gathering signals means reading ideas/economy/lifecycle, which a modules/ file
|
|
18
|
+
// may not do. This route is a thin wrapper over its `precheck`.
|
|
19
|
+
|
|
1
20
|
const express = require('express');
|
|
2
21
|
// The published doorway — requireBuilder / requireRank live on the doorway surface
|
|
3
22
|
// (a module never reaches into core auth directly; the one-way boundary, ADR 0083).
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
//
|
|
1
|
+
// modules/dev-box/app/src/config.js — where the desktop app decides which server
|
|
2
|
+
// it is talking to, and what version of itself it is (ADR 0095 backfill).
|
|
3
|
+
//
|
|
4
|
+
// WHY. The tray app ships as a built artifact to builders' machines, so it cannot
|
|
5
|
+
// be configured by editing a file next to it — yet it still has to point at a dev
|
|
6
|
+
// or staging API during development, and at the origin a builder actually signed
|
|
7
|
+
// in to afterwards. `apiBase` resolves that in a fixed precedence (explicit env →
|
|
8
|
+
// the base recorded in the session file at sign-in → the branded production
|
|
9
|
+
// default) so a developer override is possible without ever overriding a real
|
|
10
|
+
// builder's session.
|
|
11
|
+
//
|
|
12
|
+
// The production default comes from `./brand`, which is GENERATED from the
|
|
13
|
+
// instance's branding at build time — this file must not hardcode an origin.
|
|
2
14
|
|
|
3
15
|
const brand = require('./brand');
|
|
4
16
|
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
// modules/economy/achievements.js — what a builder has unlocked, and the reads that
|
|
4
|
+
// display it (ADR 0095 backfill).
|
|
5
|
+
//
|
|
6
|
+
// WHY. Credits pay for work; achievements recognise SHAPES of work that a
|
|
7
|
+
// per-task payout cannot see — a streak sustained, a first ship, a change that
|
|
8
|
+
// removed more than it added. They are the gamification half of the economy.
|
|
9
|
+
//
|
|
10
|
+
// THE ONE STRUCTURAL RULE, and the reason the evaluators look the way they do:
|
|
11
|
+
// an unlock must be ATOMIC with the thing that earned it. Each `evaluateAfter*`
|
|
12
|
+
// therefore takes the CALLER'S transaction `client` as its first argument and runs
|
|
13
|
+
// inside the lifecycle's existing `withTx` — it never opens its own. A separate
|
|
14
|
+
// transaction could commit an unlock for a ship that then rolled back, or drop one
|
|
15
|
+
// for a ship that succeeded. Callers reach these through the `reward` kernel port,
|
|
16
|
+
// never by importing this file (core may not require a module — ADR 0093).
|
|
17
|
+
//
|
|
18
|
+
// The GETTER slice below (`listAchievements`, `getBuilderAchievements`,
|
|
19
|
+
// `getLeaderboardWithAchievements`, `getLockedAchievementsProgress`,
|
|
20
|
+
// `renderProgressText`) is the opposite posture: plain reads for the hall and the
|
|
21
|
+
// public leaderboard, reaching the shared pool through the doorway rather than a
|
|
22
|
+
// caller's tx.
|
|
23
|
+
|
|
3
24
|
const { SUBTRACTOR_THRESHOLD } = require('./policy');
|
|
4
25
|
|
|
5
26
|
// Achievement evaluation — runs inside existing DB transactions so unlocks
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
// modules/economy/routes/cost.js — POST /cost: record what a session actually spent
|
|
2
|
+
// (ADR 0095 backfill).
|
|
3
|
+
//
|
|
4
|
+
// WHY. Builder pay is cost-plus (ADR 0054: `round(true_cost_usd × 1.20)`), so the
|
|
5
|
+
// cost ledger is not telemetry — it is the input to real money. A session that
|
|
6
|
+
// fails to log its spend under-pays its builder and under-states the project's
|
|
7
|
+
// burn; one that logs twice over-pays. That is why the write is IDEMPOTENT: a
|
|
8
|
+
// retried or resumed ship must not book the same spend again.
|
|
9
|
+
//
|
|
10
|
+
// This route is only the doorway; `../cost.js` owns `logCost` and is the single
|
|
11
|
+
// writer to `cost_log`. Keep it that way — a second writer is how two sources of
|
|
12
|
+
// truth for money start.
|
|
13
|
+
//
|
|
14
|
+
// MODULE BOUNDARY: reaches core only through the published doorway
|
|
15
|
+
// `src/module-api.js`; `../cost` is an intra-module sibling.
|
|
16
|
+
|
|
1
17
|
const express = require('express');
|
|
2
18
|
// Carved into modules/economy/ (BV1.R77 / ADR 0093 §1-2): auth gates + request
|
|
3
19
|
// validators reach through the published doorway; the cost_log writer is an
|