axstack 0.66.0 → 0.68.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 (92) hide show
  1. package/README.md +3 -3
  2. package/docs/host-operations.md +8 -8
  3. package/docs/installation.md +8 -8
  4. package/docs/workflows.md +5 -9
  5. package/package.json +2 -2
  6. package/skills/axstack/references/automations.md +11 -19
  7. package/skills/axstack/references/autopilot.md +1 -0
  8. package/skills/axstack/references/candidate-publication.md +7 -12
  9. package/skills/axstack/references/capture-receipts.md +22 -0
  10. package/skills/axstack/references/fleet-verification.md +3 -3
  11. package/skills/axstack/references/lifecycle.md +2 -2
  12. package/skills/axstack/references/live-run.md +59 -0
  13. package/skills/axstack/references/pr-shape.md +14 -9
  14. package/skills/axstack/references/review-manager-prompt.md +37 -19
  15. package/skills/axstack/references/run-record.md +2 -2
  16. package/skills/axstack/references/schedule-policy.json +123 -0
  17. package/skills/axstack/references/t3-runtime.md +5 -5
  18. package/skills/axstack/references/test-audit-weekly.md +1 -2
  19. package/skills/axstack/references/ui-verification.md +5 -3
  20. package/skills/axstack/references/workspace-hygiene.md +12 -3
  21. package/skills/axstack/sandbox/Dockerfile +28 -0
  22. package/skills/axstack/sandbox/host-execution.md +14 -0
  23. package/skills/axstack/sandbox/inventory.json +503 -0
  24. package/skills/axstack/sandbox/launcher-capture.js +63 -0
  25. package/skills/axstack/sandbox/launcher-contract.schema.json +341 -0
  26. package/skills/axstack/sandbox/launcher-contracts.js +35 -0
  27. package/skills/axstack/sandbox/launcher-docker.js +75 -0
  28. package/skills/axstack/sandbox/launcher-host-budget.json +10 -0
  29. package/skills/axstack/sandbox/launcher-host.js +165 -0
  30. package/skills/axstack/sandbox/launcher-host.json +5 -0
  31. package/skills/axstack/sandbox/launcher-image.json +4 -0
  32. package/skills/axstack/sandbox/launcher-interface.md +7 -0
  33. package/skills/axstack/sandbox/launcher-policy.js +135 -0
  34. package/skills/axstack/sandbox/launcher-policy.json +121 -0
  35. package/skills/axstack/sandbox/launcher-runtime.js +157 -0
  36. package/skills/axstack/sandbox/launcher-source.js +72 -0
  37. package/skills/axstack/sandbox/launcher.js +106 -0
  38. package/skills/axstack/sandbox/network-address.js +39 -0
  39. package/skills/axstack/sandbox/network-firewall.js +81 -0
  40. package/skills/axstack/sandbox/network-rules.js +86 -0
  41. package/skills/axstack/sandbox/network-runtime.js +109 -0
  42. package/skills/axstack/sandbox/network.js +49 -0
  43. package/skills/axstack/sandbox/probes-android-platform.xml +17 -0
  44. package/skills/axstack/sandbox/probes-check.js +185 -0
  45. package/skills/axstack/sandbox/probes-exec.js +20 -0
  46. package/skills/axstack/sandbox/probes-image-build.js +129 -0
  47. package/skills/axstack/sandbox/probes-image-pins.json +370 -0
  48. package/skills/axstack/sandbox/probes-link-local.js +25 -0
  49. package/skills/axstack/sandbox/probes-storage.js +33 -0
  50. package/skills/axstack/sandbox/probes-udp.js +44 -0
  51. package/skills/axstack/sandbox/probes.js +239 -0
  52. package/skills/axstack/sandbox/proxy-command.js +6 -0
  53. package/skills/axstack/sandbox/proxy-config.json +9 -0
  54. package/skills/axstack/sandbox/proxy-dns.js +114 -0
  55. package/skills/axstack/sandbox/proxy-policy.js +22 -0
  56. package/skills/axstack/sandbox/proxy.js +119 -0
  57. package/skills/axstack/sandbox/reap.md +7 -0
  58. package/skills/axstack/sandbox/sidecars.json +153 -0
  59. package/skills/axstack/sandbox/storage-checks.js +39 -0
  60. package/skills/axstack/sandbox/storage-cleanup.js +49 -0
  61. package/skills/axstack/sandbox/storage-execution.js +110 -0
  62. package/skills/axstack/sandbox/storage-plan.js +78 -0
  63. package/skills/axstack/sandbox/storage-support.js +91 -0
  64. package/skills/axstack/sandbox/storage.js +75 -0
  65. package/skills/axstack/scripts/archive-evidence.js +2 -2
  66. package/skills/axstack/scripts/capture-identity.js +122 -0
  67. package/skills/axstack/scripts/check-run.js +248 -0
  68. package/skills/axstack/scripts/check-staged-file-tokens.js +6 -3
  69. package/skills/axstack/scripts/command-capture.js +81 -0
  70. package/skills/axstack/scripts/evidence-inspector.js +182 -0
  71. package/skills/axstack/scripts/git-argv.js +6 -0
  72. package/skills/axstack/scripts/image-evidence.js +183 -0
  73. package/skills/axstack/scripts/pr-shape.js +206 -22
  74. package/skills/axstack/scripts/readiness-run.js +3 -75
  75. package/skills/axstack/scripts/readiness.js +2 -2
  76. package/skills/axstack/scripts/run-init.js +13 -11
  77. package/skills/axstack/scripts/schedule-drift.js +132 -0
  78. package/skills/axstack/scripts/scratch.js +201 -0
  79. package/skills/axstack-audit/SKILL.md +2 -0
  80. package/skills/axstack-audit/references/record.md +1 -1
  81. package/skills/axstack-explain/references/inline-pages.md +8 -4
  82. package/skills/axstack-implement/SKILL.md +6 -5
  83. package/skills/axstack-review/references/candidate-brief.md +12 -21
  84. package/skills/axstack-review/references/codebase-brief.md +1 -0
  85. package/skills/axstack-review/references/codebase-mode.md +4 -1
  86. package/skills/axstack-review/references/codebase-report.md +2 -1
  87. package/skills/axstack-review/references/review-candidate.md +2 -2
  88. package/skills/axstack-review/references/review-receipt.md +8 -3
  89. package/skills/axstack-verify/SKILL.md +18 -5
  90. package/skills/axstack-watch/references/proven-verification.md +3 -2
  91. package/skills/axstack-watch/references/readiness.md +56 -61
  92. package/skills/voa/references/verification.md +5 -2
package/README.md CHANGED
@@ -121,9 +121,9 @@ subject to explicit stop-after-publication or observation requests.
121
121
  See [Host operations](docs/host-operations.md#chat-run-watch-activation) for wake activation and cadence.
122
122
  See [Chat-run PR watch](docs/workflows.md#chat-run-pr-watch) for the lifecycle and quiet cadence.
123
123
 
124
- An optional native T3 review manager runs finite peer-review passes hourly
125
- (`everyMs:3600000`); 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).
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. 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
@@ -43,9 +43,8 @@ Every verified own-PR publication arms or joins the driver's chat-run watch.
43
43
  Its bound T3 schedule uses the cadence in [Chat-run watch activation](#chat-run-watch-activation).
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
- The optional review manager uses an unbound hourly T3 schedule
47
- (`everyMs:3600000`) and requires
48
- its separate native canary before activation. Installed guidance does not prove
46
+ The optional review manager uses an unbound 30-minute T3 schedule
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
@@ -99,7 +98,10 @@ with the PR; remove the exact unit and route after settlement.
99
98
 
100
99
  The optional native review manager uses the VPS T3 project `axstack-review-lane`
101
100
  on the existing host clone. Configure and read back the lane's `axstack-owner`
102
- binding, then create an unbound hourly T3 schedule (`everyMs:3600000`).
101
+ binding. Before `schedule_task`, render the packaged prompt by filling every
102
+ `{{HOST_*}}` placeholder from the private host binding used by `schedule-drift.js`.
103
+ Never deploy a prompt containing an unfilled `{{HOST_*}}` placeholder.
104
+ Then create an unbound 30-minute T3 schedule (`everyMs:1800000`) with this rendered prompt.
103
105
  The packaged prompt checks for a quiet exit before skill loading; full passes
104
106
  follow the lifecycle below. Each pass starts in a fresh finite worktree from
105
107
  `origin/main`, fetches first, and checks its
@@ -124,8 +126,7 @@ Held or stuck passes stay unsettled. Only the owner retires eligible settled
124
126
  predecessors through `axstack-cleanup` and writes continuity; each pass records
125
127
  retained worktree count.
126
128
  Past the authorized storage limit (default 20 lane worktrees), disable the
127
- schedule with `enabled:false` and hold. The overlap, real-event, killed-predecessor,
128
- and storage-limit canaries must pass before activation.
129
+ schedule with `enabled:false` and hold.
129
130
 
130
131
  Jobs use private owned `0700` scratch paths. Preserve evidence before exact
131
132
  cleanup; dirty source, ignored non-cache content, unpushed commits,
@@ -155,8 +156,7 @@ The review manager's alert command is named in its host instructions, for exampl
155
156
 
156
157
  These documents and their source-contract tests define expected decisions.
157
158
  Scenario fixtures are behavioral-evaluation inputs, not model-evaluation
158
- results, and neither form is live proof; activation still requires the native
159
- canary described by the operational contract.
159
+ results, and neither form is live proof.
160
160
 
161
161
  ## Single T3 server
162
162
 
@@ -319,11 +319,12 @@ 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
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
@@ -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.66.0",
3
+ "version": "0.68.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": {
@@ -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.
@@ -49,8 +48,11 @@ The sections below govern full passes; a quiet exit bypasses their teardown
49
48
  except the guarded pass-end self-settle.
50
49
 
51
50
  The lane thread must use the recorded `axstack-owner` binding and verify its
52
- readback through `t3_thread_read`. Then `schedule_task` uses the packaged prompt,
53
- hourly with `everyMs:3600000`, `bindToCurrentThread:false`, and a stable `clientRequestId`.
51
+ readback through `t3_thread_read`. Before `schedule_task`, render the packaged prompt
52
+ by filling every `{{HOST_*}}` placeholder from the private host binding used by
53
+ `schedule-drift.js`. Never deploy a prompt containing an unfilled `{{HOST_*}}` placeholder.
54
+ Then `schedule_task` uses the rendered packaged prompt,
55
+ every 30 minutes with `everyMs:1800000`, `bindToCurrentThread:false`, and a stable `clientRequestId`.
54
56
  Record the schedule ID, project, lane binding and pass thread/run identities.
55
57
  Each pass compares native task status and thread reads for settings readback with the recorded binding
56
58
  after any owner-only instance update under [Provider bindings](t3-runtime.md#preflight-and-binding), before admission.
@@ -116,8 +118,8 @@ follows the flag and alert rule below when its resume needs the user.
116
118
  Outside the wedged-pass recovery above, unknown liveness blocks admission,
117
119
  shared-record writes, takeover and cleanup, including when activity is recent.
118
120
  Preserve user-taken-over threads.
119
- This is prompt policy, not an atomic lock: the overlap canary must demonstrate
120
- one admission owner before activation. Count all unsettled PR jobs and descendants.
121
+ This is prompt policy, not an atomic lock.
122
+ Count all unsettled PR jobs and descendants.
121
123
 
122
124
  A failed scheduled run alone proves neither predecessor exit nor release.
123
125
  Predecessor exit requires exact thread/run identity and terminal run evidence;
@@ -216,9 +218,9 @@ Settlement returns continuity to the manager rather than retaining an idle PR
216
218
  coordinator. Each reviewer uses a separate driver-made detached checkout and
217
219
  private evidence folder, with evidence read-back before removal.
218
220
 
219
- Set `TMPDIR` for manager and job commands to an owned 0700 directory under the
220
- system temp directory, named from the dispatch key and recorded in the receipt,
221
- following [Workspace hygiene](workspace-hygiene.md).
221
+ Run manager and job scratch commands through [scratch.js](../scripts/scratch.js);
222
+ follow its `--help` and the [repository command recipe](workspace-hygiene.md#safe-deletion)
223
+ for explicit repository selection and child exit checks. Record its JSON paths in the dispatch receipt.
222
224
  Evidence files stay in the private `<run dir>/evidence/<dispatch>/` folder.
223
225
  Never write temporary files under `/` or another shared root. Never delete
224
226
  through a broad `TMPDIR` glob, sweep a shared temporary root, or wipe a general
@@ -452,20 +454,11 @@ template; read back all four sections and the save before ending the finite turn
452
454
  Waiting PRs occupy zero slots after their trees settle. Cleanup retention holds
453
455
  removal, not settled execution capacity. The next pass retires this settled pass.
454
456
 
455
- ## Activation canary
457
+ ## Recovery and limits
456
458
 
457
- The canary runs two overlapping `run_scheduled_task_now` passes and proves one
458
- admission owner per PR. The canary reviews or correctly no-ops one real PR event.
459
- The canary reconciles a killed predecessor and demonstrates wedged-pass recovery:
460
- exactly one successor interrupts and retires a wedged predecessor.
461
- With a temporary limit equal to the current count, the canary disables the
462
- schedule and verifies that the following interval creates zero new pass worktrees.
463
- The previous review-manager automation is disabled, never deleted, only after all four T3 canary checks pass.
464
459
  A firing timestamp proves neither delivery nor useful completion.
465
460
  Source checks alone do not prove launch, overlap, recovery, or growth behavior.
466
461
 
467
- ## Recovery and limits
468
-
469
462
  On a lost manager session, reconcile native T3 workers, task status, thread/run
470
463
  state, GitHub state, and the compact run record. Reuse valid unchanged receipts.
471
464
  Unknown ownership blocks only the affected PR; unknown liveness, approval or
@@ -475,4 +468,3 @@ or takes over user work. Other unambiguous work can proceed.
475
468
  Use only native T3 schedules and orchestration. Add no daemon, shell precheck,
476
469
  watchdog script, custom scheduler, cursor or pending sidecar, runtime database,
477
470
  workflow state machine, programmatic decision interpreter, or programmatic escalation gate.
478
- 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
@@ -42,17 +42,12 @@ Before a history rewrite, confirm expected-old remote SHA and use a narrowly
42
42
  justified lease; a mismatch holds publication. If push outcome is ambiguous,
43
43
  inspect remote state before retrying.
44
44
 
45
- Before reviewer dispatch, read the remote ref back, confirm its SHA equals candidate SHA, pin
46
- current base and refresh PR body counts and base from confirmed candidate SHA
47
- and that base under [PR shape](pr-shape.md).
48
- After every push, before post-push diligence or merge-ready, compare the PR body's
49
- stated head SHA with `Confirmed remote SHA` and record `PR body head SHA: <sha or none>`.
50
- Accept `none` for a PR body without a stated head SHA.
51
- Accept a stated full head SHA only when it equals `Confirmed remote SHA`.
52
- Accept a stated abbreviated head SHA only when it is a matching prefix of
53
- `Confirmed remote SHA` with at least 7 hexadecimal characters.
54
- Hold on a mismatched head SHA or an abbreviation shorter than 7 characters.
55
- Leave other SHAs in the PR body unchanged.
45
+ Before reviewer dispatch, read the remote ref back, confirm its SHA equals candidate SHA,
46
+ pin the current base, and render and check the PR facts using
47
+ [PR body proof mode](pr-shape.md#pr-body).
48
+ After every push, before post-push diligence or merge-ready, run proof mode against
49
+ the live PR body and retain its JSON evidence. Hold publication progression on any
50
+ failed or unknown term; the helper grants no authority.
56
51
  Record:
57
52
 
58
53
  ```text
@@ -62,7 +57,7 @@ Base: <sha>
62
57
  Remote ref: <branch>
63
58
  Expected-old remote SHA: <sha | absent>
64
59
  Confirmed remote SHA: <sha>
65
- PR body head SHA: <sha or none>
60
+ PR proof: <proof-mode JSON evidence path>
66
61
  PR: <url>
67
62
  CI: <run ID or URL and triggered/pending/completed status>
68
63
  ```
@@ -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.
@@ -58,9 +58,9 @@ matches, missing pages, wrong readback, never-started and silent first runs;
58
58
  all hold rather than creating a second driver. Do not create real orphaned
59
59
  production tasks for these negative controls. Mark unobserved live rows UNKNOWN.
60
60
 
61
- Create a fresh 0700 scratch outside HOME on each participating host; record each
62
- literal path with hostId/environmentId. Before use validate owner, realpath and
63
- no symlink. Use a separately owned persistent evidence folder on origin and target,
61
+ Use [scratch.js](../scripts/scratch.js) on each participating host, following
62
+ the [repository command recipe](workspace-hygiene.md#safe-deletion); record each
63
+ printed root with hostId/environmentId. Use a separately owned persistent evidence folder on origin and target,
64
64
  outside scratch selected for deletion. Put only a tiny fixture README/candidate in
65
65
  an explicitly provisioned test project. Record its root HEAD/status/all refs before
66
66
  and after; no shared project or unknown ignored artifacts may be cleaned.
@@ -193,12 +193,12 @@ Merge-ready differs from merged.
193
193
  ## Review automation health
194
194
 
195
195
  The native review manager uses fresh finite T3 pass threads from its dedicated
196
- lane project on an hourly T3 scheduled task (`everyMs:3600000`). It admits
196
+ lane project on a 30-minute T3 scheduled task (`everyMs:1800000`). It admits
197
197
  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.
@@ -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,7 +47,15 @@ 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.
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.
58
+
54
59
  For UI-related changes, embed screenshots in the PR description
55
60
  (before/after where meaningful).
56
61
  Screenshots are mandatory for UI-related changes, with the text fallback below as the only exception.
@@ -1,18 +1,23 @@
1
1
  # Review manager prompt
2
2
 
3
- Run the quiet check before invoking `axstack-review` or reading any `skills/**` file.
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
- Resolve self with `gh api user --jq .login`, then union two paginated `gh search prs`
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.
8
+
9
+ Resolve self: `gh api user --jq .login`, union two paginated `gh search prs`
6
10
  queries (`review-requested:@me` and `involves:@me`), each with `--limit 1000`,
7
11
  for open, non-draft PRs authored by someone else,
8
12
  producing a sorted (repo#number, headRefOid, updatedAt) list.
9
- Search omits head OIDs: obtain them with read-only `gh pr view --json headRefOid`.
13
+ Obtain missing head OIDs with read-only `gh pr view --json headRefOid`.
10
14
  A result count at or above 1000 in either query makes coverage incomplete.
11
- Inventory every page of T3 lane threads and their run liveness, including recorded
12
- PR-job descendants, using exact lane identities.
13
- Read continuity at `~/.local/share/axstack/runs/review-manager/progress.md` and
14
- compare its Watermarks with the inventory:
15
+ Inventory every page of T3 lane threads and run liveness, including PR-job
16
+ descendants, by exact lane identity.
17
+ Read `~/.local/share/axstack/runs/review-manager/progress.md` and
18
+ compare Watermarks with inventory:
15
19
 
20
+ - Run the full pass when reap fails or Docker is missing.
16
21
  - Run the full pass when the sorted list differs from `Quiet gate:`.
17
22
  - Run the full pass when any other lane thread is non-terminal.
18
23
  - Run the full pass only when the recorded prior pass thread is unsettled and no guard keeps it unsettled.
@@ -33,37 +38,50 @@ before duplicate classification, then read back the identity save.
33
38
 
34
39
  If every busy condition is false, apply the guarded pass-end self-settle below,
35
40
  then end the turn with no text, no skill load, no sweep and no other continuity write.
36
- Otherwise continue with the full pass below; incomplete evidence retains the
37
- existing admission and cleanup holds.
41
+ Otherwise run the full pass; incomplete evidence retains admission/cleanup holds.
38
42
 
39
43
  ## Full pass
40
44
 
41
- Follow [Provider bindings](t3-runtime.md#preflight-and-binding) for provider binding.
45
+ Follow [Provider bindings](t3-runtime.md#preflight-and-binding).
42
46
 
43
- You are a fresh finite T3 review-manager pass in project `axstack-review-lane`
44
- on the VPS's existing `axatbhardwaj/axstack` clone. Fetch first; this unbound
47
+ You are a fresh finite T3 review-manager pass in project `axstack-review-lane` on VPS's existing
48
+ `axatbhardwaj/axstack` clone. Fetch first; this unbound
45
49
  pass worktree starts from `origin/main`. Enter through installed `axstack-review`,
46
- which loads `../axstack/references/automations.md` relatively. Read that contract
47
- and [T3 runtime](t3-runtime.md). Reconcile lane ownership and duplicate status,
48
- then follow [Provider bindings](t3-runtime.md#preflight-and-binding) for shared schedule
50
+ which loads `../axstack/references/automations.md` relatively. Read [T3 runtime](t3-runtime.md). Reconcile lane ownership and duplicate status,
51
+ then follow Provider bindings for shared schedule
49
52
  recreation and recorded instance update before verifying the recorded `axstack-owner`
50
53
  binding before admission. At pass start, every pass, including a duplicate,
51
54
  settles finished predecessor and duplicate pass threads under the Finite-session
52
55
  teardown guards before admission. Discover all eligible peer-review events and admit within measured host capacity.
53
56
  Use host-clone detached per-PR checkouts; preserve exact ownership and receipts.
54
57
  Report retained worktree count and disable the schedule and hold past its
55
- authorized limit. Only the owner retires settled predecessors and saves and
56
- reads back continuity at
58
+ authorized limit. Only the owner retires settled predecessors and saves/reads back
57
59
  `~/.local/share/axstack/runs/review-manager/progress.md` using
58
60
  `run-record.md#review-manager-continuity-template`.
59
- The full pass records in Watermarks `Quiet gate:` as the sorted list and
61
+ Full pass records Watermarks: `Quiet gate:` as the sorted list and
60
62
  `Last full pass:` as UTC only as owner-of-record, then reads back the save.
61
63
  Settle descendants and end the finite turn. Stay quiet when unchanged.
62
64
  Never check out a PR branch here.
65
+ Follow [Peer execution](../sandbox/host-execution.md) in every peer-review brief
66
+ and reviewing seat; attach the sandbox receipt and inspector report.
63
67
 
64
- At pass end, an unbound pass calls `t3_thread_organize` with `action: settle` on its
68
+ At pass end an unbound pass calls `t3_thread_organize` with `action: settle` on its
65
69
  own thread only, only when it owns no PR watch, has zero unsettled descendants,
66
70
  has no pending receipt and is not held, wedged or a stalled owner.
67
71
  Follow [Finite-session teardown](automations.md#finite-session-teardown) for
68
72
  deferred self-settle and next-pass verification; this applies to quiet, skipped
69
73
  and empty passes too.
74
+
75
+ Host operating policy (user-authorized; adapted to T3). Except for the TMPDIR rule and guarded pass-end settlement/next-pass verification, it applies to full passes only; a quiet pass follows the quiet check and guarded settlement above:
76
+
77
+ Durable continuity: {{HOST_CONTINUITY_PATH}} — the fixed four-section template from run-record.md (Lane state, Open holds, Watermarks, Last pass), overwritten every full pass and read back before your turn ends. Superseded history goes once to progress.history.md beside it; read history only for a specific recovery question.
78
+
79
+ Apply the host-declared operational limits:
80
+
81
+ {{HOST_OPERATIONAL_LIMITS}}
82
+
83
+ Peer scope (user-decided 2026-10-15; supersedes the 2026-10-08 spec-decision holds): follow axstack-review Peer mode exactly. Review code and design only; never ask the author or a "spec approver" for approvals, sign-offs, scope, policy or process decisions, and never add a "Decision needed" section. Accept the author's statement that a point was decided elsewhere. Spec, scope, policy or licence questions are never holds. Security holds stay unpublished as before.
84
+
85
+ Leftover sweep: at the start of each full pass, after lane reconciliation, run the axstack-cleanup driver-start sweep for this host's repositories: remove settled pass worktrees and PR-job checkouts of this lane and other provably settled Axstack leftovers whose heads are on the remote (salvage bundle first where required), and list the rest in Open holds. Never touch user chats, live managers or workers, genuine user_takeover, or anything without provable Axstack provenance.
86
+
87
+ Pass branches: when you retire a settled pass worktree, or in the sweep, delete its local t3code/* branch with `git branch -D` only if no worktree has it checked out and `git merge-base --is-ancestor <branch> origin/main` succeeds after fetch; otherwise list it in Open holds.
@@ -12,10 +12,10 @@ For separate aggregate and project-driver records, follow
12
12
 
13
13
  ## Location and identity
14
14
 
15
- In a Git repository, initialize with:
15
+ `<installed-axstack>`: [definition](pr-shape.md#measure). Run from trusted cwd `/`:
16
16
 
17
17
  ```sh
18
- bun scripts/run-init.js --slug local-progress
18
+ bun --no-env-file <installed-axstack>/scripts/run-init.js --repo <repo-path> --slug local-progress
19
19
  ```
20
20
  Prints JSON paths for a new shared private run record, evidence and owned scratch, plus revision/inputs.
21
21