wicked-crew 0.7.35 → 0.7.37

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 (117) hide show
  1. package/dist/api/chat-scope.d.ts +25 -1
  2. package/dist/api/chat-scope.d.ts.map +1 -1
  3. package/dist/api/chat-scope.js +59 -10
  4. package/dist/api/chat-scope.js.map +1 -1
  5. package/dist/api/delivery-cache.d.ts +23 -6
  6. package/dist/api/delivery-cache.d.ts.map +1 -1
  7. package/dist/api/delivery-cache.js +27 -17
  8. package/dist/api/delivery-cache.js.map +1 -1
  9. package/dist/api/delivery-index.d.ts +45 -3
  10. package/dist/api/delivery-index.d.ts.map +1 -1
  11. package/dist/api/delivery-index.js +79 -4
  12. package/dist/api/delivery-index.js.map +1 -1
  13. package/dist/api/retry-index.d.ts +14 -0
  14. package/dist/api/retry-index.d.ts.map +1 -1
  15. package/dist/api/retry-index.js +29 -0
  16. package/dist/api/retry-index.js.map +1 -1
  17. package/dist/api/roster-standing.d.ts +4 -4
  18. package/dist/api/roster-standing.d.ts.map +1 -1
  19. package/dist/api/roster-standing.js +24 -12
  20. package/dist/api/roster-standing.js.map +1 -1
  21. package/dist/api/routes.d.ts +138 -10
  22. package/dist/api/routes.d.ts.map +1 -1
  23. package/dist/api/routes.js +261 -39
  24. package/dist/api/routes.js.map +1 -1
  25. package/dist/api/run-timing-index.d.ts +22 -0
  26. package/dist/api/run-timing-index.d.ts.map +1 -1
  27. package/dist/api/run-timing-index.js +34 -0
  28. package/dist/api/run-timing-index.js.map +1 -1
  29. package/dist/api/seat-health.d.ts +2 -46
  30. package/dist/api/seat-health.d.ts.map +1 -1
  31. package/dist/api/seat-health.js +28 -111
  32. package/dist/api/seat-health.js.map +1 -1
  33. package/dist/api/seat-standing.d.ts +9 -8
  34. package/dist/api/seat-standing.d.ts.map +1 -1
  35. package/dist/api/seat-standing.js +22 -32
  36. package/dist/api/seat-standing.js.map +1 -1
  37. package/dist/api/server.d.ts.map +1 -1
  38. package/dist/api/server.js +96 -9
  39. package/dist/api/server.js.map +1 -1
  40. package/dist/api/skills.d.ts +2 -2
  41. package/dist/api/stall-frame-index.d.ts +68 -0
  42. package/dist/api/stall-frame-index.d.ts.map +1 -0
  43. package/dist/api/stall-frame-index.js +106 -0
  44. package/dist/api/stall-frame-index.js.map +1 -0
  45. package/dist/api/stall-watchdog.d.ts +22 -2
  46. package/dist/api/stall-watchdog.d.ts.map +1 -1
  47. package/dist/api/stall-watchdog.js +41 -11
  48. package/dist/api/stall-watchdog.js.map +1 -1
  49. package/dist/campaigns/plan.d.ts +12 -2
  50. package/dist/campaigns/plan.d.ts.map +1 -1
  51. package/dist/campaigns/plan.js +3 -0
  52. package/dist/campaigns/plan.js.map +1 -1
  53. package/dist/campaigns/rollup.d.ts +5 -0
  54. package/dist/campaigns/rollup.d.ts.map +1 -1
  55. package/dist/campaigns/rollup.js +3 -2
  56. package/dist/campaigns/rollup.js.map +1 -1
  57. package/dist/campaigns/routes.d.ts +5 -2
  58. package/dist/campaigns/routes.d.ts.map +1 -1
  59. package/dist/campaigns/routes.js +13 -3
  60. package/dist/campaigns/routes.js.map +1 -1
  61. package/dist/cli/index.js +73 -16
  62. package/dist/cli/index.js.map +1 -1
  63. package/dist/cli/port.d.ts +19 -0
  64. package/dist/cli/port.d.ts.map +1 -0
  65. package/dist/cli/port.js +39 -0
  66. package/dist/cli/port.js.map +1 -0
  67. package/dist/core/adapter.d.ts +56 -11
  68. package/dist/core/adapter.d.ts.map +1 -1
  69. package/dist/core/adapter.js +119 -31
  70. package/dist/core/adapter.js.map +1 -1
  71. package/dist/core/bridge-reaper.d.ts +57 -1
  72. package/dist/core/bridge-reaper.d.ts.map +1 -1
  73. package/dist/core/bridge-reaper.js +143 -21
  74. package/dist/core/bridge-reaper.js.map +1 -1
  75. package/dist/core/cursor.d.ts +7 -0
  76. package/dist/core/cursor.d.ts.map +1 -1
  77. package/dist/core/cursor.js +7 -1
  78. package/dist/core/cursor.js.map +1 -1
  79. package/dist/core/deliver-text.d.ts +35 -2
  80. package/dist/core/deliver-text.d.ts.map +1 -1
  81. package/dist/core/deliver-text.js +127 -17
  82. package/dist/core/deliver-text.js.map +1 -1
  83. package/dist/core/deliver-triage.d.ts.map +1 -1
  84. package/dist/core/deliver-triage.js +5 -2
  85. package/dist/core/deliver-triage.js.map +1 -1
  86. package/dist/core/deliver.d.ts +76 -2
  87. package/dist/core/deliver.d.ts.map +1 -1
  88. package/dist/core/deliver.js +209 -16
  89. package/dist/core/deliver.js.map +1 -1
  90. package/dist/core/engine-roster.d.ts +4 -3
  91. package/dist/core/engine-roster.d.ts.map +1 -1
  92. package/dist/core/engine-roster.js +10 -14
  93. package/dist/core/engine-roster.js.map +1 -1
  94. package/dist/core/types.d.ts +20 -0
  95. package/dist/core/types.d.ts.map +1 -1
  96. package/dist/core/types.js.map +1 -1
  97. package/dist/interactive/bridge-pool.d.ts +48 -5
  98. package/dist/interactive/bridge-pool.d.ts.map +1 -1
  99. package/dist/interactive/bridge-pool.js +100 -8
  100. package/dist/interactive/bridge-pool.js.map +1 -1
  101. package/dist/projects/graph.d.ts +4 -0
  102. package/dist/projects/graph.d.ts.map +1 -1
  103. package/dist/projects/graph.js +4 -2
  104. package/dist/projects/graph.js.map +1 -1
  105. package/dist/projects/routes.d.ts +2 -2
  106. package/dist/qe/acceptance.d.ts.map +1 -1
  107. package/dist/qe/acceptance.js +7 -1
  108. package/dist/qe/acceptance.js.map +1 -1
  109. package/dist/skills/base-skill.d.ts +10 -0
  110. package/dist/skills/base-skill.d.ts.map +1 -1
  111. package/dist/skills/base-skill.js +16 -4
  112. package/dist/skills/base-skill.js.map +1 -1
  113. package/dist/studio/assets/{index-CJp35PKj.js → index-Dk98qXKv.js} +103 -102
  114. package/dist/studio/index.html +1 -1
  115. package/dist/studio/testid-inventory.json +29 -5
  116. package/endpoint-manifest.json +12 -0
  117. package/package.json +3 -3
@@ -41,8 +41,17 @@
41
41
  *
42
42
  * One deliberate change from the field version: NO gh account is baked into crew code (the
43
43
  * overlay guarded a personal account). Instead, when the `GH_ACCOUNT` env var is set the script
44
- * compares it against `gh api user -q .login` and runs
45
- * `gh auth switch --hostname github.com --user "$GH_ACCOUNT"` only when they differ.
44
+ * compares it against `gh api user -q .login` and REFUSES when they differ (DES-L9 D-18, crew#549):
45
+ * the daemon's push identity is what its gh — or an exported `GH_TOKEN` — holds, disclosed on the
46
+ * deliver gate card, never switched at push time (the switch this replaced pushed under whatever
47
+ * account it could flip to, and a 403 hard-failed the run). Unset ⇒ whatever gh holds, said aloud.
48
+ *
49
+ * REVISION mode (DES-L9 / crew#550, `POST /runs {revisesPr}`): the run was based on an OPEN pull
50
+ * request's head branch; the script pushes `wicked/<run>` onto `refs/heads/<that branch>` (the PR
51
+ * gains exactly the run's commits — no rebase onto the default branch, no `gh pr create`), proves
52
+ * the remote tip, comments the run record on the PR and prints the PR's URL last. A head that moved
53
+ * or vanished since the run based on it is REFUSED before anything is staged (no LIFT-CONFLICT
54
+ * marker — a re-push cannot succeed; the operator launches a new revision or rebases by hand).
46
55
  *
47
56
  * Merge stays human: the phase opens the PR, never merges it.
48
57
  *
@@ -74,6 +83,8 @@
74
83
  * nothing re-derived what it claimed. It now declares `verified_evidence: true` — see
75
84
  * {@link deliverPrPhase}.
76
85
  */
86
+ import { execFile } from 'node:child_process';
87
+ import { childEnvWithBootEstateDb } from './governance-store.js';
77
88
  import { composeEmbeddedDeliverText, factsFromWorkflow, framedDeliverText, runUrlFor, urlPathSegment, } from './deliver-text.js';
78
89
  /**
79
90
  * The content-address of wicked-core's built-in evidence floor (`builtin_floors::EVIDENCE_FLOOR_PIN`,
@@ -105,6 +116,77 @@ export const DELIVER_PHASE_ID = 'deliver';
105
116
  * terminal run failures exactly as before (the crew#400 refusal-vs-infra posture).
106
117
  */
107
118
  export const DELIVER_LIFT_CONFLICT_MARKER = 'deliver: LIFT-CONFLICT';
119
+ /** A branch name the script may splice into a single-quoted literal and hand to git: the ref
120
+ * charset git accepts for `wicked/<run>`-style heads, no `..`, no leading `-`, no quotes. */
121
+ const SAFE_REF = /^[A-Za-z0-9][A-Za-z0-9._/-]*$/;
122
+ export function isSafeRefName(name) {
123
+ return SAFE_REF.test(name) && !name.includes('..') && !name.endsWith('/') && !name.endsWith('.lock');
124
+ }
125
+ /** The one shape a PR URL may take before it is baked into the script and printed as the phase's
126
+ * last line (crew re-derives "delivered" from that line — `prUrlFrom`). */
127
+ const SAFE_PR_URL = /^https:\/\/[A-Za-z0-9.-]+\/[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+\/pull\/[0-9]+$/;
128
+ /** The `bug` def's `fix` phase instructions — the SAME literal wicked-core's `bug_def()` carries
129
+ * (`BUG_FIX_SWEEP_INSTRUCTIONS`, DES-L9 BC-60 / core#432): both carriers are live (`deliver:pr`
130
+ * plans from this mirror, `deliver:none` from core's def), so one string, pinned by a test. Short
131
+ * (≤ 90 ASCII bytes) on purpose — the PTY carrier's whole prompt is 1000 B and core's budget test
132
+ * keeps ≥ 300 B of intent headroom. */
133
+ export const BUG_FIX_SWEEP_INSTRUCTIONS = 'Update every consumer of behaviour this fix retires or changes: tests, docs, comments.';
134
+ const defaultGhExec = (args, opts) => new Promise((resolve) => {
135
+ // The daemon's governance-store variables never ride into a child (crew#495): the boot value is
136
+ // restored and the exported store URL is stripped, the same helper every other spawn site uses.
137
+ execFile('gh', args, { cwd: opts.cwd, timeout: opts.timeoutMs, encoding: 'utf8', env: childEnvWithBootEstateDb(process.env) }, (err, stdout, stderr) => {
138
+ const code = err === null ? 0 : typeof err.code === 'number' ? (err.code) : null;
139
+ resolve({ stdout: String(stdout ?? ''), stderr: String(stderr ?? ''), code });
140
+ });
141
+ });
142
+ /**
143
+ * Resolve `revisesPr` (a PR number) to the head branch the run will base on and push to — the
144
+ * daemon's job, since the engine has no GitHub client (DES-L9 §2). Bounded to 5 s; every failure
145
+ * is a NAMED refusal (the route answers 409), never a silent second PR:
146
+ * - not OPEN (merged / closed) — only an open pull request can be revised;
147
+ * - a fork PR (`isCrossRepository`) — the run's clone cannot push to another repository's branch;
148
+ * - a head branch name the script cannot splice safely;
149
+ * - `gh` unavailable, unauthenticated, timed out or answering anything but the JSON asked for.
150
+ */
151
+ export async function resolvePullRequest(repoRoot, number, exec = defaultGhExec) {
152
+ if (!Number.isInteger(number) || number <= 0)
153
+ return { ok: false, error: `revisesPr must be a positive pull request number (got ${number})` };
154
+ let out;
155
+ try {
156
+ out = await exec(['pr', 'view', String(number), '--json', 'headRefName,state,isCrossRepository,url'], { cwd: repoRoot, timeoutMs: 5000 });
157
+ }
158
+ catch (err) {
159
+ return { ok: false, error: `gh could not read PR #${number}: ${err instanceof Error ? err.message : String(err)}` };
160
+ }
161
+ if (out.code !== 0) {
162
+ const why = (out.stderr || out.stdout).trim().split('\n').slice(-2).join(' ').slice(0, 300);
163
+ return { ok: false, error: `gh could not read PR #${number}: ${why || (out.code === null ? 'gh timed out or could not be spawned' : `exit ${out.code}`)}` };
164
+ }
165
+ let parsed;
166
+ try {
167
+ parsed = JSON.parse(out.stdout);
168
+ }
169
+ catch {
170
+ return { ok: false, error: `gh could not read PR #${number}: its answer was not the JSON asked for` };
171
+ }
172
+ const r = (parsed ?? {});
173
+ const headRef = r['headRefName'];
174
+ const state = r['state'];
175
+ const url = r['url'];
176
+ if (typeof headRef !== 'string' || typeof state !== 'string' || typeof url !== 'string') {
177
+ return { ok: false, error: `gh could not read PR #${number}: headRefName / state / url missing from its answer` };
178
+ }
179
+ if (state !== 'OPEN')
180
+ return { ok: false, error: `revisesPr #${number} is ${state} — only an open pull request can be revised` };
181
+ if (r['isCrossRepository'] === true) {
182
+ return { ok: false, error: `revisesPr #${number} is a fork pull request (its head lives in another repository) — only a same-repository branch can be revised` };
183
+ }
184
+ if (!isSafeRefName(headRef))
185
+ return { ok: false, error: `revisesPr #${number}'s head branch name cannot be used as a push target: ${JSON.stringify(headRef)}` };
186
+ if (!SAFE_PR_URL.test(url))
187
+ return { ok: false, error: `revisesPr #${number}: gh answered a URL that is not a pull request URL (${url.slice(0, 120)})` };
188
+ return { ok: true, pr: { number, headRef, url, state } };
189
+ }
108
190
  /**
109
191
  * The env var the engine hands the deliver command with the remote-tip commit it VERIFIED the
110
192
  * run's work against (wicked-core#431 / #433, `deliver_lift.rs` `VERIFIED_BASE_ENV`): set on a
@@ -207,6 +289,7 @@ export function deliverPrScript(intent, opts = {}) {
207
289
  repoRef: null,
208
290
  phases: [],
209
291
  runUrl: null,
292
+ revisesPr: opts.revisesPr == null ? null : { number: opts.revisesPr.number, url: opts.revisesPr.url },
210
293
  });
211
294
  // The EMBEDDED fallback is bounded (`EMBEDDED_INTENT_CAP`): this script is one argv entry, and an
212
295
  // unbounded intent could exceed the platform's single-argument limit and E2BIG the phase before
@@ -221,6 +304,20 @@ export function deliverPrScript(intent, opts = {}) {
221
304
  // strict path segment (only `[A-Za-z0-9._~%-]` survive, so the single-quoted literal is safe);
222
305
  // otherwise derived from the branch at run time and percent-encoded byte-wise by the script.
223
306
  const runIdSegment = runId === '' ? '' : urlPathSegment(runId);
307
+ // Revision inputs (DES-L9): fail CLOSED at compose time on anything the script could not splice
308
+ // safely — a revision that silently fell back to a new PR is the duplicate the field is for.
309
+ const revises = opts.revisesPr ?? null;
310
+ if (revises !== null) {
311
+ if (!Number.isInteger(revises.number) || revises.number <= 0)
312
+ throw new Error(`revisesPr: not a pull request number: ${String(revises.number)}`);
313
+ if (!isSafeRefName(revises.headRef))
314
+ throw new Error(`revisesPr #${revises.number}: head branch name cannot be a push target: ${JSON.stringify(revises.headRef)}`);
315
+ if (!SAFE_PR_URL.test(revises.url))
316
+ throw new Error(`revisesPr #${revises.number}: not a pull request URL: ${JSON.stringify(revises.url)}`);
317
+ }
318
+ const prNum = revises === null ? '' : String(revises.number);
319
+ const target = revises === null ? '' : revises.headRef;
320
+ const prUrl = revises === null ? '' : revises.url;
224
321
  return [
225
322
  'set -euo pipefail',
226
323
  // The engine concatenates the child's stdout and THEN its stderr, so anything git writes to
@@ -228,9 +325,24 @@ export function deliverPrScript(intent, opts = {}) {
228
325
  // into stdout for the whole phase keeps the output in true chronological order and makes the
229
326
  // final `echo "$URL"` genuinely last.
230
327
  'exec 2>&1',
231
- // Account guard — env-driven, never a name baked into crew code. Unset ⇒ whatever account
232
- // gh already holds is used as-is.
233
- 'if [ -n "${GH_ACCOUNT:-}" ]; then L=$(gh api user -q .login); [ "$L" = "$GH_ACCOUNT" ] || gh auth switch --hostname github.com --user "$GH_ACCOUNT"; fi',
328
+ // IDENTITY (DES-L9 D-18, crew#549 / F-RC1-010) — read ONCE, up front, before anything is
329
+ // fetched, staged or pushed, so the refusal is the phase's WHOLE output (the engine's head-150
330
+ // carries it). With GH_ACCOUNT set, a differing or unreadable active login REFUSES: the
331
+ // daemon's push identity is what its gh (or an exported GH_TOKEN — then `gh api user` IS the
332
+ // token's login) holds, disclosed on the gate card, never switched at push time. Unset ⇒
333
+ // today's behaviour, now said aloud. No account name is baked into crew code (env-driven).
334
+ 'L=$(gh api user -q .login 2>/dev/null || true)',
335
+ 'if [ -n "${GH_ACCOUNT:-}" ]; then',
336
+ ' [ "$L" = "$GH_ACCOUNT" ] || { echo "deliver: identity mismatch — GH_ACCOUNT is $GH_ACCOUNT but gh\'s active login is ${L:-unreadable}; nothing was staged, committed or pushed. Fix the daemon\'s gh login (switch gh\'s active account, or export GH_TOKEN in the daemon environment) and approve to retry the deliver phase"; exit 1; }',
337
+ ' if [ -n "${GH_TOKEN:-}" ]; then echo "deliver: pushing as $L (GH_ACCOUNT pinned by GH_TOKEN)"; else echo "deliver: pushing as $L (GH_ACCOUNT from the gh keyring — export GH_TOKEN to pin it)"; fi',
338
+ 'elif [ -n "$L" ]; then echo "deliver: pushing as $L (GH_ACCOUNT not set — not pinned)"',
339
+ 'else echo "deliver: pushing as an unknown login (gh not authenticated; GH_ACCOUNT not set — not pinned)"; fi',
340
+ // REVISION MODE inputs (DES-L9 / crew#550) — baked at compose time from the resolved PR, each
341
+ // validated against a strict charset before it is spliced into a single-quoted literal. Empty
342
+ // TARGET ⇒ today's new-PR delivery.
343
+ `PRNUM='${prNum}'`,
344
+ `TARGET='${target}'`,
345
+ `PRURL='${prUrl}'`,
234
346
  // (a) The run branch: wicked/<worktree-basename> (the engine names run worktrees by run id),
235
347
  // falling back to the currently checked-out branch when that ref does not exist.
236
348
  'R=$(basename "$PWD")',
@@ -254,6 +366,21 @@ export function deliverPrScript(intent, opts = {}) {
254
366
  // would put one branch's work on another and push a branch that never saw it. Refuse instead.
255
367
  'C=$(git branch --show-current)',
256
368
  '[ "$C" = "$B" ] || { echo "deliver: the worktree is on \'$C\' but the run branch is \'$B\' — refusing to commit one branch\'s work onto another; nothing was pushed"; exit 1; }',
369
+ // REVISION MODE (DES-L9 / crew#550): the run was based on origin/$TARGET — the open PR's head.
370
+ // The target must still exist and must still be an ANCESTOR of the run branch: a head that
371
+ // moved since the mint (another push to the PR) cannot be fast-forwarded to $B, and a re-push
372
+ // could never succeed — so this is a REFUSAL before staging (no LIFT-CONFLICT marker; the
373
+ // operator launches a new revision on the current head or rebases by hand), not a strand. The
374
+ // short trailing `deliver:` line survives the engine's tail-250 excerpt after the fetch chatter
375
+ // (review F-527-001), so crew classifies it. The default branch can never be a revision target.
376
+ 'if [ -n "$TARGET" ]; then',
377
+ ' case "$TARGET" in ""|main|master|"$DEF") echo "deliver: refusing to revise pull request #$PRNUM — its head branch \'$TARGET\' is the default branch; nothing was staged, committed or pushed"; exit 1;; esac',
378
+ // Asked of the REMOTE (`ls-remote`), not of the clone's `origin/*` refs — a plain fetch never
379
+ // prunes a branch deleted after the PR merged, so the local ref would still resolve and the
380
+ // push would silently RE-CREATE the branch under a closed PR.
381
+ ' git ls-remote --exit-code --heads origin "$TARGET" >/dev/null 2>&1 && git rev-parse --verify -q "origin/$TARGET^{commit}" >/dev/null || { echo "deliver: pull request #$PRNUM\'s branch origin/$TARGET no longer exists on the remote; nothing was staged, committed or pushed"; exit 1; }',
382
+ ' git merge-base --is-ancestor "origin/$TARGET" "$B" || { echo "deliver: pull request #$PRNUM\'s branch moved since this run based on it (origin/$TARGET is no longer an ancestor of $B); nothing was staged, committed or pushed — launch a new revision on the current head, or rebase $B onto origin/$TARGET by hand and approve to retry"; echo "deliver: pull request #$PRNUM\'s branch moved — refused; nothing was pushed"; exit 1; }',
383
+ 'fi',
257
384
  // (a2) VERIFIED-BASE PIN (wicked-core#431 / #433). Before this script runs, the engine LIFTED the
258
385
  // run's work onto the remote default branch's tip and re-ran the repository's checks when the
259
386
  // lift changed the tree; it hands the tip it verified against as WICKED_DELIVER_VERIFIED_BASE
@@ -270,7 +397,7 @@ export function deliverPrScript(intent, opts = {}) {
270
397
  // the line (review F-527-001): the engine keeps head-150 + tail-250 chars of the WHOLE output, and
271
398
  // this line follows the fetch's chatter, so a marker at its head would be elided while a trailing
272
399
  // one always lands in the tail — as the LIFT-CONFLICT push-failure line below already does.
273
- 'if [ -n "${WICKED_DELIVER_VERIFIED_BASE:-}" ]; then',
400
+ 'if [ -n "${WICKED_DELIVER_VERIFIED_BASE:-}" ] && [ -z "$TARGET" ]; then',
274
401
  ' T=$(git rev-parse --verify -q "$D^{commit}" || true)',
275
402
  ` [ "$T" = "$WICKED_DELIVER_VERIFIED_BASE" ] || { echo "deliver: the engine verified this work against $WICKED_DELIVER_VERIFIED_BASE but $D is now \${T:-unresolvable} — refusing to rebase past the verified base; approve to retry the deliver phase (the engine lifts onto the new tip and re-runs the repository checks before pushing). Nothing was staged, committed or pushed; ${DELIVER_BASE_MOVED_MARKER} ($D now \${T:-unresolvable}, verified $WICKED_DELIVER_VERIFIED_BASE)"; exit 1; }`,
276
403
  'fi',
@@ -415,6 +542,15 @@ export function deliverPrScript(intent, opts = {}) {
415
542
  // still fully auditable in the phase output (retained + served on the run wire), never
416
543
  // laundered. `git add` here never touches the untracked recovery sentinel: it was removed
417
544
  // above, before this pass.
545
+ //
546
+ // F-BM-002 (crew#579): the top-level scratch DIRECTORIES — the engine's own `tmp/` (the
547
+ // repo-checks floor's `tmp/wicked-checks`, the worker's pytest temp, node's compile cache; 35 k
548
+ // files on one benchmark run) and the other four — are excluded AT ENUMERATION with git
549
+ // pathspecs and reported ONCE with a count, never walked file-by-file with a fork per file.
550
+ // The per-file `*/tmp/*` arm below still catches a nested scratch dir.
551
+ 'for SD in tmp .tmp scratch .cache coverage; do',
552
+ ' if [ -d "$SD" ]; then N=$(git ls-files --others --exclude-standard -- "$SD" | wc -l | tr -d " "); if [ "${N:-0}" -gt 0 ]; then echo "deliver: EXCLUDED (scratch-dir): $SD/ ($N files)"; fi; fi',
553
+ 'done',
418
554
  'while IFS= read -r -d "" F; do',
419
555
  ' [ -n "$F" ] || continue',
420
556
  ' BN=${F##*/}; RN=""',
@@ -429,7 +565,7 @@ export function deliverPrScript(intent, opts = {}) {
429
565
  ' case "/$F" in */tmp/*|*/.tmp/*|*/scratch/*|*/.cache/*|*/coverage/*) [ -n "$RN" ] || RN="scratch-dir";; esac',
430
566
  ' if [ -z "$RN" ]; then SZ=$(wc -c < "$F" 2>/dev/null || echo 0); [ "${SZ:-0}" -gt 1048576 ] && RN="oversize-1mib"; fi',
431
567
  ' if [ -n "$RN" ]; then echo "deliver: EXCLUDED ($RN): $F"; else git add -- "$F"; fi',
432
- 'done < <(git ls-files --others --exclude-standard -z)',
568
+ "done < <(git ls-files --others --exclude-standard -z -- . ':(exclude)tmp' ':(exclude).tmp' ':(exclude)scratch' ':(exclude).cache' ':(exclude)coverage')",
433
569
  // Only commit when something is staged — a run that committed incrementally (core#280's
434
570
  // liveness contract) leaves a clean tree and must not gain an empty commit here.
435
571
  // `--cleanup=whitespace`, NOT git's default for `-F`: an operator/repo `commit.cleanup=strip`
@@ -438,9 +574,12 @@ export function deliverPrScript(intent, opts = {}) {
438
574
  'git diff --cached --quiet || git commit -q --cleanup=whitespace -F "$TD/text"',
439
575
  // (c2) NOTHING TO DELIVER — no staged work AND no commits of its own. Fail LOUDLY before the
440
576
  // remote is touched: an empty ref pushed under a run id is worse than a failed phase.
577
+ 'if [ -n "$TARGET" ]; then A=$(git rev-list --count "origin/$TARGET..$B"); [ "$A" -ge 1 ] || { echo "deliver: nothing to deliver — the run added no commit on top of PR #$PRNUM"; exit 1; }; else',
441
578
  'A=$(git rev-list --count "$D..$B")',
442
579
  '[ "$A" -ge 1 ] || { echo "deliver: nothing to deliver — the run produced no committed change ($B is not ahead of $D); nothing was pushed"; exit 1; }',
443
- // (c3) Rebase onto origin's default branch so the PR opens mergeable.
580
+ 'fi',
581
+ // (c3) Rebase onto origin's default branch so the PR opens mergeable — NEW-PR mode only: a
582
+ // revision keeps the PR's own history and pushes its commits on top of the PR head as-is.
444
583
  //
445
584
  // crew#418 B — the CHANGELOG collision magnet: two runs that both append to CHANGELOG's
446
585
  // `[Unreleased]` section conflict on the rebase BY CONSTRUCTION, though their added bullet
@@ -456,6 +595,7 @@ export function deliverPrScript(intent, opts = {}) {
456
595
  // run's committed work is safe on its branch, so crew reinterprets THIS refusal as `completed`
457
596
  // + `delivery: 'stranded'` (recoverable via POST /runs/:id/deliver) rather than a run failure.
458
597
  '_rebasing() { [ -d "$(git rev-parse --git-path rebase-merge 2>/dev/null)" ] || [ -d "$(git rev-parse --git-path rebase-apply 2>/dev/null)" ]; }',
598
+ 'if [ -z "$TARGET" ]; then',
459
599
  'if ! git rebase "$D" "$B"; then',
460
600
  // A rebase that failed WITHOUT leaving in-progress state never started — a preflight error
461
601
  // (bad ref, unexpected worktree state), not a conflict. Fail LOUD rather than fall through to
@@ -495,11 +635,15 @@ export function deliverPrScript(intent, opts = {}) {
495
635
  // that WAS ahead can come out of a rebase carrying nothing of its own.
496
636
  'A=$(git rev-list --count "$D..$B")',
497
637
  '[ "$A" -ge 1 ] || { echo "deliver: nothing to deliver — the run produced no committed change (after rebasing onto $D, $B carries no commit of its own); nothing was pushed"; exit 1; }',
638
+ 'fi',
498
639
  // (d) Push. Any push failure happens AFTER the work was committed and its branch was proven
499
640
  // ahead. It is therefore a recoverable lift failure, whether the remote branch moved, auth
500
641
  // returned 403, the transport is down, or a hook rejected it. Preserve git's own output AND
501
642
  // print the marker last, so crew strands the run and POST /runs/:id/deliver can retry it.
502
- 'if PUSHOUT=$(git push -u origin "$B" 2>&1); then echo "$PUSHOUT"; else',
643
+ // A revision pushes the run branch ONTO the PR's head branch (`$B:refs/heads/$TARGET`) — the
644
+ // PR gains exactly the run's commits; a rejection there is the same recoverable strand.
645
+ '_push() { if [ -n "$TARGET" ]; then git push origin "$B:refs/heads/$TARGET"; else git push -u origin "$B"; fi; }',
646
+ 'if PUSHOUT=$(_push 2>&1); then echo "$PUSHOUT"; else',
503
647
  ' echo "$PUSHOUT"',
504
648
  ' case "$PUSHOUT" in',
505
649
  ` *non-fast-forward*|*"fetch first"*|*"[rejected]"*|*"Updates were rejected"*) : > "$S"; echo "${DELIVER_LIFT_CONFLICT_MARKER} — push of $B was rejected because the remote branch moved (non-fast-forward); rebase and re-run; nothing was pushed"; exit 1;;`,
@@ -510,16 +654,32 @@ export function deliverPrScript(intent, opts = {}) {
510
654
  // `| tail -1` threw away everything gh said but one line and made the phase's verdict a
511
655
  // property of a shell option; a gh failure now fails the phase carrying gh's own message.
512
656
  // Title and body are the composed text (c1-text) — never `--fill` (crew#524).
513
- 'if ! OUT=$(gh pr create --head "$B" --title "$TITLE" --body-file "$TD/body" 2>&1); then echo "$OUT"; echo "deliver: gh pr create failed for $B — no PR was opened"; exit 1; fi',
514
- 'echo "$OUT"',
657
+ // REVISION (DES-L9): no PR is opened — the one that exists gained the commits. Done is
658
+ // re-derived from the REMOTE: origin/$TARGET must now be exactly $B. The PR's state is read
659
+ // and disclosed (a PR merged or closed in the window is a warning, not a failure — the commits
660
+ // landed, and a refusal here would loop "nothing to deliver" on the retry). The run record then
661
+ // rides `gh pr comment` (the body the PR-create path would have used); a comment failure is
662
+ // printed, not fatal — the commit message carries the same record.
663
+ 'if [ -n "$TARGET" ]; then',
664
+ ' git fetch -q origin "$TARGET"',
665
+ ' RT=$(git rev-parse "origin/$TARGET"); LT=$(git rev-parse "$B")',
666
+ ' [ "$RT" = "$LT" ] || { echo "deliver: origin/$TARGET is at ${RT:0:10} after the push, not at $B (${LT:0:10}) — refusing to report a delivery the remote does not show"; exit 1; }',
667
+ ' ST=$(gh pr view "$PRNUM" --json state -q .state 2>/dev/null || true)',
668
+ ' if [ "$ST" = "OPEN" ]; then echo "deliver: pull request #$PRNUM is OPEN and its branch $TARGET is at $B"; else echo "deliver: warning — pull request #$PRNUM reads ${ST:-unknown} (not OPEN) after the push; the commits landed on origin/$TARGET"; fi',
669
+ ' if COUT=$(gh pr comment "$PRNUM" --body-file "$TD/body" 2>&1); then echo "deliver: run record commented on pull request #$PRNUM"; else echo "$COUT"; echo "deliver: could not comment on pull request #$PRNUM — the commits landed; the record is in the commit message"; fi',
670
+ ' URL="$PRURL"',
671
+ 'else',
672
+ ' if ! OUT=$(gh pr create --head "$B" --title "$TITLE" --body-file "$TD/body" 2>&1); then echo "$OUT"; echo "deliver: gh pr create failed for $B — no PR was opened"; exit 1; fi',
673
+ ' echo "$OUT"',
515
674
  // (f) DONE IS RE-DERIVED, NOT ASSERTED — twice, from two independent facts, before the phase
516
675
  // is allowed to report a delivery:
517
676
  // 1. gh actually produced a PR URL (an exit code alone is a claim, not evidence);
518
677
  // 2. the ref ON THE REMOTE is ahead of origin's default branch by at least one commit.
519
- "URL=$(printf '%s\\n' \"$OUT\" | grep -Eo 'https://[^[:space:]]+/pull/[0-9]+' | tail -1 || true)",
520
- '[ -n "$URL" ] || { echo "deliver: gh pr create exited 0 but produced no PR URL for $B — refusing to report a delivery nothing can be pointed at"; exit 1; }',
521
- 'P=$(git rev-list --count "$D..origin/$B")',
522
- '[ "$P" -ge 1 ] || { echo "deliver: $B is not ahead of $D on the remote after the push — refusing to report a delivery with no commits"; exit 1; }',
678
+ " URL=$(printf '%s\\n' \"$OUT\" | grep -Eo 'https://[^[:space:]]+/pull/[0-9]+' | tail -1 || true)",
679
+ ' [ -n "$URL" ] || { echo "deliver: gh pr create exited 0 but produced no PR URL for $B — refusing to report a delivery nothing can be pointed at"; exit 1; }',
680
+ ' P=$(git rev-list --count "$D..origin/$B")',
681
+ ' [ "$P" -ge 1 ] || { echo "deliver: $B is not ahead of $D on the remote after the push — refusing to report a delivery with no commits"; exit 1; }',
682
+ 'fi',
523
683
  'echo "$URL"',
524
684
  ].join('\n');
525
685
  }
@@ -559,6 +719,10 @@ export function deliverPrPhase(dependsOn = [], intent, opts = {}) {
559
719
  id: DELIVER_PHASE_ID,
560
720
  kind: 'build',
561
721
  executor: { type: 'tool', cmd: ['bash', '-lc', deliverPrScript(intent, opts)] },
722
+ // DES-L9: the deliver GATE card text — what the push will do and under which identity, with
723
+ // the pin source named (F9). The engine folds `instructions` onto the unit description after
724
+ // ` ||| ` (core `plan_from_def`), and `advance_or_pause` prints the description on the gate.
725
+ instructions: deliverGateInstructions(opts),
562
726
  gate_type: null,
563
727
  gate: 'auto',
564
728
  executes_code: false,
@@ -571,6 +735,26 @@ export function deliverPrPhase(dependsOn = [], intent, opts = {}) {
571
735
  validator_pin: EVIDENCE_FLOOR_PIN,
572
736
  };
573
737
  }
738
+ /**
739
+ * What the deliver gate card says (DES-L9 §4): the push target — onto the revised PR's branch, or a
740
+ * new PR — and the push identity with its pin source: `GH_ACCOUNT` pinned by an exported `GH_TOKEN`
741
+ * (then `gh api user` IS the token's login and the script refuses on a difference), `GH_ACCOUNT`
742
+ * from the gh keyring (the login can flip between this check and the push — export `GH_TOKEN` to
743
+ * pin it), or unset (pushes as whatever login gh holds). Never the token, never a live probe.
744
+ */
745
+ export function deliverGateInstructions(opts) {
746
+ const pr = opts.revisesPr ?? null;
747
+ const target = pr !== null
748
+ ? `Pushes wicked/<run> onto pull request #${pr.number} (branch ${pr.headRef}); no new PR.`
749
+ : 'Pushes the run branch wicked/<run> to origin and opens a pull request; merge stays human.';
750
+ const account = opts.ghAccount ?? null;
751
+ const who = account !== null && account !== ''
752
+ ? opts.ghTokenPinned === true
753
+ ? `Push identity: GH_ACCOUNT=${account}, pinned by GH_TOKEN — the phase refuses if gh's login differs at push time.`
754
+ : `Push identity: GH_ACCOUNT=${account} from the gh keyring — the login can change between the check and the push; export GH_TOKEN to pin it. The phase refuses if gh's login differs.`
755
+ : 'Push identity: GH_ACCOUNT is not set — pushes as whatever login gh holds.';
756
+ return `${target} ${who}`;
757
+ }
574
758
  export function composeDeliverWorkflow(base, runId, intent, launch = {}) {
575
759
  if (base.phases.some((p) => p.id === DELIVER_PHASE_ID)) {
576
760
  throw new Error(`workflow '${base.id}' already has a '${DELIVER_PHASE_ID}' phase — launch it without deliver: "pr"`);
@@ -583,6 +767,7 @@ export function composeDeliverWorkflow(base, runId, intent, launch = {}) {
583
767
  // Truncate the run-id TAIL, keeping the base+marker prefix intact (Copilot on #303).
584
768
  const composedId = `${base.id}-deliver-${safeRunId}`.slice(0, 128);
585
769
  const apiOrigin = launch.apiOrigin ?? null;
770
+ const revisesPr = launch.revisesPr ?? null;
586
771
  const facts = factsFromWorkflow({
587
772
  runId,
588
773
  intent,
@@ -590,6 +775,7 @@ export function composeDeliverWorkflow(base, runId, intent, launch = {}) {
590
775
  repoRef: launch.repoRef ?? null,
591
776
  phases: base.phases,
592
777
  runUrl: runUrlFor(apiOrigin, runId),
778
+ revisesPr: revisesPr === null ? null : { number: revisesPr.number, url: revisesPr.url },
593
779
  });
594
780
  return {
595
781
  // No `is_system` on purpose: core's overlay/register schema rejects unknown fields, and the
@@ -597,7 +783,14 @@ export function composeDeliverWorkflow(base, runId, intent, launch = {}) {
597
783
  id: composedId,
598
784
  phases: [
599
785
  ...base.phases,
600
- deliverPrPhase(last !== undefined ? [last.id] : [], intent, { runId, facts, apiOrigin }),
786
+ deliverPrPhase(last !== undefined ? [last.id] : [], intent, {
787
+ runId,
788
+ facts,
789
+ apiOrigin,
790
+ revisesPr,
791
+ ghAccount: launch.ghAccount ?? null,
792
+ ghTokenPinned: launch.ghTokenPinned === true,
793
+ }),
601
794
  ],
602
795
  };
603
796
  }
@@ -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;IAC3C,MAAM,KAAK,GAAG,iBAAiB,CAAC;QAC9B,KAAK;QACL,MAAM;QACN,UAAU,EAAE,IAAI,CAAC,EAAE;QACnB,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,IAAI;QAC/B,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,MAAM,EAAE,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC;QACnC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,SAAS,CAAC,GAAG,EAAE;KACxF,CAAC,CAAC;IACH,OAAO;QACL,4FAA4F;QAC5F,kDAAkD;QAClD,EAAE,EAAE,UAAU;QACd,MAAM,EAAE;YACN,GAAG,IAAI,CAAC,MAAM;YACd,cAAc,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE;gBAC1D,KAAK;gBACL,KAAK;gBACL,SAAS;gBACT,SAAS;gBACT,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI;gBACnC,aAAa,EAAE,MAAM,CAAC,aAAa,KAAK,IAAI;aAC7C,CAAC;SACH;KACF,CAAC;AACJ,CAAC"}
@@ -4,9 +4,10 @@
4
4
  * half of F-7R2-006).
5
5
  *
6
6
  * `GET /roster` decorates every registry seat with crew's own readings: runtime `health`
7
- * (`{status: 'active'|'inactive', since, …}` — seat-health.ts), `signed_in`, `auth`,
8
- * `free_tier(_source)`, `council_eligible` + `council_ineligible_reason` + `council_bench`
9
- * (seat-standing.ts). The studio's launch form round-trips those seats into `clisJson` verbatim,
7
+ * (`{status: 'active', since, lastErrorAt?}` — seat-health.ts; `inactive` is no longer produced), `signed_in`, `auth`,
8
+ * `free_tier(_source)`, `council_eligible` + `council_ineligible_reason` (seat-standing.ts;
9
+ * `council_bench` is gone — R5b — though the stripper below still names it, so a seat from an older
10
+ * daemon's roster cannot round-trip it into the engine). The studio's launch form round-trips those seats into `clisJson` verbatim,
10
11
  * which was fine while the engine ignored every unknown field — but the wave-6 engine grew its own
11
12
  * `AgenticCli.health: Option<SeatHealth {usable: bool, reason?}>` (the launcher's usability verdict
12
13
  * that benches a seat for the run). Same key, different shape: a round-tripped crew `health`
@@ -1 +1 @@
1
- {"version":3,"file":"engine-roster.d.ts","sourceRoot":"","sources":["../../src/core/engine-roster.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,iGAAiG;AACjG,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,MAAM,CASpD,CAAC;AAEH,2EAA2E;AAC3E,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,SAAS,CAmBlF;AAED;yEACyE;AACzE,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAkBnD;AAED,gCAAgC;AAChC,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,GAAG,OAAO,EAAE,CAEnE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CASzD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,WAAW,GAAG,WAAW,CAW/D;AAED,wGAAwG;AACxG,eAAO,MAAM,qBAAqB,EAAG,kBAA2B,CAAC;AAEjE,qGAAqG;AACrG,eAAO,MAAM,uBAAuB,QAEmB,CAAC;AAExD;;;;;;;;GAQG;AACH,wBAAgB,m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,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CASzD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,WAAW,GAAG,WAAW,CAW/D;AAED,wGAAwG;AACxG,eAAO,MAAM,qBAAqB,EAAG,kBAA2B,CAAC;AAEjE,qGAAqG;AACrG,eAAO,MAAM,uBAAuB,QAEmB,CAAC;AAExD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAK9F;AAED,mGAAmG;AACnG,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC1C;IACD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,qBAAqB,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAQA;AAED,mGAAmG;AACnG,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,GAAG,MAAM,EAAE,CAWpE"}
@@ -4,9 +4,10 @@
4
4
  * half of F-7R2-006).
5
5
  *
6
6
  * `GET /roster` decorates every registry seat with crew's own readings: runtime `health`
7
- * (`{status: 'active'|'inactive', since, …}` — seat-health.ts), `signed_in`, `auth`,
8
- * `free_tier(_source)`, `council_eligible` + `council_ineligible_reason` + `council_bench`
9
- * (seat-standing.ts). The studio's launch form round-trips those seats into `clisJson` verbatim,
7
+ * (`{status: 'active', since, lastErrorAt?}` — seat-health.ts; `inactive` is no longer produced), `signed_in`, `auth`,
8
+ * `free_tier(_source)`, `council_eligible` + `council_ineligible_reason` (seat-standing.ts;
9
+ * `council_bench` is gone — R5b — though the stripper below still names it, so a seat from an older
10
+ * daemon's roster cannot round-trip it into the engine). The studio's launch form round-trips those seats into `clisJson` verbatim,
10
11
  * which was fine while the engine ignored every unknown field — but the wave-6 engine grew its own
11
12
  * `AgenticCli.health: Option<SeatHealth {usable: bool, reason?}>` (the launcher's usability verdict
12
13
  * that benches a seat for the run). Same key, different shape: a round-tripped crew `health`
@@ -25,6 +26,9 @@
25
26
  */
26
27
  /** The crew-only readings `GET /roster` adds to a registry seat — never handed to the engine. */
27
28
  export const CREW_ONLY_SEAT_FIELDS = new Set([
29
+ // F-W1-005: the daemon's chat admission verdict — the studio picker's source of truth, not an
30
+ // engine field.
31
+ 'chat_admission',
28
32
  'health',
29
33
  'signed_in',
30
34
  'auth',
@@ -48,17 +52,9 @@ export function shortBenchReason(seat) {
48
52
  return 'not enabled for council';
49
53
  if (seat['auth'] === 'signed_out')
50
54
  return 'signed out';
51
- const health = seat['health'];
52
- if (typeof health === 'object' && health !== null && health.status === 'inactive') {
53
- return 'inactive after a seat-level error';
54
- }
55
- const bench = seat['council_bench'];
56
- if (typeof bench === 'object' && bench !== null) {
57
- const b = bench;
58
- const kind = typeof b.last_kind === 'string' ? b.last_kind.replace(/_/g, ' ') : 'ballot failures';
59
- const n = typeof b.failures === 'number' ? `${b.failures} ` : '';
60
- return `benched by recent councils (${n}${kind})`;
61
- }
55
+ // (R5 / R5b, DES-L3 PR-3D) The `inactive` health flip and the crew council-count bench are
56
+ // gone — the engine's per-run ballot ledger is the one bench; a stale client's `council_bench`
57
+ // is still stripped by CREW_ONLY_SEAT_FIELDS, never read.
62
58
  const verbose = seat['council_ineligible_reason'];
63
59
  if (typeof verbose === 'string' && verbose.trim() !== '') {
64
60
  return verbose.split(/\s+—\s+|;\s+/, 1)[0].trim().slice(0, 80);
@@ -1 +1 @@
1
- {"version":3,"file":"engine-roster.js","sourceRoot":"","sources":["../../src/core/engine-roster.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AA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,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAE,EAAE,CAAC;AAC9D,CAAC;AAED,mGAAmG;AACnG,MAAM,UAAU,kBAAkB,CAChC,OAAe,EACf,OAA2C;IAQ3C,OAAO;QACL,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,MAAM,EAAE,uBAAuB;KAChC,CAAC;AACJ,CAAC;AAED,mGAAmG;AACnG,MAAM,UAAU,gBAAgB,CAAC,KAAyB;IACxD,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,KAAK,MAAM,IAAI,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;QACzC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI;YAAE,SAAS;QACxD,MAAM,CAAC,GAAG,IAA0E,CAAC;QACrF,IAAI,OAAO,CAAC,CAAC,GAAG,KAAK,QAAQ;YAAE,SAAS;QACxC,IAAI,CAAC,CAAC,mBAAmB,KAAK,KAAK;YAAE,SAAS;QAC9C,IAAI,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM;YAAE,SAAS;QAC3D,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAClB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -49,6 +49,26 @@ export interface LaunchRunInput {
49
49
  autoDeliver?: boolean;
50
50
  /** Id of a registered repo to run within. Omit for a repo-less run. */
51
51
  repoRef?: string;
52
+ /**
53
+ * DES-L9 / crew#550 (`revisesPr`): the head BRANCH of the open pull request this run revises,
54
+ * resolved by the HTTP boundary from the PR number via `gh pr view` — the engine bases the run
55
+ * worktree on `origin/<baseRef>` (wicked-core `LaunchSpec.base_ref`, core-ts ≥ 0.7.27) and the
56
+ * composed deliver phase pushes the run's commits onto that branch instead of opening a second
57
+ * PR. Crew-INTERNAL: never on the wire (`LaunchRunBody` carries `revisesPr` only). The adapter
58
+ * fails CLOSED on an addon without the field — an older engine would base on the default branch
59
+ * and push a duplicate PR.
60
+ */
61
+ baseRef?: string;
62
+ /**
63
+ * The pull request `baseRef` was resolved from (DES-L9): number, head branch and URL — carried
64
+ * to the deliver phase so its script pushes `wicked/<run>` onto `refs/heads/<headRef>`, proves
65
+ * the tip, comments the run record on the PR (`gh pr comment`) and prints the PR URL last.
66
+ */
67
+ revisesPr?: {
68
+ number: number;
69
+ headRef: string;
70
+ url: string;
71
+ };
52
72
  /** Workflow def id to drive (e.g. `domain-extraction`). Omit ⇒ free-text planning. */
53
73
  workflow?: string;
54
74
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mBAAmB,uBAAuB,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEvF,2EAA2E;AAC3E,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,8FAA8F;AAC9F,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,qBAAqB;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sFAAsF;IACtF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AACH,eAAO,MAAM,oCAAoC,IAAI,CAAC;AAEtD;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD;;;;;;;;;OASG;IACH,CAAC,GAAG,EAAE,UAAU,MAAM,EAAE,GAAG,OAAO,CAAC;IACnC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,gBAAgB,EAAE,kBAiB9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH,OAAO,EAAE,sBAAsB,EAAwB,MAAM,yBAAyB,CAAC;AAuGvF,+FAA+F;AAC/F,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAE/C;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,EAAE,CAAC;AAExD;;;;GAIG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,UAAmB,CAAC;AAExE;;;GAGG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC;AAkCtD,MAAM,CAAC,MAAM,gBAAgB,GAAuB;IAClD,cAAc,EAAE,GAAG;IACnB,kBAAkB,EAAE,4BAA4B;IAChD,8FAA8F;IAC9F,+FAA+F;IAC/F,0BAA0B,EAAE,qCAAqC;IACjE,6FAA6F;IAC7F,gFAAgF;IAChF,8DAA8D;IAC9D,cAAc,EAAE,IAAI;IACpB,+FAA+F;IAC/F,8FAA8F;IAC9F,6FAA6F;IAC7F,6FAA6F;IAC7F,wFAAwF;IACxF,YAAY,EAAE,sBAAsB;IACpC,eAAe,EAAE,SAAS;CAC3B,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH,OAAO,EAAE,sBAAsB,EAAwB,M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