axstack 0.62.0 → 0.64.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/README.md CHANGED
@@ -94,6 +94,8 @@ and [guides](docs/guides.md) for features, reviews, watches, debugging and relea
94
94
  Explanations default to checked inline T3 pages above a short reply.
95
95
  Use Anatomy only on an explicit isometric or physical-object figure request.
96
96
  Every Explain visual is authored and independently reviewed; plain prose stays proportional.
97
+ [Architecture diagrams](skills/axstack-explain/references/architecture-diagram.md) add scout grounding,
98
+ conditional research, specialist authorship and review by a different provider than the actual author.
97
99
 
98
100
  ## How work stays controlled
99
101
 
@@ -313,7 +313,7 @@ in saved capabilities. The single-provider presets configure the checker and
313
313
  keep X research as an intentional absence. Their
314
314
  unavailable adviser and round-2 seat remain explicit same-provider
315
315
  `model: null` roles, which do not make installation unready;
316
- Align and Spec still hold until both Astra and Opus can return independent
316
+ Align and Spec still hold until both Codex and Claude advisers can return independent
317
317
  receipts. Every brainstorm runs a light arena across configured families.
318
318
  Use judges only for Rung 2 hard-to-reverse choices: round 1 needs Opus; round 2,
319
319
  if invoked, needs escalation Fable and Astra; a required seat that is unavailable
package/docs/workflows.md CHANGED
@@ -43,6 +43,11 @@ Direct routes need no spec ceremony:
43
43
  is optional for these and retains other visual authorship, including Anatomy.
44
44
  Every visual is independently reviewed by `axstack-explainer-review`;
45
45
  interactive pages receive a verifier pass.
46
+ [Architecture and system-map diagrams](../skills/axstack-explain/references/architecture-diagram.md)
47
+ require scout grounding, research when external facts are needed, delegated
48
+ `axstack-explainer` authorship, and exact-byte review from a different provider
49
+ than the actual author before the driver renders. Single-provider presets hold
50
+ for a user routing choice; ordinary diagrams keep their existing path.
46
51
  Whole-work understanding and defense covers high-level flow, decisions,
47
52
  data/state, misbehaviour at trust boundaries and visible failure, with open
48
53
  evidence gaps. Narrow questions stay proportional.
@@ -127,11 +132,11 @@ under `profiles/presets/` each contain exactly
127
132
  The current chat drives on whatever model runs it; no preset carries a driver
128
133
  role.
129
134
 
130
- | Preset | Author | Ordered peer reviewers | Astra / Opus advisers | Auditor |
135
+ | Preset | Author | Ordered peer reviewers | Codex / Claude advisers | Auditor |
131
136
  | --- | --- | --- | --- | --- |
132
- | `mixed` | Sol high | Sol high; Opus medium | Astra high / Opus xhigh | Sonnet high + Sol high |
137
+ | `mixed` | Sol high | Sol high; Opus medium | Astra high / Fable 5.2 high | Sonnet high + Sol high |
133
138
  | `codex-only` | Sol high | Sol high; Luna xhigh | Astra high / unavailable | Luna xhigh + Sol high |
134
- | `claude-only` | Opus medium | Opus medium; Sonnet medium | unavailable / Opus xhigh | Sonnet medium (Sol absent) |
139
+ | `claude-only` | Opus medium | Opus medium; Sonnet medium | unavailable / Fable 5.2 high | Sonnet medium (Sol absent) |
135
140
 
136
141
  In `mixed` and `claude-only`, `axstack-research-requirements`,
137
142
  `axstack-research-code`, `axstack-research-web`, and `axstack-explore-execution`
@@ -157,8 +162,9 @@ keeps delegated authorship; the reviewer covers every Explain visual. The existi
157
162
  full-access mode; its read-only browser verification duties stay unchanged.
158
163
  An unavailable model or effort holds without substitution.
159
164
  In `claude-only`, `axstack-auditor` uses the Claude Sonnet class at medium effort.
160
- Fable escalation starts at high in mixed/claude-only; the Opus adviser and arena
161
- judge retain xhigh.
165
+ The Claude adviser `axstack-advisor-claude` pins `claude-fable-5-2` with class
166
+ `fable` at high effort in mixed/claude-only; missing that ID or high effort holds
167
+ without substitution. Fable escalation starts at high in mixed/claude-only; the Opus arena judge retains xhigh.
162
168
  The `-sol` research-code and explore-execution seats use Terra high in `mixed`
163
169
  and Sol high in `codex-only`; the auditor pair stays Sol high in both.
164
170
  `claude-only` records each as intentionally absent. Their stable role IDs remain
@@ -252,12 +258,12 @@ for explicit ownership transfer.
252
258
  ## Phases
253
259
 
254
260
  - `axstack-align` maps facts and dependencies, asks prioritized questions, and
255
- consults Astra and Opus independently with the same bounded evidence and
261
+ consults the Codex and Claude advisers independently with the same bounded evidence and
256
262
  question. It synthesizes disagreements and reuses unchanged receipts. For a
257
263
  Rung 1 or 2 design question it loads `axstack-brainstorm` inline and reuses
258
264
  its receipt instead of consulting twice; Align owns the interview.
259
265
  - `axstack-brainstorm` validates an approach standalone or inline in the driver,
260
- report-only. Every invocation compares independent Astra, Opus and Grok
266
+ report-only. Every invocation compares independent Astra, Fable 5.2 and Grok
261
267
  candidates, including premise and smallest-change/do-nothing
262
268
  checks. The driver scores, picks and grafts; Rung 1 uses no judges. At Rung 2,
263
269
  `axstack-arena-judge-opus` judges round 1; disagreement on the base or caller
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axstack",
3
- "version": "0.62.0",
3
+ "version": "0.64.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",
@@ -2,22 +2,23 @@
2
2
  "version": 1,
3
3
  "roles": [
4
4
  {
5
- "id": "axstack-advisor-astra",
6
- "name": "Axstack Astra adviser (unavailable)",
5
+ "id": "axstack-advisor-codex",
6
+ "name": "Axstack Codex adviser (Astra) (unavailable)",
7
7
  "provider": "claude",
8
8
  "model": null,
9
9
  "modeId": "bypassPermissions",
10
10
  "thinkingOptionId": "high",
11
- "notes": "Required independent Astra adviser for Align, Spec, and unresolved consequential decisions; unavailable in claude-only. The explicit null holds Align and Spec without provider substitution."
11
+ "notes": "Required independent Codex adviser (Astra high) for Align, Spec, and unresolved consequential decisions; unavailable in claude-only. The explicit null holds Align and Spec without provider substitution."
12
12
  },
13
13
  {
14
- "id": "axstack-advisor-opus",
15
- "name": "Axstack Opus adviser",
14
+ "id": "axstack-advisor-claude",
15
+ "name": "Axstack Claude adviser (Fable 5.2)",
16
16
  "provider": "claude",
17
17
  "modeId": "bypassPermissions",
18
- "thinkingOptionId": "xhigh",
19
- "notes": "Independent Opus adviser for Align, Spec, and debug L1; authors the Claude arena candidate. Same bounded evidence and question as Astra; reuse only unchanged receipts. T3 resolves Claude classes from saved capabilities; a Claude rejection holds.",
20
- "modelClass": "opus"
18
+ "thinkingOptionId": "high",
19
+ "notes": "Independent Claude adviser (Fable 5.2 high) for Align, Spec, and debug L1; authors the Claude arena candidate. Same bounded evidence and question as the Codex adviser; reuse only unchanged receipts. T3 uses the exact claude-fable-5-2 pin from saved capabilities; a Claude rejection holds. Missing model or high effort holds without substitution.",
20
+ "modelClass": "fable",
21
+ "model": "claude-fable-5-2"
21
22
  },
22
23
  {
23
24
  "id": "axstack-owner",
@@ -2,22 +2,22 @@
2
2
  "version": 1,
3
3
  "roles": [
4
4
  {
5
- "id": "axstack-advisor-astra",
6
- "name": "Axstack Astra adviser",
5
+ "id": "axstack-advisor-codex",
6
+ "name": "Axstack Codex adviser (Astra)",
7
7
  "provider": "codex",
8
8
  "modeId": "full-access",
9
9
  "thinkingOptionId": "high",
10
- "notes": "Independent Astra adviser for Align, Spec, and unresolved consequential decisions. Receives the same bounded evidence and question as Opus; reuse only unchanged receipts.",
10
+ "notes": "Independent Codex adviser (Astra high) for Align, Spec, and unresolved consequential decisions. Receives the same bounded evidence and question as the Claude adviser; reuse only unchanged receipts.",
11
11
  "modelClass": "astra"
12
12
  },
13
13
  {
14
- "id": "axstack-advisor-opus",
15
- "name": "Axstack Opus adviser (unavailable)",
14
+ "id": "axstack-advisor-claude",
15
+ "name": "Axstack Claude adviser (unavailable)",
16
16
  "provider": "codex",
17
17
  "model": null,
18
18
  "modeId": "full-access",
19
19
  "thinkingOptionId": "xhigh",
20
- "notes": "Opus adviser intentionally absent in codex-only; the explicit null holds Align and Spec without substitution."
20
+ "notes": "Claude adviser intentionally absent in codex-only; the explicit null holds Align and Spec without substitution."
21
21
  },
22
22
  {
23
23
  "id": "axstack-owner",
@@ -2,22 +2,23 @@
2
2
  "version": 1,
3
3
  "roles": [
4
4
  {
5
- "id": "axstack-advisor-astra",
6
- "name": "Axstack Astra adviser",
5
+ "id": "axstack-advisor-codex",
6
+ "name": "Axstack Codex adviser (Astra)",
7
7
  "provider": "codex",
8
8
  "modeId": "full-access",
9
9
  "thinkingOptionId": "high",
10
- "notes": "Independent Astra adviser for Align, Spec, and unresolved consequential decisions. Receives the same bounded evidence and question as Opus; reuse only unchanged receipts.",
10
+ "notes": "Independent Codex adviser (Astra high) for Align, Spec, and unresolved consequential decisions. Receives the same bounded evidence and question as the Claude adviser; reuse only unchanged receipts.",
11
11
  "modelClass": "astra"
12
12
  },
13
13
  {
14
- "id": "axstack-advisor-opus",
15
- "name": "Axstack Opus adviser",
14
+ "id": "axstack-advisor-claude",
15
+ "name": "Axstack Claude adviser (Fable 5.2)",
16
16
  "provider": "claude",
17
17
  "modeId": "bypassPermissions",
18
- "thinkingOptionId": "xhigh",
19
- "notes": "Independent Opus adviser for Align, Spec, and debug L1; authors the Claude arena candidate. Same bounded evidence and question as Astra; reuse only unchanged receipts. T3 resolves Claude classes from saved capabilities; a Claude rejection holds.",
20
- "modelClass": "opus"
18
+ "thinkingOptionId": "high",
19
+ "notes": "Independent Claude adviser (Fable 5.2 high) for Align, Spec, and debug L1; authors the Claude arena candidate. Same bounded evidence and question as the Codex adviser; reuse only unchanged receipts. T3 uses the exact claude-fable-5-2 pin from saved capabilities; a Claude rejection holds. Missing model or high effort holds without substitution.",
20
+ "modelClass": "fable",
21
+ "model": "claude-fable-5-2"
21
22
  },
22
23
  {
23
24
  "id": "axstack-owner",
@@ -60,7 +60,7 @@ The current T3 thread is the driver, whatever model runs it; there is no driver
60
60
  profile. Record the driver's provider and model in the run record.
61
61
 
62
62
  For Align and Spec, the driver forms an independent assessment first, then
63
- consults `axstack-advisor-astra` and `axstack-advisor-opus` independently with
63
+ consults `axstack-advisor-codex` and `axstack-advisor-claude` independently with
64
64
  the same bounded evidence and question. The exception covers every brainstorm: the driver frames
65
65
  its brief and rubric and assesses only after the candidates and required judge
66
66
  rounds return. The driver synthesizes disagreements,
@@ -76,7 +76,7 @@ serious-risk contracts override that rule whenever their conditions arise. A
76
76
  configured but unavailable adviser holds debug L1; an unavailable escalation seat holds L2 without substitution.
77
77
  Reuse a debug receipt while its evidence packet is unchanged.
78
78
 
79
- High-stakes decisions require `axstack-advisor-astra` and
79
+ High-stakes decisions require `axstack-advisor-codex` and
80
80
  `axstack-escalation-fable` plain AGREE plus the driver's accepted assessment. Resolve disagreement with bounded checks; silence and an
81
81
  unavailable model do not authorize fallback. Ordinary work uses the configured
82
82
  author and reviewer roles selected by review mode and the routing snapshot. The
@@ -90,7 +90,7 @@ another preset or inventing a route. There is no silent fallback.
90
90
  Use `axstack-escalation-fable` only for arena round 2, high-stakes decisions,
91
91
  or when two attempts at the same named goal fail a stated acceptance check
92
92
  (including debug L2 or a spec decision rejected twice). It also applies when
93
- Astra and Opus still contradict after one reconciliation with no safe
93
+ the Codex and Claude advisers still contradict after one reconciliation with no safe
94
94
  discriminating check. A bare "stuck" claim needs pointers to two failed attempts;
95
95
  setup slips and new user requirements do not count. Each use starts a fresh
96
96
  session that never reuses an adviser or candidate context. Escalation never
@@ -139,14 +139,14 @@ Never advise review-manager pass holds; the manager keeps its flagged-thread pat
139
139
  Before advice the driver closes the gap where possible under existing rules,
140
140
  then forms its own assessment.
141
141
  This pre-advice gap-closing never spends the one advice-driven action.
142
- In `mixed`, consult `axstack-advisor-astra` and `axstack-advisor-opus`
142
+ In `mixed`, consult `axstack-advisor-codex` and `axstack-advisor-claude`
143
143
  independently with the same bounded evidence packet and question.
144
144
  The evidence packet and question omit the driver's own pick.
145
145
  Advisers never cross-read one another.
146
146
  Single-provider presets use the one configured adviser and record the other
147
147
  as an intentional absence.
148
148
 
149
- For high-stakes holds, use `axstack-advisor-astra` and `axstack-escalation-fable`
149
+ For high-stakes holds, use `axstack-advisor-codex` and `axstack-escalation-fable`
150
150
  plain AGREE after bounded checks under the existing high-stakes contract
151
151
  instead of the ordinary seats.
152
152
  For a single-provider high-stakes hold, pause for an explicit user decision
@@ -42,8 +42,8 @@ available or change provider/model/effort/options/runtime authority.
42
42
  The selected role ID must equal scope.roleId in dispatch-plan.
43
43
  No engineering author, code reviewer, owner or arbitrary role can use this scope.
44
44
 
45
- Brainstorm permits only candidate seats Astra (`axstack-advisor-astra`),
46
- Opus (`axstack-advisor-opus`), Grok (`axstack-arena-candidate-grok`) and judge
45
+ Brainstorm permits only candidate seats Astra (`axstack-advisor-codex`),
46
+ Fable 5.2 (`axstack-advisor-claude`), Grok (`axstack-arena-candidate-grok`) and judge
47
47
  seats Opus (`axstack-arena-judge-opus`), Fable (`axstack-escalation-fable`), Astra
48
48
  (`axstack-arena-judge-astra`). All outputs are report-only; never grant
49
49
  implementation or spec approval. These seats are excluded from Research,
@@ -80,17 +80,17 @@ a degraded receipt, not evidence of a completed audit.
80
80
  | research | Source roles listed above | Both auditors | Cited, bounded research; no engineering |
81
81
  | explain, publish | Source and article roles listed above | Both auditors | Exact-byte review; publication still needs authority |
82
82
  | brainstorm | Six candidate/judge seats listed above | Both auditors | Independent report-only arena and applicable rounds |
83
- | align | `axstack-advisor-astra`, `axstack-advisor-opus` | Both auditors | Pre-repository scope advice; stop before execution |
83
+ | align | `axstack-advisor-codex`, `axstack-advisor-claude` | Both auditors | Pre-repository scope advice; stop before execution |
84
84
  | improve | `axstack-research-code`, `axstack-research-code-sol`, `axstack-ui-verifier`, `axstack-ui-verifier-sonnet` | Both auditors | Named nonversioned code/UI discovery only; second UI seat only under its dual-run trigger |
85
85
  | audit | `axstack-auditor`, `axstack-auditor-sol` | None; terminal audit | Standalone audit of explicit nonrepo evidence; only assigned `audit.md` is writable |
86
- | advice | `axstack-advisor-astra`, `axstack-advisor-opus`, `axstack-escalation-fable` | None; audit retains the supported parent's workflow | Only eligible existing shared advice; Fable retains its trigger |
86
+ | advice | `axstack-advisor-codex`, `axstack-advisor-claude`, `axstack-escalation-fable` | None; audit retains the supported parent's workflow | Only eligible existing shared advice; Fable retains its trigger |
87
87
 
88
88
  The advice workflow permits only existing advised-hold, high-stakes or bounded
89
89
  escalation consultations under [Standing contracts](contracts.md). It never
90
90
  waives the parent phase's repository, store or tracker prerequisites. Record
91
91
  the actual parent phase, qualifying trigger, evidence and question in the brief.
92
- Ordinary advised holds use Astra/Opus; high-stakes use Astra/Fable; other Fable
93
- uses require the existing bounded escalation trigger and a fresh session.
92
+ Ordinary advised holds use the Codex/Claude advisers; high-stakes use Astra/Fable;
93
+ other escalation-seat uses require the existing bounded escalation trigger and a fresh session.
94
94
  Never relabel arbitrary work as advice. Required seats and missing models hold
95
95
  without substitution. The helper checks the role matrix; the driver must verify
96
96
  these conditional duties, as with arena rounds.
@@ -32,10 +32,11 @@ Engineering authors and code reviewers cannot acquire this artifact authority.
32
32
  | `mixed` | `claude/opus` | `axstack-reviewer-primary` (`codex/sol` high) |
33
33
  | `codex-only` | `codex/sol` | `axstack-reviewer-secondary` (`codex/terra` high) |
34
34
  | `claude-only` | `claude/opus` | `axstack-reviewer-secondary` (`claude/sonnet` medium) |
35
- - `axstack-advisor-astra`/`axstack-advisor-opus` advise and author candidates;
35
+ - `axstack-advisor-codex` (Astra high in mixed/codex-only) and
36
+ `axstack-advisor-claude` (Fable 5.2 high in mixed/claude-only) advise and author candidates;
36
37
  `axstack-arena-candidate-grok` adds a family.
37
38
  `axstack-arena-judge-opus` judges round 1; `axstack-escalation-fable`/`axstack-arena-judge-astra` judge round 2.
38
- Fable starts at high effort in mixed/claude-only.
39
+ Fable escalation starts at high effort in mixed/claude-only.
39
40
  High-stakes/trigger: fresh [contract](contracts.md) session.
40
41
  `axstack-auditor` audits; `axstack-checker` reports discrepancies.
41
42
  - `axstack-explainer`: for Explain, the driver authors ordinary inline HTML and
@@ -15,6 +15,14 @@ acts as its lane's driver; read-only observers only report leftovers. Uncertain
15
15
  ownership, liveness or evidence holds only the affected resource.
16
16
  Record each decision and native readback in the private run record.
17
17
 
18
+ ## Shared Git metadata
19
+
20
+ Workers never write the repository's shared Git metadata (`.git/config`,
21
+ `.git/hooks`, `.git/info`, or worktree git files).
22
+ Use per-command `-c` overrides instead.
23
+ Driver Git commands in a worktree a worker has written must pass
24
+ `-c core.hooksPath=/dev/null -c core.fsmonitor=false`.
25
+
18
26
  ## Safe deletion
19
27
 
20
28
  Before use, commands must scope `TMPDIR` to an owned 0700 directory under the system temp directory, never under `$HOME`, named from the dispatch key and recorded in the receipt.
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env bun
2
+ import { gitArgv } from './git-argv.js';
2
3
  import {
3
4
  chmod,
4
5
  lstat,
@@ -281,7 +282,7 @@ async function verifyRetirementArchive(archiveRoot, archiveDir, identity, files,
281
282
  }
282
283
 
283
284
  function gitOutput(sourceRoot, args) {
284
- const result = Bun.spawnSync(['git', '-C', sourceRoot, ...args], { stdout: 'pipe', stderr: 'pipe' });
285
+ const result = Bun.spawnSync(gitArgv('-C', sourceRoot, ...args), { stdout: 'pipe', stderr: 'pipe' });
285
286
  if (result.exitCode !== 0) {
286
287
  fail(`git ${args.join(' ')} failed: ${result.stderr.toString().trim() || `exit ${result.exitCode}`}`);
287
288
  }
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env bun
2
+ import { gitArgv } from './git-argv.js';
2
3
  // Read only the index. No hooks, configuration writes or working-tree reads.
3
4
  import { readFileSync } from 'node:fs';
4
5
 
@@ -6,7 +7,7 @@ const ignoredPath = /(^|\/)(?:[^/]*\.lockb?|package-lock\.json|pnpm-lock\.yaml|y
6
7
  const asset = /\.(?:svg|png|jpe?g|gif|webp|avif|ico|bmp|tiff?|pdf|woff2?|ttf|otf|eot|mp[34]|wav|ogg|flac|webm|mov|avi|zip|gz|bz2|xz|7z|rar|tar|exe|dll|so|dylib|wasm|bin|class|jar|pyc|sqlite3?|db)$/i;
7
8
  let root = process.cwd();
8
9
  function git(...args) {
9
- const result = Bun.spawnSync(['git', '--literal-pathspecs', ...args], { cwd: root });
10
+ const result = Bun.spawnSync(gitArgv('--literal-pathspecs', ...args), { cwd: root });
10
11
  if (result.exitCode !== 0) throw Error(result.stderr.toString().trim());
11
12
  return result.stdout.toString();
12
13
  }
@@ -3,7 +3,7 @@ const sourceRoles = ['axstack-research-requirements', 'axstack-research-code', '
3
3
  'axstack-explore-execution', 'axstack-explore-execution-sol',
4
4
  'axstack-research-web', 'axstack-research-web-sol', 'axstack-research-x', 'axstack-diligence'];
5
5
  const articleRoles = ['axstack-explainer', 'axstack-explainer-review', 'axstack-ui-verifier', 'axstack-ui-verifier-sonnet'];
6
- const brainstormRoles = ['axstack-advisor-astra', 'axstack-advisor-opus', 'axstack-arena-candidate-grok',
6
+ const brainstormRoles = ['axstack-advisor-codex', 'axstack-advisor-claude', 'axstack-arena-candidate-grok',
7
7
  'axstack-arena-judge-opus', 'axstack-escalation-fable', 'axstack-arena-judge-astra'];
8
8
  const auditRoles = ['axstack-auditor', 'axstack-auditor-sol'];
9
9
  const workflowRoles = {
@@ -11,11 +11,11 @@ const workflowRoles = {
11
11
  explain: [...sourceRoles, ...articleRoles, ...auditRoles],
12
12
  publish: [...sourceRoles, ...articleRoles, ...auditRoles],
13
13
  brainstorm: [...brainstormRoles, ...auditRoles],
14
- align: ['axstack-advisor-astra', 'axstack-advisor-opus', ...auditRoles],
14
+ align: ['axstack-advisor-codex', 'axstack-advisor-claude', ...auditRoles],
15
15
  improve: ['axstack-research-code', 'axstack-research-code-sol', 'axstack-ui-verifier',
16
16
  'axstack-ui-verifier-sonnet', ...auditRoles],
17
17
  audit: auditRoles,
18
- advice: ['axstack-advisor-astra', 'axstack-advisor-opus', 'axstack-escalation-fable'],
18
+ advice: ['axstack-advisor-codex', 'axstack-advisor-claude', 'axstack-escalation-fable'],
19
19
  };
20
20
  export const isArtifact = (request) => request?.scope?.kind === 'local-artifact';
21
21
  const path = (value) => typeof value === 'string' && value.startsWith('/') && value !== '/'
@@ -0,0 +1,4 @@
1
+ // Disable repository-controlled hooks and fsmonitor before any Git subcommand.
2
+ export function gitArgv(...args) {
3
+ return ['git', '--no-optional-locks', '-c', 'core.hooksPath=/dev/null', '-c', 'core.fsmonitor=false', ...args];
4
+ }
@@ -1,3 +1,4 @@
1
+ import { gitArgv } from './git-argv.js';
1
2
  import { existsSync } from 'node:fs';
2
3
 
3
4
  const lockfiles = ['bun.lock', 'bun.lockb', 'package-lock.json', 'npm-shrinkwrap.json', 'pnpm-lock.yaml', 'yarn.lock'];
@@ -41,7 +42,7 @@ function optionsFrom(argv) {
41
42
  return options;
42
43
  }
43
44
 
44
- const command = (...args) => ['git', '--no-optional-locks', '-c', 'core.attributesFile=/dev/null', ...args];
45
+ const command = (...args) => gitArgv('-c', 'core.attributesFile=/dev/null', ...args);
45
46
  function run(argv, input) {
46
47
  const result = Bun.spawnSync(argv, { stdin: input === undefined ? 'ignore' : new TextEncoder().encode(input),
47
48
  stdout: 'pipe', stderr: 'pipe', env: { ...process.env, GIT_ATTR_NOSYSTEM: '1' } });
@@ -1,3 +1,4 @@
1
+ import { gitArgv } from './git-argv.js';
1
2
  import { chmodSync, closeSync, lstatSync, mkdirSync, mkdtempSync, openSync, realpathSync, rmSync, writeFileSync, writeSync } from 'node:fs';
2
3
 
3
4
  const installs = {
@@ -127,10 +128,9 @@ export async function executeDeclared(repo, revision, paths, criteria, manager,
127
128
  const probe = await run('network-probe', argv, scratch, argv);
128
129
  if (probe.exitCode === 0 && !probe.timedOut && !probe.error) result.network = 'isolated';
129
130
  }
130
- const git = ['git', '--no-optional-locks', '-c', 'core.hooksPath=/dev/null', '-c', 'core.fsmonitor=false'];
131
- const clone = await run('clone', [...git, 'clone', '--no-hardlinks', '--no-checkout', '--', realpathSync(repo), cwd], scratch);
131
+ const clone = await run('clone', gitArgv('clone', '--no-hardlinks', '--no-checkout', '--', realpathSync(repo), cwd), scratch);
132
132
  if (clone.exitCode !== 0 || clone.timedOut) throw new Error(`clone failed; see ${clone.logPath}`);
133
- const checkout = await run('checkout', [...git, '-C', cwd, 'checkout', '--detach', revision], scratch);
133
+ const checkout = await run('checkout', gitArgv('-C', cwd, 'checkout', '--detach', revision), scratch);
134
134
  if (checkout.exitCode !== 0 || checkout.timedOut) throw new Error(`checkout failed; see ${checkout.logPath}`);
135
135
  const install = await run('install', [manager.name, ...installs[manager.name]], cwd);
136
136
  if (install.exitCode !== 0 || install.timedOut) {
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env bun
2
+ import { gitArgv } from './git-argv.js';
2
3
  import { readFileSync, mkdirSync, writeFileSync, lstatSync, realpathSync, renameSync, unlinkSync } from 'node:fs';
3
4
  import { executeDeclared } from './readiness-run.js';
4
5
 
@@ -6,7 +7,7 @@ const scriptVersion = '1.1.0';
6
7
  const criteriaVersion = 1;
7
8
 
8
9
  function gitOutput(repo, args, stdin = 'ignore') {
9
- const argv = ['git', '--no-optional-locks', '-c', 'core.hooksPath=/dev/null', '-c', 'core.fsmonitor=false', '-C', repo, ...args];
10
+ const argv = gitArgv('-C', repo, ...args);
10
11
  const result = Bun.spawnSync(argv, { stdout: 'pipe', stderr: 'pipe', stdin });
11
12
  if (result.exitCode !== 0) throw new Error(result.stderr.toString().trim());
12
13
  return result.stdout;
@@ -1,3 +1,4 @@
1
+ import { gitArgv } from './git-argv.js';
1
2
  import { chmodSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, statSync, writeFileSync } from 'node:fs';
2
3
 
3
4
  const help = `Usage: bun scripts/run-init.js --slug <slug> [--date YYYYMMDD]
@@ -41,7 +42,7 @@ function optionsFrom(argv) {
41
42
  }
42
43
 
43
44
  function git(...args) {
44
- const result = Bun.spawnSync(['git', '--no-optional-locks', ...args], { stdout: 'pipe', stderr: 'pipe' });
45
+ const result = Bun.spawnSync(gitArgv(...args), { stdout: 'pipe', stderr: 'pipe' });
45
46
  return result.exitCode === 0 ? result.stdout.toString().trim() : null;
46
47
  }
47
48
 
@@ -85,8 +85,8 @@ return. Reuse valid brainstorm receipts to replace the adviser consult for
85
85
  that question. For other questions, consult advisers only for consequential
86
86
  decisions and disagreements. Never dispatch advisers for every question,
87
87
  routine factual clarification or settled preferences.
88
- For those consequential decisions and disagreements, consult `axstack-advisor-astra` and
89
- `axstack-advisor-opus` independently, without cross-reading, using the same
88
+ For those consequential decisions and disagreements, consult `axstack-advisor-codex` and
89
+ `axstack-advisor-claude` independently, without cross-reading, using the same
90
90
  bounded evidence and question. Each adviser challenges assumptions, edges,
91
91
  omissions, and alternatives; the driver synthesizes disagreements and accepts
92
92
  or rejects each material point with a reason. Use one focused reply when
@@ -177,7 +177,7 @@ approval; record chosen document names and paths once per run.
177
177
  When scope changes runnable behavior, the read-back records a Verification decision.
178
178
  For an applicable `verify-<app>` skill, record the features that cover the change.
179
179
  For a missing skill, the plan always includes `axstack-verify create` as the first PR.
180
- Skipping this first PR requires plain AGREE from both `axstack-advisor-astra` and `axstack-advisor-opus` that a verification skill is unnecessary.
180
+ Skipping this first PR requires plain AGREE from both `axstack-advisor-codex` and `axstack-advisor-claude` that a verification skill is unnecessary.
181
181
  Record both advisers' reason in the Verification decision.
182
182
  2. Classify the result with the shared
183
183
  [proportional scope identity](../axstack/references/routing.md#proportional-scope-identity):
@@ -71,8 +71,8 @@ expanding authority to fill it.
71
71
  Use actual records, never memory:
72
72
 
73
73
  - the approved spec, or the accepted peer, research, or maintenance scope;
74
- - the decision log and configured `axstack-advisor-astra` and
75
- `axstack-advisor-opus` receipts and fresh `axstack-escalation-fable`
74
+ - the decision log and configured `axstack-advisor-codex` and
75
+ `axstack-advisor-claude` receipts and fresh `axstack-escalation-fable`
76
76
  receipts when triggered;
77
77
  - exact git revisions where applicable; owned SHA-256 snapshots for nonrepo evidence;
78
78
  - test and review evidence; and
@@ -100,7 +100,7 @@ counts with denominators plus the evidence behind the count:
100
100
  - Configured adviser coverage across Align, Spec creation, Spec revision,
101
101
  solution design, and unresolved consequential decisions, including
102
102
  independent same-question receipts and disagreement synthesis. Measure
103
- Astra/Opus routine coverage and Astra/Fable high-stakes plain AGREE coverage
103
+ Codex/Claude adviser routine coverage and Astra/Fable high-stakes plain AGREE coverage
104
104
  over eligible uses; record escalation triggers, evidence pointers, and whether
105
105
  the outcome changed.
106
106
  - Debug evidence where `axstack-debug` ran: rung reached, loop command, fix
@@ -9,7 +9,7 @@ Run: <run identity + scope/authority + audit mode (end-of-run | checkpoint)>
9
9
  Baseline: <approved spec rev | peer mode | research mode | maintenance scope | nonrepo report scope + source SHA-256>
10
10
  Acceptance: <passed / failed / unverified + test + SHA traces>
11
11
  Steps: <completed / deviated + why + approval per deviation>
12
- Advisers: <Astra/Opus configured coverage / eligible uses + same-question receipts; Astra/Fable high-stakes AGREE coverage / eligible uses>
12
+ Advisers: <Codex/Claude adviser configured coverage / eligible uses + same-question receipts; Astra/Fable high-stakes AGREE coverage / eligible uses>
13
13
  Decisions: <escalation trigger + evidence pointers + outcome changed yes/no, or n/a>
14
14
  Debug: <rung reached + loop command + fix attempts + adviser and investigator receipts + isolation evidence | n/a>
15
15
  TDD: <applicable evidence path: normal real red-green | accepted structure-preserving old revision green before edits + same checks new revision green | F-repair base-green/removal-inversion-red/rewording-green evidence; absent proof: noncompliance | unavailable records: UNKNOWN with reason>
@@ -11,7 +11,7 @@ hard-to-reverse choices; they replace the critique round for that question.
11
11
  flags as evidence prompts: seeing only opened files, copying the nearest
12
12
  example, taking the shortest path that compiles. Treat them as prompts, not defects. Candidates receive only the brief; the rubric is for judging.
13
13
  2. **Fan out.** Produce one candidate per configured family independently from the same brief,
14
- without cross-reading: `axstack-advisor-astra`, `axstack-advisor-opus`,
14
+ without cross-reading: `axstack-advisor-codex`, `axstack-advisor-claude`,
15
15
  and `axstack-arena-candidate-grok`.
16
16
  Each gives a design, rationale, and rejected alternatives. The driver authors no candidate.
17
17
  The driver drafts no recommendation until every candidate returns.
@@ -105,7 +105,7 @@ before any further probe or attempt.
105
105
  | L0 | entry | driver with bounded packages | phases 1–7; at most one fix attempt through `axstack-implement` |
106
106
  | L1 | the L0 fix attempt failed; or phases 1–3 complete plus at least one discriminating probe (or a recorded reason no safe probe exists) and no hypothesis ranks | the preset's configured advisers, independently, same evidence packet | ranked hypotheses and one investigator brief per hypothesis |
107
107
  | L1 fan-out | driver merges the adviser plans | `axstack-debug-investigator-1..4`, identical packet, distinct briefs, no cross-reading | one receipt per brief |
108
- | L2 | two failed attempts at the same named goal and stated acceptance check (second failure overall); or each fix reveals a new symptom elsewhere | `axstack-advisor-astra` and `axstack-escalation-fable` (fresh session) on architecture, then the user | wrong-architecture finding, bounded refactor proposal, or one bounded next diagnostic action; the user decides before any third attempt |
108
+ | L2 | two failed attempts at the same named goal and stated acceptance check (second failure overall); or each fix reveals a new symptom elsewhere | `axstack-advisor-codex` and `axstack-escalation-fable` (fresh session) on architecture, then the user | wrong-architecture finding, bounded refactor proposal, or one bounded next diagnostic action; the user decides before any third attempt |
109
109
 
110
110
  Permit driver-dispatched bounded safe evidence and probe packages at L0 using
111
111
  existing configured roles. Evidence preparation can help establish the loop;
@@ -86,6 +86,7 @@ Choose the best visual for the concept: flowchart, sequence, state, architecture
86
86
  map, timeline, comparison or bespoke SVG are examples, not a taxonomy.
87
87
  Follow [Fidelity](references/fidelity.md) for every visual.
88
88
  For whole-work understanding or defense, follow [Whiteboard defense](references/whiteboard-defense.md).
89
+ For architecture and system-map diagram requests, follow [Architecture diagrams](references/architecture-diagram.md).
89
90
  The driver authors ordinary inline HTML and chat Mermaid by default.
90
91
  Use `axstack-explainer` as an optional specialist author with a bounded evidence
91
92
  brief when useful. Keep one writer per visual, including specialist delegation;
@@ -0,0 +1,73 @@
1
+ # Architecture diagrams
2
+
3
+ Apply this mode to diagram requests about how parts fit together, who talks to
4
+ whom, and where risks sit. Ordinary diagrams keep Explain's existing path.
5
+ This mode specializes authorship and review for architecture/system maps in any
6
+ requested format; Explain still owns its 700-word cap, claim labels and delivery.
7
+ Whole-work defense also follows the linked whiteboard-defense route in Explain §2.
8
+
9
+ ## 1. Bound and ground
10
+
11
+ The driver first bounds the question under Explain §1.
12
+ After the driver bounds the question, require `axstack-scout` grounding before
13
+ research or authorship. Follow [Scout](../../axstack-scout/SKILL.md) for its
14
+ content identity, required seats and evidence reconciliation.
15
+ Reuse scout evidence only when its inspected content identity is unchanged.
16
+
17
+ After grounding, require `axstack-research` only when the diagram depends on
18
+ external, vendor or platform facts outside the inspected repositories.
19
+ Otherwise the driver records `not needed (<reason>)` for research.
20
+ When research is needed, follow [Research](../../axstack-research/SKILL.md) for
21
+ its source standards, configured branches and required checks.
22
+ Reconcile scout and research evidence before author dispatch.
23
+ Resolve conflicting material claims or label them unknown before design.
24
+
25
+ The driver keeps the source map outside the reader view.
26
+ Follow [Fidelity](fidelity.md) when mapping nodes and edges to evidence and
27
+ marking planned or unknown elements; include supporting evidence for badges,
28
+ markers and legend claims in the map as well.
29
+
30
+ ## 2. Create with one author
31
+
32
+ Before dispatch, follow the [T3 runtime boundary](../../axstack/references/t3-runtime.md)
33
+ and [Role roster](../../axstack/references/role-roster.md) for the selected
34
+ preset's actual bindings and availability.
35
+ Give `axstack-explainer` the reconciled evidence and source map in its author brief.
36
+ Include the bounded question, audience, format, inspected identities and open gaps.
37
+ Require `axstack-explainer` as the one writer of the architecture diagram.
38
+ The driver never authors architecture diagrams.
39
+ Return every repair to the same author.
40
+ The author follows Explain's existing format and design references.
41
+
42
+ ## 3. Review the final artifact
43
+
44
+ After authorship and before delivery, require independent
45
+ `axstack-explainer-review` on the exact final bytes.
46
+ Require the reviewer provider to be different from the actual author provider,
47
+ using session provenance. Record the actual author and reviewer session,
48
+ provider and model alongside the artifact identity; role names alone prove
49
+ neither provenance nor independence.
50
+ Review the full claim set every round, including nodes, edges, badges and
51
+ markers, legend and prior findings.
52
+ Give the reviewer the source map and reconciled evidence so it can reopen the
53
+ sources independently, rather than trusting the author's account.
54
+
55
+ For inline HTML, the driver captures 728px dark and 360px light previews before
56
+ review, bound to SHA-256. The reviewer inspects the driver's 728px dark and
57
+ 360px light previews for design review.
58
+ Follow [Inline pages](inline-pages.md) for exact-byte scans, preview acceptance
59
+ and any interaction verification, and [Visual QA](visual-qa.md) for reviewer
60
+ design checks and other requested artifact formats.
61
+ Every byte change requires fresh review.
62
+
63
+ ## 4. Deliver or hold
64
+
65
+ The driver renders only reviewed bytes after the review passes.
66
+ Follow [Delivery](delivery.md) for repairs, missing evidence or tools, and
67
+ delivery readback; interim prose leaves the requested diagram incomplete.
68
+ If a required seat is unavailable or rejected, hold the diagram and name the
69
+ blocker and resume condition.
70
+ Never substitute a required seat, provider or model.
71
+ Single-provider presets hold for a user routing choice.
72
+ This mode never permits same-provider author and review through Explain's
73
+ session-independence exception.
@@ -113,6 +113,15 @@ Immediately before an actual role dispatch, read and follow the
113
113
  [T3 runtime boundary](../axstack/references/t3-runtime.md). Ordinary local
114
114
  reading and writing does not require that launch reference.
115
115
 
116
+ Before a fresh author dispatch for work bound to an issue or ticket id, the driver
117
+ must search open PRs in the target repository for that id and check closing references
118
+ and PR bodies (e.g. `gh api -X GET search/issues -f q='repo:<target-repo> is:pr is:open <id>'`).
119
+ A match outside the current run holds only that dispatch and requires reporting the PR URL.
120
+ Exempt the current run's recorded PR for repair/resume.
121
+ A failed or incomplete lookup (non-zero exit, `incomplete_results: true`, or
122
+ `total_count` greater than the number of returned items) is unknown and holds only that dispatch.
123
+ Work without an issue/ticket id is unaffected.
124
+
116
125
  Authors must use async `delegate_task` with `isolation:"worktree"`, title = role-labelled dispatch key
117
126
  and stable `clientRequestId` under the runtime contract's fresh-checkout bootstrap,
118
127
  same-child repair and recorded launch fallback rules.
@@ -392,8 +401,8 @@ For each PR:
392
401
  as failing review rounds.
393
402
  Small-path work first escalates to the full path at review round 3.
394
403
  On the full path, on any counted failing review round that leaves `rounds` at 3 or more while
395
- `step-back: unused`, the driver steps back with both `axstack-advisor-astra`
396
- and `axstack-advisor-opus` to assess exactly one extra repair round (round 4
404
+ `step-back: unused`, the driver steps back with both `axstack-advisor-codex`
405
+ and `axstack-advisor-claude` to assess exactly one extra repair round (round 4
397
406
  in the normal case).
398
407
  Load and follow [Round-3 step-back](references/step-back.md).
399
408
  Load and follow [Review-round budgets](../axstack/references/run-record.md#review-round-budgets) before dispatching any repair from the step-back.
@@ -97,7 +97,7 @@ close or reject with concrete evidence. Never punt the decision to a third party
97
97
  Allow at most five ordinary `REQUEST_CHANGES` per PR, counting bot markers
98
98
  on the PR's submitted `CHANGES_REQUESTED` reviews across heads. Do not publish
99
99
  a sixth REQUEST_CHANGES before the adviser panel. Instead dispatch
100
- `axstack-advisor-astra` and `axstack-advisor-opus` independently with the open
100
+ `axstack-advisor-codex` and `axstack-advisor-claude` independently with the open
101
101
  blockers, the author's replies, the delta and the code. Advisers have no
102
102
  cross-read. Both judge whether the explanation or fix justifies approval.
103
103
  Both accept -> APPROVE with one line: advisers accepted the author's explanation.
@@ -61,7 +61,7 @@ Before drafting, load and follow [Independent delivery](../axstack/references/in
61
61
  For those consequential decisions and disagreements and the required draft
62
62
  rounds below, load
63
63
  [T3 runtime](../axstack/references/t3-runtime.md) before dispatching the
64
- configured `axstack-advisor-astra` and `axstack-advisor-opus` independently,
64
+ configured `axstack-advisor-codex` and `axstack-advisor-claude` independently,
65
65
  without cross-reading, with the same bounded evidence and question. The
66
66
  driver synthesizes disagreements. Cache both receipts with the draft and
67
67
  reuse unchanged receipts only while their evidence, scope, and question
@@ -94,7 +94,7 @@ Before drafting, load and follow [Independent delivery](../axstack/references/in
94
94
  An unavailable adviser seat holds the affected phase.
95
95
  4. **Obtain the specification checkpoint.** The driver owns the draft and the
96
96
  user approves it; adviser input cannot grant approval. High-stakes decisions
97
- require `axstack-advisor-astra` and `axstack-escalation-fable` to return
97
+ require `axstack-advisor-codex` and `axstack-escalation-fable` to return
98
98
  plain AGREE. Each use of `axstack-escalation-fable` must start a fresh session.
99
99
  Reuse the Fable plain-AGREE receipt only while the reviewed meaning holds under step 3.
100
100
  If the reviewed meaning changes, a fresh Fable session must review the revised result.
package/src/roles.js CHANGED
@@ -92,8 +92,8 @@ export function assessRoleReadiness(roles, preset) {
92
92
  const isIntentionalAbsence = (role) => role.model === null && (
93
93
  (preset === 'mixed' && role.id === 'axstack-research-x' && role.provider === 'grok') ||
94
94
  (preset === 'mixed' && role.id === 'axstack-arena-candidate-grok' && role.provider === 'grok') ||
95
- (preset === 'codex-only' && ['axstack-advisor-opus', 'axstack-escalation-fable', 'axstack-arena-judge-opus', 'axstack-research-x', 'axstack-arena-candidate-grok', 'axstack-research-web-sol', 'axstack-ui-verifier-sonnet'].includes(role.id)) ||
96
- (preset === 'claude-only' && ['axstack-advisor-astra', 'axstack-arena-judge-astra', 'axstack-research-x', 'axstack-arena-candidate-grok', 'axstack-auditor-sol', 'axstack-research-code-sol', 'axstack-explore-execution-sol', 'axstack-explore-codebase-luna', 'axstack-research-web-sol', 'axstack-ui-verifier-sonnet'].includes(role.id))
95
+ (preset === 'codex-only' && ['axstack-advisor-claude', 'axstack-escalation-fable', 'axstack-arena-judge-opus', 'axstack-research-x', 'axstack-arena-candidate-grok', 'axstack-research-web-sol', 'axstack-ui-verifier-sonnet'].includes(role.id)) ||
96
+ (preset === 'claude-only' && ['axstack-advisor-codex', 'axstack-arena-judge-astra', 'axstack-research-x', 'axstack-arena-candidate-grok', 'axstack-auditor-sol', 'axstack-research-code-sol', 'axstack-explore-execution-sol', 'axstack-explore-codebase-luna', 'axstack-research-web-sol', 'axstack-ui-verifier-sonnet'].includes(role.id))
97
97
  );
98
98
  for (const role of roles) {
99
99
  if (!bounds.has(role.provider)) {