@attalabs/vinaya 0.43.1 → 0.44.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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/checks/bin/check-token-collection-wired.js +0 -1
  3. package/dist/checks/bin/verify-dispatch.js +0 -1
  4. package/dist/index.js +105 -42
  5. package/dist/programs/dev-review-loop.js +3 -2
  6. package/dist/programs/run-engine.js +59 -33
  7. package/dist/programs/task-brief.js +29 -4
  8. package/dist/programs/task-tools-serve.js +37 -8
  9. package/package.json +1 -1
  10. package/studio-standalone/apps/vinaya-studio/.next/BUILD_ID +1 -1
  11. package/studio-standalone/apps/vinaya-studio/.next/build-manifest.json +2 -2
  12. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  13. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.html +1 -1
  14. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.rsc +1 -1
  15. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  16. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  17. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  18. package/studio-standalone/apps/vinaya-studio/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  19. package/studio-standalone/apps/vinaya-studio/.next/server/app/milestones/page_client-reference-manifest.js +1 -1
  20. package/studio-standalone/apps/vinaya-studio/.next/server/app/page.js +1 -1
  21. package/studio-standalone/apps/vinaya-studio/.next/server/app/page.js.nft.json +1 -1
  22. package/studio-standalone/apps/vinaya-studio/.next/server/app/page_client-reference-manifest.js +1 -1
  23. package/studio-standalone/apps/vinaya-studio/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  24. package/studio-standalone/apps/vinaya-studio/.next/server/chunks/209.js +2 -2
  25. package/studio-standalone/apps/vinaya-studio/.next/server/chunks/951.js +1 -1
  26. package/studio-standalone/apps/vinaya-studio/.next/server/middleware-build-manifest.js +1 -1
  27. package/studio-standalone/apps/vinaya-studio/.next/server/pages/500.html +1 -1
  28. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/151-23bea4cac9687151.js +1 -0
  29. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/app/layout-dfa2186095e797bd.js +1 -0
  30. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/app/milestones/page-2fffb49104860a15.js +1 -0
  31. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/app/page-6ae258f663623b2a.js +1 -0
  32. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/app/tasks/page-2fffb49104860a15.js +1 -0
  33. package/studio-standalone/apps/vinaya-studio/log-follow.mjs +5601 -0
  34. package/studio-standalone/apps/vinaya-studio/log-sync-folder-source.mjs +5089 -0
  35. package/studio-standalone/apps/vinaya-studio/package.json +2 -0
  36. package/studio-standalone/apps/vinaya-studio/studio-server.mjs +2574 -2
  37. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/app/layout-57b790abf8793795.js +0 -1
  38. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/app/milestones/page-9fbd5991bc7a1eed.js +0 -1
  39. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/app/page-9fbd5991bc7a1eed.js +0 -1
  40. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/app/tasks/page-9fbd5991bc7a1eed.js +0 -1
  41. /package/studio-standalone/apps/vinaya-studio/.next/static/{64XwAXRg-jkgQPC54BkEN → _r9iZDxlkoek85d_3oaxL}/_buildManifest.js +0 -0
  42. /package/studio-standalone/apps/vinaya-studio/.next/static/{64XwAXRg-jkgQPC54BkEN → _r9iZDxlkoek85d_3oaxL}/_ssgManifest.js +0 -0
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- // @bun
3
2
  import { createRequire } from "node:module";
4
3
  var __create = Object.create;
5
4
  var __getProtoOf = Object.getPrototypeOf;
@@ -1670,6 +1669,20 @@ function findLetteredEdgeIds(body) {
1670
1669
  }
1671
1670
  return found;
1672
1671
  }
1672
+ function findPlainTextEdgeLabels(body) {
1673
+ const prose = extractSection(body).replace(/`[^`]*`/g, " ");
1674
+ const found = [];
1675
+ const labelPattern = /(Depends-on|Conflicts-with)\s*:[ \t]*([^.;—(\n]*)/gi;
1676
+ let match = labelPattern.exec(prose);
1677
+ while (match !== null) {
1678
+ const value = (match[2] ?? "").trim();
1679
+ const hasId = value.split(",").some((s) => ID_TOKEN.test(s.trim()));
1680
+ if (hasId)
1681
+ found.push(`${match[1]}: ${value}`);
1682
+ match = labelPattern.exec(prose);
1683
+ }
1684
+ return found;
1685
+ }
1673
1686
  var SECTION_HEADER, NEXT_HEADER, FIELD_LABEL, ID_TOKEN, SLUG_QUALIFIED_ID, LETTERED_EDGE_ID;
1674
1687
  var init_parse_rationale_deps = __esm(() => {
1675
1688
  SECTION_HEADER = /\*\*Dependency rationale\*\*/i;
@@ -3772,6 +3785,15 @@ function checkEdgeIdsWholeNumbers(body) {
3772
3785
  errors: lettered.map((id) => `issue-validation edge id: \`${id}\` in a \`Depends-on\`/\`Conflicts-with\` edge is not a whole number — task ids are whole numbers (\`1\`, \`2\`), never lettered (\`2a\`). \`vinaya task run\` and \`task dispatch\` refuse a non-numeric id, so a plan naming one names a task that cannot be started.`)
3773
3786
  };
3774
3787
  }
3788
+ function checkEdgesInBackticks(body) {
3789
+ const plain = findPlainTextEdgeLabels(body);
3790
+ if (plain.length === 0)
3791
+ return { status: "pass", errors: [] };
3792
+ return {
3793
+ status: "fail",
3794
+ errors: plain.map((label) => `issue-validation edge backticks: \`${label}\` is written outside backticks — an edge is read only inside backticks, as \`Depends-on: #5\`, so this one is silently dropped and the task would start without it. Wrap it in a backtick span.`)
3795
+ };
3796
+ }
3775
3797
  function checkIssueObjectives(body, issueNumber, sinceIssue = OBJECTIVES_SINCE_ISSUE) {
3776
3798
  if (sinceIssue !== null && issueNumber !== null && issueNumber < sinceIssue)
3777
3799
  return { status: "pass", errors: [] };
@@ -27131,7 +27153,7 @@ var init_commands = __esm(() => {
27131
27153
  flags: [
27132
27154
  {
27133
27155
  flag: "--runner <standalone|atta-engine>",
27134
- description: "Override runner config for this invocation; absent uses config, whose default is standalone"
27156
+ description: "Override runner config for this invocation; absent uses config, whose default is atta-engine, which needs Bun on the PATH"
27135
27157
  },
27136
27158
  {
27137
27159
  flag: "--agent <claude|codex>",
@@ -27151,7 +27173,7 @@ var init_commands = __esm(() => {
27151
27173
  }
27152
27174
  ],
27153
27175
  details: [
27154
- "The atta-engine runner starts the Engine runner with Bun, so it needs Bun on the machine, streams its output and returns its exit code. The published package carries the Engine runner as a built program and a checkout starts its source file; a command line without the runner file prints one notice and falls back to standalone. Engine Log events use the local folder only; logs: false disables all Log destinations for both runners.",
27176
+ "The atta-engine runner starts the Engine runner with Bun, so it needs Bun on the PATH, streams its output and returns its exit code; it is the default when config names no runner. The published package carries the Engine runner as a built program and a checkout starts its source file. When the runner file is absent or Bun is not on the PATH, the run is refused with one message naming the cause and exits 3, before it is prepared or a background controller launched, and names `--runner standalone` — or, for a flow other than v1, says that flow needs the Engine; a `--rollback` start makes no such check. Engine Log events use the local folder only; logs: false disables all Log destinations for both runners.",
27155
27177
  "A run's runner is recorded when it starts and never changes: switching `runner` in config changes only the runner of new runs, and a run recorded on `atta-engine` keeps routing to the Engine for `task status`, `task_resume` and `task_cancel`. A start on a pause another runner holds is refused with a typed reason naming the recorded runner and the requested one, and so is a start on another runner's Engine run that is still in flight with no pause held — halted or stopped short of completed or cancelled.",
27156
27178
  "`--rollback` ends the Engine run first: a held pause through the shared cancel `task_cancel` uses, which needs a Principal ruling newer than the pause as any cancel does; a run halted with no pause held has its started effects fenced; a run that already completed or was cancelled is refused, as is a driver still running with no pause held, which is never signalled; and the standalone run never starts while the Engine driver lives, a cancelled run's driver given a bounded wait to release its lock. Every started and uncertain effect is then reconciled by its identity: one the forge carries is recorded verified, one it does not carry is left for the restarted run to complete, and one the forge read cannot settle refuses the restart. Each rehearsal appends a record — task, recorded runner, action, reconciled effect identities, the restarted run's runner and terminal state — to `backend-rollback-rehearsals.jsonl` in the task's runtime directory, whether it completed, was refused or failed at a later step, and nothing removes it.",
27157
27179
  "`--widen-surface` is the Planner's one command for a widen-surface escalation, and refuses before any write when the held pause is not one (no pause, a pause with a pull request — whose continuation is the ruling on that pull request — or a round whose Developer asked for no `widen_surface`), when a driver is still alive for the task, when the escalation's resolution is already consumed (a replay — the Surface is never widened twice), or when the widened body fails the write gate, whose findings name the field to edit first. The escalation packet's permitted next actions name this command with the globs the Developer asked for, and `task_resume` refuses such an escalation naming it.",
@@ -28184,8 +28206,8 @@ var init_config_reference = __esm(() => {
28184
28206
  key: "runner",
28185
28207
  type: '"standalone" | "atta-engine" (optional)',
28186
28208
  semantics: [
28187
- "Selects the task runner. The default is `standalone`: an absent key runs the standalone loop, so a published install never changes runner on its own. Any value other than `standalone` or `atta-engine` is refused at config load. `task run --runner <name>` overrides this setting for one invocation, so `standalone` stays selectable by this key and by that flag.",
28188
- "atta-engine starts the Engine runner as a Bun subprocess with the resolved task, agent and model, so it needs Bun on the machine. The published package carries the Engine runner as a built program, `dist/programs/run-engine.js`, beside a copy of the process files it loads under `dist/vinaya-strict`; a checkout of this repository starts the runner’s source file. When the Engine runner file is absent, `task run` prints one fallback notice, `vinaya task run: Engine runner script is unavailable; falling back to standalone.`, and runs standalone. The Engine Log reaches the same configured destination the standalone loop uses, a server included.",
28209
+ "Selects the task runner. The default is `atta-engine`: an absent key runs the Atta Engine. Any value other than `standalone` or `atta-engine` is refused at config load. `task run --runner <name>` overrides this setting for one invocation, so `standalone` stays selectable by this key and by that flag.",
28210
+ "atta-engine starts the Engine runner as a Bun subprocess with the resolved task, agent and model, so it needs Bun on the PATH. The published package carries the Engine runner as a built program, `dist/programs/run-engine.js`, beside a copy of the process files it loads under `dist/vinaya-strict`; a checkout of this repository starts the runner’s source file. When the Engine runner file is absent or Bun is not on the PATH, the run is refused with one message naming the cause, before the Issue is assigned or a runner recorded: it names `--runner standalone`, or, for a flow other than `v1`, says that flow needs the Engine. No run continues on the standalone runner by itself. The Engine Log reaches the same configured destination the standalone loop uses, a server included.",
28189
28211
  "Each run records the runner it actually used, and status, resume and cancel follow that record rather than this key. A run with no recorded runner, started before runs recorded one, is a standalone run, whatever this key now names."
28190
28212
  ],
28191
28213
  example: `{ "runner": "atta-engine" }`
@@ -79838,7 +79860,8 @@ function noPushResumeArgv(task, branch, agent, model, runner) {
79838
79860
  ...address,
79839
79861
  ...agent ? ["--agent", agent] : [],
79840
79862
  ...model ? ["--model", model] : [],
79841
- ...runner ? ["--runner", runner] : []
79863
+ "--runner",
79864
+ runner ?? "standalone"
79842
79865
  ];
79843
79866
  }
79844
79867
  function shellQuote(token) {
@@ -83171,7 +83194,7 @@ var init_driver_lifecycle = __esm(() => {
83171
83194
  });
83172
83195
 
83173
83196
  // ../../harness/processes/vinaya-strict/loops/dev-review/run-control/task-run-engine.ts
83174
- import { existsSync as existsSync39, readFileSync as readFileSync40, renameSync as renameSync11, writeFileSync as writeFileSync24 } from "node:fs";
83197
+ import { accessSync as accessSync4, constants as constants3, existsSync as existsSync39, readFileSync as readFileSync40, renameSync as renameSync11, statSync as statSync12, writeFileSync as writeFileSync24 } from "node:fs";
83175
83198
  function taskRunnerRecordPath(task, root = runtimeDirForThisRepo()) {
83176
83199
  return runPath(root, task, { area: "task", file: "runner.json" });
83177
83200
  }
@@ -87195,7 +87218,7 @@ var init_pr = __esm(async () => {
87195
87218
 
87196
87219
  // ../../harness/processes/vinaya-strict/loops/dev-review/standalone/dev-review-loop/live-check.ts
87197
87220
  import { execFile as execFile13, execFileSync as execFileSync38, spawn as spawn9 } from "node:child_process";
87198
- import { mkdtempSync as mkdtempSync11, rmSync as rmSync22, statSync as statSync14 } from "node:fs";
87221
+ import { mkdtempSync as mkdtempSync11, rmSync as rmSync22, statSync as statSync16 } from "node:fs";
87199
87222
  import { homedir as homedir14, tmpdir as tmpdir13 } from "node:os";
87200
87223
  import { join as join56 } from "node:path";
87201
87224
  function liveVendorsNamed(command) {
@@ -87203,7 +87226,7 @@ function liveVendorsNamed(command) {
87203
87226
  }
87204
87227
  function nonEmptyFileExists(path) {
87205
87228
  try {
87206
- const stat = statSync14(path);
87229
+ const stat = statSync16(path);
87207
87230
  return stat.isFile() && stat.size > 0;
87208
87231
  } catch {
87209
87232
  return false;
@@ -93900,6 +93923,7 @@ var ISSUE_CONTENT_RECOVERY = {
93900
93923
  surfaceGlobsResolve: "Fix the named `## Surface` `in:` glob so it matches at least one real tracked file (a typo, or a directory that does not exist yet), then re-run `{cmd}`.",
93901
93924
  partsCiteObjectives: "Fix the named Part to cite an objective id the `## Objectives` section actually defines, or add the missing objective, then re-run `{cmd}`.",
93902
93925
  edgeIdsWholeNumbers: "Rewrite the named `Depends-on`/`Conflicts-with` edge to a whole-number task id (`1`, `2`), a `#<NNN>` Issue ref, or a `<slug> <n>` cross-tranche reference — task ids are never lettered — then re-run `{cmd}`.",
93926
+ edgesInBackticks: "Wrap the named `Depends-on`/`Conflicts-with` label and its ids in one backtick span (`Depends-on: #5`) — an edge written outside backticks is not read — then re-run `{cmd}`.",
93903
93927
  docsWithinSurface: 'Move the named doc pointer to a path `## Surface`\'s `in:` globs actually cover (never widen the surface just to fit the pointer — that renders an unusable brief), or drop it from "Docs to keep coherent" if this task does not really keep it coherent, then re-run `{cmd}`.',
93904
93928
  surfaceExcludesBoundDoc: "Either move the named `out:` glob so it no longer covers the bound document, or narrow the `in:` glob so it no longer reaches the doc-owners binding — the Issue cannot declare both at once. Then re-run `{cmd}`.",
93905
93929
  rationaleSurfaceCoverage: "Widen the named `## Surface` `in:` directory glob to cover the Boundary path (nearest entry named above) — `## Surface` lists directories, never a file path, so widen the glob rather than adding the file path itself — or correct the path if it was mistyped, then re-run `{cmd}`.",
@@ -93947,6 +93971,7 @@ function validateIssueContent(input) {
93947
93971
  [checkSurfaceGlobsResolve(input.body, input.resolvesToFile).errors, "surfaceGlobsResolve"],
93948
93972
  [checkPartsCiteDefinedObjectives(input.body).errors, "partsCiteObjectives"],
93949
93973
  [checkEdgeIdsWholeNumbers(input.body).errors, "edgeIdsWholeNumbers"],
93974
+ [checkEdgesInBackticks(input.body).errors, "edgesInBackticks"],
93950
93975
  [checkDocsWithinSurface(input.body, input.issueNumber, input.briefSectionsSinceIssue).errors, "docsWithinSurface"],
93951
93976
  [checkSurfaceExcludesBoundDoc(input.body, input.docOwnersContent).errors, "surfaceExcludesBoundDoc"],
93952
93977
  [
@@ -98091,7 +98116,7 @@ init_journal_reconstruction();
98091
98116
  init_control_store();
98092
98117
  init_review_input_manifest();
98093
98118
  import { spawn as spawn7 } from "node:child_process";
98094
- import { accessSync as accessSync4, constants as constants3, existsSync as existsSync40, readFileSync as readFileSync41, writeFileSync as writeFileSync25 } from "node:fs";
98119
+ import { accessSync as accessSync5, constants as constants4, existsSync as existsSync40, readFileSync as readFileSync41, writeFileSync as writeFileSync25 } from "node:fs";
98095
98120
  import { delimiter as delimiter2, join as join45, resolve as resolvePath4 } from "node:path";
98096
98121
  import { hostname as hostname3 } from "node:os";
98097
98122
 
@@ -98809,7 +98834,7 @@ function gatedSpawn(command, args, options) {
98809
98834
  function isResolvable(command, options) {
98810
98835
  const runnable = (path) => {
98811
98836
  try {
98812
- accessSync4(path, constants3.X_OK);
98837
+ accessSync5(path, constants4.X_OK);
98813
98838
  return true;
98814
98839
  } catch {
98815
98840
  return false;
@@ -99722,7 +99747,7 @@ import {
99722
99747
  openSync as openSync7,
99723
99748
  readFileSync as readFileSync43,
99724
99749
  readSync as readSync2,
99725
- statSync as statSync12,
99750
+ statSync as statSync13,
99726
99751
  writeSync as writeSync7
99727
99752
  } from "node:fs";
99728
99753
  import { homedir as homedir10 } from "node:os";
@@ -100101,7 +100126,7 @@ init_diff_evidence();
100101
100126
  init_dev_tools_registration();
100102
100127
  import { randomUUID as randomUUID8, createHash as createHash19 } from "node:crypto";
100103
100128
  import {
100104
- accessSync as accessSync5,
100129
+ accessSync as accessSync6,
100105
100130
  constants as fsConstants8,
100106
100131
  existsSync as existsSync43,
100107
100132
  mkdirSync as mkdirSync20,
@@ -100110,7 +100135,7 @@ import {
100110
100135
  readFileSync as readFileSync44,
100111
100136
  realpathSync as realpathSync11,
100112
100137
  rmSync as rmSync14,
100113
- statSync as statSync13,
100138
+ statSync as statSync14,
100114
100139
  writeFileSync as writeFileSync27
100115
100140
  } from "node:fs";
100116
100141
  import { chmodSync as chmodSync12, createWriteStream as createWriteStream2 } from "node:fs";
@@ -100263,7 +100288,7 @@ function readClaudeTranscriptUsage2(sessionId, configDir) {
100263
100288
  continue;
100264
100289
  let text;
100265
100290
  try {
100266
- if (statSync13(file).size > MAX_TRANSCRIPT_BYTES2)
100291
+ if (statSync14(file).size > MAX_TRANSCRIPT_BYTES2)
100267
100292
  return unknown("the transcript is larger than the read bound");
100268
100293
  text = readFileSync44(file, "utf8");
100269
100294
  } catch {
@@ -100641,8 +100666,8 @@ var LINUX_SANDBOX_PROBE_DEPS2 = {
100641
100666
  init_programs();
100642
100667
  init_run_paths();
100643
100668
  await init_pause_resume();
100644
- import { existsSync as existsSync44, readFileSync as readFileSync45, renameSync as renameSync12, writeFileSync as writeFileSync28 } from "node:fs";
100645
- import { dirname as dirname31, join as join49 } from "node:path";
100669
+ import { accessSync as accessSync7, constants as constants5, existsSync as existsSync44, readFileSync as readFileSync45, renameSync as renameSync12, statSync as statSync15, writeFileSync as writeFileSync28 } from "node:fs";
100670
+ import { delimiter as delimiter3, dirname as dirname31, join as join49 } from "node:path";
100646
100671
  function taskRunnerRecordPath2(task, root = runtimeDirForThisRepo()) {
100647
100672
  return runPath(root, task, { area: "task", file: "runner.json" });
100648
100673
  }
@@ -104355,7 +104380,7 @@ import {
104355
104380
  readSync as readSync3,
104356
104381
  realpathSync as realpathSync14,
104357
104382
  rmSync as rmSync25,
104358
- statSync as statSync15,
104383
+ statSync as statSync17,
104359
104384
  writeFileSync as writeFileSync37,
104360
104385
  writeSync as writeSync9
104361
104386
  } from "node:fs";
@@ -104426,7 +104451,7 @@ function copyCaptureTail(input) {
104426
104451
  const end = fstatSync5(fd).size;
104427
104452
  let offset = 0;
104428
104453
  try {
104429
- offset = statSync15(join67(input.dir, `${input.stream}.out`)).size;
104454
+ offset = statSync17(join67(input.dir, `${input.stream}.out`)).size;
104430
104455
  } catch {
104431
104456
  offset = 0;
104432
104457
  }
@@ -105510,7 +105535,7 @@ function readyGateCommand(results, worktreePath) {
105510
105535
  }
105511
105536
  var isTestRunLine = (line) => {
105512
105537
  const command = line.split("→")[0]?.trim() ?? "";
105513
- return /^(bun\s+)?test(\s|$)/.test(command) || isNativeRunCommand(command) || isReadyCiCommand(command);
105538
+ return /^(bun\s+)?test(\s|$)/.test(command) || isNativeRunCommand(command) || isReadyCiCommand(command) || command === ADOPTER_TEST_RUNNER;
105514
105539
  };
105515
105540
  function withReadyTestCommand(body, command, observable = "every selected test file passes") {
105516
105541
  const lines = body.split(`
@@ -106215,14 +106240,14 @@ init_review_input_manifest();
106215
106240
  init_plan_repair();
106216
106241
  import { spawn as spawn11, spawnSync as spawnSync10 } from "node:child_process";
106217
106242
  import {
106218
- accessSync as accessSync6,
106243
+ accessSync as accessSync8,
106219
106244
  existsSync as existsSync61,
106220
106245
  constants as fsConstants11,
106221
106246
  mkdirSync as mkdirSync28,
106222
106247
  readFileSync as readFileSync64,
106223
106248
  renameSync as renameSync16,
106224
106249
  rmSync as rmSync27,
106225
- statSync as statSync17,
106250
+ statSync as statSync19,
106226
106251
  writeFileSync as writeFileSync39
106227
106252
  } from "node:fs";
106228
106253
  import { basename as basename9, dirname as dirname42, isAbsolute as isAbsolute9, join as join73 } from "node:path";
@@ -106263,7 +106288,7 @@ function readyTestPlanCommand2(files, worktreePath) {
106263
106288
  }
106264
106289
  var isTestRunLine2 = (line) => {
106265
106290
  const command = line.split("→")[0]?.trim() ?? "";
106266
- return /^(bun\s+)?test(\s|$)/.test(command) || isNativeRunCommand(command) || isReadyCiCommand(command);
106291
+ return /^(bun\s+)?test(\s|$)/.test(command) || isNativeRunCommand(command) || isReadyCiCommand(command) || command === ADOPTER_TEST_RUNNER;
106267
106292
  };
106268
106293
  function withReadyTestCommand2(body, command, observable = "every selected test file passes") {
106269
106294
  const lines = body.split(`
@@ -106442,7 +106467,7 @@ function carriedPass(input) {
106442
106467
  }
106443
106468
 
106444
106469
  // ../../harness/processes/vinaya-strict/loops/dev-review/v2/round-test-lock.ts
106445
- import { mkdirSync as mkdirSync27, readFileSync as readFileSync63, renameSync as renameSync15, rmSync as rmSync26, statSync as statSync16, utimesSync as utimesSync2, writeFileSync as writeFileSync38 } from "node:fs";
106470
+ import { mkdirSync as mkdirSync27, readFileSync as readFileSync63, renameSync as renameSync15, rmSync as rmSync26, statSync as statSync18, utimesSync as utimesSync2, writeFileSync as writeFileSync38 } from "node:fs";
106446
106471
  import { availableParallelism, totalmem } from "node:os";
106447
106472
  import { join as join72 } from "node:path";
106448
106473
  var ROUND_TEST_LOCK_DIRNAME = "round-tests.lock";
@@ -106504,7 +106529,7 @@ function readOwner(lockDir) {
106504
106529
  function lastBeat(lockDir) {
106505
106530
  for (const path of [join72(lockDir, HEARTBEAT_FILE), lockDir]) {
106506
106531
  try {
106507
- return statSync16(path).mtimeMs;
106532
+ return statSync18(path).mtimeMs;
106508
106533
  } catch {}
106509
106534
  }
106510
106535
  return null;
@@ -107450,8 +107475,8 @@ async function runRoundTestsLocked(input, ctx) {
107450
107475
  }
107451
107476
  function isExecutable(path) {
107452
107477
  try {
107453
- accessSync6(path, fsConstants11.X_OK);
107454
- return statSync17(path).isFile();
107478
+ accessSync8(path, fsConstants11.X_OK);
107479
+ return statSync19(path).isFile();
107455
107480
  } catch {
107456
107481
  return false;
107457
107482
  }
@@ -107735,12 +107760,13 @@ async function readyGateEvidence(input) {
107735
107760
  return replaceEvidenceBlock(input.body, report.blockInner);
107736
107761
  }
107737
107762
  const none = gate.localTests === "none" || gate.selection?.selected.length === 0;
107763
+ const adopter = !none && !gate.selection;
107738
107764
  const nativeCommand = none ? null : gate.selection?.native?.command ?? null;
107739
107765
  const nativeEntry = nativeCommand ? await lookupGreenRun(nativeCommand, input.worktreePath, input.cache ?? defaultTestRunCache()) : null;
107740
107766
  if (nativeCommand && !nativeEntry)
107741
107767
  throw new Error(`the ready push of ${input.head} ran its native selected suite, but no receipt for \`${nativeCommand.split(" -- ")[0]}\` matches this head, tree and verification context; the suite is never re-run to compose Evidence.`);
107742
107768
  const hookEntry = nativeEntry ?? {
107743
- command: none ? "no local tests" : gate.selection ? readyTestPlanCommand2(gate.selection.selected, input.worktreePath) : "repository pre-push hook",
107769
+ command: none ? "no local tests" : gate.selection ? readyTestPlanCommand2(gate.selection.selected, input.worktreePath) : ADOPTER_TEST_RUNNER,
107744
107770
  output: truncateAgentOutput(none ? `No local tests ran.
107745
107771
  ${gate.output}` : gate.output),
107746
107772
  exitCode: 0,
@@ -107748,9 +107774,9 @@ ${gate.output}` : gate.output),
107748
107774
  overflowed: false,
107749
107775
  reusedFrom: `persisted ready-gate result at \`${input.head}\``
107750
107776
  };
107751
- const body = none || !gate.selection ? input.body : withReadyTestCommand2(input.body, hookEntry.command, nativeEntry ? "every selected test passes under its own native runner" : "every selected test file passes");
107777
+ const body = none ? input.body : withReadyTestCommand2(input.body, hookEntry.command, adopter ? "every test passes" : nativeEntry ? "every selected test passes under its own native runner" : "every selected test file passes");
107752
107778
  const commands = [];
107753
- if (none || !gate.selection)
107779
+ if (none)
107754
107780
  commands.push(hookEntry);
107755
107781
  else {
107756
107782
  const cache = input.cache ?? defaultTestRunCache();
@@ -107816,7 +107842,7 @@ init_detect();
107816
107842
  init_init_hook_paths();
107817
107843
  init_ops();
107818
107844
  import { execFileSync as execFileSync49 } from "node:child_process";
107819
- import { existsSync as existsSync62, readFileSync as readFileSync65, realpathSync as realpathSync15, statSync as statSync18 } from "node:fs";
107845
+ import { existsSync as existsSync62, readFileSync as readFileSync65, realpathSync as realpathSync15, statSync as statSync20 } from "node:fs";
107820
107846
  import { dirname as dirname43, isAbsolute as isAbsolute10, join as join74, resolve as resolve18 } from "node:path";
107821
107847
  var okControl2 = (control) => ({ control, active: true, detail: "", remedy: "" });
107822
107848
  var notOkControl2 = (control, detail, remedy) => ({
@@ -107829,7 +107855,7 @@ var LOCAL_GATE_CONTROL2 = "local-gate";
107829
107855
  var REQUIRED_LOCAL_GATE_HOOKS2 = ["pre-commit", "pre-push"];
107830
107856
  function isExecutableFile3(path) {
107831
107857
  try {
107832
- const st = statSync18(path);
107858
+ const st = statSync20(path);
107833
107859
  return st.isFile() && (st.mode & 73) !== 0;
107834
107860
  } catch {
107835
107861
  return false;
@@ -107837,7 +107863,7 @@ function isExecutableFile3(path) {
107837
107863
  }
107838
107864
  function isDirectory2(path) {
107839
107865
  try {
107840
- return statSync18(path).isDirectory();
107866
+ return statSync20(path).isDirectory();
107841
107867
  } catch {
107842
107868
  return false;
107843
107869
  }
@@ -1313,6 +1313,20 @@ function findLetteredEdgeIds(body) {
1313
1313
  }
1314
1314
  return found;
1315
1315
  }
1316
+ function findPlainTextEdgeLabels(body) {
1317
+ const prose = extractSection(body).replace(/`[^`]*`/g, " ");
1318
+ const found = [];
1319
+ const labelPattern = /(Depends-on|Conflicts-with)\s*:[ \t]*([^.;—(\n]*)/gi;
1320
+ let match = labelPattern.exec(prose);
1321
+ while (match !== null) {
1322
+ const value = (match[2] ?? "").trim();
1323
+ const hasId = value.split(",").some((s) => ID_TOKEN.test(s.trim()));
1324
+ if (hasId)
1325
+ found.push(`${match[1]}: ${value}`);
1326
+ match = labelPattern.exec(prose);
1327
+ }
1328
+ return found;
1329
+ }
1316
1330
  var SECTION_HEADER, NEXT_HEADER, FIELD_LABEL, ID_TOKEN, SLUG_QUALIFIED_ID, LETTERED_EDGE_ID;
1317
1331
  var init_parse_rationale_deps = __esm(() => {
1318
1332
  SECTION_HEADER = /\*\*Dependency rationale\*\*/i;
@@ -2336,6 +2350,15 @@ function checkEdgeIdsWholeNumbers(body) {
2336
2350
  errors: lettered.map((id) => `issue-validation edge id: \`${id}\` in a \`Depends-on\`/\`Conflicts-with\` edge is not a whole number — task ids are whole numbers (\`1\`, \`2\`), never lettered (\`2a\`). \`vinaya task run\` and \`task dispatch\` refuse a non-numeric id, so a plan naming one names a task that cannot be started.`)
2337
2351
  };
2338
2352
  }
2353
+ function checkEdgesInBackticks(body) {
2354
+ const plain = findPlainTextEdgeLabels(body);
2355
+ if (plain.length === 0)
2356
+ return { status: "pass", errors: [] };
2357
+ return {
2358
+ status: "fail",
2359
+ errors: plain.map((label) => `issue-validation edge backticks: \`${label}\` is written outside backticks — an edge is read only inside backticks, as \`Depends-on: #5\`, so this one is silently dropped and the task would start without it. Wrap it in a backtick span.`)
2360
+ };
2361
+ }
2339
2362
  function checkIssueObjectives(body, issueNumber, sinceIssue = OBJECTIVES_SINCE_ISSUE) {
2340
2363
  if (sinceIssue !== null && issueNumber !== null && issueNumber < sinceIssue)
2341
2364
  return { status: "pass", errors: [] };
@@ -12822,7 +12845,7 @@ var COMMANDS = [
12822
12845
  flags: [
12823
12846
  {
12824
12847
  flag: "--runner <standalone|atta-engine>",
12825
- description: "Override runner config for this invocation; absent uses config, whose default is standalone"
12848
+ description: "Override runner config for this invocation; absent uses config, whose default is atta-engine, which needs Bun on the PATH"
12826
12849
  },
12827
12850
  {
12828
12851
  flag: "--agent <claude|codex>",
@@ -12842,7 +12865,7 @@ var COMMANDS = [
12842
12865
  }
12843
12866
  ],
12844
12867
  details: [
12845
- "The atta-engine runner starts the Engine runner with Bun, so it needs Bun on the machine, streams its output and returns its exit code. The published package carries the Engine runner as a built program and a checkout starts its source file; a command line without the runner file prints one notice and falls back to standalone. Engine Log events use the local folder only; logs: false disables all Log destinations for both runners.",
12868
+ "The atta-engine runner starts the Engine runner with Bun, so it needs Bun on the PATH, streams its output and returns its exit code; it is the default when config names no runner. The published package carries the Engine runner as a built program and a checkout starts its source file. When the runner file is absent or Bun is not on the PATH, the run is refused with one message naming the cause and exits 3, before it is prepared or a background controller launched, and names `--runner standalone` — or, for a flow other than v1, says that flow needs the Engine; a `--rollback` start makes no such check. Engine Log events use the local folder only; logs: false disables all Log destinations for both runners.",
12846
12869
  "A run's runner is recorded when it starts and never changes: switching `runner` in config changes only the runner of new runs, and a run recorded on `atta-engine` keeps routing to the Engine for `task status`, `task_resume` and `task_cancel`. A start on a pause another runner holds is refused with a typed reason naming the recorded runner and the requested one, and so is a start on another runner's Engine run that is still in flight with no pause held — halted or stopped short of completed or cancelled.",
12847
12870
  "`--rollback` ends the Engine run first: a held pause through the shared cancel `task_cancel` uses, which needs a Principal ruling newer than the pause as any cancel does; a run halted with no pause held has its started effects fenced; a run that already completed or was cancelled is refused, as is a driver still running with no pause held, which is never signalled; and the standalone run never starts while the Engine driver lives, a cancelled run's driver given a bounded wait to release its lock. Every started and uncertain effect is then reconciled by its identity: one the forge carries is recorded verified, one it does not carry is left for the restarted run to complete, and one the forge read cannot settle refuses the restart. Each rehearsal appends a record — task, recorded runner, action, reconciled effect identities, the restarted run's runner and terminal state — to `backend-rollback-rehearsals.jsonl` in the task's runtime directory, whether it completed, was refused or failed at a later step, and nothing removes it.",
12848
12871
  "`--widen-surface` is the Planner's one command for a widen-surface escalation, and refuses before any write when the held pause is not one (no pause, a pause with a pull request — whose continuation is the ruling on that pull request — or a round whose Developer asked for no `widen_surface`), when a driver is still alive for the task, when the escalation's resolution is already consumed (a replay — the Surface is never widened twice), or when the widened body fails the write gate, whose findings name the field to edit first. The escalation packet's permitted next actions name this command with the globs the Developer asked for, and `task_resume` refuses such an escalation naming it.",
@@ -13872,8 +13895,8 @@ var CONFIG_REFERENCE = [
13872
13895
  key: "runner",
13873
13896
  type: '"standalone" | "atta-engine" (optional)',
13874
13897
  semantics: [
13875
- "Selects the task runner. The default is `standalone`: an absent key runs the standalone loop, so a published install never changes runner on its own. Any value other than `standalone` or `atta-engine` is refused at config load. `task run --runner <name>` overrides this setting for one invocation, so `standalone` stays selectable by this key and by that flag.",
13876
- "atta-engine starts the Engine runner as a Bun subprocess with the resolved task, agent and model, so it needs Bun on the machine. The published package carries the Engine runner as a built program, `dist/programs/run-engine.js`, beside a copy of the process files it loads under `dist/vinaya-strict`; a checkout of this repository starts the runner’s source file. When the Engine runner file is absent, `task run` prints one fallback notice, `vinaya task run: Engine runner script is unavailable; falling back to standalone.`, and runs standalone. The Engine Log reaches the same configured destination the standalone loop uses, a server included.",
13898
+ "Selects the task runner. The default is `atta-engine`: an absent key runs the Atta Engine. Any value other than `standalone` or `atta-engine` is refused at config load. `task run --runner <name>` overrides this setting for one invocation, so `standalone` stays selectable by this key and by that flag.",
13899
+ "atta-engine starts the Engine runner as a Bun subprocess with the resolved task, agent and model, so it needs Bun on the PATH. The published package carries the Engine runner as a built program, `dist/programs/run-engine.js`, beside a copy of the process files it loads under `dist/vinaya-strict`; a checkout of this repository starts the runner’s source file. When the Engine runner file is absent or Bun is not on the PATH, the run is refused with one message naming the cause, before the Issue is assigned or a runner recorded: it names `--runner standalone`, or, for a flow other than `v1`, says that flow needs the Engine. No run continues on the standalone runner by itself. The Engine Log reaches the same configured destination the standalone loop uses, a server included.",
13877
13900
  "Each run records the runner it actually used, and status, resume and cancel follow that record rather than this key. A run with no recorded runner, started before runs recorded one, is a standalone run, whatever this key now names."
13878
13901
  ],
13879
13902
  example: `{ "runner": "atta-engine" }`
@@ -14990,6 +15013,7 @@ var ISSUE_CONTENT_RECOVERY = {
14990
15013
  surfaceGlobsResolve: "Fix the named `## Surface` `in:` glob so it matches at least one real tracked file (a typo, or a directory that does not exist yet), then re-run `{cmd}`.",
14991
15014
  partsCiteObjectives: "Fix the named Part to cite an objective id the `## Objectives` section actually defines, or add the missing objective, then re-run `{cmd}`.",
14992
15015
  edgeIdsWholeNumbers: "Rewrite the named `Depends-on`/`Conflicts-with` edge to a whole-number task id (`1`, `2`), a `#<NNN>` Issue ref, or a `<slug> <n>` cross-tranche reference — task ids are never lettered — then re-run `{cmd}`.",
15016
+ edgesInBackticks: "Wrap the named `Depends-on`/`Conflicts-with` label and its ids in one backtick span (`Depends-on: #5`) — an edge written outside backticks is not read — then re-run `{cmd}`.",
14993
15017
  docsWithinSurface: 'Move the named doc pointer to a path `## Surface`\'s `in:` globs actually cover (never widen the surface just to fit the pointer — that renders an unusable brief), or drop it from "Docs to keep coherent" if this task does not really keep it coherent, then re-run `{cmd}`.',
14994
15018
  surfaceExcludesBoundDoc: "Either move the named `out:` glob so it no longer covers the bound document, or narrow the `in:` glob so it no longer reaches the doc-owners binding — the Issue cannot declare both at once. Then re-run `{cmd}`.",
14995
15019
  rationaleSurfaceCoverage: "Widen the named `## Surface` `in:` directory glob to cover the Boundary path (nearest entry named above) — `## Surface` lists directories, never a file path, so widen the glob rather than adding the file path itself — or correct the path if it was mistyped, then re-run `{cmd}`.",
@@ -15037,6 +15061,7 @@ function validateIssueContent(input) {
15037
15061
  [checkSurfaceGlobsResolve(input.body, input.resolvesToFile).errors, "surfaceGlobsResolve"],
15038
15062
  [checkPartsCiteDefinedObjectives(input.body).errors, "partsCiteObjectives"],
15039
15063
  [checkEdgeIdsWholeNumbers(input.body).errors, "edgeIdsWholeNumbers"],
15064
+ [checkEdgesInBackticks(input.body).errors, "edgesInBackticks"],
15040
15065
  [checkDocsWithinSurface(input.body, input.issueNumber, input.briefSectionsSinceIssue).errors, "docsWithinSurface"],
15041
15066
  [checkSurfaceExcludesBoundDoc(input.body, input.docOwnersContent).errors, "surfaceExcludesBoundDoc"],
15042
15067
  [
@@ -2265,6 +2265,20 @@ function findLetteredEdgeIds(body) {
2265
2265
  }
2266
2266
  return found;
2267
2267
  }
2268
+ function findPlainTextEdgeLabels(body) {
2269
+ const prose = extractSection(body).replace(/`[^`]*`/g, " ");
2270
+ const found = [];
2271
+ const labelPattern = /(Depends-on|Conflicts-with)\s*:[ \t]*([^.;—(\n]*)/gi;
2272
+ let match = labelPattern.exec(prose);
2273
+ while (match !== null) {
2274
+ const value = (match[2] ?? "").trim();
2275
+ const hasId = value.split(",").some((s) => ID_TOKEN.test(s.trim()));
2276
+ if (hasId)
2277
+ found.push(`${match[1]}: ${value}`);
2278
+ match = labelPattern.exec(prose);
2279
+ }
2280
+ return found;
2281
+ }
2268
2282
  var SECTION_HEADER, NEXT_HEADER, FIELD_LABEL, ID_TOKEN, SLUG_QUALIFIED_ID, LETTERED_EDGE_ID;
2269
2283
  var init_parse_rationale_deps = __esm(() => {
2270
2284
  SECTION_HEADER = /\*\*Dependency rationale\*\*/i;
@@ -3972,6 +3986,15 @@ function checkEdgeIdsWholeNumbers(body) {
3972
3986
  errors: lettered.map((id) => `issue-validation edge id: \`${id}\` in a \`Depends-on\`/\`Conflicts-with\` edge is not a whole number — task ids are whole numbers (\`1\`, \`2\`), never lettered (\`2a\`). \`vinaya task run\` and \`task dispatch\` refuse a non-numeric id, so a plan naming one names a task that cannot be started.`)
3973
3987
  };
3974
3988
  }
3989
+ function checkEdgesInBackticks(body) {
3990
+ const plain = findPlainTextEdgeLabels(body);
3991
+ if (plain.length === 0)
3992
+ return { status: "pass", errors: [] };
3993
+ return {
3994
+ status: "fail",
3995
+ errors: plain.map((label) => `issue-validation edge backticks: \`${label}\` is written outside backticks — an edge is read only inside backticks, as \`Depends-on: #5\`, so this one is silently dropped and the task would start without it. Wrap it in a backtick span.`)
3996
+ };
3997
+ }
3975
3998
  function checkIssueObjectives(body, issueNumber, sinceIssue = OBJECTIVES_SINCE_ISSUE) {
3976
3999
  if (sinceIssue !== null && issueNumber !== null && issueNumber < sinceIssue)
3977
4000
  return { status: "pass", errors: [] };
@@ -14957,7 +14980,7 @@ var init_commands = __esm(() => {
14957
14980
  flags: [
14958
14981
  {
14959
14982
  flag: "--runner <standalone|atta-engine>",
14960
- description: "Override runner config for this invocation; absent uses config, whose default is standalone"
14983
+ description: "Override runner config for this invocation; absent uses config, whose default is atta-engine, which needs Bun on the PATH"
14961
14984
  },
14962
14985
  {
14963
14986
  flag: "--agent <claude|codex>",
@@ -14977,7 +15000,7 @@ var init_commands = __esm(() => {
14977
15000
  }
14978
15001
  ],
14979
15002
  details: [
14980
- "The atta-engine runner starts the Engine runner with Bun, so it needs Bun on the machine, streams its output and returns its exit code. The published package carries the Engine runner as a built program and a checkout starts its source file; a command line without the runner file prints one notice and falls back to standalone. Engine Log events use the local folder only; logs: false disables all Log destinations for both runners.",
15003
+ "The atta-engine runner starts the Engine runner with Bun, so it needs Bun on the PATH, streams its output and returns its exit code; it is the default when config names no runner. The published package carries the Engine runner as a built program and a checkout starts its source file. When the runner file is absent or Bun is not on the PATH, the run is refused with one message naming the cause and exits 3, before it is prepared or a background controller launched, and names `--runner standalone` — or, for a flow other than v1, says that flow needs the Engine; a `--rollback` start makes no such check. Engine Log events use the local folder only; logs: false disables all Log destinations for both runners.",
14981
15004
  "A run's runner is recorded when it starts and never changes: switching `runner` in config changes only the runner of new runs, and a run recorded on `atta-engine` keeps routing to the Engine for `task status`, `task_resume` and `task_cancel`. A start on a pause another runner holds is refused with a typed reason naming the recorded runner and the requested one, and so is a start on another runner's Engine run that is still in flight with no pause held — halted or stopped short of completed or cancelled.",
14982
15005
  "`--rollback` ends the Engine run first: a held pause through the shared cancel `task_cancel` uses, which needs a Principal ruling newer than the pause as any cancel does; a run halted with no pause held has its started effects fenced; a run that already completed or was cancelled is refused, as is a driver still running with no pause held, which is never signalled; and the standalone run never starts while the Engine driver lives, a cancelled run's driver given a bounded wait to release its lock. Every started and uncertain effect is then reconciled by its identity: one the forge carries is recorded verified, one it does not carry is left for the restarted run to complete, and one the forge read cannot settle refuses the restart. Each rehearsal appends a record — task, recorded runner, action, reconciled effect identities, the restarted run's runner and terminal state — to `backend-rollback-rehearsals.jsonl` in the task's runtime directory, whether it completed, was refused or failed at a later step, and nothing removes it.",
14983
15006
  "`--widen-surface` is the Planner's one command for a widen-surface escalation, and refuses before any write when the held pause is not one (no pause, a pause with a pull request — whose continuation is the ruling on that pull request — or a round whose Developer asked for no `widen_surface`), when a driver is still alive for the task, when the escalation's resolution is already consumed (a replay — the Surface is never widened twice), or when the widened body fails the write gate, whose findings name the field to edit first. The escalation packet's permitted next actions name this command with the globs the Developer asked for, and `task_resume` refuses such an escalation naming it.",
@@ -16010,8 +16033,8 @@ var init_config_reference = __esm(() => {
16010
16033
  key: "runner",
16011
16034
  type: '"standalone" | "atta-engine" (optional)',
16012
16035
  semantics: [
16013
- "Selects the task runner. The default is `standalone`: an absent key runs the standalone loop, so a published install never changes runner on its own. Any value other than `standalone` or `atta-engine` is refused at config load. `task run --runner <name>` overrides this setting for one invocation, so `standalone` stays selectable by this key and by that flag.",
16014
- "atta-engine starts the Engine runner as a Bun subprocess with the resolved task, agent and model, so it needs Bun on the machine. The published package carries the Engine runner as a built program, `dist/programs/run-engine.js`, beside a copy of the process files it loads under `dist/vinaya-strict`; a checkout of this repository starts the runner’s source file. When the Engine runner file is absent, `task run` prints one fallback notice, `vinaya task run: Engine runner script is unavailable; falling back to standalone.`, and runs standalone. The Engine Log reaches the same configured destination the standalone loop uses, a server included.",
16036
+ "Selects the task runner. The default is `atta-engine`: an absent key runs the Atta Engine. Any value other than `standalone` or `atta-engine` is refused at config load. `task run --runner <name>` overrides this setting for one invocation, so `standalone` stays selectable by this key and by that flag.",
16037
+ "atta-engine starts the Engine runner as a Bun subprocess with the resolved task, agent and model, so it needs Bun on the PATH. The published package carries the Engine runner as a built program, `dist/programs/run-engine.js`, beside a copy of the process files it loads under `dist/vinaya-strict`; a checkout of this repository starts the runner’s source file. When the Engine runner file is absent or Bun is not on the PATH, the run is refused with one message naming the cause, before the Issue is assigned or a runner recorded: it names `--runner standalone`, or, for a flow other than `v1`, says that flow needs the Engine. No run continues on the standalone runner by itself. The Engine Log reaches the same configured destination the standalone loop uses, a server included.",
16015
16038
  "Each run records the runner it actually used, and status, resume and cancel follow that record rather than this key. A run with no recorded runner, started before runs recorded one, is a standalone run, whatever this key now names."
16016
16039
  ],
16017
16040
  example: `{ "runner": "atta-engine" }`
@@ -16931,6 +16954,7 @@ function validateIssueContent(input) {
16931
16954
  [checkSurfaceGlobsResolve(input.body, input.resolvesToFile).errors, "surfaceGlobsResolve"],
16932
16955
  [checkPartsCiteDefinedObjectives(input.body).errors, "partsCiteObjectives"],
16933
16956
  [checkEdgeIdsWholeNumbers(input.body).errors, "edgeIdsWholeNumbers"],
16957
+ [checkEdgesInBackticks(input.body).errors, "edgesInBackticks"],
16934
16958
  [checkDocsWithinSurface(input.body, input.issueNumber, input.briefSectionsSinceIssue).errors, "docsWithinSurface"],
16935
16959
  [checkSurfaceExcludesBoundDoc(input.body, input.docOwnersContent).errors, "surfaceExcludesBoundDoc"],
16936
16960
  [
@@ -17616,6 +17640,7 @@ var init_forge_write = __esm(() => {
17616
17640
  surfaceGlobsResolve: "Fix the named `## Surface` `in:` glob so it matches at least one real tracked file (a typo, or a directory that does not exist yet), then re-run `{cmd}`.",
17617
17641
  partsCiteObjectives: "Fix the named Part to cite an objective id the `## Objectives` section actually defines, or add the missing objective, then re-run `{cmd}`.",
17618
17642
  edgeIdsWholeNumbers: "Rewrite the named `Depends-on`/`Conflicts-with` edge to a whole-number task id (`1`, `2`), a `#<NNN>` Issue ref, or a `<slug> <n>` cross-tranche reference — task ids are never lettered — then re-run `{cmd}`.",
17643
+ edgesInBackticks: "Wrap the named `Depends-on`/`Conflicts-with` label and its ids in one backtick span (`Depends-on: #5`) — an edge written outside backticks is not read — then re-run `{cmd}`.",
17619
17644
  docsWithinSurface: 'Move the named doc pointer to a path `## Surface`\'s `in:` globs actually cover (never widen the surface just to fit the pointer — that renders an unusable brief), or drop it from "Docs to keep coherent" if this task does not really keep it coherent, then re-run `{cmd}`.',
17620
17645
  surfaceExcludesBoundDoc: "Either move the named `out:` glob so it no longer covers the bound document, or narrow the `in:` glob so it no longer reaches the doc-owners binding — the Issue cannot declare both at once. Then re-run `{cmd}`.",
17621
17646
  rationaleSurfaceCoverage: "Widen the named `## Surface` `in:` directory glob to cover the Boundary path (nearest entry named above) — `## Surface` lists directories, never a file path, so widen the glob rather than adding the file path itself — or correct the path if it was mistyped, then re-run `{cmd}`.",
@@ -19456,7 +19481,8 @@ function noPushResumeArgv(task, branch, agent, model, runner) {
19456
19481
  ...address,
19457
19482
  ...agent ? ["--agent", agent] : [],
19458
19483
  ...model ? ["--model", model] : [],
19459
- ...runner ? ["--runner", runner] : []
19484
+ "--runner",
19485
+ runner ?? "standalone"
19460
19486
  ];
19461
19487
  }
19462
19488
  function shellQuote(token) {
@@ -21691,8 +21717,8 @@ var init_task_sweep = __esm(async () => {
21691
21717
  });
21692
21718
 
21693
21719
  // ../../harness/processes/vinaya-strict/loops/dev-review/run-control/task-run-engine.ts
21694
- import { existsSync as existsSync19, readFileSync as readFileSync19, renameSync as renameSync4, writeFileSync as writeFileSync13 } from "node:fs";
21695
- import { dirname as dirname14, join as join23 } from "node:path";
21720
+ import { accessSync as accessSync3, constants as constants2, existsSync as existsSync19, readFileSync as readFileSync19, renameSync as renameSync4, statSync as statSync7, writeFileSync as writeFileSync13 } from "node:fs";
21721
+ import { delimiter as delimiter2, dirname as dirname14, join as join23 } from "node:path";
21696
21722
  function taskRunnerRecordPath(task, root = runtimeDirForThisRepo()) {
21697
21723
  return runPath2(root, task, { area: "task", file: "runner.json" });
21698
21724
  }
@@ -23674,7 +23700,10 @@ function resumeContinuation(target, runner, program, launcher) {
23674
23700
  if (runner === "atta-engine")
23675
23701
  return { command: "bun", argv: engineContinuationArgv(target) };
23676
23702
  if (target.pr === null)
23677
- return { command: program, argv: noPushResumeArgv(target.issue, target.branch, target.agent, target.model) };
23703
+ return {
23704
+ command: program,
23705
+ argv: noPushResumeArgv(target.issue, target.branch, target.agent, target.model, "standalone")
23706
+ };
23678
23707
  const invocation = programInvocation("dev-review-loop", ["--resume", String(target.pr), "--agent", target.agent]);
23679
23708
  return { command: launcher ?? invocation.command, argv: invocation.argv };
23680
23709
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@attalabs/vinaya",
3
- "version": "0.43.1",
3
+ "version": "0.44.0",
4
4
  "description": "Vinaya \u2014 deterministic checks every AI coding agent must satisfy before merge.",
5
5
  "type": "module",
6
6
  "license": "FSL-1.1-ALv2",
@@ -1 +1 @@
1
- 64XwAXRg-jkgQPC54BkEN
1
+ _r9iZDxlkoek85d_3oaxL
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "devFiles": [],
6
6
  "lowPriorityFiles": [
7
- "static/64XwAXRg-jkgQPC54BkEN/_buildManifest.js",
8
- "static/64XwAXRg-jkgQPC54BkEN/_ssgManifest.js"
7
+ "static/_r9iZDxlkoek85d_3oaxL/_buildManifest.js",
8
+ "static/_r9iZDxlkoek85d_3oaxL/_ssgManifest.js"
9
9
  ],
10
10
  "rootMainFiles": [
11
11
  "static/chunks/webpack-fc8b988ac597f8d9.js",