devcontour-harness 0.1.0-alpha.34 → 0.1.0-alpha.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/README.md +22 -2
  2. package/docs/contracts.md +309 -35
  3. package/docs/release-notes/0.1.0-alpha.35.md +27 -0
  4. package/docs/release-notes/0.1.0-alpha.36.md +26 -0
  5. package/docs/release-notes/0.1.0-alpha.37.md +40 -0
  6. package/docs/standalone.md +20 -0
  7. package/docs/toolchains.md +57 -2
  8. package/docs/upgrade.md +143 -0
  9. package/lib/agents/cli-adapter.d.ts +10 -1
  10. package/lib/agents/cli-adapter.js +38 -7
  11. package/lib/agents/schemas.d.ts +84 -2
  12. package/lib/agents/schemas.js +49 -1
  13. package/lib/agents/usage.d.ts +9 -0
  14. package/lib/agents/usage.js +22 -1
  15. package/lib/cli.js +149 -1
  16. package/lib/contracts/cli.d.ts +1544 -171
  17. package/lib/contracts/cli.js +233 -2
  18. package/lib/contracts/diagnosis.d.ts +10 -4
  19. package/lib/contracts/diagnosis.js +4 -0
  20. package/lib/contracts/errors.d.ts +9 -1
  21. package/lib/contracts/errors.js +8 -0
  22. package/lib/contracts/events.d.ts +468 -60
  23. package/lib/contracts/events.js +79 -0
  24. package/lib/contracts/execution.d.ts +301 -50
  25. package/lib/contracts/execution.js +60 -0
  26. package/lib/contracts/failure.d.ts +20 -3
  27. package/lib/contracts/failure.js +14 -2
  28. package/lib/contracts/handoff.d.ts +79 -20
  29. package/lib/contracts/handoff.js +42 -1
  30. package/lib/contracts/index.d.ts +1 -0
  31. package/lib/contracts/index.js +1 -0
  32. package/lib/contracts/input-state.d.ts +13 -0
  33. package/lib/contracts/input-state.js +32 -0
  34. package/lib/contracts/input.d.ts +442 -0
  35. package/lib/contracts/input.js +321 -0
  36. package/lib/contracts/planning.d.ts +4 -0
  37. package/lib/contracts/policy.d.ts +17 -2
  38. package/lib/contracts/policy.js +31 -2
  39. package/lib/contracts/ports.d.ts +64 -2
  40. package/lib/contracts/project.d.ts +127 -0
  41. package/lib/contracts/project.js +99 -0
  42. package/lib/contracts/published.d.ts +631 -92
  43. package/lib/contracts/published.js +4 -1
  44. package/lib/contracts/repair-policy.d.ts +30 -1
  45. package/lib/contracts/repair-policy.js +52 -0
  46. package/lib/contracts/report.d.ts +55 -21
  47. package/lib/contracts/report.js +33 -2
  48. package/lib/contracts/result.d.ts +28 -24
  49. package/lib/contracts/review.d.ts +47 -8
  50. package/lib/contracts/review.js +21 -1
  51. package/lib/control/harness.d.ts +2555 -51
  52. package/lib/control/harness.js +112 -6
  53. package/lib/control/recovery.d.ts +2 -2
  54. package/lib/control/report.js +1 -0
  55. package/lib/control/status.d.ts +30 -22
  56. package/lib/control/status.js +11 -1
  57. package/lib/control/workflow.d.ts +8 -8
  58. package/lib/engine/budget.d.ts +86 -3
  59. package/lib/engine/budget.js +45 -10
  60. package/lib/engine/classify.js +1 -1
  61. package/lib/engine/engine.d.ts +3091 -83
  62. package/lib/engine/engine.js +1209 -101
  63. package/lib/engine/failure.d.ts +1 -1
  64. package/lib/engine/failure.js +1 -1
  65. package/lib/engine/input-policy.d.ts +68 -0
  66. package/lib/engine/input-policy.js +285 -0
  67. package/lib/engine/input-requests.d.ts +64 -0
  68. package/lib/engine/input-requests.js +187 -0
  69. package/lib/engine/measured.d.ts +6 -1
  70. package/lib/engine/measured.js +12 -1
  71. package/lib/engine/prompt.d.ts +4 -2
  72. package/lib/engine/prompt.js +13 -1
  73. package/lib/engine/property-recovery.js +4 -0
  74. package/lib/engine/repair.d.ts +2 -0
  75. package/lib/engine/repair.js +13 -4
  76. package/lib/engine/reuse.js +2 -0
  77. package/lib/engine/runner.d.ts +33 -4
  78. package/lib/engine/runner.js +275 -23
  79. package/lib/environment/lifecycle.d.ts +8 -0
  80. package/lib/environment/lifecycle.js +15 -2
  81. package/lib/explain/state.d.ts +16 -2
  82. package/lib/explain/state.js +262 -79
  83. package/lib/handoff/markdown.js +10 -0
  84. package/lib/handoff/pack.js +42 -1
  85. package/lib/index.d.ts +11 -1
  86. package/lib/index.js +11 -1
  87. package/lib/init/inspect.d.ts +34 -0
  88. package/lib/init/inspect.js +292 -0
  89. package/lib/init/project.js +14 -31
  90. package/lib/integrations/connector/commands.d.ts +12 -12
  91. package/lib/integrations/connector/config.d.ts +4 -4
  92. package/lib/integrations/connector/delivery.d.ts +1 -1
  93. package/lib/integrations/relay-v2/protocol.d.ts +4 -4
  94. package/lib/profiles/resolve.d.ts +2 -1
  95. package/lib/projections/enums.d.ts +1 -1
  96. package/lib/projections/enums.js +4 -0
  97. package/lib/projections/index.d.ts +1 -0
  98. package/lib/projections/index.js +1 -0
  99. package/lib/projections/input.d.ts +17 -0
  100. package/lib/projections/input.js +28 -0
  101. package/lib/projections/stop.d.ts +42 -1
  102. package/lib/projections/stop.js +117 -6
  103. package/lib/report/compute.d.ts +4 -1
  104. package/lib/report/compute.js +26 -0
  105. package/lib/report/document.js +2 -1
  106. package/lib/storage/document.d.ts +68 -28
  107. package/lib/testing/index.d.ts +1 -1
  108. package/lib/testing/index.js +1 -1
  109. package/lib/testing/store-contract.d.ts +8 -1
  110. package/lib/testing/store-contract.js +194 -1
  111. package/lib/verification/confirm.d.ts +3 -3
  112. package/lib/verification/corpus.d.ts +9 -9
  113. package/lib/verification/gates.d.ts +119 -0
  114. package/lib/verification/gates.js +311 -4
  115. package/package.json +1 -1
  116. package/schemas/execution-document.schema.json +141 -0
  117. package/schemas/execution-policy.schema.json +26 -0
  118. package/schemas/handoff-pack.schema.json +155 -4
  119. package/schemas/input-request.schema.json +665 -0
  120. package/schemas/project-facts.schema.json +393 -0
  121. package/schemas/result-envelope.schema.json +2 -0
  122. package/schemas/run-event.schema.json +628 -0
  123. package/schemas/run-result.schema.json +2 -0
  124. package/schemas/stop-diagnosis.schema.json +7 -1
  125. package/schemas/value-report.schema.json +79 -7
@@ -84,7 +84,7 @@ export declare const cliCommands: {
84
84
  readonly required: true;
85
85
  readonly description: "ID графа или контракта";
86
86
  }];
87
- readonly refusals: ["APPROVAL_STALE", "APPROVAL_REQUIRED", "REVIEW_REJECTED"];
87
+ readonly refusals: ["APPROVAL_STALE", "APPROVAL_REQUIRED", "REVIEW_REJECTED", "INPUT_REQUIRED"];
88
88
  };
89
89
  readonly run: {
90
90
  readonly description: "Зарегистрировать согласованный граф (идемпотентно по connector, ref, revision, digest) и вести работу до простоя";
@@ -117,7 +117,7 @@ export declare const cliCommands: {
117
117
  readonly required: false;
118
118
  readonly description: "Автор графа для ревью плана; по умолчанию external";
119
119
  }];
120
- readonly refusals: ["APPROVAL_REQUIRED", "APPROVAL_STALE", "PAUSED", "CONTROLLER_BUSY", "REVISION_CONFLICT", "GATE_FAILED", "REVIEW_REJECTED", "SCOPE_VIOLATION", "BUDGET_EXHAUSTED", "BUDGET_UNKNOWN", "ATTEMPTS_EXHAUSTED"];
120
+ readonly refusals: ["APPROVAL_REQUIRED", "APPROVAL_STALE", "PAUSED", "CONTROLLER_BUSY", "REVISION_CONFLICT", "GATE_FAILED", "REVIEW_REJECTED", "SCOPE_VIOLATION", "BUDGET_EXHAUSTED", "BUDGET_UNKNOWN", "ATTEMPTS_EXHAUSTED", "CONTEXT_EXHAUSTED", "INPUT_REQUIRED"];
121
121
  };
122
122
  readonly status: {
123
123
  readonly description: "Состояние очереди, графов и поручений с причинами блокировки";
@@ -194,7 +194,7 @@ export declare const cliCommands: {
194
194
  readonly required: false;
195
195
  readonly description: "Причина сброса";
196
196
  }];
197
- readonly refusals: ["NOT_FOUND", "ATTEMPTS_EXHAUSTED", "BUDGET_EXHAUSTED", "BUDGET_UNKNOWN"];
197
+ readonly refusals: ["NOT_FOUND", "ATTEMPTS_EXHAUSTED", "BUDGET_EXHAUSTED", "BUDGET_UNKNOWN", "INPUT_REQUIRED"];
198
198
  };
199
199
  readonly result: {
200
200
  readonly description: "Машинный результат последней завершённой попытки поручения и состояние доставки";
@@ -537,6 +537,128 @@ export declare const cliCommands: {
537
537
  }];
538
538
  readonly refusals: ["NOT_FOUND", "CONTROLLER_BUSY"];
539
539
  };
540
+ readonly 'input-list': {
541
+ readonly description: "Вопросы исполнителей (H02): ID, поручение, вид, состояние, серьёзность и версия запроса — без текста";
542
+ readonly writes: false;
543
+ readonly idempotency: "Только чтение";
544
+ readonly args: [CliArgument, {
545
+ readonly required: false;
546
+ readonly description: "Только вопросы этого поручения";
547
+ readonly name: string;
548
+ readonly value: "path" | "dir" | "id" | "digest" | "number" | "text" | "flag" | "sink";
549
+ readonly multiple?: true;
550
+ }];
551
+ readonly refusals: ["NOT_FOUND"];
552
+ };
553
+ readonly 'input-show': {
554
+ readonly description: "Запрос исполнителя целиком: вопрос, варианты, основание, ответы, цель применения";
555
+ readonly writes: false;
556
+ readonly idempotency: "Только чтение";
557
+ readonly args: [CliArgument, CliArgument];
558
+ readonly refusals: ["NOT_FOUND"];
559
+ };
560
+ readonly 'input-answer': {
561
+ readonly description: "Записать ответ на вопрос исполнителя новой неизменяемой версией; работу ответ не возобновляет — дальше input-context, review-plan, input-target, input-apply";
562
+ readonly writes: true;
563
+ readonly idempotency: "Тот же текст, вариант и вид — прежний ответ без записи; иначе новая версия при совпадении --request-version (CAS); закрытый запрос — NOT_READY";
564
+ readonly args: [CliArgument, CliArgument, {
565
+ readonly name: "--text";
566
+ readonly value: "text";
567
+ readonly required: true;
568
+ readonly description: "Ответ (до 3000 знаков)";
569
+ }, {
570
+ readonly name: "--option";
571
+ readonly value: "id";
572
+ readonly required: false;
573
+ readonly description: "Выбранный вариант (ID)";
574
+ }, {
575
+ readonly name: "--kind";
576
+ readonly value: "text";
577
+ readonly required: false;
578
+ readonly description: "clarification (по умолчанию: продолжение той же работы) или requirement-change (новая ревизия: input-supersede)";
579
+ }, {
580
+ readonly name: "--actor";
581
+ readonly value: "text";
582
+ readonly required: false;
583
+ readonly description: "Кто отвечает: operator (по умолчанию) или lead";
584
+ }, CliArgument];
585
+ readonly refusals: ["NOT_FOUND", "REVISION_CONFLICT", "NOT_READY"];
586
+ };
587
+ readonly 'input-context': {
588
+ readonly description: "Снимок контекста с последним ответом: действующий снимок графа и источник input-answer (вопрос, ответ, manifest с точным digest и версией ответа); сохраняется по digest и пишется в --out, но не активируется";
589
+ readonly writes: true;
590
+ readonly idempotency: "Тот же ответ и тот же действующий снимок — тот же digest и те же байты";
591
+ readonly args: [CliArgument, CliArgument, {
592
+ readonly name: "--out";
593
+ readonly value: "path";
594
+ readonly required: true;
595
+ readonly description: "Файл ContextSnapshot JSON для review-plan --context";
596
+ }];
597
+ readonly refusals: ["NOT_FOUND", "INPUT_REQUIRED"];
598
+ };
599
+ readonly 'input-target': {
600
+ readonly description: "Основание продолжения для снимка с ответом (только чтение): digest, который назовёт input-apply, и причины, по которым применение сейчас откажет";
601
+ readonly writes: false;
602
+ readonly idempotency: "Только чтение";
603
+ readonly args: [CliArgument, CliArgument, CliArgument];
604
+ readonly refusals: ["NOT_FOUND"];
605
+ };
606
+ readonly 'input-apply': {
607
+ readonly description: "Применить ответ одной транзакцией: проверки approve и retry, активация согласования снимка с ответом, запрос applied и обычный повтор поручения; модель не вызывается, пауза и удержания остаются";
608
+ readonly writes: true;
609
+ readonly idempotency: "Повтор того же применения ничего не меняет и второй попытки не создаёт; идущие попытки графа, исчерпанные попытки или бюджет — applied:false, запрос и согласование не меняются (exit 3)";
610
+ readonly args: [CliArgument, CliArgument, {
611
+ readonly name: "--answer";
612
+ readonly value: "digest";
613
+ readonly required: true;
614
+ readonly description: "Digest последнего ответа (input-show)";
615
+ }, CliArgument, CliArgument, {
616
+ readonly name: "--target";
617
+ readonly value: "digest";
618
+ readonly required: true;
619
+ readonly description: "Digest основания из input-target";
620
+ }, {
621
+ readonly name: "--reset";
622
+ readonly value: "flag";
623
+ readonly required: false;
624
+ readonly description: "Сбросить исчерпанный счётчик попыток; требует --reason";
625
+ }, {
626
+ readonly name: "--reason";
627
+ readonly value: "text";
628
+ readonly required: false;
629
+ readonly description: "Причина сброса";
630
+ }];
631
+ readonly refusals: ["NOT_FOUND", "REVISION_CONFLICT", "APPROVAL_STALE", "APPROVAL_REQUIRED", "REVIEW_REJECTED", "INPUT_REQUIRED", "NOT_READY", "ATTEMPTS_EXHAUSTED", "BUDGET_EXHAUSTED"];
632
+ };
633
+ readonly 'input-cancel': {
634
+ readonly description: "Отменить вопрос: работа больше его не ждёт (обычный повтор снова по своим правилам); применённый ответ не отменяется";
635
+ readonly writes: true;
636
+ readonly idempotency: "Повтор для отменённого ничего не меняет";
637
+ readonly args: [CliArgument, CliArgument, CliArgument, {
638
+ readonly name: "--reason";
639
+ readonly value: "text";
640
+ readonly required: true;
641
+ readonly description: "Причина";
642
+ }];
643
+ readonly refusals: ["NOT_FOUND", "REVISION_CONFLICT", "NOT_READY"];
644
+ };
645
+ readonly 'input-supersede': {
646
+ readonly description: "Заменить вопрос преемником: ответ меняет требования — новая ревизия или работа, а не продолжение этой";
647
+ readonly writes: true;
648
+ readonly idempotency: "Повтор для заменённого ничего не меняет";
649
+ readonly args: [CliArgument, CliArgument, CliArgument, {
650
+ readonly name: "--reason";
651
+ readonly value: "text";
652
+ readonly required: true;
653
+ readonly description: "Причина";
654
+ }, {
655
+ readonly name: "--successor";
656
+ readonly value: "id";
657
+ readonly required: true;
658
+ readonly description: "Преемник: новая работа или запрос";
659
+ }];
660
+ readonly refusals: ["NOT_FOUND", "REVISION_CONFLICT", "NOT_READY"];
661
+ };
540
662
  };
541
663
  export type CliCommand = keyof typeof cliCommands;
542
664
  export declare const validateDataSchema: z.ZodObject<{
@@ -553,10 +675,10 @@ export declare const attemptViewSchema: z.ZodObject<{
553
675
  attempt: z.ZodNumber;
554
676
  status: z.ZodString;
555
677
  phase: z.ZodEnum<{
556
- ready: "ready";
557
- failed: "failed";
558
678
  cancelled: "cancelled";
559
679
  draft: "draft";
680
+ ready: "ready";
681
+ failed: "failed";
560
682
  running: "running";
561
683
  verifying: "verifying";
562
684
  reviewing: "reviewing";
@@ -602,8 +724,8 @@ export declare const attemptViewSchema: z.ZodObject<{
602
724
  activity: z.ZodOptional<z.ZodObject<{
603
725
  kind: z.ZodEnum<{
604
726
  gate: "gate";
605
- command: "command";
606
727
  agent: "agent";
728
+ command: "command";
607
729
  step: "step";
608
730
  }>;
609
731
  label: z.ZodString;
@@ -622,8 +744,8 @@ export declare const attemptViewSchema: z.ZodObject<{
622
744
  export declare const queueViewSchema: z.ZodObject<{
623
745
  paused: z.ZodBoolean;
624
746
  reason: z.ZodOptional<z.ZodEnum<{
625
- runtime: "runtime";
626
747
  operator: "operator";
748
+ runtime: "runtime";
627
749
  shutdown: "shutdown";
628
750
  "base-check": "base-check";
629
751
  reconfigure: "reconfigure";
@@ -641,6 +763,7 @@ export declare const queueViewSchema: z.ZodObject<{
641
763
  timeout: "timeout";
642
764
  "provider-auth": "provider-auth";
643
765
  stalled: "stalled";
766
+ "context-exhausted": "context-exhausted";
644
767
  "stale-base": "stale-base";
645
768
  "empty-result": "empty-result";
646
769
  unfinished: "unfinished";
@@ -649,6 +772,7 @@ export declare const queueViewSchema: z.ZodObject<{
649
772
  merge: "merge";
650
773
  budget: "budget";
651
774
  "needs-lead": "needs-lead";
775
+ "needs-input": "needs-input";
652
776
  }>>>;
653
777
  code: z.ZodOptional<z.ZodEnum<{
654
778
  INVALID_INPUT: "INVALID_INPUT";
@@ -674,6 +798,8 @@ export declare const queueViewSchema: z.ZodObject<{
674
798
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
675
799
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
676
800
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
801
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
802
+ INPUT_REQUIRED: "INPUT_REQUIRED";
677
803
  REVISION_CONFLICT: "REVISION_CONFLICT";
678
804
  CANCELLED: "CANCELLED";
679
805
  NOT_FOUND: "NOT_FOUND";
@@ -696,6 +822,7 @@ export declare const queueViewSchema: z.ZodObject<{
696
822
  timeout: "timeout";
697
823
  "provider-auth": "provider-auth";
698
824
  stalled: "stalled";
825
+ "context-exhausted": "context-exhausted";
699
826
  "stale-base": "stale-base";
700
827
  "empty-result": "empty-result";
701
828
  unfinished: "unfinished";
@@ -704,6 +831,7 @@ export declare const queueViewSchema: z.ZodObject<{
704
831
  merge: "merge";
705
832
  budget: "budget";
706
833
  "needs-lead": "needs-lead";
834
+ "needs-input": "needs-input";
707
835
  "runtime-missing": "runtime-missing";
708
836
  "controller-busy": "controller-busy";
709
837
  "operator-pause": "operator-pause";
@@ -711,8 +839,8 @@ export declare const queueViewSchema: z.ZodObject<{
711
839
  "not-ready": "not-ready";
712
840
  }>>;
713
841
  actor: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
714
- controller: "controller";
715
842
  lead: "lead";
843
+ controller: "controller";
716
844
  user: "user";
717
845
  }>>>;
718
846
  action: z.ZodOptional<z.ZodEnum<{
@@ -729,6 +857,8 @@ export declare const queueViewSchema: z.ZodObject<{
729
857
  "resume-queue": "resume-queue";
730
858
  "fix-environment": "fix-environment";
731
859
  "fix-access": "fix-access";
860
+ "answer-input": "answer-input";
861
+ "apply-input": "apply-input";
732
862
  }>>;
733
863
  }, z.core.$strict>;
734
864
  export declare const statusDataSchema: z.ZodObject<{
@@ -736,8 +866,8 @@ export declare const statusDataSchema: z.ZodObject<{
736
866
  control: z.ZodObject<{
737
867
  paused: z.ZodBoolean;
738
868
  pauseReason: z.ZodOptional<z.ZodEnum<{
739
- runtime: "runtime";
740
869
  operator: "operator";
870
+ runtime: "runtime";
741
871
  shutdown: "shutdown";
742
872
  "base-check": "base-check";
743
873
  reconfigure: "reconfigure";
@@ -753,6 +883,7 @@ export declare const statusDataSchema: z.ZodObject<{
753
883
  timeout: "timeout";
754
884
  "provider-auth": "provider-auth";
755
885
  stalled: "stalled";
886
+ "context-exhausted": "context-exhausted";
756
887
  "stale-base": "stale-base";
757
888
  "empty-result": "empty-result";
758
889
  unfinished: "unfinished";
@@ -761,6 +892,7 @@ export declare const statusDataSchema: z.ZodObject<{
761
892
  merge: "merge";
762
893
  budget: "budget";
763
894
  "needs-lead": "needs-lead";
895
+ "needs-input": "needs-input";
764
896
  }>>>;
765
897
  waits: z.ZodOptional<z.ZodArray<z.ZodObject<{
766
898
  kind: z.ZodEnum<{
@@ -805,10 +937,10 @@ export declare const statusDataSchema: z.ZodObject<{
805
937
  id: z.ZodString;
806
938
  graphId: z.ZodString;
807
939
  status: z.ZodEnum<{
808
- ready: "ready";
809
- failed: "failed";
810
940
  cancelled: "cancelled";
811
941
  draft: "draft";
942
+ ready: "ready";
943
+ failed: "failed";
812
944
  running: "running";
813
945
  verifying: "verifying";
814
946
  reviewing: "reviewing";
@@ -822,6 +954,19 @@ export declare const statusDataSchema: z.ZodObject<{
822
954
  quiet: "quiet";
823
955
  }>>;
824
956
  resultSha: z.ZodOptional<z.ZodString>;
957
+ input: z.ZodOptional<z.ZodObject<{
958
+ requestId: z.ZodString;
959
+ state: z.ZodEnum<{
960
+ "awaiting-answer": "awaiting-answer";
961
+ "answered-not-applied": "answered-not-applied";
962
+ "applied-awaiting-claim": "applied-awaiting-claim";
963
+ delivered: "delivered";
964
+ "carry-stale": "carry-stale";
965
+ }>;
966
+ version: z.ZodNumber;
967
+ severity: z.ZodNumber;
968
+ }, z.core.$strict>>;
969
+ followUps: z.ZodOptional<z.ZodNumber>;
825
970
  blockers: z.ZodArray<z.ZodObject<{
826
971
  code: z.ZodEnum<{
827
972
  INVALID_INPUT: "INVALID_INPUT";
@@ -847,6 +992,8 @@ export declare const statusDataSchema: z.ZodObject<{
847
992
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
848
993
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
849
994
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
995
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
996
+ INPUT_REQUIRED: "INPUT_REQUIRED";
850
997
  REVISION_CONFLICT: "REVISION_CONFLICT";
851
998
  CANCELLED: "CANCELLED";
852
999
  NOT_FOUND: "NOT_FOUND";
@@ -904,8 +1051,8 @@ export declare const statusDataSchema: z.ZodObject<{
904
1051
  queue: z.ZodObject<{
905
1052
  paused: z.ZodBoolean;
906
1053
  reason: z.ZodOptional<z.ZodEnum<{
907
- runtime: "runtime";
908
1054
  operator: "operator";
1055
+ runtime: "runtime";
909
1056
  shutdown: "shutdown";
910
1057
  "base-check": "base-check";
911
1058
  reconfigure: "reconfigure";
@@ -923,6 +1070,7 @@ export declare const statusDataSchema: z.ZodObject<{
923
1070
  timeout: "timeout";
924
1071
  "provider-auth": "provider-auth";
925
1072
  stalled: "stalled";
1073
+ "context-exhausted": "context-exhausted";
926
1074
  "stale-base": "stale-base";
927
1075
  "empty-result": "empty-result";
928
1076
  unfinished: "unfinished";
@@ -931,6 +1079,7 @@ export declare const statusDataSchema: z.ZodObject<{
931
1079
  merge: "merge";
932
1080
  budget: "budget";
933
1081
  "needs-lead": "needs-lead";
1082
+ "needs-input": "needs-input";
934
1083
  }>>>;
935
1084
  code: z.ZodOptional<z.ZodEnum<{
936
1085
  INVALID_INPUT: "INVALID_INPUT";
@@ -956,6 +1105,8 @@ export declare const statusDataSchema: z.ZodObject<{
956
1105
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
957
1106
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
958
1107
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
1108
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
1109
+ INPUT_REQUIRED: "INPUT_REQUIRED";
959
1110
  REVISION_CONFLICT: "REVISION_CONFLICT";
960
1111
  CANCELLED: "CANCELLED";
961
1112
  NOT_FOUND: "NOT_FOUND";
@@ -978,6 +1129,7 @@ export declare const statusDataSchema: z.ZodObject<{
978
1129
  timeout: "timeout";
979
1130
  "provider-auth": "provider-auth";
980
1131
  stalled: "stalled";
1132
+ "context-exhausted": "context-exhausted";
981
1133
  "stale-base": "stale-base";
982
1134
  "empty-result": "empty-result";
983
1135
  unfinished: "unfinished";
@@ -986,6 +1138,7 @@ export declare const statusDataSchema: z.ZodObject<{
986
1138
  merge: "merge";
987
1139
  budget: "budget";
988
1140
  "needs-lead": "needs-lead";
1141
+ "needs-input": "needs-input";
989
1142
  "runtime-missing": "runtime-missing";
990
1143
  "controller-busy": "controller-busy";
991
1144
  "operator-pause": "operator-pause";
@@ -993,8 +1146,8 @@ export declare const statusDataSchema: z.ZodObject<{
993
1146
  "not-ready": "not-ready";
994
1147
  }>>;
995
1148
  actor: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
996
- controller: "controller";
997
1149
  lead: "lead";
1150
+ controller: "controller";
998
1151
  user: "user";
999
1152
  }>>>;
1000
1153
  action: z.ZodOptional<z.ZodEnum<{
@@ -1011,6 +1164,8 @@ export declare const statusDataSchema: z.ZodObject<{
1011
1164
  "resume-queue": "resume-queue";
1012
1165
  "fix-environment": "fix-environment";
1013
1166
  "fix-access": "fix-access";
1167
+ "answer-input": "answer-input";
1168
+ "apply-input": "apply-input";
1014
1169
  }>>;
1015
1170
  }, z.core.$strict>;
1016
1171
  attempts: z.ZodArray<z.ZodObject<{
@@ -1019,10 +1174,10 @@ export declare const statusDataSchema: z.ZodObject<{
1019
1174
  attempt: z.ZodNumber;
1020
1175
  status: z.ZodString;
1021
1176
  phase: z.ZodEnum<{
1022
- ready: "ready";
1023
- failed: "failed";
1024
1177
  cancelled: "cancelled";
1025
1178
  draft: "draft";
1179
+ ready: "ready";
1180
+ failed: "failed";
1026
1181
  running: "running";
1027
1182
  verifying: "verifying";
1028
1183
  reviewing: "reviewing";
@@ -1068,8 +1223,8 @@ export declare const statusDataSchema: z.ZodObject<{
1068
1223
  activity: z.ZodOptional<z.ZodObject<{
1069
1224
  kind: z.ZodEnum<{
1070
1225
  gate: "gate";
1071
- command: "command";
1072
1226
  agent: "agent";
1227
+ command: "command";
1073
1228
  step: "step";
1074
1229
  }>;
1075
1230
  label: z.ZodString;
@@ -1091,7 +1246,7 @@ export declare const eventsDataSchema: z.ZodObject<{
1091
1246
  workId: z.ZodOptional<z.ZodString>;
1092
1247
  runId: z.ZodOptional<z.ZodString>;
1093
1248
  attempt: z.ZodOptional<z.ZodNumber>;
1094
- type: z.ZodLiteral<"graph.registered" | "graph.reviewed" | "graph.approved" | "work.ready" | "work.held" | "attempt.claimed" | "attempt.phase" | "attempt.gate" | "attempt.review" | "attempt.stage" | "attempt.liveness" | "attempt.failed" | "attempt.diagnosed" | "attempt.expired" | "attempt.cancelled" | "attempt.recovered" | "work.accepted" | "work.retried" | "work.cancelled" | "work.blocked" | "control.paused" | "control.resumed" | "controller.acquired" | "base.moved" | "controller.released" | "budget.blocked" | "corpus.adopted" | "work.recovery" | "joint.started" | "joint.liveness" | "joint.finished" | "policy.applied" | "policy.reconfigure" | "delivery.pending" | "delivery.delivered" | "delivery.failed" | "delivery.conflict" | "delivery.uncertain">;
1249
+ type: z.ZodLiteral<"graph.registered" | "graph.reviewed" | "graph.approved" | "work.ready" | "work.held" | "attempt.claimed" | "attempt.phase" | "attempt.gate" | "attempt.review" | "attempt.stage" | "attempt.liveness" | "attempt.failed" | "attempt.diagnosed" | "attempt.expired" | "attempt.cancelled" | "attempt.recovered" | "work.accepted" | "work.retried" | "work.cancelled" | "work.blocked" | "control.paused" | "control.resumed" | "controller.acquired" | "base.moved" | "controller.released" | "budget.blocked" | "corpus.adopted" | "work.recovery" | "joint.started" | "joint.liveness" | "joint.finished" | "policy.applied" | "policy.reconfigure" | "input.requested" | "input.answered" | "input.applied" | "input.closed" | "input.stale" | "input.delivered" | "attempt.assumptions" | "delivery.pending" | "delivery.delivered" | "delivery.failed" | "delivery.conflict" | "delivery.uncertain">;
1095
1250
  payload: z.ZodObject<{
1096
1251
  digest: z.ZodString;
1097
1252
  orders: z.ZodNumber;
@@ -1102,8 +1257,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1102
1257
  }, z.core.$strict>;
1103
1258
  }, z.core.$strict> | z.ZodObject<{
1104
1259
  kind: z.ZodEnum<{
1105
- plan: "plan";
1106
1260
  contract: "contract";
1261
+ plan: "plan";
1107
1262
  }>;
1108
1263
  subject: z.ZodString;
1109
1264
  digest: z.ZodString;
@@ -1113,8 +1268,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1113
1268
  }, z.core.$strict> | z.ZodObject<{
1114
1269
  digest: z.ZodString;
1115
1270
  actor: z.ZodEnum<{
1116
- agent: "agent";
1117
1271
  operator: "operator";
1272
+ agent: "agent";
1118
1273
  }>;
1119
1274
  }, z.core.$strict> | z.ZodObject<{
1120
1275
  orderDigest: z.ZodString;
@@ -1138,10 +1293,10 @@ export declare const eventsDataSchema: z.ZodObject<{
1138
1293
  engineVersion: z.ZodString;
1139
1294
  }, z.core.$strict> | z.ZodObject<{
1140
1295
  phase: z.ZodEnum<{
1141
- ready: "ready";
1142
- failed: "failed";
1143
1296
  cancelled: "cancelled";
1144
1297
  draft: "draft";
1298
+ ready: "ready";
1299
+ failed: "failed";
1145
1300
  running: "running";
1146
1301
  verifying: "verifying";
1147
1302
  reviewing: "reviewing";
@@ -1210,8 +1365,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1210
1365
  activity: z.ZodOptional<z.ZodObject<{
1211
1366
  kind: z.ZodEnum<{
1212
1367
  gate: "gate";
1213
- command: "command";
1214
1368
  agent: "agent";
1369
+ command: "command";
1215
1370
  step: "step";
1216
1371
  }>;
1217
1372
  label: z.ZodString;
@@ -1242,6 +1397,7 @@ export declare const eventsDataSchema: z.ZodObject<{
1242
1397
  timeout: "timeout";
1243
1398
  "provider-auth": "provider-auth";
1244
1399
  stalled: "stalled";
1400
+ "context-exhausted": "context-exhausted";
1245
1401
  "stale-base": "stale-base";
1246
1402
  "empty-result": "empty-result";
1247
1403
  unfinished: "unfinished";
@@ -1250,6 +1406,7 @@ export declare const eventsDataSchema: z.ZodObject<{
1250
1406
  merge: "merge";
1251
1407
  budget: "budget";
1252
1408
  "needs-lead": "needs-lead";
1409
+ "needs-input": "needs-input";
1253
1410
  }>;
1254
1411
  message: z.ZodString;
1255
1412
  blocked: z.ZodBoolean;
@@ -1263,6 +1420,7 @@ export declare const eventsDataSchema: z.ZodObject<{
1263
1420
  timeout: "timeout";
1264
1421
  "provider-auth": "provider-auth";
1265
1422
  stalled: "stalled";
1423
+ "context-exhausted": "context-exhausted";
1266
1424
  "stale-base": "stale-base";
1267
1425
  "empty-result": "empty-result";
1268
1426
  unfinished: "unfinished";
@@ -1271,6 +1429,7 @@ export declare const eventsDataSchema: z.ZodObject<{
1271
1429
  merge: "merge";
1272
1430
  budget: "budget";
1273
1431
  "needs-lead": "needs-lead";
1432
+ "needs-input": "needs-input";
1274
1433
  }>;
1275
1434
  cause: z.ZodEnum<{
1276
1435
  preflight: "preflight";
@@ -1303,8 +1462,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1303
1462
  }, z.core.$strict> | z.ZodObject<{
1304
1463
  by: z.ZodEnum<{
1305
1464
  operator: "operator";
1306
- recovery: "recovery";
1307
1465
  host: "host";
1466
+ recovery: "recovery";
1308
1467
  }>;
1309
1468
  reset: z.ZodBoolean;
1310
1469
  spent: z.ZodOptional<z.ZodNumber>;
@@ -1312,8 +1471,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1312
1471
  }, z.core.$strict> | z.ZodObject<{
1313
1472
  by: z.ZodEnum<{
1314
1473
  operator: "operator";
1315
- graph: "graph";
1316
1474
  host: "host";
1475
+ graph: "graph";
1317
1476
  }>;
1318
1477
  hadAttempt: z.ZodBoolean;
1319
1478
  }, z.core.$strict> | z.ZodObject<{
@@ -1321,8 +1480,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1321
1480
  message: z.ZodString;
1322
1481
  }, z.core.$strict> | z.ZodObject<{
1323
1482
  reason: z.ZodEnum<{
1324
- runtime: "runtime";
1325
1483
  operator: "operator";
1484
+ runtime: "runtime";
1326
1485
  shutdown: "shutdown";
1327
1486
  "base-check": "base-check";
1328
1487
  reconfigure: "reconfigure";
@@ -1336,6 +1495,7 @@ export declare const eventsDataSchema: z.ZodObject<{
1336
1495
  timeout: "timeout";
1337
1496
  "provider-auth": "provider-auth";
1338
1497
  stalled: "stalled";
1498
+ "context-exhausted": "context-exhausted";
1339
1499
  "stale-base": "stale-base";
1340
1500
  "empty-result": "empty-result";
1341
1501
  unfinished: "unfinished";
@@ -1344,11 +1504,12 @@ export declare const eventsDataSchema: z.ZodObject<{
1344
1504
  merge: "merge";
1345
1505
  budget: "budget";
1346
1506
  "needs-lead": "needs-lead";
1507
+ "needs-input": "needs-input";
1347
1508
  }>>>;
1348
1509
  }, z.core.$strict> | z.ZodObject<{
1349
1510
  reason: z.ZodEnum<{
1350
- runtime: "runtime";
1351
1511
  operator: "operator";
1512
+ runtime: "runtime";
1352
1513
  shutdown: "shutdown";
1353
1514
  "base-check": "base-check";
1354
1515
  reconfigure: "reconfigure";
@@ -1358,8 +1519,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1358
1519
  }, z.core.$strict> | z.ZodObject<{
1359
1520
  by: z.ZodEnum<{
1360
1521
  operator: "operator";
1361
- controller: "controller";
1362
1522
  host: "host";
1523
+ controller: "controller";
1363
1524
  }>;
1364
1525
  }, z.core.$strict> | z.ZodObject<{
1365
1526
  owner: z.ZodString;
@@ -1419,8 +1580,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1419
1580
  activity: z.ZodOptional<z.ZodObject<{
1420
1581
  kind: z.ZodEnum<{
1421
1582
  gate: "gate";
1422
- command: "command";
1423
1583
  agent: "agent";
1584
+ command: "command";
1424
1585
  step: "step";
1425
1586
  }>;
1426
1587
  label: z.ZodString;
@@ -1464,6 +1625,76 @@ export declare const eventsDataSchema: z.ZodObject<{
1464
1625
  cleared: "cleared";
1465
1626
  }>;
1466
1627
  error: z.ZodOptional<z.ZodString>;
1628
+ }, z.core.$strict> | z.ZodObject<{
1629
+ requestId: z.ZodString;
1630
+ kind: z.ZodEnum<{
1631
+ question: "question";
1632
+ "follow-up": "follow-up";
1633
+ }>;
1634
+ blocking: z.ZodBoolean;
1635
+ lifecycle: z.ZodEnum<{
1636
+ pending: "pending";
1637
+ cancelled: "cancelled";
1638
+ }>;
1639
+ effectiveSeverity: z.ZodNumber;
1640
+ floors: z.ZodArray<z.ZodEnum<{
1641
+ declared: "declared";
1642
+ "critical-path": "critical-path";
1643
+ }>>;
1644
+ criticalHits: z.ZodNumber;
1645
+ questionDigest: z.ZodString;
1646
+ draftDigest: z.ZodNullable<z.ZodString>;
1647
+ }, z.core.$strict> | z.ZodObject<{
1648
+ requestId: z.ZodString;
1649
+ revision: z.ZodNumber;
1650
+ answerDigest: z.ZodString;
1651
+ kind: z.ZodEnum<{
1652
+ clarification: "clarification";
1653
+ "requirement-change": "requirement-change";
1654
+ }>;
1655
+ actor: z.ZodEnum<{
1656
+ operator: "operator";
1657
+ lead: "lead";
1658
+ host: "host";
1659
+ }>;
1660
+ }, z.core.$strict> | z.ZodObject<{
1661
+ requestId: z.ZodString;
1662
+ answerDigest: z.ZodString;
1663
+ targetDigest: z.ZodString;
1664
+ contextDigest: z.ZodNullable<z.ZodString>;
1665
+ retried: z.ZodBoolean;
1666
+ }, z.core.$strict> | z.ZodObject<{
1667
+ requestId: z.ZodString;
1668
+ lifecycle: z.ZodEnum<{
1669
+ cancelled: "cancelled";
1670
+ superseded: "superseded";
1671
+ }>;
1672
+ by: z.ZodEnum<{
1673
+ operator: "operator";
1674
+ lead: "lead";
1675
+ host: "host";
1676
+ controller: "controller";
1677
+ }>;
1678
+ successor: z.ZodOptional<z.ZodString>;
1679
+ }, z.core.$strict> | z.ZodObject<{
1680
+ requestId: z.ZodString;
1681
+ targetDigest: z.ZodString;
1682
+ reason: z.ZodEnum<{
1683
+ context: "context";
1684
+ graph: "graph";
1685
+ order: "order";
1686
+ policy: "policy";
1687
+ }>;
1688
+ }, z.core.$strict> | z.ZodObject<{
1689
+ requestId: z.ZodString;
1690
+ answerDigest: z.ZodString;
1691
+ callId: z.ZodString;
1692
+ }, z.core.$strict> | z.ZodObject<{
1693
+ count: z.ZodNumber;
1694
+ maxSeverity: z.ZodNumber;
1695
+ floors: z.ZodNumber;
1696
+ followUps: z.ZodNumber;
1697
+ digest: z.ZodString;
1467
1698
  }, z.core.$strict> | z.ZodObject<{
1468
1699
  sink: z.ZodString;
1469
1700
  key: z.ZodString;
@@ -1503,7 +1734,7 @@ export declare const eventsDataSchema: z.ZodObject<{
1503
1734
  workId: z.ZodOptional<z.ZodString>;
1504
1735
  runId: z.ZodOptional<z.ZodString>;
1505
1736
  attempt: z.ZodOptional<z.ZodNumber>;
1506
- type: z.ZodLiteral<"graph.registered" | "graph.reviewed" | "graph.approved" | "work.ready" | "work.held" | "attempt.claimed" | "attempt.phase" | "attempt.gate" | "attempt.review" | "attempt.stage" | "attempt.liveness" | "attempt.failed" | "attempt.diagnosed" | "attempt.expired" | "attempt.cancelled" | "attempt.recovered" | "work.accepted" | "work.retried" | "work.cancelled" | "work.blocked" | "control.paused" | "control.resumed" | "controller.acquired" | "base.moved" | "controller.released" | "budget.blocked" | "corpus.adopted" | "work.recovery" | "joint.started" | "joint.liveness" | "joint.finished" | "policy.applied" | "policy.reconfigure" | "delivery.pending" | "delivery.delivered" | "delivery.failed" | "delivery.conflict" | "delivery.uncertain">;
1737
+ type: z.ZodLiteral<"graph.registered" | "graph.reviewed" | "graph.approved" | "work.ready" | "work.held" | "attempt.claimed" | "attempt.phase" | "attempt.gate" | "attempt.review" | "attempt.stage" | "attempt.liveness" | "attempt.failed" | "attempt.diagnosed" | "attempt.expired" | "attempt.cancelled" | "attempt.recovered" | "work.accepted" | "work.retried" | "work.cancelled" | "work.blocked" | "control.paused" | "control.resumed" | "controller.acquired" | "base.moved" | "controller.released" | "budget.blocked" | "corpus.adopted" | "work.recovery" | "joint.started" | "joint.liveness" | "joint.finished" | "policy.applied" | "policy.reconfigure" | "input.requested" | "input.answered" | "input.applied" | "input.closed" | "input.stale" | "input.delivered" | "attempt.assumptions" | "delivery.pending" | "delivery.delivered" | "delivery.failed" | "delivery.conflict" | "delivery.uncertain">;
1507
1738
  payload: z.ZodObject<{
1508
1739
  digest: z.ZodString;
1509
1740
  orders: z.ZodNumber;
@@ -1514,8 +1745,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1514
1745
  }, z.core.$strict>;
1515
1746
  }, z.core.$strict> | z.ZodObject<{
1516
1747
  kind: z.ZodEnum<{
1517
- plan: "plan";
1518
1748
  contract: "contract";
1749
+ plan: "plan";
1519
1750
  }>;
1520
1751
  subject: z.ZodString;
1521
1752
  digest: z.ZodString;
@@ -1525,8 +1756,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1525
1756
  }, z.core.$strict> | z.ZodObject<{
1526
1757
  digest: z.ZodString;
1527
1758
  actor: z.ZodEnum<{
1528
- agent: "agent";
1529
1759
  operator: "operator";
1760
+ agent: "agent";
1530
1761
  }>;
1531
1762
  }, z.core.$strict> | z.ZodObject<{
1532
1763
  orderDigest: z.ZodString;
@@ -1550,10 +1781,10 @@ export declare const eventsDataSchema: z.ZodObject<{
1550
1781
  engineVersion: z.ZodString;
1551
1782
  }, z.core.$strict> | z.ZodObject<{
1552
1783
  phase: z.ZodEnum<{
1553
- ready: "ready";
1554
- failed: "failed";
1555
1784
  cancelled: "cancelled";
1556
1785
  draft: "draft";
1786
+ ready: "ready";
1787
+ failed: "failed";
1557
1788
  running: "running";
1558
1789
  verifying: "verifying";
1559
1790
  reviewing: "reviewing";
@@ -1622,8 +1853,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1622
1853
  activity: z.ZodOptional<z.ZodObject<{
1623
1854
  kind: z.ZodEnum<{
1624
1855
  gate: "gate";
1625
- command: "command";
1626
1856
  agent: "agent";
1857
+ command: "command";
1627
1858
  step: "step";
1628
1859
  }>;
1629
1860
  label: z.ZodString;
@@ -1654,6 +1885,7 @@ export declare const eventsDataSchema: z.ZodObject<{
1654
1885
  timeout: "timeout";
1655
1886
  "provider-auth": "provider-auth";
1656
1887
  stalled: "stalled";
1888
+ "context-exhausted": "context-exhausted";
1657
1889
  "stale-base": "stale-base";
1658
1890
  "empty-result": "empty-result";
1659
1891
  unfinished: "unfinished";
@@ -1662,6 +1894,7 @@ export declare const eventsDataSchema: z.ZodObject<{
1662
1894
  merge: "merge";
1663
1895
  budget: "budget";
1664
1896
  "needs-lead": "needs-lead";
1897
+ "needs-input": "needs-input";
1665
1898
  }>;
1666
1899
  message: z.ZodString;
1667
1900
  blocked: z.ZodBoolean;
@@ -1675,6 +1908,7 @@ export declare const eventsDataSchema: z.ZodObject<{
1675
1908
  timeout: "timeout";
1676
1909
  "provider-auth": "provider-auth";
1677
1910
  stalled: "stalled";
1911
+ "context-exhausted": "context-exhausted";
1678
1912
  "stale-base": "stale-base";
1679
1913
  "empty-result": "empty-result";
1680
1914
  unfinished: "unfinished";
@@ -1683,6 +1917,7 @@ export declare const eventsDataSchema: z.ZodObject<{
1683
1917
  merge: "merge";
1684
1918
  budget: "budget";
1685
1919
  "needs-lead": "needs-lead";
1920
+ "needs-input": "needs-input";
1686
1921
  }>;
1687
1922
  cause: z.ZodEnum<{
1688
1923
  preflight: "preflight";
@@ -1715,8 +1950,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1715
1950
  }, z.core.$strict> | z.ZodObject<{
1716
1951
  by: z.ZodEnum<{
1717
1952
  operator: "operator";
1718
- recovery: "recovery";
1719
1953
  host: "host";
1954
+ recovery: "recovery";
1720
1955
  }>;
1721
1956
  reset: z.ZodBoolean;
1722
1957
  spent: z.ZodOptional<z.ZodNumber>;
@@ -1724,8 +1959,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1724
1959
  }, z.core.$strict> | z.ZodObject<{
1725
1960
  by: z.ZodEnum<{
1726
1961
  operator: "operator";
1727
- graph: "graph";
1728
1962
  host: "host";
1963
+ graph: "graph";
1729
1964
  }>;
1730
1965
  hadAttempt: z.ZodBoolean;
1731
1966
  }, z.core.$strict> | z.ZodObject<{
@@ -1733,8 +1968,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1733
1968
  message: z.ZodString;
1734
1969
  }, z.core.$strict> | z.ZodObject<{
1735
1970
  reason: z.ZodEnum<{
1736
- runtime: "runtime";
1737
1971
  operator: "operator";
1972
+ runtime: "runtime";
1738
1973
  shutdown: "shutdown";
1739
1974
  "base-check": "base-check";
1740
1975
  reconfigure: "reconfigure";
@@ -1748,6 +1983,7 @@ export declare const eventsDataSchema: z.ZodObject<{
1748
1983
  timeout: "timeout";
1749
1984
  "provider-auth": "provider-auth";
1750
1985
  stalled: "stalled";
1986
+ "context-exhausted": "context-exhausted";
1751
1987
  "stale-base": "stale-base";
1752
1988
  "empty-result": "empty-result";
1753
1989
  unfinished: "unfinished";
@@ -1756,11 +1992,12 @@ export declare const eventsDataSchema: z.ZodObject<{
1756
1992
  merge: "merge";
1757
1993
  budget: "budget";
1758
1994
  "needs-lead": "needs-lead";
1995
+ "needs-input": "needs-input";
1759
1996
  }>>>;
1760
1997
  }, z.core.$strict> | z.ZodObject<{
1761
1998
  reason: z.ZodEnum<{
1762
- runtime: "runtime";
1763
1999
  operator: "operator";
2000
+ runtime: "runtime";
1764
2001
  shutdown: "shutdown";
1765
2002
  "base-check": "base-check";
1766
2003
  reconfigure: "reconfigure";
@@ -1770,8 +2007,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1770
2007
  }, z.core.$strict> | z.ZodObject<{
1771
2008
  by: z.ZodEnum<{
1772
2009
  operator: "operator";
1773
- controller: "controller";
1774
2010
  host: "host";
2011
+ controller: "controller";
1775
2012
  }>;
1776
2013
  }, z.core.$strict> | z.ZodObject<{
1777
2014
  owner: z.ZodString;
@@ -1831,8 +2068,8 @@ export declare const eventsDataSchema: z.ZodObject<{
1831
2068
  activity: z.ZodOptional<z.ZodObject<{
1832
2069
  kind: z.ZodEnum<{
1833
2070
  gate: "gate";
1834
- command: "command";
1835
2071
  agent: "agent";
2072
+ command: "command";
1836
2073
  step: "step";
1837
2074
  }>;
1838
2075
  label: z.ZodString;
@@ -1876,6 +2113,76 @@ export declare const eventsDataSchema: z.ZodObject<{
1876
2113
  cleared: "cleared";
1877
2114
  }>;
1878
2115
  error: z.ZodOptional<z.ZodString>;
2116
+ }, z.core.$strict> | z.ZodObject<{
2117
+ requestId: z.ZodString;
2118
+ kind: z.ZodEnum<{
2119
+ question: "question";
2120
+ "follow-up": "follow-up";
2121
+ }>;
2122
+ blocking: z.ZodBoolean;
2123
+ lifecycle: z.ZodEnum<{
2124
+ pending: "pending";
2125
+ cancelled: "cancelled";
2126
+ }>;
2127
+ effectiveSeverity: z.ZodNumber;
2128
+ floors: z.ZodArray<z.ZodEnum<{
2129
+ declared: "declared";
2130
+ "critical-path": "critical-path";
2131
+ }>>;
2132
+ criticalHits: z.ZodNumber;
2133
+ questionDigest: z.ZodString;
2134
+ draftDigest: z.ZodNullable<z.ZodString>;
2135
+ }, z.core.$strict> | z.ZodObject<{
2136
+ requestId: z.ZodString;
2137
+ revision: z.ZodNumber;
2138
+ answerDigest: z.ZodString;
2139
+ kind: z.ZodEnum<{
2140
+ clarification: "clarification";
2141
+ "requirement-change": "requirement-change";
2142
+ }>;
2143
+ actor: z.ZodEnum<{
2144
+ operator: "operator";
2145
+ lead: "lead";
2146
+ host: "host";
2147
+ }>;
2148
+ }, z.core.$strict> | z.ZodObject<{
2149
+ requestId: z.ZodString;
2150
+ answerDigest: z.ZodString;
2151
+ targetDigest: z.ZodString;
2152
+ contextDigest: z.ZodNullable<z.ZodString>;
2153
+ retried: z.ZodBoolean;
2154
+ }, z.core.$strict> | z.ZodObject<{
2155
+ requestId: z.ZodString;
2156
+ lifecycle: z.ZodEnum<{
2157
+ cancelled: "cancelled";
2158
+ superseded: "superseded";
2159
+ }>;
2160
+ by: z.ZodEnum<{
2161
+ operator: "operator";
2162
+ lead: "lead";
2163
+ host: "host";
2164
+ controller: "controller";
2165
+ }>;
2166
+ successor: z.ZodOptional<z.ZodString>;
2167
+ }, z.core.$strict> | z.ZodObject<{
2168
+ requestId: z.ZodString;
2169
+ targetDigest: z.ZodString;
2170
+ reason: z.ZodEnum<{
2171
+ context: "context";
2172
+ graph: "graph";
2173
+ order: "order";
2174
+ policy: "policy";
2175
+ }>;
2176
+ }, z.core.$strict> | z.ZodObject<{
2177
+ requestId: z.ZodString;
2178
+ answerDigest: z.ZodString;
2179
+ callId: z.ZodString;
2180
+ }, z.core.$strict> | z.ZodObject<{
2181
+ count: z.ZodNumber;
2182
+ maxSeverity: z.ZodNumber;
2183
+ floors: z.ZodNumber;
2184
+ followUps: z.ZodNumber;
2185
+ digest: z.ZodString;
1879
2186
  }, z.core.$strict> | z.ZodObject<{
1880
2187
  sink: z.ZodString;
1881
2188
  key: z.ZodString;
@@ -1932,10 +2239,10 @@ export declare const runDataSchema: z.ZodObject<{
1932
2239
  works: z.ZodArray<z.ZodObject<{
1933
2240
  id: z.ZodString;
1934
2241
  status: z.ZodEnum<{
1935
- ready: "ready";
1936
- failed: "failed";
1937
2242
  cancelled: "cancelled";
1938
2243
  draft: "draft";
2244
+ ready: "ready";
2245
+ failed: "failed";
1939
2246
  running: "running";
1940
2247
  verifying: "verifying";
1941
2248
  reviewing: "reviewing";
@@ -1969,6 +2276,8 @@ export declare const runDataSchema: z.ZodObject<{
1969
2276
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
1970
2277
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
1971
2278
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
2279
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
2280
+ INPUT_REQUIRED: "INPUT_REQUIRED";
1972
2281
  REVISION_CONFLICT: "REVISION_CONFLICT";
1973
2282
  CANCELLED: "CANCELLED";
1974
2283
  NOT_FOUND: "NOT_FOUND";
@@ -1991,11 +2300,11 @@ export declare const runDataSchema: z.ZodObject<{
1991
2300
  id: z.ZodString;
1992
2301
  stage: z.ZodNumber;
1993
2302
  status: z.ZodEnum<{
2303
+ stale: "stale";
1994
2304
  failed: "failed";
1995
2305
  completed: "completed";
1996
2306
  running: "running";
1997
2307
  queued: "queued";
1998
- stale: "stale";
1999
2308
  }>;
2000
2309
  attempts: z.ZodNumber;
2001
2310
  repairs: z.ZodNumber;
@@ -2012,8 +2321,8 @@ export declare const controlDataSchema: z.ZodObject<{
2012
2321
  control: z.ZodObject<{
2013
2322
  paused: z.ZodBoolean;
2014
2323
  pauseReason: z.ZodOptional<z.ZodEnum<{
2015
- runtime: "runtime";
2016
2324
  operator: "operator";
2325
+ runtime: "runtime";
2017
2326
  shutdown: "shutdown";
2018
2327
  "base-check": "base-check";
2019
2328
  reconfigure: "reconfigure";
@@ -2029,6 +2338,7 @@ export declare const controlDataSchema: z.ZodObject<{
2029
2338
  timeout: "timeout";
2030
2339
  "provider-auth": "provider-auth";
2031
2340
  stalled: "stalled";
2341
+ "context-exhausted": "context-exhausted";
2032
2342
  "stale-base": "stale-base";
2033
2343
  "empty-result": "empty-result";
2034
2344
  unfinished: "unfinished";
@@ -2037,6 +2347,7 @@ export declare const controlDataSchema: z.ZodObject<{
2037
2347
  merge: "merge";
2038
2348
  budget: "budget";
2039
2349
  "needs-lead": "needs-lead";
2350
+ "needs-input": "needs-input";
2040
2351
  }>>>;
2041
2352
  waits: z.ZodOptional<z.ZodArray<z.ZodObject<{
2042
2353
  kind: z.ZodEnum<{
@@ -2067,10 +2378,10 @@ export declare const controlDataSchema: z.ZodObject<{
2067
2378
  export declare const workActionDataSchema: z.ZodObject<{
2068
2379
  workId: z.ZodString;
2069
2380
  status: z.ZodEnum<{
2070
- ready: "ready";
2071
- failed: "failed";
2072
2381
  cancelled: "cancelled";
2073
2382
  draft: "draft";
2383
+ ready: "ready";
2384
+ failed: "failed";
2074
2385
  running: "running";
2075
2386
  verifying: "verifying";
2076
2387
  reviewing: "reviewing";
@@ -2451,8 +2762,8 @@ export declare const sourceStatusDataSchema: z.ZodObject<{
2451
2762
  runId: z.ZodString;
2452
2763
  outcome: z.ZodString;
2453
2764
  status: z.ZodEnum<{
2454
- failed: "failed";
2455
2765
  delivered: "delivered";
2766
+ failed: "failed";
2456
2767
  conflict: "conflict";
2457
2768
  uncertain: "uncertain";
2458
2769
  intent: "intent";
@@ -2499,9 +2810,9 @@ export declare const sourceDeliverDataSchema: z.ZodObject<{
2499
2810
  key: z.ZodString;
2500
2811
  revision: z.ZodString;
2501
2812
  status: z.ZodEnum<{
2502
- failed: "failed";
2503
2813
  pending: "pending";
2504
2814
  delivered: "delivered";
2815
+ failed: "failed";
2505
2816
  conflict: "conflict";
2506
2817
  uncertain: "uncertain";
2507
2818
  }>;
@@ -2526,9 +2837,9 @@ export declare const sourceReconcileDataSchema: z.ZodObject<{
2526
2837
  key: z.ZodString;
2527
2838
  revision: z.ZodString;
2528
2839
  status: z.ZodEnum<{
2529
- failed: "failed";
2530
2840
  pending: "pending";
2531
2841
  delivered: "delivered";
2842
+ failed: "failed";
2532
2843
  conflict: "conflict";
2533
2844
  uncertain: "uncertain";
2534
2845
  }>;
@@ -2743,6 +3054,8 @@ export declare const explainDataSchema: z.ZodObject<{
2743
3054
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
2744
3055
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
2745
3056
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
3057
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
3058
+ INPUT_REQUIRED: "INPUT_REQUIRED";
2746
3059
  REVISION_CONFLICT: "REVISION_CONFLICT";
2747
3060
  CANCELLED: "CANCELLED";
2748
3061
  NOT_FOUND: "NOT_FOUND";
@@ -2765,6 +3078,7 @@ export declare const explainDataSchema: z.ZodObject<{
2765
3078
  timeout: "timeout";
2766
3079
  "provider-auth": "provider-auth";
2767
3080
  stalled: "stalled";
3081
+ "context-exhausted": "context-exhausted";
2768
3082
  "stale-base": "stale-base";
2769
3083
  "empty-result": "empty-result";
2770
3084
  unfinished: "unfinished";
@@ -2773,6 +3087,7 @@ export declare const explainDataSchema: z.ZodObject<{
2773
3087
  merge: "merge";
2774
3088
  budget: "budget";
2775
3089
  "needs-lead": "needs-lead";
3090
+ "needs-input": "needs-input";
2776
3091
  "runtime-missing": "runtime-missing";
2777
3092
  "controller-busy": "controller-busy";
2778
3093
  "operator-pause": "operator-pause";
@@ -2781,16 +3096,16 @@ export declare const explainDataSchema: z.ZodObject<{
2781
3096
  }>;
2782
3097
  phase: z.ZodEnum<{
2783
3098
  gates: "gates";
2784
- preflight: "preflight";
2785
3099
  review: "review";
3100
+ preflight: "preflight";
2786
3101
  integration: "integration";
2787
3102
  delivery: "delivery";
2788
3103
  claim: "claim";
2789
3104
  implementation: "implementation";
2790
3105
  }>;
2791
3106
  actor: z.ZodNullable<z.ZodEnum<{
2792
- controller: "controller";
2793
3107
  lead: "lead";
3108
+ controller: "controller";
2794
3109
  user: "user";
2795
3110
  }>>;
2796
3111
  action: z.ZodEnum<{
@@ -2807,6 +3122,8 @@ export declare const explainDataSchema: z.ZodObject<{
2807
3122
  "resume-queue": "resume-queue";
2808
3123
  "fix-environment": "fix-environment";
2809
3124
  "fix-access": "fix-access";
3125
+ "answer-input": "answer-input";
3126
+ "apply-input": "apply-input";
2810
3127
  }>;
2811
3128
  retryPlanned: z.ZodBoolean;
2812
3129
  message: z.ZodString;
@@ -2824,24 +3141,338 @@ export declare const explainDataSchema: z.ZodObject<{
2824
3141
  runId: z.ZodOptional<z.ZodString>;
2825
3142
  }, z.core.$strict>>;
2826
3143
  }, z.core.$strict>;
2827
- /** Схема `data` каждой команды. */
2828
- export declare const cliDataSchemas: {
2829
- readonly validate: z.ZodObject<{
2830
- graphId: z.ZodString;
2831
- graphDigest: z.ZodString;
2832
- policyDigest: z.ZodString;
2833
- contextDigest: z.ZodOptional<z.ZodString>;
2834
- orders: z.ZodNumber;
2835
- }, z.core.$strict>;
2836
- readonly 'review-plan': z.ZodObject<{
3144
+ export declare const inputListDataSchema: z.ZodObject<{
3145
+ requests: z.ZodArray<z.ZodObject<{
2837
3146
  id: z.ZodString;
3147
+ workId: z.ZodString;
2838
3148
  kind: z.ZodEnum<{
2839
- plan: "plan";
2840
- contract: "contract";
3149
+ question: "question";
3150
+ "follow-up": "follow-up";
2841
3151
  }>;
2842
- subject: z.ZodString;
2843
- digest: z.ZodString;
2844
- round: z.ZodNumber;
3152
+ blocking: z.ZodBoolean;
3153
+ lifecycle: z.ZodEnum<{
3154
+ pending: "pending";
3155
+ answered: "answered";
3156
+ applied: "applied";
3157
+ cancelled: "cancelled";
3158
+ superseded: "superseded";
3159
+ }>;
3160
+ state: z.ZodOptional<z.ZodEnum<{
3161
+ "awaiting-answer": "awaiting-answer";
3162
+ "answered-not-applied": "answered-not-applied";
3163
+ "applied-awaiting-claim": "applied-awaiting-claim";
3164
+ delivered: "delivered";
3165
+ "carry-stale": "carry-stale";
3166
+ }>>;
3167
+ severity: z.ZodNumber;
3168
+ version: z.ZodNumber;
3169
+ answers: z.ZodNumber;
3170
+ createdAt: z.ZodISODateTime;
3171
+ }, z.core.$strict>>;
3172
+ }, z.core.$strict>;
3173
+ export declare const inputAnswerDataSchema: z.ZodObject<{
3174
+ request: z.ZodObject<{
3175
+ id: z.ZodString;
3176
+ kind: z.ZodEnum<{
3177
+ question: "question";
3178
+ "follow-up": "follow-up";
3179
+ }>;
3180
+ blocking: z.ZodBoolean;
3181
+ workId: z.ZodString;
3182
+ graphId: z.ZodString;
3183
+ runId: z.ZodString;
3184
+ attempt: z.ZodNumber;
3185
+ callId: z.ZodNullable<z.ZodString>;
3186
+ question: z.ZodObject<{
3187
+ question: z.ZodString;
3188
+ options: z.ZodArray<z.ZodObject<{
3189
+ id: z.ZodString;
3190
+ label: z.ZodString;
3191
+ consequence: z.ZodNullable<z.ZodString>;
3192
+ }, z.core.$strict>>;
3193
+ recommended: z.ZodNullable<z.ZodString>;
3194
+ severity: z.ZodNumber;
3195
+ rationale: z.ZodString;
3196
+ affects: z.ZodArray<z.ZodEnum<{
3197
+ acceptance: "acceptance";
3198
+ contract: "contract";
3199
+ product: "product";
3200
+ api: "api";
3201
+ migration: "migration";
3202
+ }>>;
3203
+ }, z.core.$strict>;
3204
+ effectiveSeverity: z.ZodNumber;
3205
+ floors: z.ZodArray<z.ZodEnum<{
3206
+ declared: "declared";
3207
+ "critical-path": "critical-path";
3208
+ }>>;
3209
+ criticalHits: z.ZodArray<z.ZodString>;
3210
+ draft: z.ZodNullable<z.ZodObject<{
3211
+ digest: z.ZodString;
3212
+ files: z.ZodArray<z.ZodString>;
3213
+ }, z.core.$strict>>;
3214
+ createdAt: z.ZodISODateTime;
3215
+ originBasis: z.ZodObject<{
3216
+ source: z.ZodObject<{
3217
+ connector: z.ZodString;
3218
+ ref: z.ZodString;
3219
+ revision: z.ZodString;
3220
+ }, z.core.$strict>;
3221
+ graphId: z.ZodString;
3222
+ graphDigest: z.ZodString;
3223
+ orderDigest: z.ZodString;
3224
+ policyDigest: z.ZodString;
3225
+ contextDigest: z.ZodNullable<z.ZodString>;
3226
+ baseSha: z.ZodNullable<z.ZodString>;
3227
+ inputPolicy: z.ZodObject<{
3228
+ threshold: z.ZodDefault<z.ZodNumber>;
3229
+ criticalPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
3230
+ }, z.core.$strict>;
3231
+ contentDigest: z.ZodOptional<z.ZodString>;
3232
+ }, z.core.$strict>;
3233
+ lifecycle: z.ZodEnum<{
3234
+ pending: "pending";
3235
+ answered: "answered";
3236
+ applied: "applied";
3237
+ cancelled: "cancelled";
3238
+ superseded: "superseded";
3239
+ }>;
3240
+ answers: z.ZodArray<z.ZodObject<{
3241
+ revision: z.ZodNumber;
3242
+ text: z.ZodString;
3243
+ optionId: z.ZodNullable<z.ZodString>;
3244
+ kind: z.ZodEnum<{
3245
+ clarification: "clarification";
3246
+ "requirement-change": "requirement-change";
3247
+ }>;
3248
+ actor: z.ZodObject<{
3249
+ kind: z.ZodEnum<{
3250
+ operator: "operator";
3251
+ lead: "lead";
3252
+ host: "host";
3253
+ }>;
3254
+ id: z.ZodOptional<z.ZodString>;
3255
+ }, z.core.$strict>;
3256
+ messageRef: z.ZodOptional<z.ZodString>;
3257
+ digest: z.ZodString;
3258
+ at: z.ZodISODateTime;
3259
+ }, z.core.$strict>>;
3260
+ target: z.ZodOptional<z.ZodObject<{
3261
+ originDigest: z.ZodString;
3262
+ answerDigest: z.ZodString;
3263
+ graphDigest: z.ZodString;
3264
+ orderDigest: z.ZodString;
3265
+ contentDigest: z.ZodOptional<z.ZodString>;
3266
+ policyDigest: z.ZodString;
3267
+ contextDigest: z.ZodNullable<z.ZodString>;
3268
+ review: z.ZodNullable<z.ZodObject<{
3269
+ round: z.ZodNumber;
3270
+ approved: z.ZodBoolean;
3271
+ reviewerBinding: z.ZodNullable<z.ZodString>;
3272
+ }, z.core.$strict>>;
3273
+ actor: z.ZodEnum<{
3274
+ operator: "operator";
3275
+ agent: "agent";
3276
+ }>;
3277
+ digest: z.ZodString;
3278
+ }, z.core.$strict>>;
3279
+ delivered: z.ZodOptional<z.ZodObject<{
3280
+ runId: z.ZodString;
3281
+ callId: z.ZodString;
3282
+ at: z.ZodISODateTime;
3283
+ }, z.core.$strict>>;
3284
+ closed: z.ZodOptional<z.ZodObject<{
3285
+ at: z.ZodISODateTime;
3286
+ by: z.ZodEnum<{
3287
+ operator: "operator";
3288
+ lead: "lead";
3289
+ host: "host";
3290
+ controller: "controller";
3291
+ }>;
3292
+ reason: z.ZodString;
3293
+ successor: z.ZodOptional<z.ZodString>;
3294
+ carry: z.ZodOptional<z.ZodBoolean>;
3295
+ previous: z.ZodOptional<z.ZodObject<{
3296
+ at: z.ZodISODateTime;
3297
+ by: z.ZodEnum<{
3298
+ operator: "operator";
3299
+ lead: "lead";
3300
+ host: "host";
3301
+ controller: "controller";
3302
+ }>;
3303
+ reason: z.ZodString;
3304
+ successor: z.ZodOptional<z.ZodString>;
3305
+ carry: z.ZodOptional<z.ZodBoolean>;
3306
+ }, z.core.$strict>>;
3307
+ }, z.core.$strict>>;
3308
+ stale: z.ZodOptional<z.ZodObject<{
3309
+ targetDigest: z.ZodString;
3310
+ reason: z.ZodEnum<{
3311
+ context: "context";
3312
+ graph: "graph";
3313
+ order: "order";
3314
+ policy: "policy";
3315
+ }>;
3316
+ at: z.ZodISODateTime;
3317
+ }, z.core.$strict>>;
3318
+ normalized: z.ZodOptional<z.ZodArray<z.ZodString>>;
3319
+ version: z.ZodNumber;
3320
+ }, z.core.$strict>;
3321
+ answer: z.ZodObject<{
3322
+ revision: z.ZodNumber;
3323
+ text: z.ZodString;
3324
+ optionId: z.ZodNullable<z.ZodString>;
3325
+ kind: z.ZodEnum<{
3326
+ clarification: "clarification";
3327
+ "requirement-change": "requirement-change";
3328
+ }>;
3329
+ actor: z.ZodObject<{
3330
+ kind: z.ZodEnum<{
3331
+ operator: "operator";
3332
+ lead: "lead";
3333
+ host: "host";
3334
+ }>;
3335
+ id: z.ZodOptional<z.ZodString>;
3336
+ }, z.core.$strict>;
3337
+ messageRef: z.ZodOptional<z.ZodString>;
3338
+ digest: z.ZodString;
3339
+ at: z.ZodISODateTime;
3340
+ }, z.core.$strict>;
3341
+ changed: z.ZodBoolean;
3342
+ }, z.core.$strict>;
3343
+ export declare const inputContextDataSchema: z.ZodObject<{
3344
+ requestId: z.ZodString;
3345
+ answerDigest: z.ZodString;
3346
+ digest: z.ZodString;
3347
+ out: z.ZodString;
3348
+ }, z.core.$strict>;
3349
+ export declare const inputTargetDataSchema: z.ZodObject<{
3350
+ requestId: z.ZodString;
3351
+ target: z.ZodOptional<z.ZodObject<{
3352
+ originDigest: z.ZodString;
3353
+ answerDigest: z.ZodString;
3354
+ graphDigest: z.ZodString;
3355
+ orderDigest: z.ZodString;
3356
+ contentDigest: z.ZodOptional<z.ZodString>;
3357
+ policyDigest: z.ZodString;
3358
+ contextDigest: z.ZodNullable<z.ZodString>;
3359
+ review: z.ZodNullable<z.ZodObject<{
3360
+ round: z.ZodNumber;
3361
+ approved: z.ZodBoolean;
3362
+ reviewerBinding: z.ZodNullable<z.ZodString>;
3363
+ }, z.core.$strict>>;
3364
+ actor: z.ZodEnum<{
3365
+ operator: "operator";
3366
+ agent: "agent";
3367
+ }>;
3368
+ digest: z.ZodString;
3369
+ }, z.core.$strict>>;
3370
+ problems: z.ZodArray<z.ZodString>;
3371
+ }, z.core.$strict>;
3372
+ export declare const inputApplyDataSchema: z.ZodObject<{
3373
+ requestId: z.ZodString;
3374
+ applied: z.ZodBoolean;
3375
+ changed: z.ZodBoolean;
3376
+ lifecycle: z.ZodEnum<{
3377
+ pending: "pending";
3378
+ answered: "answered";
3379
+ applied: "applied";
3380
+ cancelled: "cancelled";
3381
+ superseded: "superseded";
3382
+ }>;
3383
+ work: z.ZodOptional<z.ZodObject<{
3384
+ id: z.ZodString;
3385
+ status: z.ZodEnum<{
3386
+ cancelled: "cancelled";
3387
+ draft: "draft";
3388
+ ready: "ready";
3389
+ failed: "failed";
3390
+ running: "running";
3391
+ verifying: "verifying";
3392
+ reviewing: "reviewing";
3393
+ integrating: "integrating";
3394
+ done: "done";
3395
+ }>;
3396
+ attempt: z.ZodNumber;
3397
+ }, z.core.$strict>>;
3398
+ active: z.ZodOptional<z.ZodArray<z.ZodObject<{
3399
+ id: z.ZodString;
3400
+ workId: z.ZodString;
3401
+ }, z.core.$strict>>>;
3402
+ joint: z.ZodOptional<z.ZodLiteral<true>>;
3403
+ blocker: z.ZodOptional<z.ZodObject<{
3404
+ code: z.ZodEnum<{
3405
+ INVALID_INPUT: "INVALID_INPUT";
3406
+ UNSUPPORTED_COMMAND: "UNSUPPORTED_COMMAND";
3407
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
3408
+ GRAPH_CYCLE: "GRAPH_CYCLE";
3409
+ GRAPH_UNKNOWN_DEPENDENCY: "GRAPH_UNKNOWN_DEPENDENCY";
3410
+ GRAPH_DUPLICATE_ID: "GRAPH_DUPLICATE_ID";
3411
+ GATE_UNKNOWN: "GATE_UNKNOWN";
3412
+ GATE_GROUP_CYCLE: "GATE_GROUP_CYCLE";
3413
+ REVIEWER_SAME_VENDOR: "REVIEWER_SAME_VENDOR";
3414
+ REVIEWER_MISSING: "REVIEWER_MISSING";
3415
+ RESPONSE_TOO_LARGE: "RESPONSE_TOO_LARGE";
3416
+ APPROVAL_STALE: "APPROVAL_STALE";
3417
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
3418
+ LEASE_STALE: "LEASE_STALE";
3419
+ CONTROLLER_BUSY: "CONTROLLER_BUSY";
3420
+ PAUSED: "PAUSED";
3421
+ NOT_READY: "NOT_READY";
3422
+ SCOPE_VIOLATION: "SCOPE_VIOLATION";
3423
+ GATE_FAILED: "GATE_FAILED";
3424
+ REVIEW_REJECTED: "REVIEW_REJECTED";
3425
+ BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
3426
+ BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
3427
+ ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
3428
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
3429
+ INPUT_REQUIRED: "INPUT_REQUIRED";
3430
+ REVISION_CONFLICT: "REVISION_CONFLICT";
3431
+ CANCELLED: "CANCELLED";
3432
+ NOT_FOUND: "NOT_FOUND";
3433
+ PATH_CONFLICT: "PATH_CONFLICT";
3434
+ STATE_VERSION_UNSUPPORTED: "STATE_VERSION_UNSUPPORTED";
3435
+ RUNTIME_UNAVAILABLE: "RUNTIME_UNAVAILABLE";
3436
+ REVIEW_PROTOCOL_INVALID: "REVIEW_PROTOCOL_INVALID";
3437
+ SANDBOX_UNAVAILABLE: "SANDBOX_UNAVAILABLE";
3438
+ GIT_FAILED: "GIT_FAILED";
3439
+ STORAGE_FAILED: "STORAGE_FAILED";
3440
+ DELIVERY_FAILED: "DELIVERY_FAILED";
3441
+ INTERNAL: "INTERNAL";
3442
+ }>;
3443
+ message: z.ZodString;
3444
+ }, z.core.$strict>>;
3445
+ }, z.core.$strict>;
3446
+ export declare const inputCloseDataSchema: z.ZodObject<{
3447
+ requestId: z.ZodString;
3448
+ lifecycle: z.ZodEnum<{
3449
+ pending: "pending";
3450
+ answered: "answered";
3451
+ applied: "applied";
3452
+ cancelled: "cancelled";
3453
+ superseded: "superseded";
3454
+ }>;
3455
+ version: z.ZodNumber;
3456
+ changed: z.ZodBoolean;
3457
+ }, z.core.$strict>;
3458
+ /** Схема `data` каждой команды. */
3459
+ export declare const cliDataSchemas: {
3460
+ readonly validate: z.ZodObject<{
3461
+ graphId: z.ZodString;
3462
+ graphDigest: z.ZodString;
3463
+ policyDigest: z.ZodString;
3464
+ contextDigest: z.ZodOptional<z.ZodString>;
3465
+ orders: z.ZodNumber;
3466
+ }, z.core.$strict>;
3467
+ readonly 'review-plan': z.ZodObject<{
3468
+ id: z.ZodString;
3469
+ kind: z.ZodEnum<{
3470
+ contract: "contract";
3471
+ plan: "plan";
3472
+ }>;
3473
+ subject: z.ZodString;
3474
+ digest: z.ZodString;
3475
+ round: z.ZodNumber;
2845
3476
  at: z.ZodISODateTime;
2846
3477
  approved: z.ZodBoolean;
2847
3478
  summary: z.ZodString;
@@ -2871,8 +3502,8 @@ export declare const cliDataSchemas: {
2871
3502
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2872
3503
  line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2873
3504
  status: z.ZodEnum<{
2874
- open: "open";
2875
3505
  closed: "closed";
3506
+ open: "open";
2876
3507
  withdrawn: "withdrawn";
2877
3508
  }>;
2878
3509
  openedIn: z.ZodNumber;
@@ -2884,8 +3515,8 @@ export declare const cliDataSchemas: {
2884
3515
  readonly 'review-contract': z.ZodObject<{
2885
3516
  id: z.ZodString;
2886
3517
  kind: z.ZodEnum<{
2887
- plan: "plan";
2888
3518
  contract: "contract";
3519
+ plan: "plan";
2889
3520
  }>;
2890
3521
  subject: z.ZodString;
2891
3522
  digest: z.ZodString;
@@ -2919,8 +3550,8 @@ export declare const cliDataSchemas: {
2919
3550
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2920
3551
  line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2921
3552
  status: z.ZodEnum<{
2922
- open: "open";
2923
3553
  closed: "closed";
3554
+ open: "open";
2924
3555
  withdrawn: "withdrawn";
2925
3556
  }>;
2926
3557
  openedIn: z.ZodNumber;
@@ -2947,10 +3578,10 @@ export declare const cliDataSchemas: {
2947
3578
  works: z.ZodArray<z.ZodObject<{
2948
3579
  id: z.ZodString;
2949
3580
  status: z.ZodEnum<{
2950
- ready: "ready";
2951
- failed: "failed";
2952
3581
  cancelled: "cancelled";
2953
3582
  draft: "draft";
3583
+ ready: "ready";
3584
+ failed: "failed";
2954
3585
  running: "running";
2955
3586
  verifying: "verifying";
2956
3587
  reviewing: "reviewing";
@@ -2984,6 +3615,8 @@ export declare const cliDataSchemas: {
2984
3615
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
2985
3616
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
2986
3617
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
3618
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
3619
+ INPUT_REQUIRED: "INPUT_REQUIRED";
2987
3620
  REVISION_CONFLICT: "REVISION_CONFLICT";
2988
3621
  CANCELLED: "CANCELLED";
2989
3622
  NOT_FOUND: "NOT_FOUND";
@@ -3006,11 +3639,11 @@ export declare const cliDataSchemas: {
3006
3639
  id: z.ZodString;
3007
3640
  stage: z.ZodNumber;
3008
3641
  status: z.ZodEnum<{
3642
+ stale: "stale";
3009
3643
  failed: "failed";
3010
3644
  completed: "completed";
3011
3645
  running: "running";
3012
3646
  queued: "queued";
3013
- stale: "stale";
3014
3647
  }>;
3015
3648
  attempts: z.ZodNumber;
3016
3649
  repairs: z.ZodNumber;
@@ -3028,8 +3661,8 @@ export declare const cliDataSchemas: {
3028
3661
  control: z.ZodObject<{
3029
3662
  paused: z.ZodBoolean;
3030
3663
  pauseReason: z.ZodOptional<z.ZodEnum<{
3031
- runtime: "runtime";
3032
3664
  operator: "operator";
3665
+ runtime: "runtime";
3033
3666
  shutdown: "shutdown";
3034
3667
  "base-check": "base-check";
3035
3668
  reconfigure: "reconfigure";
@@ -3045,6 +3678,7 @@ export declare const cliDataSchemas: {
3045
3678
  timeout: "timeout";
3046
3679
  "provider-auth": "provider-auth";
3047
3680
  stalled: "stalled";
3681
+ "context-exhausted": "context-exhausted";
3048
3682
  "stale-base": "stale-base";
3049
3683
  "empty-result": "empty-result";
3050
3684
  unfinished: "unfinished";
@@ -3053,6 +3687,7 @@ export declare const cliDataSchemas: {
3053
3687
  merge: "merge";
3054
3688
  budget: "budget";
3055
3689
  "needs-lead": "needs-lead";
3690
+ "needs-input": "needs-input";
3056
3691
  }>>>;
3057
3692
  waits: z.ZodOptional<z.ZodArray<z.ZodObject<{
3058
3693
  kind: z.ZodEnum<{
@@ -3097,10 +3732,10 @@ export declare const cliDataSchemas: {
3097
3732
  id: z.ZodString;
3098
3733
  graphId: z.ZodString;
3099
3734
  status: z.ZodEnum<{
3100
- ready: "ready";
3101
- failed: "failed";
3102
3735
  cancelled: "cancelled";
3103
3736
  draft: "draft";
3737
+ ready: "ready";
3738
+ failed: "failed";
3104
3739
  running: "running";
3105
3740
  verifying: "verifying";
3106
3741
  reviewing: "reviewing";
@@ -3114,6 +3749,19 @@ export declare const cliDataSchemas: {
3114
3749
  quiet: "quiet";
3115
3750
  }>>;
3116
3751
  resultSha: z.ZodOptional<z.ZodString>;
3752
+ input: z.ZodOptional<z.ZodObject<{
3753
+ requestId: z.ZodString;
3754
+ state: z.ZodEnum<{
3755
+ "awaiting-answer": "awaiting-answer";
3756
+ "answered-not-applied": "answered-not-applied";
3757
+ "applied-awaiting-claim": "applied-awaiting-claim";
3758
+ delivered: "delivered";
3759
+ "carry-stale": "carry-stale";
3760
+ }>;
3761
+ version: z.ZodNumber;
3762
+ severity: z.ZodNumber;
3763
+ }, z.core.$strict>>;
3764
+ followUps: z.ZodOptional<z.ZodNumber>;
3117
3765
  blockers: z.ZodArray<z.ZodObject<{
3118
3766
  code: z.ZodEnum<{
3119
3767
  INVALID_INPUT: "INVALID_INPUT";
@@ -3139,6 +3787,8 @@ export declare const cliDataSchemas: {
3139
3787
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
3140
3788
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
3141
3789
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
3790
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
3791
+ INPUT_REQUIRED: "INPUT_REQUIRED";
3142
3792
  REVISION_CONFLICT: "REVISION_CONFLICT";
3143
3793
  CANCELLED: "CANCELLED";
3144
3794
  NOT_FOUND: "NOT_FOUND";
@@ -3196,8 +3846,8 @@ export declare const cliDataSchemas: {
3196
3846
  queue: z.ZodObject<{
3197
3847
  paused: z.ZodBoolean;
3198
3848
  reason: z.ZodOptional<z.ZodEnum<{
3199
- runtime: "runtime";
3200
3849
  operator: "operator";
3850
+ runtime: "runtime";
3201
3851
  shutdown: "shutdown";
3202
3852
  "base-check": "base-check";
3203
3853
  reconfigure: "reconfigure";
@@ -3215,6 +3865,7 @@ export declare const cliDataSchemas: {
3215
3865
  timeout: "timeout";
3216
3866
  "provider-auth": "provider-auth";
3217
3867
  stalled: "stalled";
3868
+ "context-exhausted": "context-exhausted";
3218
3869
  "stale-base": "stale-base";
3219
3870
  "empty-result": "empty-result";
3220
3871
  unfinished: "unfinished";
@@ -3223,6 +3874,7 @@ export declare const cliDataSchemas: {
3223
3874
  merge: "merge";
3224
3875
  budget: "budget";
3225
3876
  "needs-lead": "needs-lead";
3877
+ "needs-input": "needs-input";
3226
3878
  }>>>;
3227
3879
  code: z.ZodOptional<z.ZodEnum<{
3228
3880
  INVALID_INPUT: "INVALID_INPUT";
@@ -3248,6 +3900,8 @@ export declare const cliDataSchemas: {
3248
3900
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
3249
3901
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
3250
3902
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
3903
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
3904
+ INPUT_REQUIRED: "INPUT_REQUIRED";
3251
3905
  REVISION_CONFLICT: "REVISION_CONFLICT";
3252
3906
  CANCELLED: "CANCELLED";
3253
3907
  NOT_FOUND: "NOT_FOUND";
@@ -3270,6 +3924,7 @@ export declare const cliDataSchemas: {
3270
3924
  timeout: "timeout";
3271
3925
  "provider-auth": "provider-auth";
3272
3926
  stalled: "stalled";
3927
+ "context-exhausted": "context-exhausted";
3273
3928
  "stale-base": "stale-base";
3274
3929
  "empty-result": "empty-result";
3275
3930
  unfinished: "unfinished";
@@ -3278,6 +3933,7 @@ export declare const cliDataSchemas: {
3278
3933
  merge: "merge";
3279
3934
  budget: "budget";
3280
3935
  "needs-lead": "needs-lead";
3936
+ "needs-input": "needs-input";
3281
3937
  "runtime-missing": "runtime-missing";
3282
3938
  "controller-busy": "controller-busy";
3283
3939
  "operator-pause": "operator-pause";
@@ -3285,8 +3941,8 @@ export declare const cliDataSchemas: {
3285
3941
  "not-ready": "not-ready";
3286
3942
  }>>;
3287
3943
  actor: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3288
- controller: "controller";
3289
3944
  lead: "lead";
3945
+ controller: "controller";
3290
3946
  user: "user";
3291
3947
  }>>>;
3292
3948
  action: z.ZodOptional<z.ZodEnum<{
@@ -3303,6 +3959,8 @@ export declare const cliDataSchemas: {
3303
3959
  "resume-queue": "resume-queue";
3304
3960
  "fix-environment": "fix-environment";
3305
3961
  "fix-access": "fix-access";
3962
+ "answer-input": "answer-input";
3963
+ "apply-input": "apply-input";
3306
3964
  }>>;
3307
3965
  }, z.core.$strict>;
3308
3966
  attempts: z.ZodArray<z.ZodObject<{
@@ -3311,10 +3969,10 @@ export declare const cliDataSchemas: {
3311
3969
  attempt: z.ZodNumber;
3312
3970
  status: z.ZodString;
3313
3971
  phase: z.ZodEnum<{
3314
- ready: "ready";
3315
- failed: "failed";
3316
3972
  cancelled: "cancelled";
3317
3973
  draft: "draft";
3974
+ ready: "ready";
3975
+ failed: "failed";
3318
3976
  running: "running";
3319
3977
  verifying: "verifying";
3320
3978
  reviewing: "reviewing";
@@ -3360,8 +4018,8 @@ export declare const cliDataSchemas: {
3360
4018
  activity: z.ZodOptional<z.ZodObject<{
3361
4019
  kind: z.ZodEnum<{
3362
4020
  gate: "gate";
3363
- command: "command";
3364
4021
  agent: "agent";
4022
+ command: "command";
3365
4023
  step: "step";
3366
4024
  }>;
3367
4025
  label: z.ZodString;
@@ -3383,7 +4041,7 @@ export declare const cliDataSchemas: {
3383
4041
  workId: z.ZodOptional<z.ZodString>;
3384
4042
  runId: z.ZodOptional<z.ZodString>;
3385
4043
  attempt: z.ZodOptional<z.ZodNumber>;
3386
- type: z.ZodLiteral<"graph.registered" | "graph.reviewed" | "graph.approved" | "work.ready" | "work.held" | "attempt.claimed" | "attempt.phase" | "attempt.gate" | "attempt.review" | "attempt.stage" | "attempt.liveness" | "attempt.failed" | "attempt.diagnosed" | "attempt.expired" | "attempt.cancelled" | "attempt.recovered" | "work.accepted" | "work.retried" | "work.cancelled" | "work.blocked" | "control.paused" | "control.resumed" | "controller.acquired" | "base.moved" | "controller.released" | "budget.blocked" | "corpus.adopted" | "work.recovery" | "joint.started" | "joint.liveness" | "joint.finished" | "policy.applied" | "policy.reconfigure" | "delivery.pending" | "delivery.delivered" | "delivery.failed" | "delivery.conflict" | "delivery.uncertain">;
4044
+ type: z.ZodLiteral<"graph.registered" | "graph.reviewed" | "graph.approved" | "work.ready" | "work.held" | "attempt.claimed" | "attempt.phase" | "attempt.gate" | "attempt.review" | "attempt.stage" | "attempt.liveness" | "attempt.failed" | "attempt.diagnosed" | "attempt.expired" | "attempt.cancelled" | "attempt.recovered" | "work.accepted" | "work.retried" | "work.cancelled" | "work.blocked" | "control.paused" | "control.resumed" | "controller.acquired" | "base.moved" | "controller.released" | "budget.blocked" | "corpus.adopted" | "work.recovery" | "joint.started" | "joint.liveness" | "joint.finished" | "policy.applied" | "policy.reconfigure" | "input.requested" | "input.answered" | "input.applied" | "input.closed" | "input.stale" | "input.delivered" | "attempt.assumptions" | "delivery.pending" | "delivery.delivered" | "delivery.failed" | "delivery.conflict" | "delivery.uncertain">;
3387
4045
  payload: z.ZodObject<{
3388
4046
  digest: z.ZodString;
3389
4047
  orders: z.ZodNumber;
@@ -3394,8 +4052,8 @@ export declare const cliDataSchemas: {
3394
4052
  }, z.core.$strict>;
3395
4053
  }, z.core.$strict> | z.ZodObject<{
3396
4054
  kind: z.ZodEnum<{
3397
- plan: "plan";
3398
4055
  contract: "contract";
4056
+ plan: "plan";
3399
4057
  }>;
3400
4058
  subject: z.ZodString;
3401
4059
  digest: z.ZodString;
@@ -3405,8 +4063,8 @@ export declare const cliDataSchemas: {
3405
4063
  }, z.core.$strict> | z.ZodObject<{
3406
4064
  digest: z.ZodString;
3407
4065
  actor: z.ZodEnum<{
3408
- agent: "agent";
3409
4066
  operator: "operator";
4067
+ agent: "agent";
3410
4068
  }>;
3411
4069
  }, z.core.$strict> | z.ZodObject<{
3412
4070
  orderDigest: z.ZodString;
@@ -3430,10 +4088,10 @@ export declare const cliDataSchemas: {
3430
4088
  engineVersion: z.ZodString;
3431
4089
  }, z.core.$strict> | z.ZodObject<{
3432
4090
  phase: z.ZodEnum<{
3433
- ready: "ready";
3434
- failed: "failed";
3435
4091
  cancelled: "cancelled";
3436
4092
  draft: "draft";
4093
+ ready: "ready";
4094
+ failed: "failed";
3437
4095
  running: "running";
3438
4096
  verifying: "verifying";
3439
4097
  reviewing: "reviewing";
@@ -3502,8 +4160,8 @@ export declare const cliDataSchemas: {
3502
4160
  activity: z.ZodOptional<z.ZodObject<{
3503
4161
  kind: z.ZodEnum<{
3504
4162
  gate: "gate";
3505
- command: "command";
3506
4163
  agent: "agent";
4164
+ command: "command";
3507
4165
  step: "step";
3508
4166
  }>;
3509
4167
  label: z.ZodString;
@@ -3534,6 +4192,7 @@ export declare const cliDataSchemas: {
3534
4192
  timeout: "timeout";
3535
4193
  "provider-auth": "provider-auth";
3536
4194
  stalled: "stalled";
4195
+ "context-exhausted": "context-exhausted";
3537
4196
  "stale-base": "stale-base";
3538
4197
  "empty-result": "empty-result";
3539
4198
  unfinished: "unfinished";
@@ -3542,6 +4201,7 @@ export declare const cliDataSchemas: {
3542
4201
  merge: "merge";
3543
4202
  budget: "budget";
3544
4203
  "needs-lead": "needs-lead";
4204
+ "needs-input": "needs-input";
3545
4205
  }>;
3546
4206
  message: z.ZodString;
3547
4207
  blocked: z.ZodBoolean;
@@ -3555,6 +4215,7 @@ export declare const cliDataSchemas: {
3555
4215
  timeout: "timeout";
3556
4216
  "provider-auth": "provider-auth";
3557
4217
  stalled: "stalled";
4218
+ "context-exhausted": "context-exhausted";
3558
4219
  "stale-base": "stale-base";
3559
4220
  "empty-result": "empty-result";
3560
4221
  unfinished: "unfinished";
@@ -3563,6 +4224,7 @@ export declare const cliDataSchemas: {
3563
4224
  merge: "merge";
3564
4225
  budget: "budget";
3565
4226
  "needs-lead": "needs-lead";
4227
+ "needs-input": "needs-input";
3566
4228
  }>;
3567
4229
  cause: z.ZodEnum<{
3568
4230
  preflight: "preflight";
@@ -3595,8 +4257,8 @@ export declare const cliDataSchemas: {
3595
4257
  }, z.core.$strict> | z.ZodObject<{
3596
4258
  by: z.ZodEnum<{
3597
4259
  operator: "operator";
3598
- recovery: "recovery";
3599
4260
  host: "host";
4261
+ recovery: "recovery";
3600
4262
  }>;
3601
4263
  reset: z.ZodBoolean;
3602
4264
  spent: z.ZodOptional<z.ZodNumber>;
@@ -3604,8 +4266,8 @@ export declare const cliDataSchemas: {
3604
4266
  }, z.core.$strict> | z.ZodObject<{
3605
4267
  by: z.ZodEnum<{
3606
4268
  operator: "operator";
3607
- graph: "graph";
3608
4269
  host: "host";
4270
+ graph: "graph";
3609
4271
  }>;
3610
4272
  hadAttempt: z.ZodBoolean;
3611
4273
  }, z.core.$strict> | z.ZodObject<{
@@ -3613,8 +4275,8 @@ export declare const cliDataSchemas: {
3613
4275
  message: z.ZodString;
3614
4276
  }, z.core.$strict> | z.ZodObject<{
3615
4277
  reason: z.ZodEnum<{
3616
- runtime: "runtime";
3617
4278
  operator: "operator";
4279
+ runtime: "runtime";
3618
4280
  shutdown: "shutdown";
3619
4281
  "base-check": "base-check";
3620
4282
  reconfigure: "reconfigure";
@@ -3628,6 +4290,7 @@ export declare const cliDataSchemas: {
3628
4290
  timeout: "timeout";
3629
4291
  "provider-auth": "provider-auth";
3630
4292
  stalled: "stalled";
4293
+ "context-exhausted": "context-exhausted";
3631
4294
  "stale-base": "stale-base";
3632
4295
  "empty-result": "empty-result";
3633
4296
  unfinished: "unfinished";
@@ -3636,11 +4299,12 @@ export declare const cliDataSchemas: {
3636
4299
  merge: "merge";
3637
4300
  budget: "budget";
3638
4301
  "needs-lead": "needs-lead";
4302
+ "needs-input": "needs-input";
3639
4303
  }>>>;
3640
4304
  }, z.core.$strict> | z.ZodObject<{
3641
4305
  reason: z.ZodEnum<{
3642
- runtime: "runtime";
3643
4306
  operator: "operator";
4307
+ runtime: "runtime";
3644
4308
  shutdown: "shutdown";
3645
4309
  "base-check": "base-check";
3646
4310
  reconfigure: "reconfigure";
@@ -3650,8 +4314,8 @@ export declare const cliDataSchemas: {
3650
4314
  }, z.core.$strict> | z.ZodObject<{
3651
4315
  by: z.ZodEnum<{
3652
4316
  operator: "operator";
3653
- controller: "controller";
3654
4317
  host: "host";
4318
+ controller: "controller";
3655
4319
  }>;
3656
4320
  }, z.core.$strict> | z.ZodObject<{
3657
4321
  owner: z.ZodString;
@@ -3711,8 +4375,8 @@ export declare const cliDataSchemas: {
3711
4375
  activity: z.ZodOptional<z.ZodObject<{
3712
4376
  kind: z.ZodEnum<{
3713
4377
  gate: "gate";
3714
- command: "command";
3715
4378
  agent: "agent";
4379
+ command: "command";
3716
4380
  step: "step";
3717
4381
  }>;
3718
4382
  label: z.ZodString;
@@ -3757,12 +4421,82 @@ export declare const cliDataSchemas: {
3757
4421
  }>;
3758
4422
  error: z.ZodOptional<z.ZodString>;
3759
4423
  }, z.core.$strict> | z.ZodObject<{
3760
- sink: z.ZodString;
3761
- key: z.ZodString;
3762
- revision: z.ZodString;
3763
- attempts: z.ZodNumber;
3764
- }, z.core.$strict> | z.ZodObject<{
3765
- receipt: z.ZodOptional<z.ZodString>;
4424
+ requestId: z.ZodString;
4425
+ kind: z.ZodEnum<{
4426
+ question: "question";
4427
+ "follow-up": "follow-up";
4428
+ }>;
4429
+ blocking: z.ZodBoolean;
4430
+ lifecycle: z.ZodEnum<{
4431
+ pending: "pending";
4432
+ cancelled: "cancelled";
4433
+ }>;
4434
+ effectiveSeverity: z.ZodNumber;
4435
+ floors: z.ZodArray<z.ZodEnum<{
4436
+ declared: "declared";
4437
+ "critical-path": "critical-path";
4438
+ }>>;
4439
+ criticalHits: z.ZodNumber;
4440
+ questionDigest: z.ZodString;
4441
+ draftDigest: z.ZodNullable<z.ZodString>;
4442
+ }, z.core.$strict> | z.ZodObject<{
4443
+ requestId: z.ZodString;
4444
+ revision: z.ZodNumber;
4445
+ answerDigest: z.ZodString;
4446
+ kind: z.ZodEnum<{
4447
+ clarification: "clarification";
4448
+ "requirement-change": "requirement-change";
4449
+ }>;
4450
+ actor: z.ZodEnum<{
4451
+ operator: "operator";
4452
+ lead: "lead";
4453
+ host: "host";
4454
+ }>;
4455
+ }, z.core.$strict> | z.ZodObject<{
4456
+ requestId: z.ZodString;
4457
+ answerDigest: z.ZodString;
4458
+ targetDigest: z.ZodString;
4459
+ contextDigest: z.ZodNullable<z.ZodString>;
4460
+ retried: z.ZodBoolean;
4461
+ }, z.core.$strict> | z.ZodObject<{
4462
+ requestId: z.ZodString;
4463
+ lifecycle: z.ZodEnum<{
4464
+ cancelled: "cancelled";
4465
+ superseded: "superseded";
4466
+ }>;
4467
+ by: z.ZodEnum<{
4468
+ operator: "operator";
4469
+ lead: "lead";
4470
+ host: "host";
4471
+ controller: "controller";
4472
+ }>;
4473
+ successor: z.ZodOptional<z.ZodString>;
4474
+ }, z.core.$strict> | z.ZodObject<{
4475
+ requestId: z.ZodString;
4476
+ targetDigest: z.ZodString;
4477
+ reason: z.ZodEnum<{
4478
+ context: "context";
4479
+ graph: "graph";
4480
+ order: "order";
4481
+ policy: "policy";
4482
+ }>;
4483
+ }, z.core.$strict> | z.ZodObject<{
4484
+ requestId: z.ZodString;
4485
+ answerDigest: z.ZodString;
4486
+ callId: z.ZodString;
4487
+ }, z.core.$strict> | z.ZodObject<{
4488
+ count: z.ZodNumber;
4489
+ maxSeverity: z.ZodNumber;
4490
+ floors: z.ZodNumber;
4491
+ followUps: z.ZodNumber;
4492
+ digest: z.ZodString;
4493
+ }, z.core.$strict> | z.ZodObject<{
4494
+ sink: z.ZodString;
4495
+ key: z.ZodString;
4496
+ revision: z.ZodString;
4497
+ attempts: z.ZodNumber;
4498
+ }, z.core.$strict> | z.ZodObject<{
4499
+ receipt: z.ZodOptional<z.ZodString>;
3766
4500
  sink: z.ZodString;
3767
4501
  key: z.ZodString;
3768
4502
  revision: z.ZodString;
@@ -3795,7 +4529,7 @@ export declare const cliDataSchemas: {
3795
4529
  workId: z.ZodOptional<z.ZodString>;
3796
4530
  runId: z.ZodOptional<z.ZodString>;
3797
4531
  attempt: z.ZodOptional<z.ZodNumber>;
3798
- type: z.ZodLiteral<"graph.registered" | "graph.reviewed" | "graph.approved" | "work.ready" | "work.held" | "attempt.claimed" | "attempt.phase" | "attempt.gate" | "attempt.review" | "attempt.stage" | "attempt.liveness" | "attempt.failed" | "attempt.diagnosed" | "attempt.expired" | "attempt.cancelled" | "attempt.recovered" | "work.accepted" | "work.retried" | "work.cancelled" | "work.blocked" | "control.paused" | "control.resumed" | "controller.acquired" | "base.moved" | "controller.released" | "budget.blocked" | "corpus.adopted" | "work.recovery" | "joint.started" | "joint.liveness" | "joint.finished" | "policy.applied" | "policy.reconfigure" | "delivery.pending" | "delivery.delivered" | "delivery.failed" | "delivery.conflict" | "delivery.uncertain">;
4532
+ type: z.ZodLiteral<"graph.registered" | "graph.reviewed" | "graph.approved" | "work.ready" | "work.held" | "attempt.claimed" | "attempt.phase" | "attempt.gate" | "attempt.review" | "attempt.stage" | "attempt.liveness" | "attempt.failed" | "attempt.diagnosed" | "attempt.expired" | "attempt.cancelled" | "attempt.recovered" | "work.accepted" | "work.retried" | "work.cancelled" | "work.blocked" | "control.paused" | "control.resumed" | "controller.acquired" | "base.moved" | "controller.released" | "budget.blocked" | "corpus.adopted" | "work.recovery" | "joint.started" | "joint.liveness" | "joint.finished" | "policy.applied" | "policy.reconfigure" | "input.requested" | "input.answered" | "input.applied" | "input.closed" | "input.stale" | "input.delivered" | "attempt.assumptions" | "delivery.pending" | "delivery.delivered" | "delivery.failed" | "delivery.conflict" | "delivery.uncertain">;
3799
4533
  payload: z.ZodObject<{
3800
4534
  digest: z.ZodString;
3801
4535
  orders: z.ZodNumber;
@@ -3806,8 +4540,8 @@ export declare const cliDataSchemas: {
3806
4540
  }, z.core.$strict>;
3807
4541
  }, z.core.$strict> | z.ZodObject<{
3808
4542
  kind: z.ZodEnum<{
3809
- plan: "plan";
3810
4543
  contract: "contract";
4544
+ plan: "plan";
3811
4545
  }>;
3812
4546
  subject: z.ZodString;
3813
4547
  digest: z.ZodString;
@@ -3817,8 +4551,8 @@ export declare const cliDataSchemas: {
3817
4551
  }, z.core.$strict> | z.ZodObject<{
3818
4552
  digest: z.ZodString;
3819
4553
  actor: z.ZodEnum<{
3820
- agent: "agent";
3821
4554
  operator: "operator";
4555
+ agent: "agent";
3822
4556
  }>;
3823
4557
  }, z.core.$strict> | z.ZodObject<{
3824
4558
  orderDigest: z.ZodString;
@@ -3842,10 +4576,10 @@ export declare const cliDataSchemas: {
3842
4576
  engineVersion: z.ZodString;
3843
4577
  }, z.core.$strict> | z.ZodObject<{
3844
4578
  phase: z.ZodEnum<{
3845
- ready: "ready";
3846
- failed: "failed";
3847
4579
  cancelled: "cancelled";
3848
4580
  draft: "draft";
4581
+ ready: "ready";
4582
+ failed: "failed";
3849
4583
  running: "running";
3850
4584
  verifying: "verifying";
3851
4585
  reviewing: "reviewing";
@@ -3914,8 +4648,8 @@ export declare const cliDataSchemas: {
3914
4648
  activity: z.ZodOptional<z.ZodObject<{
3915
4649
  kind: z.ZodEnum<{
3916
4650
  gate: "gate";
3917
- command: "command";
3918
4651
  agent: "agent";
4652
+ command: "command";
3919
4653
  step: "step";
3920
4654
  }>;
3921
4655
  label: z.ZodString;
@@ -3946,6 +4680,7 @@ export declare const cliDataSchemas: {
3946
4680
  timeout: "timeout";
3947
4681
  "provider-auth": "provider-auth";
3948
4682
  stalled: "stalled";
4683
+ "context-exhausted": "context-exhausted";
3949
4684
  "stale-base": "stale-base";
3950
4685
  "empty-result": "empty-result";
3951
4686
  unfinished: "unfinished";
@@ -3954,6 +4689,7 @@ export declare const cliDataSchemas: {
3954
4689
  merge: "merge";
3955
4690
  budget: "budget";
3956
4691
  "needs-lead": "needs-lead";
4692
+ "needs-input": "needs-input";
3957
4693
  }>;
3958
4694
  message: z.ZodString;
3959
4695
  blocked: z.ZodBoolean;
@@ -3967,6 +4703,7 @@ export declare const cliDataSchemas: {
3967
4703
  timeout: "timeout";
3968
4704
  "provider-auth": "provider-auth";
3969
4705
  stalled: "stalled";
4706
+ "context-exhausted": "context-exhausted";
3970
4707
  "stale-base": "stale-base";
3971
4708
  "empty-result": "empty-result";
3972
4709
  unfinished: "unfinished";
@@ -3975,6 +4712,7 @@ export declare const cliDataSchemas: {
3975
4712
  merge: "merge";
3976
4713
  budget: "budget";
3977
4714
  "needs-lead": "needs-lead";
4715
+ "needs-input": "needs-input";
3978
4716
  }>;
3979
4717
  cause: z.ZodEnum<{
3980
4718
  preflight: "preflight";
@@ -4007,8 +4745,8 @@ export declare const cliDataSchemas: {
4007
4745
  }, z.core.$strict> | z.ZodObject<{
4008
4746
  by: z.ZodEnum<{
4009
4747
  operator: "operator";
4010
- recovery: "recovery";
4011
4748
  host: "host";
4749
+ recovery: "recovery";
4012
4750
  }>;
4013
4751
  reset: z.ZodBoolean;
4014
4752
  spent: z.ZodOptional<z.ZodNumber>;
@@ -4016,8 +4754,8 @@ export declare const cliDataSchemas: {
4016
4754
  }, z.core.$strict> | z.ZodObject<{
4017
4755
  by: z.ZodEnum<{
4018
4756
  operator: "operator";
4019
- graph: "graph";
4020
4757
  host: "host";
4758
+ graph: "graph";
4021
4759
  }>;
4022
4760
  hadAttempt: z.ZodBoolean;
4023
4761
  }, z.core.$strict> | z.ZodObject<{
@@ -4025,8 +4763,8 @@ export declare const cliDataSchemas: {
4025
4763
  message: z.ZodString;
4026
4764
  }, z.core.$strict> | z.ZodObject<{
4027
4765
  reason: z.ZodEnum<{
4028
- runtime: "runtime";
4029
4766
  operator: "operator";
4767
+ runtime: "runtime";
4030
4768
  shutdown: "shutdown";
4031
4769
  "base-check": "base-check";
4032
4770
  reconfigure: "reconfigure";
@@ -4040,6 +4778,7 @@ export declare const cliDataSchemas: {
4040
4778
  timeout: "timeout";
4041
4779
  "provider-auth": "provider-auth";
4042
4780
  stalled: "stalled";
4781
+ "context-exhausted": "context-exhausted";
4043
4782
  "stale-base": "stale-base";
4044
4783
  "empty-result": "empty-result";
4045
4784
  unfinished: "unfinished";
@@ -4048,11 +4787,12 @@ export declare const cliDataSchemas: {
4048
4787
  merge: "merge";
4049
4788
  budget: "budget";
4050
4789
  "needs-lead": "needs-lead";
4790
+ "needs-input": "needs-input";
4051
4791
  }>>>;
4052
4792
  }, z.core.$strict> | z.ZodObject<{
4053
4793
  reason: z.ZodEnum<{
4054
- runtime: "runtime";
4055
4794
  operator: "operator";
4795
+ runtime: "runtime";
4056
4796
  shutdown: "shutdown";
4057
4797
  "base-check": "base-check";
4058
4798
  reconfigure: "reconfigure";
@@ -4062,8 +4802,8 @@ export declare const cliDataSchemas: {
4062
4802
  }, z.core.$strict> | z.ZodObject<{
4063
4803
  by: z.ZodEnum<{
4064
4804
  operator: "operator";
4065
- controller: "controller";
4066
4805
  host: "host";
4806
+ controller: "controller";
4067
4807
  }>;
4068
4808
  }, z.core.$strict> | z.ZodObject<{
4069
4809
  owner: z.ZodString;
@@ -4123,8 +4863,8 @@ export declare const cliDataSchemas: {
4123
4863
  activity: z.ZodOptional<z.ZodObject<{
4124
4864
  kind: z.ZodEnum<{
4125
4865
  gate: "gate";
4126
- command: "command";
4127
4866
  agent: "agent";
4867
+ command: "command";
4128
4868
  step: "step";
4129
4869
  }>;
4130
4870
  label: z.ZodString;
@@ -4168,6 +4908,76 @@ export declare const cliDataSchemas: {
4168
4908
  cleared: "cleared";
4169
4909
  }>;
4170
4910
  error: z.ZodOptional<z.ZodString>;
4911
+ }, z.core.$strict> | z.ZodObject<{
4912
+ requestId: z.ZodString;
4913
+ kind: z.ZodEnum<{
4914
+ question: "question";
4915
+ "follow-up": "follow-up";
4916
+ }>;
4917
+ blocking: z.ZodBoolean;
4918
+ lifecycle: z.ZodEnum<{
4919
+ pending: "pending";
4920
+ cancelled: "cancelled";
4921
+ }>;
4922
+ effectiveSeverity: z.ZodNumber;
4923
+ floors: z.ZodArray<z.ZodEnum<{
4924
+ declared: "declared";
4925
+ "critical-path": "critical-path";
4926
+ }>>;
4927
+ criticalHits: z.ZodNumber;
4928
+ questionDigest: z.ZodString;
4929
+ draftDigest: z.ZodNullable<z.ZodString>;
4930
+ }, z.core.$strict> | z.ZodObject<{
4931
+ requestId: z.ZodString;
4932
+ revision: z.ZodNumber;
4933
+ answerDigest: z.ZodString;
4934
+ kind: z.ZodEnum<{
4935
+ clarification: "clarification";
4936
+ "requirement-change": "requirement-change";
4937
+ }>;
4938
+ actor: z.ZodEnum<{
4939
+ operator: "operator";
4940
+ lead: "lead";
4941
+ host: "host";
4942
+ }>;
4943
+ }, z.core.$strict> | z.ZodObject<{
4944
+ requestId: z.ZodString;
4945
+ answerDigest: z.ZodString;
4946
+ targetDigest: z.ZodString;
4947
+ contextDigest: z.ZodNullable<z.ZodString>;
4948
+ retried: z.ZodBoolean;
4949
+ }, z.core.$strict> | z.ZodObject<{
4950
+ requestId: z.ZodString;
4951
+ lifecycle: z.ZodEnum<{
4952
+ cancelled: "cancelled";
4953
+ superseded: "superseded";
4954
+ }>;
4955
+ by: z.ZodEnum<{
4956
+ operator: "operator";
4957
+ lead: "lead";
4958
+ host: "host";
4959
+ controller: "controller";
4960
+ }>;
4961
+ successor: z.ZodOptional<z.ZodString>;
4962
+ }, z.core.$strict> | z.ZodObject<{
4963
+ requestId: z.ZodString;
4964
+ targetDigest: z.ZodString;
4965
+ reason: z.ZodEnum<{
4966
+ context: "context";
4967
+ graph: "graph";
4968
+ order: "order";
4969
+ policy: "policy";
4970
+ }>;
4971
+ }, z.core.$strict> | z.ZodObject<{
4972
+ requestId: z.ZodString;
4973
+ answerDigest: z.ZodString;
4974
+ callId: z.ZodString;
4975
+ }, z.core.$strict> | z.ZodObject<{
4976
+ count: z.ZodNumber;
4977
+ maxSeverity: z.ZodNumber;
4978
+ floors: z.ZodNumber;
4979
+ followUps: z.ZodNumber;
4980
+ digest: z.ZodString;
4171
4981
  }, z.core.$strict> | z.ZodObject<{
4172
4982
  sink: z.ZodString;
4173
4983
  key: z.ZodString;
@@ -4216,8 +5026,8 @@ export declare const cliDataSchemas: {
4216
5026
  control: z.ZodObject<{
4217
5027
  paused: z.ZodBoolean;
4218
5028
  pauseReason: z.ZodOptional<z.ZodEnum<{
4219
- runtime: "runtime";
4220
5029
  operator: "operator";
5030
+ runtime: "runtime";
4221
5031
  shutdown: "shutdown";
4222
5032
  "base-check": "base-check";
4223
5033
  reconfigure: "reconfigure";
@@ -4233,6 +5043,7 @@ export declare const cliDataSchemas: {
4233
5043
  timeout: "timeout";
4234
5044
  "provider-auth": "provider-auth";
4235
5045
  stalled: "stalled";
5046
+ "context-exhausted": "context-exhausted";
4236
5047
  "stale-base": "stale-base";
4237
5048
  "empty-result": "empty-result";
4238
5049
  unfinished: "unfinished";
@@ -4241,6 +5052,7 @@ export declare const cliDataSchemas: {
4241
5052
  merge: "merge";
4242
5053
  budget: "budget";
4243
5054
  "needs-lead": "needs-lead";
5055
+ "needs-input": "needs-input";
4244
5056
  }>>>;
4245
5057
  waits: z.ZodOptional<z.ZodArray<z.ZodObject<{
4246
5058
  kind: z.ZodEnum<{
@@ -4272,8 +5084,8 @@ export declare const cliDataSchemas: {
4272
5084
  control: z.ZodObject<{
4273
5085
  paused: z.ZodBoolean;
4274
5086
  pauseReason: z.ZodOptional<z.ZodEnum<{
4275
- runtime: "runtime";
4276
5087
  operator: "operator";
5088
+ runtime: "runtime";
4277
5089
  shutdown: "shutdown";
4278
5090
  "base-check": "base-check";
4279
5091
  reconfigure: "reconfigure";
@@ -4289,6 +5101,7 @@ export declare const cliDataSchemas: {
4289
5101
  timeout: "timeout";
4290
5102
  "provider-auth": "provider-auth";
4291
5103
  stalled: "stalled";
5104
+ "context-exhausted": "context-exhausted";
4292
5105
  "stale-base": "stale-base";
4293
5106
  "empty-result": "empty-result";
4294
5107
  unfinished: "unfinished";
@@ -4297,6 +5110,7 @@ export declare const cliDataSchemas: {
4297
5110
  merge: "merge";
4298
5111
  budget: "budget";
4299
5112
  "needs-lead": "needs-lead";
5113
+ "needs-input": "needs-input";
4300
5114
  }>>>;
4301
5115
  waits: z.ZodOptional<z.ZodArray<z.ZodObject<{
4302
5116
  kind: z.ZodEnum<{
@@ -4327,10 +5141,10 @@ export declare const cliDataSchemas: {
4327
5141
  readonly cancel: z.ZodObject<{
4328
5142
  workId: z.ZodString;
4329
5143
  status: z.ZodEnum<{
4330
- ready: "ready";
4331
- failed: "failed";
4332
5144
  cancelled: "cancelled";
4333
5145
  draft: "draft";
5146
+ ready: "ready";
5147
+ failed: "failed";
4334
5148
  running: "running";
4335
5149
  verifying: "verifying";
4336
5150
  reviewing: "reviewing";
@@ -4343,10 +5157,10 @@ export declare const cliDataSchemas: {
4343
5157
  readonly retry: z.ZodObject<{
4344
5158
  workId: z.ZodString;
4345
5159
  status: z.ZodEnum<{
4346
- ready: "ready";
4347
- failed: "failed";
4348
5160
  cancelled: "cancelled";
4349
5161
  draft: "draft";
5162
+ ready: "ready";
5163
+ failed: "failed";
4350
5164
  running: "running";
4351
5165
  verifying: "verifying";
4352
5166
  reviewing: "reviewing";
@@ -4444,8 +5258,8 @@ export declare const cliDataSchemas: {
4444
5258
  id: z.ZodString;
4445
5259
  kind: z.ZodEnum<{
4446
5260
  check: "check";
4447
- test: "test";
4448
5261
  review: "review";
5262
+ test: "test";
4449
5263
  property: "property";
4450
5264
  consumer: "consumer";
4451
5265
  }>;
@@ -4509,13 +5323,13 @@ export declare const cliDataSchemas: {
4509
5323
  transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4510
5324
  id: z.ZodString;
4511
5325
  from: z.ZodEnum<{
4512
- open: "open";
4513
5326
  closed: "closed";
5327
+ open: "open";
4514
5328
  withdrawn: "withdrawn";
4515
5329
  }>;
4516
5330
  to: z.ZodEnum<{
4517
- open: "open";
4518
5331
  closed: "closed";
5332
+ open: "open";
4519
5333
  withdrawn: "withdrawn";
4520
5334
  }>;
4521
5335
  }, z.core.$strict>>>;
@@ -4529,8 +5343,8 @@ export declare const cliDataSchemas: {
4529
5343
  rule: z.ZodOptional<z.ZodString>;
4530
5344
  id: z.ZodOptional<z.ZodString>;
4531
5345
  status: z.ZodOptional<z.ZodEnum<{
4532
- open: "open";
4533
5346
  closed: "closed";
5347
+ open: "open";
4534
5348
  withdrawn: "withdrawn";
4535
5349
  }>>;
4536
5350
  }, z.core.$strict>>>;
@@ -4538,9 +5352,9 @@ export declare const cliDataSchemas: {
4538
5352
  finishedAt: z.ZodISODateTime;
4539
5353
  }, z.core.$strict>, z.ZodObject<{
4540
5354
  outcome: z.ZodEnum<{
5355
+ cancelled: "cancelled";
4541
5356
  rejected: "rejected";
4542
5357
  blocked: "blocked";
4543
- cancelled: "cancelled";
4544
5358
  stopped: "stopped";
4545
5359
  }>;
4546
5360
  shas: z.ZodObject<{
@@ -4573,6 +5387,8 @@ export declare const cliDataSchemas: {
4573
5387
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
4574
5388
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
4575
5389
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
5390
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
5391
+ INPUT_REQUIRED: "INPUT_REQUIRED";
4576
5392
  REVISION_CONFLICT: "REVISION_CONFLICT";
4577
5393
  CANCELLED: "CANCELLED";
4578
5394
  NOT_FOUND: "NOT_FOUND";
@@ -4666,8 +5482,8 @@ export declare const cliDataSchemas: {
4666
5482
  id: z.ZodString;
4667
5483
  kind: z.ZodEnum<{
4668
5484
  check: "check";
4669
- test: "test";
4670
5485
  review: "review";
5486
+ test: "test";
4671
5487
  property: "property";
4672
5488
  consumer: "consumer";
4673
5489
  }>;
@@ -4731,13 +5547,13 @@ export declare const cliDataSchemas: {
4731
5547
  transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4732
5548
  id: z.ZodString;
4733
5549
  from: z.ZodEnum<{
4734
- open: "open";
4735
5550
  closed: "closed";
5551
+ open: "open";
4736
5552
  withdrawn: "withdrawn";
4737
5553
  }>;
4738
5554
  to: z.ZodEnum<{
4739
- open: "open";
4740
5555
  closed: "closed";
5556
+ open: "open";
4741
5557
  withdrawn: "withdrawn";
4742
5558
  }>;
4743
5559
  }, z.core.$strict>>>;
@@ -4751,8 +5567,8 @@ export declare const cliDataSchemas: {
4751
5567
  rule: z.ZodOptional<z.ZodString>;
4752
5568
  id: z.ZodOptional<z.ZodString>;
4753
5569
  status: z.ZodOptional<z.ZodEnum<{
4754
- open: "open";
4755
5570
  closed: "closed";
5571
+ open: "open";
4756
5572
  withdrawn: "withdrawn";
4757
5573
  }>>;
4758
5574
  }, z.core.$strict>>>;
@@ -4764,9 +5580,9 @@ export declare const cliDataSchemas: {
4764
5580
  key: z.ZodString;
4765
5581
  revision: z.ZodString;
4766
5582
  status: z.ZodEnum<{
4767
- failed: "failed";
4768
5583
  pending: "pending";
4769
5584
  delivered: "delivered";
5585
+ failed: "failed";
4770
5586
  conflict: "conflict";
4771
5587
  uncertain: "uncertain";
4772
5588
  }>;
@@ -4866,8 +5682,8 @@ export declare const cliDataSchemas: {
4866
5682
  id: z.ZodString;
4867
5683
  kind: z.ZodEnum<{
4868
5684
  check: "check";
4869
- test: "test";
4870
5685
  review: "review";
5686
+ test: "test";
4871
5687
  property: "property";
4872
5688
  consumer: "consumer";
4873
5689
  }>;
@@ -4931,13 +5747,13 @@ export declare const cliDataSchemas: {
4931
5747
  transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4932
5748
  id: z.ZodString;
4933
5749
  from: z.ZodEnum<{
4934
- open: "open";
4935
5750
  closed: "closed";
5751
+ open: "open";
4936
5752
  withdrawn: "withdrawn";
4937
5753
  }>;
4938
5754
  to: z.ZodEnum<{
4939
- open: "open";
4940
5755
  closed: "closed";
5756
+ open: "open";
4941
5757
  withdrawn: "withdrawn";
4942
5758
  }>;
4943
5759
  }, z.core.$strict>>>;
@@ -4951,8 +5767,8 @@ export declare const cliDataSchemas: {
4951
5767
  rule: z.ZodOptional<z.ZodString>;
4952
5768
  id: z.ZodOptional<z.ZodString>;
4953
5769
  status: z.ZodOptional<z.ZodEnum<{
4954
- open: "open";
4955
5770
  closed: "closed";
5771
+ open: "open";
4956
5772
  withdrawn: "withdrawn";
4957
5773
  }>>;
4958
5774
  }, z.core.$strict>>>;
@@ -4960,9 +5776,9 @@ export declare const cliDataSchemas: {
4960
5776
  finishedAt: z.ZodISODateTime;
4961
5777
  }, z.core.$strict>, z.ZodObject<{
4962
5778
  outcome: z.ZodEnum<{
5779
+ cancelled: "cancelled";
4963
5780
  rejected: "rejected";
4964
5781
  blocked: "blocked";
4965
- cancelled: "cancelled";
4966
5782
  stopped: "stopped";
4967
5783
  }>;
4968
5784
  shas: z.ZodObject<{
@@ -4995,6 +5811,8 @@ export declare const cliDataSchemas: {
4995
5811
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
4996
5812
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
4997
5813
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
5814
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
5815
+ INPUT_REQUIRED: "INPUT_REQUIRED";
4998
5816
  REVISION_CONFLICT: "REVISION_CONFLICT";
4999
5817
  CANCELLED: "CANCELLED";
5000
5818
  NOT_FOUND: "NOT_FOUND";
@@ -5088,8 +5906,8 @@ export declare const cliDataSchemas: {
5088
5906
  id: z.ZodString;
5089
5907
  kind: z.ZodEnum<{
5090
5908
  check: "check";
5091
- test: "test";
5092
5909
  review: "review";
5910
+ test: "test";
5093
5911
  property: "property";
5094
5912
  consumer: "consumer";
5095
5913
  }>;
@@ -5153,13 +5971,13 @@ export declare const cliDataSchemas: {
5153
5971
  transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
5154
5972
  id: z.ZodString;
5155
5973
  from: z.ZodEnum<{
5156
- open: "open";
5157
5974
  closed: "closed";
5975
+ open: "open";
5158
5976
  withdrawn: "withdrawn";
5159
5977
  }>;
5160
5978
  to: z.ZodEnum<{
5161
- open: "open";
5162
5979
  closed: "closed";
5980
+ open: "open";
5163
5981
  withdrawn: "withdrawn";
5164
5982
  }>;
5165
5983
  }, z.core.$strict>>>;
@@ -5173,8 +5991,8 @@ export declare const cliDataSchemas: {
5173
5991
  rule: z.ZodOptional<z.ZodString>;
5174
5992
  id: z.ZodOptional<z.ZodString>;
5175
5993
  status: z.ZodOptional<z.ZodEnum<{
5176
- open: "open";
5177
5994
  closed: "closed";
5995
+ open: "open";
5178
5996
  withdrawn: "withdrawn";
5179
5997
  }>>;
5180
5998
  }, z.core.$strict>>>;
@@ -5186,9 +6004,9 @@ export declare const cliDataSchemas: {
5186
6004
  key: z.ZodString;
5187
6005
  revision: z.ZodString;
5188
6006
  status: z.ZodEnum<{
5189
- failed: "failed";
5190
6007
  pending: "pending";
5191
6008
  delivered: "delivered";
6009
+ failed: "failed";
5192
6010
  conflict: "conflict";
5193
6011
  uncertain: "uncertain";
5194
6012
  }>;
@@ -5646,6 +6464,8 @@ export declare const cliDataSchemas: {
5646
6464
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
5647
6465
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
5648
6466
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
6467
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
6468
+ INPUT_REQUIRED: "INPUT_REQUIRED";
5649
6469
  REVISION_CONFLICT: "REVISION_CONFLICT";
5650
6470
  CANCELLED: "CANCELLED";
5651
6471
  NOT_FOUND: "NOT_FOUND";
@@ -5668,6 +6488,7 @@ export declare const cliDataSchemas: {
5668
6488
  timeout: "timeout";
5669
6489
  "provider-auth": "provider-auth";
5670
6490
  stalled: "stalled";
6491
+ "context-exhausted": "context-exhausted";
5671
6492
  "stale-base": "stale-base";
5672
6493
  "empty-result": "empty-result";
5673
6494
  unfinished: "unfinished";
@@ -5676,6 +6497,7 @@ export declare const cliDataSchemas: {
5676
6497
  merge: "merge";
5677
6498
  budget: "budget";
5678
6499
  "needs-lead": "needs-lead";
6500
+ "needs-input": "needs-input";
5679
6501
  "runtime-missing": "runtime-missing";
5680
6502
  "controller-busy": "controller-busy";
5681
6503
  "operator-pause": "operator-pause";
@@ -5684,16 +6506,16 @@ export declare const cliDataSchemas: {
5684
6506
  }>;
5685
6507
  phase: z.ZodEnum<{
5686
6508
  gates: "gates";
5687
- preflight: "preflight";
5688
6509
  review: "review";
6510
+ preflight: "preflight";
5689
6511
  integration: "integration";
5690
6512
  delivery: "delivery";
5691
6513
  claim: "claim";
5692
6514
  implementation: "implementation";
5693
6515
  }>;
5694
6516
  actor: z.ZodNullable<z.ZodEnum<{
5695
- controller: "controller";
5696
6517
  lead: "lead";
6518
+ controller: "controller";
5697
6519
  user: "user";
5698
6520
  }>>;
5699
6521
  action: z.ZodEnum<{
@@ -5710,6 +6532,8 @@ export declare const cliDataSchemas: {
5710
6532
  "resume-queue": "resume-queue";
5711
6533
  "fix-environment": "fix-environment";
5712
6534
  "fix-access": "fix-access";
6535
+ "answer-input": "answer-input";
6536
+ "apply-input": "apply-input";
5713
6537
  }>;
5714
6538
  retryPlanned: z.ZodBoolean;
5715
6539
  message: z.ZodString;
@@ -5875,8 +6699,8 @@ export declare const cliDataSchemas: {
5875
6699
  runId: z.ZodString;
5876
6700
  attempt: z.ZodNumber;
5877
6701
  kind: z.ZodEnum<{
5878
- test: "test";
5879
6702
  review: "review";
6703
+ test: "test";
5880
6704
  scope: "scope";
5881
6705
  }>;
5882
6706
  phase: z.ZodNullable<z.ZodEnum<{
@@ -5930,24 +6754,24 @@ export declare const cliDataSchemas: {
5930
6754
  }>;
5931
6755
  retries: z.ZodObject<{
5932
6756
  operator: z.ZodNumber;
5933
- recovery: z.ZodNumber;
5934
6757
  host: z.ZodNumber;
6758
+ recovery: z.ZodNumber;
5935
6759
  }, z.core.$strict>;
5936
6760
  resets: z.ZodObject<{
5937
6761
  operator: z.ZodNumber;
5938
- recovery: z.ZodNumber;
5939
6762
  host: z.ZodNumber;
6763
+ recovery: z.ZodNumber;
5940
6764
  }, z.core.$strict>;
5941
6765
  cancellations: z.ZodObject<{
5942
6766
  operator: z.ZodNumber;
5943
- graph: z.ZodNumber;
5944
6767
  host: z.ZodNumber;
6768
+ graph: z.ZodNumber;
5945
6769
  }, z.core.$strict>;
5946
6770
  cancelledWithoutAttempt: z.ZodNumber;
5947
6771
  baseMoves: z.ZodObject<{
5948
6772
  operator: z.ZodNumber;
5949
- controller: z.ZodNumber;
5950
6773
  host: z.ZodNumber;
6774
+ controller: z.ZodNumber;
5951
6775
  }, z.core.$strict>;
5952
6776
  baseMovesBound: z.ZodLiteral<"lower">;
5953
6777
  gaps: z.ZodNumber;
@@ -5965,8 +6789,8 @@ export declare const cliDataSchemas: {
5965
6789
  }, z.core.$strict>;
5966
6790
  pauses: z.ZodArray<z.ZodObject<{
5967
6791
  reason: z.ZodEnum<{
5968
- runtime: "runtime";
5969
6792
  operator: "operator";
6793
+ runtime: "runtime";
5970
6794
  shutdown: "shutdown";
5971
6795
  "base-check": "base-check";
5972
6796
  reconfigure: "reconfigure";
@@ -5983,6 +6807,7 @@ export declare const cliDataSchemas: {
5983
6807
  timeout: "timeout";
5984
6808
  "provider-auth": "provider-auth";
5985
6809
  stalled: "stalled";
6810
+ "context-exhausted": "context-exhausted";
5986
6811
  "stale-base": "stale-base";
5987
6812
  "empty-result": "empty-result";
5988
6813
  unfinished: "unfinished";
@@ -5991,6 +6816,7 @@ export declare const cliDataSchemas: {
5991
6816
  merge: "merge";
5992
6817
  budget: "budget";
5993
6818
  "needs-lead": "needs-lead";
6819
+ "needs-input": "needs-input";
5994
6820
  }>>;
5995
6821
  }, z.core.$strict>>;
5996
6822
  escalations: z.ZodNumber;
@@ -6130,10 +6956,11 @@ export declare const cliDataSchemas: {
6130
6956
  attempts: z.ZodNumber;
6131
6957
  byBucket: z.ZodArray<z.ZodObject<{
6132
6958
  bucket: z.ZodEnum<{
6959
+ input: "input";
6133
6960
  unknown: "unknown";
6961
+ operator: "operator";
6134
6962
  integration: "integration";
6135
6963
  environment: "environment";
6136
- operator: "operator";
6137
6964
  budget: "budget";
6138
6965
  defect: "defect";
6139
6966
  incomplete: "incomplete";
@@ -6164,10 +6991,11 @@ export declare const cliDataSchemas: {
6164
6991
  interrupted: z.ZodNumber;
6165
6992
  buckets: z.ZodArray<z.ZodObject<{
6166
6993
  bucket: z.ZodEnum<{
6994
+ input: "input";
6167
6995
  unknown: "unknown";
6996
+ operator: "operator";
6168
6997
  integration: "integration";
6169
6998
  environment: "environment";
6170
- operator: "operator";
6171
6999
  budget: "budget";
6172
7000
  defect: "defect";
6173
7001
  incomplete: "incomplete";
@@ -6271,14 +7099,26 @@ export declare const cliDataSchemas: {
6271
7099
  }, z.core.$strict>>;
6272
7100
  active: z.ZodNumber;
6273
7101
  }, z.core.$strict>;
7102
+ inputs: z.ZodOptional<z.ZodObject<{
7103
+ questions: z.ZodNumber;
7104
+ awaitingAnswer: z.ZodNumber;
7105
+ answeredNotApplied: z.ZodNumber;
7106
+ appliedAwaitingClaim: z.ZodNumber;
7107
+ delivered: z.ZodNumber;
7108
+ carryStale: z.ZodOptional<z.ZodNumber>;
7109
+ closed: z.ZodNumber;
7110
+ declined: z.ZodNumber;
7111
+ followUps: z.ZodNumber;
7112
+ assumptions: z.ZodNumber;
7113
+ }, z.core.$strict>>;
6274
7114
  works: z.ZodObject<{
6275
7115
  rows: z.ZodArray<z.ZodObject<{
6276
7116
  id: z.ZodString;
6277
7117
  title: z.ZodOptional<z.ZodString>;
6278
7118
  outcome: z.ZodEnum<{
7119
+ cancelled: "cancelled";
6279
7120
  failed: "failed";
6280
7121
  accepted: "accepted";
6281
- cancelled: "cancelled";
6282
7122
  }>;
6283
7123
  finishedAt: z.ZodNullable<z.ZodISODateTime>;
6284
7124
  attempts: z.ZodNumber;
@@ -6294,10 +7134,11 @@ export declare const cliDataSchemas: {
6294
7134
  }>;
6295
7135
  rejections: z.ZodArray<z.ZodObject<{
6296
7136
  key: z.ZodEnum<{
7137
+ input: "input";
6297
7138
  unknown: "unknown";
7139
+ operator: "operator";
6298
7140
  integration: "integration";
6299
7141
  environment: "environment";
6300
- operator: "operator";
6301
7142
  budget: "budget";
6302
7143
  defect: "defect";
6303
7144
  incomplete: "incomplete";
@@ -6340,10 +7181,10 @@ export declare const cliDataSchemas: {
6340
7181
  cancelled: z.ZodNumber;
6341
7182
  byStatus: z.ZodArray<z.ZodObject<{
6342
7183
  status: z.ZodEnum<{
6343
- ready: "ready";
6344
- failed: "failed";
6345
7184
  cancelled: "cancelled";
6346
7185
  draft: "draft";
7186
+ ready: "ready";
7187
+ failed: "failed";
6347
7188
  running: "running";
6348
7189
  verifying: "verifying";
6349
7190
  reviewing: "reviewing";
@@ -6356,8 +7197,8 @@ export declare const cliDataSchemas: {
6356
7197
  queue: z.ZodObject<{
6357
7198
  paused: z.ZodBoolean;
6358
7199
  reason: z.ZodOptional<z.ZodEnum<{
6359
- runtime: "runtime";
6360
7200
  operator: "operator";
7201
+ runtime: "runtime";
6361
7202
  shutdown: "shutdown";
6362
7203
  "base-check": "base-check";
6363
7204
  reconfigure: "reconfigure";
@@ -6374,6 +7215,7 @@ export declare const cliDataSchemas: {
6374
7215
  timeout: "timeout";
6375
7216
  "provider-auth": "provider-auth";
6376
7217
  stalled: "stalled";
7218
+ "context-exhausted": "context-exhausted";
6377
7219
  "stale-base": "stale-base";
6378
7220
  "empty-result": "empty-result";
6379
7221
  unfinished: "unfinished";
@@ -6382,6 +7224,7 @@ export declare const cliDataSchemas: {
6382
7224
  merge: "merge";
6383
7225
  budget: "budget";
6384
7226
  "needs-lead": "needs-lead";
7227
+ "needs-input": "needs-input";
6385
7228
  }>>>;
6386
7229
  liftedByRun: z.ZodOptional<z.ZodLiteral<true>>;
6387
7230
  code: z.ZodOptional<z.ZodEnum<{
@@ -6408,6 +7251,8 @@ export declare const cliDataSchemas: {
6408
7251
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
6409
7252
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
6410
7253
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
7254
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
7255
+ INPUT_REQUIRED: "INPUT_REQUIRED";
6411
7256
  REVISION_CONFLICT: "REVISION_CONFLICT";
6412
7257
  CANCELLED: "CANCELLED";
6413
7258
  NOT_FOUND: "NOT_FOUND";
@@ -6422,8 +7267,8 @@ export declare const cliDataSchemas: {
6422
7267
  INTERNAL: "INTERNAL";
6423
7268
  }>>;
6424
7269
  actor: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6425
- controller: "controller";
6426
7270
  lead: "lead";
7271
+ controller: "controller";
6427
7272
  user: "user";
6428
7273
  }>>>;
6429
7274
  action: z.ZodOptional<z.ZodEnum<{
@@ -6440,6 +7285,8 @@ export declare const cliDataSchemas: {
6440
7285
  "resume-queue": "resume-queue";
6441
7286
  "fix-environment": "fix-environment";
6442
7287
  "fix-access": "fix-access";
7288
+ "answer-input": "answer-input";
7289
+ "apply-input": "apply-input";
6443
7290
  }>>;
6444
7291
  }, z.core.$strict>;
6445
7292
  controller: z.ZodOptional<z.ZodObject<{
@@ -6453,10 +7300,10 @@ export declare const cliDataSchemas: {
6453
7300
  runId: z.ZodString;
6454
7301
  attempt: z.ZodNumber;
6455
7302
  phase: z.ZodEnum<{
6456
- ready: "ready";
6457
- failed: "failed";
6458
7303
  cancelled: "cancelled";
6459
7304
  draft: "draft";
7305
+ ready: "ready";
7306
+ failed: "failed";
6460
7307
  running: "running";
6461
7308
  verifying: "verifying";
6462
7309
  reviewing: "reviewing";
@@ -6488,10 +7335,10 @@ export declare const cliDataSchemas: {
6488
7335
  workId: z.ZodString;
6489
7336
  attempt: z.ZodNumber;
6490
7337
  phase: z.ZodEnum<{
6491
- ready: "ready";
6492
- failed: "failed";
6493
7338
  cancelled: "cancelled";
6494
7339
  draft: "draft";
7340
+ ready: "ready";
7341
+ failed: "failed";
6495
7342
  running: "running";
6496
7343
  verifying: "verifying";
6497
7344
  reviewing: "reviewing";
@@ -6508,10 +7355,10 @@ export declare const cliDataSchemas: {
6508
7355
  graphId: z.ZodString;
6509
7356
  title: z.ZodString;
6510
7357
  status: z.ZodEnum<{
6511
- ready: "ready";
6512
- failed: "failed";
6513
7358
  cancelled: "cancelled";
6514
7359
  draft: "draft";
7360
+ ready: "ready";
7361
+ failed: "failed";
6515
7362
  running: "running";
6516
7363
  verifying: "verifying";
6517
7364
  reviewing: "reviewing";
@@ -6528,6 +7375,7 @@ export declare const cliDataSchemas: {
6528
7375
  timeout: "timeout";
6529
7376
  "provider-auth": "provider-auth";
6530
7377
  stalled: "stalled";
7378
+ "context-exhausted": "context-exhausted";
6531
7379
  "stale-base": "stale-base";
6532
7380
  "empty-result": "empty-result";
6533
7381
  unfinished: "unfinished";
@@ -6536,6 +7384,7 @@ export declare const cliDataSchemas: {
6536
7384
  merge: "merge";
6537
7385
  budget: "budget";
6538
7386
  "needs-lead": "needs-lead";
7387
+ "needs-input": "needs-input";
6539
7388
  }>>;
6540
7389
  failure: z.ZodOptional<z.ZodString>;
6541
7390
  hold: z.ZodOptional<z.ZodObject<{
@@ -6573,6 +7422,8 @@ export declare const cliDataSchemas: {
6573
7422
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
6574
7423
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
6575
7424
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
7425
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
7426
+ INPUT_REQUIRED: "INPUT_REQUIRED";
6576
7427
  REVISION_CONFLICT: "REVISION_CONFLICT";
6577
7428
  CANCELLED: "CANCELLED";
6578
7429
  NOT_FOUND: "NOT_FOUND";
@@ -6591,8 +7442,8 @@ export declare const cliDataSchemas: {
6591
7442
  blockersTruncated: z.ZodOptional<z.ZodNumber>;
6592
7443
  next: z.ZodObject<{
6593
7444
  actor: z.ZodNullable<z.ZodEnum<{
6594
- controller: "controller";
6595
7445
  lead: "lead";
7446
+ controller: "controller";
6596
7447
  user: "user";
6597
7448
  }>>;
6598
7449
  action: z.ZodEnum<{
@@ -6609,10 +7460,12 @@ export declare const cliDataSchemas: {
6609
7460
  "resume-queue": "resume-queue";
6610
7461
  "fix-environment": "fix-environment";
6611
7462
  "fix-access": "fix-access";
7463
+ "answer-input": "answer-input";
7464
+ "apply-input": "apply-input";
6612
7465
  }>;
6613
7466
  step: z.ZodOptional<z.ZodEnum<{
6614
- accepted: "accepted";
6615
7467
  cancelled: "cancelled";
7468
+ accepted: "accepted";
6616
7469
  "recovery-awaiting-lead": "recovery-awaiting-lead";
6617
7470
  "recovery-analyzing": "recovery-analyzing";
6618
7471
  "recovery-applying": "recovery-applying";
@@ -6661,6 +7514,8 @@ export declare const cliDataSchemas: {
6661
7514
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
6662
7515
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
6663
7516
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
7517
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
7518
+ INPUT_REQUIRED: "INPUT_REQUIRED";
6664
7519
  REVISION_CONFLICT: "REVISION_CONFLICT";
6665
7520
  CANCELLED: "CANCELLED";
6666
7521
  NOT_FOUND: "NOT_FOUND";
@@ -6683,6 +7538,7 @@ export declare const cliDataSchemas: {
6683
7538
  timeout: "timeout";
6684
7539
  "provider-auth": "provider-auth";
6685
7540
  stalled: "stalled";
7541
+ "context-exhausted": "context-exhausted";
6686
7542
  "stale-base": "stale-base";
6687
7543
  "empty-result": "empty-result";
6688
7544
  unfinished: "unfinished";
@@ -6691,6 +7547,7 @@ export declare const cliDataSchemas: {
6691
7547
  merge: "merge";
6692
7548
  budget: "budget";
6693
7549
  "needs-lead": "needs-lead";
7550
+ "needs-input": "needs-input";
6694
7551
  "runtime-missing": "runtime-missing";
6695
7552
  "controller-busy": "controller-busy";
6696
7553
  "operator-pause": "operator-pause";
@@ -6699,16 +7556,16 @@ export declare const cliDataSchemas: {
6699
7556
  }>;
6700
7557
  phase: z.ZodEnum<{
6701
7558
  gates: "gates";
6702
- preflight: "preflight";
6703
7559
  review: "review";
7560
+ preflight: "preflight";
6704
7561
  integration: "integration";
6705
7562
  delivery: "delivery";
6706
7563
  claim: "claim";
6707
7564
  implementation: "implementation";
6708
7565
  }>;
6709
7566
  actor: z.ZodNullable<z.ZodEnum<{
6710
- controller: "controller";
6711
7567
  lead: "lead";
7568
+ controller: "controller";
6712
7569
  user: "user";
6713
7570
  }>>;
6714
7571
  action: z.ZodEnum<{
@@ -6725,6 +7582,8 @@ export declare const cliDataSchemas: {
6725
7582
  "resume-queue": "resume-queue";
6726
7583
  "fix-environment": "fix-environment";
6727
7584
  "fix-access": "fix-access";
7585
+ "answer-input": "answer-input";
7586
+ "apply-input": "apply-input";
6728
7587
  }>;
6729
7588
  retryPlanned: z.ZodBoolean;
6730
7589
  message: z.ZodString;
@@ -6748,10 +7607,10 @@ export declare const cliDataSchemas: {
6748
7607
  runId: z.ZodString;
6749
7608
  workId: z.ZodString;
6750
7609
  workStatus: z.ZodOptional<z.ZodEnum<{
6751
- ready: "ready";
6752
- failed: "failed";
6753
7610
  cancelled: "cancelled";
6754
7611
  draft: "draft";
7612
+ ready: "ready";
7613
+ failed: "failed";
6755
7614
  running: "running";
6756
7615
  verifying: "verifying";
6757
7616
  reviewing: "reviewing";
@@ -6764,10 +7623,10 @@ export declare const cliDataSchemas: {
6764
7623
  expired: "expired";
6765
7624
  }>;
6766
7625
  phase: z.ZodEnum<{
6767
- ready: "ready";
6768
- failed: "failed";
6769
7626
  cancelled: "cancelled";
6770
7627
  draft: "draft";
7628
+ ready: "ready";
7629
+ failed: "failed";
6771
7630
  running: "running";
6772
7631
  verifying: "verifying";
6773
7632
  reviewing: "reviewing";
@@ -6784,6 +7643,7 @@ export declare const cliDataSchemas: {
6784
7643
  timeout: "timeout";
6785
7644
  "provider-auth": "provider-auth";
6786
7645
  stalled: "stalled";
7646
+ "context-exhausted": "context-exhausted";
6787
7647
  "stale-base": "stale-base";
6788
7648
  "empty-result": "empty-result";
6789
7649
  unfinished: "unfinished";
@@ -6792,6 +7652,7 @@ export declare const cliDataSchemas: {
6792
7652
  merge: "merge";
6793
7653
  budget: "budget";
6794
7654
  "needs-lead": "needs-lead";
7655
+ "needs-input": "needs-input";
6795
7656
  }>>;
6796
7657
  code: z.ZodEnum<{
6797
7658
  INVALID_INPUT: "INVALID_INPUT";
@@ -6817,6 +7678,8 @@ export declare const cliDataSchemas: {
6817
7678
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
6818
7679
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
6819
7680
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
7681
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
7682
+ INPUT_REQUIRED: "INPUT_REQUIRED";
6820
7683
  REVISION_CONFLICT: "REVISION_CONFLICT";
6821
7684
  CANCELLED: "CANCELLED";
6822
7685
  NOT_FOUND: "NOT_FOUND";
@@ -6870,10 +7733,38 @@ export declare const cliDataSchemas: {
6870
7733
  used: z.ZodNumber;
6871
7734
  budget: z.ZodNumber;
6872
7735
  }, z.core.$strict>>;
7736
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7737
+ requestId: z.ZodString;
7738
+ workId: z.ZodString;
7739
+ kind: z.ZodEnum<{
7740
+ question: "question";
7741
+ "follow-up": "follow-up";
7742
+ }>;
7743
+ state: z.ZodEnum<{
7744
+ "awaiting-answer": "awaiting-answer";
7745
+ "answered-not-applied": "answered-not-applied";
7746
+ "applied-awaiting-claim": "applied-awaiting-claim";
7747
+ "carry-stale": "carry-stale";
7748
+ }>;
7749
+ severity: z.ZodNumber;
7750
+ question: z.ZodString;
7751
+ options: z.ZodArray<z.ZodString>;
7752
+ answer: z.ZodOptional<z.ZodObject<{
7753
+ revision: z.ZodNumber;
7754
+ digest: z.ZodString;
7755
+ excerpt: z.ZodString;
7756
+ }, z.core.$strict>>;
7757
+ origin: z.ZodObject<{
7758
+ graphDigest: z.ZodString;
7759
+ orderDigest: z.ZodString;
7760
+ contextDigest: z.ZodNullable<z.ZodString>;
7761
+ }, z.core.$strict>;
7762
+ targetDigest: z.ZodOptional<z.ZodString>;
7763
+ }, z.core.$strict>>>;
6873
7764
  next: z.ZodObject<{
6874
7765
  actor: z.ZodNullable<z.ZodEnum<{
6875
- controller: "controller";
6876
7766
  lead: "lead";
7767
+ controller: "controller";
6877
7768
  user: "user";
6878
7769
  }>>;
6879
7770
  action: z.ZodEnum<{
@@ -6890,10 +7781,12 @@ export declare const cliDataSchemas: {
6890
7781
  "resume-queue": "resume-queue";
6891
7782
  "fix-environment": "fix-environment";
6892
7783
  "fix-access": "fix-access";
7784
+ "answer-input": "answer-input";
7785
+ "apply-input": "apply-input";
6893
7786
  }>;
6894
7787
  step: z.ZodOptional<z.ZodEnum<{
6895
- accepted: "accepted";
6896
7788
  cancelled: "cancelled";
7789
+ accepted: "accepted";
6897
7790
  "recovery-awaiting-lead": "recovery-awaiting-lead";
6898
7791
  "recovery-analyzing": "recovery-analyzing";
6899
7792
  "recovery-applying": "recovery-applying";
@@ -6940,6 +7833,8 @@ export declare const cliDataSchemas: {
6940
7833
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
6941
7834
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
6942
7835
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
7836
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
7837
+ INPUT_REQUIRED: "INPUT_REQUIRED";
6943
7838
  REVISION_CONFLICT: "REVISION_CONFLICT";
6944
7839
  CANCELLED: "CANCELLED";
6945
7840
  NOT_FOUND: "NOT_FOUND";
@@ -6964,6 +7859,7 @@ export declare const cliDataSchemas: {
6964
7859
  budgetsWithin: z.ZodNumber;
6965
7860
  budgetsShared: z.ZodDefault<z.ZodNumber>;
6966
7861
  repairs: z.ZodNumber;
7862
+ inputs: z.ZodDefault<z.ZodNumber>;
6967
7863
  intentions: z.ZodNumber;
6968
7864
  intentionsDropped: z.ZodNumber;
6969
7865
  bySize: z.ZodBoolean;
@@ -7043,6 +7939,8 @@ export declare const cliDataSchemas: {
7043
7939
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
7044
7940
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
7045
7941
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
7942
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
7943
+ INPUT_REQUIRED: "INPUT_REQUIRED";
7046
7944
  REVISION_CONFLICT: "REVISION_CONFLICT";
7047
7945
  CANCELLED: "CANCELLED";
7048
7946
  NOT_FOUND: "NOT_FOUND";
@@ -7257,8 +8155,8 @@ export declare const cliDataSchemas: {
7257
8155
  runId: z.ZodString;
7258
8156
  outcome: z.ZodString;
7259
8157
  status: z.ZodEnum<{
7260
- failed: "failed";
7261
8158
  delivered: "delivered";
8159
+ failed: "failed";
7262
8160
  conflict: "conflict";
7263
8161
  uncertain: "uncertain";
7264
8162
  intent: "intent";
@@ -7305,9 +8203,9 @@ export declare const cliDataSchemas: {
7305
8203
  key: z.ZodString;
7306
8204
  revision: z.ZodString;
7307
8205
  status: z.ZodEnum<{
7308
- failed: "failed";
7309
8206
  pending: "pending";
7310
8207
  delivered: "delivered";
8208
+ failed: "failed";
7311
8209
  conflict: "conflict";
7312
8210
  uncertain: "uncertain";
7313
8211
  }>;
@@ -7332,9 +8230,9 @@ export declare const cliDataSchemas: {
7332
8230
  key: z.ZodString;
7333
8231
  revision: z.ZodString;
7334
8232
  status: z.ZodEnum<{
7335
- failed: "failed";
7336
8233
  pending: "pending";
7337
8234
  delivered: "delivered";
8235
+ failed: "failed";
7338
8236
  conflict: "conflict";
7339
8237
  uncertain: "uncertain";
7340
8238
  }>;
@@ -7346,6 +8244,479 @@ export declare const cliDataSchemas: {
7346
8244
  updatedAt: z.ZodISODateTime;
7347
8245
  }, z.core.$strict>>>;
7348
8246
  }, z.core.$strict>;
8247
+ readonly 'input-list': z.ZodObject<{
8248
+ requests: z.ZodArray<z.ZodObject<{
8249
+ id: z.ZodString;
8250
+ workId: z.ZodString;
8251
+ kind: z.ZodEnum<{
8252
+ question: "question";
8253
+ "follow-up": "follow-up";
8254
+ }>;
8255
+ blocking: z.ZodBoolean;
8256
+ lifecycle: z.ZodEnum<{
8257
+ pending: "pending";
8258
+ answered: "answered";
8259
+ applied: "applied";
8260
+ cancelled: "cancelled";
8261
+ superseded: "superseded";
8262
+ }>;
8263
+ state: z.ZodOptional<z.ZodEnum<{
8264
+ "awaiting-answer": "awaiting-answer";
8265
+ "answered-not-applied": "answered-not-applied";
8266
+ "applied-awaiting-claim": "applied-awaiting-claim";
8267
+ delivered: "delivered";
8268
+ "carry-stale": "carry-stale";
8269
+ }>>;
8270
+ severity: z.ZodNumber;
8271
+ version: z.ZodNumber;
8272
+ answers: z.ZodNumber;
8273
+ createdAt: z.ZodISODateTime;
8274
+ }, z.core.$strict>>;
8275
+ }, z.core.$strict>;
8276
+ readonly 'input-show': z.ZodObject<{
8277
+ id: z.ZodString;
8278
+ kind: z.ZodEnum<{
8279
+ question: "question";
8280
+ "follow-up": "follow-up";
8281
+ }>;
8282
+ blocking: z.ZodBoolean;
8283
+ workId: z.ZodString;
8284
+ graphId: z.ZodString;
8285
+ runId: z.ZodString;
8286
+ attempt: z.ZodNumber;
8287
+ callId: z.ZodNullable<z.ZodString>;
8288
+ question: z.ZodObject<{
8289
+ question: z.ZodString;
8290
+ options: z.ZodArray<z.ZodObject<{
8291
+ id: z.ZodString;
8292
+ label: z.ZodString;
8293
+ consequence: z.ZodNullable<z.ZodString>;
8294
+ }, z.core.$strict>>;
8295
+ recommended: z.ZodNullable<z.ZodString>;
8296
+ severity: z.ZodNumber;
8297
+ rationale: z.ZodString;
8298
+ affects: z.ZodArray<z.ZodEnum<{
8299
+ acceptance: "acceptance";
8300
+ contract: "contract";
8301
+ product: "product";
8302
+ api: "api";
8303
+ migration: "migration";
8304
+ }>>;
8305
+ }, z.core.$strict>;
8306
+ effectiveSeverity: z.ZodNumber;
8307
+ floors: z.ZodArray<z.ZodEnum<{
8308
+ declared: "declared";
8309
+ "critical-path": "critical-path";
8310
+ }>>;
8311
+ criticalHits: z.ZodArray<z.ZodString>;
8312
+ draft: z.ZodNullable<z.ZodObject<{
8313
+ digest: z.ZodString;
8314
+ files: z.ZodArray<z.ZodString>;
8315
+ }, z.core.$strict>>;
8316
+ createdAt: z.ZodISODateTime;
8317
+ originBasis: z.ZodObject<{
8318
+ source: z.ZodObject<{
8319
+ connector: z.ZodString;
8320
+ ref: z.ZodString;
8321
+ revision: z.ZodString;
8322
+ }, z.core.$strict>;
8323
+ graphId: z.ZodString;
8324
+ graphDigest: z.ZodString;
8325
+ orderDigest: z.ZodString;
8326
+ policyDigest: z.ZodString;
8327
+ contextDigest: z.ZodNullable<z.ZodString>;
8328
+ baseSha: z.ZodNullable<z.ZodString>;
8329
+ inputPolicy: z.ZodObject<{
8330
+ threshold: z.ZodDefault<z.ZodNumber>;
8331
+ criticalPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
8332
+ }, z.core.$strict>;
8333
+ contentDigest: z.ZodOptional<z.ZodString>;
8334
+ }, z.core.$strict>;
8335
+ lifecycle: z.ZodEnum<{
8336
+ pending: "pending";
8337
+ answered: "answered";
8338
+ applied: "applied";
8339
+ cancelled: "cancelled";
8340
+ superseded: "superseded";
8341
+ }>;
8342
+ answers: z.ZodArray<z.ZodObject<{
8343
+ revision: z.ZodNumber;
8344
+ text: z.ZodString;
8345
+ optionId: z.ZodNullable<z.ZodString>;
8346
+ kind: z.ZodEnum<{
8347
+ clarification: "clarification";
8348
+ "requirement-change": "requirement-change";
8349
+ }>;
8350
+ actor: z.ZodObject<{
8351
+ kind: z.ZodEnum<{
8352
+ operator: "operator";
8353
+ lead: "lead";
8354
+ host: "host";
8355
+ }>;
8356
+ id: z.ZodOptional<z.ZodString>;
8357
+ }, z.core.$strict>;
8358
+ messageRef: z.ZodOptional<z.ZodString>;
8359
+ digest: z.ZodString;
8360
+ at: z.ZodISODateTime;
8361
+ }, z.core.$strict>>;
8362
+ target: z.ZodOptional<z.ZodObject<{
8363
+ originDigest: z.ZodString;
8364
+ answerDigest: z.ZodString;
8365
+ graphDigest: z.ZodString;
8366
+ orderDigest: z.ZodString;
8367
+ contentDigest: z.ZodOptional<z.ZodString>;
8368
+ policyDigest: z.ZodString;
8369
+ contextDigest: z.ZodNullable<z.ZodString>;
8370
+ review: z.ZodNullable<z.ZodObject<{
8371
+ round: z.ZodNumber;
8372
+ approved: z.ZodBoolean;
8373
+ reviewerBinding: z.ZodNullable<z.ZodString>;
8374
+ }, z.core.$strict>>;
8375
+ actor: z.ZodEnum<{
8376
+ operator: "operator";
8377
+ agent: "agent";
8378
+ }>;
8379
+ digest: z.ZodString;
8380
+ }, z.core.$strict>>;
8381
+ delivered: z.ZodOptional<z.ZodObject<{
8382
+ runId: z.ZodString;
8383
+ callId: z.ZodString;
8384
+ at: z.ZodISODateTime;
8385
+ }, z.core.$strict>>;
8386
+ closed: z.ZodOptional<z.ZodObject<{
8387
+ at: z.ZodISODateTime;
8388
+ by: z.ZodEnum<{
8389
+ operator: "operator";
8390
+ lead: "lead";
8391
+ host: "host";
8392
+ controller: "controller";
8393
+ }>;
8394
+ reason: z.ZodString;
8395
+ successor: z.ZodOptional<z.ZodString>;
8396
+ carry: z.ZodOptional<z.ZodBoolean>;
8397
+ previous: z.ZodOptional<z.ZodObject<{
8398
+ at: z.ZodISODateTime;
8399
+ by: z.ZodEnum<{
8400
+ operator: "operator";
8401
+ lead: "lead";
8402
+ host: "host";
8403
+ controller: "controller";
8404
+ }>;
8405
+ reason: z.ZodString;
8406
+ successor: z.ZodOptional<z.ZodString>;
8407
+ carry: z.ZodOptional<z.ZodBoolean>;
8408
+ }, z.core.$strict>>;
8409
+ }, z.core.$strict>>;
8410
+ stale: z.ZodOptional<z.ZodObject<{
8411
+ targetDigest: z.ZodString;
8412
+ reason: z.ZodEnum<{
8413
+ context: "context";
8414
+ graph: "graph";
8415
+ order: "order";
8416
+ policy: "policy";
8417
+ }>;
8418
+ at: z.ZodISODateTime;
8419
+ }, z.core.$strict>>;
8420
+ normalized: z.ZodOptional<z.ZodArray<z.ZodString>>;
8421
+ version: z.ZodNumber;
8422
+ }, z.core.$strict>;
8423
+ readonly 'input-answer': z.ZodObject<{
8424
+ request: z.ZodObject<{
8425
+ id: z.ZodString;
8426
+ kind: z.ZodEnum<{
8427
+ question: "question";
8428
+ "follow-up": "follow-up";
8429
+ }>;
8430
+ blocking: z.ZodBoolean;
8431
+ workId: z.ZodString;
8432
+ graphId: z.ZodString;
8433
+ runId: z.ZodString;
8434
+ attempt: z.ZodNumber;
8435
+ callId: z.ZodNullable<z.ZodString>;
8436
+ question: z.ZodObject<{
8437
+ question: z.ZodString;
8438
+ options: z.ZodArray<z.ZodObject<{
8439
+ id: z.ZodString;
8440
+ label: z.ZodString;
8441
+ consequence: z.ZodNullable<z.ZodString>;
8442
+ }, z.core.$strict>>;
8443
+ recommended: z.ZodNullable<z.ZodString>;
8444
+ severity: z.ZodNumber;
8445
+ rationale: z.ZodString;
8446
+ affects: z.ZodArray<z.ZodEnum<{
8447
+ acceptance: "acceptance";
8448
+ contract: "contract";
8449
+ product: "product";
8450
+ api: "api";
8451
+ migration: "migration";
8452
+ }>>;
8453
+ }, z.core.$strict>;
8454
+ effectiveSeverity: z.ZodNumber;
8455
+ floors: z.ZodArray<z.ZodEnum<{
8456
+ declared: "declared";
8457
+ "critical-path": "critical-path";
8458
+ }>>;
8459
+ criticalHits: z.ZodArray<z.ZodString>;
8460
+ draft: z.ZodNullable<z.ZodObject<{
8461
+ digest: z.ZodString;
8462
+ files: z.ZodArray<z.ZodString>;
8463
+ }, z.core.$strict>>;
8464
+ createdAt: z.ZodISODateTime;
8465
+ originBasis: z.ZodObject<{
8466
+ source: z.ZodObject<{
8467
+ connector: z.ZodString;
8468
+ ref: z.ZodString;
8469
+ revision: z.ZodString;
8470
+ }, z.core.$strict>;
8471
+ graphId: z.ZodString;
8472
+ graphDigest: z.ZodString;
8473
+ orderDigest: z.ZodString;
8474
+ policyDigest: z.ZodString;
8475
+ contextDigest: z.ZodNullable<z.ZodString>;
8476
+ baseSha: z.ZodNullable<z.ZodString>;
8477
+ inputPolicy: z.ZodObject<{
8478
+ threshold: z.ZodDefault<z.ZodNumber>;
8479
+ criticalPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
8480
+ }, z.core.$strict>;
8481
+ contentDigest: z.ZodOptional<z.ZodString>;
8482
+ }, z.core.$strict>;
8483
+ lifecycle: z.ZodEnum<{
8484
+ pending: "pending";
8485
+ answered: "answered";
8486
+ applied: "applied";
8487
+ cancelled: "cancelled";
8488
+ superseded: "superseded";
8489
+ }>;
8490
+ answers: z.ZodArray<z.ZodObject<{
8491
+ revision: z.ZodNumber;
8492
+ text: z.ZodString;
8493
+ optionId: z.ZodNullable<z.ZodString>;
8494
+ kind: z.ZodEnum<{
8495
+ clarification: "clarification";
8496
+ "requirement-change": "requirement-change";
8497
+ }>;
8498
+ actor: z.ZodObject<{
8499
+ kind: z.ZodEnum<{
8500
+ operator: "operator";
8501
+ lead: "lead";
8502
+ host: "host";
8503
+ }>;
8504
+ id: z.ZodOptional<z.ZodString>;
8505
+ }, z.core.$strict>;
8506
+ messageRef: z.ZodOptional<z.ZodString>;
8507
+ digest: z.ZodString;
8508
+ at: z.ZodISODateTime;
8509
+ }, z.core.$strict>>;
8510
+ target: z.ZodOptional<z.ZodObject<{
8511
+ originDigest: z.ZodString;
8512
+ answerDigest: z.ZodString;
8513
+ graphDigest: z.ZodString;
8514
+ orderDigest: z.ZodString;
8515
+ contentDigest: z.ZodOptional<z.ZodString>;
8516
+ policyDigest: z.ZodString;
8517
+ contextDigest: z.ZodNullable<z.ZodString>;
8518
+ review: z.ZodNullable<z.ZodObject<{
8519
+ round: z.ZodNumber;
8520
+ approved: z.ZodBoolean;
8521
+ reviewerBinding: z.ZodNullable<z.ZodString>;
8522
+ }, z.core.$strict>>;
8523
+ actor: z.ZodEnum<{
8524
+ operator: "operator";
8525
+ agent: "agent";
8526
+ }>;
8527
+ digest: z.ZodString;
8528
+ }, z.core.$strict>>;
8529
+ delivered: z.ZodOptional<z.ZodObject<{
8530
+ runId: z.ZodString;
8531
+ callId: z.ZodString;
8532
+ at: z.ZodISODateTime;
8533
+ }, z.core.$strict>>;
8534
+ closed: z.ZodOptional<z.ZodObject<{
8535
+ at: z.ZodISODateTime;
8536
+ by: z.ZodEnum<{
8537
+ operator: "operator";
8538
+ lead: "lead";
8539
+ host: "host";
8540
+ controller: "controller";
8541
+ }>;
8542
+ reason: z.ZodString;
8543
+ successor: z.ZodOptional<z.ZodString>;
8544
+ carry: z.ZodOptional<z.ZodBoolean>;
8545
+ previous: z.ZodOptional<z.ZodObject<{
8546
+ at: z.ZodISODateTime;
8547
+ by: z.ZodEnum<{
8548
+ operator: "operator";
8549
+ lead: "lead";
8550
+ host: "host";
8551
+ controller: "controller";
8552
+ }>;
8553
+ reason: z.ZodString;
8554
+ successor: z.ZodOptional<z.ZodString>;
8555
+ carry: z.ZodOptional<z.ZodBoolean>;
8556
+ }, z.core.$strict>>;
8557
+ }, z.core.$strict>>;
8558
+ stale: z.ZodOptional<z.ZodObject<{
8559
+ targetDigest: z.ZodString;
8560
+ reason: z.ZodEnum<{
8561
+ context: "context";
8562
+ graph: "graph";
8563
+ order: "order";
8564
+ policy: "policy";
8565
+ }>;
8566
+ at: z.ZodISODateTime;
8567
+ }, z.core.$strict>>;
8568
+ normalized: z.ZodOptional<z.ZodArray<z.ZodString>>;
8569
+ version: z.ZodNumber;
8570
+ }, z.core.$strict>;
8571
+ answer: z.ZodObject<{
8572
+ revision: z.ZodNumber;
8573
+ text: z.ZodString;
8574
+ optionId: z.ZodNullable<z.ZodString>;
8575
+ kind: z.ZodEnum<{
8576
+ clarification: "clarification";
8577
+ "requirement-change": "requirement-change";
8578
+ }>;
8579
+ actor: z.ZodObject<{
8580
+ kind: z.ZodEnum<{
8581
+ operator: "operator";
8582
+ lead: "lead";
8583
+ host: "host";
8584
+ }>;
8585
+ id: z.ZodOptional<z.ZodString>;
8586
+ }, z.core.$strict>;
8587
+ messageRef: z.ZodOptional<z.ZodString>;
8588
+ digest: z.ZodString;
8589
+ at: z.ZodISODateTime;
8590
+ }, z.core.$strict>;
8591
+ changed: z.ZodBoolean;
8592
+ }, z.core.$strict>;
8593
+ readonly 'input-context': z.ZodObject<{
8594
+ requestId: z.ZodString;
8595
+ answerDigest: z.ZodString;
8596
+ digest: z.ZodString;
8597
+ out: z.ZodString;
8598
+ }, z.core.$strict>;
8599
+ readonly 'input-target': z.ZodObject<{
8600
+ requestId: z.ZodString;
8601
+ target: z.ZodOptional<z.ZodObject<{
8602
+ originDigest: z.ZodString;
8603
+ answerDigest: z.ZodString;
8604
+ graphDigest: z.ZodString;
8605
+ orderDigest: z.ZodString;
8606
+ contentDigest: z.ZodOptional<z.ZodString>;
8607
+ policyDigest: z.ZodString;
8608
+ contextDigest: z.ZodNullable<z.ZodString>;
8609
+ review: z.ZodNullable<z.ZodObject<{
8610
+ round: z.ZodNumber;
8611
+ approved: z.ZodBoolean;
8612
+ reviewerBinding: z.ZodNullable<z.ZodString>;
8613
+ }, z.core.$strict>>;
8614
+ actor: z.ZodEnum<{
8615
+ operator: "operator";
8616
+ agent: "agent";
8617
+ }>;
8618
+ digest: z.ZodString;
8619
+ }, z.core.$strict>>;
8620
+ problems: z.ZodArray<z.ZodString>;
8621
+ }, z.core.$strict>;
8622
+ readonly 'input-apply': z.ZodObject<{
8623
+ requestId: z.ZodString;
8624
+ applied: z.ZodBoolean;
8625
+ changed: z.ZodBoolean;
8626
+ lifecycle: z.ZodEnum<{
8627
+ pending: "pending";
8628
+ answered: "answered";
8629
+ applied: "applied";
8630
+ cancelled: "cancelled";
8631
+ superseded: "superseded";
8632
+ }>;
8633
+ work: z.ZodOptional<z.ZodObject<{
8634
+ id: z.ZodString;
8635
+ status: z.ZodEnum<{
8636
+ cancelled: "cancelled";
8637
+ draft: "draft";
8638
+ ready: "ready";
8639
+ failed: "failed";
8640
+ running: "running";
8641
+ verifying: "verifying";
8642
+ reviewing: "reviewing";
8643
+ integrating: "integrating";
8644
+ done: "done";
8645
+ }>;
8646
+ attempt: z.ZodNumber;
8647
+ }, z.core.$strict>>;
8648
+ active: z.ZodOptional<z.ZodArray<z.ZodObject<{
8649
+ id: z.ZodString;
8650
+ workId: z.ZodString;
8651
+ }, z.core.$strict>>>;
8652
+ joint: z.ZodOptional<z.ZodLiteral<true>>;
8653
+ blocker: z.ZodOptional<z.ZodObject<{
8654
+ code: z.ZodEnum<{
8655
+ INVALID_INPUT: "INVALID_INPUT";
8656
+ UNSUPPORTED_COMMAND: "UNSUPPORTED_COMMAND";
8657
+ UNSUPPORTED_VERSION: "UNSUPPORTED_VERSION";
8658
+ GRAPH_CYCLE: "GRAPH_CYCLE";
8659
+ GRAPH_UNKNOWN_DEPENDENCY: "GRAPH_UNKNOWN_DEPENDENCY";
8660
+ GRAPH_DUPLICATE_ID: "GRAPH_DUPLICATE_ID";
8661
+ GATE_UNKNOWN: "GATE_UNKNOWN";
8662
+ GATE_GROUP_CYCLE: "GATE_GROUP_CYCLE";
8663
+ REVIEWER_SAME_VENDOR: "REVIEWER_SAME_VENDOR";
8664
+ REVIEWER_MISSING: "REVIEWER_MISSING";
8665
+ RESPONSE_TOO_LARGE: "RESPONSE_TOO_LARGE";
8666
+ APPROVAL_STALE: "APPROVAL_STALE";
8667
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
8668
+ LEASE_STALE: "LEASE_STALE";
8669
+ CONTROLLER_BUSY: "CONTROLLER_BUSY";
8670
+ PAUSED: "PAUSED";
8671
+ NOT_READY: "NOT_READY";
8672
+ SCOPE_VIOLATION: "SCOPE_VIOLATION";
8673
+ GATE_FAILED: "GATE_FAILED";
8674
+ REVIEW_REJECTED: "REVIEW_REJECTED";
8675
+ BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
8676
+ BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
8677
+ ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
8678
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
8679
+ INPUT_REQUIRED: "INPUT_REQUIRED";
8680
+ REVISION_CONFLICT: "REVISION_CONFLICT";
8681
+ CANCELLED: "CANCELLED";
8682
+ NOT_FOUND: "NOT_FOUND";
8683
+ PATH_CONFLICT: "PATH_CONFLICT";
8684
+ STATE_VERSION_UNSUPPORTED: "STATE_VERSION_UNSUPPORTED";
8685
+ RUNTIME_UNAVAILABLE: "RUNTIME_UNAVAILABLE";
8686
+ REVIEW_PROTOCOL_INVALID: "REVIEW_PROTOCOL_INVALID";
8687
+ SANDBOX_UNAVAILABLE: "SANDBOX_UNAVAILABLE";
8688
+ GIT_FAILED: "GIT_FAILED";
8689
+ STORAGE_FAILED: "STORAGE_FAILED";
8690
+ DELIVERY_FAILED: "DELIVERY_FAILED";
8691
+ INTERNAL: "INTERNAL";
8692
+ }>;
8693
+ message: z.ZodString;
8694
+ }, z.core.$strict>>;
8695
+ }, z.core.$strict>;
8696
+ readonly 'input-cancel': z.ZodObject<{
8697
+ requestId: z.ZodString;
8698
+ lifecycle: z.ZodEnum<{
8699
+ pending: "pending";
8700
+ answered: "answered";
8701
+ applied: "applied";
8702
+ cancelled: "cancelled";
8703
+ superseded: "superseded";
8704
+ }>;
8705
+ version: z.ZodNumber;
8706
+ changed: z.ZodBoolean;
8707
+ }, z.core.$strict>;
8708
+ readonly 'input-supersede': z.ZodObject<{
8709
+ requestId: z.ZodString;
8710
+ lifecycle: z.ZodEnum<{
8711
+ pending: "pending";
8712
+ answered: "answered";
8713
+ applied: "applied";
8714
+ cancelled: "cancelled";
8715
+ superseded: "superseded";
8716
+ }>;
8717
+ version: z.ZodNumber;
8718
+ changed: z.ZodBoolean;
8719
+ }, z.core.$strict>;
7349
8720
  readonly version: z.ZodObject<{
7350
8721
  harness: z.ZodString;
7351
8722
  apiVersion: z.ZodLiteral<"devcontour-harness/v1alpha1">;
@@ -7376,6 +8747,8 @@ export declare const cliErrorSchema: z.ZodObject<{
7376
8747
  BUDGET_EXHAUSTED: "BUDGET_EXHAUSTED";
7377
8748
  BUDGET_UNKNOWN: "BUDGET_UNKNOWN";
7378
8749
  ATTEMPTS_EXHAUSTED: "ATTEMPTS_EXHAUSTED";
8750
+ CONTEXT_EXHAUSTED: "CONTEXT_EXHAUSTED";
8751
+ INPUT_REQUIRED: "INPUT_REQUIRED";
7379
8752
  REVISION_CONFLICT: "REVISION_CONFLICT";
7380
8753
  CANCELLED: "CANCELLED";
7381
8754
  NOT_FOUND: "NOT_FOUND";