agl 43.8.0 → 43.10.0
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/changelog.md +28 -0
- package/dist_serve/bundle.js +1157 -1122
- package/dist_serve/bundle.js.map +2 -2
- package/dist_ts/00_commitinfo_data.js +2 -2
- package/dist_ts/aglapi/aglapisurface.document.js +826 -8
- package/dist_ts/aglapi/interfaces.d.ts +8 -0
- package/dist_ts/aglapi/interfaces.js +3 -1
- package/dist_ts/classes.accountsactions.d.ts +3 -1
- package/dist_ts/classes.accountsactions.js +17 -1
- package/dist_ts/classes.controller.d.ts +1 -1
- package/dist_ts/classes.controller.js +21 -7
- package/dist_ts/classes.inferencegateway.js +7 -5
- package/dist_ts/classes.inferenceplacement.d.ts +1 -1
- package/dist_ts/classes.inferencerouter.d.ts +20 -3
- package/dist_ts/classes.inferencerouter.js +37 -10
- package/dist_ts/classes.inferenceservice.js +2 -2
- package/dist_ts/classes.mcpclient.js +3 -3
- package/dist_ts/classes.mcpcontrollerhost.js +3 -2
- package/dist_ts/classes.mcptools.d.ts +1 -1
- package/dist_ts/classes.mcptools.js +2 -1
- package/dist_ts/classes.ticketnotifier.d.ts +2 -2
- package/dist_ts/classes.ticketnotifier.js +6 -4
- package/dist_ts/classes.ticketstore.d.ts +36 -8
- package/dist_ts/classes.ticketstore.js +131 -29
- package/dist_ts/classes.workercallers.d.ts +35 -1
- package/dist_ts/classes.workercallers.js +139 -28
- package/dist_ts/fleet/classes.boardpump.d.ts +1 -1
- package/dist_ts/fleet/classes.boardpump.js +4 -2
- package/dist_ts/fleet/classes.ticketeffects.d.ts +11 -0
- package/dist_ts/fleet/classes.ticketeffects.js +28 -1
- package/dist_ts/fleet/classes.workers.d.ts +18 -1
- package/dist_ts/fleet/classes.workers.js +49 -8
- package/dist_ts/fleet/functions.workervalidation.js +7 -4
- package/dist_ts/functions.deviceapi.js +3 -1
- package/dist_ts/functions.fleetworkercli.d.ts +3 -1
- package/dist_ts/functions.fleetworkercli.js +6 -2
- package/dist_ts/functions.inferencecli.js +4 -1
- package/dist_ts/functions.mcpfleetworkertools.js +3 -3
- package/dist_ts/functions.mcptickettools.d.ts +60 -0
- package/dist_ts/functions.mcptickettools.js +4 -3
- package/dist_ts/functions.proxycapacity.d.ts +2 -1
- package/dist_ts/functions.proxycapacity.js +6 -3
- package/dist_ts/functions.proxycapacitycli.js +2 -2
- package/dist_ts/functions.ticketcli.d.ts +4 -2
- package/dist_ts/functions.ticketcli.js +70 -4
- package/dist_ts/functions.ticketlisting.d.ts +38 -0
- package/dist_ts/functions.ticketlisting.js +211 -0
- package/dist_ts/functions.ticketvalidation.d.ts +62 -0
- package/dist_ts/functions.ticketvalidation.js +41 -3
- package/dist_ts/functions.workerprocessproof.d.ts +6 -0
- package/dist_ts/functions.workerprocessproof.js +8 -3
- package/dist_ts/interfaces.auth.d.ts +1 -1
- package/dist_ts/interfaces.auth.js +2 -1
- package/dist_ts/interfaces.flexipc.d.ts +3 -1
- package/dist_ts/interfaces.flexipc.js +1 -1
- package/dist_ts_authswitch/authority-contract.d.ts +25 -0
- package/dist_ts_authswitch/authority-contract.js +1 -1
- package/dist_ts_authswitch/authority-overview.d.ts +7 -0
- package/dist_ts_authswitch/authority-overview.js +10 -6
- package/dist_ts_authswitch/authority-placement.d.ts +5 -2
- package/dist_ts_authswitch/authority-placement.js +6 -3
- package/dist_ts_authswitch/classes.authoritybroker.d.ts +6 -0
- package/dist_ts_authswitch/classes.authoritybroker.js +26 -1
- package/dist_ts_authswitch/classes.authoritycli.d.ts +1 -0
- package/dist_ts_authswitch/classes.authoritycli.js +50 -4
- package/dist_ts_authswitch/classes.authorityclient.d.ts +3 -1
- package/dist_ts_authswitch/classes.authorityclient.js +9 -4
- package/dist_ts_authswitch/classes.authoritydaemon.js +7 -1
- package/dist_ts_authswitch/classes.authoritydatabase.js +5 -1
- package/dist_ts_authswitch/classes.authoritymodels.d.ts +7 -0
- package/dist_ts_authswitch/classes.authoritymodels.js +13 -6
- package/dist_ts_interfaces/fleetworkers.d.ts +26 -1
- package/dist_ts_interfaces/fleetworkers.js +1 -1
- package/dist_ts_interfaces/interfaces.d.ts +4 -2
- package/dist_ts_interfaces/interfaces.js +1 -1
- package/dist_ts_interfaces/mcprequests.d.ts +1 -1
- package/dist_ts_interfaces/proxycapacity.d.ts +1 -1
- package/dist_ts_interfaces/requests.accounts.d.ts +19 -0
- package/dist_ts_interfaces/requests.accounts.js +1 -1
- package/dist_ts_interfaces/requests.d.ts +2 -2
- package/dist_ts_interfaces/requests.fleetworkers.d.ts +3 -1
- package/dist_ts_interfaces/requests.js +1 -1
- package/dist_ts_interfaces/requests.tickets.d.ts +31 -3
- package/dist_ts_interfaces/requests.tickets.js +2 -2
- package/dist_ts_interfaces/tickets.d.ts +174 -2
- package/dist_ts_interfaces/tickets.js +20 -2
- package/dist_ts_migration/v41_ticketclosedcolumn.js +7 -3
- package/docs/authswitch.md +22 -0
- package/package.json +2 -2
- package/readme.md +85 -6
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/aglapi/aglapisurface.document.ts +825 -7
- package/ts/aglapi/interfaces.ts +2 -0
- package/ts/classes.accountsactions.ts +25 -0
- package/ts/classes.controller.ts +18 -3
- package/ts/classes.inferencegateway.ts +6 -4
- package/ts/classes.inferenceplacement.ts +1 -1
- package/ts/classes.inferencerouter.ts +49 -10
- package/ts/classes.inferenceservice.ts +1 -1
- package/ts/classes.mcpclient.ts +2 -2
- package/ts/classes.mcpcontrollerhost.ts +2 -1
- package/ts/classes.mcptools.ts +1 -0
- package/ts/classes.ticketnotifier.ts +5 -3
- package/ts/classes.ticketstore.ts +124 -27
- package/ts/classes.workercallers.ts +165 -28
- package/ts/fleet/classes.boardpump.ts +3 -2
- package/ts/fleet/classes.ticketeffects.ts +25 -0
- package/ts/fleet/classes.workers.ts +47 -7
- package/ts/fleet/functions.workervalidation.ts +6 -3
- package/ts/functions.deviceapi.ts +2 -0
- package/ts/functions.fleetworkercli.ts +5 -1
- package/ts/functions.inferencecli.ts +2 -0
- package/ts/functions.mcpfleetworkertools.ts +2 -2
- package/ts/functions.mcptickettools.ts +3 -2
- package/ts/functions.proxycapacity.ts +5 -2
- package/ts/functions.proxycapacitycli.ts +1 -1
- package/ts/functions.ticketcli.ts +70 -5
- package/ts/functions.ticketlisting.ts +214 -0
- package/ts/functions.ticketvalidation.ts +41 -2
- package/ts/functions.workerprocessproof.ts +10 -2
- package/ts/interfaces.auth.ts +1 -0
- package/ts/interfaces.flexipc.ts +3 -1
- package/ts_authswitch/authority-contract.ts +20 -0
- package/ts_authswitch/authority-overview.ts +17 -6
- package/ts_authswitch/authority-placement.ts +7 -3
- package/ts_authswitch/classes.authoritybroker.ts +24 -0
- package/ts_authswitch/classes.authoritycli.ts +58 -4
- package/ts_authswitch/classes.authorityclient.ts +11 -4
- package/ts_authswitch/classes.authoritydaemon.ts +8 -1
- package/ts_authswitch/classes.authoritydatabase.ts +3 -0
- package/ts_authswitch/classes.authoritymodels.ts +12 -4
- package/ts_interfaces/fleetworkers.ts +26 -1
- package/ts_interfaces/interfaces.ts +4 -2
- package/ts_interfaces/proxycapacity.ts +1 -1
- package/ts_interfaces/requests.accounts.ts +17 -0
- package/ts_interfaces/requests.fleetworkers.ts +3 -1
- package/ts_interfaces/requests.tickets.ts +32 -2
- package/ts_interfaces/requests.ts +2 -0
- package/ts_interfaces/tickets.ts +136 -3
- package/ts_migration/v41_ticketclosedcolumn.ts +6 -2
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/accounts.templates.ts +12 -2
- package/ts_web/classes.accountsreadmodel.ts +42 -6
- package/ts_web/elements.accounts.ts +45 -3
- package/ts_web/elements.harnesscontrollerapp.ts +6 -1
- package/ts_web/elements.inbox.ts +50 -9
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as plugins from './plugins.js';
|
|
2
2
|
import { TicketActivityModel, TicketBoardModel, TicketCommentModel, TicketModel } from '../dist_ts/classes.ticketmodels.js';
|
|
3
|
+
import { ticketOrderStride } from '../dist_ts/classes.ticketstore.js';
|
|
3
4
|
import { AuthError } from '../dist_ts/interfaces.auth.js';
|
|
4
5
|
import { TicketMigrationMarkerModel } from './v41_ticketmigrationmarkers.js';
|
|
5
6
|
export const ticketClosedColumnMigrationId = 'v41_ticketclosedcolumn';
|
|
@@ -51,10 +52,13 @@ export class TicketClosedColumnV41Migration {
|
|
|
51
52
|
if (fenced.status !== 'transitioned')
|
|
52
53
|
throw new AuthError('concurrent_change', 'The ticket board changed during the closed-column migration.');
|
|
53
54
|
const revision = board.revision + 1;
|
|
54
|
-
|
|
55
|
+
// After the last ticket already in closed, a stride apart: orders are sparse (AGL-1907), never a count.
|
|
56
|
+
let order = (await TicketModel.exact.findStored({ filter: { 'ticket.columnId': 'closed' }, sort: { 'ticket.order': -1 }, limit: 1,
|
|
57
|
+
session: transactionArg }))[0]?.ticket.order ?? 0;
|
|
55
58
|
for (const current of moving) {
|
|
56
59
|
const before = { columnId: current.ticket.columnId, order: current.ticket.order };
|
|
57
|
-
|
|
60
|
+
order += ticketOrderStride;
|
|
61
|
+
const after = { columnId: 'closed', order };
|
|
58
62
|
const moved = await TicketModel.exact.transition({ current, change: (modelArg) => {
|
|
59
63
|
modelArg.ticket = { ...modelArg.ticket, ...after, revision: (modelArg.ticket.revision ?? 0) + 1,
|
|
60
64
|
updatedBy: ticketClosedColumnMigrationActor, updatedAt: now };
|
|
@@ -115,4 +119,4 @@ export class TicketClosedColumnV41Migration {
|
|
|
115
119
|
}
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
122
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidjQxX3RpY2tldGNsb3NlZGNvbHVtbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzX21pZ3JhdGlvbi92NDFfdGlja2V0Y2xvc2VkY29sdW1uLnRzIl0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QU8sQ0FBQztZQUN0QyxLQUFLLEdBQUcsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBRSxDQUFDLEVBQUUsQ0FBQztRQUMxQixDQUFDO0lBQ0gsQ0FBQztDQUNGIn0=
|
package/docs/authswitch.md
CHANGED
|
@@ -328,6 +328,8 @@ authswitch account set <account-id> --lapses-at <date-time> [--json]
|
|
|
328
328
|
authswitch account set <account-id> --clear-lapse [--json]
|
|
329
329
|
authswitch account set <account-id> --priority [--json]
|
|
330
330
|
authswitch account set <account-id> --clear-priority [--json]
|
|
331
|
+
authswitch account set <account-id> --pause [--json]
|
|
332
|
+
authswitch account set <account-id> --resume [--json]
|
|
331
333
|
authswitch account set <account-id> --spend-limit <dollars> [--json]
|
|
332
334
|
authswitch account set <account-id> --clear-spend-limit [--json]
|
|
333
335
|
authswitch account set <account-id> --claude-code on|off [--json]
|
|
@@ -490,6 +492,26 @@ refuses the store while any account record holds one: run `authswitch account se
|
|
|
490
492
|
account before downgrading, since a priority that ended is listed nowhere, yet its record keeps it until the account's
|
|
491
493
|
next change.
|
|
492
494
|
|
|
495
|
+
`account set --pause` pauses an account (AGL-1933) at the revision `account list` reads just before
|
|
496
|
+
(`authswitch.authority.pause { accountId, expectedRevision, paused }`, `AuthSwitchClient.setAccountPause`); `--resume`
|
|
497
|
+
resumes it. The service sets the moment by its own clock and stores it as `pausedAt` in UTC; pausing a paused account
|
|
498
|
+
keeps the moment it was paused at. It has no end: the account stays paused until it is resumed. A paused account takes
|
|
499
|
+
no new work: `authSwitchPlacement` answers the eligibility `never` for it (its last parameter is `pausedAt`), whatever
|
|
500
|
+
its lifecycle and usage, and its score stays what its reading says. The AGL proxy leaves it out of every pool, moves a
|
|
501
|
+
session on it at its next request and refuses a request that reaches only paused accounts as `accounts_paused`.
|
|
502
|
+
Everything else about the account stays and keeps running: its sign-in's renewal, its usage readings, `maxUsagePercent`,
|
|
503
|
+
a reserve lift, its renewal and its lapse date. Pausing ends a priority the account holds, and
|
|
504
|
+
`authswitch.authority.priority` refuses a paused account with `invalid_input` (`The account is paused; resume it before
|
|
505
|
+
giving it priority.`). `account set` and `account list` print `paused since <ISO> (by the owner)`; `list` and `limits`
|
|
506
|
+
show `paused · never placed on` in place of the placement line (`--json`: `pausedAt` on the overview and each limit row,
|
|
507
|
+
null while it is not paused; `account list --json` carries it as `pausedAt`). The account record holds `pausedAt` only
|
|
508
|
+
while the account is paused: resuming removes the member, and so does the account's removal
|
|
509
|
+
(`AuthSwitchAuthorityDatabase.persistAccount`). An earlier service refuses the store while any account record holds
|
|
510
|
+
one: resume every account before downgrading. `account preuse --all` starts nothing on a paused account: it writes a
|
|
511
|
+
skip for each of its logins (`type: 'skipped'`, `reason: 'account_paused'`, in text `reason=account_paused`) and goes
|
|
512
|
+
on; `account preuse <account-id> <login-id>` on a paused account runs as on any other. A client of this release requires `pausedAt` on every account of a
|
|
513
|
+
snapshot (`assertCurrentSnapshot`), so it names an accounts service of an earlier release as outdated.
|
|
514
|
+
|
|
493
515
|
A Claude account's reading states what its profile says of the subscription as facts (`summaryKey: 'subscription'`):
|
|
494
516
|
`Subscription status` -- `organization.subscription_status` as received, then what it means from the one shared map
|
|
495
517
|
(`authority-subscription.ts`, empty: no value is described yet, so each shows `(not described yet)`) -- and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agl",
|
|
3
|
-
"version": "43.
|
|
3
|
+
"version": "43.10.0",
|
|
4
4
|
"controllerUpgradeManagementVersion": 2,
|
|
5
5
|
"controllerManagementProtocolVersion": 1,
|
|
6
6
|
"controllerGatewaySourcesVersion": 1,
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@api.global/typedopenapi": "^0.10.2",
|
|
96
|
-
"@git.zone/tsrepo": "^2.
|
|
96
|
+
"@git.zone/tsrepo": "^2.2.0",
|
|
97
97
|
"@types/node": "26.6.6",
|
|
98
98
|
"@types/proper-lockfile": "^4.1.4",
|
|
99
99
|
"@types/ws": "8.18.1",
|
package/readme.md
CHANGED
|
@@ -130,6 +130,7 @@ authswitch account set <account-id> --max-usage 80 # keep 20% of each usage wi
|
|
|
130
130
|
authswitch account set <account-id> --lapses-at 2026-11-01T00:00:00Z # a canceled subscription ends then
|
|
131
131
|
authswitch account set <account-id> --renews-at 2026-10-20T09:00:00Z # a Claude subscription renews monthly from then
|
|
132
132
|
authswitch account set <account-id> --priority # use this account before any other for 24 hours (--clear-priority ends it)
|
|
133
|
+
authswitch account set <account-id> --pause # take no new work on this account until --resume
|
|
133
134
|
authswitch account recheck <account-id> # read a Claude account now; a healthy read clears its payment problem
|
|
134
135
|
authswitch --help
|
|
135
136
|
```
|
|
@@ -216,6 +217,32 @@ holds it only while it is set; an earlier accounts service refuses the store whi
|
|
|
216
217
|
`authswitch account set <id> --clear-priority` on every account before downgrading: a priority that ran out is listed
|
|
217
218
|
nowhere, yet its record keeps it until the account's next change.
|
|
218
219
|
|
|
220
|
+
Any account can be **paused**: until its owner resumes it, AGL places no new work on it. The proxy leaves a paused
|
|
221
|
+
account out of every pool, so no new session goes to it, whatever its usage would allow and not even as a last resort;
|
|
222
|
+
a session that runs on it moves to another account of its pool at its next request, as it does from an account that
|
|
223
|
+
left the pool (the placement journal says `left_pool`); and a request that reaches only paused accounts -- a pool whose
|
|
224
|
+
every account is paused, or a client restricted to a paused account, as a Flex session on its chosen ChatGPT account
|
|
225
|
+
is -- is refused with HTTP 503 `accounts_paused` and a message that says the account is paused and to resume it in AGL
|
|
226
|
+
Accounts. Nothing else about the account changes: its sign-in is renewed, its usage is read and its limits, reserve,
|
|
227
|
+
renewal and lapse date stay, so it takes work again the moment it is resumed. A pause has no end of its own. Pausing
|
|
228
|
+
ends a priority the account holds, and a paused account is given none. `authswitch account set <account-id> --pause`
|
|
229
|
+
pauses it and `--resume` resumes it (`authswitch.authority.pause`); the account's page in Settings → Accounts has
|
|
230
|
+
**Pause**, then **Resume**, under Placement (`controller.accounts.pause`, audited `accounts.pause`). The accounts
|
|
231
|
+
service sets the moment by its own clock and keeps it on the account (`pausedAt`). The account's row shows `Paused` as
|
|
232
|
+
its status and opens its second line with `paused`, and its page says since when in the browser's time; `authswitch
|
|
233
|
+
list` and `limits` show `paused · never placed on` (`--json`: `pausedAt`, null while it is not paused, with a placement
|
|
234
|
+
eligibility of `never`), `account list` says `paused since <ISO> (by the owner)`, and `agl proxy status` states the
|
|
235
|
+
account as `paused by the owner since <ISO>; takes no new session until it is resumed` with no placement rank
|
|
236
|
+
(`--json`: `pausedAt`). `agl proxy capacity` counts no paused account as a member of its pool. Flex lists a paused
|
|
237
|
+
ChatGPT account in its account pickers -- the composer's and every model picker's -- as `Paused. Resume it in Settings →
|
|
238
|
+
Accounts.`, not to be chosen (connection status `paused`); a conversation already on it keeps showing it so, is never
|
|
239
|
+
moved to another account, and a message on it is not sent, with the reason. The Accounts overview counts paused accounts
|
|
240
|
+
in a tile of their own (`Paused`), beside those that are ready, held back by usage and in need of you.
|
|
241
|
+
`authswitch account preuse --all` skips a paused account's logins by name (`reason=account_paused`); naming the account
|
|
242
|
+
and login still preuses it. The account record holds
|
|
243
|
+
`pausedAt` only while the account is paused; an earlier accounts service refuses the store while any account record
|
|
244
|
+
holds one, so resume every account before downgrading.
|
|
245
|
+
|
|
219
246
|
Flex uses every OpenAI account the service holds with a login of its own: each is the Flex connection `flex:authority:<accountId>`, listed wherever Flex accounts are chosen. Flex keeps no login of its own.
|
|
220
247
|
|
|
221
248
|
A Flex session on a ChatGPT account runs through AGL's inference proxy, on the controller's lease of that one account's pool (proxy client `flex`, policy `accountIds: [<accountId>]`): the account the session chose serves it, and the proxy authenticates as the account, applies its maximum usage and limits, and counts every answer's tokens in the [token usage](#token-usage) under the client `flex`. At the account's limit the run reports the limit and its reset; it never moves to another account. The account's model catalog is read by the proxy on that account too. The Flex child is given only the proxy's address and the lease credential, never an account token. When the proxy is not running, a Flex request on a ChatGPT account fails with `INFERENCE_PROXY_UNAVAILABLE`; there is no direct route to ChatGPT. An account whose access ChatGPT keeps rejecting, or the accounts service cannot renew, fails with `PROVIDER_REAUTH_REQUIRED`, repaired by signing it in again in **Settings → Accounts**. Removing an account ends the controller's lease of it at once.
|
|
@@ -1217,7 +1244,8 @@ Agent messages are attribution and the owner's control, not a security boundary:
|
|
|
1217
1244
|
| `workspace_reveal` | Show one path in a workspace attached to the calling chat: a file opens in the editor, a directory in the file tree. The path is project-relative and must lie inside the workspace's base directory. The reply is an acknowledgement and the entry type; the tool never reads a file. |
|
|
1218
1245
|
| `job_start`, `jobs_list`, `job_status` | Start a host command as a managed job that outlives chats and controller restarts, list a project's newest jobs, or read one job's state, exit code or signal, times and log size. |
|
|
1219
1246
|
| `job_tail`, `job_wait`, `job_stop` | Read a bounded range of a job's log, wait up to four minutes for it to end, or stop its whole process group. |
|
|
1220
|
-
| `
|
|
1247
|
+
| `board_overview`, `tickets_list` | Read the board at a glance (counts by column, priority, project and assignee, epic progress, what needs someone) and list it in pages of ticket summaries with filters and a sort. |
|
|
1248
|
+
| `ticket_get`, `ticket_create`, `ticket_update`, `ticket_move`, `ticket_comment`, `ticket_link` | Capture and progress shared project tickets with verified worker identity, atomic board ordering, comments, activity and branch evidence for Review. |
|
|
1221
1249
|
| `ticket_question_ask` | Ask the owner a question on the caller's own assigned ticket, with optional choices; the answer arrives in the caller's session as a ticket notice. |
|
|
1222
1250
|
|
|
1223
1251
|
To work with resources for an externally launched task, call `context_resolve` with its absolute `directory` and optional `{ harnessId, nativeId }` task ID. A raw Codex thread ID is accepted only if exactly one configured connection matches; an ambiguous ID requires selecting the qualified ID returned by `sessions_list`. Discovery records the verified native task in AGL without resuming it or acquiring its Codex writer. Subsequent operations reuse the normal UI validation, audit, admission, and ownership checks. Targets must belong to the exact project and configured native connection. Adding a project does not connect an arbitrary external harness server.
|
|
@@ -1801,7 +1829,8 @@ registry no longer holds as it was `LIST_CURSOR_STALE`, never a silent restart.
|
|
|
1801
1829
|
returns every full record unpaged, as `agl fleet worker list` and the private request do by
|
|
1802
1830
|
default. `fleet_worker_get` (`name` or `id`) returns one worker's full record, archived ones
|
|
1803
1831
|
included, with the native status, turn outcome and start, native wait and excerpt the controller
|
|
1804
|
-
last observed.
|
|
1832
|
+
last observed. A worker whose MCP calls are refused its identity also carries `identity`
|
|
1833
|
+
(`unverified`, `reason`, `since`) in all of them, derived and never stored.
|
|
1805
1834
|
|
|
1806
1835
|
The fleet's own refusals carry a code (AGL-1670), as a tool's error (`FLEET_UNAVAILABLE` when the
|
|
1807
1836
|
fleet is closing or holds 512 jobs) or as a failed job's `errorCode` beside its `error`:
|
|
@@ -2334,7 +2363,7 @@ actor derived from verified controller authority, never an untrusted public iden
|
|
|
2334
2363
|
- Landing/release may also supply `body`; its comment commits with the evidence and move.
|
|
2335
2364
|
|
|
2336
2365
|
Only owner/driver may land or release, including on replay. The existing ticket rules and
|
|
2337
|
-
|
|
2366
|
+
ordering apply. Evidence links, moves, comments, activity,
|
|
2338
2367
|
the board revision and an immutable receipt commit in one database transaction through
|
|
2339
2368
|
the client document models. A first application returns `applied: true`, its board
|
|
2340
2369
|
`revision`, the ticket snapshot, affected `ticketIds` and optional `comment`; it emits one
|
|
@@ -2463,6 +2492,26 @@ that worker, not as the driver or anonymously:
|
|
|
2463
2492
|
refusal read while the fleet adopted or re-bound a worker is not remembered.
|
|
2464
2493
|
A bridge that gets a credential this way presents only it; without one, or when the controller
|
|
2465
2494
|
rejects or fails the enrollment, it calls as before, with a caller credential it inherited, if any.
|
|
2495
|
+
- A worker whose calls are refused its identity is shown, never silently left read-only. Only a
|
|
2496
|
+
call is evidence: when a fresh inventory identified a bridge's parent as the process of a live
|
|
2497
|
+
worker's job (by its process chain, or for a job re-proof) and its enrollment is refused for
|
|
2498
|
+
good, or the worker's refused calls since its last verified one span 60 seconds, the worker
|
|
2499
|
+
carries `identity: { unverified: true, reason, since }` in `agl fleet worker list` (indented and
|
|
2500
|
+
with `--json`), `fleet_worker_list` (summary and full), `fleet_worker_get` and the Driver view's
|
|
2501
|
+
workers, until its next verified call or until it is stopped, archived or re-bound. A worker the
|
|
2502
|
+
fleet itself refuses to identify (a lost or pending dispatch, not live, another profile home) is
|
|
2503
|
+
never shown this way: that is on its record already. `reason` is one of a fixed set of phrases,
|
|
2504
|
+
never error text, a path or an id. Once a worker shows, only a refusal for good for another
|
|
2505
|
+
reason changes the reason; a refusal that may pass never does. The controller derives it in
|
|
2506
|
+
memory from those calls alone, with no timer: a worker that does not call never shows it, and a
|
|
2507
|
+
restart forgets it until the bridge calls again. A job whose Claude Code release file was
|
|
2508
|
+
removed or replaced since it started (its process runs from the releases' directory, but the
|
|
2509
|
+
file fails the check) costs one inventory read to identify its worker; a shell or terminal
|
|
2510
|
+
parent never does and is never shown. Each reason a worker comes to show is noticed once on its
|
|
2511
|
+
ticket, by `AGL worker identity` in the driver role, with what the owner can do; the notice's key
|
|
2512
|
+
and its board receipt are durable, so a restarted controller never writes the same notice again,
|
|
2513
|
+
a notice whose write failed is written by the next `agl fleet reconcile` of the ticket or when
|
|
2514
|
+
the reason shows again, and the notice steers no session.
|
|
2466
2515
|
|
|
2467
2516
|
The bridge exchanges credentials only through the private controller endpoint after Linux
|
|
2468
2517
|
direct-loopback socket-inode ownership, approved executable/argv and current native
|
|
@@ -2477,7 +2526,7 @@ no generated-native-file edit is needed. The master must contain one non-secret
|
|
|
2477
2526
|
entry. Ambiguous entries, wrapper commands, static caller credentials and secret `envFrom`
|
|
2478
2527
|
definitions fail closed. Fleet owns spawning, native observations and hook calls.
|
|
2479
2528
|
|
|
2480
|
-
MCP tools are `tickets_list` (
|
|
2529
|
+
MCP tools are `board_overview` (the board at a glance), `tickets_list` (pages of summaries; filters, sort and cursor below), `ticket_get` (ticket,
|
|
2481
2530
|
questions and one page of history), `ticket_create`, `ticket_update`, `ticket_move`,
|
|
2482
2531
|
`ticket_comment`, `ticket_link` and `ticket_question_ask`. `ticket_comment.body` accepts markdown text or the
|
|
2483
2532
|
kanban's text/reference-content array. A Claude worker's assignment uses
|
|
@@ -2490,6 +2539,10 @@ cannot mutate assigned tickets, but verified callers can still read/create/comme
|
|
|
2490
2539
|
agl ticket create --project agl --title 'Add the shared board' --source 'The owner’s words' --json
|
|
2491
2540
|
agl ticket assign AGL-1 --expected-revision <revision-from-get> --session-id codex:<native-id> --name 'Backend worker' --json
|
|
2492
2541
|
agl ticket move AGL-1 --column ready --json
|
|
2542
|
+
agl ticket overview --json
|
|
2543
|
+
agl ticket page --project agl --open --sort priority --limit 20 --json
|
|
2544
|
+
agl ticket page --project agl --open --sort priority --limit 20 --cursor <nextCursor> --json
|
|
2545
|
+
agl ticket page --parent AGL-7 --json
|
|
2493
2546
|
agl ticket list --project agl --json
|
|
2494
2547
|
agl ticket link AGL-1 --repo modelprofile.com/agl --branch feat/tickets --sha <full-sha> --json
|
|
2495
2548
|
agl ticket move AGL-1 --column review --json
|
|
@@ -2503,6 +2556,29 @@ agl ticket list --label openQuestion --json
|
|
|
2503
2556
|
agl ticket answer AGL-1 --question Q1 --choice 2 --text 'Keep it **small**.' --json
|
|
2504
2557
|
```
|
|
2505
2558
|
|
|
2559
|
+
`board_overview` (`agl ticket overview`, `agl.mcp.ticket.overview`, `controller.ticket.overview`) answers the
|
|
2560
|
+
whole board in one bounded reply without any ticket's texts: `total`, `open`, counts by column, by priority
|
|
2561
|
+
(open tickets) and by AutoLabel, `projects` and `assignees` (most open work first, at most 50 beside
|
|
2562
|
+
`projectsTotal` and `assigneesTotal`), `unassignedOpen`, every open epic with its direct children (`children`,
|
|
2563
|
+
`done`, `columns`), and under `attention` the tickets that need someone: `urgent`, `needsInput`,
|
|
2564
|
+
`openQuestions`, `review`, `unassignedReady` and `stale` (in_progress, needs_input or review work without a
|
|
2565
|
+
change for `staleDays`, default 3, oldest first). `recent` holds the tickets changed last. Each list holds at
|
|
2566
|
+
most `limit` tickets (default 5, at most 50) and its `total` counts all of them. `project` and `mine` narrow it.
|
|
2567
|
+
|
|
2568
|
+
`tickets_list` (`agl ticket page`, `agl.mcp.ticket.page`, `controller.ticket.page`) lists the board in pages of
|
|
2569
|
+
`limit` tickets (default 50, at most 200; a page also ends at 256 KiB). A ticket is a summary: `key`,
|
|
2570
|
+
`revision`, `project`, `kind`, `title`, `columnId`, `priority`, `updatedAt` and, where present, `assignee`,
|
|
2571
|
+
`parentId`, `labels`, `autoLabels`, `links` (a count per kind), `releasePlan`, `deployPlan`,
|
|
2572
|
+
`maintenanceWindow` and `openQuestions`; `view: "full"` returns whole tickets. `total` and `columns` count
|
|
2573
|
+
everything the filters match, on every page. Filters: `mine`, `project`, `status`, `statuses`, `open`
|
|
2574
|
+
(`true` leaves out released and closed tickets, `false` keeps only those), `kind`, `priorities`, `parent`
|
|
2575
|
+
(direct children), `assignee` (a person id or a session id), `unassigned`, `keys` (up to 200), `updatedSince`,
|
|
2576
|
+
`label` and `text`. `sort` is `board` (default), `updated`, `created` or `priority`. `nextCursor` continues
|
|
2577
|
+
with the same filters, sort and view (`TICKET_CURSOR_MISMATCH` otherwise, `TICKET_CURSOR_INVALID` for anything
|
|
2578
|
+
that is no cursor). A cursor is a position, not a snapshot: `moved: true` tells that the board changed since
|
|
2579
|
+
the first page, so a ticket that changed its place meanwhile may be missing or shown twice. The unpaged
|
|
2580
|
+
`agl ticket list` (`agl.mcp.ticket.list`) still returns every matching ticket whole.
|
|
2581
|
+
|
|
2506
2582
|
`ticket_get` (`agl ticket get`, `agl.mcp.ticket.get`, `controller.ticket.get`) returns the
|
|
2507
2583
|
ticket, all its questions and the newest page of its history, oldest first: `activity` holds
|
|
2508
2584
|
up to `limit` entries (default 50, at most 500), cut earlier so that the entries and the comments
|
|
@@ -2637,7 +2713,10 @@ labels; null clears assignee/parentId. The provider closes over
|
|
|
2637
2713
|
the selected project when creating tickets. Ordering is global within each column even
|
|
2638
2714
|
when the board filters by project: always send the target ticket id, not a client-assigned
|
|
2639
2715
|
order. A move returns **every** record whose order or column changed, including reordered
|
|
2640
|
-
neighbors outside the project filter.
|
|
2716
|
+
neighbors outside the project filter. `order` is sparse: only its value relative to the other
|
|
2717
|
+
tickets of the column means anything, so never derive a position or a count from it. A ticket
|
|
2718
|
+
leaving a column changes no other ticket there, and a move usually changes only the ticket
|
|
2719
|
+
moved. The store allocates order and fences the sequence,
|
|
2641
2720
|
authorization and activity in the same embedded-database transaction. A failure leaves
|
|
2642
2721
|
none of them changed. `outcome_unknown` requires reading before retrying a mutation.
|
|
2643
2722
|
|
|
@@ -3513,7 +3592,7 @@ agl restart [--port 4097]
|
|
|
3513
3592
|
agl service install [startup options] | status [--json] | uninstall | protect
|
|
3514
3593
|
agl upgrade [--port 4097] [--registry <url>] [--grace-period-seconds 300] [--continue-sessions] [--json]
|
|
3515
3594
|
agl mcp [--port 4097]
|
|
3516
|
-
agl ticket list|get|create|update|move|comment|link|unlink|assign|ask|answer [options] [--json]
|
|
3595
|
+
agl ticket overview|page|list|get|create|update|move|comment|link|unlink|assign|ask|answer [options] [--json]
|
|
3517
3596
|
agl deploy status [TARGET] | history TARGET | probe TARGET [--json]
|
|
3518
3597
|
agl release status [REPO] [--json]
|
|
3519
3598
|
agl push status [--json] | apns set|unset | fcm set|unset | previews on|off | test [--port 4097] [options]
|