@bongos/core 1.21.91 → 1.21.93
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 +72 -62
- package/docs/adr/0363-who-decides-what-is-a-table-changed-only-by-amendment.md +1 -0
- package/docs/copy-inventory.md +357 -367
- package/docs/copy-registry.json +559 -641
- package/docs/module-api-changelog.md +9 -0
- package/docs/page-inventory.json +15 -18
- package/docs/page-readings.json +1235 -918
- package/modules/autonomy/routes/autonomy.js +14 -5
- package/modules/government/decision-board.js +13 -3
- package/modules/government/decision-rules.js +61 -13
- package/modules/lifecycle/routes/done-when.js +2 -2
- package/modules/lifecycle/routes/gate-approvals.js +1 -1
- package/modules/lifecycle/routes/goals.js +4 -4
- package/modules/lifecycle/routes/project-settings.js +2 -2
- package/modules/lifecycle/routes/tasks.js +1 -1
- package/modules/lifecycle/routes/versions.js +1 -1
- package/modules/npm-release/routes/release.js +1 -0
- package/modules/onboarding/routes/access-requests.js +3 -3
- package/modules/provisioning/routes/core-upgrade.js +11 -0
- package/modules/public-landing/public/projects-hall-live.states.json +6 -35
- package/modules/public-landing/public/projects.html +1019 -983
- package/modules/public-landing/public/projects.probes.json +15 -18
- package/modules/public-landing/public/projects.states.json +22 -25
- package/modules/render-deploy/routes/act.js +1 -1
- package/modules/security/routes/reports.js +3 -0
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/release-notes.json +12 -0
- package/scripts/gds/fitness.js +7 -0
- package/src/bongos/act-alone.js +84 -0
- package/src/bongos/routes/builders.js +6 -1
- package/src/module-api.js +7 -1
- package/tests/autonomy_fence_priority.mjs +3 -1
- package/tests/government_act_alone_buildings.mjs +430 -0
- package/tests/module_api.mjs +1 -0
- package/tests/npm_release_release.mjs +2 -1
- package/tests/onboard.mjs +8 -8
- package/tests/project_invite_ui.mjs +6 -5
- package/tests/projects_hub.mjs +77 -98
- package/tests/projects_hub_app_status.mjs +3 -3
- package/tests/projects_hub_app_step.mjs +8 -8
- package/tests/projects_hub_cloud_hop.mjs +29 -53
- package/tests/projects_hub_look.mjs +29 -39
- package/tests/projects_hub_module_picker.mjs +32 -39
- package/tests/projects_hub_pre_uat.mjs +11 -14
- package/tests/ship_mode.mjs +2 -1
- package/tests/wizard_demo.mjs +30 -25
- package/tests/wizard_draft_resume.mjs +24 -32
- package/tests/wizard_front_door.mjs +91 -243
- package/tests/wizard_intent_resume.mjs +28 -48
- package/tests/wizard_one_page.mjs +201 -0
- package/tests/wizard_physics.mjs +46 -41
- package/tests/wizard_physics_more.mjs +71 -106
- package/tests/wizard_ship_mode.mjs +1 -1
- package/tests/wizard_six_screens.mjs +0 -129
|
@@ -158,24 +158,21 @@
|
|
|
158
158
|
{ "name": "manage flows: disconnect entirely asks for the name typed back, queues the true delete, and the page re-reads the project as being disconnected (task 1003249)", "auth": true, "width": 1440, "url": "/projects?view=manage&id=104",
|
|
159
159
|
"steps": [["wait",900],["click","[data-disc-ask]"],["wait",200],["fill","#mDiscName","old-lantern"],["wait",100],["click","[data-disc-yes]"],["wait",900]],
|
|
160
160
|
"expect": {"text":[["#mDisc .addr","This project is being disconnected."],["#mName","old-lantern"]],"hidden":["#mDiscName","[data-disc-ask]"]} },
|
|
161
|
-
{ "name": "the
|
|
162
|
-
"steps": [["wait",600],["click","#
|
|
163
|
-
"expect": {"visible":["#
|
|
164
|
-
{ "name": "the quick checks (task
|
|
165
|
-
"steps": [["wait",600],["
|
|
166
|
-
"expect": {"visible":["#
|
|
167
|
-
{ "name": "
|
|
168
|
-
"steps": [["wait",600],["
|
|
169
|
-
"expect": {"visible":["#
|
|
170
|
-
{ "name": "the wizard driver (
|
|
171
|
-
"steps": [["wait",600],["
|
|
172
|
-
"expect": {"visible":["#panel-done","#hop","#hopCanvas","#hopStatus","#hopJump"],"hidden":["#
|
|
173
|
-
{ "name": "the
|
|
174
|
-
"steps": [["wait",600],["click","#termsAck"],["wait",100]],
|
|
175
|
-
"expect": {"visible":["#panel-
|
|
176
|
-
{ "name": "the wizard driver at 390: the review rows stack and the walk still reaches Create", "auth": true, "width": 390, "url": "/projects?view=new",
|
|
177
|
-
"steps": [["wait",600],["click","#termsAck"],["wait",100],["click","#wizStart"],["wait",400],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["click","#panel-what button[type=submit]"],["wait",400],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["click","#physNext"],["wait",700],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["fill","#f-slug","mercury"],["wait",900],["fill","#f-domain","mercury.example.com"],["wait",200],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["click","#reviewGo"],["wait",500]],
|
|
178
|
-
"expect": {"visible":["#panel-look","#wizLook","#doCreate"],"hidden":["#panel-review"],"text":[["#look-h","Give it a look."]]} },
|
|
161
|
+
{ "name": "the one page (task 1004648): Create waits for a name and the terms tick and says why in place; the demo link opens the demo at the top of part 01 and \"Make a real project instead\" closes it again", "auth": true, "width": 1440, "url": "/projects?view=new",
|
|
162
|
+
"steps": [["wait",600],["click","#wizDemo"],["wait",300],["click","#demoCancel"],["wait",300],["fill","#newName","Mercury"],["wait",100]],
|
|
163
|
+
"expect": {"visible":["#part-project","#part-run","#doCreate"],"hidden":["#demoSetup","#demoTag"],"attr":[["#wizDemo","aria-expanded","false"],["#doCreate","disabled",""]],"text":[["#createWhy","Tick the terms to create your project."]]} },
|
|
164
|
+
{ "name": "the quick checks (task 1004648): a country with states asks for one, a yes to under-18s shows the age tiers, and an existing entity opens the full list — in place, in part 01", "auth": true, "width": 1440, "url": "/projects?view=new",
|
|
165
|
+
"steps": [["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["select","#physRegion","US-CA"],["click","[data-phys=\"builder_geography\"][data-val=\"us-eu\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"true\"]"],["wait",200],["click","#physHaveEntity"],["wait",100],["click","[data-phys=\"entity\"][data-val=\"for-profit\"]"],["wait",300]],
|
|
166
|
+
"expect": {"visible":["#physRegionField","#physAges","#physForms","#part-run"],"hidden":["#physIntent","#checksStop"]} },
|
|
167
|
+
{ "name": "part 02 (task 1004648): Change opens a row in place and reads Done, opening another closes it, and nothing needs confirming", "auth": true, "width": 1440, "url": "/projects?view=new",
|
|
168
|
+
"steps": [["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"team\"] [data-row-chg]"],["wait",200],["click","[data-phys-solo=\"many\"]"],["wait",600],["click","#reviewRows .setRow[data-row=\"run\"] [data-row-chg]"],["wait",300]],
|
|
169
|
+
"expect": {"visible":["#reviewRows .setRow[data-row=\"rewards\"]","#reviewRows .setRow.open[data-row=\"run\"] .opts"],"hidden":["#reviewRows .setRow[data-row=\"team\"] .opts"],"text":[["#reviewRows .setRow[data-row=\"run\"] [data-row-chg]","Done"],["#reviewRows .setRow[data-row=\"team\"] [data-row-chg]","Change"]]} },
|
|
170
|
+
{ "name": "the wizard driver (task 1004648): part 01, the checks, the address row (the dotless stub host takes a domain the founder owns), the tick, then Create — part 03 goes live with the checklist, the cloud hop and its status line", "auth": true, "width": 1440, "url": "/projects?view=new",
|
|
171
|
+
"steps": [["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["fill","#f-slug","mercury"],["wait",900],["fill","#f-domain","mercury.example.com"],["wait",200],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["click","#termsAck"],["wait",100],["click","#doCreate"],["wait",1500]],
|
|
172
|
+
"expect": {"visible":["#panel-done","#humanSteps","#hop","#hopCanvas","#hopStatus","#hopJump"],"hidden":["#wizParts","#liveProgress"],"text":[["#done-h","Setting up Mercury"],["#hopStatus","Raising the server, database, and address — nothing needed from you."]]} },
|
|
173
|
+
{ "name": "the wizard driver at 320 (narrower than a 375 phone): the page stacks, nothing scrolls sideways, and the walk still reaches part 03", "auth": true, "width": 320, "url": "/projects?view=new",
|
|
174
|
+
"steps": [["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["fill","#f-slug","mercury"],["wait",900],["fill","#f-domain","mercury.example.com"],["wait",200],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["click","#termsAck"],["wait",100],["click","#doCreate"],["wait",1500]],
|
|
175
|
+
"expect": {"noOverflow":true,"visible":["#panel-done","#humanSteps"],"hidden":["#wizParts"]} },
|
|
179
176
|
{ "name": "invite a guild (task 1002303, R27): a /g/ address gives one pending line per member on its public page, each a link to the hall", "auth": true, "width": 1440, "url": "/projects?view=manage&id=101",
|
|
180
177
|
"steps": [["wait",900],["fill","#mInviteGuild","/g/forge-crew"],["click","#mInvite [data-invite-guild]"],["wait",400]],
|
|
181
178
|
"expect": { "count": [["#mInviteList li", 4]], "value": [["#mInviteGuild", ""]],
|
|
@@ -37,31 +37,28 @@
|
|
|
37
37
|
"in-manage-gone": { "auth": true, "url": "/projects?view=manage&id=104", "expect": { "visible": ["#mMain", "#mActs"], "hidden": ["#mErr", "#mAddress"], "text": [["#mName", "old-lantern"]] } },
|
|
38
38
|
"in-manage-missing": { "auth": true, "url": "/projects?view=manage&id=999", "expect": { "visible": ["#mMissing"], "hidden": ["#mMain", "#mGate"] } },
|
|
39
39
|
"out-manage": { "auth": false, "url": "/projects?view=manage&id=101", "expect": { "visible": ["#mGate"], "hidden": ["#mMain", "#mMissing"] } },
|
|
40
|
-
"in-new": {"auth":true,"url":"/projects?view=new","expect":{"visible":["#panel-
|
|
41
|
-
"in-new-
|
|
42
|
-
"in-new-
|
|
43
|
-
"in-new-
|
|
44
|
-
"in-new-demo
|
|
45
|
-
"in-new-demo-
|
|
46
|
-
"in-new-
|
|
47
|
-
"in-new-
|
|
48
|
-
"in-new-
|
|
49
|
-
"in-new-
|
|
50
|
-
"in-new-
|
|
51
|
-
"in-new-
|
|
52
|
-
"in-new-
|
|
53
|
-
"in-new-
|
|
54
|
-
"in-new-
|
|
55
|
-
"in-new-
|
|
56
|
-
"in-new-
|
|
57
|
-
"in-new-
|
|
58
|
-
"in-new-
|
|
59
|
-
"in-new-
|
|
60
|
-
"in-new-
|
|
61
|
-
"
|
|
62
|
-
"in-new-resume-offer": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["click","#termsAck"],["wait",100],["click","#wizStart"],["wait",400],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["click","#panel-what button[type=submit]"],["wait",400],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["click","#physNext"],["wait",700],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["fill","#f-slug","mercury"],["wait",900],["fill","#f-domain","mercury.example.com"],["wait",200],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["click","#reviewGo"],["wait",500],["click","#doCreate"],["wait",1500],["click","#projTrig"],["wait",350],["click","#menuProjects [data-nav=\"new\"]"],["wait",500]],"expect":{"visible":["#panel-fork","#wizResume","#wizResumeGo"],"hidden":["#panel-done"],"text":[["#wizResumeName","Mercury"]]}},
|
|
63
|
-
"in-new-look-custom": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["click","#termsAck"],["wait",100],["click","#wizStart"],["wait",400],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["click","#panel-what button[type=submit]"],["wait",400],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["click","#physNext"],["wait",700],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["fill","#f-slug","mercury"],["wait",900],["fill","#f-domain","mercury.example.com"],["wait",200],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["click","#reviewGo"],["wait",500],["click","#wizLook-custom"],["wait",200]],"expect":{"visible":["#panel-look","#wizAccent","#wizAccentNote"],"hidden":["#panel-review"]}},
|
|
64
|
-
"out-new": {"auth":false,"url":"/projects?view=new","expect":{"visible":["#panel-gate","#wizSignin"],"hidden":["#qWrap","#panel-fork"]}},
|
|
40
|
+
"in-new": {"auth":true,"url":"/projects?view=new","expect":{"visible":["#panel-page","#part-project","#part-run","#termsAck","#doCreate","#panel-done",".wizRoom .rmWindow"],"hidden":["#qWrap","#doneBody","#demoSetup","#checksStop","#panel-gate"],"attr":[["#doCreate","disabled",""],["#wizRoom","data-screen","page"],["#panel-done","class","part waiting"]],"text":[["#createWhy","Give it a name first."],["#ghState","opens once your project exists"]]}},
|
|
41
|
+
"in-new-named": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["wait",200]],"expect":{"visible":["#doCreate","#wizRecap"],"attr":[["#doCreate","disabled",""]],"text":[["#createWhy","Tick the terms to create your project."],["#wizRecap","Mercury · new repo · no address yet"]]}},
|
|
42
|
+
"in-new-ready": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["click","#termsAck"],["wait",200]],"expect":{"visible":["#doCreate","#wizRecap"],"attr":[["#wizRoom","data-fill","3"]],"text":[["#wizRecap","Mercury · Game · new repo · no address yet"]]}},
|
|
43
|
+
"in-new-name-prefilled": {"auth":true,"url":"/projects?view=new&name=Mercury","actions":[["wait",600]],"expect":{"visible":["#panel-page","#newName"]}},
|
|
44
|
+
"in-new-demo": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["click","#wizDemo"],["wait",300]],"expect":{"visible":["#panel-page","#demoSetup","#demoFitVerdict","#demoInvites","#demoStart","#demoCancel"],"attr":[["#wizDemo","aria-expanded","true"]]}},
|
|
45
|
+
"in-new-demo-used": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["click","#wizDemo"],["wait",300],["fill","#demoIdea","A voting app for movie night"],["click","#demoStart"],["wait",400]],"expect":{"visible":["#demoTag","#newName","#part-run"],"hidden":["#demoSetup","#checksMain"],"text":[["#wizEyebrow","New demo"]]}},
|
|
46
|
+
"in-new-checks-filled": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["select","#physRegion","US-CA"],["click","[data-phys=\"builder_geography\"][data-val=\"us-eu\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"true\"]"],["wait",300]],"expect":{"visible":["#physRegionField","#physAges"],"hidden":["#checksStop"]}},
|
|
47
|
+
"in-new-checks-entity": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["click","#physHaveEntity"],["wait",200],["click","[data-phys=\"entity\"][data-val=\"for-profit\"]"],["wait",100]],"expect":{"visible":["#physForms","#physNoEntity"],"hidden":["#physIntent"]}},
|
|
48
|
+
"in-new-row-code": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"code\"] [data-row-chg]"],["wait",400]],"expect":{"visible":["#reviewRows .setRow.open[data-row=\"code\"] .opts","#c-green","#c-adopt"]}},
|
|
49
|
+
"in-new-row-address": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",400]],"expect":{"visible":["#reviewRows .setRow.open[data-row=\"address\"] .opts","#f-slug","#addrConfirm","#f-noaddr"]}},
|
|
50
|
+
"in-new-row-team": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"team\"] [data-row-chg]"],["wait",400],["click","[data-phys-solo=\"many\"]"],["wait",400]],"expect":{"visible":["#reviewRows .setRow.open[data-row=\"team\"] .opts","[data-phys-solo=\"many\"]"]}},
|
|
51
|
+
"in-new-row-extras": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"extras\"] [data-row-chg]"],["wait",400]],"expect":{"visible":["#reviewRows .setRow.open[data-row=\"extras\"] .opts","#modCards"]}},
|
|
52
|
+
"in-new-row-rewards": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"team\"] [data-row-chg]"],["wait",200],["click","[data-phys-solo=\"many\"]"],["wait",600],["click","#reviewRows .setRow[data-row=\"rewards\"] [data-row-chg]"],["wait",400]],"expect":{"visible":["#reviewRows .setRow.open[data-row=\"rewards\"] .opts","[data-phys=\"reward_intents\"][data-val=\"cash\"]"]}},
|
|
53
|
+
"in-new-row-app": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"app\"] [data-row-chg]"],["wait",400]],"expect":{"visible":["#reviewRows .setRow.open[data-row=\"app\"] .opts","#appOpts"]}},
|
|
54
|
+
"in-new-row-run": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"run\"] [data-row-chg]"],["wait",400],["click","[data-phys=\"framing\"][data-val=\"hybrid\"]"],["wait",400]],"expect":{"visible":["#reviewRows .setRow.open[data-row=\"run\"] .opts","#physSuite"]}},
|
|
55
|
+
"in-new-row-ship": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"ship\"] [data-row-chg]"],["wait",400]],"expect":{"visible":["#reviewRows .setRow.open[data-row=\"ship\"] .opts","#shipOpts"]}},
|
|
56
|
+
"in-new-look": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"look\"] [data-row-chg]"],["wait",400]],"expect":{"visible":["#reviewRows .setRow.open[data-row=\"look\"] .opts","#wizLook"]}},
|
|
57
|
+
"in-new-look-custom": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"look\"] [data-row-chg]"],["wait",400],["click","#wizLook-custom"],["wait",200]],"expect":{"visible":["#reviewRows .setRow.open[data-row=\"look\"] .opts","#wizLook","#wizAccent","#wizAccentNote"]}},
|
|
58
|
+
"in-new-create-blocked": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["click","#termsAck"],["wait",100],["click","#doCreate"],["wait",400]],"expect":{"visible":["#reviewRows .setRow.open[data-row=\"address\"] .opts","#h-domain"],"hidden":["#doneBody"],"text":[["#createWhy","Fix the row that’s open, then create."]]}},
|
|
59
|
+
"in-new-done": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["fill","#f-slug","mercury"],["wait",900],["fill","#f-domain","mercury.example.com"],["wait",200],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["click","#termsAck"],["wait",100],["click","#doCreate"],["wait",1500]],"expect":{"visible":["#panel-done","#doneBody","#humanSteps","#hop","#hopCanvas","#hopStatus","#hopJump","#wizRecap"],"hidden":["#wizParts","#qWrap","#wizInvite","#liveProgress","#wizInviteLater"],"attr":[["#doCreate","disabled",""],["#wizRoom","data-screen","done"]],"text":[["#done-h","Setting up Mercury"],["#doCreate","Created"]]}},
|
|
60
|
+
"in-new-resume-offer": {"auth":true,"url":"/projects?view=new","actions":[["wait",600],["fill","#newName","Mercury"],["click","#typeCards .tpill[data-type=\"game\"]"],["fill","#f-desc","A co-op farming game where the seasons never repeat."],["select","#physCountry","US"],["wait",100],["click","[data-phys=\"builder_geography\"][data-val=\"global\"]"],["click","[data-phys=\"minors_on_board\"][data-val=\"false\"]"],["click","[data-phys=\"entity\"][data-val=\"intent-solo\"]"],["wait",300],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["fill","#f-slug","mercury"],["wait",900],["fill","#f-domain","mercury.example.com"],["wait",200],["click","#reviewRows .setRow[data-row=\"address\"] [data-row-chg]"],["wait",200],["click","#termsAck"],["wait",100],["click","#doCreate"],["wait",1500],["click","#projTrig"],["wait",350],["click","#menuProjects [data-nav=\"new\"]"],["wait",500]],"expect":{"visible":["#panel-page","#wizResume","#wizResumeGo","#wizParts"],"hidden":["#doneBody"],"text":[["#wizResumeName","Mercury"]]}},
|
|
61
|
+
"out-new": {"auth":false,"url":"/projects?view=new","expect":{"visible":["#panel-gate","#wizSignin"],"hidden":["#qWrap","#panel-page"]}},
|
|
65
62
|
"out-map-projects": { "auth": false, "actions": [["click", "#projTrig"], ["wait", 350]], "expect": { "expanded": true, "hidden": ["#menuProjects [data-nav=\"mine\"]"] } },
|
|
66
63
|
"card": { "auth": true, "actions": [["dispatchClick", "#orbField a.worldOrb[data-origin=\"https://example.com\"]"], ["wait", 900]], "expect": { "dialog": true, "hasClass": [["#projCard", "has-art"]], "visible": ["#cardArt", "#cardFaces", "#cardBuildersFig", "#cardShippedFig", "#cardOpen", "#cardHall"], "text": [["#cardBuilders", "11"], ["#cardShipped", "0"], ["#cardRel", "you build here"], ["#cardRuns", "example.com"], ["#cardFaces .facesMore", "+6"]], "count": [["#cardFaces img", 5]], "href": [["#cardHall", "https://builders.example.com/"]] } },
|
|
67
64
|
"card-noart": { "auth": true, "actions": [["dispatchClick", "#orbField a.worldOrb[data-origin=\"https://emersonian-circles.cloudbongos.com\"]"], ["wait", 600]], "expect": { "dialog": true, "hasClass": [["#projCard", "has-art", false]], "hidden": ["#cardArt", "#cardFaces", "#cardHall"], "visible": ["#cardBuildersFig", "#cardShippedFig", "#cardOpen"], "text": [["#cardShipped", "30+"], ["#cardRel", "you build here"]] } },
|
|
@@ -26,7 +26,7 @@ const log = api.logger('render-deploy');
|
|
|
26
26
|
module.exports = function buildRenderDeployActRouter({ makeClient = defaultMakeClient, pool } = {}) {
|
|
27
27
|
const router = express.Router();
|
|
28
28
|
|
|
29
|
-
router.post('/render-deploy/act', api.requireBuilder, api.requirePermission('core.pin.move'), async (req, res) => {
|
|
29
|
+
router.post('/render-deploy/act', api.requireBuilder, api.requirePermission('core.pin.move'), api.requireActAlone('release'), async (req, res) => {
|
|
30
30
|
const db = pool || api.pool;
|
|
31
31
|
// Shape only, and strict: an undeclared field is refused. `confirm` and `expectLiveDeployId`
|
|
32
32
|
// are left to the checks below so each gets its own plain refusal rather than a schema one.
|
|
@@ -217,6 +217,7 @@ module.exports = function buildSecurityReportsRouter() {
|
|
|
217
217
|
'/security/reports/:id/confirm',
|
|
218
218
|
api.requireBuilder,
|
|
219
219
|
api.requirePermission('security.report.adjudicate'),
|
|
220
|
+
api.requireActAlone('disputes'),
|
|
220
221
|
async (req, res) => {
|
|
221
222
|
// drachmae_awarded is OPTIONAL and deliberately UNTYPED here: the handler
|
|
222
223
|
// accepts a number, a stringified number, '' and null alike, and the inline
|
|
@@ -256,6 +257,7 @@ module.exports = function buildSecurityReportsRouter() {
|
|
|
256
257
|
'/security/reports/:id/dispute',
|
|
257
258
|
api.requireBuilder,
|
|
258
259
|
api.requirePermission('security.report.adjudicate'),
|
|
260
|
+
api.requireActAlone('disputes'),
|
|
259
261
|
async (req, res) => {
|
|
260
262
|
const id = parseId(req, res, { code: 'bad_report_id', positiveInt: true });
|
|
261
263
|
if (id === null) return;
|
|
@@ -281,6 +283,7 @@ module.exports = function buildSecurityReportsRouter() {
|
|
|
281
283
|
'/security/reports/:id/fix',
|
|
282
284
|
api.requireBuilder,
|
|
283
285
|
api.requirePermission('security.report.adjudicate'),
|
|
286
|
+
api.requireActAlone('disputes'),
|
|
284
287
|
async (req, res) => {
|
|
285
288
|
const id = parseId(req, res, { code: 'bad_report_id', positiveInt: true });
|
|
286
289
|
if (id === null) return;
|
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bongos/core",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.93",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@bongos/core",
|
|
9
|
-
"version": "1.21.
|
|
9
|
+
"version": "1.21.93",
|
|
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.21.
|
|
3
|
+
"version": "1.21.93",
|
|
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/release-notes.json
CHANGED
|
@@ -9376,5 +9376,17 @@
|
|
|
9376
9376
|
"id": "1004563",
|
|
9377
9377
|
"text": "In Governing mode the top bar now shows two live numbers: how many things are waiting on the owner (\"needs you\") and how many tasks are being built or waiting to go live (\"moving\"). If a number can't be read it is simply left"
|
|
9378
9378
|
}
|
|
9379
|
+
],
|
|
9380
|
+
"1.21.92": [
|
|
9381
|
+
{
|
|
9382
|
+
"id": "1004648",
|
|
9383
|
+
"text": "Starting a project is now one page instead of six screens. After signing in, a founder sees \"Make something.\" with three parts: their project (name, kind, a sentence and four quick checks), a short summary of how it will be ru"
|
|
9384
|
+
}
|
|
9385
|
+
],
|
|
9386
|
+
"1.21.93": [
|
|
9387
|
+
{
|
|
9388
|
+
"id": "1004657",
|
|
9389
|
+
"text": "When a project votes that a part of its government is decided by a group, that vote now holds on every page, not only the People page. Before, someone with the right permission could still switch unattended building on, sign o"
|
|
9390
|
+
}
|
|
9379
9391
|
]
|
|
9380
9392
|
}
|
package/scripts/gds/fitness.js
CHANGED
|
@@ -609,6 +609,12 @@ const KERNEL_FILES = [
|
|
|
609
609
|
// this roster reads as a kernel->non-kernel leak. It imports only node built-ins
|
|
610
610
|
// (https, zlib), so joining costs nothing.
|
|
611
611
|
'src/bongos/package-registry.js',
|
|
612
|
+
// task 1004657 (ADR 0363 D5): requireActAlone, the gate a building's own page mounts
|
|
613
|
+
// after its permission gate — the same trust-gate category as auth.js, re-exported
|
|
614
|
+
// by the doorway, so leaving it off reads as a kernel->non-kernel leak. It imports
|
|
615
|
+
// only module-seams.js and logger.js (both on this roster) and reaches the
|
|
616
|
+
// government module through its port, never by require.
|
|
617
|
+
'src/bongos/act-alone.js',
|
|
612
618
|
];
|
|
613
619
|
|
|
614
620
|
// Kernel files exempt from the no-module-keys scan (Check 10) because naming a
|
|
@@ -641,6 +647,7 @@ const KERNEL_NAMES_MODULES_OK = new Set([
|
|
|
641
647
|
'src/bongos/auth-github.js', // ticks the 'onboarding' port on first sign-in
|
|
642
648
|
'src/bongos/auth-idp.js', // same, on the federated path
|
|
643
649
|
'src/bongos/auth-discord.js', // the Discord account-link flow itself
|
|
650
|
+
'src/bongos/act-alone.js', // resolves the 'government' port by key for checkActAlone (task 1004657)
|
|
644
651
|
'src/bongos/permission-path-check.js', // names module path subtrees to PROTECT them
|
|
645
652
|
'src/bongos/route-rank-check.js', // names module route dirs to rank-gate them
|
|
646
653
|
'src/role-responsibilities.js', // the ideator's VERBATIM statement reads "Make good ideas" — the English word, colliding with the `ideas` key. Owner text; unparaphrasable.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/bongos/act-alone.js — WHO DECIDES WHAT, on every building's own page
|
|
4
|
+
// (task 1004657, goal 1000111; ADR 0363 D5 and its Consequences).
|
|
5
|
+
//
|
|
6
|
+
// WHY. A project's decision-rules table (modules/government/decision-rules.js)
|
|
7
|
+
// can hand a building to a sitting: "Release is decided by the council, by
|
|
8
|
+
// majority". Until this file, only People's own routes asked the table before
|
|
9
|
+
// letting one builder act; every other building's page still let whoever held
|
|
10
|
+
// its permission act alone, so a passed amendment changed the board and not
|
|
11
|
+
// the building. requireActAlone(area) is the one gate those pages mount, AFTER
|
|
12
|
+
// their permission gate, so the permission stays the coarse wall and the row
|
|
13
|
+
// only narrows who may use it alone (never wider — ADR 0363 D5).
|
|
14
|
+
//
|
|
15
|
+
// THE REFUSAL is People's, exactly (modules/government/routes/government.js,
|
|
16
|
+
// peopleMayActAlone): 409 `decided_by_sitting` with { area, rule, who,
|
|
17
|
+
// what_this_means, open_with }, so the hall renders one sentence for every
|
|
18
|
+
// building and the builder is pointed at the sitting (POST
|
|
19
|
+
// /government/board/matters) instead.
|
|
20
|
+
//
|
|
21
|
+
// FAIL DIRECTIONS, mirroring checkActAlone and People:
|
|
22
|
+
// • no government module, or a port without checkActAlone → AS TODAY (the
|
|
23
|
+
// route's own permission is the whole gate). A malformed or missing row
|
|
24
|
+
// already reads as its as-today default inside checkActAlone (D2).
|
|
25
|
+
// • the table cannot be read at all (checkActAlone throws), or the answer is
|
|
26
|
+
// not one this gate knows → 503 `decision_rule_unreadable`, fail-CLOSED, as
|
|
27
|
+
// People does: an unreadable rule never waves a lone act through.
|
|
28
|
+
//
|
|
29
|
+
// A PASSED MATTER IS NOT A LONE ACT. When a sitting passes a matter, the owning
|
|
30
|
+
// module carries it out through its 'governor.matterAct' contribution, which
|
|
31
|
+
// calls the route's underlying write directly (modules/autonomy/matter-acts.js,
|
|
32
|
+
// modules/lifecycle/matter-acts.js, the Treasury act in
|
|
33
|
+
// src/bongos/routes/builders.js) and never passes through this middleware — the
|
|
34
|
+
// sitting is the authority. tests/government_act_alone_buildings.mjs pins that.
|
|
35
|
+
//
|
|
36
|
+
// `unless(req)` exempts a request that is not a decision at all (a dry run that
|
|
37
|
+
// only reads, the owner door of a tenant pin move) or a BRAKE (switching
|
|
38
|
+
// unattended building off, pausing one runner): stopping a machine never waits
|
|
39
|
+
// for a meeting. Pass a named function — the route classifier reads the line.
|
|
40
|
+
//
|
|
41
|
+
// Server-side, per request, uncached (ADR 0016). Core and modules reach the
|
|
42
|
+
// government module only through its port, never by require (ADR 0083).
|
|
43
|
+
|
|
44
|
+
const seams = require('../module-seams');
|
|
45
|
+
const log = require('./logger').logger.child({ src: 'act-alone' });
|
|
46
|
+
|
|
47
|
+
function logError(message) {
|
|
48
|
+
try {
|
|
49
|
+
log.error(message);
|
|
50
|
+
} catch (_) { /* logging must never decide a request */ }
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function requireActAlone(area, { unless = null } = {}) {
|
|
54
|
+
if (typeof area !== 'string' || area.length === 0) {
|
|
55
|
+
throw new TypeError('requireActAlone(area): name the building whose row decides this route');
|
|
56
|
+
}
|
|
57
|
+
if (unless !== null && typeof unless !== 'function') {
|
|
58
|
+
throw new TypeError('requireActAlone(area, { unless }): unless must be a function of the request');
|
|
59
|
+
}
|
|
60
|
+
return async function actAloneGate(req, res, next) {
|
|
61
|
+
if (unless && unless(req) === true) return next();
|
|
62
|
+
const government = seams.resolveOptional('government');
|
|
63
|
+
if (!government || typeof government.checkActAlone !== 'function') return next();
|
|
64
|
+
let out;
|
|
65
|
+
try {
|
|
66
|
+
out = await government.checkActAlone(area, req.builder && req.builder.id);
|
|
67
|
+
} catch (err) {
|
|
68
|
+
logError(`${area} decision rule unreadable: ${err && err.message}`);
|
|
69
|
+
return res.fail('decision_rule_unreadable', { status: 503, message: `who decides at ${area} could not be read just now` });
|
|
70
|
+
}
|
|
71
|
+
if (out && out.ok === true) return next();
|
|
72
|
+
if (!out || out.reason !== 'decided_by_sitting') {
|
|
73
|
+
// unknown_area is a wiring bug in the route, not a fact about the caller.
|
|
74
|
+
logError(`requireActAlone('${area}') got ${out && out.reason} — refusing fail-closed`);
|
|
75
|
+
return res.fail('decision_rule_unreadable', { status: 503, message: `who decides at ${area} could not be read just now` });
|
|
76
|
+
}
|
|
77
|
+
return res.fail('decided_by_sitting', 409, {
|
|
78
|
+
area: out.area, rule: out.rule, who: out.who,
|
|
79
|
+
what_this_means: out.what_this_means, open_with: out.open_with,
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
module.exports = { requireActAlone };
|
|
@@ -26,6 +26,11 @@ const path = require('node:path');
|
|
|
26
26
|
const { execFile } = require('node:child_process');
|
|
27
27
|
const express = require('express');
|
|
28
28
|
const auth = require('../auth');
|
|
29
|
+
// WHO DECIDES AT TREASURY (task 1004657; ADR 0363 D5): the budget write refuses a
|
|
30
|
+
// lone act while Treasury's decision-rules row names a sitting. A passed Treasury
|
|
31
|
+
// matter sets the limit through setMonthlyBudget directly (the governor.matterAct
|
|
32
|
+
// below), never through the route, so the sitting is never refused by its own gate.
|
|
33
|
+
const { requireActAlone } = require('../act-alone');
|
|
29
34
|
const db = require('../db');
|
|
30
35
|
const { validateOrRespond, LIMITS, parseId } = require('./_helpers');
|
|
31
36
|
// The onboarding state machine carved into modules/onboarding/ (BV1.R81 / ADR
|
|
@@ -398,7 +403,7 @@ module.exports = function buildBuildersRouter() {
|
|
|
398
403
|
// rank: archon — changes another builder's cost ceiling. NOT ownership-scoped:
|
|
399
404
|
// archon-only admin op. Gate: requirePermission('builder.budget.set') — BV1.R104;
|
|
400
405
|
// the seeded rank-role makes the permission and the old rank floor identical (ADR 0151).
|
|
401
|
-
router.patch('/builders/:id/budget', auth.requireBuilder, auth.requirePermission('builder.budget.set'), async (req, res) => {
|
|
406
|
+
router.patch('/builders/:id/budget', auth.requireBuilder, auth.requirePermission('builder.budget.set'), requireActAlone('treasury'), async (req, res) => {
|
|
402
407
|
const targetId = parseId(req, res, { code: 'bad_builder_id', positiveInt: true });
|
|
403
408
|
if (targetId === null) return;
|
|
404
409
|
if (validateOrRespond(req, res, { monthly_budget_usd: {} })) return; // number ≥0, or null to clear; validated below
|
package/src/module-api.js
CHANGED
|
@@ -75,7 +75,7 @@ const { responsibilityFor, ROLE_RESPONSIBILITIES } = require('./role-responsibil
|
|
|
75
75
|
// MAJOR (see allowBoxScope below): passes the request through untouched.
|
|
76
76
|
function deprecatedNoopMiddleware(_req, _res, next) { next(); }
|
|
77
77
|
|
|
78
|
-
const CORE_VERSION = '1.21.
|
|
78
|
+
const CORE_VERSION = '1.21.93'; // CI auto-patch carrier (ADR 0161); changelog: docs/module-api-changelog.md
|
|
79
79
|
|
|
80
80
|
// A namespaced logger so a module's log lines are attributable + consistent.
|
|
81
81
|
// Usage: const log = api.logger('discord'); log.info('mounted');
|
|
@@ -133,6 +133,12 @@ module.exports = {
|
|
|
133
133
|
// the equivalent requireRank admitted, so a migrated module route is
|
|
134
134
|
// behaviour-identical (BV1.R105).
|
|
135
135
|
get requirePermission() { return require('./bongos/auth').requirePermission; },
|
|
136
|
+
// requireActAlone(area, { unless }) — WHO DECIDES WHAT on a building's own
|
|
137
|
+
// page (task 1004657; ADR 0363 D5). Mounted AFTER the route's permission
|
|
138
|
+
// gate: while the project's decision-rules row hands that building to a
|
|
139
|
+
// sitting, one builder acting alone is refused (409 decided_by_sitting,
|
|
140
|
+
// pointing at the matter route). No government module → as today.
|
|
141
|
+
get requireActAlone() { return require('./bongos/act-alone').requireActAlone; },
|
|
136
142
|
get rankMeetsThreshold() { return require('./bongos/auth').rankMeetsThreshold; },
|
|
137
143
|
get requireBfgPrincipal() { return require('./bongos/auth').requireBfgPrincipal; },
|
|
138
144
|
// allowBoxScope — DEPRECATED no-op, kept so the doorway loses no export inside
|
|
@@ -64,8 +64,10 @@ test('POST /autonomy/fence/priority sits behind the same owner-only atom as the
|
|
|
64
64
|
const layer = router.stack.find((l) => l.route && l.route.path === '/autonomy/fence/priority');
|
|
65
65
|
assert.ok(layer, 'the route is registered');
|
|
66
66
|
assert.equal(layer.route.methods.post, true);
|
|
67
|
-
assert.equal(layer.route.stack.length,
|
|
67
|
+
assert.equal(layer.route.stack.length, 4, 'requireBuilder + requirePermission + requireActAlone + handler');
|
|
68
68
|
assert.equal(layer.route.stack[1].handle.permKey, 'autonomy.fence.manage');
|
|
69
|
+
// task 1004657: Automation's decision rule is asked after the permission gate.
|
|
70
|
+
assert.equal(layer.route.stack[2].handle.name, 'actAloneGate');
|
|
69
71
|
});
|
|
70
72
|
|
|
71
73
|
test('the route sets, clears, and refuses a goal that is not allowlisted', async () => {
|