axstack 0.67.0 → 0.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/README.md +2 -2
  2. package/docs/host-operations.md +3 -6
  3. package/docs/installation.md +10 -10
  4. package/docs/workflows.md +7 -11
  5. package/package.json +2 -2
  6. package/profiles/presets/claude-only.json +2 -2
  7. package/profiles/presets/codex-only.json +2 -2
  8. package/profiles/presets/mixed.json +2 -2
  9. package/skills/axstack/references/automations.md +18 -33
  10. package/skills/axstack/references/autopilot.md +1 -0
  11. package/skills/axstack/references/capture-receipts.md +22 -0
  12. package/skills/axstack/references/contracts.md +1 -1
  13. package/skills/axstack/references/lifecycle.md +1 -1
  14. package/skills/axstack/references/live-run.md +59 -0
  15. package/skills/axstack/references/local-artifacts.md +1 -1
  16. package/skills/axstack/references/pr-shape.md +13 -16
  17. package/skills/axstack/references/review-manager-prompt.md +38 -42
  18. package/skills/axstack/references/role-roster.md +1 -1
  19. package/skills/axstack/references/run-record.md +7 -5
  20. package/skills/axstack/references/test-audit-weekly.md +1 -2
  21. package/skills/axstack/references/ui-verification.md +5 -3
  22. package/skills/axstack/references/workspace-hygiene.md +3 -0
  23. package/skills/axstack/sandbox/Dockerfile +28 -0
  24. package/skills/axstack/sandbox/host-execution.md +14 -0
  25. package/skills/axstack/sandbox/inventory.json +503 -0
  26. package/skills/axstack/sandbox/launcher-capture.js +63 -0
  27. package/skills/axstack/sandbox/launcher-contract.schema.json +341 -0
  28. package/skills/axstack/sandbox/launcher-contracts.js +35 -0
  29. package/skills/axstack/sandbox/launcher-docker.js +75 -0
  30. package/skills/axstack/sandbox/launcher-host-budget.json +10 -0
  31. package/skills/axstack/sandbox/launcher-host.js +165 -0
  32. package/skills/axstack/sandbox/launcher-host.json +5 -0
  33. package/skills/axstack/sandbox/launcher-image.json +4 -0
  34. package/skills/axstack/sandbox/launcher-interface.md +7 -0
  35. package/skills/axstack/sandbox/launcher-policy.js +135 -0
  36. package/skills/axstack/sandbox/launcher-policy.json +121 -0
  37. package/skills/axstack/sandbox/launcher-runtime.js +157 -0
  38. package/skills/axstack/sandbox/launcher-source.js +72 -0
  39. package/skills/axstack/sandbox/launcher.js +106 -0
  40. package/skills/axstack/sandbox/network-address.js +39 -0
  41. package/skills/axstack/sandbox/network-firewall.js +81 -0
  42. package/skills/axstack/sandbox/network-rules.js +86 -0
  43. package/skills/axstack/sandbox/network-runtime.js +109 -0
  44. package/skills/axstack/sandbox/network.js +49 -0
  45. package/skills/axstack/sandbox/probes-android-platform.xml +17 -0
  46. package/skills/axstack/sandbox/probes-check.js +185 -0
  47. package/skills/axstack/sandbox/probes-exec.js +20 -0
  48. package/skills/axstack/sandbox/probes-image-build.js +129 -0
  49. package/skills/axstack/sandbox/probes-image-pins.json +370 -0
  50. package/skills/axstack/sandbox/probes-link-local.js +25 -0
  51. package/skills/axstack/sandbox/probes-storage.js +33 -0
  52. package/skills/axstack/sandbox/probes-udp.js +44 -0
  53. package/skills/axstack/sandbox/probes.js +239 -0
  54. package/skills/axstack/sandbox/proxy-command.js +6 -0
  55. package/skills/axstack/sandbox/proxy-config.json +9 -0
  56. package/skills/axstack/sandbox/proxy-dns.js +114 -0
  57. package/skills/axstack/sandbox/proxy-policy.js +22 -0
  58. package/skills/axstack/sandbox/proxy.js +119 -0
  59. package/skills/axstack/sandbox/reap.md +7 -0
  60. package/skills/axstack/sandbox/sidecars.json +153 -0
  61. package/skills/axstack/sandbox/storage-checks.js +39 -0
  62. package/skills/axstack/sandbox/storage-cleanup.js +49 -0
  63. package/skills/axstack/sandbox/storage-execution.js +110 -0
  64. package/skills/axstack/sandbox/storage-plan.js +78 -0
  65. package/skills/axstack/sandbox/storage-support.js +91 -0
  66. package/skills/axstack/sandbox/storage.js +75 -0
  67. package/skills/axstack/scripts/archive-evidence.js +2 -2
  68. package/skills/axstack/scripts/capture-identity.js +122 -0
  69. package/skills/axstack/scripts/check-run.js +248 -0
  70. package/skills/axstack/scripts/check-staged-file-tokens.js +6 -3
  71. package/skills/axstack/scripts/command-capture.js +81 -0
  72. package/skills/axstack/scripts/evidence-inspector.js +182 -0
  73. package/skills/axstack/scripts/git-argv.js +6 -0
  74. package/skills/axstack/scripts/image-evidence.js +183 -0
  75. package/skills/axstack/scripts/lane-owner.js +183 -0
  76. package/skills/axstack/scripts/pr-digest.js +17 -1
  77. package/skills/axstack/scripts/pr-fresh.js +139 -0
  78. package/skills/axstack/scripts/pr-shape.js +54 -29
  79. package/skills/axstack/scripts/readiness-run.js +3 -75
  80. package/skills/axstack/scripts/readiness.js +2 -2
  81. package/skills/axstack/scripts/run-init.js +13 -11
  82. package/skills/axstack/scripts/schedule-drift.js +221 -4
  83. package/skills/axstack-audit/references/record.md +1 -1
  84. package/skills/axstack-brainstorm/references/arena.md +5 -5
  85. package/skills/axstack-explain/references/inline-pages.md +8 -4
  86. package/skills/axstack-implement/SKILL.md +6 -5
  87. package/skills/axstack-review/SKILL.md +2 -3
  88. package/skills/axstack-review/references/candidate-brief.md +12 -21
  89. package/skills/axstack-review/references/codebase-brief.md +1 -0
  90. package/skills/axstack-review/references/codebase-mode.md +4 -1
  91. package/skills/axstack-review/references/codebase-report.md +2 -1
  92. package/skills/axstack-review/references/peer-mode.md +11 -12
  93. package/skills/axstack-review/references/review-candidate.md +2 -2
  94. package/skills/axstack-review/references/review-receipt.md +8 -3
  95. package/skills/axstack-verify/SKILL.md +10 -4
  96. package/skills/axstack-watch/references/proven-verification.md +3 -2
  97. package/skills/axstack-watch/references/readiness.md +56 -61
package/README.md CHANGED
@@ -122,8 +122,8 @@ See [Host operations](docs/host-operations.md#chat-run-watch-activation) for wak
122
122
  See [Chat-run PR watch](docs/workflows.md#chat-run-pr-watch) for the lifecycle and quiet cadence.
123
123
 
124
124
  An optional native T3 review manager runs finite peer-review passes every 30 minutes
125
- (`everyMs:1800000`); the review automation never merges for you. Activation needs live
126
- host validation. See [PR-manager setup and safety](docs/host-operations.md#optional-native-peer-review-automation).
125
+ (`everyMs:1800000`); the review automation never merges for you. Installed guidance
126
+ does not prove live behavior. See [PR-manager setup and safety](docs/host-operations.md#optional-native-peer-review-automation).
127
127
 
128
128
 
129
129
  ## Automatic merge boundaries
@@ -44,8 +44,7 @@ Its bound T3 schedule uses the cadence in [Chat-run watch activation](#chat-run-
44
44
  See [Chat-run PR watch](workflows.md#chat-run-pr-watch) for authority, schedule identity and stop conditions.
45
45
  Missing schedule capability holds activation.
46
46
  The optional review manager uses an unbound 30-minute T3 schedule
47
- (`everyMs:1800000`) and requires
48
- its separate native canary before activation. Installed guidance does not prove
47
+ (`everyMs:1800000`). Installed guidance does not prove
49
48
  live behavior. See [Review manager](../skills/axstack/references/automations.md).
50
49
 
51
50
  ## Chat-run watch activation
@@ -127,8 +126,7 @@ Held or stuck passes stay unsettled. Only the owner retires eligible settled
127
126
  predecessors through `axstack-cleanup` and writes continuity; each pass records
128
127
  retained worktree count.
129
128
  Past the authorized storage limit (default 20 lane worktrees), disable the
130
- schedule with `enabled:false` and hold. The overlap, real-event, killed-predecessor,
131
- and storage-limit canaries must pass before activation.
129
+ schedule with `enabled:false` and hold.
132
130
 
133
131
  Jobs use private owned `0700` scratch paths. Preserve evidence before exact
134
132
  cleanup; dirty source, ignored non-cache content, unpushed commits,
@@ -158,8 +156,7 @@ The review manager's alert command is named in its host instructions, for exampl
158
156
 
159
157
  These documents and their source-contract tests define expected decisions.
160
158
  Scenario fixtures are behavioral-evaluation inputs, not model-evaluation
161
- results, and neither form is live proof; activation still requires the native
162
- canary described by the operational contract.
159
+ results, and neither form is live proof.
163
160
 
164
161
  ## Single T3 server
165
162
 
@@ -315,15 +315,16 @@ unavailable adviser and round-2 seat remain explicit same-provider
315
315
  `model: null` roles, which do not make installation unready;
316
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
- Use judges only for Rung 2 hard-to-reverse choices: round 1 needs Opus; round 2,
319
- if invoked, needs escalation Fable and Astra; a required seat that is unavailable
318
+ Use judges only for Rung 2 hard-to-reverse choices: round 1 needs escalation Fable; round 2,
319
+ if invoked, needs Opus and Astra; a required seat that is unavailable
320
320
  holds that round. The current chat drives on whatever
321
321
  model runs it; no preset carries a driver role. Every other missing, invalid, unsupported, or unavailable role value holds only
322
- the affected work. Codex and Claude class resolution reads the saved T3 capabilities catalog via
323
- the command below; missing or malformed catalogs hold.
322
+ the affected work. Run helper examples below from trusted cwd `/`, resolving
323
+ `<installed-axstack>` in the installed skill tree. Codex and Claude class resolution
324
+ reads the saved T3 capabilities catalog below; missing or malformed catalogs hold.
324
325
 
325
326
  ```text
326
- bun skills/axstack/scripts/resolve-models.js --provider <codex|claude|grok> --capabilities <saved-json> <--class <class>|--model <id|null>> --effort <level> [--exclude <id>]
327
+ bun --no-env-file <installed-axstack>/scripts/resolve-models.js --provider <codex|claude|grok> --capabilities <saved-json> <--class <class>|--model <id|null>> --effort <level> [--exclude <id>]
327
328
  ```
328
329
 
329
330
  `--class` resolves a class; `--model` selects an exact ID or an explicitly
@@ -347,16 +348,15 @@ reference for provider option IDs and configuration read-back.
347
348
  ## Packaged driver helpers
348
349
 
349
350
  These Bun scripts support the driver; they do not create a workflow runtime.
350
- Run them from the bundle root, or replace the relative script path with its
351
- installed shared-root path. The [T3 runtime reference](../skills/axstack/references/t3-runtime.md)
351
+ The [T3 runtime reference](../skills/axstack/references/t3-runtime.md)
352
352
  owns model/account authority; [Cleanup](../skills/axstack-cleanup/SKILL.md)
353
353
  owns evidence retirement authority.
354
354
 
355
355
  ### PR digest
356
356
 
357
357
  ```text
358
- bun skills/axstack/scripts/pr-digest.js --repo <owner/name> --prs <1,2> --watermark <private-json>
359
- bun skills/axstack/scripts/pr-digest.js --input <saved-graphql-json> --watermark <private-json>
358
+ bun --no-env-file <installed-axstack>/scripts/pr-digest.js --repo <owner/name> --prs <1,2> --watermark <private-json>
359
+ bun --no-env-file <installed-axstack>/scripts/pr-digest.js --input <saved-graphql-json> --watermark <private-json>
360
360
  ```
361
361
 
362
362
  Use `--repo` and `--prs` for live GitHub reads, or `--input` for a saved response.
@@ -369,7 +369,7 @@ An incomplete read leaves readiness unknown.
369
369
  ### Evidence archive
370
370
 
371
371
  ```text
372
- bun skills/axstack/scripts/archive-evidence.js --source-root <absolute-dir> --archive-root <absolute-private-dir> --repo <owner/name> <--pr <number>|--run <id> --task <id>> --head <full-sha> --dispatch <id> --file <relative-path> [--file <relative-path>] [--operation <archive|retire>] [--manifest-hash <sha256>]
372
+ bun --no-env-file <installed-axstack>/scripts/archive-evidence.js --source-root <absolute-dir> --archive-root <absolute-private-dir> --repo <owner/name> <--pr <number>|--run <id> --task <id>> --head <full-sha> --dispatch <id> --file <relative-path> [--file <relative-path>] [--operation <archive|retire>] [--manifest-hash <sha256>]
373
373
  ```
374
374
 
375
375
  Choose either `--pr` or both `--run` and `--task`; `--file` repeats for each exact
package/docs/workflows.md CHANGED
@@ -119,12 +119,7 @@ starts later for each repository the user names.
119
119
  read back its role binding, then use `schedule_task` with the packaged prompt
120
120
  and activation values, `bindToCurrentThread:false`, and a stable
121
121
  `clientRequestId`. Do not add a scheduler or cursor.
122
- 3. Before enabling the schedule, pass the
123
- [native activation canary](../skills/axstack/references/automations.md): fresh
124
- pass threads, overlap admission, killed-predecessor recovery, capacity and
125
- bounded retained worktrees. Preserve runtime receipts; source checks alone
126
- do not establish these facts.
127
- 4. Missing authority, or no passing native canary, holds activation. Each pass
122
+ 3. Missing authority holds activation. Each pass
128
123
  derives one boundary from test-audit PR history, skips open PRs, overlap with
129
124
  live T3 thread/run and worktree ownership, unsafe baselines or empty candidate sets,
130
125
  and opens at most one independently reviewed test-only PR per week through
@@ -287,8 +282,8 @@ for explicit ownership transfer.
287
282
  report-only. Every invocation compares independent Astra, Fable 5.2 and Grok
288
283
  candidates, including premise and smallest-change/do-nothing
289
284
  checks. The driver scores, picks and grafts; Rung 1 uses no judges. At Rung 2,
290
- `axstack-arena-judge-opus` judges round 1; disagreement on the base or caller
291
- re-invocation with the user's rejection triggers fresh Fable/Astra round 2.
285
+ `axstack-escalation-fable` judges round 1; disagreement on the base or caller
286
+ re-invocation with the user's rejection triggers fresh Opus/Astra round 2.
292
287
  It returns a verdict, sketch and proposed questions, with no interview,
293
288
  prototype or execution approval. Required seats hold; optional dropouts are
294
289
  fenced. Fable also serves the bounded triggers in
@@ -479,8 +474,9 @@ Proven verification is required for every own PR. Use the authored receipt:
479
474
  same cross-provider reviewer at the exact head and base satisfy verification's
480
475
  diligence gate. Otherwise verification requires separate diligence `PASS`
481
476
  at the exact head and base. Follow the [applicable diligence gate](../skills/axstack/references/diligence.md#applicable-diligence-gate).
482
- - Verification requires `Final-head check: <command> -> <log path>` for a check
483
- the reviewer ran at the final head, with its log kept in the run's evidence folder.
477
+ - Verification requires `Final-head check: <check-run receipt path + identity + cited fields: #/argv -> #/logPath, #/exitCode>`
478
+ for a check the reviewer ran at the final head, with receipt and log in the run's evidence folder.
479
+ Follow [Capture receipts](../skills/axstack/references/capture-receipts.md) for identity and compare `#/requested/head` and `#/requested/base` with candidate head/base.
484
480
  - Each acceptance check requires passing evidence from the ticket or spec
485
481
  criteria, or the PR body for adopted and ticketless PRs.
486
482
  Earlier-head red-to-green evidence in the PR's patch lineage counts only when
@@ -664,7 +660,7 @@ tests already do, so the added risk is small.
664
660
 
665
661
  The optional native review manager runs bounded peer-review passes; see
666
662
  [Host operations](host-operations.md#optional-native-peer-review-automation)
667
- for lane setup, schedule activation, capacity checks, and canaries.
663
+ for lane setup, schedule activation, and capacity checks.
668
664
  Manual review and user-driven `axstack-watch` remain outside this schedule.
669
665
  Review automation never merges peer PRs; the user does.
670
666
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axstack",
3
- "version": "0.67.0",
3
+ "version": "0.69.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",
@@ -35,7 +35,7 @@
35
35
  "lint": "biome lint . --error-on-warnings",
36
36
  "typecheck": "bun node_modules/typescript/bin/tsc --noEmit --project jsconfig.json",
37
37
  "test": "bun skills/axstack/scripts/test-repository.js",
38
- "test:all": "bun skills/axstack/scripts/test-repository.js"
38
+ "test:all": "bun tests/run-all.js"
39
39
  },
40
40
  "license": "MIT",
41
41
  "devDependencies": {
@@ -279,7 +279,7 @@
279
279
  "provider": "claude",
280
280
  "modeId": "bypassPermissions",
281
281
  "thinkingOptionId": "high",
282
- "notes": "Fable escalation seat for arena round 2, high-stakes plain AGREE, or the bounded escalation trigger. Fresh session per use; never reuses adviser or candidate context. Read-only round 2 judge: scores every candidate by label; never authors a candidate. T3 resolves Claude classes from saved capabilities; a Claude rejection holds.",
282
+ "notes": "Fable escalation seat for arena round 1, high-stakes plain AGREE, or the bounded escalation trigger. Fresh session per use; never reuses adviser or candidate context. Read-only round 1 judge: scores every candidate by label; never authors a candidate. T3 resolves Claude classes from saved capabilities; a Claude rejection holds.",
283
283
  "modelClass": "fable"
284
284
  },
285
285
  {
@@ -288,7 +288,7 @@
288
288
  "provider": "claude",
289
289
  "modeId": "bypassPermissions",
290
290
  "thinkingOptionId": "xhigh",
291
- "notes": "Read-only round 1 arena judge. Receives the rubric and every candidate by label, scores each criterion, and recommends a base with rationale. Never authors a candidate, never cross-reads another judge, never mutates; the driver compares its verdict without averaging. T3 resolves Claude classes from saved capabilities; a Claude rejection holds.",
291
+ "notes": "Read-only round 2 arena judge. Receives the rubric and every candidate by label, scores each criterion, and recommends a base with rationale. Never authors a candidate, never cross-reads another judge, never mutates; the driver compares its verdict without averaging. T3 resolves Claude classes from saved capabilities; a Claude rejection holds.",
292
292
  "modelClass": "opus"
293
293
  },
294
294
  {
@@ -278,7 +278,7 @@
278
278
  "model": null,
279
279
  "modeId": "full-access",
280
280
  "thinkingOptionId": "xhigh",
281
- "notes": "Fable escalation intentionally absent in codex-only; a required use holds without substitution. Read-only round 2 judge; never authors a candidate."
281
+ "notes": "Fable escalation intentionally absent in codex-only; a required use holds without substitution. Read-only round 1 judge; never authors a candidate."
282
282
  },
283
283
  {
284
284
  "id": "axstack-arena-judge-opus",
@@ -287,7 +287,7 @@
287
287
  "model": null,
288
288
  "modeId": "full-access",
289
289
  "thinkingOptionId": "xhigh",
290
- "notes": "Read-only round 1 arena judge. Receives the rubric and every candidate by label, scores each criterion, and recommends a base with rationale. Never authors a candidate, never cross-reads another judge, never mutates; the driver compares its verdict without averaging. Intentionally absent in the codex-only preset; round 1 holds without substitution."
290
+ "notes": "Read-only round 2 arena judge. Receives the rubric and every candidate by label, scores each criterion, and recommends a base with rationale. Never authors a candidate, never cross-reads another judge, never mutates; the driver compares its verdict without averaging. Intentionally absent in the codex-only preset; round 2 holds without substitution."
291
291
  },
292
292
  {
293
293
  "id": "axstack-arena-candidate-grok",
@@ -280,7 +280,7 @@
280
280
  "provider": "claude",
281
281
  "modeId": "bypassPermissions",
282
282
  "thinkingOptionId": "high",
283
- "notes": "Fable escalation seat for arena round 2, high-stakes plain AGREE, or the bounded escalation trigger. Fresh session per use; never reuses adviser or candidate context. Read-only round 2 judge: scores every candidate by label; never authors a candidate. T3 resolves Claude classes from saved capabilities; a Claude rejection holds.",
283
+ "notes": "Fable escalation seat for arena round 1, high-stakes plain AGREE, or the bounded escalation trigger. Fresh session per use; never reuses adviser or candidate context. Read-only round 1 judge: scores every candidate by label; never authors a candidate. T3 resolves Claude classes from saved capabilities; a Claude rejection holds.",
284
284
  "modelClass": "fable"
285
285
  },
286
286
  {
@@ -289,7 +289,7 @@
289
289
  "provider": "claude",
290
290
  "modeId": "bypassPermissions",
291
291
  "thinkingOptionId": "xhigh",
292
- "notes": "Read-only round 1 arena judge. Receives the rubric and every candidate by label, scores each criterion, and recommends a base with rationale. Never authors a candidate, never cross-reads another judge, never mutates; the driver compares its verdict without averaging. T3 resolves Claude classes from saved capabilities; a Claude rejection holds.",
292
+ "notes": "Read-only round 2 arena judge. Receives the rubric and every candidate by label, scores each criterion, and recommends a base with rationale. Never authors a candidate, never cross-reads another judge, never mutates; the driver compares its verdict without averaging. T3 resolves Claude classes from saved capabilities; a Claude rejection holds.",
293
293
  "modelClass": "opus"
294
294
  },
295
295
  {
@@ -5,7 +5,6 @@ automation specs and plans describe retired designs and are not instructions.
5
5
 
6
6
  For optional weekly test audits, use the separate packaged
7
7
  [Weekly test-audit prompt](test-audit-weekly.md).
8
- The native canary below is also required before weekly activation.
9
8
 
10
9
  At every scheduled pass start, follow [Provider bindings](t3-runtime.md#preflight-and-binding)
11
10
  for provider binding.
@@ -70,8 +69,7 @@ T3 sessions are exempt from Claude trust preflight.
70
69
  The owner-of-record performs guarded retirement in [Finite-session teardown](#finite-session-teardown).
71
70
  Lane identity requires exact thread/run identity, never a title or directory-name
72
71
  guess; never infer lane ownership from an empty local workspace.
73
- Reconcile saved state, current GitHub state, and native T3 threads, runs,
74
- delegated tasks and liveness across the whole lane before discovery or admission.
72
+ Reconcile saved state, GitHub and native T3 lane before discovery or admission.
75
73
  Discovery reads every page of PRs and native threads.
76
74
  A truncated or failed inventory holds admission and cleanup.
77
75
  A pass never admits a PR owned by a live or uncertain earlier pass.
@@ -80,8 +78,8 @@ The earlier pass wins only when ordering evidence exists.
80
78
  Missing ordering or ownership evidence holds admission and never guesses a winner.
81
79
 
82
80
  Once identified as a duplicate, the new pass does no PR work, makes no further
83
- shared-record write and touches no PR-job thread or descendant owned by the
84
- live manager. Besides its private pass note and the flag and alert exception below, a duplicate's only shared mutation is pass-start settlement of eligible
81
+ shared-record write except recording Open holds and touches no PR-job thread or descendant owned by the
82
+ live manager. Besides recording Open holds, its private pass note and the flag and alert exception below, a duplicate's only shared mutation is pass-start settlement of eligible
85
83
  terminal lane pass threads under [Finite-session teardown](#finite-session-teardown).
86
84
  A duplicate pass admits nothing and runs read-only discovery
87
85
  into its own pass note in its private evidence folder, recording new eligible
@@ -116,18 +114,17 @@ jobs from GitHub and evidence. Only a verdict already published and read back
116
114
  counts as served. Otherwise the event is unserved/`INCOMPLETE` and re-eligible.
117
115
  A failed interrupt or unverified terminal state keeps the existing hold and
118
116
  follows the flag and alert rule below when its resume needs the user.
119
- Outside the wedged-pass recovery above, unknown liveness blocks admission,
120
- shared-record writes, takeover and cleanup, including when activity is recent.
117
+ Outside wedged-pass recovery, unknown liveness blocks admission, shared-record
118
+ writes except recording Open holds, takeover and cleanup even with recent activity.
121
119
  Preserve user-taken-over threads.
122
- This is prompt policy, not an atomic lock: the overlap canary must demonstrate
123
- one admission owner before activation. Count all unsettled PR jobs and descendants.
120
+ No atomic lock.
124
121
 
125
- A failed scheduled run alone proves neither predecessor exit nor release.
126
- Predecessor exit requires exact thread/run identity and terminal run evidence;
127
- a completed run row alone does not prove the work settled.
128
- Require reconciled continuity and settlement of every descendant before releasing ownership.
129
- Unknown facts hold at the durable decision location; never replace a
130
- potentially live owner.
122
+ Before any settle, run [lane-owner](../scripts/lane-owner.js) from `/` with
123
+ `bun --no-env-file` on a pre-settle snapshot; pass out-of-tree PR jobs via
124
+ `--job-thread`. Fail/unknown retains ownership holds: record an Open hold naming
125
+ owner thread/run in continuity. Never replace a potentially live owner.
126
+ This pass's settle never proves release; a completed or failed run row alone
127
+ proves neither predecessor exit nor release.
131
128
 
132
129
  ## Discovery and coverage
133
130
 
@@ -159,8 +156,7 @@ durable record under [PR shape](pr-shape.md#peer-sync-proof).
159
156
  On sync pass, use no reviewer dispatch and submit nothing, record `sync skip`
160
157
  with event identity for dedupe, and leave the PR for the user.
161
158
  Sync fail or unknown follows ordinary review.
162
- Each bounded PR job follows [Peer mode](../../axstack-review/references/peer-mode.md#sync-admission-and-round-freshness)
163
- stale-round discard before each dispatch, before reconcile and before submission.
159
+ PR jobs follow [freshness](../../axstack-review/references/peer-mode.md#sync-admission-and-round-freshness).
164
160
 
165
161
  The review manager admits all eligible actionable PR events
166
162
  that measured host capacity can support across ticks. Before each admission,
@@ -401,13 +397,12 @@ If identity, guards or readback are unavailable, preserve the thread and report
401
397
  that gap instead of settling it; the next eligible pass retries guarded verification.
402
398
  Keep unresolved prior threadIds in the same record until verified settled.
403
399
  Never guess thread identity from a title.
404
- The sole continuity-write exception records own pass threadId before duplicate
405
- classification and on quiet exits; all other shared writes retain their existing guards.
400
+ Beyond recording Open holds, the sole continuity-write exception records own pass threadId
401
+ before duplicate classification and on quiet exits.
406
402
 
407
- Decisions outliving a finite manager pass retain their receipt and hold in durable
408
- continuity, with the flagged thread or GitHub as the action route.
403
+ Decisions outliving a finite manager pass retain receipt and hold in durable continuity, with flagged thread or GitHub as action route.
409
404
 
410
- After lane reconciliation at pass start, every pass, including a duplicate,
405
+ After lane reconciliation at pass start and pre-settle lane-owner facts, every pass, including a duplicate,
411
406
  uses `t3_thread_organize` to settle finished predecessor and duplicate lane pass
412
407
  threads as metadata only, before discovery or admission.
413
408
  Settle another lane pass thread only with terminal run evidence, no unsettled
@@ -455,20 +450,11 @@ template; read back all four sections and the save before ending the finite turn
455
450
  Waiting PRs occupy zero slots after their trees settle. Cleanup retention holds
456
451
  removal, not settled execution capacity. The next pass retires this settled pass.
457
452
 
458
- ## Activation canary
453
+ ## Recovery and limits
459
454
 
460
- The canary runs two overlapping `run_scheduled_task_now` passes and proves one
461
- admission owner per PR. The canary reviews or correctly no-ops one real PR event.
462
- The canary reconciles a killed predecessor and demonstrates wedged-pass recovery:
463
- exactly one successor interrupts and retires a wedged predecessor.
464
- With a temporary limit equal to the current count, the canary disables the
465
- schedule and verifies that the following interval creates zero new pass worktrees.
466
- The previous review-manager automation is disabled, never deleted, only after all four T3 canary checks pass.
467
455
  A firing timestamp proves neither delivery nor useful completion.
468
456
  Source checks alone do not prove launch, overlap, recovery, or growth behavior.
469
457
 
470
- ## Recovery and limits
471
-
472
458
  On a lost manager session, reconcile native T3 workers, task status, thread/run
473
459
  state, GitHub state, and the compact run record. Reuse valid unchanged receipts.
474
460
  Unknown ownership blocks only the affected PR; unknown liveness, approval or
@@ -478,4 +464,3 @@ or takes over user work. Other unambiguous work can proceed.
478
464
  Use only native T3 schedules and orchestration. Add no daemon, shell precheck,
479
465
  watchdog script, custom scheduler, cursor or pending sidecar, runtime database,
480
466
  workflow state machine, programmatic decision interpreter, or programmatic escalation gate.
481
- Live VPS activation and the four canary outcomes remain unverified until exercised.
@@ -161,6 +161,7 @@ Agents never run `npm publish` locally.
161
161
  A wake verifies the registry reports the expected package and version. Install on the named hosts, verify version
162
162
  and roles, then run Close-out last with release and install receipts and the
163
163
  installed version.
164
+ For an affected-skills release, record the non-blocking [R5 live trace](live-run.md) against the installed release before Close-out.
164
165
 
165
166
  An existing version or tag, failed publish, uncertain
166
167
  registry result, missing host access, or failed install verification is a
@@ -0,0 +1,22 @@
1
+ # Capture receipts
2
+
3
+ Use [check-run](../scripts/check-run.js) for evidence; read
4
+ `--help` for flags, dirty snapshots, effects.
5
+ Create owned 0700 subfolder in the run's evidence folder outside source and
6
+ writable mounts for check-run `--out` at pinned head/base.
7
+ Cite every check-run receiptPath and identity: repository,
8
+ requested head/base, sourceBefore snapshot, logSha256.
9
+ Use JSON Pointer references instead of transcribing hashes.
10
+ Read argv, cwd, exitCode and test counts from receipt and captured log.
11
+ Stated child result requires citation to `#/exitCode`.
12
+
13
+ ## Limitation reconciliation
14
+
15
+ Follow [evidence-inspector](../scripts/evidence-inspector.js) `--help`: ledger, dispositions and refresh rules.
16
+ Run evidence-inspector `--input ledger.json`; retain its report.
17
+ Read each term: id, status, reasonCode, disposition.
18
+ Keep open/fail/unknown items as gaps under owning workflow holds.
19
+ Outside peer reviews, for zero limitations record none and inspector n/a.
20
+ Peer reviews supply inspector `review` even without limitations.
21
+ Cite ledger path, inspector report and item IDs in Limitations/Unverified.
22
+ Reviewer judges proof kind, semantic sufficiency, coverage, safety.
@@ -91,7 +91,7 @@ its effort and do not add a redundant reviewer. No single-provider high-stakes
91
91
  mapping is defined: pause for an explicit user decision rather than borrowing
92
92
  another preset or inventing a route. There is no silent fallback.
93
93
 
94
- Use `axstack-escalation-fable` only for arena round 2, high-stakes decisions,
94
+ Use `axstack-escalation-fable` only for arena round 1, high-stakes decisions,
95
95
  or when two attempts at the same named goal fail a stated acceptance check
96
96
  (including debug L2 or a spec decision rejected twice). It also applies when
97
97
  the Codex and Claude advisers still contradict after one reconciliation with no safe
@@ -198,7 +198,7 @@ actionable PR events
198
198
  within measured host capacity; waiting PRs remain covered without reserving slots.
199
199
  Bounded PR jobs use driver-made detached checkouts and settle after descendants.
200
200
  Build no custom scheduler, state engine or legacy fallback. See
201
- [Review manager](automations.md) for binding, canary, capacity and schedule health.
201
+ [Review manager](automations.md) for binding, capacity and schedule health.
202
202
 
203
203
  ## Audit hook (close-out and meaningful checkpoints)
204
204
 
@@ -0,0 +1,59 @@
1
+ # R5 release trace
2
+
3
+ For skills releases, the driver runs one capped T3 scenario on the
4
+ installed release. Failure, unavailability and exhausted budgets are recorded
5
+ and never block publication. Helpers capture facts, never launch T3, enforce
6
+ budgets, schedule, retry or grant authority.
7
+
8
+ Use installed `scripts/check-run.js` twice. Follow `--help` for
9
+ captured-head validation, trust limits and independent Git object/environment/
10
+ binary and trace-Bun verification. Require equal helper/Bun realpaths and hashes. No live-home edits.
11
+
12
+ Set REPO=clean tag checkout, RELEASE_HEAD=full tag SHA, ORIGIN=Git origin
13
+ URL, CAPTURE=absolute installed helper, OUT=existing owned 0700 evidence outside
14
+ source/cwd/writable roots. Verify package version and installed skills; retain
15
+ checks and T3 receipts there. Use REPO/tests/workflows/*scenarios.json; catalogs are not installed.
16
+
17
+ Wrap both modes with check-run using `--repo REPO --repository ORIGIN
18
+ --head RELEASE_HEAD --base RELEASE_HEAD --out OUT -- bun CAPTURE MODE ...`.
19
+ Retain each capture's receiptPath/logPath and inspect its exitCode/terms.
20
+
21
+ ## Before launch
22
+
23
+ Write `$OUT/before.json` per `--help`'s Before shape: observed version/host,
24
+ absolute checkout catalog, existing scenario ID, exact requested provider/model/
25
+ options, current UTC time, fresh crypto.randomUUID() nonce (16+ characters;
26
+ no placeholder), positive integer limits, attempt:1. Capture
27
+ `r5-plan --input "$OUT/before.json"` before launch. Dirty holds require the exact
28
+ printed --snapshot digest; never silently change release identity. Resolve
29
+ failed capture/plan terms first; missing prerequisites are unavailable. Only
30
+ the helper stamps plannedAt; recordedAt cannot be future; start at/after
31
+ plannedAt. PLAN_RECEIPT=receiptPath; PLAN_SHA256=SHA-256 of exact plan logPath bytes.
32
+
33
+ Launch one authorized T3 attempt under the runtime contract with
34
+ plan.scenario.input, installed skill, requested settings/limits, PLAN_SHA256 and
35
+ nonce; exclude expected answers, request final `nonce: <nonce>`. Retain actual
36
+ task/thread/run IDs. If T3 cannot enforce numeric caps, use existing bounded
37
+ controls and report the gap; never claim helper enforcement.
38
+
39
+ ## After observation
40
+
41
+ Retain T3 observations. Write `$OUT/after.json`: planSha256=PLAN_SHA256,
42
+ nonce, version, host, attempt:1, requested/effective {provider,model,options},
43
+ outcome, threadId, runId, startedAt, finishedAt, tokensUsed, output, reason citing
44
+ raw observations. Read settings from launch/readback; never infer equality.
45
+ Unavailable=null; output=actual final response including nonce;
46
+ finishedAt=terminal observation time.
47
+
48
+ Outcomes: completed, failed, unavailable, budget-exhausted, cancelled.
49
+ Unavailable with observed thread/run IDs is terminal; absent IDs stay unknown.
50
+ Its scenario outcome stays unknown either way. Capture without another attempt:
51
+ `r5-trace --plan-receipt PLAN_RECEIPT --result "$OUT/after.json"
52
+ --repository ORIGIN --head RELEASE_HEAD --base RELEASE_HEAD`.
53
+
54
+ In the release record cite after receiptPath, trace logPath, term counts and
55
+ observed outcome. Inspect child exitCode separately: failed criteria exit0,
56
+ unknown observations exit2; capture may complete with an unknown child.
57
+ Missing/truncated/interrupted capture is a gap: record without live retry.
58
+ Receipts bind local source/log bytes and caller observations, never authenticate
59
+ T3 exports or independently prove live compliance.
@@ -61,7 +61,7 @@ before dispatch; helpers validate role scope, not those procedural facts.
61
61
 
62
62
  Use the selected preset's exact provider/model/effort/full-access bindings.
63
63
  Configured optional Grok follows the arena's fenced absence rule; an uncertain
64
- dispatch requires reconciliation. Fable is a required round-2 judge when that
64
+ dispatch requires reconciliation. Fable is a required round-1 judge when that
65
65
  round applies, not an optional candidate. A missing required model or an
66
66
  intentional null-model absence holds the applicable round without substitution.
67
67
  An allowlisted role never makes an unavailable seat executable.
@@ -1,9 +1,10 @@
1
1
  # PR shape
2
2
 
3
3
  ## Measure
4
- Actual PR base:
4
+ Resolve `<installed-axstack>`: absolute installed `axstack` skill directory.
5
+ Run examples from trusted cwd `/`; measure actual PR base:
5
6
  ```sh
6
- bun scripts/pr-shape.js --base <base> --head <head>
7
+ bun --no-env-file <installed-axstack>/scripts/pr-shape.js --repo <path> --base <base> --head <head>
7
8
  ```
8
9
  JSON: SHAs, merge-base, total = additions + deletions over all files, renames, binaries, buckets and commands.
9
10
 
@@ -20,17 +21,13 @@ There is no universal safe LOC limit or fixed token percentage.
20
21
 
21
22
  ## Peer sync proof
22
23
 
23
- Run `pr-shape.js --base <base> --head <head> --source <source>`.
24
+ Run `bun --no-env-file <installed-axstack>/scripts/pr-shape.js --repo <path> --base <base> --head <head> --source <source>`.
24
25
  The sync term grants no authority.
25
26
  Sync is eligible only for a user-recorded pair `<repo>: <source> -> <base>`
26
27
  in the manager durable record, or user-named for manual review.
27
28
  The head repo must equal the base repo.
28
29
  Source S is a fetched base-repo ref with its SHA recorded.
29
- Resolve B/H/S to base/head/source commit SHAs.
30
- Pass requires B <= H and either H <= S or both B <= S and equal H/S trees.
31
- Use `git merge-base --is-ancestor` for <= and `git rev-parse <sha>^{tree}` for trees.
32
- Ancestor exit 1 means fail, other Git errors or missing objects mean unknown,
33
- and absent `--source` means n/a. Preserve the helper's commands and SHAs.
30
+ Preserve the helper's commands and SHAs.
34
31
  On sync pass, use no reviewer dispatch and submit nothing, record `sync skip`
35
32
  with event identity for dedupe, and leave the PR for the user.
36
33
  Sync fail or unknown takes ordinary review.
@@ -50,14 +47,14 @@ Use a title that explains why the change matters.
50
47
  For repository title conventions, check recently merged PRs.
51
48
 
52
49
  Every own PR description must include a short `Proof` section:
53
- what was verified and how, with commands and observed results, CI or evidence links.
54
- Render its facts with
55
- `bun skills/axstack/scripts/pr-shape.js --proof --base <base> --head <head>`
56
- and paste the JSON `block` under `Proof`. Keep the returned per-term evidence.
57
- Check the published body against live GitHub facts with
58
- `bun skills/axstack/scripts/pr-shape.js --proof --pr <number> --repo <owner/repo>`.
59
- For a local body, use `--proof --base <base> --head <head> --body <path>`.
60
- Use `--proof --help` for the block format, fact definitions and unknown-data behavior.
50
+ what was verified and how, with check-run receipt citations (paths/identities) for commands and observed results, CI or evidence links.
51
+ Render:
52
+ `bun --no-env-file <installed-axstack>/scripts/pr-shape.js --proof --repo <path> --base <base> --head <head>`
53
+ Paste JSON `block` under `Proof`; retain per-term evidence.
54
+ Check published body against GitHub facts:
55
+ `bun --no-env-file <installed-axstack>/scripts/pr-shape.js --proof --pr <number> --repo <owner/repo>`.
56
+ Local body: add `--body <path>`.
57
+ `--proof --help`: format, facts and unknown-data behavior.
61
58
 
62
59
  For UI-related changes, embed screenshots in the PR description
63
60
  (before/after where meaningful).
@@ -2,68 +2,64 @@
2
2
 
3
3
  First command of every pass, quiet check included: use an owned 0700 TMPDIR under the system temp dir (never under $HOME or a shared root); give each PR job its own TMPDIR. The login shell is fish; write shell commands in bash syntax and run them with bash.
4
4
 
5
- Run the quiet check before invoking `axstack-review` or reading any `skills/**` file.
6
-
7
- Resolve self with `gh api user --jq .login`, then union two paginated `gh search prs`
8
- queries (`review-requested:@me` and `involves:@me`), each with `--limit 1000`,
9
- for open, non-draft PRs authored by someone else,
10
- producing a sorted (repo#number, headRefOid, updatedAt) list.
11
- Search omits head OIDs: obtain them with read-only `gh pr view --json headRefOid`.
12
- A result count at or above 1000 in either query makes coverage incomplete.
13
- Inventory every page of T3 lane threads and their run liveness, including recorded
14
- PR-job descendants, using exact lane identities.
15
- Read continuity at `~/.local/share/axstack/runs/review-manager/progress.md` and
16
- compare its Watermarks with the inventory:
17
-
18
- - Run the full pass when the sorted list differs from `Quiet gate:`.
19
- - Run the full pass when any other lane thread is non-terminal.
20
- - Run the full pass only when the recorded prior pass thread is unsettled and no guard keeps it unsettled.
21
- - Run the full pass when continuity or either watermark is missing, malformed or unreadable.
22
- - Run the full pass when `Last full pass:` is at least 4 hours old or in the future.
23
- - Run the full pass when any call fails or pagination, PR head OIDs or thread/run liveness is incomplete or unknown.
24
- - Run the full pass when continuity records any unserved, capacity-deferred, `INCOMPLETE` or re-eligible event, or any open hold with a resume condition beyond a user decision (such as capacity or remeasure).
25
-
26
- Held or flagged prior passes never force a full pass or failure report by their unsettled state alone.
27
-
28
- Holds awaiting only the user remain quiet-eligible: a user decision on the PR
29
- changes `updatedAt`, and the 4 h full pass reconciles replies in flagged threads.
30
-
31
- Before evaluating the quiet gate, read the recorded prior pass thread with
32
- `t3_thread_read`; unknown identity or readback forces a full pass.
5
+ At start of every pass before quiet exit, follow [Sandbox reap](../sandbox/reap.md).
6
+
7
+ Run the quiet check before invoking `axstack-review` or reading any `skills/**` file except reap and this helper.
8
+
9
+ Save raw outputs per installed `schedule-drift.js quiet-facts --help`, with collection time,
10
+ repository and login (`gh api user --jq .login`):
11
+ `gh search prs --review-requested @me --state open --draft=false --json number,repository,updatedAt,isDraft,author --limit 1000`
12
+ `gh search prs --involves @me --state open --draft=false --json number,repository,updatedAt,isDraft,author --limit 1000`
13
+ Save `t3_thread_list` as `{args,value}` (includeSubagents:true, statuses:
14
+ preparing/queued/starting/running/waiting; merged pages, nextCursor:null, matching total), and continuity from
15
+ `~/.local/share/axstack/runs/review-manager/progress.md`.
16
+ Read the recorded prior pass once with `t3_thread_read` before replacing prior identity.
33
17
  Record own pass threadId in review-manager continuity after reading the prior identity,
34
18
  before duplicate classification, then read back the identity save.
35
-
36
- If every busy condition is false, apply the guarded pass-end self-settle below,
19
+ After collection, the first decision step is the installed helper, from trusted cwd `/`:
20
+ `bun --no-env-file <resolved-schedule-drift.js> quiet-facts --input <saved-input.json> --continuity <saved-progress.md>`.
21
+ Lane scope is recorded pass/job identities and descendants, not the shared project.
22
+ PR comparison reuses `pr-digest.js`.
23
+
24
+ The pass agent applies quiet/full/hold rules to these facts, which grant nothing:
25
+ any fail or unknown runs the full pass; unknown discovery means full reconciliation,
26
+ and unknown ownership or prior identity forbids competing admission.
27
+ Guarded prior passes and user-only holds never force a full pass or failure report by themselves.
28
+ A user decision on the PR changes updatedAt; the 4 h full pass reconciles replies in flagged threads.
29
+ Run the full pass when reap fails or Docker is missing.
30
+
31
+ If no term fails or is unknown, apply the guarded pass-end self-settle below,
37
32
  then end the turn with no text, no skill load, no sweep and no other continuity write.
38
- Otherwise continue with the full pass below; incomplete evidence retains the
39
- existing admission and cleanup holds.
33
+ Otherwise run the full pass; incomplete evidence retains admission/cleanup holds.
40
34
 
41
35
  ## Full pass
42
36
 
43
- Follow [Provider bindings](t3-runtime.md#preflight-and-binding) for provider binding.
37
+ Follow [Provider bindings](t3-runtime.md#preflight-and-binding).
44
38
 
45
- You are a fresh finite T3 review-manager pass in project `axstack-review-lane`
46
- on the VPS's existing `axatbhardwaj/axstack` clone. Fetch first; this unbound
39
+ You are a fresh finite T3 review-manager pass in the recorded lane on VPS's
40
+ `axatbhardwaj/axstack` clone. Fetch first; this unbound
47
41
  pass worktree starts from `origin/main`. Enter through installed `axstack-review`,
48
- which loads `../axstack/references/automations.md` relatively. Read that contract
49
- and [T3 runtime](t3-runtime.md). Reconcile lane ownership and duplicate status,
50
- then follow [Provider bindings](t3-runtime.md#preflight-and-binding) for shared schedule
42
+ which loads `../axstack/references/automations.md` relatively. Read [T3 runtime](t3-runtime.md). Reconcile lane ownership and duplicate status,
43
+ then follow Provider bindings for shared schedule
51
44
  recreation and recorded instance update before verifying the recorded `axstack-owner`
52
45
  binding before admission. At pass start, every pass, including a duplicate,
53
46
  settles finished predecessor and duplicate pass threads under the Finite-session
54
47
  teardown guards before admission. Discover all eligible peer-review events and admit within measured host capacity.
55
48
  Use host-clone detached per-PR checkouts; preserve exact ownership and receipts.
56
49
  Report retained worktree count and disable the schedule and hold past its
57
- authorized limit. Only the owner retires settled predecessors and saves and
58
- reads back continuity at
50
+ authorized limit. Only the owner retires settled predecessors and saves/reads back
59
51
  `~/.local/share/axstack/runs/review-manager/progress.md` using
60
52
  `run-record.md#review-manager-continuity-template`.
61
- The full pass records in Watermarks `Quiet gate:` as the sorted list and
53
+ Resolve heads with `gh pr view --repo REPO NUMBER --json headRefOid` in the full pass.
54
+ Full pass records Watermarks: `Quiet gate:` as the sorted list of JSON triples and
62
55
  `Last full pass:` as UTC only as owner-of-record, then reads back the save.
56
+ Full passes record proven Non-lane roots for omitted idle parents.
63
57
  Settle descendants and end the finite turn. Stay quiet when unchanged.
64
58
  Never check out a PR branch here.
59
+ Follow [Peer execution](../sandbox/host-execution.md) in every peer-review brief
60
+ and reviewing seat; attach the sandbox receipt and inspector report.
65
61
 
66
- At pass end, an unbound pass calls `t3_thread_organize` with `action: settle` on its
62
+ At pass end an unbound pass calls `t3_thread_organize` with `action: settle` on its
67
63
  own thread only, only when it owns no PR watch, has zero unsettled descendants,
68
64
  has no pending receipt and is not held, wedged or a stalled owner.
69
65
  Follow [Finite-session teardown](automations.md#finite-session-teardown) for