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.
- package/docs/ceremony-baseline-20261103.md +96 -0
- package/docs/workflows.md +34 -13
- package/package.json +1 -1
- package/skills/axstack/references/automations.md +4 -3
- package/skills/axstack/references/autopilot.md +7 -3
- package/skills/axstack/references/candidate-publication.md +19 -3
- package/skills/axstack/references/contracts.md +8 -2
- package/skills/axstack/references/default-routing.md +21 -2
- package/skills/axstack/references/diligence.md +37 -0
- package/skills/axstack/references/fleet-dispatch.md +111 -9
- package/skills/axstack/references/fleet-route-schema.md +80 -3
- package/skills/axstack/references/fleet-verification.md +43 -1
- package/skills/axstack/references/lifecycle.md +29 -12
- package/skills/axstack/references/pr-chain.md +4 -1
- package/skills/axstack/references/role-roster.md +5 -2
- package/skills/axstack/references/run-record.md +23 -0
- package/skills/axstack/references/t3-runtime.md +48 -10
- package/skills/axstack/scripts/default-policy.js +2 -2
- package/skills/axstack/scripts/dispatch-plan.js +68 -18
- package/skills/axstack/scripts/fleet-route-cli.js +18 -9
- package/skills/axstack/scripts/fleet-route-plan.js +138 -0
- package/skills/axstack/scripts/fleet-route.js +6 -2
- package/skills/axstack/scripts/hub-usage.js +30 -3
- package/skills/axstack-align/SKILL.md +17 -1
- package/skills/axstack-audit/SKILL.md +17 -2
- package/skills/axstack-cleanup/SKILL.md +13 -4
- package/skills/axstack-implement/SKILL.md +59 -13
- package/skills/axstack-implement/references/step-back.md +9 -1
- package/skills/axstack-review/SKILL.md +8 -3
- package/skills/axstack-review/references/candidate-brief.md +3 -1
- package/skills/axstack-review/references/review-candidate.md +20 -7
- package/skills/axstack-review/references/review-receipt.md +5 -1
- package/skills/axstack-spec/SKILL.md +23 -7
- package/skills/axstack-watch/SKILL.md +5 -0
- package/skills/axstack-watch/references/escalation.md +4 -2
- package/skills/axstack-watch/references/proven-verification.md +5 -2
- package/skills/axstack-watch/references/readiness.md +20 -8
- package/src/instructions.js +6 -4
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
2
|
import { sampleMain, sampleHelp } from './fleet-sample-cli.js';
|
|
3
3
|
import { recommend, parseFleetConfig } from './fleet-route.js';
|
|
4
|
+
import { planIntake } from './fleet-route-plan.js';
|
|
4
5
|
|
|
5
6
|
const help = `Usage: bun fleet-route.js recommend --input <snapshot.json> --now <epoch-ms> [--json]
|
|
6
7
|
[--task <name>] [--config <fleet-routing.json>] [--config-digest <sha256>]
|
|
8
|
+
bun fleet-route.js plan --facts <directory> --now <epoch-ms> [--json]
|
|
9
|
+
[--config <fleet-routing.json>] [--config-digest <sha256>]
|
|
7
10
|
|
|
8
11
|
--input Saved schema-1 facts; no collection or dispatch
|
|
12
|
+
--facts Intake facts directory containing input.json (sample + saved native reads)
|
|
9
13
|
--now Required nonnegative integer evaluation time; no ambient clock
|
|
10
14
|
--task Override the saved request's task preference
|
|
11
15
|
--config Reviewed account-local config (default: ~/.config/haoshoku/fleet-routing.json)
|
|
@@ -19,7 +23,9 @@ Required session capabilities must be proven on the actual destination session;
|
|
|
19
23
|
an origin catalog or transferred credentials cannot establish them.
|
|
20
24
|
Exclusions with reasons are supplied in input.exclusions.hosts/routes.
|
|
21
25
|
Use sample or sample-recommend for bounded collection.
|
|
22
|
-
|
|
26
|
+
Plan reports each term pass/fail/unknown/n/a with evidence; counts only, no authority.
|
|
27
|
+
intakeRouting gates automatic decisions only; missing means false.
|
|
28
|
+
Exit codes: 0 recommendation/plan/help, 1 input/config error, 2 no executable route or hold.
|
|
23
29
|
`;
|
|
24
30
|
|
|
25
31
|
const fail = (code) => { throw new Error(code); };
|
|
@@ -35,26 +41,29 @@ function defaultConfigPath() {
|
|
|
35
41
|
|
|
36
42
|
export async function main(argv) {
|
|
37
43
|
try {
|
|
38
|
-
if (argv.length === 1 && argv[0] === '--help')
|
|
44
|
+
if ((argv.length === 1 && argv[0] === '--help')
|
|
45
|
+
|| (argv.length === 2 && argv[0] === 'plan' && argv[1] === '--help')) {
|
|
39
46
|
process.stdout.write(help + sampleHelp);
|
|
40
47
|
return 0;
|
|
41
48
|
}
|
|
42
49
|
if (['sample', 'sample-recommend'].includes(argv[0])) return await sampleMain(argv, defaultConfigPath());
|
|
43
|
-
if (argv[0]
|
|
50
|
+
if (!['recommend', 'plan'].includes(argv[0])) fail('unexpected-command');
|
|
51
|
+
const planning = argv[0] === 'plan';
|
|
44
52
|
const args = {};
|
|
45
53
|
for (let i = 1; i < argv.length; i++) {
|
|
46
54
|
const flag = argv[i];
|
|
47
|
-
if (!['--input', '--now', '--task', '--config', '--config-digest', '--json'].includes(flag)) fail('unexpected-argument');
|
|
55
|
+
if (!['--input', '--facts', '--now', '--task', '--config', '--config-digest', '--json'].includes(flag)) fail('unexpected-argument');
|
|
48
56
|
if (Object.hasOwn(args, flag)) fail('duplicate-argument');
|
|
49
57
|
if (flag === '--json') { args[flag] = true; continue; }
|
|
50
58
|
const value = argv[++i];
|
|
51
59
|
if (!value?.trim() || value.startsWith('--')) fail('missing-argument');
|
|
52
60
|
args[flag] = value;
|
|
53
61
|
}
|
|
54
|
-
if (!args['--input'] || !args['--now']) fail('missing-argument');
|
|
62
|
+
if (!(planning ? args['--facts'] : args['--input']) || !args['--now']) fail('missing-argument');
|
|
63
|
+
if (planning ? args['--input'] || args['--task'] : args['--facts']) fail('unexpected-argument');
|
|
55
64
|
if (!/^\d+$/.test(args['--now'])) fail('evaluation-time');
|
|
56
65
|
const now = Number(args['--now']);
|
|
57
|
-
const input = readInput(args['--input']);
|
|
66
|
+
const input = readInput(planning ? `${args['--facts']}/input.json` : args['--input']);
|
|
58
67
|
if (!input || typeof input !== 'object' || Array.isArray(input) || input.schemaVersion !== 1) fail('schema-version: input');
|
|
59
68
|
let configText;
|
|
60
69
|
const configPath = args['--config'] ?? defaultConfigPath();
|
|
@@ -66,11 +75,11 @@ export async function main(argv) {
|
|
|
66
75
|
parseFleetConfig(configText, configDigest);
|
|
67
76
|
if (input.configDigest !== undefined && input.configDigest !== configDigest) fail('config-digest-mismatch');
|
|
68
77
|
if (input.configText !== undefined && input.configText !== configText) fail('config-snapshot-mismatch');
|
|
69
|
-
const result = recommend({ ...input, configText, configDigest,
|
|
78
|
+
const result = (planning ? planIntake : recommend)({ ...input, configText, configDigest,
|
|
70
79
|
request: args['--task'] ? { ...input.request, task: args['--task'] } : input.request }, now);
|
|
71
|
-
process.stdout.write(args['--json'] ? `${JSON.stringify(result)}\n`
|
|
80
|
+
process.stdout.write(args['--json'] || planning ? `${JSON.stringify(result)}\n`
|
|
72
81
|
: `${result.stage}: ${result.selected?.hostId ?? 'no host'} (${result.reason})\n`);
|
|
73
|
-
return result.selected ? 0 : 2;
|
|
82
|
+
return planning ? result.disposition === 'hold' ? 2 : 0 : result.selected ? 0 : 2;
|
|
74
83
|
} catch (error) {
|
|
75
84
|
process.stderr.write(`${JSON.stringify({ error: { code: error.message.split(':')[0], message: error.message } })}\n`);
|
|
76
85
|
return 1;
|
|
@@ -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
|
-
|
|
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,
|
|
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)
|
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import { managementKey } from './hub-secret.js';
|
|
2
|
+
|
|
3
|
+
// Null alone is ambiguous. Accept only corroborated weekly metadata, never plan names.
|
|
4
|
+
function claudeWeeklyOnly(usage, now) {
|
|
5
|
+
const weekly = usage.seven_day;
|
|
6
|
+
const percent = (value) => Number.isFinite(value) && value >= 0 && value <= 100;
|
|
7
|
+
const reset = (value) => typeof value === 'string' && Number.isFinite(Date.parse(value))
|
|
8
|
+
&& Date.parse(value) > now && Date.parse(value) - now <= 604800000;
|
|
9
|
+
if (usage.five_hour !== null || Object.hasOwn(usage, 'error') || Object.hasOwn(usage, 'errors')
|
|
10
|
+
|| !percent(weekly?.utilization) || !reset(weekly?.resets_at) || !Array.isArray(usage.limits)
|
|
11
|
+
|| usage.seven_day_opus != null || usage.seven_day_sonnet != null) return false;
|
|
12
|
+
const aggregate = usage.limits.filter((w) => w?.kind === 'weekly_all');
|
|
13
|
+
return aggregate.length === 1 && usage.limits.every((w) => {
|
|
14
|
+
if (!w || w.group !== 'weekly' || typeof w.is_active !== 'boolean' || !percent(w.percent)
|
|
15
|
+
|| !reset(w.resets_at)) return false;
|
|
16
|
+
if (w.kind === 'weekly_all') return w.is_active === true && w.scope === null
|
|
17
|
+
&& w.percent === weekly.utilization && w.resets_at === weekly.resets_at;
|
|
18
|
+
// A session row contradicts absence even when inactive. Unknown limits also hold.
|
|
19
|
+
return w.kind === 'weekly_scoped' && typeof w.scope?.model?.display_name === 'string'
|
|
20
|
+
&& w.scope.model.display_name.trim().length > 0 && w.scope.surface === null;
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
2
24
|
// Read-only subset of T3 0.1.3 makeCliproxyApi. Never fetch token files or reset credits.
|
|
3
25
|
async function management(config, path, body) {
|
|
4
26
|
const base = new URL(config.url.endsWith('/') ? config.url : `${config.url}/`);
|
|
@@ -54,10 +76,15 @@ async function accountUsage(config, account, now) {
|
|
|
54
76
|
label: `Weekly · ${w.scope?.model?.display_name ?? ''}`, usedPercent: w.percent, ...(w.resets_at == null ? {} : { resetsAt: w.resets_at }), windowDurationMins: 10080 });
|
|
55
77
|
}
|
|
56
78
|
}
|
|
57
|
-
|
|
58
|
-
|
|
79
|
+
let weeklyOnly;
|
|
80
|
+
if (driver === 'codex' && usage.rate_limit?.primary_window?.limit_window_seconds === 604800
|
|
81
|
+
&& usage.rate_limit.secondary_window == null && windows.length === 1 && windows[0].kind === 'weekly') {
|
|
82
|
+
weeklyOnly = 'verified Codex weekly-only response';
|
|
83
|
+
} else if (driver === 'claudeAgent' && claudeWeeklyOnly(usage, now)) {
|
|
84
|
+
weeklyOnly = 'verified Claude weekly-only response';
|
|
85
|
+
}
|
|
59
86
|
return { ...base, usageLimits: { checkedAt, windows,
|
|
60
|
-
...(weeklyOnly ? { notApplicable: { session:
|
|
87
|
+
...(weeklyOnly ? { notApplicable: { session: weeklyOnly } } : {}) } };
|
|
61
88
|
} catch {
|
|
62
89
|
return { ...base, usageLimits: { checkedAt, windows: [], unavailable: { reason: 'probeFailed' } } };
|
|
63
90
|
}
|
|
@@ -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
|
|
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
|
|
78
|
-
|
|
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
|
-
|
|
9
|
-
|
|
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
|
-
|
|
33
|
-
|
|
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.
|
|
249
|
-
|
|
250
|
-
preserving and reading back
|
|
251
|
-
private evidence archive
|
|
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
|
-
|
|
262
|
-
|
|
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
|
|
272
|
-
`FINDINGS`
|
|
273
|
-
|
|
274
|
-
|
|
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`
|
|
279
|
-
`repairs` once and counts once toward
|
|
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
|
-
|
|
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
|
|
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:**
|
|
182
|
-
|
|
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
|
-
|
|
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.
|
|
23
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
71
|
-
|
|
72
|
-
|
|
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`.
|