@defrex/autobuild 1.6.0 → 1.7.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.
Files changed (97) hide show
  1. package/README.md +1 -1
  2. package/SPEC.md +107 -10
  3. package/docs/agent-runtimes.md +1 -1
  4. package/docs/architecture.md +62 -22
  5. package/docs/configuration-overview.md +10 -0
  6. package/docs/configuration.md +285 -5
  7. package/docs/forges.md +1 -0
  8. package/docs/operator-api.md +19 -8
  9. package/docs/operator-surfaces.md +6 -3
  10. package/docs/plugin-authoring.md +44 -6
  11. package/docs/remote-store-protocol.md +19 -6
  12. package/docs/restacking.md +12 -7
  13. package/docs/ticket-sources.md +34 -6
  14. package/docs/tickets.md +6 -0
  15. package/docs/workspaces.md +1 -1
  16. package/package.json +3 -3
  17. package/packages/core/src/cli/attention.ts +1 -0
  18. package/packages/core/src/cli/binary-direct.ts +1 -0
  19. package/packages/core/src/cli/dispatch-frontend.ts +10 -14
  20. package/packages/core/src/cli/dispatch-preflight.ts +1 -0
  21. package/packages/core/src/cli/dispatch-repository-feed.ts +145 -109
  22. package/packages/core/src/cli/dispatch.ts +9 -3
  23. package/packages/core/src/cli/help.ts +11 -4
  24. package/packages/core/src/cli/init-validation.ts +14 -1
  25. package/packages/core/src/cli/repository-status.ts +37 -2
  26. package/packages/core/src/cli/status.ts +8 -0
  27. package/packages/core/src/cli/ticket.ts +22 -4
  28. package/packages/core/src/cli/watch.ts +2 -0
  29. package/packages/core/src/config/live.ts +4 -0
  30. package/packages/core/src/config/profiles.ts +96 -0
  31. package/packages/core/src/config/ready-assignee.ts +43 -11
  32. package/packages/core/src/config/roles.ts +33 -10
  33. package/packages/core/src/config/schema.ts +166 -24
  34. package/packages/core/src/events/compatibility.ts +3 -1
  35. package/packages/core/src/events/forge-degradation-policy.ts +16 -2
  36. package/packages/core/src/events/payloads.ts +8 -0
  37. package/packages/core/src/events/policy.ts +1 -0
  38. package/packages/core/src/events/repository.ts +17 -0
  39. package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +73 -124
  40. package/packages/core/src/kernel/build-creation.ts +29 -0
  41. package/packages/core/src/kernel/forge-health.ts +47 -0
  42. package/packages/core/src/kernel/guarded-forge.ts +76 -18
  43. package/packages/core/src/kernel/node-parent.ts +2 -0
  44. package/packages/core/src/kernel/read-facts.ts +9 -1
  45. package/packages/core/src/kernel/reducer.ts +18 -1
  46. package/packages/core/src/kernel/ticket-preparation.ts +4 -1
  47. package/packages/core/src/operator/protocol.ts +10 -0
  48. package/packages/core/src/operator/query.ts +1 -1
  49. package/packages/core/src/operator/registry.ts +25 -5
  50. package/packages/core/src/operator/sandbox-host.ts +3 -0
  51. package/packages/core/src/operator/tickets.ts +15 -3
  52. package/packages/core/src/plugin-sdk/index.ts +4 -0
  53. package/packages/core/src/ports/forge/create.ts +6 -0
  54. package/packages/core/src/ports/forge/github-transport.ts +40 -3
  55. package/packages/core/src/ports/forge/github.ts +12 -1
  56. package/packages/core/src/ports/forge/workspace-ancestry.ts +60 -0
  57. package/packages/core/src/ports/forge-failure.ts +31 -2
  58. package/packages/core/src/ports/runner/routing.ts +66 -5
  59. package/packages/core/src/ports/tickets/assignees.ts +54 -0
  60. package/packages/core/src/ports/tickets/contract.ts +164 -4
  61. package/packages/core/src/ports/tickets/create.ts +17 -3
  62. package/packages/core/src/ports/tickets/github-fake.ts +18 -2
  63. package/packages/core/src/ports/tickets/github.ts +247 -29
  64. package/packages/core/src/ports/tickets/hosted-index.ts +1 -0
  65. package/packages/core/src/ports/tickets/operations.ts +6 -1
  66. package/packages/core/src/ports/tickets/tree.ts +12 -2
  67. package/packages/core/src/ports/tickets/update.ts +6 -2
  68. package/packages/core/src/ports/types.ts +33 -3
  69. package/packages/core/src/ports/workspace/vercel-sandbox.ts +9 -0
  70. package/packages/core/src/processes/build-child.ts +28 -7
  71. package/packages/core/src/processes/build-execution-state.ts +4 -1
  72. package/packages/core/src/processes/build-runner.ts +15 -1
  73. package/packages/core/src/processes/dispatcher.ts +98 -18
  74. package/packages/core/src/processes/harvest-child.ts +4 -0
  75. package/packages/core/src/processes/harvest-runner.ts +5 -0
  76. package/packages/core/src/processes/repo-view.ts +2 -0
  77. package/packages/core/src/scenarios/harness.ts +15 -1
  78. package/packages/core/src/store/reducer-value-shapes.json +3119 -2926
  79. package/packages/core/src/store/remote/client.ts +21 -8
  80. package/packages/core/src/store/remote/index.ts +4 -0
  81. package/packages/core/src/store/remote/protocol.ts +7 -0
  82. package/packages/core/src/store/remote/released-clients.json +11 -0
  83. package/packages/core/src/store/remote/released-reducer-values/1.7.0.json +27366 -0
  84. package/packages/core/src/store/remote/released-reducer-values/index.ts +2 -0
  85. package/packages/core/src/store/repo-state-events.ts +1 -0
  86. package/packages/core/src/store/types.ts +11 -0
  87. package/packages/core/src/testing/dispatch-read-budget.ts +84 -58
  88. package/packages/core/src/testing/index.ts +2 -0
  89. package/packages/core/src/testing/reduced-read-budget.ts +72 -9
  90. package/skills/guide/SKILL.md +116 -21
  91. package/skills/guide/references/operator-api.md +19 -8
  92. package/skills/guide/references/plugin-authoring.md +44 -6
  93. package/skills/guide/references/remote-store-protocol.md +19 -6
  94. package/skills/guide/references/restacking.md +12 -7
  95. package/skills/operate/SKILL.md +29 -3
  96. package/skills/tickets/SKILL.md +18 -2
  97. package/templates/hosted-service/package.json +2 -2
@@ -259,7 +259,7 @@ Changing the store requires restarting dispatch.
259
259
  Parsing is strict. Unknown top-level keys or tables, unknown fields in a known
260
260
  table, fields from the wrong step variant, malformed values, and dangling
261
261
  command references are errors. The open maps are `[accounts]`, `[commands]`, `[roles]`,
262
- `[workspace.config]`, `[workspace.config.runtimeProvisioning]`,
262
+ `[profiles]`, `[profiles.<name>.roles]`, `[workspace.config]`, `[workspace.config.runtimeProvisioning]`,
263
263
  `[verify.<step>]`, and `[finalize.<step>]`. Autobuild
264
264
  validates repository-defined command, role, and step entries.
265
265
  `[workspace.config]` is plugin-owned and passed through unchanged for plugin
@@ -319,9 +319,9 @@ the worktree file has uncommitted edits, because the clean/dirty comparison
319
319
  could not be performed (non-git workspace or a transient git error), or because
320
320
  the branch head never carried the file — the deposit records the source
321
321
  `worktree-dirty` with no commit. The build still runs the worktree bytes, but
322
- provenance declines to attribute them to any commit. **Deployment-owned** sections — `[accounts]` and `[roles]`
323
- (runtime, model, account, args, alternates, per-role `sessionBudgetSeconds`) and
324
- `[policy]` — keep flowing live. **Dispatcher-owned** sections (`baseBranch`,
322
+ provenance declines to attribute them to any commit. **Deployment-owned** sections — `[accounts]`, `[roles]`
323
+ (runtime, model, account, args, alternates, per-role `sessionBudgetSeconds`),
324
+ `[profiles]` and `[policy]` — keep flowing live. **Dispatcher-owned** sections (`baseBranch`,
325
325
  `capacity`, `ticketScanIntervalSeconds`, `forge`, `plugins`, `pr`, `tickets`, `orchestrator`) configure the
326
326
  dispatcher itself and are never interpreted by the build runner.
327
327
 
@@ -383,10 +383,12 @@ These fields hot-reload:
383
383
  | `[workspace]` provider and config (including `provisioning`) | Next launch of a build whose OWN branch carries it. A base-branch reload never re-provisions an in-flight build. |
384
384
  | `[accounts]` | Descriptors are adopted atomically with roles at the next session boundary, except existing ChatGPT descriptors require stopped dispatch before replacement or removal (see [accounts](#accounts)); credentials refresh on observation ticks. |
385
385
  | `[roles]` | Next agent invocation for that role. Runtime, model, args, alternates, and the session budget are captured together and delivered live. |
386
+ | `[profiles]` | Next agent session of a build that selected the profile; builds without it are unaffected. A build's selected profile name never changes after claim. |
386
387
  | `[upgrade]` | Cancels preparation when disabled; automatic target checks every 60 seconds. |
387
388
  | `[policy]` | Next policy, convergence, or agent-session boundary, delivered live. A running session keeps its captured budget. |
388
389
  | `tickets.readyLabels`, `tickets.readyState`, `tickets.readyAssignee` | Next ready-ticket scan. |
389
390
  | `tickets.triageState`, `tickets.proposalState` | Next dispatcher handback or harvest filing boundary. |
391
+ | `tickets.createAssignee` | Next ticket create, including the next harvest filing. |
390
392
  | `tickets.backlogState`, `tickets.rejectedState` | Next role move, ready-ticket scan, or node completeness observation. |
391
393
 
392
394
  Adapter selectors and factory inputs are constructed once and require a
@@ -2389,6 +2391,270 @@ failure-tolerant step as `ok = false` and files its follow-up observation.
2389
2391
  Harvest sessions and direct verify/finalize check commands are not covered by
2390
2392
  this setting.
2391
2393
 
2394
+ ## `[profiles]`
2395
+
2396
+ `[roles]` applies to every build. A profile lets one ticket's build use
2397
+ different role settings without touching the roles every other build reads.
2398
+ Each `[profiles.<name>]` names one ticket `label` and overrides only the role
2399
+ fields it declares:
2400
+
2401
+ <!-- config-fragment:profiles -->
2402
+ ```toml
2403
+ [profiles.deep]
2404
+ label = "deep"
2405
+
2406
+ [profiles.deep.roles.plan-review]
2407
+ model = "claude-opus-5-5"
2408
+
2409
+ [profiles.deep.roles.implement]
2410
+ args = ["--effort", "high"]
2411
+ ```
2412
+
2413
+ A ticket labelled `deep` builds with those two overrides; every other field and
2414
+ role comes from `[roles.<role>]`, then `[roles.default]`, exactly as without the
2415
+ profile. An entry may name any role, including agent verify and finalize step
2416
+ names and roles `[roles]` does not declare, and accepts the `[roles.<role>]`
2417
+ fields. A declared `alternates` list, including `[]`, replaces the inherited
2418
+ list. An entry named `default` is refused.
2419
+
2420
+ Labels match case-insensitively after trimming. The dispatcher fixes a build's
2421
+ profile when it claims the ticket and records it on the build; relabelling
2422
+ later has no effect. A ready ticket carrying two profiles' labels is not
2423
+ claimed and appears in the scan's ticket diagnostics (`ab repository status`)
2424
+ until it carries at most one. The profile's contents are read at every session
2425
+ boundary, so an edit reaches the builds that selected it at their next
2426
+ session. If a reload removes the profile, those builds continue on the
2427
+ repository roles and `ab build status` reports the profile as no longer
2428
+ configured. Duplicate labels, a blank label, and an entry whose effective
2429
+ runtime, model, args or account is invalid are refused at load, by
2430
+ `ab init --validate`, and on live reload. Sessions outside a build (`slug`,
2431
+ `upgrade`, `harvest`, `harvest-review`) never use a profile.
2432
+
2433
+ <!-- configuration-reference:profiles -->
2434
+
2435
+ #### `profiles`
2436
+
2437
+ **TOML key:** `profiles`
2438
+
2439
+ - **Type:** `table`
2440
+ - **Default:** `{} (input supplied on omission)`
2441
+ - **Required:** Optional
2442
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2443
+
2444
+ **Description:** Named role profiles selected by ticket label. A profile overrides only the role fields it declares, for the builds that selected it.
2445
+
2446
+ **Constraints:** Entry names: nonempty
2447
+
2448
+ #### `profiles.<name>`
2449
+
2450
+ **TOML key:** `profiles.<name>`
2451
+
2452
+ - **Type:** `strict table`
2453
+ - **Default:** `omitted`
2454
+ - **Required:** Required
2455
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2456
+
2457
+ **Description:** Named role profile. The build's profile is fixed when its ticket is claimed; the profile's contents are read at each session boundary.
2458
+
2459
+ **Constraints:** None beyond the input type.
2460
+
2461
+ #### `profiles.<name>.label`
2462
+
2463
+ **TOML key:** `profiles.<name>.label`
2464
+
2465
+ - **Type:** `string`
2466
+ - **Default:** `omitted`
2467
+ - **Required:** Required
2468
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2469
+
2470
+ **Description:** Ticket label that selects this profile, matched case-insensitively after trimming. A ticket carrying two profiles' labels is not claimed.
2471
+
2472
+ **Constraints:** Nonblank; unique across profiles after trimming and case folding.
2473
+
2474
+ #### `profiles.<name>.roles`
2475
+
2476
+ **TOML key:** `profiles.<name>.roles`
2477
+
2478
+ - **Type:** `table`
2479
+ - **Default:** `{} (input supplied on omission)`
2480
+ - **Required:** Optional
2481
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2482
+
2483
+ **Description:** Role entries this profile overrides. Any role name is accepted except the reserved default.
2484
+
2485
+ **Constraints:** An entry named default is refused; Entry names: nonempty
2486
+
2487
+ #### `profiles.<name>.roles.<name>`
2488
+
2489
+ **TOML key:** `profiles.<name>.roles.<name>`
2490
+
2491
+ - **Type:** `strict table`
2492
+ - **Default:** `omitted`
2493
+ - **Required:** Required
2494
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2495
+
2496
+ **Description:** Role override for builds whose ticket carries the profile's label. Omitted fields inherit `[roles.<role>]`, then `[roles.default]`; a declared alternates list, including [], replaces the inherited list.
2497
+
2498
+ **Constraints:** None beyond the input type.
2499
+
2500
+ #### `profiles.<name>.roles.<name>.account`
2501
+
2502
+ **TOML key:** `profiles.<name>.roles.<name>.account`
2503
+
2504
+ - **Type:** `string`
2505
+ - **Default:** `omitted`
2506
+ - **Required:** Optional
2507
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2508
+
2509
+ **Description:** Named billing account; inherits independently. Claude selects the sole subscription account when omitted.
2510
+
2511
+ **Constraints:** minimum length 1; matches /\S/
2512
+
2513
+ #### `profiles.<name>.roles.<name>.runtime`
2514
+
2515
+ **TOML key:** `profiles.<name>.roles.<name>.runtime`
2516
+
2517
+ - **Type:** `string`
2518
+ - **Default:** `omitted`
2519
+ - **Required:** Optional
2520
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2521
+
2522
+ **Description:** Select an agent adapter.
2523
+
2524
+ **Constraints:** minimum length 1; Required on roles.default by runtime resolution; other roles inherit it. Must name a registered runtime.
2525
+
2526
+ #### `profiles.<name>.roles.<name>.model`
2527
+
2528
+ **TOML key:** `profiles.<name>.roles.<name>.model`
2529
+
2530
+ - **Type:** `string`
2531
+ - **Default:** `omitted`
2532
+ - **Required:** Optional
2533
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2534
+
2535
+ **Description:** Select the exact model. Codex uses unqualified `gpt-*`; Pi ids are provider-qualified.
2536
+
2537
+ **Constraints:** minimum length 1; Omission inherits the base model, otherwise uses the selected runtime default. Must be compatible with that runtime.
2538
+
2539
+ #### `profiles.<name>.roles.<name>.args`
2540
+
2541
+ **TOML key:** `profiles.<name>.roles.<name>.args`
2542
+
2543
+ - **Type:** `array of string`
2544
+ - **Default:** `omitted`
2545
+ - **Required:** Optional
2546
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2547
+
2548
+ **Description:** Ordered extra CLI argv tokens applied to every phase and tool-free one-shot invocation. A supplied list replaces, rather than unions with, the inherited list.
2549
+
2550
+ **Constraints:** Omission inherits the base list, otherwise resolves to an empty list; an explicit list replaces it.; Each item: minimum length 1
2551
+
2552
+ #### `profiles.<name>.roles.<name>.extensions`
2553
+
2554
+ **TOML key:** `profiles.<name>.roles.<name>.extensions`
2555
+
2556
+ - **Type:** `array of string`
2557
+ - **Default:** `omitted`
2558
+ - **Required:** Optional
2559
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2560
+
2561
+ **Description:** Compatibility-only field. Dispatch warns for each declaring role; migrate explicit runtime options to `args`.
2562
+
2563
+ **Constraints:** Each item: minimum length 1
2564
+
2565
+ #### `profiles.<name>.roles.<name>.sessionBudgetSeconds`
2566
+
2567
+ **TOML key:** `profiles.<name>.roles.<name>.sessionBudgetSeconds`
2568
+
2569
+ - **Type:** `number`
2570
+ - **Default:** `omitted`
2571
+ - **Required:** Optional
2572
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2573
+
2574
+ **Description:** Active-time budget for each build phase session routed through this role in a profiled build. Suspended intervals are excluded; native continuation retains the original ceiling and accumulated active time. One budget covers the primary and every alternate target.
2575
+
2576
+ **Constraints:** safe integer; > 0; Omission inherits roles.<role>.sessionBudgetSeconds, then roles.default.sessionBudgetSeconds, otherwise policy.sessionBudgetSeconds.
2577
+
2578
+ #### `profiles.<name>.roles.<name>.alternates`
2579
+
2580
+ **TOML key:** `profiles.<name>.roles.<name>.alternates`
2581
+
2582
+ - **Type:** `array of strict table`
2583
+ - **Default:** `omitted`
2584
+ - **Required:** Optional
2585
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2586
+
2587
+ **Description:** Failure-triggered execution targets (provider failures and a runtime whose CLI is not installed). A role's list replaces the inherited list wholesale; each entry overlays that role's effective primary axes. `extensions` is accepted there only as the same deprecated no-op.
2588
+
2589
+ **Constraints:** Omission inherits the base alternate list, otherwise resolves to an empty list; each alternate overlays the resolved primary axes.
2590
+
2591
+ #### `profiles.<name>.roles.<name>.alternates[].account`
2592
+
2593
+ **TOML key:** `profiles.<name>.roles.<name>.alternates[].account`
2594
+
2595
+ - **Type:** `string`
2596
+ - **Default:** `omitted`
2597
+ - **Required:** Optional
2598
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2599
+
2600
+ **Description:** Named billing account; inherits independently. Claude selects the sole subscription account when omitted.
2601
+
2602
+ **Constraints:** minimum length 1; matches /\S/
2603
+
2604
+ #### `profiles.<name>.roles.<name>.alternates[].runtime`
2605
+
2606
+ **TOML key:** `profiles.<name>.roles.<name>.alternates[].runtime`
2607
+
2608
+ - **Type:** `string`
2609
+ - **Default:** `omitted`
2610
+ - **Required:** Optional
2611
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2612
+
2613
+ **Description:** Select an agent adapter.
2614
+
2615
+ **Constraints:** minimum length 1; Required on roles.default by runtime resolution; other roles inherit it. Must name a registered runtime.
2616
+
2617
+ #### `profiles.<name>.roles.<name>.alternates[].model`
2618
+
2619
+ **TOML key:** `profiles.<name>.roles.<name>.alternates[].model`
2620
+
2621
+ - **Type:** `string`
2622
+ - **Default:** `omitted`
2623
+ - **Required:** Optional
2624
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2625
+
2626
+ **Description:** Select the exact model. Codex uses unqualified `gpt-*`; Pi ids are provider-qualified.
2627
+
2628
+ **Constraints:** minimum length 1; Omission inherits the base model, otherwise uses the selected runtime default. Must be compatible with that runtime.
2629
+
2630
+ #### `profiles.<name>.roles.<name>.alternates[].args`
2631
+
2632
+ **TOML key:** `profiles.<name>.roles.<name>.alternates[].args`
2633
+
2634
+ - **Type:** `array of string`
2635
+ - **Default:** `omitted`
2636
+ - **Required:** Optional
2637
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2638
+
2639
+ **Description:** Ordered extra CLI argv tokens applied to every phase and tool-free one-shot invocation. A supplied list replaces, rather than unions with, the inherited list.
2640
+
2641
+ **Constraints:** Each item: minimum length 1
2642
+
2643
+ #### `profiles.<name>.roles.<name>.alternates[].extensions`
2644
+
2645
+ **TOML key:** `profiles.<name>.roles.<name>.alternates[].extensions`
2646
+
2647
+ - **Type:** `array of string`
2648
+ - **Default:** `omitted`
2649
+ - **Required:** Optional
2650
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2651
+
2652
+ **Description:** Compatibility-only field. Dispatch warns for each declaring role; migrate explicit runtime options to `args`.
2653
+
2654
+ **Constraints:** Each item: minimum length 1
2655
+
2656
+ <!-- configuration-reference:/profiles -->
2657
+
2392
2658
  ## `[policy]`
2393
2659
 
2394
2660
  Optional. Every field receives its own default. All are positive integers except
@@ -2821,6 +3087,19 @@ state. Within a present table, `source` is required; `hosted` and `github` defau
2821
3087
 
2822
3088
  **Constraints:** [tickets].readyAssignee must be a nonblank value with no surrounding whitespace; Allowed for sources that can filter by assignee: linear ("me" or an email), github ("me" or a GitHub username, including managed-user logins such as mona_acme), and plugin sources that declare readyAssignee. Refused for file and hosted.
2823
3089
 
3090
+ #### `tickets.createAssignee`
3091
+
3092
+ **TOML key:** `tickets.createAssignee`
3093
+
3094
+ - **Type:** `string`
3095
+ - **Default:** `omitted`
3096
+ - **Required:** Optional
3097
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
3098
+
3099
+ **Description:** Assign every ticket Autobuild creates (`ab ticket create`, operator `tickets.create`, harvest proposals) to one user unless the create names its own assignees.
3100
+
3101
+ **Constraints:** [tickets].createAssignee must be a nonblank value with no surrounding whitespace; Allowed for github ("me" or a GitHub username) and plugin sources that declare assignees. Refused for file, hosted and linear.
3102
+
2824
3103
  #### `tickets.teamKey`
2825
3104
 
2826
3105
  **TOML key:** `tickets.teamKey`
@@ -2953,7 +3232,8 @@ and plugin sources that declare it accept it, each with its own value forms.
2953
3232
  assignees is ready when the user is any one of them.
2954
3233
 
2955
3234
  The gate is conjunctive with `readyState` and `readyLabels`, and a ticket with
2956
- no assignee is never ready while it is set. It applies to every ready surface
3235
+ no assignee is never ready while it is set; the GitHub source reports such ready
3236
+ issues in the ticket diagnostics. It applies to every ready surface
2957
3237
  (dispatch, the queued count, and `ab ticket list` without filters); blockers
2958
3238
  still prevent claim. A blank value, or one outside the source's forms, fails
2959
3239
  validation. `file`, `hosted` and plugin sources that don't declare the
package/docs/forges.md CHANGED
@@ -113,6 +113,7 @@ Classify failures with `ForgeFailure` (API 1.8):
113
113
 
114
114
  ```ts
115
115
  { kind: 'rate-limited', resetAt } // resetAt: a valid ISO timestamp
116
+ { kind: 'rate-limited', resetAt, unauthenticated } // the request had no credential; why
116
117
  { kind: 'transient', retry: 'retryable' } // retryable transport failures
117
118
  ```
118
119
 
@@ -88,7 +88,7 @@ raw session-event append. External operator harnesses own agent execution.
88
88
  | `GET …/status` | Repository intake, pause, and default-auto-merge projection. Its `operator` is `{presence: "unavailable", reason}`: this route does not load presence registrations, so it is not evidence that no operator is present. |
89
89
  | `GET …/harvest/status` | Harvest gate, runs, steps, recovery, and attention projection. |
90
90
  | `GET …/builds/{slug}/artifacts/{kind}?rev=N` | Raw bytes (`application/octet-stream`) plus content-disposition and `X-Autobuild-Artifact-*` metadata headers. Omit `rev` for latest. |
91
- | `GET …/tickets?state=S&label=L&limit=N&offset=K&order=O` | `{states,tickets,diagnostics,criteria,triageState,readyState,doneState,total}`. The three lifecycle names come from effective repository configuration (including provider fallback). With no `state`, `criteria.state` is `triageState`; repeated `label` parameters narrow that state with AND filters. An explicit `state` selects that exact backend workflow state. `limit` (0–200) returns one page, after skipping `offset`, in `order` `oldest` (the default: dispatch order, urgent tickets first, then the source order) or `newest` (newest filed first); `total` counts every match before paging. |
91
+ | `GET …/tickets?state=S&label=L&limit=N&offset=K&order=O` | `{states,tickets,diagnostics,criteria,triageState,readyState,doneState,total}`. The three lifecycle names come from effective repository configuration (including provider fallback). With no `state`, `criteria.state` is `triageState`; repeated `label` parameters narrow that state with AND filters. An explicit `state` selects that exact backend workflow state. `limit` (0–200) returns one page, after skipping `offset`, in `order` `oldest` (the default: dispatch order, urgent tickets first, then the source order) or `newest` (newest filed first, regardless of urgency; see paging below); `total` counts every match before paging. |
92
92
  | `GET …/tickets/states` | Full state metadata `{name,tickets,about?}[]`, including empty states (`tickets.states` in MCP). |
93
93
  | `GET …/tickets/{id}` | `{ticket,blockers,build}`. Blockers include native `exists`/`resolved` status; `build` prefers an active matching repository build, otherwise the most recently updated one. |
94
94
 
@@ -132,8 +132,8 @@ JSON bodies are strict: unknown fields are rejected.
132
132
  | `POST …/bulk-control` | `{"action":"pause"\|"resume"}`. The hold fact, intake fact, then eligible build events are written in that order. |
133
133
  | `POST …/harvest/control` | `{"action":"toggle-gate"}` or `{"action":"run","run":"…"}`. A run action is bound to that concrete projected run. |
134
134
  | `POST …/tickets/states` | `{name,about?}` → `{state,created}`; requires attributed operator identity (`tickets.state.create` in MCP). Hosted duplicate names are refused case-insensitively. |
135
- | `POST …/tickets` | `{"title":"…","body":"…","labels"?:[],"state"?:"…","blockedBy"?:[],"issueLinks"?:[{"issue":N,"intent"?:"closes"|"refs"}],"priority"?:"urgent"|"normal","kind"?:"work"|"node","target"?:"id"|null}`; omitted state preserves the backend default, omitted intent is `closes`, and omitted priority is normal. A backend that cannot store issue links refuses with `code: "issue-links-unsupported"`; one that cannot store priority refuses `urgent` with `code: "priority-unsupported"` and accepts `normal` as a no-op. |
136
- | `PATCH …/tickets/{id}` | Any nonempty subset of `title`, `body`, complete-replacement `labels`, complete-replacement `issueLinks` (`[]` clears), `priority` (`urgent` or `normal`; refusals as for create), `kind` (`work` or `node`), and nullable `target` (null clears). Body bytes are not normalized. |
135
+ | `POST …/tickets` | `{"title":"…","body":"…","labels"?:[],"state"?:"…","blockedBy"?:[],"issueLinks"?:[{"issue":N,"intent"?:"closes"|"refs"}],"priority"?:"urgent"|"normal","assignees"?:["login"|"me"],"kind"?:"work"|"node","target"?:"id"|null}`; omitted state preserves the backend default, omitted intent is `closes`, omitted priority is normal, and omitted assignees apply `[tickets].createAssignee` (`[]` creates an unassigned ticket). `assignees` takes at most ten entries, counted before duplicates collapse, and more is a validation error. A backend that cannot store issue links refuses with `code: "issue-links-unsupported"`; one that cannot store priority refuses `urgent` with `code: "priority-unsupported"` and accepts `normal` as a no-op; one that cannot store assignees refuses any `assignees` with `code: "assignees-unsupported"`. |
136
+ | `PATCH …/tickets/{id}` | Any nonempty subset of `title`, `body`, complete-replacement `labels`, complete-replacement `issueLinks` (`[]` clears), `priority` (`urgent` or `normal`; refusals as for create), complete-replacement `assignees` (`[]` clears; refusals as for create), `kind` (`work` or `node`), and nullable `target` (null clears). Body bytes are not normalized. |
137
137
  | `POST …/tickets/{id}/move` | Exactly one of `{"state":"backend state name"}` or `{"role":"triage"\|"ready"\|"backlog"\|"rejected"}`; both or neither is `400 validation` (`tickets.move` in MCP takes the same target). A role resolves to the configured `triageState`, `readyState`, `backlogState`, or `rejectedState`. An unset `backlogState` or `rejectedState` refuses with a message naming the key to set, and never guesses a native state. A source that can create states creates a missing role state before moving. |
138
138
  | `POST …/tickets/{id}/block` | `{"blockerIds":["…"]}`. |
139
139
  | `POST …/tickets/{id}/unblock` | `{"blockerIds":["…"]}`. |
@@ -298,7 +298,11 @@ The default watch reports actionable conditions only:
298
298
  - Repository `harvest.escalated`, `harvest.recovery-exhausted`,
299
299
  `dispatcher.config-rejected`, `dispatcher.config-reloaded` with nonempty
300
300
  `restartRequired`, `dispatcher.upgrade-failed`, `dispatcher.runtime-rolled-back`,
301
- `dispatcher.kernel-git-unavailable`, abnormal `dispatcher.run-stopped`, and `dispatcher.lost`.
301
+ `dispatcher.kernel-git-unavailable`, `forge.credential-limited`, abnormal
302
+ `dispatcher.run-stopped`, and `dispatcher.lost`. A `forge.credential-limited`
303
+ line names the process whose GitHub request was rate-limited outside the
304
+ dispatcher's credential (unauthenticated, with why, or on that process's own
305
+ credential) and its reset; dispatcher forge work continues.
302
306
  - Repository `ticket-preparation.resolved` with outcome `abandoned`: automatic
303
307
  preparation recovery stopped and left the ticket unchanged. The line names the
304
308
  ticket, attempt and recorded reason; the payload's `claimed` says whether the
@@ -395,6 +399,10 @@ Active janitor attention and an open janitor escalation clear on a successful
395
399
  attempt. Repository status
396
400
  includes forge degradation/reset and available request counts; `dispatcher.forge-persistent` requires a completed retry opportunity past
397
401
  the original reset, which later rate limits cannot postpone indefinitely.
402
+ Only the dispatcher's own classified limits record that degradation. Status
403
+ also lists active `forgeCredentialLimits`: limits on unauthenticated requests or
404
+ seen by build runners and phase sessions, each naming the process, which never
405
+ pause repository forge work.
398
406
 
399
407
  ### Node restack request
400
408
 
@@ -580,20 +588,23 @@ permission or retention failures leave deletion pending. Vercel Blob cleanup use
580
588
  the same store identity, token and prefixed pathname as uploads. Missing objects
581
589
  are successful cleanup; provider errors never count as completed deletion.
582
590
 
583
- Paged ticket listings use the source's optional native `listPage(criteria, page)` capability when present, otherwise read the full listing, order it, and slice it: by default urgent tickets first, then normal ones, each in source order; for `newest`, the reversed source order. Native errors propagate. PostgreSQL counts matches without bodies and reads only the requested window. Zero limits and offsets past the end still report the full matching total. Unpaged listings remain exhaustive; the wire payload is the same for both paths.
591
+ Paged ticket listings use the source's optional native `listPage(criteria, page)` capability when present, otherwise read the full listing, order it, and slice it: by default urgent tickets first, then normal ones, each in source order; for `newest`, the reversed listing. `newest` means newest filed first, regardless of urgency, with a stable tie-break; it is not the reverse of dispatch order. A source that lists in filing order (file, GitHub, Linear) gets exactly that from the reversed listing. The remote `HostedTicketSource` is the exception: the hosted list-ready protocol returns urgent tickets first and carries no filing time, so its fallback `newest` pages are reversed dispatch order whenever urgent tickets exist. Native errors propagate. PostgreSQL counts matches without bodies and reads only the requested window. Zero limits and offsets past the end still report the full matching total. Unpaged listings remain exhaustive; the wire payload is the same for both paths.
584
592
 
585
593
 
586
594
  ### Forge cooldown admission and explicit recovery
587
595
 
588
596
  Hosted repository event appends and atomic artifact deposits validate
589
- `dispatcher.forge-degraded` before any durable mutation. The payload must match
590
- its event schema, with a finite ISO `resetAt` at most 24 hours after server time
597
+ `dispatcher.forge-degraded` and `forge.credential-limited` before any durable
598
+ mutation. The payload must match its event schema, with a finite ISO `resetAt` at most 24 hours after server time
591
599
  (inclusive). Already-expired deadlines are accepted. Invalid or out-of-horizon
592
600
  writes return `400 validation` (the remote adapter exposes `EventValidationError`);
593
601
  the server never clamps or invents a provider reset. Historical decoding has no clock-relative restriction.
594
602
 
595
603
  Build-runner and build-phase grants may POST only the kernel-authored
596
- `dispatcher.forge-degraded` repository fact through the events route. The
604
+ `forge.credential-limited` and `dispatcher.forge-degraded` repository facts
605
+ through the events route. Current runners and phase sessions record only
606
+ `forge.credential-limited` attention; the `dispatcher.forge-degraded` exception
607
+ remains for runners pinned to older releases. The
597
608
  preceding `requireProject` check binds this exception to the exact repository
598
609
  in the delegated claim. A hosted project identifies one repository. Delegates
599
610
  cannot write recovery, deposits or other repository facts, regardless of the
@@ -80,14 +80,17 @@ There's no operator-surface plugin map. Build a client of the versioned, authent
80
80
  ### Forge cooldown admission and explicit recovery
81
81
 
82
82
  Hosted repository event appends and atomic artifact deposits validate
83
- `dispatcher.forge-degraded` before any durable mutation. The payload must match
84
- its event schema, with a finite ISO `resetAt` at most 24 hours after server time
83
+ `dispatcher.forge-degraded` and `forge.credential-limited` before any durable
84
+ mutation. The payload must match its event schema, with a finite ISO `resetAt` at most 24 hours after server time
85
85
  (inclusive). Already-expired deadlines are accepted. Invalid or out-of-horizon
86
86
  writes return `400 validation` (the remote adapter exposes `EventValidationError`);
87
87
  the server never clamps or invents a provider reset. Historical decoding has no clock-relative restriction.
88
88
 
89
89
  Build-runner and build-phase grants may POST only the kernel-authored
90
- `dispatcher.forge-degraded` repository fact through the events route. The
90
+ `forge.credential-limited` and `dispatcher.forge-degraded` repository facts
91
+ through the events route. Current runners and phase sessions record only
92
+ `forge.credential-limited` attention; the `dispatcher.forge-degraded` exception
93
+ remains for runners pinned to older releases. The
91
94
  preceding `requireProject` check binds this exception to the exact repository
92
95
  in the delegated claim. A hosted project identifies one repository. Delegates
93
96
  cannot write recovery, deposits or other repository facts, regardless of the
@@ -158,6 +158,9 @@ API 1.8 adds optional forge failure classification. Import `ForgeFailure` and `i
158
158
  ```ts
159
159
  // Rate limit, with a valid ISO reset timestamp:
160
160
  throw new ForgeFailure(message, { kind: 'rate-limited', resetAt })
161
+ // The limited request carried no credential: say why, so the limit stays local
162
+ // to the caller instead of pausing the repository:
163
+ throw new ForgeFailure(message, { kind: 'rate-limited', resetAt, unauthenticated: reason })
161
164
  // Retryable transport error:
162
165
  throw new ForgeFailure(message, { kind: 'transient', retry: 'retryable' })
163
166
  ```
@@ -537,10 +540,12 @@ refuse a configured `readyAssignee` with an error naming the source and plugin.
537
540
  Three optional methods support it:
538
541
 
539
542
  - `prepareReadyAssignee(): Promise<void>` is called once at dispatcher startup,
540
- before the loop and never in a tick, whether or not `readyAssignee` is set.
543
+ before the loop and never in a tick, whether or not `readyAssignee` or
544
+ `createAssignee` is set.
541
545
  Resolve whatever `"me"` needs and memoize it. A credential with no user is a
542
546
  recorded result, not a throw; throw only for infrastructure failures, which
543
- fail startup when `readyAssignee` is set and are otherwise a warning.
547
+ fail startup when `readyAssignee` or `createAssignee` is set and are
548
+ otherwise a warning.
544
549
  - `readyAssigneeRefusal(value): string | undefined` is synchronous and makes no
545
550
  request. Return why the value can't be honoured from what was prepared, or
546
551
  `undefined`. Startup and every reload call it, so a refused reload keeps the
@@ -549,6 +554,29 @@ Three optional methods support it:
549
554
  return a one-line summary of who the value names, such as `me → @octocat`,
550
555
  or throw an error that says how to fix a value that names nobody.
551
556
 
557
+ ## Optional assignees capability
558
+
559
+ An adapter opts in with `assignees: true` and must then accept
560
+ `assignees?: string[]` on create, update and revision-checked update, where
561
+ each entry is a username or `me` (the owner of the source's credential) and an
562
+ update replaces the whole set, `[]` clearing it. Return `assignees` on every
563
+ read, `[]` when unassigned, and leave it out of revisions. Check each user
564
+ before any write and refuse, writing nothing, when one can't be assigned. A
565
+ write the provider accepts without the requested assignees must fail rather
566
+ than report success, and a retried keyed create that adopts an existing ticket
567
+ must leave it with the requested assignees. Without the flag, the
568
+ compatibility facade refuses any write naming assignees, including `[]`, with
569
+ `TicketAssigneesUnsupported` before your methods run, strips them from reads,
570
+ and dispatcher startup, `ab init --validate` and live reloads refuse a
571
+ configured `[tickets].createAssignee`, naming the source and plugin.
572
+
573
+ Callers apply `createAssignee` themselves, so a draft's assignees are always
574
+ exact. To support it, implement `createAssigneeRefusal(value)`, synchronous
575
+ and request-free like `readyAssigneeRefusal`, and
576
+ `describeCreateAssignee(value)` for `ab init --validate`. `"me"` should reuse
577
+ what `prepareReadyAssignee` resolved, so a dispatcher never resolves it in a
578
+ tick.
579
+
552
580
  ## Optional ticket paging capability
553
581
 
554
582
  Native paging is an optional API 1.9 ticket-source capability:
@@ -556,8 +584,11 @@ Native paging is an optional API 1.9 ticket-source capability:
556
584
  The SDK exports these types; the result is `TicketListing & { total: number }`.
557
585
  Criteria retain state, labels (AND), and assignee semantics. The page has a
558
586
  nonnegative integer `limit`, optional nonnegative integer `offset` (default 0),
559
- and optional `order: 'oldest' | 'newest'` (default oldest). Newest reverses the
560
- entire source order before offset and limit. Total counts all matches, even
587
+ and optional `order: 'oldest' | 'newest'` (default oldest). Oldest is the
588
+ source's dispatch order: with `priority`, urgent tickets first, then normal
589
+ ones, each in listing order. Newest is newest filed first: creation time
590
+ descending, regardless of urgency, with a stable tie-break. It is not the
591
+ reverse of dispatch order. Offset and limit apply after ordering. Total counts all matches, even
561
592
  with limit zero or an offset past the end. Records, diagnostics and errors
562
593
  match the exhaustive listing. The shared `describeTicketSourceContract` suite
563
594
  automatically compares declared native paging with full-read windows.
@@ -565,7 +596,12 @@ automatically compares declared native paging with full-read windows.
565
596
  Only paged operator listings select this capability. Sources without it retain
566
597
  the full-read fallback, which orders the listing before offset and limit: by
567
598
  default a stable urgent-first partition (urgent, then normal, each in source
568
- order), or for newest the reversed source order. Native errors propagate. Unpaged operator
599
+ order), or for newest the reversed listing, which is newest filed first for
600
+ sources that list in filing order (file, GitHub, Linear). The remote
601
+ `HostedTicketSource` is the exception: the hosted list-ready protocol returns
602
+ urgent tickets first and carries no filing time, so the client cannot see
603
+ filing order, and its newest pages are reversed dispatch order whenever urgent
604
+ tickets exist. Native errors propagate. Unpaged operator
569
605
  listings, CLI ticket lists and dispatcher ready scans remain exhaustive through
570
606
  `listReady`/`listAll`. The hosted PostgreSQL source counts matches without
571
607
  bodies and reads only the SQL-bounded window. File, Linear, GitHub and the remote
@@ -574,4 +610,6 @@ bodies and reads only the SQL-bounded window. File, Linear, GitHub and the remot
574
610
  Hosted cooldown recording rejects observed reset deadlines beyond the 24-hour
575
611
  admission horizon explicitly; adapters must not shorten or invent a provider
576
612
  reset to evade this validation. Operator forge-clear is an audited override,
577
- not a successful provider observation.
613
+ not a successful provider observation. Only limits the dispatcher's own forge
614
+ classifies, without `unauthenticated`, record repository cooldown; others are
615
+ local to the process and reported as `forge.credential-limited` attention.
@@ -35,6 +35,12 @@ service publishes `>=1.2.0 <1.4.0` until later publication facts permit retireme
35
35
  The service reads the clock for each decision, so retirement needs no redeploy. Health needs no credentials, version
36
36
  headers, or available backend. On the service’s own line, both its runtime protocol and its published ledger protocol are admitted. Health advertises a fully validated same-line request’s admitted protocol. Otherwise it advertises the service line’s published protocol, or its runtime protocol when that line is unpublished. Thus default 1.3 health advertises 6 anonymously and to published clients, and 7 to admitted source clients; explicit 1.4/7 services default to 7. The package version and support range remain truthful. Health performs no store reads.
37
37
 
38
+ Every current service advertises `build-creation-key-v1` in health `capabilities`:
39
+ keyed project creation lands at the derived slug described under `POST /builds`.
40
+ Clients send a creation key only after seeing it. A client treats a service without
41
+ it as allocating, so an unkeyed creation whose response was lost there is reported
42
+ as an unknown outcome rather than as absence.
43
+
38
44
 
39
45
  ## Hosted dispatch placement
40
46
 
@@ -372,7 +378,7 @@ it to exist. An unknown build returns `404 not-found`.
372
378
 
373
379
  | BuildStore operation | HTTP route | Request | Success |
374
380
  |---|---|---|---|
375
- | `createBuild` | `POST /builds` | `{slug: string, repo: string, repoOrigin?: string, ticket?: TicketRef, branch?: string, created?: event write}`; `slug`, `repo`, and a supplied `branch` are nonempty. `created`, when present, must be a valid `build.created` write; the server appends it as seq 1 atomically with the record (both exist or neither), and an invalid one is `422` with nothing created | `201` + authoritative `BuildRecord`; project credentials receive a fresh random-suffixed slug and a branch in the build kind's namespace (`ab/<slug>`, or `ab-node/<slug>` for a node); a supplied `branch` must be `ab/<requested slug>` or `ab-node/<requested slug>` agreeing with the `build.created` kind, otherwise `400 validation`. Owner admin/open mode keeps exact-slug semantics with `409 conflict` for duplicates |
381
+ | `createBuild` | `POST /builds` | `{slug: string, repo: string, repoOrigin?: string, ticket?: TicketRef, branch?: string, created?: event write, creationKey?: string}`; `slug`, `repo`, and a supplied `branch` are nonempty; a supplied `creationKey` matches `^[A-Za-z0-9_-]{1,128}$`. `created`, when present, must be a valid `build.created` write; the server appends it as seq 1 atomically with the record (both exist or neither), and an invalid one is `422` with nothing created | `201` + authoritative `BuildRecord`; project credentials receive a fresh random-suffixed slug, or with `creationKey` the slug that key derives (a repeated key is `409 conflict`), and a branch in the build kind's namespace (`ab/<slug>`, or `ab-node/<slug>` for a node); a supplied `branch` must be `ab/<requested slug>` or `ab-node/<requested slug>` agreeing with the `build.created` kind, otherwise `400 validation`. Owner admin/open mode keeps exact-slug semantics with `409 conflict` for duplicates |
376
382
  | `listBuilds` | `GET /builds` | none | `200` + `BuildRecord[]`, filtered by the server to the credential project; owner admin may list all projects. List order is unspecified |
377
383
  | `getBuild` | `GET /builds/{slug}` | none | `200` + `BuildRecord`; absent is `404` (the shipped client maps this to `null`) |
378
384
  | `append` | `POST /builds/{slug}/events` | event write | `201` + build event envelope |
@@ -1190,8 +1196,12 @@ Remote clients continue mapping addressed GET 404 responses to null. Nested
1190
1196
  streams must also belong to the addressed parent.
1191
1197
 
1192
1198
  `GET /builds` is filtered by the server to the credential's project. Project
1193
- `POST /builds` always allocates a fresh random-suffixed slug from the requested
1194
- base, even when the base is unused, and a matching branch in the build kind's
1199
+ `POST /builds` without `creationKey` allocates a fresh random-suffixed slug from
1200
+ the requested base, even when the base is unused. With `creationKey` it creates at
1201
+ most once at `<base>-<first 24 hex of sha256("autobuild-build-creation\0" + repo +
1202
+ "\0" + requested slug + "\0" + creationKey)>` and answers a repeated key with
1203
+ `409 conflict`, never a second identity; `creationBuildSlug` in the client package
1204
+ computes it. Either way it creates a matching branch in the build kind's
1195
1205
  namespace: `ab-node/<slug>` when the `build.created` payload has `kind: "node"`,
1196
1206
  otherwise `ab/<slug>`. Without `created`, a supplied `branch` prefix decides the
1197
1207
  kind. A supplied `branch` must be exactly `ab/<requested slug>` or
@@ -1776,14 +1786,17 @@ The commands use the saved owner credential, even if an ambient build token exis
1776
1786
  ### Forge cooldown admission and explicit recovery
1777
1787
 
1778
1788
  Hosted repository event appends and atomic artifact deposits validate
1779
- `dispatcher.forge-degraded` before any durable mutation. The payload must match
1780
- its event schema, with a finite ISO `resetAt` at most 24 hours after server time
1789
+ `dispatcher.forge-degraded` and `forge.credential-limited` before any durable
1790
+ mutation. The payload must match its event schema, with a finite ISO `resetAt` at most 24 hours after server time
1781
1791
  (inclusive). Already-expired deadlines are accepted. Invalid or out-of-horizon
1782
1792
  writes return `400 validation` (the remote adapter exposes `EventValidationError`);
1783
1793
  the server never clamps or invents a provider reset. Historical decoding has no clock-relative restriction.
1784
1794
 
1785
1795
  Build-runner and build-phase grants may POST only the kernel-authored
1786
- `dispatcher.forge-degraded` repository fact through the events route. The
1796
+ `forge.credential-limited` and `dispatcher.forge-degraded` repository facts
1797
+ through the events route. Current runners and phase sessions record only
1798
+ `forge.credential-limited` attention; the `dispatcher.forge-degraded` exception
1799
+ remains for runners pinned to older releases. The
1787
1800
  preceding `requireProject` check binds this exception to the exact repository
1788
1801
  in the delegated claim. A hosted project identifies one repository. Delegates
1789
1802
  cannot write recovery, deposits or other repository facts, regardless of the