axstack 0.11.3 → 0.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -9,8 +9,8 @@ Pair A/B is retired for this contract; its artefacts remain untouched.
|
|
|
9
9
|
|
|
10
10
|
## Roles and authority
|
|
11
11
|
|
|
12
|
-
- **driver** — every 15 minutes, fresh Opus session in the
|
|
13
|
-
|
|
12
|
+
- **driver** — every 15 minutes, fresh Opus session in the host's `root`
|
|
13
|
+
folder workspace, which is not a git repository and belongs to no project. It discovers GitHub work, binds the persistent Orca
|
|
14
14
|
Run, creates one project-local child worktree per selected PR, dispatches the
|
|
15
15
|
matching Axstack agent, reconciles completions and decisions, then exits. The
|
|
16
16
|
driver is the automation session itself, with no `axstack-monitor` or
|
|
@@ -94,16 +94,21 @@ The driver performs this order and exits:
|
|
|
94
94
|
dispatches nothing.
|
|
95
95
|
2. Bind the persistent Run with `orca orchestration run-use` and read the
|
|
96
96
|
inbox. For a `worker_done` matching a live marker, verify the review id at
|
|
97
|
-
the bound head, push range, or opened token. Release the worker;
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
the bound head, push range, or opened token. Release the worker; once its
|
|
98
|
+
release receipt is settled and the process has exited, run the cleanup
|
|
99
|
+
under "Run directory" below, which proves the worktree disposable before
|
|
100
|
+
removing it; then clear the marker. Unverifiable delivery stays in
|
|
100
101
|
`pending_settlement[]` and blocks only that PR.
|
|
101
102
|
3. Consume decisions as their sole consumer under "Decision tokens" below.
|
|
102
103
|
4. Reconcile every marker older than 3 h. A live worker gets `worker-stop`; an
|
|
103
104
|
exited worker gets `worker-abandon`. Unknown liveness or user takeover
|
|
104
|
-
retains worktree and marker and blocks only that PR.
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
retains worktree and marker and blocks only that PR. An abandon is
|
|
106
|
+
confirmed by its accepted abandon receipt plus proven process exit; there
|
|
107
|
+
is no release receipt on this path. After confirmed abandon, run the same
|
|
108
|
+
cleanup under "Run directory" below with its extra clean-tree condition — a
|
|
109
|
+
dirty or unproven worktree is retained, not removed — append one health
|
|
110
|
+
line, increment the head's `abandon_count`, and drop that head so normal
|
|
111
|
+
selection retries once. For a
|
|
107
112
|
review-triggered dispatch, use the marker's `trigger` to remove exactly its
|
|
108
113
|
review id and digest from `processed_reviews[]`. A second abandon at that
|
|
109
114
|
head is a user-owned hold.
|
|
@@ -112,7 +117,9 @@ The driver performs this order and exits:
|
|
|
112
117
|
marker. Dispatch within the repair and review rules below.
|
|
113
118
|
6. Promote the `pending.json` fingerprint verbatim, because it records
|
|
114
119
|
observation rather than completion. Write `tick_done_at` and
|
|
115
|
-
`tick_outcome: ok`, then exit
|
|
120
|
+
`tick_outcome: ok`, then close your own terminal tab and exit: each tick is
|
|
121
|
+
a fresh session and there is no hygiene sweep, so a tab left open outlives
|
|
122
|
+
the tick as a stray terminal in the root workspace.
|
|
116
123
|
|
|
117
124
|
## Dispatch and repair selection
|
|
118
125
|
|
|
@@ -140,8 +147,9 @@ An own PR needs repair when either trigger applies:
|
|
|
140
147
|
|
|
141
148
|
Repair also requires no deploy-on-push head branch, no live repair cap, and
|
|
142
149
|
selection of the lowest own PR in its stack that needs repair. Create a child
|
|
143
|
-
worktree in that project's clone at the exact head, parented to
|
|
144
|
-
worktree
|
|
150
|
+
worktree in that project's clone at the exact head, parented to that
|
|
151
|
+
project's primary worktree so it appears under the project it serves, and
|
|
152
|
+
dispatch one `axstack-watch` agent in authored repair mode. Its
|
|
145
153
|
brief contains only the triggering checks or review findings. Each open
|
|
146
154
|
descendant records one user-owned `pending restack` hold until it stops needing
|
|
147
155
|
repair. The 24 h cap starts at dispatch and an abandon does not refund it.
|
|
@@ -302,8 +310,31 @@ is no gate for health findings.
|
|
|
302
310
|
|
|
303
311
|
## Run directory
|
|
304
312
|
|
|
305
|
-
|
|
306
|
-
|
|
313
|
+
The driver and watchdog run from the host's `root` folder workspace, not a
|
|
314
|
+
project worktree: no project owns the automation, and every child worktree
|
|
315
|
+
belongs to the project it serves. That workspace is not a git repository, so
|
|
316
|
+
the run directory is private host state, one
|
|
317
|
+
`~/.local/share/axstack/runs/<run id>/` directory. Settlement leaves nothing
|
|
318
|
+
behind, but never destroys work. Before any destructive step the driver
|
|
319
|
+
proves the child is disposable: the worker is settled — on the release path
|
|
320
|
+
a settled release receipt, on the abandon path an accepted abandon receipt,
|
|
321
|
+
either with proven process exit; pending or unknown stops here — the
|
|
322
|
+
worktree's HEAD is either the pinned head or a candidate that is durably
|
|
323
|
+
reachable — pushed to the head branch, tested only after a successful
|
|
324
|
+
targeted fetch of that exact remote branch into a per-dispatch ref, never
|
|
325
|
+
`FETCH_HEAD`, so neither a stale tracking ref nor a concurrent fetch in the
|
|
326
|
+
shared clone can fake durability, a failed fetch retaining the worktree — or held by a
|
|
327
|
+
`refs/axstack/decisions/<token>` ref in the project clone; and, on the
|
|
328
|
+
abandon path, the worktree has no uncommitted changes.
|
|
329
|
+
Only then it closes any terminal tab still listed, clears untracked
|
|
330
|
+
artefacts, removes the child worktree and its directory, deletes the branch
|
|
331
|
+
the worktree created, and verifies the directory is gone. On the settled path
|
|
332
|
+
the worker has finished, so untracked files are artefacts by definition and
|
|
333
|
+
are cleared; a candidate there is already pushed or token-held. An abandoned
|
|
334
|
+
worktree that is dirty or holds an unproven candidate is **retained**, named
|
|
335
|
+
in one `health[]` line with its path and SHA, and blocks only that PR with
|
|
336
|
+
the user as owner. A worktree, directory, branch, or terminal that outlives
|
|
337
|
+
its dispatch without such a retention record is a health finding. The run directory contains:
|
|
307
338
|
|
|
308
339
|
- `cursor.json` — driver only, with these exact keys: `fingerprint`,
|
|
309
340
|
`tick_started_at`, `tick_done_at`, `tick_outcome`, `prs{url: {head, base,
|
|
@@ -325,9 +356,11 @@ Timestamps are UTC `YYYY-MM-DDTHH:MM:SSZ`; an unparsable timestamp is an
|
|
|
325
356
|
`error` for the precheck and `unknown` for the watchdog, never silently
|
|
326
357
|
ignored.
|
|
327
358
|
|
|
328
|
-
Orca run history is the authoritative log. The launch
|
|
329
|
-
|
|
330
|
-
|
|
359
|
+
Orca run history is the authoritative log. The launch workspace is the host's
|
|
360
|
+
`root` folder workspace, not a project worktree: nobody develops there, it is
|
|
361
|
+
not a git repository, and no project owns the automation. The briefs and the
|
|
362
|
+
escalation template are read from the axstack checkout at an absolute path
|
|
363
|
+
given in the prompt, never relative to the launch workspace. Keep this notification-policy edge in the
|
|
331
364
|
run record: `Notification policy` authorizes the token and watchdog sends;
|
|
332
365
|
delivery uses [axstack-relay](../../axstack-relay/SKILL.md).
|
|
333
366
|
|