@attalabs/vinaya 0.34.0 → 0.36.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 (131) hide show
  1. package/LICENSE +104 -201
  2. package/README.md +1 -1
  3. package/aeg-root/roles/planner/reference.md +21 -6
  4. package/aeg-root/roles/planner.md +2 -0
  5. package/aeg-root/roles/reviewer.md +3 -1
  6. package/aeg-root/templates/brief-template.md +4 -0
  7. package/dist/checks/bin/check-body-bare-digits.js +1450 -1350
  8. package/dist/checks/bin/check-branch-topology.js +1432 -1342
  9. package/dist/checks/bin/check-brief-shape.js +1451 -1351
  10. package/dist/checks/bin/check-changeset-coverage.js +1502 -1360
  11. package/dist/checks/bin/check-closes-n.js +1432 -1342
  12. package/dist/checks/bin/check-coherence.js +1472 -1351
  13. package/dist/checks/bin/check-dead-branch-push.js +1408 -1339
  14. package/dist/checks/bin/check-dispatch-readiness.js +1475 -1354
  15. package/dist/checks/bin/check-doc-coverage-push.js +1502 -1360
  16. package/dist/checks/bin/check-doc-coverage.js +1504 -1362
  17. package/dist/checks/bin/check-doctrine-no-procedures.js +1449 -1349
  18. package/dist/checks/bin/check-doctrine-portability.js +1502 -1360
  19. package/dist/checks/bin/check-evidence-fresh.js +1508 -1366
  20. package/dist/checks/bin/check-exec-bits.js +1502 -1360
  21. package/dist/checks/bin/check-first-push-dispatch.js +1476 -1355
  22. package/dist/checks/bin/check-issue-assignment.js +1432 -1342
  23. package/dist/checks/bin/check-issue-milestone-attach.js +1408 -1339
  24. package/dist/checks/bin/check-issue-objectives-numbering.js +1449 -1349
  25. package/dist/checks/bin/check-issue-parts-coverage.js +1408 -1339
  26. package/dist/checks/bin/check-issue-surface-globs.js +1475 -1354
  27. package/dist/checks/bin/check-issue-title-grammar.js +1408 -1339
  28. package/dist/checks/bin/check-issue-tranche-label.js +1408 -1339
  29. package/dist/checks/bin/check-main-branch-refusal.js +1410 -1341
  30. package/dist/checks/bin/check-no-disk-state.js +1410 -1341
  31. package/dist/checks/bin/check-pr-premise-reassert.js +1449 -1349
  32. package/dist/checks/bin/check-pr-report-density.js +1410 -1341
  33. package/dist/checks/bin/check-principal-test-plan-wait.js +1410 -1341
  34. package/dist/checks/bin/check-quoted-command.js +1500 -1358
  35. package/dist/checks/bin/check-reader-resolvable-prose.js +1500 -1358
  36. package/dist/checks/bin/check-registry-gates.js +1410 -1341
  37. package/dist/checks/bin/check-retired-vocabulary.js +1500 -1358
  38. package/dist/checks/bin/check-review-gate.js +1463 -1363
  39. package/dist/checks/bin/check-single-plan-pr.js +1408 -1339
  40. package/dist/checks/bin/check-surface-scope.js +1432 -1342
  41. package/dist/checks/bin/check-test-plan.js +1408 -1339
  42. package/dist/checks/bin/check-token-collection-wired.js +1410 -1341
  43. package/dist/checks/bin/check-token-report.js +1410 -1341
  44. package/dist/checks/bin/check-workspace-escape.js +1501 -1359
  45. package/dist/index.js +4261 -1917
  46. package/dist/lib/pre-push-cache-test-run.js +130 -19
  47. package/dist/lib/pre-push-select-tests.js +86 -17
  48. package/package.json +2 -2
  49. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/brief-render.ts +153 -37
  50. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/brief-validation.ts +87 -24
  51. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/coherence-checks.ts +9 -2
  52. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/assess-round.ts +31 -2
  53. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/index.ts +1 -0
  54. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/render-summary.ts +52 -3
  55. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/types.ts +28 -0
  56. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/gate-cutovers.ts +49 -0
  57. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/index.ts +13 -2
  58. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/issue-validation.ts +148 -54
  59. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/envelope.ts +26 -3
  60. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/objectives-cutover-config.ts +31 -0
  61. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/objectives.ts +15 -6
  62. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/reader-resolvable-prose.ts +122 -23
  63. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/task-tools.ts +38 -3
  64. package/studio-standalone/apps/vinaya-studio/web/.next/BUILD_ID +1 -1
  65. package/studio-standalone/apps/vinaya-studio/web/.next/build-manifest.json +3 -3
  66. package/studio-standalone/apps/vinaya-studio/web/.next/prerender-manifest.json +3 -3
  67. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.html +1 -1
  68. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.rsc +1 -1
  69. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  70. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  71. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  72. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  73. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  74. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_not-found/page/server-reference-manifest.json +2 -2
  75. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  76. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  77. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route.js.nft.json +1 -1
  78. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/page/server-reference-manifest.json +2 -2
  79. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/page.js.nft.json +1 -1
  80. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/page_client-reference-manifest.js +1 -1
  81. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page/server-reference-manifest.json +2 -2
  82. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page.js.nft.json +1 -1
  83. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page_client-reference-manifest.js +1 -1
  84. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page/server-reference-manifest.json +2 -2
  85. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page.js.nft.json +1 -1
  86. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page_client-reference-manifest.js +1 -1
  87. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page/server-reference-manifest.json +2 -2
  88. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page.js.nft.json +1 -1
  89. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page_client-reference-manifest.js +1 -1
  90. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page/server-reference-manifest.json +3 -3
  91. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page.js.nft.json +1 -1
  92. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page_client-reference-manifest.js +1 -1
  93. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page/server-reference-manifest.json +2 -2
  94. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page.js.nft.json +1 -1
  95. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page_client-reference-manifest.js +1 -1
  96. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page/server-reference-manifest.json +2 -2
  97. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page.js.nft.json +1 -1
  98. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page_client-reference-manifest.js +1 -1
  99. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page/server-reference-manifest.json +2 -2
  100. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page.js.nft.json +1 -1
  101. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page_client-reference-manifest.js +1 -1
  102. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/[root-of-the-server]__02a-3g8._.js +1 -1
  103. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/1q96_modules_@clerk_nextjs_dist_esm_app-router_client_keyless-creator-reader_0lom2js.js +1 -1
  104. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__074w9nf._.js +1 -1
  105. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__0ls23oh._.js +1 -1
  106. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1gjqmhq._.js +1 -1
  107. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1wc4-ip._.js +1 -1
  108. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{[root-of-the-server]__07uhu5z._.js → [root-of-the-server]__1wy7w66._.js} +1 -1
  109. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_08onyya._.js +1 -1
  110. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_096f46i._.js +1 -1
  111. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0af2one._.js +1 -1
  112. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0e5tkdd._.js +1 -1
  113. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0kf2g72._.js +1 -1
  114. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0zf4d27._.js +1 -1
  115. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1-wo68i._.js +1 -1
  116. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_15gdg48._.js +2 -2
  117. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1achbh9._.js +1 -1
  118. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/node_modules_@clerk_nextjs_dist_esm_app-router_server-actions_1x7vfhn.js +2 -2
  119. package/studio-standalone/apps/vinaya-studio/web/.next/server/middleware-build-manifest.js +3 -3
  120. package/studio-standalone/apps/vinaya-studio/web/.next/server/pages/500.html +1 -1
  121. package/studio-standalone/apps/vinaya-studio/web/.next/server/server-reference-manifest.js +1 -1
  122. package/studio-standalone/apps/vinaya-studio/web/.next/server/server-reference-manifest.json +4 -4
  123. package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/00z3-ljjd1gj9.js +1 -0
  124. package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{2174nz5he_oc4.js → 2o9l0b7eqbr57.js} +1 -1
  125. package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{0q9p7c6vn-x2w.js → 3lqjwjrcvq481.js} +4 -4
  126. package/studio-standalone/apps/vinaya-studio/web/package.json +2 -2
  127. package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/3xnma0-359j17.js +0 -1
  128. /package/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/{aeg-core → vinaya/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/aeg-core}/bin/verify-coherence.ts +0 -0
  129. /package/studio-standalone/apps/vinaya-studio/web/.next/static/{HmoeqXdX1E4drt7GReFOO → z1fTSBP6ZlUjObzFIp-qq}/_buildManifest.js +0 -0
  130. /package/studio-standalone/apps/vinaya-studio/web/.next/static/{HmoeqXdX1E4drt7GReFOO → z1fTSBP6ZlUjObzFIp-qq}/_clientMiddlewareManifest.js +0 -0
  131. /package/studio-standalone/apps/vinaya-studio/web/.next/static/{HmoeqXdX1E4drt7GReFOO → z1fTSBP6ZlUjObzFIp-qq}/_ssgManifest.js +0 -0
@@ -427,6 +427,16 @@ function globToRegex(pat) {
427
427
  return new RegExp(re);
428
428
  }
429
429
  var SEPARATOR = /(?:[ \t]*[—–][ \t]*|[ \t]+-[ \t]+)/.source;
430
+ // ../../packages/aeg-core/src/review-policy.ts
431
+ var SECURITY_SEVERITY_ORDER = ["CRITICAL", "HIGH", "MEDIUM", "LOW"];
432
+ function blockingSeverities(scale, threshold) {
433
+ const idx = scale.indexOf(threshold);
434
+ if (idx === -1) {
435
+ throw new Error(`blockingSeverities: threshold "${threshold}" is not one of ${scale.join(" > ")}`);
436
+ }
437
+ return scale.slice(0, idx + 1);
438
+ }
439
+ var SECURITY_HIGH_AND_ABOVE = blockingSeverities(SECURITY_SEVERITY_ORDER, "HIGH");
430
440
  // ../../packages/aeg-core/src/pr-tier.ts
431
441
  var OVERRIDE_BODY_TOKEN = `[${label("override-docs")}]`;
432
442
  // ../../packages/aeg-core/src/premise-check.ts
@@ -457,20 +467,42 @@ var NON_PATH_TOP_SEGMENTS = new Set(["origin", "refs", "HEAD", "vinaya", "fix"])
457
467
 
458
468
  // ../../packages/aeg-core/src/doctrine-no-procedures.ts
459
469
  var SHELL_LANGS = new Set(["", "sh", "bash", "shell", "console"]);
470
+ // ../../packages/aeg-core/src/reader-resolvable-prose.ts
471
+ var SWEPT_CLASSES = new Set(["ships", "reader-facing"]);
472
+
473
+ // ../../packages/aeg-core/src/quoted-command.ts
474
+ var QUOTED_COMMAND_SWEPT_CLASSES = new Set(["ships", "reader-facing"]);
475
+
460
476
  // ../../packages/aeg-core/src/issue-validation.ts
461
477
  var TYPE_LABEL_IDS = LABELS.filter((l) => l.category === "type").map((l) => l.id);
462
478
  var DOC_PATH_RE = /(?:(?:aeg-root|apps|packages|specs|docs|tools|\.claude|\.github)\/[\w./@-]*\.(?:md|mdx)|\.claude\/(?:skills|rules)\/[\w./-]+|\b(?:docs-index|decisions|projects|state-machine|enforcement|process|README|CLAUDE)\.md\b|\b[\w-]+-(?:spec|decisions|backlog)\.md\b)/i;
463
479
  var DOC_PATH_RE_GLOBAL = new RegExp(DOC_PATH_RE.source, "gi");
480
+ var FILE_EXTENSIONS = new Set([
481
+ "ts",
482
+ "tsx",
483
+ "js",
484
+ "jsx",
485
+ "mjs",
486
+ "cjs",
487
+ "json",
488
+ "jsonc",
489
+ "md",
490
+ "mdx",
491
+ "yml",
492
+ "yaml",
493
+ "txt",
494
+ "sh",
495
+ "lock",
496
+ "toml",
497
+ "ndjson",
498
+ "html",
499
+ "css"
500
+ ]);
464
501
 
465
502
  // ../../packages/aeg-core/src/coherence-checks.ts
466
503
  var R1_GRANDFATHERED_ISSUES = new Set([279, 280, 281, 282]);
467
504
  // ../../packages/aeg-core/src/diagram-model.ts
468
505
  import matter from "gray-matter";
469
- // ../../packages/aeg-core/src/reader-resolvable-prose.ts
470
- var SWEPT_CLASSES = new Set(["ships", "reader-facing"]);
471
-
472
- // ../../packages/aeg-core/src/quoted-command.ts
473
- var QUOTED_COMMAND_SWEPT_CLASSES = new Set(["ships", "reader-facing"]);
474
506
  // ../../packages/aeg-core/src/retired-vocabulary.ts
475
507
  var RETIRED_PATTERNS = [
476
508
  String.raw`\bD-[0-9]{3}\b`,
@@ -899,7 +931,9 @@ var DevReviewLoopEventSchema = z2.discriminatedUnion("event", [
899
931
  "escalated",
900
932
  "principal_stop",
901
933
  "confidence",
902
- "reappearance"
934
+ "reappearance",
935
+ "repeat_finding",
936
+ "repeat_failure"
903
937
  ])
904
938
  }).strict(),
905
939
  z2.object({
@@ -1403,6 +1437,10 @@ var LoopStateRecordSchema = z3.object({
1403
1437
  budgets: LoopBudgetsSchema,
1404
1438
  heldResult: roundHeadIdentity.nullable(),
1405
1439
  deliveredFindings: roundHeadIdentity.nullable(),
1440
+ repeatMemory: z3.object({
1441
+ blockingFindings: z3.array(z3.string()),
1442
+ lastFailure: z3.object({ signature: z3.string(), message: z3.string() }).nullable()
1443
+ }).strict().optional(),
1406
1444
  recordedAt: isoTimestamp
1407
1445
  }).strict();
1408
1446
  var EffectRecordSchema = z3.object({
@@ -2133,7 +2171,7 @@ import { dirname as dirname6, join as join7 } from "node:path";
2133
2171
  import { promisify as promisify5 } from "node:util";
2134
2172
 
2135
2173
  // src/lib/config.ts
2136
- import { execFile as execFile4, execFileSync as execFileSync2 } from "node:child_process";
2174
+ import { execFile as execFile4, execFileSync as execFileSync3 } from "node:child_process";
2137
2175
  import { promisify as promisify4 } from "node:util";
2138
2176
  import { existsSync as existsSync4, mkdirSync as mkdirSync2, readFileSync as readFileSync3, realpathSync, writeFileSync } from "node:fs";
2139
2177
  import { homedir } from "node:os";
@@ -2143,6 +2181,28 @@ import { z as z4 } from "zod";
2143
2181
  // src/lib/agent-vendors.ts
2144
2182
  var AGENT_VENDORS = ["skills", "claude", "gemini"];
2145
2183
 
2184
+ // src/lib/worker-boundary.ts
2185
+ import { execFileSync as execFileSync2 } from "node:child_process";
2186
+ var LOG_HEADER_KEYCHAIN_SERVICE = "Vinaya Log";
2187
+ var logHeaderKeychainCache = new Map;
2188
+ function readRealLogHeaderKeychainCredential(variable) {
2189
+ if (process.platform !== "darwin")
2190
+ return null;
2191
+ try {
2192
+ return execFileSync2("/usr/bin/security", ["find-generic-password", "-s", LOG_HEADER_KEYCHAIN_SERVICE, "-a", variable, "-w"], { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"], timeout: 5000, maxBuffer: 1024 * 1024 }).replace(/\n$/, "");
2193
+ } catch {
2194
+ return null;
2195
+ }
2196
+ }
2197
+ function readLogHeaderKeychainCredential(variable) {
2198
+ const cached = logHeaderKeychainCache.get(variable);
2199
+ if (cached !== undefined)
2200
+ return cached;
2201
+ const value = readRealLogHeaderKeychainCredential(variable);
2202
+ logHeaderKeychainCache.set(variable, value);
2203
+ return value;
2204
+ }
2205
+
2146
2206
  // src/lib/config.ts
2147
2207
  var EnvEntrySchema = z4.union([
2148
2208
  z4.literal(true),
@@ -2318,6 +2378,9 @@ var VinayaConfigSchema = z4.object({
2318
2378
  briefRulesSincePr: z4.number().int().nonnegative().optional(),
2319
2379
  agentBoxesRefusedSincePr: z4.number().int().nonnegative().optional()
2320
2380
  }).optional(),
2381
+ planning: z4.object({
2382
+ collisionThreshold: z4.number().int().nonnegative().optional()
2383
+ }).optional(),
2321
2384
  prePush: z4.object({
2322
2385
  alwaysRun: z4.array(z4.string()).optional()
2323
2386
  }).optional(),
@@ -2452,12 +2515,17 @@ function resolveTrustAnchorLogsDestination(local, trustAnchorConfig) {
2452
2515
  return "url" in anchored && anchored.url === local.url ? anchored : null;
2453
2516
  return "folder" in anchored && anchored.folder === local.folder ? anchored : null;
2454
2517
  }
2455
- function resolveLogsHeaderValues(headers, env) {
2518
+ function resolveLogsHeaderValues(headers, env, readKeychain = readLogHeaderKeychainCredential) {
2456
2519
  if (!headers)
2457
2520
  return;
2458
2521
  const resolved = {};
2459
2522
  for (const [key, value] of Object.entries(headers)) {
2460
- resolved[key] = value.replace(/\$\{([A-Za-z_][A-Za-z0-9_]*)\}/g, (_match, name) => env[name] ?? "");
2523
+ resolved[key] = value.replace(/\$\{([A-Za-z_][A-Za-z0-9_]*)\}/g, (_match, name) => {
2524
+ const fromEnv = env[name];
2525
+ if (fromEnv !== undefined)
2526
+ return fromEnv;
2527
+ return readKeychain(name) ?? "";
2528
+ });
2461
2529
  }
2462
2530
  return resolved;
2463
2531
  }
@@ -2466,7 +2534,7 @@ function trustAnchorRepo() {
2466
2534
  if (fromRunner)
2467
2535
  return fromRunner;
2468
2536
  try {
2469
- const url = execFileSync2("git", ["remote", "get-url", "origin"], {
2537
+ const url = execFileSync3("git", ["remote", "get-url", "origin"], {
2470
2538
  encoding: "utf-8",
2471
2539
  stdio: ["ignore", "pipe", "pipe"]
2472
2540
  });
@@ -2482,7 +2550,8 @@ async function trustAnchorRepoAsync() {
2482
2550
  try {
2483
2551
  const { stdout } = await execFileAsync4("git", ["remote", "get-url", "origin"], {
2484
2552
  encoding: "utf-8",
2485
- timeout: 1e4
2553
+ timeout: 1e4,
2554
+ killSignal: "SIGKILL"
2486
2555
  });
2487
2556
  return trustAnchorRepoFromRemoteUrl(stdout);
2488
2557
  } catch {
@@ -2512,7 +2581,7 @@ function resolveCiTrustAnchorProbeRef(env = process.env) {
2512
2581
  return ref;
2513
2582
  }
2514
2583
  function readTrustAnchorConfigAtRef(ref) {
2515
- const raw = execFileSync2("git", ["show", `${ref}:${LOCAL_CONFIG_FILENAME}`], {
2584
+ const raw = execFileSync3("git", ["show", `${ref}:${LOCAL_CONFIG_FILENAME}`], {
2516
2585
  encoding: "utf-8",
2517
2586
  stdio: ["ignore", "pipe", "pipe"],
2518
2587
  timeout: 1e4
@@ -2526,7 +2595,7 @@ function ghFetchTrustAnchorConfig() {
2526
2595
  const repo = trustAnchorRepo();
2527
2596
  if (!repo)
2528
2597
  throw new Error("could not resolve repo identity for the trust-anchor read");
2529
- return execFileSync2("gh", ["api", `repos/${repo}/contents/${LOCAL_CONFIG_FILENAME}`, "--jq", ".content"], {
2598
+ return execFileSync3("gh", ["api", `repos/${repo}/contents/${LOCAL_CONFIG_FILENAME}`, "--jq", ".content"], {
2530
2599
  encoding: "utf-8",
2531
2600
  stdio: ["ignore", "pipe", "pipe"]
2532
2601
  });
@@ -2543,7 +2612,7 @@ async function ghFetchTrustAnchorConfigAsync() {
2543
2612
  const repo = await trustAnchorRepoAsync();
2544
2613
  if (!repo)
2545
2614
  throw new Error("could not resolve repo identity for the trust-anchor read");
2546
- const { stdout } = await execFileAsync4("gh", ["api", `repos/${repo}/contents/${LOCAL_CONFIG_FILENAME}`, "--jq", ".content"], { encoding: "utf-8", timeout: 1e4 });
2615
+ const { stdout } = await execFileAsync4("gh", ["api", `repos/${repo}/contents/${LOCAL_CONFIG_FILENAME}`, "--jq", ".content"], { encoding: "utf-8", timeout: 1e4, killSignal: "SIGKILL" });
2547
2616
  return stdout;
2548
2617
  }
2549
2618
  function firstLine(err) {
@@ -2617,7 +2686,7 @@ function loadConfig() {
2617
2686
  var TOKENS_COLLECT_TRUST_PATH = join4(GLOBAL_VINAYA_HOME, "tokens-collect-trust.json");
2618
2687
 
2619
2688
  // src/lib/run-paths.ts
2620
- import { execFileSync as execFileSync3 } from "node:child_process";
2689
+ import { execFileSync as execFileSync4 } from "node:child_process";
2621
2690
  import { chmodSync, existsSync as existsSync5, realpathSync as realpathSync2 } from "node:fs";
2622
2691
  import { dirname as dirname4, join as join5, resolve as resolvePath } from "node:path";
2623
2692
  var TASKS_EXECUTION_DIRNAME = "tasks-execution";
@@ -2765,7 +2834,7 @@ function resolveRepoSync() {
2765
2834
  }
2766
2835
  let url;
2767
2836
  try {
2768
- url = execFileSync3("git", ["remote", "get-url", "origin"], {
2837
+ url = execFileSync4("git", ["remote", "get-url", "origin"], {
2769
2838
  encoding: "utf-8",
2770
2839
  stdio: ["ignore", "pipe", "pipe"]
2771
2840
  }).trim();
@@ -3134,7 +3203,14 @@ async function drainOutboxToWebhook(outboxTask, webhookUrl, headers, fetchTimeou
3134
3203
 
3135
3204
  // src/lib/log-sink.ts
3136
3205
  var OUTBOX_MAX_BYTES = 8 * 1024 * 1024;
3206
+ function describeFolderFallback(reason) {
3207
+ if (reason.kind === "anchor-unreadable") {
3208
+ return `not delivering to the configured log server ${reason.intendedUrl} — the default branch's ` + "vinaya.config.json could not be read to confirm it (the trust-anchor read via `gh` was offline, " + "unauthenticated, or slower than its deadline); events are written to the local folder and can be " + "delivered later with `vinaya log send`";
3209
+ }
3210
+ return `not delivering to the working-tree log server ${reason.intendedUrl} — the default branch's ` + "vinaya.config.json does not declare it, so an unattended run does not honour it (a pull request cannot " + "redirect telemetry); events are written to the local folder";
3211
+ }
3137
3212
  var LOG_CONTEXT_LOOKUP_DEADLINE_MS = 3000;
3213
+ var LOG_DESTINATION_ANCHOR_DEADLINE_MS = 8000;
3138
3214
  function withDeadline(work, ms, fallback) {
3139
3215
  return new Promise((resolve) => {
3140
3216
  const timer = setTimeout(() => resolve(fallback), ms);
@@ -3149,7 +3225,7 @@ function withDeadline(work, ms, fallback) {
3149
3225
  });
3150
3226
  }
3151
3227
  async function safeLoadTrustAnchorConfig() {
3152
- return withDeadline(loadTrustAnchorConfigAsync(undefined, { quiet: true }), LOG_CONTEXT_LOOKUP_DEADLINE_MS, null);
3228
+ return withDeadline(loadTrustAnchorConfigAsync(undefined, { quiet: true }), LOG_DESTINATION_ANCHOR_DEADLINE_MS, null);
3153
3229
  }
3154
3230
  function logsCredentialMissing(headers, env) {
3155
3231
  if (!headers)
@@ -3166,8 +3242,16 @@ function logsCredentialMissing(headers, env) {
3166
3242
  function resolveLogDestinationFrom(input) {
3167
3243
  const local = resolveLogsSetting(input.localConfig);
3168
3244
  let effective = null;
3245
+ let fallbackReason;
3169
3246
  if (input.unattended) {
3170
- effective = local ? resolveTrustAnchorLogsDestination(local, input.trustAnchorConfig) : resolveLogsSetting(input.trustAnchorConfig);
3247
+ if (local) {
3248
+ effective = resolveTrustAnchorLogsDestination(local, input.trustAnchorConfig);
3249
+ if (effective === null && "url" in local) {
3250
+ fallbackReason = input.trustAnchorConfig === null ? { kind: "anchor-unreadable", intendedUrl: local.url } : { kind: "anchor-mismatch", intendedUrl: local.url };
3251
+ }
3252
+ } else {
3253
+ effective = resolveLogsSetting(input.trustAnchorConfig);
3254
+ }
3171
3255
  } else {
3172
3256
  effective = local;
3173
3257
  }
@@ -3193,7 +3277,7 @@ function resolveLogDestinationFrom(input) {
3193
3277
  effective = null;
3194
3278
  }
3195
3279
  const folder = effective && "folder" in effective ? effective.folder : input.defaultFolder;
3196
- return { kind: "folder", folder };
3280
+ return fallbackReason ? { kind: "folder", folder, fallbackReason } : { kind: "folder", folder };
3197
3281
  }
3198
3282
  var processTrustAnchorOnce;
3199
3283
  function processTrustAnchor() {
@@ -3572,6 +3656,10 @@ function createLogSink(overrides = {}) {
3572
3656
  `);
3573
3657
  return;
3574
3658
  }
3659
+ if (resolvedDestination.kind === "folder" && resolvedDestination.fallbackReason) {
3660
+ warnOnce(`vinaya: ${describeFolderFallback(resolvedDestination.fallbackReason)}
3661
+ `);
3662
+ }
3575
3663
  const branchIssue = envFields.task ? null : await branchIssueOnce(repo);
3576
3664
  const header = buildHeader({
3577
3665
  now,
@@ -4340,6 +4428,27 @@ var COMMANDS = [
4340
4428
  "issue-711 O4: this command — `--task <n>`, `--resume <pr>`, `--cancel <pr>` alike — stays `task run`'s own one-shot debug/direct entry; the watching driver that survives a pause and continues on its own is `task run`'s (see that command's own entry)."
4341
4429
  ],
4342
4430
  status: "shipped"
4431
+ },
4432
+ {
4433
+ name: "log send",
4434
+ description: "Deliver this repository's locally-held log events to the configured `logs.url` server, once",
4435
+ flags: [{ flag: "--json", description: "Enveloped JSON output (schema: 1)" }],
4436
+ details: [
4437
+ "For a run whose events ended up on local disk instead of the configured server — an unattended run that fell back to the local folder because the trust-anchor read could not confirm its `logs.url` (a developer machine slower than the read deadline, or genuinely offline), or a retry queue holding a backlog or a `.draining.ndjson` a dead drain left behind. It moves the local folder's events into the retry queue and drains every queue for this repository through the SAME webhook delivery a live event uses.",
4438
+ "It resolves the destination exactly the way a normal event does — the sink's own decision over `vinaya.config.json`'s `logs` setting, trust-anchor-gated for an unattended caller — never a URL passed on the command line. A repository whose destination is a folder (or none) has nothing to send to a server and the command says so.",
4439
+ "Safe to run more than once: the server stores events by `event_id` and ignores one it already holds, so a re-sent chunk creates no duplicate, and a second run finds the folder emptied and the queue drained."
4440
+ ],
4441
+ status: "shipped"
4442
+ },
4443
+ {
4444
+ name: "log set-credential",
4445
+ description: "Store a `logs.headers` delivery credential in the macOS login Keychain, read from standard input",
4446
+ details: [
4447
+ 'For a `logs.url` server whose `headers` reference a credential by variable name (`{ "authorization": "Bearer ${VINAYA_LOG_TOKEN}" }`) on a host where that variable is not in the process environment — the case an Operator the Claude desktop app starts on macOS hits, since the token lives in an interactive shell file the app never reads. It stores the value so header resolution finds it in the Keychain when the environment does not, with no token copied into any settings file.',
4448
+ 'The value is read from STANDARD INPUT, never a command-line argument a `ps` listing could show — `printf %s "$TOKEN" | vinaya log set-credential VINAYA_LOG_TOKEN`. Only the variable NAME, which is not a secret, sits on the command line; the value is stored under the Keychain service `Vinaya Log` keyed by that name. The command prints a confirmation naming the variable and never echoes, returns, or logs the value.',
4449
+ "macOS only (Linux keyrings are out of scope); it refuses with a clear message elsewhere. The environment still wins over the Keychain wherever the variable is set, so this changes nothing for a host that already exports it."
4450
+ ],
4451
+ status: "shipped"
4343
4452
  }
4344
4453
  ];
4345
4454
  // ../../packages/sources/src/select-source.ts
@@ -4362,6 +4471,8 @@ var TEMPLATE_PATH = existsSync7(PACKAGED_TEMPLATE_PATH) ? PACKAGED_TEMPLATE_PATH
4362
4471
  var DRAFT_ISSUE_SENTINEL = Number.MAX_SAFE_INTEGER;
4363
4472
 
4364
4473
  // src/lib/forge-write.ts
4474
+ var IMPORTABLE_EXTENSIONS = [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs"];
4475
+ var IMPORT_SEARCH_PATHSPEC = IMPORTABLE_EXTENSIONS.map((e) => `*${e}`);
4365
4476
  var INFORMATIONAL_DISPATCH_BLOCKER_CLASSES = new Set([
4366
4477
  "depends-on-not-merged",
4367
4478
  "conflicts-with"
@@ -121,7 +121,7 @@ function parseHunkRanges(patch) {
121
121
  }
122
122
 
123
123
  // src/lib/config.ts
124
- import { execFile as execFile4, execFileSync as execFileSync2 } from "node:child_process";
124
+ import { execFile as execFile4, execFileSync as execFileSync3 } from "node:child_process";
125
125
  import { promisify as promisify4 } from "node:util";
126
126
  import { existsSync as existsSync2, mkdirSync as mkdirSync2, readFileSync as readFileSync3, realpathSync, writeFileSync } from "node:fs";
127
127
  import { homedir } from "node:os";
@@ -531,6 +531,16 @@ function globToRegex(pat) {
531
531
  return new RegExp(re);
532
532
  }
533
533
  var SEPARATOR = /(?:[ \t]*[—–][ \t]*|[ \t]+-[ \t]+)/.source;
534
+ // ../../packages/aeg-core/src/review-policy.ts
535
+ var SECURITY_SEVERITY_ORDER = ["CRITICAL", "HIGH", "MEDIUM", "LOW"];
536
+ function blockingSeverities(scale, threshold) {
537
+ const idx = scale.indexOf(threshold);
538
+ if (idx === -1) {
539
+ throw new Error(`blockingSeverities: threshold "${threshold}" is not one of ${scale.join(" > ")}`);
540
+ }
541
+ return scale.slice(0, idx + 1);
542
+ }
543
+ var SECURITY_HIGH_AND_ABOVE = blockingSeverities(SECURITY_SEVERITY_ORDER, "HIGH");
534
544
  // ../../packages/aeg-core/src/pr-tier.ts
535
545
  var OVERRIDE_BODY_TOKEN = `[${label("override-docs")}]`;
536
546
  // ../../packages/aeg-core/src/premise-check.ts
@@ -561,20 +571,42 @@ var NON_PATH_TOP_SEGMENTS = new Set(["origin", "refs", "HEAD", "vinaya", "fix"])
561
571
 
562
572
  // ../../packages/aeg-core/src/doctrine-no-procedures.ts
563
573
  var SHELL_LANGS = new Set(["", "sh", "bash", "shell", "console"]);
574
+ // ../../packages/aeg-core/src/reader-resolvable-prose.ts
575
+ var SWEPT_CLASSES = new Set(["ships", "reader-facing"]);
576
+
577
+ // ../../packages/aeg-core/src/quoted-command.ts
578
+ var QUOTED_COMMAND_SWEPT_CLASSES = new Set(["ships", "reader-facing"]);
579
+
564
580
  // ../../packages/aeg-core/src/issue-validation.ts
565
581
  var TYPE_LABEL_IDS = LABELS.filter((l) => l.category === "type").map((l) => l.id);
566
582
  var DOC_PATH_RE = /(?:(?:aeg-root|apps|packages|specs|docs|tools|\.claude|\.github)\/[\w./@-]*\.(?:md|mdx)|\.claude\/(?:skills|rules)\/[\w./-]+|\b(?:docs-index|decisions|projects|state-machine|enforcement|process|README|CLAUDE)\.md\b|\b[\w-]+-(?:spec|decisions|backlog)\.md\b)/i;
567
583
  var DOC_PATH_RE_GLOBAL = new RegExp(DOC_PATH_RE.source, "gi");
584
+ var FILE_EXTENSIONS = new Set([
585
+ "ts",
586
+ "tsx",
587
+ "js",
588
+ "jsx",
589
+ "mjs",
590
+ "cjs",
591
+ "json",
592
+ "jsonc",
593
+ "md",
594
+ "mdx",
595
+ "yml",
596
+ "yaml",
597
+ "txt",
598
+ "sh",
599
+ "lock",
600
+ "toml",
601
+ "ndjson",
602
+ "html",
603
+ "css"
604
+ ]);
568
605
 
569
606
  // ../../packages/aeg-core/src/coherence-checks.ts
570
607
  var R1_GRANDFATHERED_ISSUES = new Set([279, 280, 281, 282]);
571
608
  // ../../packages/aeg-core/src/diagram-model.ts
572
609
  import matter from "gray-matter";
573
- // ../../packages/aeg-core/src/reader-resolvable-prose.ts
574
- var SWEPT_CLASSES = new Set(["ships", "reader-facing"]);
575
-
576
- // ../../packages/aeg-core/src/quoted-command.ts
577
- var QUOTED_COMMAND_SWEPT_CLASSES = new Set(["ships", "reader-facing"]);
578
610
  // ../../packages/aeg-core/src/retired-vocabulary.ts
579
611
  var RETIRED_PATTERNS = [
580
612
  String.raw`\bD-[0-9]{3}\b`,
@@ -1003,7 +1035,9 @@ var DevReviewLoopEventSchema = z2.discriminatedUnion("event", [
1003
1035
  "escalated",
1004
1036
  "principal_stop",
1005
1037
  "confidence",
1006
- "reappearance"
1038
+ "reappearance",
1039
+ "repeat_finding",
1040
+ "repeat_failure"
1007
1041
  ])
1008
1042
  }).strict(),
1009
1043
  z2.object({
@@ -1507,6 +1541,10 @@ var LoopStateRecordSchema = z3.object({
1507
1541
  budgets: LoopBudgetsSchema,
1508
1542
  heldResult: roundHeadIdentity.nullable(),
1509
1543
  deliveredFindings: roundHeadIdentity.nullable(),
1544
+ repeatMemory: z3.object({
1545
+ blockingFindings: z3.array(z3.string()),
1546
+ lastFailure: z3.object({ signature: z3.string(), message: z3.string() }).nullable()
1547
+ }).strict().optional(),
1510
1548
  recordedAt: isoTimestamp
1511
1549
  }).strict();
1512
1550
  var EffectRecordSchema = z3.object({
@@ -1636,6 +1674,28 @@ var CONTROL_AREA_DIRNAME = "control";
1636
1674
  // src/lib/agent-vendors.ts
1637
1675
  var AGENT_VENDORS = ["skills", "claude", "gemini"];
1638
1676
 
1677
+ // src/lib/worker-boundary.ts
1678
+ import { execFileSync as execFileSync2 } from "node:child_process";
1679
+ var LOG_HEADER_KEYCHAIN_SERVICE = "Vinaya Log";
1680
+ var logHeaderKeychainCache = new Map;
1681
+ function readRealLogHeaderKeychainCredential(variable) {
1682
+ if (process.platform !== "darwin")
1683
+ return null;
1684
+ try {
1685
+ return execFileSync2("/usr/bin/security", ["find-generic-password", "-s", LOG_HEADER_KEYCHAIN_SERVICE, "-a", variable, "-w"], { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"], timeout: 5000, maxBuffer: 1024 * 1024 }).replace(/\n$/, "");
1686
+ } catch {
1687
+ return null;
1688
+ }
1689
+ }
1690
+ function readLogHeaderKeychainCredential(variable) {
1691
+ const cached = logHeaderKeychainCache.get(variable);
1692
+ if (cached !== undefined)
1693
+ return cached;
1694
+ const value = readRealLogHeaderKeychainCredential(variable);
1695
+ logHeaderKeychainCache.set(variable, value);
1696
+ return value;
1697
+ }
1698
+
1639
1699
  // src/lib/config.ts
1640
1700
  var EnvEntrySchema = z4.union([
1641
1701
  z4.literal(true),
@@ -1811,6 +1871,9 @@ var VinayaConfigSchema = z4.object({
1811
1871
  briefRulesSincePr: z4.number().int().nonnegative().optional(),
1812
1872
  agentBoxesRefusedSincePr: z4.number().int().nonnegative().optional()
1813
1873
  }).optional(),
1874
+ planning: z4.object({
1875
+ collisionThreshold: z4.number().int().nonnegative().optional()
1876
+ }).optional(),
1814
1877
  prePush: z4.object({
1815
1878
  alwaysRun: z4.array(z4.string()).optional()
1816
1879
  }).optional(),
@@ -1945,12 +2008,17 @@ function resolveTrustAnchorLogsDestination(local, trustAnchorConfig) {
1945
2008
  return "url" in anchored && anchored.url === local.url ? anchored : null;
1946
2009
  return "folder" in anchored && anchored.folder === local.folder ? anchored : null;
1947
2010
  }
1948
- function resolveLogsHeaderValues(headers, env) {
2011
+ function resolveLogsHeaderValues(headers, env, readKeychain = readLogHeaderKeychainCredential) {
1949
2012
  if (!headers)
1950
2013
  return;
1951
2014
  const resolved = {};
1952
2015
  for (const [key, value] of Object.entries(headers)) {
1953
- resolved[key] = value.replace(/\$\{([A-Za-z_][A-Za-z0-9_]*)\}/g, (_match, name) => env[name] ?? "");
2016
+ resolved[key] = value.replace(/\$\{([A-Za-z_][A-Za-z0-9_]*)\}/g, (_match, name) => {
2017
+ const fromEnv = env[name];
2018
+ if (fromEnv !== undefined)
2019
+ return fromEnv;
2020
+ return readKeychain(name) ?? "";
2021
+ });
1954
2022
  }
1955
2023
  return resolved;
1956
2024
  }
@@ -1959,7 +2027,7 @@ function trustAnchorRepo() {
1959
2027
  if (fromRunner)
1960
2028
  return fromRunner;
1961
2029
  try {
1962
- const url = execFileSync2("git", ["remote", "get-url", "origin"], {
2030
+ const url = execFileSync3("git", ["remote", "get-url", "origin"], {
1963
2031
  encoding: "utf-8",
1964
2032
  stdio: ["ignore", "pipe", "pipe"]
1965
2033
  });
@@ -1975,7 +2043,8 @@ async function trustAnchorRepoAsync() {
1975
2043
  try {
1976
2044
  const { stdout } = await execFileAsync4("git", ["remote", "get-url", "origin"], {
1977
2045
  encoding: "utf-8",
1978
- timeout: 1e4
2046
+ timeout: 1e4,
2047
+ killSignal: "SIGKILL"
1979
2048
  });
1980
2049
  return trustAnchorRepoFromRemoteUrl(stdout);
1981
2050
  } catch {
@@ -2005,7 +2074,7 @@ function resolveCiTrustAnchorProbeRef(env = process.env) {
2005
2074
  return ref;
2006
2075
  }
2007
2076
  function readTrustAnchorConfigAtRef(ref) {
2008
- const raw = execFileSync2("git", ["show", `${ref}:${LOCAL_CONFIG_FILENAME}`], {
2077
+ const raw = execFileSync3("git", ["show", `${ref}:${LOCAL_CONFIG_FILENAME}`], {
2009
2078
  encoding: "utf-8",
2010
2079
  stdio: ["ignore", "pipe", "pipe"],
2011
2080
  timeout: 1e4
@@ -2019,7 +2088,7 @@ function ghFetchTrustAnchorConfig() {
2019
2088
  const repo = trustAnchorRepo();
2020
2089
  if (!repo)
2021
2090
  throw new Error("could not resolve repo identity for the trust-anchor read");
2022
- return execFileSync2("gh", ["api", `repos/${repo}/contents/${LOCAL_CONFIG_FILENAME}`, "--jq", ".content"], {
2091
+ return execFileSync3("gh", ["api", `repos/${repo}/contents/${LOCAL_CONFIG_FILENAME}`, "--jq", ".content"], {
2023
2092
  encoding: "utf-8",
2024
2093
  stdio: ["ignore", "pipe", "pipe"]
2025
2094
  });
@@ -2036,7 +2105,7 @@ async function ghFetchTrustAnchorConfigAsync() {
2036
2105
  const repo = await trustAnchorRepoAsync();
2037
2106
  if (!repo)
2038
2107
  throw new Error("could not resolve repo identity for the trust-anchor read");
2039
- const { stdout } = await execFileAsync4("gh", ["api", `repos/${repo}/contents/${LOCAL_CONFIG_FILENAME}`, "--jq", ".content"], { encoding: "utf-8", timeout: 1e4 });
2108
+ const { stdout } = await execFileAsync4("gh", ["api", `repos/${repo}/contents/${LOCAL_CONFIG_FILENAME}`, "--jq", ".content"], { encoding: "utf-8", timeout: 1e4, killSignal: "SIGKILL" });
2040
2109
  return stdout;
2041
2110
  }
2042
2111
  function firstLine(err) {
@@ -2110,7 +2179,7 @@ function loadConfig() {
2110
2179
  var TOKENS_COLLECT_TRUST_PATH = join2(GLOBAL_VINAYA_HOME, "tokens-collect-trust.json");
2111
2180
 
2112
2181
  // src/lib/remote-base.ts
2113
- import { execFileSync as execFileSync3 } from "node:child_process";
2182
+ import { execFileSync as execFileSync4 } from "node:child_process";
2114
2183
  import { join as join3 } from "node:path";
2115
2184
  function cleanGitEnv() {
2116
2185
  const env = { ...process.env };
@@ -2122,7 +2191,7 @@ function cleanGitEnv() {
2122
2191
  }
2123
2192
  function git(repoRoot, args) {
2124
2193
  try {
2125
- return execFileSync3("git", args, {
2194
+ return execFileSync4("git", args, {
2126
2195
  cwd: repoRoot,
2127
2196
  encoding: "utf8",
2128
2197
  stdio: ["ignore", "pipe", "ignore"],
@@ -2178,7 +2247,7 @@ function changedFileDiffsSinceRemoteBase(repoRoot) {
2178
2247
  }
2179
2248
  function showBlob(repoRoot, ref, relative) {
2180
2249
  try {
2181
- return execFileSync3("git", ["show", `${ref}:${relative}`], {
2250
+ return execFileSync4("git", ["show", `${ref}:${relative}`], {
2182
2251
  cwd: repoRoot,
2183
2252
  encoding: "utf8",
2184
2253
  maxBuffer: 64 * 1024 * 1024,
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@attalabs/vinaya",
3
- "version": "0.34.0",
3
+ "version": "0.36.0",
4
4
  "description": "Vinaya — Agentic Engineering Harness. Deterministic checks every AI coding agent must satisfy before merge.",
5
5
  "type": "module",
6
- "license": "Apache-2.0",
6
+ "license": "FSL-1.1-ALv2",
7
7
  "author": "Daniel Estevez",
8
8
  "bin": {
9
9
  "vinaya": "./dist/index.js",