@defrex/autobuild 1.5.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 (126) hide show
  1. package/README.md +1 -1
  2. package/SPEC.md +192 -24
  3. package/docs/agent-runtimes.md +1 -1
  4. package/docs/answering-blocked-builds.md +7 -4
  5. package/docs/architecture.md +100 -32
  6. package/docs/configuration-overview.md +10 -0
  7. package/docs/configuration.md +340 -10
  8. package/docs/dispatcher.md +2 -2
  9. package/docs/forges.md +1 -0
  10. package/docs/glossary.md +1 -1
  11. package/docs/operating.md +1 -1
  12. package/docs/operator-api.md +33 -10
  13. package/docs/operator-surfaces.md +6 -3
  14. package/docs/plugin-authoring.md +48 -6
  15. package/docs/remote-store-protocol.md +33 -10
  16. package/docs/restacking.md +16 -7
  17. package/docs/ticket-sources.md +34 -6
  18. package/docs/tickets.md +7 -1
  19. package/docs/troubleshooting.md +1 -1
  20. package/docs/workspaces.md +1 -1
  21. package/package.json +3 -3
  22. package/packages/core/src/cli/attention.ts +3 -0
  23. package/packages/core/src/cli/binary-direct.ts +1 -0
  24. package/packages/core/src/cli/dashboard/model.ts +14 -4
  25. package/packages/core/src/cli/dashboard/poll.ts +14 -0
  26. package/packages/core/src/cli/dashboard/render.ts +3 -0
  27. package/packages/core/src/cli/dispatch-frontend.ts +10 -14
  28. package/packages/core/src/cli/dispatch-preflight.ts +5 -1
  29. package/packages/core/src/cli/dispatch-repository-feed.ts +145 -109
  30. package/packages/core/src/cli/dispatch-tickets.ts +47 -0
  31. package/packages/core/src/cli/dispatch-upgrade-controller.ts +3 -0
  32. package/packages/core/src/cli/dispatch.ts +377 -101
  33. package/packages/core/src/cli/help.ts +15 -6
  34. package/packages/core/src/cli/init-validation.ts +14 -1
  35. package/packages/core/src/cli/repo-lease.ts +225 -0
  36. package/packages/core/src/cli/repository-status.ts +40 -3
  37. package/packages/core/src/cli/status.ts +21 -13
  38. package/packages/core/src/cli/ticket.ts +22 -4
  39. package/packages/core/src/cli/wait.ts +4 -1
  40. package/packages/core/src/cli/watch.ts +17 -4
  41. package/packages/core/src/config/live.ts +4 -0
  42. package/packages/core/src/config/profiles.ts +96 -0
  43. package/packages/core/src/config/ready-assignee.ts +43 -11
  44. package/packages/core/src/config/roles.ts +33 -10
  45. package/packages/core/src/config/schema.ts +204 -26
  46. package/packages/core/src/events/catalog.ts +2 -0
  47. package/packages/core/src/events/compatibility.ts +3 -1
  48. package/packages/core/src/events/forge-degradation-policy.ts +16 -2
  49. package/packages/core/src/events/payloads.ts +23 -0
  50. package/packages/core/src/events/policy.ts +3 -0
  51. package/packages/core/src/events/repository.ts +19 -0
  52. package/packages/core/src/kernel/__snapshots__/reducer-accumulator-shapes.json +267 -352
  53. package/packages/core/src/kernel/build-creation.ts +29 -0
  54. package/packages/core/src/kernel/dispatch-capacity.ts +134 -30
  55. package/packages/core/src/kernel/engine.ts +13 -6
  56. package/packages/core/src/kernel/forge-health.ts +47 -0
  57. package/packages/core/src/kernel/generators/build-log.ts +9 -0
  58. package/packages/core/src/kernel/guarded-forge.ts +76 -18
  59. package/packages/core/src/kernel/incremental-fixtures.ts +1 -0
  60. package/packages/core/src/kernel/janitor-failure.ts +85 -5
  61. package/packages/core/src/kernel/leaf-restack-state.ts +4 -2
  62. package/packages/core/src/kernel/log-index.ts +1 -1
  63. package/packages/core/src/kernel/node-landing.ts +2 -1
  64. package/packages/core/src/kernel/node-parent.ts +2 -0
  65. package/packages/core/src/kernel/read-facts.ts +9 -1
  66. package/packages/core/src/kernel/reducer-registry.ts +6 -1
  67. package/packages/core/src/kernel/reducer.ts +75 -4
  68. package/packages/core/src/kernel/ticket-preparation.ts +15 -8
  69. package/packages/core/src/operator/protocol.ts +10 -0
  70. package/packages/core/src/operator/query.ts +16 -13
  71. package/packages/core/src/operator/registry.ts +25 -5
  72. package/packages/core/src/operator/sandbox-host.ts +3 -0
  73. package/packages/core/src/operator/tickets.ts +15 -3
  74. package/packages/core/src/plugin-sdk/index.ts +4 -0
  75. package/packages/core/src/ports/forge/create.ts +6 -0
  76. package/packages/core/src/ports/forge/github-transport.ts +40 -3
  77. package/packages/core/src/ports/forge/github.ts +12 -1
  78. package/packages/core/src/ports/forge/workspace-ancestry.ts +60 -0
  79. package/packages/core/src/ports/forge-failure.ts +31 -2
  80. package/packages/core/src/ports/runner/routing.ts +66 -5
  81. package/packages/core/src/ports/tickets/assignees.ts +54 -0
  82. package/packages/core/src/ports/tickets/contract.ts +164 -4
  83. package/packages/core/src/ports/tickets/create.ts +35 -7
  84. package/packages/core/src/ports/tickets/github-fake.ts +18 -2
  85. package/packages/core/src/ports/tickets/github.ts +247 -29
  86. package/packages/core/src/ports/tickets/hosted-index.ts +1 -0
  87. package/packages/core/src/ports/tickets/operations.ts +6 -1
  88. package/packages/core/src/ports/tickets/tree.ts +12 -2
  89. package/packages/core/src/ports/tickets/update.ts +6 -2
  90. package/packages/core/src/ports/types.ts +37 -3
  91. package/packages/core/src/ports/workspace/commit-preservation.ts +28 -12
  92. package/packages/core/src/ports/workspace/git-worktree.ts +3 -1
  93. package/packages/core/src/ports/workspace/harvest-execution.ts +4 -2
  94. package/packages/core/src/ports/workspace/vercel-sandbox.ts +12 -0
  95. package/packages/core/src/processes/build-child.ts +28 -7
  96. package/packages/core/src/processes/build-execution-state.ts +4 -1
  97. package/packages/core/src/processes/build-runner.ts +17 -2
  98. package/packages/core/src/processes/dispatcher.ts +329 -59
  99. package/packages/core/src/processes/execution-no-progress.ts +2 -0
  100. package/packages/core/src/processes/harvest-child.ts +8 -2
  101. package/packages/core/src/processes/harvest-execution-state.ts +104 -0
  102. package/packages/core/src/processes/harvest-runner.ts +251 -17
  103. package/packages/core/src/processes/repo-view.ts +2 -0
  104. package/packages/core/src/scenarios/harness.ts +160 -36
  105. package/packages/core/src/store/reduced-reads.ts +10 -0
  106. package/packages/core/src/store/reducer-value-shapes.json +3339 -2898
  107. package/packages/core/src/store/remote/client.ts +21 -8
  108. package/packages/core/src/store/remote/index.ts +4 -0
  109. package/packages/core/src/store/remote/protocol.ts +7 -0
  110. package/packages/core/src/store/remote/released-clients.json +22 -0
  111. package/packages/core/src/store/remote/released-reducer-values/1.6.0.json +27173 -0
  112. package/packages/core/src/store/remote/released-reducer-values/1.7.0.json +27366 -0
  113. package/packages/core/src/store/remote/released-reducer-values/index.ts +4 -0
  114. package/packages/core/src/store/repo-state-events.ts +1 -0
  115. package/packages/core/src/store/types.ts +11 -0
  116. package/packages/core/src/testing/dispatch-read-budget.ts +84 -58
  117. package/packages/core/src/testing/index.ts +2 -0
  118. package/packages/core/src/testing/reduced-read-budget.ts +411 -11
  119. package/skills/guide/SKILL.md +166 -35
  120. package/skills/guide/references/operator-api.md +33 -10
  121. package/skills/guide/references/plugin-authoring.md +48 -6
  122. package/skills/guide/references/remote-store-protocol.md +33 -10
  123. package/skills/guide/references/restacking.md +16 -7
  124. package/skills/operate/SKILL.md +79 -14
  125. package/skills/tickets/SKILL.md +22 -4
  126. 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
@@ -441,7 +443,7 @@ any table header.
441
443
  - **Required:** Optional
442
444
  - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
443
445
 
444
- **Description:** Concurrent occupied slots for this repository. Paused and blocked work retains slots. Node reconcile and verification exclude their own blocked/paused descendants at admission; new claims use total occupancy. See [integration capacity](integration-tree.md).
446
+ **Description:** Builds running work at once for this repository. A build that finished its pipeline holds no slot while it waits for a merge decision; it is admitted ahead of new claims when it must run again. Unfinished paused and blocked work retains slots. Node reconcile and verification exclude their own blocked/paused descendants at admission; new claims use total occupancy. See [integration capacity](integration-tree.md).
445
447
 
446
448
  **Constraints:** safe integer; > 0
447
449
 
@@ -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
@@ -2422,6 +2688,32 @@ Optional. Every field receives its own default. All are positive integers except
2422
2688
 
2423
2689
  **Constraints:** safe integer; > 0
2424
2690
 
2691
+ #### `policy.dispatchLeaseTimeoutSeconds`
2692
+
2693
+ **TOML key:** `policy.dispatchLeaseTimeoutSeconds`
2694
+
2695
+ - **Type:** `number`
2696
+ - **Default:** `60`
2697
+ - **Required:** Optional
2698
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2699
+
2700
+ **Description:** How long the repository dispatch lease survives without renewal. A dispatcher that stalls longer reclaims it on waking unless another run took it; a standby takes over a dead holder within this bound. A change takes effect at the dispatcher's next tick.
2701
+
2702
+ **Constraints:** safe integer; > 0; Must be greater than `dispatchLeaseRenewalSeconds`.
2703
+
2704
+ #### `policy.dispatchLeaseRenewalSeconds`
2705
+
2706
+ **TOML key:** `policy.dispatchLeaseRenewalSeconds`
2707
+
2708
+ - **Type:** `number`
2709
+ - **Default:** `20`
2710
+ - **Required:** Optional
2711
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2712
+
2713
+ **Description:** Interval between repository dispatch lease renewals; adopted together with the timeout.
2714
+
2715
+ **Constraints:** safe integer; > 0; Must be less than `dispatchLeaseTimeoutSeconds`.
2716
+
2425
2717
  #### `policy.sessionBudgetSeconds`
2426
2718
 
2427
2719
  **TOML key:** `policy.sessionBudgetSeconds`
@@ -2552,6 +2844,19 @@ Optional. Every field receives its own default. All are positive integers except
2552
2844
 
2553
2845
  **Constraints:** safe integer; > 0
2554
2846
 
2847
+ #### `policy.janitorFailureEscalationSeconds`
2848
+
2849
+ **TOML key:** `policy.janitorFailureEscalationSeconds`
2850
+
2851
+ - **Type:** `number`
2852
+ - **Default:** `3600`
2853
+ - **Required:** Optional
2854
+ - **Reload:** Hot: next dispatcher action captures the accepted value. A running invocation keeps its captured values.
2855
+
2856
+ **Description:** Consecutive janitor failure duration before the build raises one escalation; the janitor keeps retrying.
2857
+
2858
+ **Constraints:** safe integer; > 0
2859
+
2555
2860
  #### `policy.nodeIdleAfterSeconds`
2556
2861
 
2557
2862
  **TOML key:** `policy.nodeIdleAfterSeconds`
@@ -2661,8 +2966,16 @@ Unclaimed observation pressure is not shown in the dashboard header, which
2661
2966
  reads `triage <count> | queue <depth> | active <current>/<limit>`. A running or
2662
2967
  paused Harvest row shows its run's observations, and `ab harvest status`
2663
2968
  reports Harvest state. Neither `policy.harvestThreshold` nor
2664
- `policy.harvestMaxDrift` is displayed in the header. The repository lease and fixed per-run recovery budget are implementation
2665
- invariants, not additional configuration fields.
2969
+ `policy.harvestMaxDrift` is displayed in the header. The fixed per-run recovery budget is an implementation
2970
+ invariant, not an additional configuration field.
2971
+
2972
+ The repository dispatch lease is configured by
2973
+ `policy.dispatchLeaseTimeoutSeconds` (default 60) and
2974
+ `policy.dispatchLeaseRenewalSeconds` (default 20). The renewal interval must be
2975
+ less than the timeout; configuration that breaks this is refused when it loads.
2976
+ A dispatcher adopts a changed pair at its next tick. A dispatcher that stalls
2977
+ longer than the timeout reclaims its lease on waking unless another dispatcher
2978
+ took it, and a standby takes over from a dead holder within the timeout.
2666
2979
 
2667
2980
  ## `[tickets]`
2668
2981
 
@@ -2774,6 +3087,19 @@ state. Within a present table, `source` is required; `hosted` and `github` defau
2774
3087
 
2775
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.
2776
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
+
2777
3103
  #### `tickets.teamKey`
2778
3104
 
2779
3105
  **TOML key:** `tickets.teamKey`
@@ -2906,7 +3232,8 @@ and plugin sources that declare it accept it, each with its own value forms.
2906
3232
  assignees is ready when the user is any one of them.
2907
3233
 
2908
3234
  The gate is conjunctive with `readyState` and `readyLabels`, and a ticket with
2909
- 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
2910
3237
  (dispatch, the queued count, and `ab ticket list` without filters); blockers
2911
3238
  still prevent claim. A blank value, or one outside the source's forms, fails
2912
3239
  validation. `file`, `hosted` and plugin sources that don't declare the
@@ -3563,8 +3890,11 @@ action. Check the gates in this order:
3563
3890
  5. **Dependencies:** every `blockedBy` ticket must exist and be complete in the
3564
3891
  same source. This includes harvest proposals filed directly into the ready
3565
3892
  state. Plain dispatch output reports unresolved ids and cycles.
3566
- 6. **Capacity:** every nonterminal build for this repository—including paused
3567
- and blocked builds—uses a slot. Inspect `ab builds --queued` and
3893
+ 6. **Capacity:** every unfinished build for this repository—including paused
3894
+ and blocked builds—uses a slot. A build that has finished its pipeline and
3895
+ waits for a merge decision holds none, but one that must re-verify or
3896
+ reconcile is admitted ahead of new claims and reserves a slot while it
3897
+ waits. Inspect `ab repository status`, `ab builds --queued` and
3568
3898
  `ab build status <slug>` rather than looking only for a live process.
3569
3899
  7. **Duplicate work:** a ready ticket already represented by an active build is
3570
3900
  deliberately excluded from the queue.
@@ -50,7 +50,7 @@ A ticket is claimed when it passes every gate:
50
50
 
51
51
  Others stay queued. Urgent tickets are claimed before normal ones, each in the source's order; priority never preempts a running build. See [Tickets and specs](tickets.md) for grooming and [Intake and harvest](intake.md) for proposed work.
52
52
 
53
- Each build gets its own workspace (local git worktree or remote sandbox) and a build-runner that owns its pipeline. Capacity caps concurrency: a work build holds a slot while it runs; an integration node holds one only while it verifies, not while collecting children. See [the integration tree](integration-overview.md).
53
+ Each build gets its own workspace (local git worktree or remote sandbox) and a build-runner that owns its pipeline. Capacity caps the builds running work: a work build holds a slot until it finishes its pipeline (verification and finalize), even while paused or blocked. Once it waits for a merge decision it holds none; if its target moves or its PR conflicts, it waits for a slot ahead of new claims to restack, re-verify or reconcile. It keeps its workspace until it merges or closes, so retained workspaces can exceed `capacity` while running work cannot. An integration node holds a slot only while it verifies, not while collecting children. See [the integration tree](integration-overview.md).
54
54
 
55
55
 
56
56
  ## The log is the source of truth
@@ -70,7 +70,7 @@ Agents report through the typed `ab` CLI (`ab done`, `ab verdict`), not their ou
70
70
 
71
71
  A restart loses nothing. The dispatcher continues each build from its recorded phase, completed boundaries, artifacts and feedback, even in a replacement sandbox. Authority boundaries hold:
72
72
 
73
- - Unanswered escalations stay parked until your operator agent answers.
73
+ - Unanswered phase and policy escalations stay parked until your operator agent answers. A janitor escalation keeps retrying and closes unanswered when an attempt succeeds.
74
74
  - Pending operator commands and actionable work proceed.
75
75
  - A restart never grants permission or resets an exhausted retry budget.
76
76
 
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
 
package/docs/glossary.md CHANGED
@@ -41,7 +41,7 @@ A deterministic check or evidence-judging agent that tests a build against its c
41
41
 
42
42
  ## Escalation
43
43
 
44
- A durable question or failure that parks work until answered with guidance or a retry through the [answer interface](operating.md#answer-and-pause).
44
+ A durable question or failure that parks work until answered with guidance or a retry through the [answer interface](operating.md#answer-and-pause); a janitor escalation instead keeps retrying and closes unanswered when an attempt succeeds.
45
45
 
46
46
  ## Merge
47
47
 
package/docs/operating.md CHANGED
@@ -99,7 +99,7 @@ Existing attention returns immediately, even with a cursor, so looping `wait` do
99
99
  bun ab answer my-build "Keep the public API compatible"
100
100
  ```
101
101
 
102
- An escalation parks work until answered; guidance feeds the next round. `answer` also accepts a bare retry and spec-revision resolutions for when the contract must change; see `bun ab help answer`.
102
+ A phase or policy escalation parks work until answered; guidance feeds the next round. A janitor escalation keeps retrying across dispatcher restarts and closes unanswered when an attempt succeeds; a bare retry only brings the next attempt forward. `answer` also accepts a bare retry and spec-revision resolutions for when the contract must change; see `bun ab help answer`.
103
103
 
104
104
  ```
105
105
  bun ab pause my-build
@@ -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":["…"]}`. |
@@ -268,6 +268,9 @@ expiry. Successor loss and upgrade-failure/rollback attention remain independent
268
268
  `observation` instead of `event`, with run, observedAt, leaseExpiresAt and available
269
269
  identity, plus the usual repo/build/state/cursor fields. It invents no durable
270
270
  sequence or actor. Retain the cursor to avoid repeat reports across invocations.
271
+ A loss can be transient: a holder that stalled past
272
+ `policy.dispatchLeaseTimeoutSeconds` with no successor reclaims its lease on
273
+ waking and returns to `held`.
271
274
  A watch retains sampled owners after authoritative lease release. Once-run teardown
272
275
  stops heartbeat and releases only its own lease; release is best effort because
273
276
  expiry fences ambiguous ownership. A retained sample or failed release cannot
@@ -282,6 +285,7 @@ The default watch reports actionable conditions only:
282
285
  - `integration.verification-failed`: failed node verification, once per prepared cycle, with failed steps, verified head and parent, and guidance to file a repair child targeting the node. Recovery reports only the latest prepared cycle while its head and parent remain current; superseded failures are not backfilled.
283
286
 
284
287
  - `build.janitor-failing`: a build has reached the configured consecutive-failure threshold; a successful janitor attempt clears it.
288
+ - `build.janitor-escalated`: a build's janitor failure episode outlasted `policy.janitorFailureEscalationSeconds` and raised one escalation naming the operation, last error, attempt count and episode start. The janitor keeps retrying; a successful attempt closes the escalation, and a bare retry answer attempts on the next tick.
285
289
  - `dispatcher.forge-persistent`: forge degradation remains after a completed post-reset retry opportunity; successful recovery clears it.
286
290
 
287
291
  - Build `escalation.raised`, `integration.landed`, `node.item-conflicted`, `target.rewritten`, or
@@ -294,7 +298,18 @@ The default watch reports actionable conditions only:
294
298
  - Repository `harvest.escalated`, `harvest.recovery-exhausted`,
295
299
  `dispatcher.config-rejected`, `dispatcher.config-reloaded` with nonempty
296
300
  `restartRequired`, `dispatcher.upgrade-failed`, `dispatcher.runtime-rolled-back`,
297
- `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.
306
+ - Repository `ticket-preparation.resolved` with outcome `abandoned`: automatic
307
+ preparation recovery stopped and left the ticket unchanged. The line names the
308
+ ticket, attempt and recorded reason; the payload's `claimed` says whether the
309
+ claim was confirmed. An unconfirmed claim's provider outcome is unknown, and
310
+ events written before `claimed` existed report the certainty as not recorded.
311
+ Each abandonment reports once as it lands; a fresh watch does not replay
312
+ historical ones, and nothing clears or acknowledges it.
298
313
  - `dispatcher.ticket-source-persistent`: degradation past its advertised
299
314
  reset time, once a tick started at or after reset has completed or failed
300
315
  with the episode still open; crossing reset alone is silent. Without a reset,
@@ -377,12 +392,17 @@ HTTP merge controls retain the wire actions `land` and `hold` with acknowledged
377
392
  requires readiness and survives restacks; hold persists until merge. Repository
378
393
  auto-merge settings are retired; configure ordered `[[merge]]` rules.
379
394
 
380
- Default attention includes `build.janitor-failing` and
395
+ Default attention includes `build.janitor-failing`, `build.janitor-escalated` and
381
396
  `dispatcher.forge-persistent`. Raw `dispatcher.forge-degraded` and
382
397
  `dispatcher.forge-recovered` facts are available through explicit event filters.
383
- Active janitor attention clears on a successful attempt. Repository status
398
+ Active janitor attention and an open janitor escalation clear on a successful
399
+ attempt. Repository status
384
400
  includes forge degradation/reset and available request counts; `dispatcher.forge-persistent` requires a completed retry opportunity past
385
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.
386
406
 
387
407
  ### Node restack request
388
408
 
@@ -568,20 +588,23 @@ permission or retention failures leave deletion pending. Vercel Blob cleanup use
568
588
  the same store identity, token and prefixed pathname as uploads. Missing objects
569
589
  are successful cleanup; provider errors never count as completed deletion.
570
590
 
571
- 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.
572
592
 
573
593
 
574
594
  ### Forge cooldown admission and explicit recovery
575
595
 
576
596
  Hosted repository event appends and atomic artifact deposits validate
577
- `dispatcher.forge-degraded` before any durable mutation. The payload must match
578
- 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
579
599
  (inclusive). Already-expired deadlines are accepted. Invalid or out-of-horizon
580
600
  writes return `400 validation` (the remote adapter exposes `EventValidationError`);
581
601
  the server never clamps or invents a provider reset. Historical decoding has no clock-relative restriction.
582
602
 
583
603
  Build-runner and build-phase grants may POST only the kernel-authored
584
- `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
585
608
  preceding `requireProject` check binds this exception to the exact repository
586
609
  in the delegated claim. A hosted project identifies one repository. Delegates
587
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