axstack 0.59.0 → 0.60.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 (38) hide show
  1. package/docs/ceremony-baseline-20261103.md +96 -0
  2. package/docs/workflows.md +34 -13
  3. package/package.json +1 -1
  4. package/skills/axstack/references/automations.md +4 -3
  5. package/skills/axstack/references/autopilot.md +7 -3
  6. package/skills/axstack/references/candidate-publication.md +19 -3
  7. package/skills/axstack/references/contracts.md +8 -2
  8. package/skills/axstack/references/default-routing.md +21 -2
  9. package/skills/axstack/references/diligence.md +37 -0
  10. package/skills/axstack/references/fleet-dispatch.md +111 -9
  11. package/skills/axstack/references/fleet-route-schema.md +80 -3
  12. package/skills/axstack/references/fleet-verification.md +43 -1
  13. package/skills/axstack/references/lifecycle.md +29 -12
  14. package/skills/axstack/references/pr-chain.md +4 -1
  15. package/skills/axstack/references/role-roster.md +5 -2
  16. package/skills/axstack/references/run-record.md +23 -0
  17. package/skills/axstack/references/t3-runtime.md +48 -10
  18. package/skills/axstack/scripts/default-policy.js +2 -2
  19. package/skills/axstack/scripts/dispatch-plan.js +68 -18
  20. package/skills/axstack/scripts/fleet-route-cli.js +18 -9
  21. package/skills/axstack/scripts/fleet-route-plan.js +138 -0
  22. package/skills/axstack/scripts/fleet-route.js +6 -2
  23. package/skills/axstack/scripts/hub-usage.js +30 -3
  24. package/skills/axstack-align/SKILL.md +17 -1
  25. package/skills/axstack-audit/SKILL.md +17 -2
  26. package/skills/axstack-cleanup/SKILL.md +13 -4
  27. package/skills/axstack-implement/SKILL.md +59 -13
  28. package/skills/axstack-implement/references/step-back.md +9 -1
  29. package/skills/axstack-review/SKILL.md +8 -3
  30. package/skills/axstack-review/references/candidate-brief.md +3 -1
  31. package/skills/axstack-review/references/review-candidate.md +20 -7
  32. package/skills/axstack-review/references/review-receipt.md +5 -1
  33. package/skills/axstack-spec/SKILL.md +23 -7
  34. package/skills/axstack-watch/SKILL.md +5 -0
  35. package/skills/axstack-watch/references/escalation.md +4 -2
  36. package/skills/axstack-watch/references/proven-verification.md +5 -2
  37. package/skills/axstack-watch/references/readiness.md +20 -8
  38. package/src/instructions.js +6 -4
@@ -0,0 +1,96 @@
1
+ # Ceremony baseline — 2026-11-03
2
+
3
+ CR-2 reporting baseline, built from the 2026-10-29–11-03 thread research and
4
+ 11 recent run records read on axat-vps. This is observational evidence and
5
+ never gates work. Missing measurements stay `unknown`, never zero.
6
+
7
+ ## Sources and selection
8
+
9
+ Private source root: `<axstack-git-common-dir>/axstack/runs/align-ceremony-20261103/evidence/`.
10
+ Research `R` is `research-threads-5d/{report.md,vps-window.json,vps-nonrm.tsv,rm-pr-role.tsv,classify.jq}`.
11
+ The read-only source inventory, full SHA-256 hashes, frozen inputs and extraction
12
+ receipt are in `author-t2/{source-manifest.json,inputs/,baseline-check.json}`.
13
+ Source IDs below identify `progress.md` under each repository's
14
+ `.git/axstack/runs/<run>/`. Hash prefixes identify the frozen source bytes.
15
+
16
+ Selected the 11 most recently modified top-level run records available under
17
+ `/root/dev/*` and `/root/defi/*`; the oldest are dated October 28, supplementing
18
+ the five-day research. Nested author records are excluded to avoid duplication.
19
+ Review-manager PRs are excluded: the 107 PR keys in `R/rm-pr-role.tsv` have no
20
+ intersection with the 11 PRs below. Peer/dependency PRs mentioned in a record
21
+ are excluded too. Separate release PRs owned by the sampled drivers remain.
22
+
23
+ | ID | Repository | Run | SHA-256 prefix | Evidence used |
24
+ | --- | --- | --- | --- | --- |
25
+ | A | axstack | align-ceremony-20261103 | 91543da0c52c | Spec r1–r5; #606 publication; shared multi-PR scope |
26
+ | B | monorepo | 20261102-sentry-full-visibility | dc355065a99c | Review a1–a4 at four heads; #1988 merged; wider spec r1–r2 |
27
+ | C | monorepo | 20261102-def-2899-spec | 3b69089aac91 | Spec drafts r1–r12; no PR |
28
+ | D | monorepo | 20261102-ci-speed-spec | 18f822172f1c | Six completed workers; drafts r1–r2; paused; no PR |
29
+ | E | monorepo | 20261030-def-2848-frame-loop | 39ef13c9eb98 | #1963 review a1 at 2e3e3dac; replacement #1964 |
30
+ | F | monorepo | 20261029-def-2826-implement | f29473236880 | #1950 review a1 cancelled; a2 complete at c61d2160 |
31
+ | G | monorepo | 20261029-def-2826-debug | b50d620bef28 | Explicit no-dispatch diagnostic; no PR |
32
+ | H | monorepo | 20261029-def-2794 | ccf119a912d0 | #1924 reviews a1–a4, including base-update heads |
33
+ | I | monorepo | 20261028-feature-map-refresh | 1b3c9dd241df | #1900 repair and base-update reviews; no complete tally |
34
+ | J | axstack | 20261028-advisory-file-size | cc90b8f1df5d | #576 reviews a1–a4; separate #580 release review |
35
+ | K | axstack | 20261028-readable-spec-format | 27be6bf2da79 | #577 reviews a1–a4; separate #581 release review |
36
+
37
+ ## Per-PR observations
38
+
39
+ A dispatch is one native task or launch, counted once by its identity. A review
40
+ round is one authored-review pass at one head, including passing passes and
41
+ distinct passes at the same head. Spec adviser and diligence receipts are not
42
+ authored-review rounds. Interrupted review fragments do not prove a full pass.
43
+ Spec revisions count distinct attributable drafts including the first; a spec
44
+ shared across PRs stays unallocated without an allocation receipt.
45
+
46
+ These are snapshot observations, not a claim of complete lifetime accounting.
47
+ Known review totals below have individually recorded passes; dispatch totals
48
+ remain `unknown` because complete per-PR native-task inventories are absent.
49
+ Durations require active/wait intervals; elapsed time alone cannot supply them.
50
+ Driver and worker token totals require separate provider receipts and a stated
51
+ cache basis. No sampled PR has those measurements.
52
+
53
+ | PR | Source | Dispatches | Review rounds | Spec revisions | Active time | Wait time | Driver tokens | Worker tokens |
54
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- |
55
+ | [axstack #606](https://github.com/axatbhardwaj/axstack/pull/606) | A | unknown | unknown | unknown | unknown | unknown | unknown | unknown |
56
+ | [monorepo #1988](https://github.com/defi-com/monorepo/pull/1988) | B | unknown | 4 | unknown | unknown | unknown | unknown | unknown |
57
+ | [monorepo #1963](https://github.com/defi-com/monorepo/pull/1963) | E | unknown | 1 | unknown | unknown | unknown | unknown | unknown |
58
+ | [monorepo #1964](https://github.com/defi-com/monorepo/pull/1964) | E | unknown | unknown | unknown | unknown | unknown | unknown | unknown |
59
+ | [monorepo #1950](https://github.com/defi-com/monorepo/pull/1950) | F | unknown | unknown | unknown | unknown | unknown | unknown | unknown |
60
+ | [monorepo #1924](https://github.com/defi-com/monorepo/pull/1924) | H | unknown | 4 | unknown | unknown | unknown | unknown | unknown |
61
+ | [monorepo #1900](https://github.com/defi-com/monorepo/pull/1900) | I | unknown | unknown | unknown | unknown | unknown | unknown | unknown |
62
+ | [axstack #576](https://github.com/axatbhardwaj/axstack/pull/576) | J | unknown | 4 | unknown | unknown | unknown | unknown | unknown |
63
+ | [axstack #580](https://github.com/axatbhardwaj/axstack/pull/580) | J | unknown | 1 | unknown | unknown | unknown | unknown | unknown |
64
+ | [axstack #577](https://github.com/axatbhardwaj/axstack/pull/577) | K | unknown | 4 | unknown | unknown | unknown | unknown | unknown |
65
+ | [axstack #581](https://github.com/axatbhardwaj/axstack/pull/581) | K | unknown | 1 | unknown | unknown | unknown | unknown | unknown |
66
+
67
+ Coverage: review rounds measured for 7/11 PRs (19 passes); each other field
68
+ measured for 0/11 PRs. This is not a total-cost estimate or an average over all
69
+ PRs. #1950 has one completed and one interrupted review, so its total stays
70
+ `unknown`. #1964 carries #1963's approval; it receives no duplicate pass count.
71
+ The two no-PR spec runs and diagnostic run contribute evidence, not invented PRs.
72
+
73
+ ## Research cross-check and unallocated run costs
74
+
75
+ `R/report.md` §§1–2, 7 reports 684 VPS threads; raw data separates 527 manager
76
+ children. `vps-nonrm.tsv` still includes five manager drivers: removing them
77
+ leaves **152 non-manager threads and 23,405 items**. Their title classifications
78
+ are 28 top-level, 49 advisers, 13 escalations, 21 diligence, 9 reviewers,
79
+ 4 authors, 4 verifiers, 3 arena and 21 other subagents. These are observed
80
+ thread/item counts, not dispatch or token totals. A resumed thread can contain
81
+ multiple native tasks; deleted threads cannot be recovered from this list.
82
+
83
+ C and `R/report.md` §2 record 12 spec drafts, 43 observed spec dispatches and
84
+ two UI verifier threads for DEF-2899. D records six completed workers and two
85
+ drafts. G explicitly records no dispatches. Those facts belong to their runs;
86
+ none is silently assigned to a later implementation PR. A's five spec drafts
87
+ also serve a multi-PR delivery, while B's wider spec is separate from PR1.
88
+
89
+ The research's 2h28m DEF-2899 spec loop, roughly six-hour #1988 readiness loop,
90
+ and 69.5-hour fleet build are elapsed windows, with active and wait time both
91
+ `unknown`. The fleet build's deleted children prevent full dispatch recovery.
92
+ iobox was unreachable; other fleet lists were partial or not saved. No fleet
93
+ total, token total, causal speed claim or post-change saving is established.
94
+
95
+ Later audits should compare compatible per-PR cost lines against this file,
96
+ report measurement coverage separately, and keep unknowns visible.
package/docs/workflows.md CHANGED
@@ -59,8 +59,10 @@ Direct routes need no spec ceremony:
59
59
  - `axstack-debug` builds a red loop, diagnoses to root cause, escalates hard
60
60
  bugs through adviser-directed investigator fan-out, and hands off a
61
61
  classified repair without landing a change.
62
- - `axstack-cleanup` runs inline in the driver after accepted worker, Task, or
63
- Run completion, or against an explicitly bounded backlog. It dispatches no
62
+ - `axstack-cleanup` runs inline in the driver at
63
+ [run checkpoints](../skills/axstack-cleanup/SKILL.md#run-checkpoints) to batch eligible
64
+ cleanup, including reviewer worktree retirement, preserving and reading back evidence
65
+ first with every existing per-resource guard, or against an explicitly bounded backlog. It dispatches no
64
66
  cleanup worker and preserves protected or uncertain resources.
65
67
  - Peer review uses the linked issue, PR description, author comments and repository
66
68
  rules as context for code and design defects, not a contract. Accept the author's
@@ -206,8 +208,10 @@ Top-level drivers use `t3_thread_launch` only after an explicit user request.
206
208
  Preserve existing accepted authorization within its exact scope.
207
209
  Use `t3_thread_launch` as a rare author fallback only when
208
210
  worktree isolation is unavailable and record each use in the run record.
209
- Reviewers and investigators receive driver-made disposable detached checkouts pinned to candidate
210
- and base. Repairs return
211
+ Authored reviewers use native `isolation:"worktree"`, enter their own worktree, and verify
212
+ its path differs from the driver's before checking out and verifying the exact
213
+ candidate SHA and base there. Peer reviewers and investigators receive driver-made disposable detached
214
+ checkouts pinned to candidate and base. Repairs return
211
215
  to the same author and worktree. The current T3 driver owns coordination and
212
216
  forge mutations and never writes an author's tracked files.
213
217
 
@@ -282,9 +286,10 @@ for explicit ownership transfer.
282
286
  the named keepers or vacuity/obsolescence evidence for removals.
283
287
  - `axstack-review` gives peer PRs two isolated same-brief reviewers on the first
284
288
  review and one reviewer on follow-ups; authored PRs receive one eligible
285
- cross-family/preset-mapped reviewer. Every reviewer runs in
286
- a separate detached checkout, with private evidence preserved before
287
- removal. First peer reviews and authored reviews cover security,
289
+ cross-family/preset-mapped reviewer. Peer reviewers run in a separate detached
290
+ checkout, with private evidence preserved before removal. Authored reviewers use native
291
+ `isolation:"worktree"` and verify the pinned candidate and base inside their
292
+ own worktrees, with private evidence preserved before removal. First peer reviews and authored reviews cover security,
288
293
  correctness, integration, requirements, design, and simplicity; peer follow-ups
289
294
  check prior blockers, author replies and the delta, with a full-diff fallback
290
295
  when the last-reviewed head or delta cannot be recovered. Report-only
@@ -400,12 +405,24 @@ admin permission. A `defi-com` repository, an extra writer, or an incomplete or
400
405
  failed readback classes as work (`team`).
401
406
  Every other repository is work (`team`).
402
407
 
408
+ Follow the [applicable diligence gate](../skills/axstack/references/diligence.md#applicable-diligence-gate).
409
+ For eligible small non-risk-path work (one PR and a snapshotted small-change
410
+ intent), the same cross-provider reviewer supplies `APPROVE` plus `Scope: PASS`
411
+ at the exact head and base. Substantial work, spec checkpoints, risk paths and
412
+ release reconciliation retain separate diligence. Review-depth risk includes
413
+ watch's merge-risk list, merge/dispatch/authority rule changes and driver- or
414
+ reviewer-flagged security, data-loss or major-design concerns; this leaves the
415
+ merge hold list unchanged. `Scope: FINDINGS` or `Scope: UNKNOWN` blocks merge-ready.
416
+ Before publication the driver reads back the author evidence folder (named
417
+ red/green logs, counts, SHAs and paths); combined review follows remote readback.
403
418
  Solo approval is current-head-and-base cross-provider authored-review `APPROVE`
404
- plus diligence `PASS`. The reviewer differs from every receipt-recorded provider
419
+ plus applicable diligence evidence (combined `Scope: PASS` or separate `PASS`).
420
+ The reviewer differs from every receipt-recorded provider
405
421
  that authored or repaired `merge-base..head` commits. Team approval also needs a
406
422
  counted non-author collaborator review at the current head. Axstack automation
407
423
  votes never count. Unknown or mixed provenance and manually authored PRs need a
408
- merge card. New heads need fresh authored review, diligence, and CI. A collaborator
424
+ merge card. Every head or base change needs fresh authored review, applicable
425
+ diligence evidence, and CI. A collaborator
409
426
  approval carries over only across an unchanged stable patch-id rebase, base-update
410
427
  merge or base-only retarget, recorded
411
428
  for both heads, while the forge still counts it.
@@ -423,7 +440,10 @@ Proven verification is required for every own PR. Use the authored receipt:
423
440
  - Verification requires `Verdict: APPROVE`, `Coverage: COMPLETE`, and
424
441
  `Escalate to user: no`.
425
442
  - Verification requires a `Safety fact` about the change that is not `unproven`.
426
- - Verification requires diligence `PASS` at the exact head and base.
443
+ - For eligible small non-risk-path work, `APPROVE` and `Scope: PASS` from the
444
+ same cross-provider reviewer at the exact head and base satisfy verification's
445
+ diligence gate. Otherwise verification requires separate diligence `PASS`
446
+ at the exact head and base. Follow the [applicable diligence gate](../skills/axstack/references/diligence.md#applicable-diligence-gate).
427
447
  - Verification requires `Final-head check: <command> -> <log path>` for a check
428
448
  the reviewer ran at the final head, with its log kept in the run's evidence folder.
429
449
  - Each acceptance check requires passing evidence from the ticket or spec
@@ -455,7 +475,7 @@ reissuing only if a decision is still needed.
455
475
  The user's reply in the driver thread or on the forge clears only that
456
476
  verification cause. Record `user-accepted unproven: <item>`, never as a pass.
457
477
  Treat the accepted item as settled for this head and base and merge when every
458
- other gate and hold permits it. A reply never waives `APPROVE`, diligence `PASS`
478
+ other gate and hold permits it. A reply never waives `APPROVE`, the applicable diligence gate
459
479
  or green CI. A new head or base voids the acceptance.
460
480
  Settle an `Escalate to user` for the user-accepted verification cause at its
461
481
  accepted head and base while other escalation holds still apply.
@@ -540,8 +560,9 @@ A quoted format inside a bullet never counts as the declaration.
540
560
  `Auto-merge: off` for a run or PR makes the merge card wait, and it waits for the user.
541
561
 
542
562
  Post a merge card for every nonqualifying approval, base, verification, or off case.
543
- Bind it to the PR head and base SHA; list CI, authored review and diligence at
544
- those SHAs, counted collaborator approvals and bot votes with each vote's SHA
563
+ Bind it to the PR head and base SHA; list CI, authored review and applicable
564
+ diligence evidence (combined Scope or separate diligence) at those SHAs, counted
565
+ collaborator approvals and bot votes with each vote's SHA
545
566
  and stale flag, and the causes holding this merge.
546
567
  A card that needs the user's decision (work promotion or work deploying/unknown base,
547
568
  `Auto-merge: off`, provenance, or an unclosable verification gap) is a decision
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axstack",
3
- "version": "0.59.0",
3
+ "version": "0.60.0",
4
4
  "description": "Axstack installer and setup CLI: installs owned chat skills and role data, configures supported harness settings, and checks T3 Code capabilities.",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -48,12 +48,13 @@ The full pass records in Watermarks `Quiet gate:` as the sorted list and
48
48
  The sections below govern full passes; a quiet exit bypasses their teardown
49
49
  except the guarded pass-end self-settle.
50
50
 
51
- Configure the lane thread via `t3_thread_configure` with the `axstack-owner`
52
- binding and verify its read-back. Then `schedule_task` uses the packaged prompt,
51
+ The lane thread must use the recorded `axstack-owner` binding and verify its
52
+ readback through `t3_thread_read`. Then `schedule_task` uses the packaged prompt,
53
53
  hourly with `everyMs:3600000`, `bindToCurrentThread:false`, and a stable `clientRequestId`.
54
54
  Record the schedule ID, project, lane binding and pass thread/run identities.
55
- Each pass compares its own `t3_thread_configuration` with the recorded binding
55
+ Each pass compares native task status and thread reads for settings readback with the recorded binding
56
56
  after any owner-only instance update under [Provider bindings](t3-runtime.md#preflight-and-binding), before admission.
57
+ Unreturned effective fields must stay unknown and hold admission when required.
57
58
  A binding mismatch holds admission.
58
59
  Read [T3 runtime](t3-runtime.md) for capability, provider/effort, prompt, dispatch,
59
60
  completion and cleanup boundaries; a manager never checks out a PR branch in
@@ -22,9 +22,13 @@ holds the potentially affected work until its boundary is resolved. For example,
22
22
  tracker access, adviser or arena-seat availability, CI-wait timeout, readiness
23
23
  UNKNOWN, dismissed approval, wake or cleanup uncertainty, single-provider routing,
24
24
  an existing tag or version, and failed publish hold the work that needs them.
25
- Diligence FINDINGS during implement
26
- follow its §6 repair route; at spec, tickets, or release preparation the driver
27
- resolves them before advancing, and only a recorded hold pauses autopilot.
25
+ Follow the [applicable diligence gate](diligence.md#applicable-diligence-gate):
26
+ eligible small non-risk-path PRs use combined `Scope: PASS` with cross-provider
27
+ `APPROVE`; all other work keeps separate diligence.
28
+ Diligence FINDINGS during implement follow its §6 repair route; at spec, tickets,
29
+ or release preparation the driver resolves them before advancing, and only a
30
+ recorded hold pauses autopilot. Combined `Scope: FINDINGS` follows the same
31
+ implement repair route; `Scope: UNKNOWN` holds merge-ready.
28
32
 
29
33
  Denied tool calls, including calls denied by automatic approval review, hold
30
34
  only that action and its dependants. Never retry, reroute, or delegate around
@@ -5,10 +5,18 @@ receipt and stops without pushing. Under recorded PR-scoped publication authorit
5
5
  the owner reconciles author receipt with actual local candidate SHA/base. The owner
6
6
  does not edit the candidate; code changes return to its author.
7
7
 
8
- Before publication, dispatch `axstack-diligence` under
8
+ Before publication, follow the [applicable diligence gate](diligence.md#applicable-diligence-gate).
9
+ For combined review, before publication the driver verifies the author receipt
10
+ against its evidence folder: named red/green logs exist, and counts, SHAs and
11
+ paths match. Record the readback and eligibility at the local candidate head
12
+ and base; missing or mismatched evidence holds publication and returns to the
13
+ same author. The combined cross-provider review follows publication at the
14
+ confirmed remote head and pinned base; driver readback never supplies `Scope: PASS`.
15
+ For all other work, before publication dispatch `axstack-diligence` under
9
16
  [Diligence](diligence.md) to check the author receipt against its evidence
10
17
  folder: red/green logs exist, and counts, SHAs, and paths match. Resolve
11
- `FINDINGS` with the same author before publishing.
18
+ `FINDINGS` with the same author before publishing. A diligence `UNKNOWN` or
19
+ missing/stale receipt holds publication.
12
20
 
13
21
  Follow [PR chains](pr-chain.md) for recorded membership and base-bound evidence.
14
22
  For ordinary PRs, use `git push origin HEAD:refs/heads/<owned branch>` and
@@ -67,15 +75,23 @@ step, subject to recorded release authority and human npm stage approval.
67
75
 
68
76
  ## Immutable checkout shape
69
77
 
78
+ Authored reviewers must use async `delegate_task` with native `isolation:"worktree"`.
79
+ Authored reviewers must `cd` into their own worktree and verify its resolved path differs from the driver's before inspecting the pinned revision.
80
+ Authored reviewers must check out and verify the exact candidate SHA and pinned base inside that worktree.
81
+ Use `git checkout --detach <candidate-sha>`, then verify `git rev-parse HEAD` and
82
+ `git rev-parse <base-sha>^{commit}` equal the pinned SHAs before inspection.
83
+ For peer reviewers and release checks:
70
84
  The driver creates the immutable review checkout with `git worktree add --detach <run>/checkouts/<key> <sha>` at the confirmed candidate SHA and pinned base.
71
85
  Follow [T3 runtime](t3-runtime.md) for async `delegate_task`.
72
86
  Bind disposable checkout to exact attempt identity.
73
87
  Use the existing repository; never register a duplicate or use a movable branch.
74
- Delegated reviewers must `cd` into their separate detached checkout; tracked candidate files remain read-only and outputs go to their private evidence folder.
88
+ Delegated reviewers must `cd` into their assigned workspace (authored: native worktree; peer: separate detached checkout); tracked candidate files remain read-only and outputs go to their private evidence folder.
75
89
  Snapshot driver HEAD and full status (including untracked) before dispatch.
76
90
  After each delegated completion, compare the driver HEAD and `git status --porcelain` with their pre-dispatch values; any change holds advancement.
77
91
  Peer reviewers have separate checkouts/evidence without first-pass cross-read.
78
92
  Later review gets a fresh checkout.
93
+ Before removing an authored reviewer checkout, read back its report and supporting evidence, then use exact `git worktree remove <recorded-native-worktree-path>` without force.
94
+ For peer reviewers and release checks:
79
95
  Before removing a reviewer checkout, read back its report and supporting evidence, then use exact `git worktree remove <run>/checkouts/<key>` without force.
80
96
  Verify absence under [Workspace hygiene](workspace-hygiene.md); retain the author
81
97
  candidate until merge/closure. Release checks use same driver-made SHA-pinned detached-checkout procedure.
@@ -93,6 +93,10 @@ discriminating check. A bare "stuck" claim needs pointers to two failed attempts
93
93
  setup slips and new user requirements do not count. Each use starts a fresh
94
94
  session that never reuses an adviser or candidate context. Escalation never
95
95
  resets existing holds or attempt budgets.
96
+ For Align and Spec, when existing triggers apply, run `axstack-escalation-fable`
97
+ only after ordinary high and medium findings settle. Reuse the Fable receipt
98
+ while the reviewed meaning holds. If Fable's own findings change meaning,
99
+ a fresh Fable session reviews the revised result.
96
100
  At an advised hold or step-back that is not high-stakes, an adviser split goes
97
101
  to the user with no reconciliation and no Fable.
98
102
 
@@ -113,8 +117,10 @@ merge cards, a blocked operation after bounded recovery, a scoped no-test-first
113
117
  decision, the round-4 step-back hold, major-design urgent escalation in authored
114
118
  or codebase review, and authored `Escalate to user` concerns about security,
115
119
  permanent on-chain state changes or an architectural change in approach.
116
- Diligence `UNKNOWN` and a `Learning` contradiction remain driver dispositions,
117
- advised only if raised to the user as a hold.
120
+ Follow the [applicable diligence gate](diligence.md#applicable-diligence-gate).
121
+ Diligence `UNKNOWN`, combined `Scope: UNKNOWN` and a `Learning` contradiction
122
+ remain driver dispositions, advised only if raised to the user as a hold.
123
+ A disposition never substitutes for required diligence `PASS` or combined `Scope: PASS`.
118
124
 
119
125
  Never advise spec approval, npm stage approval or collaborator approval.
120
126
  Never advise access or credentials.
@@ -47,8 +47,27 @@ A successful Codex response containing only a seven-day primary window (secondar
47
47
  absent/null) is authoritative single-window telemetry: the adapter explicitly marks
48
48
  session n/a. It does not synthesize session capacity. A plain incomplete snapshot
49
49
  without this provenance still holds; weekly is always required. An account needs
50
- remaining quota in every applicable window. Null or absent reset timing is valid for
51
- Claude session/weekly/scoped Opus and Codex windows. The adapter omits the missing
50
+ remaining quota in every applicable window.
51
+
52
+ Claude session n/a requires an explicit `five_hour: null`, valid `seven_day` usage
53
+ and future weekly reset, and exactly one active, unscoped `weekly_all` row in
54
+ `limits` with matching percentage and identical reset string. Every limits row
55
+ must be validated weekly metadata: only `weekly_all` and model-scoped
56
+ `weekly_scoped` rows with valid percentages, future weekly resets and boolean
57
+ `is_active` are supported. Scoped rows require a named model and null surface.
58
+ Any session row contradicts n/a, even when `is_active: false`; that flag never
59
+ hides a present session or scoped weekly usage. Unknown/malformed limits,
60
+ non-null legacy `seven_day_opus`/`seven_day_sonnet`, error fields, missing fields
61
+ or null without corroboration hold. No plan name, bootstrap outcome, zero usage
62
+ or fabricated reset establishes n/a. All accounts remain counted; supported scoped
63
+ rows remain in telemetry with existing Opus eligibility checks. Source/account
64
+ freshness and catalog guards still apply.
65
+ This narrowly supported response shape does not establish universal null semantics
66
+ or an account's plan/verification status. Model scope names retain their existing
67
+ meaning; no Fable-to-Opus mapping is inferred.
68
+
69
+ For ordinary Claude session/weekly/scoped Opus and Codex windows, null or absent
70
+ reset timing is valid. The adapter omits the missing
52
71
  reset; it never invents a timestamp. Unknown reset timing alone does **not** mean
53
72
  unused or not started: the reported used percentage still governs remaining quota,
54
73
  same-account eligibility and the primary-pool reserve, including exhaustion at 100% used.
@@ -3,6 +3,43 @@
3
3
  Never dispatch diligence for peer review. Its code/design-only blocking bar
4
4
  and bounded follow-ups are defined in [Peer mode](../../axstack-review/SKILL.md#peer-mode-colleague-pr).
5
5
 
6
+ ## Applicable diligence gate
7
+
8
+ Use combined review only for a snapshotted small-change intent, one PR and a
9
+ non-risk-path classification. The driver decides eligibility for combined review.
10
+ The combined reviewer rechecks eligibility against the diff and review-depth risk.
11
+ A same-provider reviewer under single-provider presets makes combined review
12
+ ineligible; use separate diligence while retaining the configured review route.
13
+ The combined reviewer uses a provider that differs
14
+ from every author and repair provider. Keep the authored mode's mapped reviewer,
15
+ non-author/non-owner session independence and checkout rules.
16
+ Review-depth risk includes the [merge-risk list](../../axstack-watch/references/readiness.md),
17
+ changes to merge, dispatch or authority rules, and anything the driver or
18
+ reviewer marks as a security, data-loss or major-design concern.
19
+ These additions affect review depth only; they leave merge authority unchanged.
20
+ Separate diligence is required for substantial work, spec checkpoints, risk
21
+ paths and release reconciliation. Unknown eligibility holds the combined route;
22
+ use separate diligence pending classification.
23
+
24
+ The combined reviewer performs every applicable diligence check: scope against
25
+ intent for dropped, added or softened obligations, author evidence and red/green
26
+ logs, and PR body and commits against the diff for claims, counts, SHAs and paths.
27
+ Apply all checks and the finding rubric below, including evidence-integrity and
28
+ full-suite failure handling; this replaces a dispatch, not diligence coverage.
29
+ The combined reviewer returns `Scope: PASS|FINDINGS|UNKNOWN` bound to the exact
30
+ head and base, with observed evidence, findings and limitations in the authored
31
+ review receipt. The same reviewer returns the authored verdict and Scope status.
32
+ `APPROVE` plus `Scope: PASS` satisfies the applicable diligence gate only for
33
+ eligible work; otherwise require separate diligence `PASS` with authored approval.
34
+ `Scope: FINDINGS` returns to the same author in the same round and blocks
35
+ merge-ready. `Scope: UNKNOWN` holds merge-ready with the reason recorded for
36
+ driver disposition; a disposition never converts unknown evidence into a pass.
37
+ Every head or base change invalidates the combined receipt and requires fresh
38
+ review and Scope evidence, including unchanged-head base retargets.
39
+ A missing or stale Scope receipt never satisfies this gate.
40
+
41
+ ## Separate diligence and shared checks
42
+
6
43
  Read the [T3 runtime boundary](t3-runtime.md) before dispatch.
7
44
  Dispatch `axstack-diligence` with async `delegate_task` in the driver worktree,
8
45
  using a pinned brief and private evidence paths. Explicit non-repository
@@ -1,4 +1,107 @@
1
- # Fleet nonwriter dispatch and receipts (C3a)
1
+ # Whole-task intake routing and fleet receipts
2
+
3
+ ## Intake boundary (CR-3)
4
+
5
+ Route only new user-started tasks at intake before the first worker dispatch.
6
+ Scheduled work, status requests and follow-up work must stay local.
7
+ The driver must honor an explicit named host (pilot) as the user's placement request.
8
+ The driver must use the routed marker to prevent second routing and mid-task hand-off.
9
+ Never require per-dispatch routing inside a task; all authors, reviewers and
10
+ advisers run locally on its chosen host. C3a below remains an optional legacy
11
+ nonwriter contract, pending a separate CR-8 retirement proposal. C3b stays disabled.
12
+
13
+ `intakeRouting` must gate only the automatic decision, with missing meaning false.
14
+ An explicit named host (pilot) runs with the switch off under the user's
15
+ explicit request and needs no existing support record.
16
+ An explicit named host (pilot) ignores `intakeSupport`, including malformed
17
+ values; all other pre-launch, staffing and sole-driver checks still apply.
18
+ From a successful named-host pilot outcome, the driver must write a support
19
+ record for the launching host and provider in `fleet-routing.json`, with
20
+ `supported:true` and evidence.
21
+ On pilot failure, the driver must remove the named destination host from the
22
+ pool list and write no support record.
23
+ For unnamed automatic hand-offs, read `intakeSupport`: missing = unsupported,
24
+ stay local and record `routing unsupported`. A standing grant is usable only when the
25
+ active T3 runtime accepts it as the user's explicit request for this one thread.
26
+ Neither this contract nor a helper grants that authority.
27
+
28
+ ## Observe and plan once
29
+
30
+ 1. Record the exact task text, scope identity and content (inline or a
31
+ destination-readable ref), authority, grant citation, origin environment,
32
+ thread ID/title and a task-unique launch key. Record `routed:false` only at
33
+ the original intake. A received routed task preserves `routed:true`.
34
+ For an unknown named host, report `routing unknown host` and the supplied
35
+ name to the user, then stay local with staffing checks. An unknown name is
36
+ never replaced with another destination silently.
37
+ 2. Save native environment links, destination environment/project reads,
38
+ fully paginated project lists and exact destination catalog bytes. The
39
+ driver must clone a missing repo through T3 and a failed clone makes the
40
+ host ineligible. Continue to the next host, else stay local. Refresh the
41
+ saved reads after cloning; an attempted clone is never proof of a project.
42
+ 3. Require reachability, the correct repository project and worktree isolation.
43
+ Require the pinned driver model, a local author and a different-provider
44
+ reviewer, plus advisers when needed. Collect bounded `fleet-sample` telemetry and
45
+ current assignment inventory into the facts directory described in
46
+ [the schema](fleet-route-schema.md#whole-task-intake-plan).
47
+ 4. Run one `fleet-route.js plan --facts <facts-dir> --now <epoch-ms> --config
48
+ <reviewed-config> --config-digest <run-pin> --json`. It combines recommendation
49
+ and binding evidence. Exclusions, unknown load and local staffing remain
50
+ explicit; the helper performs no native calls, cloning or dispatch.
51
+ 5. For a remote selection, use `dispatch-plan --kind launch` with that saved
52
+ plan as `--recommendation`, the original `--fleet-input`, the same `--now`
53
+ and digest, `--role axstack-owner` (or the accepted driver role at the same
54
+ exact pins), role snapshot and selected destination catalog. Copy only
55
+ native arguments: environmentId/projectId, modelSelection, runtimeMode,
56
+ delegatedFrom (including title), clientRequestId, title and message. Keep
57
+ `inputs`, terms and fleetBinding as evidence, never native arguments.
58
+ Launch only under the cited explicit user request or accepted standing
59
+ intake grant. Verify the returned thread using `dispatch-plan --verify`
60
+ with native thread reads; unreturned settings or run-start evidence hold.
61
+
62
+ Skip collection for non-intake, already-routed or disabled automatic decisions once
63
+ local staffing is proven. If plan is invoked it still validates the full supplied
64
+ facts. An exit-1 input/config error before any launch means stay local only with
65
+ independent local staffing proof; otherwise hold. Report the helper error, never
66
+ infer a route or silently continue without staffing.
67
+
68
+ ## Acceptance, ownership and outcomes
69
+
70
+ The origin must remain the owner and owns the task until the destination accepts.
71
+ The destination first run must check only acceptance and end with exactly
72
+ `AXSTACK-ACCEPT` or `AXSTACK-HANDBACK <reason>`. It checks scope/authority,
73
+ readable inputs and local staffing (author, different-provider reviewer and
74
+ advisers if needed), then ends without implementation and awaits `proceed`.
75
+ The origin waits on that exact first run with `t3_thread_wait`, reads its full
76
+ untruncated final response and checks exactly one marker. A quoted marker,
77
+ both markers or multiple markers is ambiguous and holds.
78
+
79
+ Only after `AXSTACK-ACCEPT`, record the destination link, send one `proceed`
80
+ with a stable `clientRequestId` and stop origin execution. Preserve this send's
81
+ receipt and run ID; the destination becomes the sole driver. Both acceptance
82
+ and proceed waits must follow the wait tool `next` and hold while active or
83
+ unconfirmed. Never infer completion from a timeout. Once proceed is confirmed,
84
+ the origin ends; ongoing implementation belongs only to the destination thread.
85
+
86
+ With no launch call because of unsupported runtime, no eligible host or
87
+ pre-launch failure, the origin must stay local. After `AXSTACK-HANDBACK` the
88
+ origin must continue locally. Hand-back is terminal for routing: keep the
89
+ routed marker and do not try another destination. Every local stay/continue
90
+ checks staffing too; a missing author or different-provider reviewer holds.
91
+
92
+ On error or a lost launch reply, the origin must retry once with the same
93
+ `clientRequestId`. The native launch tool documents this retry as safe; the
94
+ cross-host pilot must verify it before enabling automatic routing. After that
95
+ retry the origin must search the destination by launch key using fully
96
+ paginated `t3_thread_list` with `includeSubagents:true`. For one verified match
97
+ the origin must wait for its first run. The origin must hold for multiple
98
+ matches, incomplete listing, readback mismatch, a run that never starts or a
99
+ silent first run without exactly one marker. Zero matches after a launch call,
100
+ an uncertain reply or any unresolved identity also holds. Never start a second
101
+ driver while the first may exist. Reconcile the exact original attempt before
102
+ any further execution; no rerouting, replacement driver or model substitution.
103
+
104
+ ## Legacy nonwriter dispatch and receipts (C3a)
2
105
 
3
106
  This contract joins C1 recommendation and C2 sampling to native T3 execution.
4
107
  It does not deploy a routing switch. Read [T3 runtime](t3-runtime.md) and the
@@ -13,7 +116,7 @@ null-identity proof and owned folders replace only the repository/checkout terms
13
116
  All native execution authority and independent exact-byte review remain required.
14
117
  Engineering/code review and remote routes retain their existing rules.
15
118
 
16
- ## Observe before selecting
119
+ ## Observe before selecting (legacy C3a only)
17
120
 
18
121
  1. Record installed Axstack and both T3 versions, directed origin/target link,
19
122
  explicit time, exact reviewed config bytes/digest and installed role snapshot.
@@ -29,13 +132,12 @@ Engineering/code review and remote routes retain their existing rules.
29
132
  Discovery is not proof that the provider executes. Unknown catalog, project,
30
133
  mode, options, access, link or required session excludes that destination.
31
134
  3. Keep the model/effort/provider pins from the run; do not re-resolve to another
32
- model when quota/auth/timeout fails. Missing native `t3_thread_configuration`
33
- means unavailable effective fields stay unknown. Catalog runtimeModes advertise
34
- provider restrictions; they do not prove effective access. Native task/thread facts supply
135
+ model when quota/auth/timeout fails. Unreturned effective fields must stay unknown. Catalog runtimeModes advertise
136
+ provider restrictions; they do not prove effective access. Settings readback must use native task status and thread reads, preserving
35
137
  only the fields actually returned. A worker assertion is not native readback.
36
138
  4. Normalize current driver assignments and the pending batch as below. Sample
37
- telemetry with C2's bounded command, then recompute C1 immediately before each
38
- dispatch using the collector time and current exclusions. Preserve the full
139
+ telemetry with C2's bounded command, then recompute C1 for an explicitly
140
+ scoped legacy route using the collector time and current exclusions. Preserve the full
39
141
  recommendation JSON bytes and complete replayable input. Unknown inventory
40
142
  is unknown, not a claimed zero; pending lower bounds are labelled separately.
41
143
 
@@ -215,8 +317,8 @@ existing run-ID path. Saved inputs cannot authenticate their own provenance.
215
317
  `inspectFleetReceipt(receipt,{attempt,recommendation,recommendationJSON,now})`
216
318
  returns terms, never authority. Existing dispatch-plan --verify can additionally
217
319
  consume fleetAttempt/fleetReceipt in its saved envelope; save --out to retain
218
- full receiptTerms. Legacy configuration-only MATCH checks supplied configuration,
219
- not native completion. Stable receipt-* / destination-* terms identify the exact
320
+ full receiptTerms. Settings-only MATCH checks supplied native thread/task reads
321
+ and child identity, never terminal completion. Stable receipt-* / destination-* terms identify the exact
220
322
  hold and evidence; unknown means incomplete. A passing receipt is no merge grant.
221
323
 
222
324
  ## Retrieval and retirement