@patronage/software-factory 1.0.0-alpha.45 → 1.0.0-alpha.46

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.
package/dist/schemas.d.ts CHANGED
@@ -1,27 +1,25 @@
1
1
  import { z } from "zod";
2
- //#region src/packages/review-prompt-sections/schema.d.ts
3
- declare const reviewPromptSectionSchema: z.ZodObject<{
2
+ import "@patronage/factory-ci";
3
+ export declare const reviewPromptSectionSchema: z.ZodObject<{
4
4
  provenance: z.ZodEnum<{
5
5
  "coding-standards": "coding-standards";
6
- "prior-review-ledger": "prior-review-ledger";
7
6
  "issue-review-focus": "issue-review-focus";
7
+ "prior-review-ledger": "prior-review-ledger";
8
8
  }>;
9
9
  source: z.ZodString;
10
10
  text: z.ZodString;
11
11
  }, z.core.$strict>;
12
12
  type ReviewPromptSection = z.infer<typeof reviewPromptSectionSchema>;
13
13
  type ReviewPromptSectionProvenance = ReviewPromptSection["provenance"];
14
- declare const reviewPromptSectionsSchema: z.ZodArray<z.ZodObject<{
14
+ export declare const reviewPromptSectionsSchema: z.ZodArray<z.ZodObject<{
15
15
  provenance: z.ZodEnum<{
16
16
  "coding-standards": "coding-standards";
17
- "prior-review-ledger": "prior-review-ledger";
18
17
  "issue-review-focus": "issue-review-focus";
18
+ "prior-review-ledger": "prior-review-ledger";
19
19
  }>;
20
20
  source: z.ZodString;
21
21
  text: z.ZodString;
22
22
  }, z.core.$strict>>;
23
- //#endregion
24
- //#region src/policy-resolution.d.ts
25
23
  /** How a gate resolved the review policy it evaluated a candidate under. */
26
24
  declare const policyResolutionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
25
  basePolicyDigest: z.ZodString;
@@ -34,16 +32,14 @@ declare const policyResolutionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
34
32
  }, z.core.$strict>, z.ZodObject<{
35
33
  baseRefName: z.ZodString;
36
34
  cause: z.ZodOptional<z.ZodEnum<{
37
- "no-pull-request": "no-pull-request";
38
35
  "lookup-failed": "lookup-failed";
36
+ "no-pull-request": "no-pull-request";
39
37
  "policy-unreadable": "policy-unreadable";
40
38
  }>>;
41
39
  reason: z.ZodString;
42
40
  status: z.ZodLiteral<"unresolved">;
43
41
  }, z.core.$strict>], "status">;
44
42
  type PolicyResolution = z.infer<typeof policyResolutionSchema>;
45
- //#endregion
46
- //#region src/review-ladder-policy.d.ts
47
43
  type ReviewFindingCategory = "correctness" | "safety" | "coordination" | "maintainability" | "unknown";
48
44
  interface ReviewFindingAttributes {
49
45
  blockingAfterCap?: boolean;
@@ -58,12 +54,8 @@ interface ReviewFindingAttributes {
58
54
  };
59
55
  title: string;
60
56
  }
61
- //#endregion
62
- //#region src/review-rungs.d.ts
63
57
  declare const EVIDENCE_REVIEW_RUNGS: readonly ["independent-model", "oracle", "human"];
64
58
  type EvidenceReviewRung = (typeof EVIDENCE_REVIEW_RUNGS)[number];
65
- //#endregion
66
- //#region src/review-ladder-ledger.d.ts
67
59
  type LadderCycleStage = "interior" | "gate";
68
60
  type LadderFindingReport = ReviewFindingAttributes;
69
61
  /** One finding as recorded in one cycle (GLOSSARY.md: finding occurrence). */
@@ -97,8 +89,6 @@ type ReviewDeclarationRecord = {
97
89
  rule: PolicyDeclarationRule;
98
90
  target: string;
99
91
  };
100
- //#endregion
101
- //#region src/review-recording-schema.d.ts
102
92
  interface ReviewRecordedCycleIdentity {
103
93
  /**
104
94
  * SHA-256 of the proof file bytes this recording was applied to, or
@@ -117,11 +107,10 @@ interface ReviewRecordedCycleIdentity {
117
107
  recordingId: string;
118
108
  }
119
109
  type ReviewCycleRecording = {
120
- declarations: ReviewDeclarationRecord[]; /** Index-aligned with the cycle's `findings`. */
110
+ declarations: ReviewDeclarationRecord[];
111
+ /** Index-aligned with the cycle's `findings`. */
121
112
  occurrences: ReviewOccurrenceRecord[];
122
113
  } & ReviewRecordedCycleIdentity;
123
- //#endregion
124
- //#region src/review-ladder.d.ts
125
114
  interface LadderSessionAttribution {
126
115
  orchestrationMode?: "autonomous" | "manual";
127
116
  resumedSession?: boolean;
@@ -146,18 +135,16 @@ interface ReviewLadderCycle {
146
135
  session?: LadderSessionAttribution;
147
136
  stage: LadderCycleStage;
148
137
  usage?: LadderUsageReport;
138
+ verdicts?: {
139
+ outcome: "error" | "failed" | "passed";
140
+ rung?: EvidenceReviewRung;
141
+ }[];
149
142
  }
150
- //#endregion
151
- //#region src/pr-readiness/ladder-proof-state.d.ts
152
143
  interface PrReviewLadderState {
153
144
  cycles: ReviewLadderCycle[];
154
145
  }
155
- //#endregion
156
- //#region src/pr-readiness/review-proof-types.d.ts
157
146
  type PrReviewKind = "correctness" | "security";
158
147
  type PrReviewOutcome = "passed" | "failed" | "error";
159
- //#endregion
160
- //#region src/pr-readiness/review-proof-shape.d.ts
161
148
  interface PrReviewFinding extends ReviewFindingAttributes {
162
149
  body: string;
163
150
  category?: ReviewFindingCategory;
@@ -208,8 +195,6 @@ interface PrReviewProof {
208
195
  };
209
196
  reviews: PrReviewResult[];
210
197
  }
211
- //#endregion
212
- //#region src/demand-waiver.d.ts
213
198
  /**
214
199
  * A demand that was in force, was NOT met, and was waived by the operator.
215
200
  *
@@ -226,15 +211,13 @@ interface WaivedDemand {
226
211
  /** The demand's refusals at evaluation time, preserved verbatim. */
227
212
  unmetReasons: string[];
228
213
  }
229
- declare const waivedDemandSchema: z.ZodType<WaivedDemand>;
230
- //#endregion
231
- //#region src/blocked-reasons.d.ts
214
+ export declare const waivedDemandSchema: z.ZodType<WaivedDemand>;
232
215
  /**
233
216
  * The wire bound on one `detail`. A blocked proof carries one short sentence
234
217
  * per demand, never a transcript: HQ's ingest cap is 256 KB and this field
235
218
  * must stay far under it even when a candidate blocks on every gate at once.
236
219
  */
237
- declare const BLOCKED_REASON_DETAIL_MAX = 280;
220
+ export declare const BLOCKED_REASON_DETAIL_MAX = 280;
238
221
  /**
239
222
  * The wire bound on how many demands one proof may name. Well past any real
240
223
  * candidate (there are a dozen fixed demands plus the profile's checks and the
@@ -243,18 +226,16 @@ declare const BLOCKED_REASON_DETAIL_MAX = 280;
243
226
  * downstream: HQ rejects an over-long list loudly instead of storing a quietly
244
227
  * truncated one.
245
228
  */
246
- declare const BLOCKED_REASONS_MAX = 100;
247
- declare const blockedReasonSchema: z.ZodObject<{
229
+ export declare const BLOCKED_REASONS_MAX = 100;
230
+ export declare const blockedReasonSchema: z.ZodObject<{
248
231
  code: z.ZodString;
249
232
  detail: z.ZodString;
250
233
  }, z.core.$strip>;
251
- declare const blockedReasonsSchema: z.ZodArray<z.ZodObject<{
234
+ export declare const blockedReasonsSchema: z.ZodArray<z.ZodObject<{
252
235
  code: z.ZodString;
253
236
  detail: z.ZodString;
254
237
  }, z.core.$strip>>;
255
238
  type BlockedReason = z.infer<typeof blockedReasonSchema>;
256
- //#endregion
257
- //#region src/boundary-review-proof.d.ts
258
239
  declare const boundaryReviewProofBaseSchema: z.ZodObject<{
259
240
  boundary: z.ZodString;
260
241
  coveredSet: z.ZodArray<z.ZodObject<{
@@ -282,14 +263,14 @@ declare const boundaryReviewProofBaseSchema: z.ZodObject<{
282
263
  value: z.ZodString;
283
264
  }, z.core.$loose>;
284
265
  outcome: z.ZodEnum<{
285
- pass: "pass";
286
266
  fail: "fail";
267
+ pass: "pass";
287
268
  }>;
288
269
  producer: z.ZodString;
289
270
  rung: z.ZodEnum<{
271
+ human: "human";
290
272
  "independent-model": "independent-model";
291
273
  oracle: "oracle";
292
- human: "human";
293
274
  }>;
294
275
  schemaVersion: z.ZodLiteral<1>;
295
276
  sessionId: z.ZodOptional<z.ZodString>;
@@ -300,8 +281,6 @@ declare const boundaryReviewProofBaseSchema: z.ZodObject<{
300
281
  }, z.core.$loose>>;
301
282
  }, z.core.$loose>;
302
283
  type BoundaryReviewProof = z.infer<typeof boundaryReviewProofBaseSchema>;
303
- //#endregion
304
- //#region src/catch-up-recognition-record.d.ts
305
284
  interface CatchUpRecognition {
306
285
  /** The ref the candidate targets, as the recognizing command resolved it. */
307
286
  baseRef: string;
@@ -317,12 +296,8 @@ interface CatchUpRecognition {
317
296
  /** The ref that proves the second parent is admitted content. */
318
297
  upstreamRef: string;
319
298
  }
320
- //#endregion
321
- //#region src/diff-classification.d.ts
322
299
  declare const DIFF_CLASSIFICATIONS: readonly ["docs/process-only", "trivial", "non-trivial"];
323
300
  type DiffClassification = (typeof DIFF_CLASSIFICATIONS)[number];
324
- //#endregion
325
- //#region src/impact-stamp.d.ts
326
301
  /**
327
302
  * The recorded stamp. `targets` satisfies the completeness invariant: every
328
303
  * target the profile declares is present, each with its exact basis — never
@@ -331,8 +306,8 @@ type DiffClassification = (typeof DIFF_CLASSIFICATIONS)[number];
331
306
  */
332
307
  declare const impactStampSchema: z.ZodObject<{
333
308
  basis: z.ZodEnum<{
334
- "target-scoped": "target-scoped";
335
309
  conservative: "conservative";
310
+ "target-scoped": "target-scoped";
336
311
  }>;
337
312
  inertPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
338
313
  reasons: z.ZodArray<z.ZodString>;
@@ -349,8 +324,6 @@ declare const impactStampSchema: z.ZodObject<{
349
324
  unsubscribedPaths: z.ZodArray<z.ZodString>;
350
325
  }, z.core.$strip>;
351
326
  type ImpactStamp = z.infer<typeof impactStampSchema>;
352
- //#endregion
353
- //#region src/follow-up.d.ts
354
327
  interface FollowUpAction {
355
328
  /**
356
329
  * Machine-safe argv-style array for the obvious next action, e.g.
@@ -366,8 +339,6 @@ interface FollowUpAction {
366
339
  */
367
340
  command: string;
368
341
  }
369
- //#endregion
370
- //#region src/pr-verify-mode.d.ts
371
342
  /**
372
343
  * The verification mode `pr:verify` resolved for a run.
373
344
  *
@@ -376,8 +347,6 @@ interface FollowUpAction {
376
347
  * check-run payload — can name the same union without importing each other.
377
348
  */
378
349
  type ResolvedPrVerifyMode = "docs-only" | "trivial" | "full";
379
- //#endregion
380
- //#region src/pr-verify-proof-contract.d.ts
381
350
  /**
382
351
  * The pr:verify proof versions a reader accepts: the current one only (#920
383
352
  * item 1). #917 narrowed the pr:ready reader the same way. A pr:verify proof
@@ -386,7 +355,7 @@ type ResolvedPrVerifyMode = "docs-only" | "trivial" | "full";
386
355
  * applies: one current contract, no compat reader. A consumer on an older
387
356
  * factory must adopt this release before HQ ingests its pr:verify proofs.
388
357
  */
389
- declare const SUPPORTED_PR_VERIFY_SCHEMA_VERSIONS: readonly [4];
358
+ export declare const SUPPORTED_PR_VERIFY_SCHEMA_VERSIONS: readonly [4];
390
359
  type PrVerifySchemaVersion = (typeof SUPPORTED_PR_VERIFY_SCHEMA_VERSIONS)[number];
391
360
  interface PrVerifyCommandResult {
392
361
  command: string;
@@ -447,6 +416,34 @@ interface PrVerifyExecutedCommand {
447
416
  name: string;
448
417
  scope: "docs-only" | "trivial" | "full";
449
418
  }
419
+ /** Where a verification battery ran (#1570). */
420
+ declare const PR_VERIFY_RUNNER_KINDS: readonly ["ci", "cloud", "local"];
421
+ /**
422
+ * The machine a pr:verify battery ran on (#1570), so per-step durations in
423
+ * `executedCommands` can be compared like for like: a Mac against a Mac, a
424
+ * cloud agent VM against a cloud agent VM. It names the class of machine, not
425
+ * the machine: no hostname, user, or path is recorded, because this proof is
426
+ * sent to HQ.
427
+ */
428
+ interface PrVerifyRunner {
429
+ /** Node's `process.arch`, such as `arm64` or `x64`. */
430
+ arch: string;
431
+ /** Logical CPUs the run could see. */
432
+ cpuCount: number;
433
+ /**
434
+ * `ci` is a hosted CI runner, `cloud` an agent's cloud VM, and `local` a
435
+ * developer machine: everything that is neither.
436
+ */
437
+ kind: (typeof PR_VERIFY_RUNNER_KINDS)[number];
438
+ /** Node's `process.platform`, such as `darwin` or `linux`. */
439
+ os: string;
440
+ /**
441
+ * The host that provided a `ci` or `cloud` runner when its environment
442
+ * names it: `claude-code`, `cursor`, or `github-actions`. Absent for
443
+ * `local` and for an unnamed CI.
444
+ */
445
+ provider?: "claude-code" | "cursor" | "github-actions";
446
+ }
450
447
  /**
451
448
  * Epic #550 wave 3 (#430): a verification command the impact stamp proved this
452
449
  * candidate cannot reach, so the battery did not run it.
@@ -518,10 +515,16 @@ interface PrVerifyProof {
518
515
  profilePath: string;
519
516
  projectKey: string;
520
517
  repository: string;
518
+ /**
519
+ * The machine the battery ran on (#1570). Optional and additive: a proof
520
+ * written before it existed parses unchanged, and the schema version does
521
+ * not move.
522
+ */
523
+ runner?: PrVerifyRunner;
521
524
  startedAt: string;
522
525
  verificationCommands: PrVerifyCommandResult[];
523
526
  }
524
- declare const prVerifyProofSchema: z.ZodObject<{
527
+ export declare const prVerifyProofSchema: z.ZodObject<{
525
528
  authoringSession: z.ZodString;
526
529
  base: z.ZodString;
527
530
  baseSha: z.ZodOptional<z.ZodString>;
@@ -537,8 +540,8 @@ declare const prVerifyProofSchema: z.ZodObject<{
537
540
  changedFiles: z.ZodArray<z.ZodString>;
538
541
  classification: z.ZodEnum<{
539
542
  "docs/process-only": "docs/process-only";
540
- trivial: "trivial";
541
543
  "non-trivial": "non-trivial";
544
+ trivial: "trivial";
542
545
  }>;
543
546
  classificationReasons: z.ZodArray<z.ZodString>;
544
547
  command: z.ZodLiteral<"patronage-factory pr:verify">;
@@ -555,24 +558,24 @@ declare const prVerifyProofSchema: z.ZodObject<{
555
558
  failures: z.ZodOptional<z.ZodArray<z.ZodObject<{
556
559
  file: z.ZodString;
557
560
  kind: z.ZodEnum<{
558
- error: "error";
559
561
  assertion: "assertion";
562
+ error: "error";
560
563
  timeout: "timeout";
561
564
  }>;
562
565
  title: z.ZodString;
563
566
  }, z.core.$strip>>>;
564
567
  name: z.ZodString;
565
568
  scope: z.ZodEnum<{
566
- trivial: "trivial";
567
569
  "docs-only": "docs-only";
568
570
  full: "full";
571
+ trivial: "trivial";
569
572
  }>;
570
573
  }, z.core.$strip>>>;
571
574
  headSha: z.ZodString;
572
575
  impactStamp: z.ZodOptional<z.ZodObject<{
573
576
  basis: z.ZodEnum<{
574
- "target-scoped": "target-scoped";
575
577
  conservative: "conservative";
578
+ "target-scoped": "target-scoped";
576
579
  }>;
577
580
  inertPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
578
581
  reasons: z.ZodArray<z.ZodString>;
@@ -590,9 +593,9 @@ declare const prVerifyProofSchema: z.ZodObject<{
590
593
  }, z.core.$strip>>;
591
594
  mergeBaseSha: z.ZodOptional<z.ZodString>;
592
595
  mode: z.ZodEnum<{
593
- trivial: "trivial";
594
596
  "docs-only": "docs-only";
595
597
  full: "full";
598
+ trivial: "trivial";
596
599
  }>;
597
600
  notDemandedRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
598
601
  basis: z.ZodString;
@@ -604,8 +607,8 @@ declare const prVerifyProofSchema: z.ZodObject<{
604
607
  name: z.ZodString;
605
608
  }, z.core.$strip>>>;
606
609
  outcome: z.ZodOptional<z.ZodEnum<{
607
- passed: "passed";
608
610
  aborted: "aborted";
611
+ passed: "passed";
609
612
  }>>;
610
613
  patchId: z.ZodOptional<z.ZodString>;
611
614
  policyResolution: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -619,8 +622,8 @@ declare const prVerifyProofSchema: z.ZodObject<{
619
622
  }, z.core.$strict>, z.ZodObject<{
620
623
  baseRefName: z.ZodString;
621
624
  cause: z.ZodOptional<z.ZodEnum<{
622
- "no-pull-request": "no-pull-request";
623
625
  "lookup-failed": "lookup-failed";
626
+ "no-pull-request": "no-pull-request";
624
627
  "policy-unreadable": "policy-unreadable";
625
628
  }>>;
626
629
  reason: z.ZodString;
@@ -629,6 +632,21 @@ declare const prVerifyProofSchema: z.ZodObject<{
629
632
  profilePath: z.ZodString;
630
633
  projectKey: z.ZodString;
631
634
  repository: z.ZodString;
635
+ runner: z.ZodOptional<z.ZodObject<{
636
+ arch: z.ZodString;
637
+ cpuCount: z.ZodNumber;
638
+ kind: z.ZodEnum<{
639
+ ci: "ci";
640
+ cloud: "cloud";
641
+ local: "local";
642
+ }>;
643
+ os: z.ZodString;
644
+ provider: z.ZodOptional<z.ZodEnum<{
645
+ "claude-code": "claude-code";
646
+ cursor: "cursor";
647
+ "github-actions": "github-actions";
648
+ }>>;
649
+ }, z.core.$strip>>;
632
650
  schemaVersion: z.ZodLiteral<4>;
633
651
  startedAt: z.ZodISODateTime;
634
652
  verificationCommands: z.ZodArray<z.ZodObject<{
@@ -637,19 +655,17 @@ declare const prVerifyProofSchema: z.ZodObject<{
637
655
  impactTarget: z.ZodOptional<z.ZodString>;
638
656
  name: z.ZodString;
639
657
  scope: z.ZodEnum<{
640
- trivial: "trivial";
641
658
  "docs-only": "docs-only";
642
659
  full: "full";
660
+ trivial: "trivial";
643
661
  }>;
644
662
  }, z.core.$strip>>;
645
663
  }, z.core.$strip>;
646
- //#endregion
647
- //#region src/pr-readiness/readiness-ledger.d.ts
648
664
  declare const readinessRepairSchema: z.ZodObject<{
649
665
  action: z.ZodString;
650
666
  code: z.ZodEnum<{
651
- "undraft-pr": "undraft-pr";
652
667
  "await-post-undraft-checks": "await-post-undraft-checks";
668
+ "undraft-pr": "undraft-pr";
653
669
  }>;
654
670
  command: z.ZodString;
655
671
  }, z.core.$strip>;
@@ -658,8 +674,8 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
658
674
  blockingReasons: z.ZodArray<z.ZodString>;
659
675
  classification: z.ZodEnum<{
660
676
  "docs/process-only": "docs/process-only";
661
- trivial: "trivial";
662
677
  "non-trivial": "non-trivial";
678
+ trivial: "trivial";
663
679
  }>;
664
680
  externalChecks: z.ZodOptional<z.ZodArray<z.ZodObject<{
665
681
  checkType: z.ZodEnum<{
@@ -671,15 +687,15 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
671
687
  scope: z.ZodOptional<z.ZodObject<{
672
688
  classifications: z.ZodArray<z.ZodEnum<{
673
689
  "docs/process-only": "docs/process-only";
674
- trivial: "trivial";
675
690
  "non-trivial": "non-trivial";
691
+ trivial: "trivial";
676
692
  }>>;
677
693
  }, z.core.$strict>>;
678
694
  scopeReason: z.ZodString;
679
695
  status: z.ZodEnum<{
696
+ "out-of-scope": "out-of-scope";
680
697
  satisfied: "satisfied";
681
698
  unmet: "unmet";
682
- "out-of-scope": "out-of-scope";
683
699
  }>;
684
700
  }, z.core.$strip>>>;
685
701
  github: z.ZodObject<{
@@ -687,11 +703,11 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
687
703
  mergeStateStatus: z.ZodString;
688
704
  mergeable: z.ZodString;
689
705
  requiredChecks: z.ZodEnum<{
690
- unknown: "unknown";
691
- passed: "passed";
692
706
  failed: "failed";
693
- pending: "pending";
694
707
  none: "none";
708
+ passed: "passed";
709
+ pending: "pending";
710
+ unknown: "unknown";
695
711
  }>;
696
712
  reviewDecision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
697
713
  unresolvedReviewThreads: z.ZodNumber;
@@ -703,8 +719,8 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
703
719
  repairs: z.ZodDefault<z.ZodArray<z.ZodObject<{
704
720
  action: z.ZodString;
705
721
  code: z.ZodEnum<{
706
- "undraft-pr": "undraft-pr";
707
722
  "await-post-undraft-checks": "await-post-undraft-checks";
723
+ "undraft-pr": "undraft-pr";
708
724
  }>;
709
725
  command: z.ZodString;
710
726
  }, z.core.$strip>>>;
@@ -718,18 +734,18 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
718
734
  unknown: z.ZodNumber;
719
735
  }, z.core.$strip>;
720
736
  highestBlockingSeverity: z.ZodOptional<z.ZodEnum<{
721
- unknown: "unknown";
722
737
  critical: "critical";
723
738
  high: "high";
724
739
  low: "low";
725
740
  medium: "medium";
741
+ unknown: "unknown";
726
742
  }>>;
727
743
  highestOpenSeverity: z.ZodOptional<z.ZodEnum<{
728
- unknown: "unknown";
729
744
  critical: "critical";
730
745
  high: "high";
731
746
  low: "low";
732
747
  medium: "medium";
748
+ unknown: "unknown";
733
749
  }>>;
734
750
  maxReviewCycles: z.ZodOptional<z.ZodNumber>;
735
751
  nonBlockingFindings: z.ZodNumber;
@@ -748,12 +764,12 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
748
764
  "interior-cap-reached": "interior-cap-reached";
749
765
  }>>;
750
766
  nextAction: z.ZodEnum<{
751
- "run-interior-cycle": "run-interior-cycle";
752
- "advance-to-gate": "advance-to-gate";
753
- "run-gate-cycle": "run-gate-cycle";
754
767
  "accept-nonblocking-findings": "accept-nonblocking-findings";
768
+ "advance-to-gate": "advance-to-gate";
755
769
  "escalate-to-triage": "escalate-to-triage";
756
770
  "ready-for-human": "ready-for-human";
771
+ "run-gate-cycle": "run-gate-cycle";
772
+ "run-interior-cycle": "run-interior-cycle";
757
773
  }>;
758
774
  stage: z.ZodEnum<{
759
775
  gate: "gate";
@@ -763,8 +779,8 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
763
779
  }, z.core.$strip>>;
764
780
  reviewRuns: z.ZodOptional<z.ZodArray<z.ZodType<PrReviewResult, unknown, z.core.$ZodTypeInternals<PrReviewResult, unknown>>>>;
765
781
  reviewTerminalState: z.ZodOptional<z.ZodEnum<{
766
- blocked: "blocked";
767
782
  "accepted-with-findings": "accepted-with-findings";
783
+ blocked: "blocked";
768
784
  clean: "clean";
769
785
  }>>;
770
786
  reviews: z.ZodObject<{
@@ -774,10 +790,10 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
774
790
  reviewedPatchId: z.ZodOptional<z.ZodString>;
775
791
  status: z.ZodEnum<{
776
792
  blocked: "blocked";
777
- "not-required": "not-required";
778
793
  current: "current";
779
- stale: "stale";
780
794
  missing: "missing";
795
+ "not-required": "not-required";
796
+ stale: "stale";
781
797
  }>;
782
798
  }, z.core.$strip>;
783
799
  security: z.ZodOptional<z.ZodObject<{
@@ -786,10 +802,10 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
786
802
  reviewedPatchId: z.ZodOptional<z.ZodString>;
787
803
  status: z.ZodEnum<{
788
804
  blocked: "blocked";
789
- "not-required": "not-required";
790
805
  current: "current";
791
- stale: "stale";
792
806
  missing: "missing";
807
+ "not-required": "not-required";
808
+ stale: "stale";
793
809
  }>;
794
810
  }, z.core.$strip>>;
795
811
  }, z.core.$strip>;
@@ -820,8 +836,6 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
820
836
  type ReadinessRepair = z.infer<typeof readinessRepairSchema>;
821
837
  type ReadinessStatus = "ready" | "blocked";
822
838
  type ManagedReadinessLedger = z.infer<typeof managedReadinessLedgerSchema>;
823
- //#endregion
824
- //#region src/pr-ready.d.ts
825
839
  interface PrReadyProof {
826
840
  schemaVersion: 3;
827
841
  /**
@@ -905,8 +919,6 @@ interface PrReadyProof {
905
919
  */
906
920
  waivedDemands?: WaivedDemand[];
907
921
  }
908
- //#endregion
909
- //#region src/pr-readiness/external-evidence.d.ts
910
922
  declare const evidenceEnvelopeBaseSchema: z.ZodObject<{
911
923
  check: z.ZodString;
912
924
  checkType: z.ZodEnum<{
@@ -918,35 +930,31 @@ declare const evidenceEnvelopeBaseSchema: z.ZodObject<{
918
930
  mergeBaseSha: z.ZodString;
919
931
  model: z.ZodOptional<z.ZodString>;
920
932
  outcome: z.ZodEnum<{
921
- pass: "pass";
922
933
  fail: "fail";
934
+ pass: "pass";
923
935
  }>;
924
936
  patchId: z.ZodString;
925
937
  policyVersion: z.ZodOptional<z.ZodString>;
926
938
  producer: z.ZodString;
927
939
  requestId: z.ZodOptional<z.ZodString>;
928
940
  rung: z.ZodOptional<z.ZodEnum<{
941
+ human: "human";
929
942
  "independent-model": "independent-model";
930
943
  oracle: "oracle";
931
- human: "human";
932
944
  }>>;
933
945
  schemaVersion: z.ZodLiteral<1>;
934
946
  sessionId: z.ZodOptional<z.ZodString>;
935
947
  timestamp: z.ZodOptional<z.ZodISODateTime>;
936
948
  }, z.core.$loose>;
937
949
  type EvidenceEnvelope = z.infer<typeof evidenceEnvelopeBaseSchema>;
938
- //#endregion
939
- //#region src/pr-readiness/review-proof.d.ts
940
- declare const PR_REVIEW_SCHEMA_VERSION = 3;
941
- declare const prReviewFindingSchema: z.ZodType<PrReviewFinding>;
942
- declare const prReviewResultSchema: z.ZodType<PrReviewResult>;
943
- declare const prReviewProofSchema: z.ZodType<PrReviewProof>;
944
- //#endregion
945
- //#region src/closeout-artifact.d.ts
950
+ export declare const PR_REVIEW_SCHEMA_VERSION = 3;
951
+ export declare const prReviewFindingSchema: z.ZodType<PrReviewFinding>;
952
+ export declare const prReviewResultSchema: z.ZodType<PrReviewResult>;
953
+ export declare const prReviewProofSchema: z.ZodType<PrReviewProof>;
946
954
  /** Artifact versions accepted at ingest. */
947
- declare const SUPPORTED_CLOSEOUT_SCHEMA_VERSIONS: readonly [5];
955
+ export declare const SUPPORTED_CLOSEOUT_SCHEMA_VERSIONS: readonly [5];
948
956
  /** Strict, bounded runtime transport contract emitted by factory:closeout. */
949
- declare const closeoutArtifactSchema: z.ZodObject<{
957
+ export declare const closeoutArtifactSchema: z.ZodObject<{
950
958
  budget: z.ZodObject<{
951
959
  note: z.ZodString;
952
960
  tier: z.ZodLiteral<"overseer">;
@@ -978,9 +986,7 @@ declare const closeoutArtifactSchema: z.ZodObject<{
978
986
  schemaVersion: z.ZodLiteral<5>;
979
987
  }, z.core.$strict>;
980
988
  type CloseoutArtifact = z.infer<typeof closeoutArtifactSchema>;
981
- //#endregion
982
- //#region src/gate-timing-record.d.ts
983
- declare const gateTimingRecordSchema: z.ZodObject<{
989
+ export declare const gateTimingRecordSchema: z.ZodObject<{
984
990
  agentRunId: z.ZodString;
985
991
  cycle: z.ZodNumber;
986
992
  durationMs: z.ZodNumber;
@@ -992,18 +998,16 @@ declare const gateTimingRecordSchema: z.ZodObject<{
992
998
  "pr:verify": "pr:verify";
993
999
  }>;
994
1000
  outcome: z.ZodEnum<{
995
- pass: "pass";
996
1001
  fail: "fail";
1002
+ pass: "pass";
997
1003
  }>;
998
1004
  schemaVersion: z.ZodLiteral<1>;
999
1005
  startOffsetMs: z.ZodNumber;
1000
1006
  startedAt: z.ZodISODateTime;
1001
1007
  }, z.core.$strict>;
1002
1008
  type GateTimingRecord = z.infer<typeof gateTimingRecordSchema>;
1003
- //#endregion
1004
- //#region src/schemas.d.ts
1005
- declare const EVIDENCE_ENVELOPE_SCHEMA_VERSION = 1;
1006
- declare const evidenceEnvelopeSchema: z.ZodObject<{
1009
+ export declare const EVIDENCE_ENVELOPE_SCHEMA_VERSION = 1;
1010
+ export declare const evidenceEnvelopeSchema: z.ZodObject<{
1007
1011
  check: z.ZodString;
1008
1012
  checkType: z.ZodEnum<{
1009
1013
  review: "review";
@@ -1014,24 +1018,24 @@ declare const evidenceEnvelopeSchema: z.ZodObject<{
1014
1018
  mergeBaseSha: z.ZodString;
1015
1019
  model: z.ZodOptional<z.ZodString>;
1016
1020
  outcome: z.ZodEnum<{
1017
- pass: "pass";
1018
1021
  fail: "fail";
1022
+ pass: "pass";
1019
1023
  }>;
1020
1024
  patchId: z.ZodString;
1021
1025
  policyVersion: z.ZodOptional<z.ZodString>;
1022
1026
  producer: z.ZodString;
1023
1027
  requestId: z.ZodOptional<z.ZodString>;
1024
1028
  rung: z.ZodOptional<z.ZodEnum<{
1029
+ human: "human";
1025
1030
  "independent-model": "independent-model";
1026
1031
  oracle: "oracle";
1027
- human: "human";
1028
1032
  }>>;
1029
1033
  schemaVersion: z.ZodLiteral<1>;
1030
1034
  sessionId: z.ZodOptional<z.ZodString>;
1031
1035
  timestamp: z.ZodOptional<z.ZodISODateTime>;
1032
1036
  }, z.core.$loose>;
1033
- declare const BOUNDARY_REVIEW_PROOF_KIND = "boundary-review-proof";
1034
- declare const boundaryReviewProofSchema: z.ZodObject<{
1037
+ export declare const BOUNDARY_REVIEW_PROOF_KIND = "boundary-review-proof";
1038
+ export declare const boundaryReviewProofSchema: z.ZodObject<{
1035
1039
  boundary: z.ZodString;
1036
1040
  coveredSet: z.ZodArray<z.ZodObject<{
1037
1041
  headSha: z.ZodOptional<z.ZodString>;
@@ -1058,14 +1062,14 @@ declare const boundaryReviewProofSchema: z.ZodObject<{
1058
1062
  value: z.ZodString;
1059
1063
  }, z.core.$loose>;
1060
1064
  outcome: z.ZodEnum<{
1061
- pass: "pass";
1062
1065
  fail: "fail";
1066
+ pass: "pass";
1063
1067
  }>;
1064
1068
  producer: z.ZodString;
1065
1069
  rung: z.ZodEnum<{
1070
+ human: "human";
1066
1071
  "independent-model": "independent-model";
1067
1072
  oracle: "oracle";
1068
- human: "human";
1069
1073
  }>;
1070
1074
  schemaVersion: z.ZodLiteral<1>;
1071
1075
  sessionId: z.ZodOptional<z.ZodString>;
@@ -1075,8 +1079,8 @@ declare const boundaryReviewProofSchema: z.ZodObject<{
1075
1079
  value: z.ZodString;
1076
1080
  }, z.core.$loose>>;
1077
1081
  }, z.core.$loose>;
1078
- declare const BOUNDARY_CHECK_SCHEMA_VERSION = 1;
1079
- declare const boundaryCheckProofSchema: z.ZodObject<{
1082
+ export declare const BOUNDARY_CHECK_SCHEMA_VERSION = 1;
1083
+ export declare const boundaryCheckProofSchema: z.ZodObject<{
1080
1084
  blockingReasons: z.ZodArray<z.ZodString>;
1081
1085
  boundary: z.ZodOptional<z.ZodString>;
1082
1086
  command: z.ZodLiteral<"patronage-factory boundary:check">;
@@ -1091,9 +1095,9 @@ declare const boundaryCheckProofSchema: z.ZodObject<{
1091
1095
  wave: z.ZodString;
1092
1096
  }, z.core.$strip>>;
1093
1097
  demandedRung: z.ZodOptional<z.ZodEnum<{
1098
+ human: "human";
1094
1099
  "independent-model": "independent-model";
1095
1100
  oracle: "oracle";
1096
- human: "human";
1097
1101
  }>>;
1098
1102
  epicIssue: z.ZodNumber;
1099
1103
  manifestHash: z.ZodOptional<z.ZodObject<{
@@ -1107,9 +1111,9 @@ declare const boundaryCheckProofSchema: z.ZodObject<{
1107
1111
  commentUrl: z.ZodOptional<z.ZodString>;
1108
1112
  producer: z.ZodString;
1109
1113
  rung: z.ZodEnum<{
1114
+ human: "human";
1110
1115
  "independent-model": "independent-model";
1111
1116
  oracle: "oracle";
1112
- human: "human";
1113
1117
  }>;
1114
1118
  sessionId: z.ZodOptional<z.ZodString>;
1115
1119
  specHash: z.ZodOptional<z.ZodObject<{
@@ -1124,12 +1128,12 @@ declare const boundaryCheckProofSchema: z.ZodObject<{
1124
1128
  value: z.ZodString;
1125
1129
  }, z.core.$strip>>;
1126
1130
  status: z.ZodEnum<{
1127
- ready: "ready";
1128
1131
  blocked: "blocked";
1132
+ ready: "ready";
1129
1133
  }>;
1130
1134
  }, z.core.$strip>;
1131
- type BoundaryCheckProofRecord = z.infer<typeof boundaryCheckProofSchema>;
1132
- declare const PR_READY_SCHEMA_VERSION = 3;
1135
+ export type BoundaryCheckProofRecord = z.infer<typeof boundaryCheckProofSchema>;
1136
+ export declare const PR_READY_SCHEMA_VERSION = 3;
1133
1137
  /**
1134
1138
  * The pr:ready proof versions a reader accepts: the current one only (#917
1135
1139
  * item 1). #894 narrowed the nested readiness ledger to `schemaVersion: 2` and
@@ -1139,14 +1143,14 @@ declare const PR_READY_SCHEMA_VERSION = 3;
1139
1143
  * reader. An alpha.22 consumer must adopt alpha.23 before HQ ingests its
1140
1144
  * pr:ready proofs.
1141
1145
  */
1142
- declare const SUPPORTED_PR_READY_SCHEMA_VERSIONS: readonly [3];
1143
- declare const prReadyProofSchema: z.ZodObject<{
1146
+ export declare const SUPPORTED_PR_READY_SCHEMA_VERSIONS: readonly [3];
1147
+ export declare const prReadyProofSchema: z.ZodObject<{
1144
1148
  arming: z.ZodOptional<z.ZodObject<{
1145
1149
  detail: z.ZodOptional<z.ZodString>;
1146
1150
  headSha: z.ZodString;
1147
1151
  outcome: z.ZodEnum<{
1148
- merged: "merged";
1149
1152
  armed: "armed";
1153
+ merged: "merged";
1150
1154
  "not-armed": "not-armed";
1151
1155
  }>;
1152
1156
  }, z.core.$strip>>;
@@ -1167,8 +1171,8 @@ declare const prReadyProofSchema: z.ZodObject<{
1167
1171
  blockingReasons: z.ZodArray<z.ZodString>;
1168
1172
  classification: z.ZodEnum<{
1169
1173
  "docs/process-only": "docs/process-only";
1170
- trivial: "trivial";
1171
1174
  "non-trivial": "non-trivial";
1175
+ trivial: "trivial";
1172
1176
  }>;
1173
1177
  externalChecks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1174
1178
  checkType: z.ZodEnum<{
@@ -1180,15 +1184,15 @@ declare const prReadyProofSchema: z.ZodObject<{
1180
1184
  scope: z.ZodOptional<z.ZodObject<{
1181
1185
  classifications: z.ZodArray<z.ZodEnum<{
1182
1186
  "docs/process-only": "docs/process-only";
1183
- trivial: "trivial";
1184
1187
  "non-trivial": "non-trivial";
1188
+ trivial: "trivial";
1185
1189
  }>>;
1186
1190
  }, z.core.$strict>>;
1187
1191
  scopeReason: z.ZodString;
1188
1192
  status: z.ZodEnum<{
1193
+ "out-of-scope": "out-of-scope";
1189
1194
  satisfied: "satisfied";
1190
1195
  unmet: "unmet";
1191
- "out-of-scope": "out-of-scope";
1192
1196
  }>;
1193
1197
  }, z.core.$strip>>>;
1194
1198
  github: z.ZodObject<{
@@ -1196,11 +1200,11 @@ declare const prReadyProofSchema: z.ZodObject<{
1196
1200
  mergeStateStatus: z.ZodString;
1197
1201
  mergeable: z.ZodString;
1198
1202
  requiredChecks: z.ZodEnum<{
1199
- unknown: "unknown";
1200
- passed: "passed";
1201
1203
  failed: "failed";
1202
- pending: "pending";
1203
1204
  none: "none";
1205
+ passed: "passed";
1206
+ pending: "pending";
1207
+ unknown: "unknown";
1204
1208
  }>;
1205
1209
  reviewDecision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1206
1210
  unresolvedReviewThreads: z.ZodNumber;
@@ -1212,8 +1216,8 @@ declare const prReadyProofSchema: z.ZodObject<{
1212
1216
  repairs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1213
1217
  action: z.ZodString;
1214
1218
  code: z.ZodEnum<{
1215
- "undraft-pr": "undraft-pr";
1216
1219
  "await-post-undraft-checks": "await-post-undraft-checks";
1220
+ "undraft-pr": "undraft-pr";
1217
1221
  }>;
1218
1222
  command: z.ZodString;
1219
1223
  }, z.core.$strip>>>;
@@ -1227,18 +1231,18 @@ declare const prReadyProofSchema: z.ZodObject<{
1227
1231
  unknown: z.ZodNumber;
1228
1232
  }, z.core.$strip>;
1229
1233
  highestBlockingSeverity: z.ZodOptional<z.ZodEnum<{
1230
- unknown: "unknown";
1231
1234
  critical: "critical";
1232
1235
  high: "high";
1233
1236
  low: "low";
1234
1237
  medium: "medium";
1238
+ unknown: "unknown";
1235
1239
  }>>;
1236
1240
  highestOpenSeverity: z.ZodOptional<z.ZodEnum<{
1237
- unknown: "unknown";
1238
1241
  critical: "critical";
1239
1242
  high: "high";
1240
1243
  low: "low";
1241
1244
  medium: "medium";
1245
+ unknown: "unknown";
1242
1246
  }>>;
1243
1247
  maxReviewCycles: z.ZodOptional<z.ZodNumber>;
1244
1248
  nonBlockingFindings: z.ZodNumber;
@@ -1257,12 +1261,12 @@ declare const prReadyProofSchema: z.ZodObject<{
1257
1261
  "interior-cap-reached": "interior-cap-reached";
1258
1262
  }>>;
1259
1263
  nextAction: z.ZodEnum<{
1260
- "run-interior-cycle": "run-interior-cycle";
1261
- "advance-to-gate": "advance-to-gate";
1262
- "run-gate-cycle": "run-gate-cycle";
1263
1264
  "accept-nonblocking-findings": "accept-nonblocking-findings";
1265
+ "advance-to-gate": "advance-to-gate";
1264
1266
  "escalate-to-triage": "escalate-to-triage";
1265
1267
  "ready-for-human": "ready-for-human";
1268
+ "run-gate-cycle": "run-gate-cycle";
1269
+ "run-interior-cycle": "run-interior-cycle";
1266
1270
  }>;
1267
1271
  stage: z.ZodEnum<{
1268
1272
  gate: "gate";
@@ -1272,8 +1276,8 @@ declare const prReadyProofSchema: z.ZodObject<{
1272
1276
  }, z.core.$strip>>;
1273
1277
  reviewRuns: z.ZodOptional<z.ZodArray<z.ZodType<PrReviewResult, unknown, z.core.$ZodTypeInternals<PrReviewResult, unknown>>>>;
1274
1278
  reviewTerminalState: z.ZodOptional<z.ZodEnum<{
1275
- blocked: "blocked";
1276
1279
  "accepted-with-findings": "accepted-with-findings";
1280
+ blocked: "blocked";
1277
1281
  clean: "clean";
1278
1282
  }>>;
1279
1283
  reviews: z.ZodObject<{
@@ -1283,10 +1287,10 @@ declare const prReadyProofSchema: z.ZodObject<{
1283
1287
  reviewedPatchId: z.ZodOptional<z.ZodString>;
1284
1288
  status: z.ZodEnum<{
1285
1289
  blocked: "blocked";
1286
- "not-required": "not-required";
1287
1290
  current: "current";
1288
- stale: "stale";
1289
1291
  missing: "missing";
1292
+ "not-required": "not-required";
1293
+ stale: "stale";
1290
1294
  }>;
1291
1295
  }, z.core.$strict>;
1292
1296
  security: z.ZodOptional<z.ZodObject<{
@@ -1295,10 +1299,10 @@ declare const prReadyProofSchema: z.ZodObject<{
1295
1299
  reviewedPatchId: z.ZodOptional<z.ZodString>;
1296
1300
  status: z.ZodEnum<{
1297
1301
  blocked: "blocked";
1298
- "not-required": "not-required";
1299
1302
  current: "current";
1300
- stale: "stale";
1301
1303
  missing: "missing";
1304
+ "not-required": "not-required";
1305
+ stale: "stale";
1302
1306
  }>;
1303
1307
  }, z.core.$strict>>;
1304
1308
  }, z.core.$strip>;
@@ -1338,8 +1342,8 @@ declare const prReadyProofSchema: z.ZodObject<{
1338
1342
  }, z.core.$strict>, z.ZodObject<{
1339
1343
  baseRefName: z.ZodString;
1340
1344
  cause: z.ZodOptional<z.ZodEnum<{
1341
- "no-pull-request": "no-pull-request";
1342
1345
  "lookup-failed": "lookup-failed";
1346
+ "no-pull-request": "no-pull-request";
1343
1347
  "policy-unreadable": "policy-unreadable";
1344
1348
  }>>;
1345
1349
  reason: z.ZodString;
@@ -1350,18 +1354,17 @@ declare const prReadyProofSchema: z.ZodObject<{
1350
1354
  repairs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1351
1355
  action: z.ZodString;
1352
1356
  code: z.ZodEnum<{
1353
- "undraft-pr": "undraft-pr";
1354
1357
  "await-post-undraft-checks": "await-post-undraft-checks";
1358
+ "undraft-pr": "undraft-pr";
1355
1359
  }>;
1356
1360
  command: z.ZodString;
1357
1361
  }, z.core.$strip>>>;
1358
1362
  repository: z.ZodOptional<z.ZodString>;
1359
1363
  schemaVersion: z.ZodLiteral<3>;
1360
1364
  status: z.ZodEnum<{
1361
- ready: "ready";
1362
1365
  blocked: "blocked";
1366
+ ready: "ready";
1363
1367
  }>;
1364
1368
  waivedDemands: z.ZodOptional<z.ZodArray<z.ZodType<WaivedDemand, unknown, z.core.$ZodTypeInternals<WaivedDemand, unknown>>>>;
1365
1369
  }, z.core.$strip>;
1366
- //#endregion
1367
- export { BLOCKED_REASONS_MAX, BLOCKED_REASON_DETAIL_MAX, BOUNDARY_CHECK_SCHEMA_VERSION, BOUNDARY_REVIEW_PROOF_KIND, type BlockedReason, BoundaryCheckProofRecord, type BoundaryReviewProof, type CloseoutArtifact, EVIDENCE_ENVELOPE_SCHEMA_VERSION, type EvidenceEnvelope, type GateTimingRecord, PR_READY_SCHEMA_VERSION, PR_REVIEW_SCHEMA_VERSION, type PrReadyProof, type PrReviewProof, type PrVerifyProof, type ReviewPromptSection, type ReviewPromptSectionProvenance, SUPPORTED_CLOSEOUT_SCHEMA_VERSIONS, SUPPORTED_PR_READY_SCHEMA_VERSIONS, SUPPORTED_PR_VERIFY_SCHEMA_VERSIONS, type WaivedDemand, blockedReasonSchema, blockedReasonsSchema, boundaryCheckProofSchema, boundaryReviewProofSchema, closeoutArtifactSchema, evidenceEnvelopeSchema, gateTimingRecordSchema, prReadyProofSchema, prReviewFindingSchema, prReviewProofSchema, prReviewResultSchema, prVerifyProofSchema, reviewPromptSectionSchema, reviewPromptSectionsSchema, waivedDemandSchema };
1370
+ export type { BlockedReason, BoundaryReviewProof, CloseoutArtifact, EvidenceEnvelope, GateTimingRecord, PrReadyProof, PrReviewProof, PrVerifyProof, ReviewPromptSection, ReviewPromptSectionProvenance, WaivedDemand };