agl 43.9.0 → 43.10.1

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 (147) hide show
  1. package/changelog.md +20 -0
  2. package/dist_serve/bundle.js +997 -975
  3. package/dist_serve/bundle.js.map +2 -2
  4. package/dist_ts/00_commitinfo_data.js +2 -2
  5. package/dist_ts/aglapi/aglapisurface.document.js +3 -3
  6. package/dist_ts/classes.accountsactions.d.ts +3 -1
  7. package/dist_ts/classes.accountsactions.js +17 -1
  8. package/dist_ts/classes.authstore.d.ts +6 -0
  9. package/dist_ts/classes.authstore.js +8 -1
  10. package/dist_ts/classes.controller.d.ts +7 -1
  11. package/dist_ts/classes.controller.js +39 -7
  12. package/dist_ts/classes.inferencegateway.js +7 -5
  13. package/dist_ts/classes.inferenceplacement.d.ts +1 -1
  14. package/dist_ts/classes.inferencerouter.d.ts +20 -3
  15. package/dist_ts/classes.inferencerouter.js +37 -10
  16. package/dist_ts/classes.inferenceservice.js +2 -2
  17. package/dist_ts/classes.mcpcallerregistry.d.ts +19 -1
  18. package/dist_ts/classes.mcpcallerregistry.js +33 -7
  19. package/dist_ts/classes.terminalcallers.d.ts +40 -0
  20. package/dist_ts/classes.terminalcallers.js +90 -0
  21. package/dist_ts/classes.terminalmanager.d.ts +20 -1
  22. package/dist_ts/classes.terminalmanager.js +36 -2
  23. package/dist_ts/classes.ticketnotifier.d.ts +2 -2
  24. package/dist_ts/classes.ticketnotifier.js +6 -4
  25. package/dist_ts/classes.ticketorderspread.d.ts +25 -0
  26. package/dist_ts/classes.ticketorderspread.js +52 -0
  27. package/dist_ts/classes.ticketstore.d.ts +60 -5
  28. package/dist_ts/classes.ticketstore.js +176 -40
  29. package/dist_ts/classes.workercallers.d.ts +40 -2
  30. package/dist_ts/classes.workercallers.js +156 -30
  31. package/dist_ts/fleet/classes.boardpump.d.ts +1 -1
  32. package/dist_ts/fleet/classes.boardpump.js +4 -2
  33. package/dist_ts/fleet/classes.claudeworkers.d.ts +18 -5
  34. package/dist_ts/fleet/classes.claudeworkers.js +105 -31
  35. package/dist_ts/fleet/classes.ticketeffects.d.ts +11 -0
  36. package/dist_ts/fleet/classes.ticketeffects.js +28 -1
  37. package/dist_ts/fleet/classes.workers.d.ts +23 -4
  38. package/dist_ts/fleet/classes.workers.js +65 -18
  39. package/dist_ts/fleet/functions.workervalidation.js +7 -4
  40. package/dist_ts/fleet/interfaces.workers.d.ts +16 -2
  41. package/dist_ts/fleet/interfaces.workers.js +8 -1
  42. package/dist_ts/functions.fleetworkercli.d.ts +3 -1
  43. package/dist_ts/functions.fleetworkercli.js +6 -2
  44. package/dist_ts/functions.inferencecli.js +4 -1
  45. package/dist_ts/functions.mcpfleetworkertools.js +3 -3
  46. package/dist_ts/functions.proxycapacity.d.ts +2 -1
  47. package/dist_ts/functions.proxycapacity.js +6 -3
  48. package/dist_ts/functions.proxycapacitycli.js +2 -2
  49. package/dist_ts/functions.workerprocessproof.d.ts +6 -0
  50. package/dist_ts/functions.workerprocessproof.js +8 -3
  51. package/dist_ts/interfaces.auth.d.ts +1 -1
  52. package/dist_ts/interfaces.auth.js +2 -1
  53. package/dist_ts/interfaces.flexipc.d.ts +3 -1
  54. package/dist_ts/interfaces.flexipc.js +1 -1
  55. package/dist_ts_authswitch/authority-contract.d.ts +25 -0
  56. package/dist_ts_authswitch/authority-contract.js +1 -1
  57. package/dist_ts_authswitch/authority-overview.d.ts +7 -0
  58. package/dist_ts_authswitch/authority-overview.js +10 -6
  59. package/dist_ts_authswitch/authority-placement.d.ts +5 -2
  60. package/dist_ts_authswitch/authority-placement.js +6 -3
  61. package/dist_ts_authswitch/classes.authoritybroker.d.ts +6 -0
  62. package/dist_ts_authswitch/classes.authoritybroker.js +26 -1
  63. package/dist_ts_authswitch/classes.authoritycli.d.ts +1 -0
  64. package/dist_ts_authswitch/classes.authoritycli.js +50 -4
  65. package/dist_ts_authswitch/classes.authorityclient.d.ts +3 -1
  66. package/dist_ts_authswitch/classes.authorityclient.js +9 -4
  67. package/dist_ts_authswitch/classes.authoritydaemon.js +7 -1
  68. package/dist_ts_authswitch/classes.authoritydatabase.js +5 -1
  69. package/dist_ts_authswitch/classes.authoritymodels.d.ts +7 -0
  70. package/dist_ts_authswitch/classes.authoritymodels.js +13 -6
  71. package/dist_ts_interfaces/fleetworkers.d.ts +26 -1
  72. package/dist_ts_interfaces/fleetworkers.js +1 -1
  73. package/dist_ts_interfaces/interfaces.d.ts +4 -2
  74. package/dist_ts_interfaces/interfaces.js +1 -1
  75. package/dist_ts_interfaces/mcprequests.d.ts +2 -1
  76. package/dist_ts_interfaces/mcprequests.js +3 -2
  77. package/dist_ts_interfaces/proxycapacity.d.ts +1 -1
  78. package/dist_ts_interfaces/requests.accounts.d.ts +19 -0
  79. package/dist_ts_interfaces/requests.accounts.js +1 -1
  80. package/dist_ts_interfaces/requests.d.ts +2 -2
  81. package/dist_ts_interfaces/requests.fleetworkers.d.ts +3 -1
  82. package/dist_ts_interfaces/requests.js +1 -1
  83. package/dist_ts_migration/classes.documentmigrationrunner.d.ts +8 -1
  84. package/dist_ts_migration/classes.documentmigrationrunner.js +11 -2
  85. package/dist_ts_migration/index.d.ts +1 -0
  86. package/dist_ts_migration/index.js +2 -1
  87. package/dist_ts_migration/v41_ticketclosedcolumn.js +7 -3
  88. package/dist_ts_migration/v43_ticketorderstride.d.ts +54 -0
  89. package/dist_ts_migration/v43_ticketorderstride.js +161 -0
  90. package/docs/authswitch.md +22 -0
  91. package/package.json +1 -1
  92. package/readme.md +71 -4
  93. package/ts/00_commitinfo_data.ts +1 -1
  94. package/ts/aglapi/aglapisurface.document.ts +2 -2
  95. package/ts/classes.accountsactions.ts +25 -0
  96. package/ts/classes.authstore.ts +9 -0
  97. package/ts/classes.controller.ts +37 -3
  98. package/ts/classes.inferencegateway.ts +6 -4
  99. package/ts/classes.inferenceplacement.ts +1 -1
  100. package/ts/classes.inferencerouter.ts +49 -10
  101. package/ts/classes.inferenceservice.ts +1 -1
  102. package/ts/classes.mcpcallerregistry.ts +49 -7
  103. package/ts/classes.terminalcallers.ts +91 -0
  104. package/ts/classes.terminalmanager.ts +41 -1
  105. package/ts/classes.ticketnotifier.ts +5 -3
  106. package/ts/classes.ticketorderspread.ts +50 -0
  107. package/ts/classes.ticketstore.ts +164 -35
  108. package/ts/classes.workercallers.ts +183 -30
  109. package/ts/fleet/classes.boardpump.ts +3 -2
  110. package/ts/fleet/classes.claudeworkers.ts +101 -29
  111. package/ts/fleet/classes.ticketeffects.ts +25 -0
  112. package/ts/fleet/classes.workers.ts +62 -17
  113. package/ts/fleet/functions.workervalidation.ts +6 -3
  114. package/ts/fleet/interfaces.workers.ts +16 -2
  115. package/ts/functions.fleetworkercli.ts +5 -1
  116. package/ts/functions.inferencecli.ts +2 -0
  117. package/ts/functions.mcpfleetworkertools.ts +2 -2
  118. package/ts/functions.proxycapacity.ts +5 -2
  119. package/ts/functions.proxycapacitycli.ts +1 -1
  120. package/ts/functions.workerprocessproof.ts +10 -2
  121. package/ts/interfaces.auth.ts +1 -0
  122. package/ts/interfaces.flexipc.ts +3 -1
  123. package/ts_authswitch/authority-contract.ts +20 -0
  124. package/ts_authswitch/authority-overview.ts +17 -6
  125. package/ts_authswitch/authority-placement.ts +7 -3
  126. package/ts_authswitch/classes.authoritybroker.ts +24 -0
  127. package/ts_authswitch/classes.authoritycli.ts +58 -4
  128. package/ts_authswitch/classes.authorityclient.ts +11 -4
  129. package/ts_authswitch/classes.authoritydaemon.ts +8 -1
  130. package/ts_authswitch/classes.authoritydatabase.ts +3 -0
  131. package/ts_authswitch/classes.authoritymodels.ts +12 -4
  132. package/ts_interfaces/fleetworkers.ts +26 -1
  133. package/ts_interfaces/interfaces.ts +4 -2
  134. package/ts_interfaces/mcprequests.ts +2 -1
  135. package/ts_interfaces/proxycapacity.ts +1 -1
  136. package/ts_interfaces/requests.accounts.ts +17 -0
  137. package/ts_interfaces/requests.fleetworkers.ts +3 -1
  138. package/ts_interfaces/requests.ts +2 -0
  139. package/ts_migration/classes.documentmigrationrunner.ts +12 -1
  140. package/ts_migration/index.ts +1 -0
  141. package/ts_migration/v41_ticketclosedcolumn.ts +6 -2
  142. package/ts_migration/v43_ticketorderstride.ts +156 -0
  143. package/ts_web/00_commitinfo_data.ts +1 -1
  144. package/ts_web/accounts.templates.ts +12 -2
  145. package/ts_web/classes.accountsreadmodel.ts +42 -6
  146. package/ts_web/elements.accounts.ts +45 -3
  147. package/ts_web/elements.harnesscontrollerapp.ts +6 -1
package/changelog.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-11-15 - 43.10.1
4
+
5
+ ### Fixes
6
+
7
+ - A terminal's MCP identity is honoured only for a caller that runs inside that terminal (AGL-1891). The credential an AGL terminal's shell gets in `AGL_MCP_CALLER_CREDENTIAL` was accepted from any process that presented it, so a process that inherited it outside the terminal, such as every Claude Code background job whose daemon was started from an AGL terminal, acted as that terminal. The controller now records the terminal's first process when it starts and accepts the credential only from an `agl mcp` bridge whose connection it can prove and whose parent chain still contains that process; any other caller presenting it is anonymous, and a fleet worker is still identified by its process chain. A process outside the terminal's process tree has no identity: a daemon, any job in a `tmux` session, or a `nohup` job once its shell exits. The `agl` CLI never presents this credential and is unchanged.
8
+ - The controller reads Claude Code's job list (`claude agents --json --all`) once per fleet poll pass and Claude home instead of once per worker (AGL-1970). With about 80 Claude workers the poll ran it back to back, 41 to 66 times a minute at about half a CPU-second each; it now runs at most once every 2 s per home, and each worker is observed every 2 s instead of every one to two minutes. Starting, waking, sending to and stopping a worker and the MCP identity proof still read the list fresh. A worker started or woken while a pass's read is under way waits for the next pass, a failed read keeps every worker's place in its transcript so the next good pass publishes what arrived in between, and a turn's end is published once, whether the transcript or the job list shows it first.
9
+ - Ticket columns from before 43.10 are spread out in the background once the controller is ready (AGL-1907). 43.10.0 made a ticket's `order` a sparse sort key, but existing columns kept their dense orders, so placing a ticket near the top of a long column still rewrote most of it. The controller now moves each column's orders to steps of 1024 in small transactions after it starts serving, alongside ordinary ticket changes and without changing the order of any column, and records when every column is done. A run that fails, including one that hits its deadline three times in a row, writes one entry to the failure journal (`tickets.orderSpread`) and continues at the next start. After a downgrade to a release before 43.10 and a later upgrade, columns the older release made dense again stay dense.
10
+
11
+ ## 2026-11-14 - 43.10.0
12
+
13
+ ### Features
14
+
15
+ - Accounts can be paused (AGL-1933). A paused account takes no new work until you resume it: the proxy leaves it out of every pool, moves the sessions on it to another account at their next request, and refuses a request that reaches only paused accounts (a pool with every account paused, or a Flex session on a paused ChatGPT account) with `accounts_paused` and the way to end it. Its sign-in, usage readings, limits, renewal and lapse date stay and keep being read, so it is ready the moment it is resumed; a priority it holds ends, and a paused account is given none. Settings → Accounts has **Pause** and **Resume** on the account's page under Placement, the row shows `Paused` and the overview counts paused accounts in a tile of their own; Flex's account pickers list a paused account as paused and not to be chosen, and a conversation on it says why its message was not sent; `authswitch account preuse --all` skips it by name; `authswitch account set <account-id> --pause|--resume`; `authswitch list`, `limits`, `account list`, `agl proxy status` says so (`pausedAt`), and `agl proxy capacity` leaves it out of its pool. New typed requests `controller.accounts.pause` (audited `accounts.pause`) and `authswitch.authority.pause`. An earlier accounts service refuses the store while an account is paused: resume every account before downgrading.
16
+
17
+ ### Fixes
18
+
19
+ - A fleet Claude Code worker whose MCP calls the controller traces to it but cannot verify no longer degrades silently to read-only (AGL-1888). `agl fleet worker list` (text and `--json`), `fleet_worker_list` and `fleet_worker_get` show its identity as unverified with the reason, and its ticket gets one notice per reason saying what is wrong and what the owner can do; its next verified call clears it. Only evidence surfaces it: an idle worker never does, a refusal that may pass shows only after 60 s of refused calls, and the reasons are a fixed set of phrases. The notice never steers the worker, and the board pump does not count it as an answer to an owner comment.
20
+ - A fleet worker's MCP enrollment that waits while the worker is stopped, archived or re-bound answers pending instead of failing (AGL-1888).
21
+ - A ticket that leaves a column no longer rewrites the tickets behind it (AGL-1907). A move rewrote the whole column a ticket left, one ticket at a time inside one 20 s transaction, so a ticket near the top of the backlog (about 1,070 tickets across all projects) could not be moved, landed or closed at all, and other ticket changes failed while such a move ran ("The private AGL controller operation failed."). A ticket's `order` is now a sparse sort key: leaving a column writes nothing else, so moving, landing and closing a ticket at the end of a column costs a few writes; a new or appended ticket takes the column's last order plus 1024, and a placement before another ticket takes a free number between its neighbours. With none free, the shorter run beside it moves by one; while every order from 0 up to its neighbour is taken, as in a column from before this release, the tickets from the anchor up to the next free number move instead, so placing a ticket near the top of a long column from before this release still rewrites most of it. `order` gives only the relative order within a column: it is no longer contiguous, and no position or count can be derived from it. After a downgrade, an older controller gives a new ticket the column's count as its order, so it can sort before tickets this release put at the end; nothing is lost.
22
+
3
23
  ## 2026-11-14 - 43.9.0
4
24
 
5
25
  ### Features