axstack 0.71.0 → 0.73.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.
@@ -106,7 +106,7 @@ profiles/presets/claude-only.json
106
106
  ```
107
107
 
108
108
  Each has exactly `{ "version": 1, "roles": [...] }` and lists all role IDs
109
- for that preset. The mixed Scout Terra seat replaces the Luna role ID used in
109
+ for that preset. The mixed Scout Sol high seat replaces the Luna role ID used in
110
110
  the single-provider presets. Installation writes `<skills-dir>/axstack/roles.json` as
111
111
  `{ "version": 1, "preset": "<selected preset>", "roles": [...] }` and records
112
112
  its ownership hash like every other installed skill asset. There is no second
@@ -295,13 +295,13 @@ The `mixed` and `claude-only` presets assign `axstack-auditor`,
295
295
  `axstack-explore-execution` to the Claude Sonnet class: high effort in mixed,
296
296
  medium in claude-only. The mixed auditor resolves the class without an exact pin.
297
297
  In `mixed`, each Scout facet requires `axstack-explore-codebase` (Sonnet high)
298
- and `axstack-explore-codebase-terra` (Terra high), both class-resolved from
298
+ and `axstack-explore-codebase-terra` (Sol high), both class-resolved from
299
299
  saved T3 capabilities. `codex-only` keeps Sol high and
300
300
  `axstack-explore-codebase-luna` (Luna xhigh). `claude-only` keeps only the
301
301
  Haiku medium seat pinned to `claude-haiku-5-5`; its Luna role has an explicit
302
302
  null model. An unavailable or rejected required seat holds Scout without substitution.
303
- The `-sol` research-code and explore-execution pair seats use Terra high in
304
- `mixed` and Sol high in `codex-only`; the auditor pair stays Sol high in both.
303
+ The `-sol` research-code, explore-execution and auditor seats use Sol high
304
+ in `mixed` and `codex-only`.
305
305
  Their role IDs remain unchanged. `claude-only` records intentional absences.
306
306
  The paired seats run independently on one brief and the driver reconciles
307
307
  their findings.
package/docs/workflows.md CHANGED
@@ -158,7 +158,7 @@ This delivery creates no live schedule; source tests do not prove activation.
158
158
  Installation requires one explicit canonical preset. The three bundle files
159
159
  under `profiles/presets/` each contain exactly
160
160
  `{ "version": 1, "roles": [...] }` and list all role IDs for the selected preset.
161
- The role IDs are shared except for the mixed Scout Terra seat replacing Luna.
161
+ The role IDs are shared except for the mixed Scout Sol high seat replacing the Luna role ID.
162
162
 
163
163
  The current chat drives on whatever model runs it; no preset carries a driver
164
164
  role.
@@ -174,30 +174,30 @@ In `mixed` and `claude-only`, `axstack-research-requirements`,
174
174
  use the Claude Sonnet class: high effort in mixed, medium in claude-only.
175
175
  Codex-only keeps its Codex assignments for those roles.
176
176
  Each mixed Scout facet requires independent Sonnet high (`axstack-explore-codebase`)
177
- and Terra high (`axstack-explore-codebase-terra`) seats. Codex-only keeps Sol high
177
+ and Sol high (`axstack-explore-codebase-terra`) seats. Codex-only keeps Sol high
178
178
  and Luna xhigh; Claude-only keeps Haiku medium pinned to `claude-haiku-5-5`.
179
179
  An unavailable or rejected required seat holds Scout without substitution.
180
180
  For a needed web claim in mixed, pair `axstack-research-web` (Sonnet high)
181
- with optional `axstack-research-web-sol` (Terra high), independently on the same
181
+ with optional `axstack-research-web-sol` (Sol high), independently on the same
182
182
  bounded brief without cross-reading. Both single-provider presets explicitly
183
183
  mark the web pair absent and keep their base web researcher. Optional launch
184
184
  failures retain fencing and the mixed research provider floor.
185
185
  The mixed X route uses Grok.
186
186
  The mixed `axstack-auditor` uses the Sonnet class at high effort without an exact
187
187
  model pin; missing model or effort holds without substitution. The mixed
188
- `axstack-explainer-review` uses Terra high; `axstack-explainer` pins
188
+ `axstack-explainer-review` uses Sol high; `axstack-explainer` pins
189
189
  `claude-sonnet-5-5` high with class `sonnet`. The driver authors ordinary inline
190
190
  HTML and chat Mermaid, with the explainer available as a specialist. Anatomy
191
191
  keeps delegated authorship; the reviewer covers every Explain visual. The existing mixed
192
- `axstack-ui-verifier` resolves the Codex Terra class at high effort with
192
+ `axstack-ui-verifier` resolves the Codex Sol class at high effort with
193
193
  full-access mode; its read-only browser verification duties stay unchanged.
194
194
  An unavailable model or effort holds without substitution.
195
195
  In `claude-only`, `axstack-auditor` uses the Claude Sonnet class at medium effort.
196
196
  The Claude adviser `axstack-advisor-claude` pins `claude-fable-5-2` with class
197
197
  `fable` at high effort in mixed/claude-only; missing that ID or high effort holds
198
198
  without substitution. Fable escalation starts at high in mixed/claude-only; the Opus arena judge retains xhigh.
199
- The `-sol` research-code and explore-execution seats use Terra high in `mixed`
200
- and Sol high in `codex-only`; the auditor pair stays Sol high in both.
199
+ The `-sol` research-code, explore-execution and auditor seats use Sol high
200
+ in `mixed` and `codex-only`.
201
201
  `claude-only` records each as intentionally absent. Their stable role IDs remain
202
202
  unchanged. Dispatch the base and paired seats independently on the same brief,
203
203
  then reconcile their findings per claim without averaging.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axstack",
3
- "version": "0.71.0",
3
+ "version": "0.73.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",
@@ -121,12 +121,12 @@
121
121
  },
122
122
  {
123
123
  "id": "axstack-research-web-sol",
124
- "name": "Axstack research web Terra",
124
+ "name": "Axstack research web Sol",
125
125
  "provider": "claude",
126
126
  "model": null,
127
127
  "modeId": "bypassPermissions",
128
128
  "thinkingOptionId": "high",
129
- "notes": "Intentional single-provider absence: the mixed Terra web pair is unavailable in this preset. Record the absence and use the base web researcher without substitution."
129
+ "notes": "Intentional single-provider absence: the mixed Sol web pair is unavailable in this preset. Record the absence and use the base web researcher without substitution."
130
130
  },
131
131
  {
132
132
  "id": "axstack-research-x",
@@ -120,12 +120,12 @@
120
120
  },
121
121
  {
122
122
  "id": "axstack-research-web-sol",
123
- "name": "Axstack research web Terra",
123
+ "name": "Axstack research web Sol",
124
124
  "provider": "codex",
125
125
  "model": null,
126
126
  "modeId": "full-access",
127
127
  "thinkingOptionId": "high",
128
- "notes": "Intentional single-provider absence: the mixed Terra web pair is unavailable in this preset. Record the absence and use the base web researcher without substitution."
128
+ "notes": "Intentional single-provider absence: the mixed Sol web pair is unavailable in this preset. Record the absence and use the base web researcher without substitution."
129
129
  },
130
130
  {
131
131
  "id": "axstack-research-x",
@@ -103,12 +103,12 @@
103
103
  },
104
104
  {
105
105
  "id": "axstack-research-code-sol",
106
- "name": "Axstack research code Terra",
106
+ "name": "Axstack research code Sol",
107
107
  "provider": "codex",
108
108
  "modeId": "full-access",
109
109
  "thinkingOptionId": "high",
110
- "notes": "Independent Terra high research code investigator: verifies code behavior and executable evidence on the same bounded brief without cross-reading. Reports findings for driver reconciliation.",
111
- "modelClass": "terra"
110
+ "notes": "Independent Sol high research code investigator: verifies code behavior and executable evidence on the same bounded brief without cross-reading. Reports findings for driver reconciliation.",
111
+ "modelClass": "sol"
112
112
  },
113
113
  {
114
114
  "id": "axstack-research-web",
@@ -121,12 +121,12 @@
121
121
  },
122
122
  {
123
123
  "id": "axstack-research-web-sol",
124
- "name": "Axstack research web Terra",
124
+ "name": "Axstack research web Sol",
125
125
  "provider": "codex",
126
126
  "modeId": "full-access",
127
127
  "thinkingOptionId": "high",
128
- "notes": "Independent Terra high web researcher on the same bounded brief as the Sonnet base seat without cross-reading. Cites primary sources for driver reconciliation per claim; optional seat failures follow the role roster.",
129
- "modelClass": "terra"
128
+ "notes": "Independent Sol high web researcher on the same bounded brief as the Sonnet base seat without cross-reading. Cites primary sources for driver reconciliation per claim; optional seat failures follow the role roster.",
129
+ "modelClass": "sol"
130
130
  },
131
131
  {
132
132
  "id": "axstack-research-x",
@@ -153,8 +153,8 @@
153
153
  "provider": "codex",
154
154
  "modeId": "full-access",
155
155
  "thinkingOptionId": "high",
156
- "notes": "Independent Terra high explanation reviewer: always reviews every visual. Reviews consequential or complex driver-written prose or on request. Checks the exact artifact for text and source fidelity, including the full claim set on the first and every subsequent review, including conditions, branches, complete cited source ranges and regression of prior findings. The browser interaction pass belongs to axstack-ui-verifier. Any artifact change invalidates its review. Resolve the class from saved T3 capabilities at run start; rejection and unavailable settings hold without substitution. Design review follows design.md hard rules, aurora.md shared identity and FRONTEND-DESIGN.md (content-specific craft subordinate to Aurora and hard rules, including calibration defaults, restraint and quality floor) for every inline HTML page and every Publish article adaptation. For non-anatomy Explain inline pages, the reviewer inspects the driver's final-byte html_preview screenshots at 728px dark and 360px light bound to the artifact SHA-256. Missing, stale, unreadable or inadequate preview evidence requires fresh capture before review. Reuse adequate driver evidence while retaining layout, accessibility, theme and fit checks. For anatomy inline pages the reviewer itself renders exact bytes with html_preview at 728px dark and 360px light as a non-publishing self-check. For Publish the reviewer opens axstack-ui-verifier PNGs at 728px dark and 360px light plus 390px mobile and 1440px desktop, covering all four widths in both themes with paths bound to the artifact SHA-256 and recorded before review. Inspect the 1440px desktop screenshot for balanced composition, intentional horizontal margins, bounded prose measure, typography, section spacing and chart legibility. Inspect the 360px and 390px mobile screenshots for gutters, readable text and chart labels. A page failing to look decent is a blocking design finding, repaired by the same author. For Anatomy and Publish only, retain Delivery's design-only exception. Never describe a remaining finding as fixed or a clean pass. Apply Delivery's progress-based repairs and dependency holds; repair count alone never abandons the requested format. Apply Delivery's normal holds for other failures and unknown renders. Chat Mermaid and anatomy keep their existing review.",
157
- "modelClass": "terra"
156
+ "notes": "Independent Sol high explanation reviewer: always reviews every visual. Reviews consequential or complex driver-written prose or on request. Checks the exact artifact for text and source fidelity, including the full claim set on the first and every subsequent review, including conditions, branches, complete cited source ranges and regression of prior findings. The browser interaction pass belongs to axstack-ui-verifier. Any artifact change invalidates its review. Resolve the class from saved T3 capabilities at run start; rejection and unavailable settings hold without substitution. Design review follows design.md hard rules, aurora.md shared identity and FRONTEND-DESIGN.md (content-specific craft subordinate to Aurora and hard rules, including calibration defaults, restraint and quality floor) for every inline HTML page and every Publish article adaptation. For non-anatomy Explain inline pages, the reviewer inspects the driver's final-byte html_preview screenshots at 728px dark and 360px light bound to the artifact SHA-256. Missing, stale, unreadable or inadequate preview evidence requires fresh capture before review. Reuse adequate driver evidence while retaining layout, accessibility, theme and fit checks. For anatomy inline pages the reviewer itself renders exact bytes with html_preview at 728px dark and 360px light as a non-publishing self-check. For Publish the reviewer opens axstack-ui-verifier PNGs at 728px dark and 360px light plus 390px mobile and 1440px desktop, covering all four widths in both themes with paths bound to the artifact SHA-256 and recorded before review. Inspect the 1440px desktop screenshot for balanced composition, intentional horizontal margins, bounded prose measure, typography, section spacing and chart legibility. Inspect the 360px and 390px mobile screenshots for gutters, readable text and chart labels. A page failing to look decent is a blocking design finding, repaired by the same author. For Anatomy and Publish only, retain Delivery's design-only exception. Never describe a remaining finding as fixed or a clean pass. Apply Delivery's progress-based repairs and dependency holds; repair count alone never abandons the requested format. Apply Delivery's normal holds for other failures and unknown renders. Chat Mermaid and anatomy keep their existing review.",
157
+ "modelClass": "sol"
158
158
  },
159
159
  {
160
160
  "id": "axstack-ui-verifier",
@@ -162,8 +162,8 @@
162
162
  "provider": "codex",
163
163
  "modeId": "full-access",
164
164
  "thinkingOptionId": "high",
165
- "notes": "Read-only UI verifier: uses the configured verifier browser tools against the given build, URL, or artifact; captures screenshots, interactions, accessibility, desktop/mobile, and reduced-motion evidence in the dispatch evidence folder; returns a verdict with evidence paths. Performs the inline page interaction pass for every interactive page, bound to the exact bytes and SHA-256. Never edits source. Resolve the Terra class from saved T3 capabilities at run start; rejection and unavailable settings hold without substitution.",
166
- "modelClass": "terra"
165
+ "notes": "Read-only UI verifier: uses the configured verifier browser tools against the given build, URL, or artifact; captures screenshots, interactions, accessibility, desktop/mobile, and reduced-motion evidence in the dispatch evidence folder; returns a verdict with evidence paths. Performs the inline page interaction pass for every interactive page, bound to the exact bytes and SHA-256. Never edits source. Resolve the Sol class from saved T3 capabilities at run start; rejection and unavailable settings hold without substitution.",
166
+ "modelClass": "sol"
167
167
  },
168
168
  {
169
169
  "id": "axstack-ui-verifier-sonnet",
@@ -185,12 +185,12 @@
185
185
  },
186
186
  {
187
187
  "id": "axstack-explore-codebase-terra",
188
- "name": "Axstack codebase explorer Terra",
188
+ "name": "Axstack codebase explorer Sol",
189
189
  "provider": "codex",
190
190
  "modeId": "full-access",
191
191
  "thinkingOptionId": "high",
192
- "notes": "Independent read-only Terra Scout facet explorer. Searches the whole repository on the same brief without cross-reading; reports evidence for driver reconciliation. Missing model or high effort holds without substitution.",
193
- "modelClass": "terra"
192
+ "notes": "Independent read-only Sol Scout facet explorer. Searches the whole repository on the same brief without cross-reading; reports evidence for driver reconciliation. Missing model or high effort holds without substitution.",
193
+ "modelClass": "sol"
194
194
  },
195
195
  {
196
196
  "id": "axstack-explore-execution",
@@ -203,12 +203,12 @@
203
203
  },
204
204
  {
205
205
  "id": "axstack-explore-execution-sol",
206
- "name": "Axstack execution explorer Terra",
206
+ "name": "Axstack execution explorer Sol",
207
207
  "provider": "codex",
208
208
  "modeId": "full-access",
209
209
  "thinkingOptionId": "high",
210
- "notes": "Independent Terra high execution explorer: runs authorized bounded runtime checks on the same brief without cross-reading. Reports findings for driver reconciliation.",
211
- "modelClass": "terra"
210
+ "notes": "Independent Sol high execution explorer: runs authorized bounded runtime checks on the same brief without cross-reading. Reports findings for driver reconciliation.",
211
+ "modelClass": "sol"
212
212
  },
213
213
  {
214
214
  "id": "axstack-auditor",
@@ -43,7 +43,7 @@ Engineering authors and code reviewers cannot acquire this artifact authority.
43
43
  chat Mermaid by default. The specialist can author these visuals when useful;
44
44
  it retains other visual authorship, including anatomy figures.
45
45
  Mixed pins Sonnet 5.5 high exactly.
46
- - `axstack-explainer-review` always reviews every visual; `codex/terra` high in mixed.
46
+ - `axstack-explainer-review` always reviews every visual; `codex/sol` high in mixed.
47
47
  Consequential or complex driver-written prose keeps its review rule; every
48
48
  whiteboard defense is consequential, in chat too.
49
49
  - `axstack-diligence`: read-only [diligence checks](diligence.md) for authored PR
@@ -55,7 +55,7 @@ Engineering authors and code reviewers cannot acquire this artifact authority.
55
55
  for every interactive page, bound to the exact bytes and SHA-256.
56
56
  - `axstack-ui-verifier-sonnet`: `claude/sonnet` high in mixed, read-only;
57
57
  independently drives Android and web/PWA run 2 under [UI checks](ui-verification.md#android-device-and-webpwa-dual-run).
58
- `axstack-ui-verifier` (Terra high in mixed) drives run 1; the driver reconciles.
58
+ `axstack-ui-verifier` (Sol high in mixed) drives run 1; the driver reconciles.
59
59
  `axstack-ui-verifier-sonnet` is intentionally absent in both single-provider presets,
60
60
  leaving dual-run verification unverified; record the absence without substitution.
61
61
  - `axstack-research-requirements`/
@@ -66,7 +66,7 @@ Engineering authors and code reviewers cannot acquire this artifact authority.
66
66
  capabilities without an exact model pin. `claude/sonnet` medium in claude-only;
67
67
  `codex/luna` xhigh in codex-only. Missing model or effort holds without substitution.
68
68
  - `axstack-explore-codebase` (Sonnet high) and `axstack-explore-codebase-terra`
69
- (Terra high): mixed Scout requires both per facet.
69
+ (Sol high): mixed Scout requires both per facet.
70
70
  - Codex-only Scout requires `axstack-explore-codebase` (Sol high) and
71
71
  `axstack-explore-codebase-luna` (Luna xhigh) per facet.
72
72
  - Claude-only Scout requires `axstack-explore-codebase` (Haiku medium) per
@@ -74,13 +74,12 @@ Engineering authors and code reviewers cannot acquire this artifact authority.
74
74
  holds Scout without substitution.
75
75
  - Sol pairs (stable `-sol` IDs) `axstack-auditor-sol`/`axstack-research-code-sol`/
76
76
  `axstack-explore-execution-sol`: `codex/sol` high in
77
- mixed/codex-only; intentionally absent in claude-only. In mixed,
78
- research-code and explore-execution use `codex/terra` high instead. Dispatch each
77
+ mixed/codex-only; intentionally absent in claude-only. Dispatch each
79
78
  independently from its base seat on the same bounded brief without
80
79
  cross-reading. The driver reconciles findings per claim, never averages.
81
80
  Record intentional absence and continue with Sonnet alone.
82
81
  - Web pair `axstack-research-web`/`axstack-research-web-sol`: Sonnet high +
83
- Terra high in mixed, independently on the same bounded brief without
82
+ Sol high in mixed, independently on the same bounded brief without
84
83
  cross-reading, with driver reconciliation per claim. The `-sol` web seat is
85
84
  intentionally absent in both single-provider presets; use the base seat alone.
86
85
  - Optional seats: `axstack-arena-candidate-grok`,
@@ -65,7 +65,7 @@ Apply the dual run to Android device verification or explicitly requested
65
65
  PWA/app feature verification, such as a `verify-<app>` device recipe or a user request.
66
66
  Ordinary review and watch browser checks use one `axstack-ui-verifier` pass by default.
67
67
  For these Android and web/PWA runs, assign run 1 to
68
- `axstack-ui-verifier` (Terra high).
68
+ `axstack-ui-verifier` (Sol high).
69
69
  Dispatch independent run 2 to `axstack-ui-verifier-sonnet` with the same brief
70
70
  and the same pinned build.
71
71
  Never show run 2 the run 1 results.
@@ -3,6 +3,19 @@ export function gitArgv(...args) {
3
3
  return ['git', '--no-optional-locks', '-c', 'core.hooksPath=/dev/null', '-c', 'core.fsmonitor=false', ...args];
4
4
  }
5
5
 
6
+ const hookReads = {
7
+ root: ['rev-parse', '--show-toplevel'],
8
+ config: ['config', '--null', '--get', 'core.hooksPath'],
9
+ hooks: ['rev-parse', '--git-path', 'hooks'],
10
+ };
11
+
12
+ /** @param {keyof typeof hookReads} read */
13
+ export function gitHookReadArgv(repo, read) {
14
+ if (!Object.hasOwn(hookReads, read)) throw Error(`Unsupported Git hook lookup: ${read}`);
15
+ // These commands execute no hooks and must see the effective hooks configuration.
16
+ return ['git', '--no-optional-locks', '-c', 'core.fsmonitor=false', '-C', repo, ...hookReads[read]];
17
+ }
18
+
6
19
  // Scrubs inherited GIT_* only; trusted cwd + --no-env-file block peer .env
7
20
  // (including non-Git controls such as XDG_CONFIG_HOME or LD_PRELOAD).
8
21
  export function gitEnv(env = process.env) {
@@ -0,0 +1,108 @@
1
+ import { accessSync, constants, lstatSync, readFileSync, readlinkSync, statSync } from 'node:fs';
2
+ import { gitEnv, gitHookReadArgv } from './git-argv.js';
3
+
4
+ const help = `Usage: bun hooks-check.js --repo <checkout>
5
+ --repo <checkout> Required Git checkout to inspect.
6
+ --help Show this help.
7
+ Read-only. Reads Git config and file metadata. Executes and installs no hooks.
8
+ Exit: 0 pass or n/a, 2 hold (fail or unknown), 1 usage, input or Git repository error.`;
9
+
10
+ const paths = ['hooks-dir', 'pre-commit'];
11
+ const git = (repo, read) => Bun.spawnSync(gitHookReadArgv(repo, read), { env: gitEnv() });
12
+ const output = (result) => result.stdout.toString().replace(/\n$/, '');
13
+ const gitError = (result) => result.stderr.toString().trim() || `Git exited ${result.exitCode}`;
14
+
15
+ function optional(read) {
16
+ try {
17
+ return read();
18
+ } catch (error) {
19
+ if (error.code !== 'ENOENT' && error.code !== 'ENOTDIR') throw error;
20
+ }
21
+ }
22
+
23
+ function declarations(repo) {
24
+ const present = (...files) => files.find((file) => optional(() => lstatSync(`${repo}/${file}`)));
25
+ const manifest = optional(() => readFileSync(`${repo}/package.json`, 'utf8'));
26
+ const pkg = manifest === undefined ? {} : JSON.parse(manifest);
27
+ const tools = [];
28
+ const husky = present('.husky/pre-commit')
29
+ || (Object.hasOwn(pkg?.husky?.hooks ?? {}, 'pre-commit') && 'package.json');
30
+ const lefthook = present('lefthook.yml', 'lefthook.yaml', '.lefthook.yml', '.lefthook.yaml');
31
+ const preCommit = present('.pre-commit-config.yaml', '.pre-commit-config.yml');
32
+ if (husky) tools.push({ tool: 'husky', source: husky });
33
+ if (lefthook) tools.push({ tool: 'lefthook', source: lefthook });
34
+ if (preCommit) tools.push({ tool: 'pre-commit', source: preCommit });
35
+ return tools;
36
+ }
37
+
38
+ /** @param {'pass'|'fail'|'unknown'|'n/a'} status */
39
+ const term = (id, status, evidence) => ({ id, status, evidence });
40
+
41
+ function inspectPath(id, path, extraEvidence = {}) {
42
+ const evidence = { path, ...extraEvidence };
43
+ let target;
44
+ try {
45
+ if (id === 'hooks-dir') {
46
+ return term(id, statSync(path).isDirectory() ? 'pass' : 'fail', evidence);
47
+ }
48
+ if (lstatSync(path).isSymbolicLink()) target = readlinkSync(path);
49
+ if (!statSync(path).isFile()) return term(id, 'fail', { ...evidence, target });
50
+ accessSync(path, constants.X_OK);
51
+ return term(id, 'pass', evidence);
52
+ } catch (error) {
53
+ const expected = ['ENOENT', 'ENOTDIR', 'ELOOP'].includes(error.code)
54
+ || (id === 'pre-commit' && error.syscall === 'access' && error.code === 'EACCES');
55
+ return term(id, expected ? 'fail' : 'unknown', { ...evidence, target, error: error.message });
56
+ }
57
+ }
58
+
59
+ function inspect(repo) {
60
+ let declared;
61
+ try {
62
+ const tools = declarations(repo);
63
+ declared = term('declared', tools.length ? 'pass' : 'n/a', { tools });
64
+ } catch (error) {
65
+ declared = term('declared', 'unknown', { error: error.message });
66
+ }
67
+ const config = git(repo, 'config');
68
+ const coreHooksPath = config.exitCode === 0 ? config.stdout.toString().slice(0, -1) : null;
69
+ const unknown = (error) => [declared, ...paths.map((id) => term(id, 'unknown', { coreHooksPath, error }))];
70
+ const unset = config.exitCode === 1 && config.stderr.length === 0;
71
+ if (config.exitCode !== 0 && !unset) return unknown(gitError(config));
72
+ if (coreHooksPath === '') return unknown('core.hooksPath is empty');
73
+ if (unset && declared.status !== 'pass') {
74
+ return [declared, ...paths.map((id) => term(id, 'n/a', { coreHooksPath, declared: declared.status }))];
75
+ }
76
+ const resolved = git(repo, 'hooks');
77
+ if (resolved.exitCode !== 0) return unknown(gitError(resolved));
78
+ // Keep relative components intact so file lookup follows the same path as Git.
79
+ const gitPath = output(resolved);
80
+ const path = gitPath.startsWith('/') ? gitPath : `${repo}/${gitPath}`;
81
+ return [declared, inspectPath('hooks-dir', path, { coreHooksPath }), inspectPath('pre-commit', `${path}/pre-commit`)];
82
+ }
83
+
84
+ const report = (repo, terms) => console.log(JSON.stringify({ inputs: { repo }, terms }));
85
+
86
+ /** @param {string[]} args */
87
+ function main(args) {
88
+ const [flag, checkout, ...extra] = args;
89
+ if (flag === '--help' && checkout === undefined) {
90
+ console.log(help);
91
+ return 0;
92
+ }
93
+ try {
94
+ if (flag !== '--repo' || !checkout || extra.length) throw Error(help);
95
+ const root = git(checkout, 'root');
96
+ if (root.exitCode !== 0) throw Error(gitError(root));
97
+ const repo = output(root);
98
+ const terms = inspect(repo);
99
+ report(repo, terms);
100
+ return terms.some(({ status }) => status === 'fail' || status === 'unknown') ? 2 : 0;
101
+ } catch (error) {
102
+ console.error(error.message);
103
+ report(checkout ?? null, ['declared', ...paths].map((id) => term(id, 'unknown', { error: error.message })));
104
+ return 1;
105
+ }
106
+ }
107
+
108
+ process.exitCode = main(process.argv.slice(2));
@@ -281,6 +281,17 @@ Resolve measurement errors before committing; keep repository-owned checks enfor
281
281
  Preserve the check's exclusions, but never hide authored files behind generated banners or ignore globs.
282
282
  Record the staged-file size check result in the implementation receipt.
283
283
 
284
+ Before each commit, the author runs [hooks-check](../axstack/scripts/hooks-check.js)
285
+ from a trusted cwd with `bun --no-env-file <resolved-helper> --repo <target-repository>`.
286
+ On any nonzero hooks-check exit, hold the commit and return `AXSTACK-QUESTION`
287
+ with the hooks-check JSON.
288
+ Authors never install hooks or write shared Git metadata.
289
+ The driver applies the repository's documented hook setup and resumes the author.
290
+ After resuming, the author reruns hooks-check and commits only on exit 0.
291
+ Record the hooks-check result in the implementation receipt.
292
+ Never use `--no-verify` or `-n` on commits.
293
+ Never override `core.hooksPath` for a commit.
294
+
284
295
  ## 5. Verify and return the candidate
285
296
 
286
297
  Run the acceptance checks and affected integration boundaries following
@@ -322,7 +333,7 @@ Scope: <approved spec + capability | small-change intent | maintenance snapshot>
322
333
  Delivery map: <record pointer; outcomes/accepted scope drivers; current milestone evidence; held launches>
323
334
  Shape: <total> lines vs base <sha>; bulk: <buckets>; theme: <one line>
324
335
  TDD: <normal red/green | structure-preserving old-green/same-check-new-green evidence | F-repair base-green/removal-inversion-red/rewording-green evidence>
325
- Token limit: <staged-file size check command + observed advisories/errors before each commit>
336
+ Token limit: <staged-file size check command + advisories/errors and hooks-check result before each commit>
326
337
  Simplification: <applied | not-applicable> — evidence: <diff locations and checks>; retained complexity: <necessary complexity and why>
327
338
  Acceptance: <check-run receipt paths + identities mapped to criteria>
328
339
  Dependencies: <parent revisions or none>
@@ -47,7 +47,7 @@ Preserve this phase's independent source/fact and exact-byte review requirements
47
47
  The code pair is `axstack-research-code` +
48
48
  `axstack-research-code-sol`.
49
49
  In mixed the web pair is `axstack-research-web` +
50
- `axstack-research-web-sol` (Terra high);
50
+ `axstack-research-web-sol` (Sol high);
51
51
  the execution pair is `axstack-explore-execution` +
52
52
  `axstack-explore-execution-sol`. Requirements, code, and web use Sonnet high
53
53
  in mixed, Sonnet medium in claude-only, and Codex in codex-only; X uses Grok.
@@ -65,14 +65,14 @@ Preserve this phase's independent source/fact and exact-byte review requirements
65
65
 
66
66
  - `axstack-research-requirements`: requirements and intent.
67
67
  - `axstack-research-code`: code behavior.
68
- - `axstack-research-code-sol`: independent code investigation (Terra high in mixed, Sol high in codex-only).
68
+ - `axstack-research-code-sol`: independent code investigation (Sol high in mixed and codex-only).
69
69
  - `axstack-research-web`: web and external sources.
70
- - `axstack-research-web-sol`: independent Terra high web reader in mixed; intentionally absent in both single-provider presets.
70
+ - `axstack-research-web-sol`: independent Sol high web reader in mixed; intentionally absent in both single-provider presets.
71
71
  - `axstack-research-x`: X (Twitter) posts and threads via Grok; cite post URLs and dates.
72
72
  - For broad codebase mapping, use `axstack-scout`.
73
73
  Never dispatch `axstack-explore-codebase` directly for broad mapping.
74
74
  - `axstack-explore-execution`: execution and runtime traces.
75
- - `axstack-explore-execution-sol`: independent execution investigation (Terra high in mixed, Sol high in codex-only).
75
+ - `axstack-explore-execution-sol`: independent execution investigation (Sol high in mixed and codex-only).
76
76
 
77
77
  When dispatching `axstack-research-web`, `axstack-research-code` or `axstack-explore-execution`,
78
78
  dispatch its `-sol` pair independently on the same bounded brief without
@@ -41,7 +41,7 @@ same brief without cross-reading.
41
41
 
42
42
  - In mixed, each facet requires an independent pair:
43
43
  `axstack-explore-codebase` (Sonnet high) and
44
- `axstack-explore-codebase-terra` (Terra high).
44
+ `axstack-explore-codebase-terra` (Sol high).
45
45
  - In codex-only, each facet requires an independent Sol and Luna pair:
46
46
  `axstack-explore-codebase` (Sol high) and
47
47
  `axstack-explore-codebase-luna` (Luna xhigh).