devcontour-harness 0.1.0-alpha.18 → 0.1.0-alpha.20

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 (56) hide show
  1. package/README.md +20 -2
  2. package/docs/architecture.md +48 -0
  3. package/docs/contracts.md +3 -0
  4. package/docs/quickstart.md +1 -1
  5. package/docs/release-notes/0.1.0-alpha.19.md +96 -0
  6. package/docs/release-notes/0.1.0-alpha.20.md +42 -0
  7. package/docs/upgrade.md +17 -16
  8. package/lib/agents/review-probe.js +2 -1
  9. package/lib/cli.js +7 -1
  10. package/lib/contracts/cli.d.ts +30 -2
  11. package/lib/contracts/events.d.ts +21 -0
  12. package/lib/contracts/events.js +7 -0
  13. package/lib/contracts/execution.d.ts +24 -3
  14. package/lib/contracts/execution.js +14 -2
  15. package/lib/contracts/planning.js +2 -2
  16. package/lib/contracts/policy.d.ts +1 -1
  17. package/lib/contracts/ports.d.ts +6 -0
  18. package/lib/contracts/primitives.d.ts +13 -0
  19. package/lib/contracts/primitives.js +15 -0
  20. package/lib/contracts/profiles.js +2 -2
  21. package/lib/contracts/published.d.ts +23 -2
  22. package/lib/contracts/review.d.ts +2 -2
  23. package/lib/contracts/review.js +2 -2
  24. package/lib/contracts/work.js +3 -3
  25. package/lib/control/base-move.js +2 -2
  26. package/lib/control/harness.d.ts +1 -1
  27. package/lib/control/harness.js +7 -2
  28. package/lib/control/workflow.js +6 -0
  29. package/lib/engine/budget.d.ts +1 -1
  30. package/lib/engine/engine.d.ts +14 -2
  31. package/lib/engine/engine.js +40 -1
  32. package/lib/engine/runner.d.ts +11 -1
  33. package/lib/engine/runner.js +82 -11
  34. package/lib/environment/git-trust.d.ts +36 -0
  35. package/lib/environment/git-trust.js +174 -0
  36. package/lib/environment/isolation.d.ts +103 -1
  37. package/lib/environment/isolation.js +340 -5
  38. package/lib/environment/live-calls.js +3 -2
  39. package/lib/environment/os-tools.d.ts +15 -0
  40. package/lib/environment/os-tools.js +35 -0
  41. package/lib/environment/process.d.ts +5 -0
  42. package/lib/environment/process.js +43 -6
  43. package/lib/index.d.ts +2 -0
  44. package/lib/index.js +4 -0
  45. package/lib/integrations/connector/config.js +2 -2
  46. package/lib/storage/document.d.ts +10 -2
  47. package/lib/verification/confirm.js +2 -2
  48. package/lib/verification/gates.d.ts +12 -1
  49. package/lib/verification/gates.js +81 -8
  50. package/lib/verification/requirements.js +6 -1
  51. package/package.json +1 -1
  52. package/schemas/execution-document.schema.json +27 -5
  53. package/schemas/plan-draft.schema.json +2 -2
  54. package/schemas/run-event.schema.json +22 -0
  55. package/schemas/work-graph.schema.json +2 -2
  56. package/schemas/work-order.schema.json +2 -2
@@ -490,6 +490,10 @@ export declare class DocumentView {
490
490
  digest: string;
491
491
  summary: string;
492
492
  consumer?: string | undefined;
493
+ recheck?: {
494
+ of: string;
495
+ outcome: "flaky" | "confirmed";
496
+ } | undefined;
493
497
  inspection?: {
494
498
  mode: "commands" | "diff-only";
495
499
  source: "codex-events" | "unavailable" | "controller-probes" | "runtime-and-controller";
@@ -544,7 +548,7 @@ export declare class DocumentView {
544
548
  expected: string[];
545
549
  issues?: {
546
550
  path: string;
547
- reason: "unknown" | "missing" | "schema" | "duplicate" | "not-open" | "approved-with-blocking";
551
+ reason: "schema" | "unknown" | "missing" | "duplicate" | "not-open" | "approved-with-blocking";
548
552
  message: string;
549
553
  }[] | undefined;
550
554
  transitions?: {
@@ -800,6 +804,10 @@ export declare class DocumentView {
800
804
  digest: string;
801
805
  summary: string;
802
806
  consumer?: string | undefined;
807
+ recheck?: {
808
+ of: string;
809
+ outcome: "flaky" | "confirmed";
810
+ } | undefined;
803
811
  inspection?: {
804
812
  mode: "commands" | "diff-only";
805
813
  source: "codex-events" | "unavailable" | "controller-probes" | "runtime-and-controller";
@@ -854,7 +862,7 @@ export declare class DocumentView {
854
862
  expected: string[];
855
863
  issues?: {
856
864
  path: string;
857
- reason: "unknown" | "missing" | "schema" | "duplicate" | "not-open" | "approved-with-blocking";
865
+ reason: "schema" | "unknown" | "missing" | "duplicate" | "not-open" | "approved-with-blocking";
858
866
  message: string;
859
867
  }[] | undefined;
860
868
  transitions?: {
@@ -5,7 +5,7 @@ import { join } from 'node:path';
5
5
  import { z } from 'zod';
6
6
  import { HarnessError, idSchema, } from "../contracts/index.js";
7
7
  import { executionEnvironment, runSteps, withEnvironment } from "../environment/lifecycle.js";
8
- import { git } from "../environment/process.js";
8
+ import { git, hostGitArgs } from "../environment/process.js";
9
9
  import { contractDocuments, obligationOf } from "./checks.js";
10
10
  import { MAX_CASE_BYTES, canonicalJson, scrubLocalPaths, sha256, } from "./corpus.js";
11
11
  import { runCheck } from "./gates.js";
@@ -158,7 +158,7 @@ export async function submitCase(ctx, raw) {
158
158
  ...(verdict.observed ? { observed: verdict.observed } : {}),
159
159
  ...(verdict.method ? { method: verdict.method } : {}),
160
160
  origin,
161
- }, (content) => execFileSync('git', ['hash-object', '-w', '--stdin'], {
161
+ }, (content) => execFileSync('git', hostGitArgs(ctx.repoPath(repo), ['hash-object', '-w', '--stdin']), {
162
162
  cwd: ctx.repoPath(repo),
163
163
  input: content,
164
164
  })
@@ -1,5 +1,5 @@
1
1
  import { type EvidenceRecord, type ExecutionPolicy, type GatePolicy } from '../contracts/index.ts';
2
- import { isolationSupport } from '../environment/isolation.ts';
2
+ import { isolationSupport, type Isolation, type SandboxViolation } from '../environment/isolation.ts';
3
3
  import { type CheckManifest } from './property.ts';
4
4
  /** Длинное имя testcase заменяется хешем, а не обрезается: обрезка дала бы ложные совпадения. */
5
5
  export declare const TEST_ID_LIMIT = 1000;
@@ -79,6 +79,11 @@ export declare function runCheck(h: {
79
79
  readable: string[];
80
80
  controller: string[];
81
81
  settingsDir: string;
82
+ /**
83
+ * Собрать отказы песочницы из журнала ядра (macOS): по ним, а не по
84
+ * тексту вывода, отказ среды отличается от ошибки кода.
85
+ */
86
+ violations?: boolean;
82
87
  /**
83
88
  * Запуск проверки подтверждён: без песочницы — порождён её процесс, в
84
89
  * песочнице — обёртка создала метку старта перед exec. Запуск самой
@@ -87,6 +92,8 @@ export declare function runCheck(h: {
87
92
  */
88
93
  onStart?: () => void;
89
94
  }): Promise<{
95
+ violations?: SandboxViolation[] | undefined;
96
+ isolation?: Isolation | undefined;
90
97
  attempts: number;
91
98
  started: boolean;
92
99
  code: number;
@@ -97,6 +104,8 @@ export declare function runCheck(h: {
97
104
  }>;
98
105
  /** Исход проверки, завершившейся до исключения (например, отказа уборки), если он есть. */
99
106
  export declare function completedCheck(error: unknown): {
107
+ violations?: SandboxViolation[] | undefined;
108
+ isolation?: Isolation | undefined;
100
109
  attempts: number;
101
110
  started: boolean;
102
111
  code: number;
@@ -157,6 +166,8 @@ export interface GateRun {
157
166
  };
158
167
  /** Проверка потребителя: evidence несёт его компонент и не закрывает собственные gates. */
159
168
  consumer?: string;
169
+ /** Повтор провала: ID записи, которую повторяет запуск; исход пишется в `recheck`. */
170
+ recheck?: string;
160
171
  /**
161
172
  * Генеративный gate (`gate.property`): попытка, от которой seed, и
162
173
  * ожидаемая проверка поручения. Без `expected` — прежний уровень (отчёт
@@ -2,11 +2,12 @@ import { readFile, writeFile, mkdir, mkdtemp, rm, realpath, lstat, chmod } from
2
2
  import { tmpdir } from 'node:os';
3
3
  import { join, resolve, sep, delimiter, relative, dirname } from 'node:path';
4
4
  import { accessSync, constants, existsSync } from 'node:fs';
5
- import { createHash } from 'node:crypto';
5
+ import { createHash, randomUUID } from 'node:crypto';
6
6
  import { XMLParser, XMLValidator } from 'fast-xml-parser';
7
7
  import { sha256, } from "../contracts/index.js";
8
8
  import { command, git } from "../environment/process.js";
9
- import { isolation, isolatedCommand, isolationSupport } from "../environment/isolation.js";
9
+ import { isolation, isolatedCommand, isolationSupport, protectedChanges, protectedSnapshot, SandboxPolicyError, sandboxDenials, watchSandboxLog, } from "../environment/isolation.js";
10
+ import { UntrustedCheckoutError } from "../environment/git-trust.js";
10
11
  import { TaskFailure } from "../engine/failure.js";
11
12
  import { redactDeep } from "../environment/redaction.js";
12
13
  import { expectsReference, manifestDigest, propertyCoverage, propertyFailure, propertySeed, readPropertyReport, } from "./property.js";
@@ -258,7 +259,7 @@ h, options) {
258
259
  launched = true;
259
260
  options.onStart?.();
260
261
  };
261
- let argv = options.argv, env = options.env, started, result, attempts = 1;
262
+ let argv = options.argv, env = options.env, cwd = options.cwd, policy, started, result, monitor, violations, attempts = 1;
262
263
  const scratch = await realpath(await mkdtemp(join(tmpdir(), 'dc-gate-')));
263
264
  // Метка старта — вне TMPDIR команды: проверка, чистящая свой временный
264
265
  // каталог, не должна стирать признак того, что она уже начиналась.
@@ -271,23 +272,32 @@ h, options) {
271
272
  // Отсутствующая команда внутри песочницы выглядела бы как «код 127»
272
273
  // от обёртки. Причина та же, что и без неё, — называем её так же.
273
274
  assertExecutable(argv[0], env.PATH, options.cwd);
274
- const policy = isolation({
275
+ policy = isolation({
275
276
  write: [...options.write, scratch, marks],
276
277
  controller: options.controller,
277
278
  readable: options.readable,
278
279
  domains: h.config.isolation.domains,
279
280
  });
280
281
  started = join(marks, 'started');
281
- const wrapped = await isolatedCommand(policy, argv, options.settingsDir, scratch, started);
282
+ // Обязательные запреты записи — для checkout проверки целиком, а не
283
+ // только для её рабочего каталога: gate из подкаталога иначе оставлял
284
+ // корень дерева без них.
285
+ const workdir = await realpath(options.cwd);
286
+ const tag = options.violations ? 'dc' + randomUUID().replace(/-/g, '').slice(0, 16) : '';
287
+ const roots = isolation({ write: options.write, controller: [] }).write.filter((w) => workdir === w || workdir.startsWith(w + sep));
288
+ const wrapped = await isolatedCommand(policy, argv, options.settingsDir, scratch, started, workdir, roots.length ? roots : [workdir], process.platform, tag);
282
289
  argv = wrapped.argv;
283
290
  env = { ...env, ...wrapped.env };
291
+ cwd = wrapped.cwd;
292
+ if (tag)
293
+ monitor = await watchSandboxLog(tag);
284
294
  }
285
295
  const execute = () => {
286
296
  // Уже отменённый вызов не запускается: слушатель отмены на отменённом
287
297
  // сигнале не срабатывает, и команда шла бы до таймаута.
288
298
  if (options.signal.aborted)
289
299
  throw Object.assign(new Error('Проверка отменена до запуска'), { name: 'AbortError' });
290
- return command(argv, options.cwd, {
300
+ return command(argv, cwd, {
291
301
  signal: options.signal,
292
302
  ...(started === undefined ? { onSpawn: confirm } : {}),
293
303
  timeoutMs: options.timeoutMs,
@@ -314,13 +324,25 @@ h, options) {
314
324
  // Факт старта читается до удаления метки — и при исключении после него.
315
325
  if (started !== undefined && existsSync(started))
316
326
  confirm();
327
+ // Отказы нужны только для разбора провала: успешной проверке ждать
328
+ // записей ядра незачем.
329
+ violations = await monitor?.stop(result && result.code !== 0 ? 400 : 0);
317
330
  }
318
331
  // Без песочницы завершившийся процесс точно порождался.
319
332
  if (started === undefined)
320
333
  confirm();
321
- return { ...result, attempts, started: launched };
334
+ return {
335
+ ...result,
336
+ attempts,
337
+ started: launched,
338
+ ...(policy ? { isolation: policy } : {}),
339
+ ...(violations ? { violations } : {}),
340
+ };
322
341
  }
323
342
  finally {
343
+ // Наблюдение за журналом не переживает проверку и при исключении.
344
+ if (monitor && violations === undefined)
345
+ await monitor.stop(0);
324
346
  // Каждый каталог убирается независимо: отказ уборки временного каталога
325
347
  // проверки (она могла снять с него права) не должен оставлять и метки.
326
348
  const removed = await Promise.allSettled([
@@ -333,7 +355,15 @@ h, options) {
333
355
  // вывод доступны вызывающему через ошибку (`completedCheck`).
334
356
  const error = failed.reason instanceof Error ? failed.reason : new Error(String(failed.reason));
335
357
  throw result
336
- ? Object.assign(error, { [checkResult]: { ...result, attempts, started: launched } })
358
+ ? Object.assign(error, {
359
+ [checkResult]: {
360
+ ...result,
361
+ attempts,
362
+ started: launched,
363
+ ...(policy ? { isolation: policy } : {}),
364
+ ...(violations ? { violations } : {}),
365
+ },
366
+ })
337
367
  : error;
338
368
  }
339
369
  }
@@ -455,6 +485,9 @@ export async function runGate(run) {
455
485
  // evidence, и запись называет, где и чем проверка исполнялась.
456
486
  let passed = false, summary = '', log = `# harness gate ${gate.id}: cwd=${relative(root, gateCwd) || '.'} argv=${JSON.stringify(gate.command.map(redact))}${gate.kind === 'test' ? ` fresh=${redact(JSON.stringify(freshness))}` : ''}\n`, exitCode = -1, manifest;
457
487
  try {
488
+ // Снимок защищённых путей до проверки: запреты песочницы видят только
489
+ // путь операции, перенос готового каталога ими не закрыт.
490
+ const before = run.policy.isolation.mode === 'os' ? protectedSnapshot(root) : undefined;
458
491
  const result = await runCheck({ config: run.policy }, {
459
492
  argv: gate.command,
460
493
  cwd: gateCwd,
@@ -474,9 +507,20 @@ export async function runGate(run) {
474
507
  readable: [...run.boundary.readable, ...(corpusDir ? [corpusDir] : [])],
475
508
  controller: run.boundary.hidden,
476
509
  settingsDir: join(artifactDir, gate.id),
510
+ violations: true,
477
511
  });
478
512
  exitCode = result.code;
479
513
  log += result.stdout + '\n' + result.stderr;
514
+ const planted = before ? protectedChanges(before, root) : [];
515
+ if (planted.length) {
516
+ kind = 'scope-violation';
517
+ throw new Error('проверка создала или изменила защищённые пути (конфигурация IDE, shell, git или Claude): ' +
518
+ planted
519
+ .slice(0, 5)
520
+ .map((p) => relative(root, p))
521
+ .join(', ') +
522
+ (planted.length > 5 ? ` и ещё ${planted.length - 5}` : ''));
523
+ }
480
524
  if (result.timedOut || signal.aborted)
481
525
  throw new Error('Проверка прервана или превысила timeout');
482
526
  if (result.code !== 0) {
@@ -488,6 +532,21 @@ export async function runGate(run) {
488
532
  throw new Error(`песочница проверки закрыла сеть к ${blocked.join(', ')}: этих доменов нет в isolation.domains. ` +
489
533
  `Код выхода ${result.code}: ${diagnostic(result.stderr, result.stdout, redact)}`);
490
534
  }
535
+ // Отказ файловой песочницы — отказ среды: правка кода его не снимет,
536
+ // а класс gate сжигал бы бюджет ремонтов.
537
+ const denied = result.isolation && result.violations
538
+ ? sandboxDenials(result.violations, result.isolation)
539
+ : [];
540
+ if (denied.length) {
541
+ kind = 'environment';
542
+ throw new Error(`песочница проверки отказала в доступе: ` +
543
+ denied
544
+ .slice(0, 3)
545
+ .map((d) => `${relative(root, d.path).startsWith('..') ? d.path : relative(root, d.path)} — ${d.rule}`)
546
+ .join('; ') +
547
+ (denied.length > 3 ? ` и ещё ${denied.length - 3}` : '') +
548
+ `. Код выхода ${result.code}: ${diagnostic(result.stderr, result.stdout, redact)}`);
549
+ }
491
550
  const counts = reportPath
492
551
  ? await readReport(reportPath, cwd, redact).catch(() => undefined)
493
552
  : undefined;
@@ -518,6 +577,12 @@ export async function runGate(run) {
518
577
  passed = true;
519
578
  }
520
579
  catch (error) {
580
+ // Сборка политики не удалась — отказ среды; checkout, который увёл бы
581
+ // git хоста в чужую конфигурацию, — нарушение области.
582
+ if (error instanceof SandboxPolicyError)
583
+ kind = 'environment';
584
+ if (error instanceof UntrustedCheckoutError)
585
+ kind = 'scope-violation';
521
586
  const message = error instanceof Error ? error.message : String(error);
522
587
  summary = redact(message);
523
588
  log += '\n' + summary;
@@ -635,6 +700,14 @@ export async function runGate(run) {
635
700
  ...(manifest?.truncated ? { testsTruncated: true } : {}),
636
701
  ...(run.consumer ? { consumer: run.consumer } : {}),
637
702
  ...(propertyEvidence ? { property: propertyEvidence } : {}),
703
+ ...(run.recheck
704
+ ? {
705
+ recheck: {
706
+ of: run.recheck,
707
+ outcome: passed ? 'flaky' : 'confirmed',
708
+ },
709
+ }
710
+ : {}),
638
711
  });
639
712
  if (!passed) {
640
713
  // Отказ связывается со свойствами по отчёту проверки, а не по тексту:
@@ -1,5 +1,6 @@
1
1
  import { execFileSync } from 'node:child_process';
2
2
  import { HarnessError, relativePathSchema, sha256 } from "../contracts/index.js";
3
+ import { hostGitArgs } from "../environment/process.js";
3
4
  /** Требование заканчивается на следующем заголовке уровня 1–2; примеры в fenced-блоках не считаются. */
4
5
  export function parseRequirements(markdown) {
5
6
  if (Buffer.byteLength(markdown) > 1_000_000)
@@ -44,7 +45,11 @@ export function requirementSnapshot(cwd, source, ref = 'HEAD') {
44
45
  relativePathSchema.parse(source);
45
46
  if (!/^(HEAD|[a-f0-9]{40,64})$/.test(ref))
46
47
  throw new HarnessError('INVALID_INPUT', 'Нужен HEAD или точный SHA');
47
- const git = (...args) => execFileSync('git', args, { cwd, encoding: 'utf8', maxBuffer: 1_100_000 }).trimEnd();
48
+ const git = (...args) => execFileSync('git', hostGitArgs(cwd, args), {
49
+ cwd,
50
+ encoding: 'utf8',
51
+ maxBuffer: 1_100_000,
52
+ }).trimEnd();
48
53
  const sha = git('rev-parse', '--verify', ref + '^{commit}');
49
54
  if (!/^100(644|755) blob /.test(git('ls-tree', sha, '--', source)))
50
55
  throw new HarnessError('NOT_READY', 'Источник требований должен быть обычным Git-файлом: ' + source);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devcontour-harness",
3
- "version": "0.1.0-alpha.18",
3
+ "version": "0.1.0-alpha.20",
4
4
  "description": "Headless execution harness: work graph, isolated attempts, gates, independent reviews and accepted results.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -166,7 +166,7 @@
166
166
  }
167
167
  },
168
168
  "gates": {
169
- "maxItems": 20,
169
+ "maxItems": 100,
170
170
  "type": "array",
171
171
  "items": {
172
172
  "type": "string",
@@ -185,7 +185,7 @@
185
185
  },
186
186
  "gates": {
187
187
  "minItems": 1,
188
- "maxItems": 20,
188
+ "maxItems": 100,
189
189
  "type": "array",
190
190
  "items": {
191
191
  "type": "string",
@@ -603,7 +603,7 @@
603
603
  }
604
604
  },
605
605
  "gates": {
606
- "maxItems": 20,
606
+ "maxItems": 100,
607
607
  "type": "array",
608
608
  "items": {
609
609
  "type": "string",
@@ -622,7 +622,7 @@
622
622
  },
623
623
  "gates": {
624
624
  "minItems": 1,
625
- "maxItems": 20,
625
+ "maxItems": 100,
626
626
  "type": "array",
627
627
  "items": {
628
628
  "type": "string",
@@ -2249,6 +2249,28 @@
2249
2249
  "type": "string",
2250
2250
  "pattern": "^[A-Za-z0-9_-]{1,80}$"
2251
2251
  },
2252
+ "recheck": {
2253
+ "type": "object",
2254
+ "properties": {
2255
+ "of": {
2256
+ "type": "string",
2257
+ "minLength": 1,
2258
+ "maxLength": 200
2259
+ },
2260
+ "outcome": {
2261
+ "type": "string",
2262
+ "enum": [
2263
+ "flaky",
2264
+ "confirmed"
2265
+ ]
2266
+ }
2267
+ },
2268
+ "required": [
2269
+ "of",
2270
+ "outcome"
2271
+ ],
2272
+ "additionalProperties": false
2273
+ },
2252
2274
  "inspection": {
2253
2275
  "type": "object",
2254
2276
  "properties": {
@@ -3000,7 +3022,7 @@
3000
3022
  "properties": {
3001
3023
  "gates": {
3002
3024
  "minItems": 1,
3003
- "maxItems": 20,
3025
+ "maxItems": 100,
3004
3026
  "type": "array",
3005
3027
  "items": {
3006
3028
  "type": "string",
@@ -104,7 +104,7 @@
104
104
  }
105
105
  },
106
106
  "gates": {
107
- "maxItems": 20,
107
+ "maxItems": 100,
108
108
  "type": "array",
109
109
  "items": {
110
110
  "type": "string",
@@ -181,7 +181,7 @@
181
181
  },
182
182
  "gates": {
183
183
  "minItems": 1,
184
- "maxItems": 20,
184
+ "maxItems": 100,
185
185
  "type": "array",
186
186
  "items": {
187
187
  "type": "string",
@@ -627,6 +627,28 @@
627
627
  "consumer": {
628
628
  "type": "string",
629
629
  "pattern": "^[A-Za-z0-9_-]{1,80}$"
630
+ },
631
+ "recheck": {
632
+ "type": "object",
633
+ "properties": {
634
+ "of": {
635
+ "type": "string",
636
+ "minLength": 1,
637
+ "maxLength": 200
638
+ },
639
+ "outcome": {
640
+ "type": "string",
641
+ "enum": [
642
+ "flaky",
643
+ "confirmed"
644
+ ]
645
+ }
646
+ },
647
+ "required": [
648
+ "of",
649
+ "outcome"
650
+ ],
651
+ "additionalProperties": false
630
652
  }
631
653
  },
632
654
  "required": [
@@ -146,7 +146,7 @@
146
146
  }
147
147
  },
148
148
  "gates": {
149
- "maxItems": 20,
149
+ "maxItems": 100,
150
150
  "type": "array",
151
151
  "items": {
152
152
  "type": "string",
@@ -165,7 +165,7 @@
165
165
  },
166
166
  "gates": {
167
167
  "minItems": 1,
168
- "maxItems": 20,
168
+ "maxItems": 100,
169
169
  "type": "array",
170
170
  "items": {
171
171
  "type": "string",
@@ -106,7 +106,7 @@
106
106
  }
107
107
  },
108
108
  "gates": {
109
- "maxItems": 20,
109
+ "maxItems": 100,
110
110
  "type": "array",
111
111
  "items": {
112
112
  "type": "string",
@@ -125,7 +125,7 @@
125
125
  },
126
126
  "gates": {
127
127
  "minItems": 1,
128
- "maxItems": 20,
128
+ "maxItems": 100,
129
129
  "type": "array",
130
130
  "items": {
131
131
  "type": "string",