axstack 0.59.1 → 0.60.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) 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/diligence.md +37 -0
  9. package/skills/axstack/references/fleet-dispatch.md +111 -9
  10. package/skills/axstack/references/fleet-route-schema.md +80 -3
  11. package/skills/axstack/references/fleet-verification.md +43 -1
  12. package/skills/axstack/references/lifecycle.md +29 -12
  13. package/skills/axstack/references/pr-chain.md +4 -1
  14. package/skills/axstack/references/role-roster.md +5 -2
  15. package/skills/axstack/references/run-record.md +23 -0
  16. package/skills/axstack/references/t3-runtime.md +48 -10
  17. package/skills/axstack/scripts/dispatch-plan.js +68 -18
  18. package/skills/axstack/scripts/fleet-route-cli.js +18 -9
  19. package/skills/axstack/scripts/fleet-route-plan.js +138 -0
  20. package/skills/axstack/scripts/fleet-route.js +6 -2
  21. package/skills/axstack-align/SKILL.md +17 -1
  22. package/skills/axstack-audit/SKILL.md +17 -2
  23. package/skills/axstack-cleanup/SKILL.md +13 -4
  24. package/skills/axstack-implement/SKILL.md +59 -13
  25. package/skills/axstack-implement/references/step-back.md +9 -1
  26. package/skills/axstack-review/SKILL.md +8 -3
  27. package/skills/axstack-review/references/candidate-brief.md +3 -1
  28. package/skills/axstack-review/references/review-candidate.md +20 -7
  29. package/skills/axstack-review/references/review-receipt.md +5 -1
  30. package/skills/axstack-spec/SKILL.md +23 -7
  31. package/skills/axstack-watch/SKILL.md +5 -0
  32. package/skills/axstack-watch/references/escalation.md +4 -2
  33. package/skills/axstack-watch/references/proven-verification.md +5 -2
  34. package/skills/axstack-watch/references/readiness.md +20 -8
  35. package/src/instructions.js +12 -11
@@ -0,0 +1,138 @@
1
+ // Whole-task placement over saved facts only. No I/O, dispatch or authority grant.
2
+ import { recommend, parseFleetConfig } from './fleet-route.js';
3
+ import { inspectDestination } from './fleet-destination.js';
4
+ import { canonical, record, text } from './fleet-config.js';
5
+
6
+ const hash = (value) => new Bun.CryptoHasher('sha256').update(value).digest('hex');
7
+ const term = (code, pass, evidence) => ({ code,
8
+ state: pass ? 'pass' : evidence == null ? 'unknown' : 'fail', evidence: evidence ?? null });
9
+
10
+ function modelIn(catalog, pin, serverVersion) {
11
+ const providers = Array.isArray(catalog?.providers)
12
+ ? catalog.providers.filter((p) => p?.providerInstanceId === pin?.providerInstanceId) : [];
13
+ const p = providers?.length === 1 ? providers[0] : null;
14
+ const models = Array.isArray(p?.models) ? p.models.filter((m) => m?.id === pin?.model) : [];
15
+ const unrestricted = p?.runtimeModes === undefined && serverVersion === '0.1.5'
16
+ && ['codex', 'claudeAgent'].includes(p?.driverKind);
17
+ return catalog?.runtimeMode === 'full-access' && p?.canRunChildTask === true && text(p.driverKind)
18
+ && Array.isArray(p.constraints) && p.constraints.length === 0
19
+ && (unrestricted || (Array.isArray(p.runtimeModes) && p.runtimeModes.includes('full-access')))
20
+ && models.length === 1 ? { provider: p, model: models[0] } : null;
21
+ }
22
+
23
+ function staffingTerms(input, environmentId) {
24
+ const o = input.nativeDestinations?.[environmentId];
25
+ let catalog;
26
+ try { catalog = JSON.parse(o?.capabilities?.valueText); } catch { /* unknown catalog */ }
27
+ const resolve = (pin) => modelIn(catalog, pin, o?.environment?.value?.serverVersion);
28
+ const driver = resolve(input.request);
29
+ const author = resolve(input.staffing?.author);
30
+ const reviewer = resolve(input.staffing?.reviewer);
31
+ const options = input.request.options;
32
+ const supportedOptions = driver && Object.entries(options).every(([id, value]) => {
33
+ const definitions = Array.isArray(driver.model.options) ? driver.model.options.filter((v) => v?.id === id) : [];
34
+ const d = definitions?.length === 1 ? definitions[0] : null;
35
+ const values = d?.values ?? (Array.isArray(d?.options) ? d.options.map((v) => v?.id) : []);
36
+ return Array.isArray(values) && values.includes(value);
37
+ });
38
+ return [term('driver-model', !!driver && supportedOptions && input.request.runtimeMode === 'full-access', catalog),
39
+ term('local-staffing', !!author && !!reviewer && author.provider.driverKind !== reviewer.provider.driverKind
40
+ && Array.isArray(input.staffing?.advisers) && input.staffing.advisers.every(resolve),
41
+ { staffing: input.staffing ?? null, catalog: catalog ?? null })];
42
+ }
43
+
44
+ export function planIntake(input, now) {
45
+ const config = parseFleetConfig(input.configText, input.configDigest);
46
+ if (input.request?.role !== 'driver') throw new Error('driver-role-required');
47
+ const initial = recommend(input, now); // Validate and rank the unchanged supplied facts.
48
+ const terms = initial.excluded.map((e) => ({ code: 'route-eligibility',
49
+ state: e.reasons.some((r) => /unproven|missing/.test(r)) ? 'unknown' : 'fail',
50
+ environmentId: e.environmentId, evidence: e }));
51
+ const intake = input.intake ?? {};
52
+ const local = () => {
53
+ const localTerms = staffingTerms(input, input.origin.environmentId);
54
+ terms.push(...localTerms.map((t) => ({ ...t, environmentId: input.origin.environmentId })));
55
+ return localTerms.every((t) => t.state === 'pass');
56
+ };
57
+ const result = (disposition, reason, selected = null, extra = {}) => structuredClone({
58
+ schemaVersion: 1, kind: 'intake-plan', configDigest: input.configDigest, evaluatedAt: now,
59
+ request: input.request, disposition, reason, selected, terms,
60
+ counts: Object.fromEntries(['pass', 'fail', 'unknown', 'n/a'].map((s) => [s, terms.filter((t) => t.state === s).length])),
61
+ ...extra,
62
+ });
63
+ const stay = (reason) => local() ? result('stay', reason) : result('hold', 'local-staffing-unproven');
64
+ if (intake.routed === true) return stay('already-routed');
65
+ if (intake.kind !== 'new-task' || intake.willDispatch !== true) return stay('not-intake');
66
+ const named = intake.namedHost;
67
+ if (named === 'here' || config.hosts.some((h) => h.id === named && h.environmentId === input.origin.environmentId)) return stay('named-local');
68
+ if (named != null && !config.hosts.some((h) => h.id === named)) {
69
+ terms.push(term('named-host', false, named));
70
+ return stay('routing unknown host');
71
+ }
72
+ if (named == null && config.intakeRouting !== true) return stay('routing-disabled');
73
+ if (named == null) {
74
+ if (config.intakeSupport !== undefined && (!Array.isArray(config.intakeSupport)
75
+ || !config.intakeSupport.every((s) => record(s) && text(s.environmentId)
76
+ && text(s.providerInstanceId) && typeof s.supported === 'boolean' && text(s.evidence)))) {
77
+ throw new Error('intake-support-schema');
78
+ }
79
+ const support = config.intakeSupport?.filter((s) => s.environmentId === input.origin.environmentId
80
+ && s.providerInstanceId === input.origin.providerInstanceId);
81
+ const supported = support?.length === 1 && support[0].supported === true;
82
+ terms.push(term('launch-support', supported, support?.length ? support : null));
83
+ if (!supported) return stay('routing unsupported');
84
+ } else terms.push({ code: 'launch-support', state: 'n/a', evidence: 'explicit named host (pilot)' });
85
+ const inputsReady = [input.origin.threadId, input.origin.title, intake.launchKey, intake.taskText,
86
+ intake.scope?.identity, intake.scope?.content ?? intake.scope?.destinationRef, intake.authority, intake.grantCitation].every(text);
87
+ terms.push(term('launch-inputs', inputsReady, intake));
88
+ if (!inputsReady) return result('hold', 'launch-inputs-unproven');
89
+ const exclusions = structuredClone(input.exclusions);
90
+ for (const host of config.hosts) {
91
+ if (named != null && host.id !== named) exclusions.hosts[host.id] = 'explicit-named-host';
92
+ const selected = initial.eligible.find((h) => h.hostId === host.id);
93
+ if (!selected) continue;
94
+ const observation = input.nativeDestinations?.[host.environmentId];
95
+ const capabilitiesText = observation?.capabilities?.valueText;
96
+ const checks = staffingTerms(input, host.environmentId);
97
+ checks.push(term('project-list', Array.isArray(observation?.projectList)
98
+ && observation.projectList.length > 0, observation?.projectList));
99
+ checks.push(term('catalog-digest', typeof capabilitiesText === 'string'
100
+ && hash(capabilitiesText) === selected.destinationCapabilitiesDigest, capabilitiesText));
101
+ if (typeof capabilitiesText === 'string') {
102
+ try { checks.push(...inspectDestination(observation, { ...initial, selected }, capabilitiesText, now)); }
103
+ catch { checks.push(term('native-destination', false, observation)); }
104
+ } else checks.push(term('native-destination', false, observation));
105
+ terms.push(...checks.map((t) => ({ ...t, environmentId: host.environmentId })));
106
+ if (checks.some((t) => t.state !== 'pass')) exclusions.hosts[host.id] = 'pre-launch-unproven';
107
+ }
108
+ const recommendation = recommend({ ...input, exclusions }, now);
109
+ const selected = recommendation.selected;
110
+ if (!selected) return stay('no-eligible-host');
111
+ if (selected.environmentId === input.origin.environmentId) return stay('selected-local');
112
+ const launch = { environmentId: selected.environmentId, projectId: selected.projectId,
113
+ clientRequestId: intake.launchKey, title: `${input.origin.title} [${intake.launchKey}]`,
114
+ delegatedFrom: { environmentId: input.origin.environmentId, threadId: input.origin.threadId, title: input.origin.title },
115
+ message: JSON.stringify({ taskText: intake.taskText, scope: intake.scope, authority: intake.authority,
116
+ routed: true, grantCitation: intake.grantCitation, launchKey: intake.launchKey,
117
+ acceptanceOnly: 'Check scope/authority, readable inputs and local staffing (author, different-provider reviewer, advisers if needed). '
118
+ + 'Do no implementation. End with exactly AXSTACK-ACCEPT or AXSTACK-HANDBACK <reason>. Wait for proceed.' }) };
119
+ return result('launch', 'whole-task-intake', selected, { launch });
120
+ }
121
+
122
+ export function bindIntakePlan(input, saved, configDigest, now, capabilitiesText, resolved, kind) {
123
+ const hold = (code) => { throw Object.assign(new Error(code), { exitCode: 2 }); };
124
+ if (kind !== 'launch') hold('driver-launch-only');
125
+ if (configDigest !== input.configDigest) hold('config-digest-mismatch');
126
+ const current = planIntake(input, now);
127
+ if (canonical(saved) !== canonical(current)) hold('intake-plan-mismatch');
128
+ if (current.disposition !== 'launch') hold(current.reason);
129
+ if (hash(capabilitiesText) !== current.selected.destinationCapabilitiesDigest) hold('capabilities-digest-mismatch');
130
+ const r = input.request;
131
+ if (r.providerInstanceId !== resolved.providerInstanceId || r.model !== resolved.model
132
+ || r.options[resolved.effortOption?.id] !== resolved.effortOption?.value) hold('settings-mismatch');
133
+ return { launch: current.launch, planTerms: current.terms,
134
+ options: Object.entries(r.options).sort(([a], [b]) => a.localeCompare(b)).map(([id, value]) => ({ id, value })),
135
+ destination: { environmentId: current.selected.environmentId, projectId: current.selected.projectId },
136
+ fleetBinding: { configDigest, destinationSnapshotId: current.selected.destinationSnapshotId,
137
+ destinationCapabilitiesDigest: current.selected.destinationCapabilitiesDigest } };
138
+ }
@@ -4,7 +4,11 @@ import { assignmentCounts, routeReasons, telemetry } from './fleet-facts.js';
4
4
  export { parseFleetConfig } from './fleet-config.js';
5
5
 
6
6
  export function recommend(input, now) {
7
- validateInput(input, now);
7
+ // Drivers place the whole task; their authors use local worktree isolation.
8
+ const driver = input?.request?.role === 'driver';
9
+ const placement = driver ? { ...input, request: { ...input.request, role: 'reader',
10
+ requiredCapabilities: [...(input.request.requiredCapabilities ?? []), 'worktree-isolation'] } } : input;
11
+ validateInput(placement, now);
8
12
  const config = parseFleetConfig(input.configText, input.configDigest);
9
13
  const counts = assignmentCounts(input, config.hosts, now);
10
14
  const preference = Object.hasOwn(config.taskOrders, input.request.task)
@@ -19,7 +23,7 @@ export function recommend(input, now) {
19
23
  let accepted = null;
20
24
  for (const route of routes) {
21
25
  const facts = input.routeFacts.find((f) => f.routeId === route.id);
22
- const reasons = routeReasons(route, host, destination, facts, input, now);
26
+ const reasons = routeReasons(route, host, destination, facts, placement, now);
23
27
  if (reasons.length) {
24
28
  excluded.push({ hostId, environmentId: host.environmentId, routeId: route.id, reasons,
25
29
  exclusion: (Object.hasOwn(input.exclusions.hosts, hostId) ? input.exclusions.hosts[hostId] : null)
@@ -78,7 +78,10 @@ user round, the driver independently drafts the prioritized frontier and
78
78
  recommendations, except for brainstorm questions, where the driver frames the
79
79
  brief and rubric and assesses after the candidates and required judge rounds
80
80
  return. Reuse valid brainstorm receipts to replace the adviser consult for
81
- that question. For other questions, consult `axstack-advisor-astra` and
81
+ that question. For other questions, consult advisers only for consequential
82
+ decisions and disagreements. Never dispatch advisers for every question,
83
+ routine factual clarification or settled preferences.
84
+ For those consequential decisions and disagreements, consult `axstack-advisor-astra` and
82
85
  `axstack-advisor-opus` independently, without cross-reading, using the same
83
86
  bounded evidence and question. Each adviser challenges assumptions, edges,
84
87
  omissions, and alternatives; the driver synthesizes disagreements and accepts
@@ -93,6 +96,19 @@ unchanged receipts. Record compact adviser evidence, the driver's assessment,
93
96
  and user-resolved choices for `axstack-spec`. If either adviser is unavailable,
94
97
  hold Align; safe fact work may continue without substitution.
95
98
 
99
+ For spec drafts, run a full adviser round on the first draft and every revision
100
+ that changes meaning in criteria, scope, decisions or authority.
101
+ Run `axstack-diligence` on the first draft and the revision presented for approval
102
+ under [Diligence](../axstack/references/diligence.md).
103
+ Batch low and wording-only findings into one final pass.
104
+ Never start a new full adviser round for low or wording-only findings;
105
+ for low or wording-only findings with changed text, follow delta confirmation below.
106
+ Never waive high or medium findings.
107
+ When existing triggers apply, run `axstack-escalation-fable` only after ordinary
108
+ high and medium findings settle. Reuse the Fable receipt while the reviewed
109
+ meaning holds. If Fable's own findings change meaning, a fresh Fable session
110
+ reviews the revised result.
111
+
96
112
  An optional adviser note may be deferred or rejected in a `Decisions` row with
97
113
  the draft unchanged; it needs no new adviser pair.
98
114
  By default, changed draft text requires fresh receipts on the new revision.
@@ -74,8 +74,10 @@ Use actual records, never memory:
74
74
  - test and review evidence; and
75
75
  - the run execution record at its recorded `progress.md` path.
76
76
 
77
- Auditing is enabled for every substantive run by default. A material deviation
78
- or repeated repair pattern can justify a checkpoint. Reuse still-valid prior
77
+ Auditing is enabled for every substantive run by default, except small-path runs.
78
+ Small-path runs dispatch audit only on request, on a material deviation or
79
+ after repeated repairs. A material deviation or repeated repair pattern can
80
+ justify a checkpoint. Reuse still-valid prior
79
81
  audit evidence rather than repeating a whole-run rescan. A routine small lookup
80
82
  may end with a compact audit record; never force research through the full
81
83
  implementation pipeline. Cadence uses the core-owned invocation and creates no
@@ -132,6 +134,19 @@ counts with denominators plus the evidence behind the count:
132
134
  autonomous driver decisions; size alone never requires user approval.
133
135
  - API-dollar cost by model when provider receipts are available, UNKNOWN otherwise.
134
136
 
137
+ Report one cost line per PR with dispatches, review rounds, spec revisions,
138
+ active time, wait time, driver tokens and worker tokens, using the
139
+ [run-record counting boundaries](../axstack/references/run-record.md#per-pr-cost).
140
+ Missing cost values are `unknown`; never replace missing cost values with zero.
141
+ Cost reporting never gates work. Keep per-value evidence and coverage denominators,
142
+ and compare only compatible PR attribution, duration units and token accounting
143
+ against the run's recorded baseline path. Exclude review-manager PRs from the
144
+ ceremony baseline comparison; retain unallocated run totals separately.
145
+
146
+ ```text
147
+ PR cost: <PR URL> | dispatches: unknown | review rounds: unknown | spec revisions: unknown | active time: unknown | wait time: unknown | driver tokens: unknown | worker tokens: unknown | evidence: <per-value refs>
148
+ ```
149
+
135
150
  Record `UNKNOWN` where evidence is absent. Never count missing evidence as a
136
151
  pass or collapse gaps into a vanity score. Prefer parallelism for genuinely
137
152
  independent decomposable work, while respecting dependencies and writer
@@ -5,8 +5,13 @@ description: When completed T3 threads and worktrees need bounded retirement, us
5
5
 
6
6
  # Cleanup
7
7
 
8
- Run cleanup inline in the driver after accepting a worker task or run
9
- completion, or for the exact backlog scope the user named. This skill never
8
+ Batch eligible cleanup, including reviewer worktrees, at [run checkpoints](#run-checkpoints) after
9
+ accepted settlement, or for the exact backlog scope the user named.
10
+ Run the batch inline in the driver.
11
+ Per-review invocations preserve evidence and record pending cleanup in the
12
+ existing private run record. Per-review invocations never retire resources individually.
13
+ Before checkpoint retirement, preserve and read back each resource's evidence
14
+ and apply existing eligibility and safety guards. This skill never
10
15
  dispatches a cleanup worker and never retires its current driver session.
11
16
 
12
17
  Before any runtime action, load and follow:
@@ -27,10 +32,14 @@ Evidence never lives in a worktree and belongs in private `<run>/evidence/<key>/
27
32
  A missing merged or closed author worktree is expected, not a hold.
28
33
  Follow the runtime schema, never invent an alternate command protocol.
29
34
 
35
+ ## Run checkpoints
36
+
37
+ A run checkpoint is a merge, a phase end, or run close-out.
38
+
30
39
  ## Authority and scope
31
40
 
32
- Inline cleanup may consider only resources owned by the accepted completion it
33
- is processing. Driver-start orphan sweeps follow the guarded cross-run sweep in
41
+ Each inline checkpoint batch considers only resources owned by its accepted
42
+ completions. Driver-start orphan sweeps follow the guarded cross-run sweep in
34
43
  [Workspace hygiene](../axstack/references/workspace-hygiene.md). Backlog
35
44
  cleanup requires an explicit bounded selector such as a
36
45
  project, run, task set, checkout set, repository, or named age window; age narrows an
@@ -51,6 +51,43 @@ materially changed but unaccepted identity holds affected work; safe
51
51
  investigation may continue under the standing contracts. Proceed only with a
52
52
  valid recorded identity and revisions; otherwise report the hold and exact gap.
53
53
 
54
+ ### Small-change path
55
+
56
+ Use this lean path only for a recorded small-change intent with acceptance
57
+ checks, exclusions and one PR that is not a risk path. Substantial work uses
58
+ the full path below.
59
+ This path keeps §§2-5's ownership, isolation, strict TDD and verification
60
+ requirements and §6's publication, review, repair, native watch and merge gates;
61
+ it omits full-path step-back advice until escalation.
62
+
63
+ 1. Keep one isolated author as the sole writer and return repairs to the same author.
64
+ Workers never push. The driver verifies author proof and evidence before
65
+ publication, publishes the exact candidate under candidate-publication and
66
+ confirms remote readback.
67
+ 2. Select one cross-provider reviewer from actual author provenance.
68
+ Never skip cross-model review for a small change. For eligible work use the
69
+ combined reviewer under the
70
+ [applicable diligence gate](../axstack/references/diligence.md#applicable-diligence-gate).
71
+ Otherwise require separate diligence, including unknown eligibility.
72
+ The same gate's exact head/base receipts, `Scope: FINDINGS` repair and
73
+ `Scope: UNKNOWN` hold remain mandatory. Single-provider presets or unavailable
74
+ mapped reviewers hold review under §6; separate diligence cannot replace it.
75
+ 3. After publication and remote readback, arm or join the native watch under §6.
76
+ The owning watch merges only under [watch §5](../axstack-watch/SKILL.md#5-state-readiness-precisely)
77
+ and its full predicate. Keep checkpoint cleanup and Close-out under §6.
78
+ 4. Escalate to the full path on a second PR, a risk path, review round 3 or a
79
+ design conflict. Risk path includes the
80
+ [merge-risk list](../axstack-watch/references/readiness.md), changes to merge,
81
+ dispatch or authority rules, and anything the driver or reviewer flags as a
82
+ security, data-loss or major-design concern. This classification changes
83
+ review depth only; it grants no merge clearance.
84
+
85
+ Record the trigger and reconcile scope, dependencies and current receipts on
86
+ escalation; preserve the author and review-round budget. Reopen material scope
87
+ or design decisions through shared routing before dependent repair.
88
+ Step-back advisers run only on the full path after escalation, under §6's
89
+ counted-round and unused-budget conditions. Audits follow lifecycle triggers.
90
+
54
91
  ## 2. Establish one owner and one writer
55
92
 
56
93
  For substantive delegated or resumable work, use the shared
@@ -245,10 +282,10 @@ For each PR:
245
282
  3. Dispatch and consume the authored-mode `axstack-review` selected from actual
246
283
  author provenance. State the author's actual provider and model from the
247
284
  T3 launch receipt in the review dispatch brief; a `Claude-Session`
248
- trailer is attribution, not provenance. After each settled review, run
249
- `axstack-cleanup` for its exact reviewer resources before PR merge,
250
- preserving and reading back the
251
- private evidence archive before eligible worktree retirement. A later review
285
+ trailer is attribution, not provenance. At
286
+ [run checkpoints](../axstack-cleanup/SKILL.md#run-checkpoints), batch eligible
287
+ reviewer worktree retirement through `axstack-cleanup`, preserving and reading back
288
+ the private evidence archive first with every existing per-resource guard. A later review
252
289
  uses a fresh child checkout. Keep the author candidate until its PR merges or
253
290
  closes; a cleanup hold preserves only the affected reviewer resource.
254
291
  4. Route the verdict. `APPROVE` at that head plus `axstack-watch` §5's full
@@ -258,8 +295,11 @@ For each PR:
258
295
  re-evaluate. Timeout, error, or missing wait capability records `held` at
259
296
  that revision with reason and resume condition; it never triggers author
260
297
  repair. Keep CI-pending state in the T3 driver thread.
261
- `APPROVE` with only non-blocking findings plus diligence `PASS` can be
262
- `merge-ready` when the full predicate passes. The driver records the
298
+ Follow the [applicable diligence gate](../axstack/references/diligence.md#applicable-diligence-gate):
299
+ eligible small non-risk-path work uses the same cross-provider reviewer's
300
+ `APPROVE` plus `Scope: PASS`; all other work keeps separate diligence `PASS`.
301
+ `APPROVE` with only non-blocking findings plus applicable diligence evidence
302
+ can be `merge-ready` when the full predicate passes. The driver records the
263
303
  non-blocking notes and does not elect a repair; only the user can ask for
264
304
  polish.
265
305
  `REQUEST_CHANGES`, a failed required check, or post-readiness feedback returns
@@ -268,18 +308,24 @@ For each PR:
268
308
  risk records `held`. A changed parent immediately invalidates affected child readiness; refresh
269
309
  the next ready children as needed under PR chains before step 1.
270
310
  Follow [Advised holds](../axstack/references/contracts.md#advised-holds) for eligible `held` causes.
271
- Merge-ready also requires a current diligence `PASS` at that head; diligence
272
- `FINDINGS` return to the same author within the review round.
273
- Diligence `UNKNOWN` records the PR as `held` with the reason in the run record
274
- and blocks merge-ready pending the driver's recorded disposition.
311
+ Merge-ready also requires current applicable diligence evidence at the exact
312
+ head and base. Diligence `FINDINGS` or combined `Scope: FINDINGS` return to
313
+ the same author within the review round.
314
+ Diligence `UNKNOWN` or combined `Scope: UNKNOWN` records the PR as `held`
315
+ with the reason in the run record and blocks merge-ready pending the driver's
316
+ recorded disposition; the disposition never substitutes for `PASS` evidence.
317
+ Any head or base change requires fresh review and applicable diligence
318
+ evidence, including base-only retargets.
275
319
  Before merge-ready, treat a run-record `Learning` that contradicts a shipped
276
320
  rule as a finding on the owning PR and hold merge-ready until the contradiction is resolved.
277
321
  An unrelated run-record `Learning` leaves merge-ready eligibility unchanged.
278
- A round with reviewer `REQUEST_CHANGES` and/or diligence `FINDINGS` increments
279
- `repairs` once and counts once toward the round-3 step-back.
322
+ A round with reviewer `REQUEST_CHANGES` and/or diligence `FINDINGS` (including
323
+ combined `Scope: FINDINGS`) increments `repairs` once and counts once toward
324
+ the round-3 step-back.
280
325
  Failed checks and post-readiness feedback increment `repairs` but never count
281
326
  as failing review rounds.
282
- On any counted failing review round that leaves `rounds` at 3 or more while
327
+ Small-path work first escalates to the full path at review round 3.
328
+ On the full path, on any counted failing review round that leaves `rounds` at 3 or more while
283
329
  `step-back: unused`, the driver steps back with both `axstack-advisor-astra`
284
330
  and `axstack-advisor-opus` to assess exactly one extra repair round (round 4
285
331
  in the normal case).
@@ -1,5 +1,8 @@
1
1
  # Round-3 step-back
2
2
 
3
+ This step-back procedure applies only on the full path. Small-change work
4
+ escalates before using it; retain its existing author and review-round budget.
5
+
3
6
  An unavailable step-back seat counts as no agreement and falls to the user with the advised step-back card.
4
7
  Follow [Advised holds](../../axstack/references/contracts.md#advised-holds) for
5
8
  seat attempts, waits, gaps and cards, including the round-4 card's delta-only adviser reuse.
@@ -17,7 +20,12 @@ Send one advised repair brief to the same author for the extra round only when a
17
20
  The path must not break a sketch `Binding` line.
18
21
  - No independent hold applies.
19
22
 
20
- The extra round requires fresh independent reviewer and diligence receipts, with a fresh session of the same mapped reviewer role.
23
+ The extra round requires fresh independent reviewer and applicable diligence evidence,
24
+ with a fresh session of the same mapped reviewer role.
25
+ Follow the [applicable diligence gate](../../axstack/references/diligence.md#applicable-diligence-gate):
26
+ refresh the combined Scope receipt only for eligible small non-risk-path work;
27
+ otherwise require fresh separate diligence. A combined `Scope: FINDINGS` counts
28
+ as diligence `FINDINGS` within that round; `Scope: UNKNOWN` blocks merge-ready.
21
29
  Do not add an extra reviewer.
22
30
  Advisers must never lower a rating or clear a finding.
23
31
  Advisers can propose `Pre-existing` with evidence, which the extra-round reviewer validates under
@@ -178,8 +178,11 @@ These verdicts apply only to PR modes. Codebase findings use coverage status.
178
178
  covering the whole brief, all six angles, and applicable acceptance.
179
179
  - **Complete verdict:** validated blocking defects permit `REQUEST_CHANGES`;
180
180
  complete evidence with no blocker permits `APPROVE`.
181
- - **Authored diligence:** a current `PASS` is required with reviewer approval for
182
- merge-ready; `FINDINGS` return to the author in that round.
181
+ - **Authored diligence:** follow the [applicable diligence gate](../axstack/references/diligence.md#applicable-diligence-gate).
182
+ Eligible small non-risk-path work needs `APPROVE` plus `Scope: PASS` from the
183
+ same cross-provider reviewer at the exact head and base; all other work
184
+ requires separate diligence `PASS`. `FINDINGS` from either route return to
185
+ the author in that round; `UNKNOWN` holds merge-ready.
183
186
  - **Incomplete or stale:** use `INCOMPLETE`; never fabricate `APPROVE` or
184
187
  `REQUEST_CHANGES`.
185
188
 
@@ -234,7 +237,9 @@ evidence, limitations, validated risk, or an internal `INCOMPLETE` report.
234
237
  Peer mode, with validated blockers reported by `REQUEST_CHANGES`; diligence
235
238
  is excluded.
236
239
  - Authored mode requires its one current eligible configured reviewer receipt and
237
- a separate current diligence receipt; applicable scope identity must remain valid.
240
+ current applicable diligence evidence: combined `Scope: PASS` for eligible
241
+ small non-risk-path work, otherwise a separate diligence `PASS` receipt;
242
+ applicable scope identity must remain valid.
238
243
  - A missing, mismatched, stale, or materially changed input blocks approval and
239
244
  merge-ready declarations while readonly investigation continues.
240
245
 
@@ -2,10 +2,12 @@
2
2
 
3
3
  ```text
4
4
  Candidate: <PR URL> rev <sha> (immutable checkout)
5
- Workspace: <T3 taskId/childThreadId/runId + detached checkout absolute path>
5
+ Workspace: <T3 taskId/childThreadId/runId + authored: native worktree absolute path | peer: detached checkout absolute path>
6
+ Driver worktree: <authored: resolved absolute path for isolation proof | peer: n/a>
6
7
  Evidence: <run dir>/evidence/<dispatch>/ (report and probe paths)
7
8
  Mode: <peer | authored> Actual author: <provider/model from T3 launch receipt + session | n/a>
8
9
  Scope: <spec rev or linked issue + ticket + current base + exclusions>
10
+ Combined review: <yes — return the Scope verdict | no — separate diligence>
9
11
  Angles: <all six; identical brief for peer reviewers>
10
12
  Authored receipt requirements:
11
13
  Report Coverage: COMPLETE | INCOMPLETE with covered angles, acceptance and executable evidence.
@@ -19,8 +19,11 @@ This section applies to peer and authored PR modes.
19
19
  branch below. For every reviewer, apply
20
20
  [Reviewer workspaces and evidence](../../axstack/references/t3-runtime.md#role-dispatch-by-permitted-writes)
21
21
  before async `delegate_task`; report-only scope does not waive checkout isolation or
22
- private per-dispatch artifacts. Each reviewer uses a separate driver-made disposable detached checkout;
23
- preserve its private evidence before removal.
22
+ private per-dispatch artifacts. Peer reviewers each use a separate driver-made disposable detached checkout.
23
+ Authored reviewers must use native `isolation:"worktree"`.
24
+ Authored reviewers must `cd` into their own worktree and verify its resolved path differs from the driver's before inspecting the pinned revision.
25
+ Authored reviewers must check out and verify the exact candidate SHA and pinned base inside that worktree.
26
+ Preserve private evidence before removal.
24
27
  - **Peer:** first review requires exactly two independent final reviewers,
25
28
  `axstack-reviewer-primary` and `axstack-reviewer-peer` from the routing snapshot.
26
29
  Send both the identical six-angle brief, with no first-pass cross-read or children.
@@ -39,7 +42,8 @@ This section applies to peer and authored PR modes.
39
42
  | `codex-only` | `codex/sol` | `axstack-reviewer-secondary` (`codex/terra` high) |
40
43
  | `claude-only` | `claude/opus` | `axstack-reviewer-secondary` (`claude/sonnet` high) |
41
44
 
42
- The diligence receipt is separate and does not count as a reviewer receipt.
45
+ Separate diligence does not count as a reviewer receipt; eligible combined
46
+ review carries Scope in the one authored reviewer receipt.
43
47
 
44
48
  From the recorded exact model ID, derive its class and match provenance
45
49
  on provider/class; record effort, but never use effort to create a mapping.
@@ -65,11 +69,20 @@ This section applies to peer and authored PR modes.
65
69
 
66
70
  Continue only when session receipts prove the required models, non-author
67
71
  independence, actual author provenance where applicable, and exact brief.
68
- In authored PR review rounds, dispatch `axstack-diligence`
72
+ Follow the [applicable diligence gate](../../axstack/references/diligence.md#applicable-diligence-gate).
73
+ For eligible small non-risk-path work, the same cross-provider reviewer
74
+ returns `Scope: PASS|FINDINGS|UNKNOWN` without a separate diligence dispatch.
75
+ Combined review runs after publication at the confirmed remote head and
76
+ pinned base. Include all applicable diligence checks in the brief.
77
+ The receipt's `Scope:` verdict line is requested by the brief's `Combined review:` line.
78
+ Bind that verdict to the same head and base, with evidence and limits.
79
+ Otherwise, in authored PR review rounds, dispatch `axstack-diligence`
69
80
  independently alongside the configured reviewer(s) on the same exact revision
70
- and base. Follow [Diligence](../../axstack/references/diligence.md). A diligence
71
- `FINDINGS` receipt returns validated findings to the same author in the same
72
- round; it is not an extra `REQUEST_CHANGES` round.
81
+ and base. A diligence `FINDINGS` receipt returns validated findings to the same
82
+ author in the same round; it is not an extra `REQUEST_CHANGES` round.
83
+ Combined `Scope: FINDINGS` uses that same repair route; `Scope: UNKNOWN`
84
+ holds merge-ready. Refresh the verdict and applicable diligence evidence
85
+ after every head or base change.
73
86
  3. **Inspect all six angles.** In the first peer review each reviewer covers every angle;
74
87
  in authored mode the one reviewer covers all six angles. Peer follow-ups use
75
88
  only the bounded checks in Peer mode instead of this full inspection:
@@ -3,9 +3,10 @@
3
3
  ```text
4
4
  Mode: <peer | authored>
5
5
  Reviewer: <reviewer role + provider/model/effort receipt> session <id> rev <candidate sha> base <current base>
6
- Workspace: <T3 taskId/childThreadId/runId + detached checkout absolute path>
6
+ Workspace: <T3 taskId/childThreadId/runId + authored: native worktree absolute path | peer: detached checkout absolute path>
7
7
  Evidence: <run dir>/evidence/<dispatch>/ (report and probe paths)
8
8
  Verdict: <APPROVE | REQUEST_CHANGES | INCOMPLETE>
9
+ Scope: <PASS | FINDINGS | UNKNOWN | n/a — separate diligence>
9
10
  Coverage: COMPLETE | INCOMPLETE — <angles + acceptance + executable evidence checked>
10
11
  Limitations: <unverified boundaries + why; tag each limitation leaving changed behavior unexercised or unverified, in whatever words, changed-behavior: unproven>
11
12
  Final-head check: <command> -> <log path> — <check the reviewer ran at the final head; log kept in the run's evidence folder>
@@ -19,3 +20,6 @@ Safety fact: <the one fact the change itself is safe because of, rather than the
19
20
  Escalate to user: <yes | no> — <criterion> — <reason>
20
21
  ```
21
22
 
23
+ The `Scope:` verdict is bound to the same head and base as the `Reviewer:` line.
24
+ For eligible combined review, report the diligence checks, evidence and limits
25
+ with that verdict; all other authored work uses `n/a — separate diligence`.
@@ -51,7 +51,11 @@ Before drafting, load and follow [Independent delivery](../axstack/references/in
51
51
  carries a sketch, include the [design lens](../axstack/references/design-lens.md)
52
52
  sketch in the approved revision's `Design` section and its `Usage` line in
53
53
  acceptance. First record the driver's
54
- independent assessment, then load
54
+ independent assessment. For questions, consult advisers only for consequential
55
+ decisions and disagreements. Never dispatch advisers for every question,
56
+ routine factual clarification or settled preferences.
57
+ For those consequential decisions and disagreements and the required draft
58
+ rounds below, load
55
59
  [T3 runtime](../axstack/references/t3-runtime.md) before dispatching the
56
60
  configured `axstack-advisor-astra` and `axstack-advisor-opus` independently,
57
61
  without cross-reading, with the same bounded evidence and question. The
@@ -60,6 +64,19 @@ Before drafting, load and follow [Independent delivery](../axstack/references/in
60
64
  remain unchanged. If either adviser is unavailable, hold Spec without
61
65
  substitution. A reviewable draft covers the agreed outcome, acceptance
62
66
  criteria, exclusions, and both adviser receipts or the reported hold.
67
+ Run a full adviser round on the first draft and every revision that changes
68
+ meaning in criteria, scope, decisions or authority.
69
+ Before user approval, run `axstack-diligence` on the first draft and the revision
70
+ presented for approval under [Diligence](../axstack/references/diligence.md) to
71
+ check the draft against the Align decisions for anything dropped, added, or softened.
72
+ Batch low and wording-only findings into one final pass.
73
+ Never start a new full adviser round for low or wording-only findings;
74
+ for low or wording-only findings with changed text, follow delta confirmation below.
75
+ Never waive high or medium findings.
76
+ When existing triggers apply, run `axstack-escalation-fable` only after ordinary
77
+ high and medium findings settle. Reuse the Fable receipt while the reviewed
78
+ meaning holds. If Fable's own findings change meaning, a fresh Fable session
79
+ reviews the revised result.
63
80
  An optional adviser note may be deferred or rejected in a `Decisions` row
64
81
  with the draft unchanged; it needs no new adviser pair.
65
82
  By default, changed draft text requires fresh receipts on the new revision.
@@ -73,9 +90,11 @@ Before drafting, load and follow [Independent delivery](../axstack/references/in
73
90
  An unavailable adviser seat holds the affected phase.
74
91
  4. **Obtain the specification checkpoint.** The driver owns the draft and the
75
92
  user approves it; adviser input cannot grant approval. High-stakes decisions
76
- require `axstack-advisor-astra` and a fresh `axstack-escalation-fable`
77
- session to return plain AGREE. Present one
78
- reviewable, identified revision for this checkpoint. Its user approval
93
+ require `axstack-advisor-astra` and `axstack-escalation-fable` to return
94
+ plain AGREE. Each use of `axstack-escalation-fable` must start a fresh session.
95
+ Reuse the Fable plain-AGREE receipt only while the reviewed meaning holds under step 3.
96
+ If the reviewed meaning changes, a fresh Fable session must review the revised result.
97
+ Present one reviewable, identified revision for this checkpoint. Its user approval
79
98
  creates the execution baseline.
80
99
  In a T3 thread, the driver also publishes the spec readback as an inline page and
81
100
  follows [Explain](../axstack-explain/SKILL.md) and
@@ -89,9 +108,6 @@ Before drafting, load and follow [Independent delivery](../axstack/references/in
89
108
  Except for high-stakes decisions, a change confined to a `Decisions` row
90
109
  reuses adviser receipts only while draft text, evidence, scope, and question
91
110
  remain unchanged.
92
- Before user approval, dispatch `axstack-diligence` under
93
- [Diligence](../axstack/references/diligence.md) to check the draft against
94
- the Align decisions for anything dropped, added, or softened.
95
111
  5. **Snapshot the baseline.** Record the approved revision identity and a
96
112
  concise repository Markdown counterpart pointing to the same requirements,
97
113
  not a second human or agent contract. In Linear mode, the native
@@ -200,6 +200,11 @@ Load and follow [Blocked on a person](references/blocked-on-person.md).
200
200
 
201
201
  ## 6. End and preserve continuity
202
202
 
203
+ While a watch is active, never unwatch or hand back because a forge
204
+ `CHANGES_REQUESTED` or required review remains unresolved.
205
+ Continue repairing and watching review blockers within the recorded mode and authority.
206
+ User cancellation, standalone expiry and existing stop and hold rules remain unchanged.
207
+
203
208
  Reconcile PR links and stop native PR watches under
204
209
  [T3 runtime](../axstack/references/t3-runtime.md#native-pr-links-and-watches).
205
210
 
@@ -36,8 +36,10 @@ A risky-path hold blocks automatic merge.
36
36
  Post a merge card for every nonqualifying approval, base, verification, off,
37
37
  or risky-path case.
38
38
  Follow [Advised holds](../../axstack/references/contracts.md#advised-holds) for eligible merge-card causes.
39
- Bind it to the PR head and base SHA; list CI, authored review and diligence at
40
- those SHAs, counted collaborator approvals and bot votes with each vote's SHA
39
+ Follow the [applicable diligence gate](../../axstack/references/diligence.md#applicable-diligence-gate).
40
+ Bind it to the PR head and base SHA; list CI, authored review and applicable
41
+ diligence evidence (combined Scope or separate diligence) at those SHAs, counted
42
+ collaborator approvals and bot votes with each vote's SHA
41
43
  and stale flag, and the causes holding this merge.
42
44
  A card that needs the user's decision (work promotion or work deploying/unknown
43
45
  base, `Auto-merge: off`, risky-path, provenance, or an unclosable verification gap)
@@ -5,7 +5,10 @@ Proven verification is required for every own PR. Use the authored receipt:
5
5
  - Verification requires `Verdict: APPROVE`, `Coverage: COMPLETE`, and
6
6
  `Escalate to user: no`.
7
7
  - Verification requires a `Safety fact` about the change that is not `unproven`.
8
- - Verification requires diligence `PASS` at the exact head and base.
8
+ - For eligible small non-risk-path work, `APPROVE` and `Scope: PASS` from the
9
+ same cross-provider reviewer at the exact head and base satisfy verification's
10
+ diligence gate. Otherwise verification requires separate diligence `PASS`
11
+ at the exact head and base. Follow the [applicable diligence gate](../../axstack/references/diligence.md#applicable-diligence-gate).
9
12
  - Verification requires `Final-head check: <command> -> <log path>` for a check
10
13
  the reviewer ran at the final head, with its log kept in the run's evidence folder.
11
14
  - Each acceptance check requires passing evidence from the ticket or spec
@@ -38,7 +41,7 @@ reissuing only if a decision is still needed.
38
41
  The user's reply in the driver thread or on the forge clears only that
39
42
  verification cause. Record `user-accepted unproven: <item>`, never as a pass.
40
43
  Treat the accepted item as settled for this head and base and merge when every
41
- other gate and hold permits it. A reply never waives `APPROVE`, diligence `PASS`
44
+ other gate and hold permits it. A reply never waives `APPROVE`, the applicable diligence gate
42
45
  or green CI. A new head or base voids the acceptance.
43
46
  Settle an `Escalate to user` for the user-accepted verification cause at its
44
47
  accepted head and base while other escalation holds still apply.