@patronage/software-factory 0.30.0-alpha.1 → 0.30.0-beta.3

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
@@ -13,7 +13,7 @@ interface WaivedDemand {
13
13
  operator: string;
14
14
  rationale: string;
15
15
  recordedAt: string;
16
- session: string;
16
+ session?: string;
17
17
  /** The demand's refusals at evaluation time, preserved verbatim. */
18
18
  unmetReasons: string[];
19
19
  }
@@ -127,7 +127,6 @@ type ResolvedPrVerifyMode = "docs-only" | "trivial" | "full";
127
127
  declare const reviewPromptSectionSchema: z.ZodObject<{
128
128
  provenance: z.ZodEnum<{
129
129
  "prior-review-ledger": "prior-review-ledger";
130
- "profile-standing-checklist": "profile-standing-checklist";
131
130
  "issue-review-focus": "issue-review-focus";
132
131
  }>;
133
132
  source: z.ZodString;
@@ -254,7 +253,6 @@ declare const readinessRepairSchema: z.ZodObject<{
254
253
  action: z.ZodString;
255
254
  code: z.ZodEnum<{
256
255
  "undraft-pr": "undraft-pr";
257
- "render-pr-body-sections": "render-pr-body-sections";
258
256
  "await-post-undraft-checks": "await-post-undraft-checks";
259
257
  }>;
260
258
  command: z.ZodString;
@@ -289,9 +287,7 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
289
287
  "out-of-scope": "out-of-scope";
290
288
  }>;
291
289
  }, z.core.$strip>>>;
292
- finalReviewPoint: z.ZodBoolean;
293
290
  github: z.ZodObject<{
294
- currentWithBase: z.ZodBoolean;
295
291
  draft: z.ZodBoolean;
296
292
  mergeStateStatus: z.ZodString;
297
293
  mergeable: z.ZodString;
@@ -302,67 +298,17 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
302
298
  pending: "pending";
303
299
  none: "none";
304
300
  }>;
301
+ reviewDecision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
302
  unresolvedReviewThreads: z.ZodNumber;
306
303
  }, z.core.$strip>;
307
- handledCommentsProducer: z.ZodOptional<z.ZodObject<{
308
- identity: z.ZodString;
309
- mode: z.ZodEnum<{
310
- app: "app";
311
- "commit-status": "commit-status";
312
- }>;
313
- }, z.core.$strip>>;
314
- handledHumanComments: z.ZodOptional<z.ZodArray<z.ZodObject<{
315
- clearedAt: z.ZodOptional<z.ZodString>;
316
- sessionId: z.ZodOptional<z.ZodString>;
317
- source: z.ZodEnum<{
318
- cli: "cli";
319
- "check-run": "check-run";
320
- }>;
321
- url: z.ZodString;
322
- }, z.core.$strip>>>;
323
304
  headSha: z.ZodString;
324
305
  mergeBaseSha: z.ZodOptional<z.ZodString>;
325
306
  patchId: z.ZodString;
326
- postReadinessHumanComments: z.ZodOptional<z.ZodArray<z.ZodObject<{
327
- author: z.ZodString;
328
- createdAt: z.ZodString;
329
- summary: z.ZodString;
330
- url: z.ZodString;
331
- }, z.core.$strip>>>;
332
- postReadinessHumanReviews: z.ZodOptional<z.ZodArray<z.ZodObject<{
333
- author: z.ZodString;
334
- createdAt: z.ZodString;
335
- summary: z.ZodString;
336
- url: z.ZodString;
337
- }, z.core.$strip>>>;
338
307
  pr: z.ZodNumber;
339
- previewDeploy: z.ZodOptional<z.ZodObject<{
340
- adminUrl: z.ZodOptional<z.ZodString>;
341
- apiHealthUrl: z.ZodOptional<z.ZodString>;
342
- headSha: z.ZodOptional<z.ZodString>;
343
- localPreviewProof: z.ZodOptional<z.ZodUnknown>;
344
- localProofPath: z.ZodOptional<z.ZodString>;
345
- proofSource: z.ZodOptional<z.ZodEnum<{
346
- "github-actions": "github-actions";
347
- "local-self-certified": "local-self-certified";
348
- }>>;
349
- publicUrl: z.ZodOptional<z.ZodString>;
350
- seedStatus: z.ZodEnum<{
351
- unknown: "unknown";
352
- passed: "passed";
353
- failed: "failed";
354
- skipped: "skipped";
355
- }>;
356
- stage: z.ZodOptional<z.ZodString>;
357
- timingsMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodNumber>>>;
358
- workflowRunUrl: z.ZodOptional<z.ZodString>;
359
- }, z.core.$strip>>;
360
- previewDeployRequired: z.ZodBoolean;
361
308
  repairs: z.ZodDefault<z.ZodArray<z.ZodObject<{
362
309
  action: z.ZodString;
363
310
  code: z.ZodEnum<{
364
311
  "undraft-pr": "undraft-pr";
365
- "render-pr-body-sections": "render-pr-body-sections";
366
312
  "await-post-undraft-checks": "await-post-undraft-checks";
367
313
  }>;
368
314
  command: z.ZodString;
@@ -428,7 +374,6 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
428
374
  }>>;
429
375
  reviews: z.ZodObject<{
430
376
  correctness: z.ZodObject<{
431
- docsOnlyDeltaAccepted: z.ZodOptional<z.ZodBoolean>;
432
377
  required: z.ZodBoolean;
433
378
  reviewedHeadSha: z.ZodOptional<z.ZodString>;
434
379
  reviewedPatchId: z.ZodOptional<z.ZodString>;
@@ -441,7 +386,6 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
441
386
  }>;
442
387
  }, z.core.$strip>;
443
388
  security: z.ZodOptional<z.ZodObject<{
444
- docsOnlyDeltaAccepted: z.ZodOptional<z.ZodBoolean>;
445
389
  required: z.ZodBoolean;
446
390
  reviewedHeadSha: z.ZodOptional<z.ZodString>;
447
391
  reviewedPatchId: z.ZodOptional<z.ZodString>;
@@ -455,12 +399,6 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
455
399
  }, z.core.$strip>>;
456
400
  }, z.core.$strip>;
457
401
  schemaVersion: z.ZodLiteral<1>;
458
- stackRole: z.ZodEnum<{
459
- single: "single";
460
- slice: "slice";
461
- rollup: "rollup";
462
- "merge-gate prerequisite": "merge-gate prerequisite";
463
- }>;
464
402
  verification: z.ZodObject<{
465
403
  command: z.ZodLiteral<"patronage-factory pr:verify">;
466
404
  docsOnlyDeltaAccepted: z.ZodOptional<z.ZodBoolean>;
@@ -476,7 +414,7 @@ declare const managedReadinessLedgerSchema: z.ZodObject<{
476
414
  }, z.core.$strip>;
477
415
  }, z.core.$strip>;
478
416
  type ReadinessRepair = z.infer<typeof readinessRepairSchema>;
479
- type ReadinessStatus = "ready" | "blocked" | "slice-ready/not-final";
417
+ type ReadinessStatus = "ready" | "blocked";
480
418
  type ManagedReadinessLedger = z.infer<typeof managedReadinessLedgerSchema>;
481
419
  //#endregion
482
420
  //#region src/pr-ready.d.ts
@@ -484,8 +422,8 @@ interface PrReadyProof {
484
422
  schemaVersion: 3;
485
423
  /**
486
424
  * What GitHub actually did when this run armed native auto-merge (#477).
487
- * Present exactly when readiness passed and the arming ran; read back from
488
- * the PR rather than inferred from the invocation, because `gh pr merge
425
+ * Present exactly when a ready wave authorizes machine merge and arming ran;
426
+ * read back from the PR rather than inferred from the invocation, because `gh pr merge
489
427
  * --auto` arms, merges, or does nothing with the same exit code and the same
490
428
  * empty output. `not-armed` means the candidate is admitted but nothing will
491
429
  * merge it, and `followUp` carries the re-dispatch.
@@ -524,8 +462,9 @@ interface PrReadyProof {
524
462
  ledger: ManagedReadinessLedger;
525
463
  /**
526
464
  * Actionable facts that did not block (#477): a settling merge-freeze
527
- * generation that armed with a notice, and how each waived demand reads to a
528
- * human. Absent when there are none.
465
+ * generation that permitted readiness and any authorized arming with a
466
+ * notice, an admitted-but-unscheduled false boundary wave, and how each
467
+ * waived demand reads to a human. Absent when there are none.
529
468
  */
530
469
  notices?: string[];
531
470
  /** Committed profile blob evaluated by readiness. Required for merge. */
@@ -540,7 +479,7 @@ interface PrReadyProof {
540
479
  * Demands that were in force, were NOT met, and were waived by the operator
541
480
  * (#354, moved here from the merge-time proof by #477). Each entry carries
542
481
  * the demand's refusals verbatim, so a waived demand can never read as a met
543
- * one; the arming proceeds on the recorded operator act, not on evidence.
482
+ * one; readiness proceeds on the recorded operator act, not on evidence.
544
483
  */
545
484
  waivedDemands?: WaivedDemand[];
546
485
  }
@@ -627,6 +566,8 @@ interface PrVerifyProof {
627
566
  }
628
567
  //#endregion
629
568
  //#region src/closeout-artifact.d.ts
569
+ /** Current writer plus retained reader versions accepted at ingest. */
570
+ declare const SUPPORTED_CLOSEOUT_SCHEMA_VERSIONS: readonly [3, 4];
630
571
  /** Strict, bounded runtime transport contract emitted by factory:closeout. */
631
572
  declare const closeoutArtifactSchema: z.ZodObject<{
632
573
  boundaryThermo: z.ZodObject<{
@@ -636,6 +577,9 @@ declare const closeoutArtifactSchema: z.ZodObject<{
636
577
  waiverRationale: z.ZodOptional<z.ZodString>;
637
578
  }, z.core.$strict>;
638
579
  budget: z.ZodObject<{
580
+ note: z.ZodString;
581
+ tier: z.ZodLiteral<"overseer">;
582
+ }, z.core.$strict> | z.ZodObject<{
639
583
  interiorSourcesConsumed: z.ZodNumber;
640
584
  note: z.ZodString;
641
585
  scoping: z.ZodOptional<z.ZodObject<{
@@ -675,12 +619,26 @@ declare const closeoutArtifactSchema: z.ZodObject<{
675
619
  lesson: "lesson";
676
620
  blindspot: "blindspot";
677
621
  }>;
678
- schemaVersion: z.ZodLiteral<3>;
622
+ schemaVersion: z.ZodLiteral<3 | 4>;
679
623
  source: z.ZodString;
680
624
  unit: z.ZodOptional<z.ZodString>;
681
625
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
682
626
  }, z.core.$strict>>;
683
627
  lessons: z.ZodArray<z.ZodObject<{
628
+ id: z.ZodString;
629
+ landingSpot: z.ZodEnum<{
630
+ CLI: "CLI";
631
+ profile: "profile";
632
+ skill: "skill";
633
+ ADR: "ADR";
634
+ }>;
635
+ lesson: z.ZodString;
636
+ rationale: z.ZodOptional<z.ZodString>;
637
+ source: z.ZodOptional<z.ZodObject<{
638
+ detail: z.ZodString;
639
+ kind: z.ZodLiteral<"boundary-thermo-attestation">;
640
+ }, z.core.$strict>>;
641
+ }, z.core.$strict> | z.ZodObject<{
684
642
  id: z.ZodString;
685
643
  landingSpot: z.ZodEnum<{
686
644
  CLI: "CLI";
@@ -693,19 +651,156 @@ declare const closeoutArtifactSchema: z.ZodObject<{
693
651
  source: z.ZodOptional<z.ZodObject<{
694
652
  detail: z.ZodString;
695
653
  kind: z.ZodEnum<{
696
- "interior-telemetry": "interior-telemetry";
697
654
  "boundary-thermo-attestation": "boundary-thermo-attestation";
655
+ "interior-telemetry": "interior-telemetry";
698
656
  }>;
699
657
  }, z.core.$strict>>;
700
658
  }, z.core.$strict>>;
701
659
  metrics: z.ZodArray<z.ZodObject<{
660
+ label: z.ZodString;
661
+ metric: z.ZodString;
662
+ source: z.ZodObject<{
663
+ detail: z.ZodString;
664
+ kind: z.ZodLiteral<"boundary-thermo-attestation">;
665
+ }, z.core.$strict>;
666
+ unit: z.ZodEnum<{
667
+ boolean: "boolean";
668
+ text: "text";
669
+ count: "count";
670
+ }>;
671
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>;
672
+ }, z.core.$strict> | z.ZodObject<{
702
673
  label: z.ZodString;
703
674
  metric: z.ZodString;
704
675
  source: z.ZodObject<{
705
676
  detail: z.ZodString;
706
677
  kind: z.ZodEnum<{
678
+ "boundary-thermo-attestation": "boundary-thermo-attestation";
707
679
  "interior-telemetry": "interior-telemetry";
680
+ }>;
681
+ }, z.core.$strict>;
682
+ unit: z.ZodEnum<{
683
+ boolean: "boolean";
684
+ text: "text";
685
+ count: "count";
686
+ tokens: "tokens";
687
+ usd: "usd";
688
+ ratio: "ratio";
689
+ }>;
690
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>;
691
+ }, z.core.$strict>>;
692
+ repo: z.ZodString;
693
+ schemaVersion: z.ZodLiteral<3 | 4>;
694
+ }, z.core.$strict>;
695
+ /** Reader-only compatibility for closeout artifacts written before #554. */
696
+ declare const legacyCloseoutArtifactSchema: z.ZodObject<{
697
+ boundaryThermo: z.ZodObject<{
698
+ owner: z.ZodString;
699
+ runs: z.ZodNumber;
700
+ waived: z.ZodBoolean;
701
+ waiverRationale: z.ZodOptional<z.ZodString>;
702
+ }, z.core.$strict>;
703
+ budget: z.ZodObject<{
704
+ note: z.ZodString;
705
+ tier: z.ZodLiteral<"overseer">;
706
+ }, z.core.$strict> | z.ZodObject<{
707
+ interiorSourcesConsumed: z.ZodNumber;
708
+ note: z.ZodString;
709
+ scoping: z.ZodOptional<z.ZodObject<{
710
+ epic: z.ZodString;
711
+ issueFilter: z.ZodOptional<z.ZodNumber>;
712
+ prFilter: z.ZodOptional<z.ZodNumber>;
713
+ repo: z.ZodString;
714
+ scopedByEpicIssueSet: z.ZodBoolean;
715
+ window: z.ZodObject<{
716
+ from: z.ZodString;
717
+ to: z.ZodString;
718
+ }, z.core.$strict>;
719
+ }, z.core.$strict>>;
720
+ tier: z.ZodLiteral<"overseer">;
721
+ }, z.core.$strict>;
722
+ couldNotSee: z.ZodArray<z.ZodObject<{
723
+ id: z.ZodString;
724
+ note: z.ZodString;
725
+ reason: z.ZodOptional<z.ZodString>;
726
+ }, z.core.$strict>>;
727
+ epic: z.ZodString;
728
+ generatedAt: z.ZodISODateTime;
729
+ ledgerRows: z.ZodArray<z.ZodObject<{
730
+ detail: z.ZodOptional<z.ZodString>;
731
+ epic: z.ZodString;
732
+ generatedAt: z.ZodISODateTime;
733
+ key: z.ZodString;
734
+ landingSpot: z.ZodOptional<z.ZodEnum<{
735
+ CLI: "CLI";
736
+ profile: "profile";
737
+ skill: "skill";
738
+ ADR: "ADR";
739
+ }>>;
740
+ repo: z.ZodString;
741
+ rowType: z.ZodEnum<{
742
+ metric: "metric";
743
+ lesson: "lesson";
744
+ blindspot: "blindspot";
745
+ }>;
746
+ schemaVersion: z.ZodLiteral<3 | 4>;
747
+ source: z.ZodString;
748
+ unit: z.ZodOptional<z.ZodString>;
749
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
750
+ }, z.core.$strict>>;
751
+ lessons: z.ZodArray<z.ZodObject<{
752
+ id: z.ZodString;
753
+ landingSpot: z.ZodEnum<{
754
+ CLI: "CLI";
755
+ profile: "profile";
756
+ skill: "skill";
757
+ ADR: "ADR";
758
+ }>;
759
+ lesson: z.ZodString;
760
+ rationale: z.ZodOptional<z.ZodString>;
761
+ source: z.ZodOptional<z.ZodObject<{
762
+ detail: z.ZodString;
763
+ kind: z.ZodLiteral<"boundary-thermo-attestation">;
764
+ }, z.core.$strict>>;
765
+ }, z.core.$strict> | z.ZodObject<{
766
+ id: z.ZodString;
767
+ landingSpot: z.ZodEnum<{
768
+ CLI: "CLI";
769
+ profile: "profile";
770
+ skill: "skill";
771
+ ADR: "ADR";
772
+ }>;
773
+ lesson: z.ZodString;
774
+ rationale: z.ZodOptional<z.ZodString>;
775
+ source: z.ZodOptional<z.ZodObject<{
776
+ detail: z.ZodString;
777
+ kind: z.ZodEnum<{
708
778
  "boundary-thermo-attestation": "boundary-thermo-attestation";
779
+ "interior-telemetry": "interior-telemetry";
780
+ }>;
781
+ }, z.core.$strict>>;
782
+ }, z.core.$strict>>;
783
+ metrics: z.ZodArray<z.ZodObject<{
784
+ label: z.ZodString;
785
+ metric: z.ZodString;
786
+ source: z.ZodObject<{
787
+ detail: z.ZodString;
788
+ kind: z.ZodLiteral<"boundary-thermo-attestation">;
789
+ }, z.core.$strict>;
790
+ unit: z.ZodEnum<{
791
+ boolean: "boolean";
792
+ text: "text";
793
+ count: "count";
794
+ }>;
795
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>;
796
+ }, z.core.$strict> | z.ZodObject<{
797
+ label: z.ZodString;
798
+ metric: z.ZodString;
799
+ source: z.ZodObject<{
800
+ detail: z.ZodString;
801
+ kind: z.ZodEnum<{
802
+ "boundary-thermo-attestation": "boundary-thermo-attestation";
803
+ "interior-telemetry": "interior-telemetry";
709
804
  }>;
710
805
  }, z.core.$strict>;
711
806
  unit: z.ZodEnum<{
@@ -719,9 +814,256 @@ declare const closeoutArtifactSchema: z.ZodObject<{
719
814
  value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>;
720
815
  }, z.core.$strict>>;
721
816
  repo: z.ZodString;
722
- schemaVersion: z.ZodLiteral<3>;
817
+ schemaVersion: z.ZodLiteral<3 | 4>;
723
818
  }, z.core.$strict>;
819
+ /** Accept current output and retained v3 artifacts when reading or replaying. */
820
+ declare const closeoutArtifactReadSchema: z.ZodUnion<readonly [z.ZodObject<{
821
+ boundaryThermo: z.ZodObject<{
822
+ owner: z.ZodString;
823
+ runs: z.ZodNumber;
824
+ waived: z.ZodBoolean;
825
+ waiverRationale: z.ZodOptional<z.ZodString>;
826
+ }, z.core.$strict>;
827
+ budget: z.ZodObject<{
828
+ note: z.ZodString;
829
+ tier: z.ZodLiteral<"overseer">;
830
+ }, z.core.$strict> | z.ZodObject<{
831
+ interiorSourcesConsumed: z.ZodNumber;
832
+ note: z.ZodString;
833
+ scoping: z.ZodOptional<z.ZodObject<{
834
+ epic: z.ZodString;
835
+ issueFilter: z.ZodOptional<z.ZodNumber>;
836
+ prFilter: z.ZodOptional<z.ZodNumber>;
837
+ repo: z.ZodString;
838
+ scopedByEpicIssueSet: z.ZodBoolean;
839
+ window: z.ZodObject<{
840
+ from: z.ZodString;
841
+ to: z.ZodString;
842
+ }, z.core.$strict>;
843
+ }, z.core.$strict>>;
844
+ tier: z.ZodLiteral<"overseer">;
845
+ }, z.core.$strict>;
846
+ couldNotSee: z.ZodArray<z.ZodObject<{
847
+ id: z.ZodString;
848
+ note: z.ZodString;
849
+ reason: z.ZodOptional<z.ZodString>;
850
+ }, z.core.$strict>>;
851
+ epic: z.ZodString;
852
+ generatedAt: z.ZodISODateTime;
853
+ ledgerRows: z.ZodArray<z.ZodObject<{
854
+ detail: z.ZodOptional<z.ZodString>;
855
+ epic: z.ZodString;
856
+ generatedAt: z.ZodISODateTime;
857
+ key: z.ZodString;
858
+ landingSpot: z.ZodOptional<z.ZodEnum<{
859
+ CLI: "CLI";
860
+ profile: "profile";
861
+ skill: "skill";
862
+ ADR: "ADR";
863
+ }>>;
864
+ repo: z.ZodString;
865
+ rowType: z.ZodEnum<{
866
+ metric: "metric";
867
+ lesson: "lesson";
868
+ blindspot: "blindspot";
869
+ }>;
870
+ schemaVersion: z.ZodLiteral<3 | 4>;
871
+ source: z.ZodString;
872
+ unit: z.ZodOptional<z.ZodString>;
873
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
874
+ }, z.core.$strict>>;
875
+ lessons: z.ZodArray<z.ZodObject<{
876
+ id: z.ZodString;
877
+ landingSpot: z.ZodEnum<{
878
+ CLI: "CLI";
879
+ profile: "profile";
880
+ skill: "skill";
881
+ ADR: "ADR";
882
+ }>;
883
+ lesson: z.ZodString;
884
+ rationale: z.ZodOptional<z.ZodString>;
885
+ source: z.ZodOptional<z.ZodObject<{
886
+ detail: z.ZodString;
887
+ kind: z.ZodLiteral<"boundary-thermo-attestation">;
888
+ }, z.core.$strict>>;
889
+ }, z.core.$strict> | z.ZodObject<{
890
+ id: z.ZodString;
891
+ landingSpot: z.ZodEnum<{
892
+ CLI: "CLI";
893
+ profile: "profile";
894
+ skill: "skill";
895
+ ADR: "ADR";
896
+ }>;
897
+ lesson: z.ZodString;
898
+ rationale: z.ZodOptional<z.ZodString>;
899
+ source: z.ZodOptional<z.ZodObject<{
900
+ detail: z.ZodString;
901
+ kind: z.ZodEnum<{
902
+ "boundary-thermo-attestation": "boundary-thermo-attestation";
903
+ "interior-telemetry": "interior-telemetry";
904
+ }>;
905
+ }, z.core.$strict>>;
906
+ }, z.core.$strict>>;
907
+ metrics: z.ZodArray<z.ZodObject<{
908
+ label: z.ZodString;
909
+ metric: z.ZodString;
910
+ source: z.ZodObject<{
911
+ detail: z.ZodString;
912
+ kind: z.ZodLiteral<"boundary-thermo-attestation">;
913
+ }, z.core.$strict>;
914
+ unit: z.ZodEnum<{
915
+ boolean: "boolean";
916
+ text: "text";
917
+ count: "count";
918
+ }>;
919
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>;
920
+ }, z.core.$strict> | z.ZodObject<{
921
+ label: z.ZodString;
922
+ metric: z.ZodString;
923
+ source: z.ZodObject<{
924
+ detail: z.ZodString;
925
+ kind: z.ZodEnum<{
926
+ "boundary-thermo-attestation": "boundary-thermo-attestation";
927
+ "interior-telemetry": "interior-telemetry";
928
+ }>;
929
+ }, z.core.$strict>;
930
+ unit: z.ZodEnum<{
931
+ boolean: "boolean";
932
+ text: "text";
933
+ count: "count";
934
+ tokens: "tokens";
935
+ usd: "usd";
936
+ ratio: "ratio";
937
+ }>;
938
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>;
939
+ }, z.core.$strict>>;
940
+ repo: z.ZodString;
941
+ schemaVersion: z.ZodLiteral<3 | 4>;
942
+ }, z.core.$strict>, z.ZodObject<{
943
+ boundaryThermo: z.ZodObject<{
944
+ owner: z.ZodString;
945
+ runs: z.ZodNumber;
946
+ waived: z.ZodBoolean;
947
+ waiverRationale: z.ZodOptional<z.ZodString>;
948
+ }, z.core.$strict>;
949
+ budget: z.ZodObject<{
950
+ note: z.ZodString;
951
+ tier: z.ZodLiteral<"overseer">;
952
+ }, z.core.$strict> | z.ZodObject<{
953
+ interiorSourcesConsumed: z.ZodNumber;
954
+ note: z.ZodString;
955
+ scoping: z.ZodOptional<z.ZodObject<{
956
+ epic: z.ZodString;
957
+ issueFilter: z.ZodOptional<z.ZodNumber>;
958
+ prFilter: z.ZodOptional<z.ZodNumber>;
959
+ repo: z.ZodString;
960
+ scopedByEpicIssueSet: z.ZodBoolean;
961
+ window: z.ZodObject<{
962
+ from: z.ZodString;
963
+ to: z.ZodString;
964
+ }, z.core.$strict>;
965
+ }, z.core.$strict>>;
966
+ tier: z.ZodLiteral<"overseer">;
967
+ }, z.core.$strict>;
968
+ couldNotSee: z.ZodArray<z.ZodObject<{
969
+ id: z.ZodString;
970
+ note: z.ZodString;
971
+ reason: z.ZodOptional<z.ZodString>;
972
+ }, z.core.$strict>>;
973
+ epic: z.ZodString;
974
+ generatedAt: z.ZodISODateTime;
975
+ ledgerRows: z.ZodArray<z.ZodObject<{
976
+ detail: z.ZodOptional<z.ZodString>;
977
+ epic: z.ZodString;
978
+ generatedAt: z.ZodISODateTime;
979
+ key: z.ZodString;
980
+ landingSpot: z.ZodOptional<z.ZodEnum<{
981
+ CLI: "CLI";
982
+ profile: "profile";
983
+ skill: "skill";
984
+ ADR: "ADR";
985
+ }>>;
986
+ repo: z.ZodString;
987
+ rowType: z.ZodEnum<{
988
+ metric: "metric";
989
+ lesson: "lesson";
990
+ blindspot: "blindspot";
991
+ }>;
992
+ schemaVersion: z.ZodLiteral<3 | 4>;
993
+ source: z.ZodString;
994
+ unit: z.ZodOptional<z.ZodString>;
995
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
996
+ }, z.core.$strict>>;
997
+ lessons: z.ZodArray<z.ZodObject<{
998
+ id: z.ZodString;
999
+ landingSpot: z.ZodEnum<{
1000
+ CLI: "CLI";
1001
+ profile: "profile";
1002
+ skill: "skill";
1003
+ ADR: "ADR";
1004
+ }>;
1005
+ lesson: z.ZodString;
1006
+ rationale: z.ZodOptional<z.ZodString>;
1007
+ source: z.ZodOptional<z.ZodObject<{
1008
+ detail: z.ZodString;
1009
+ kind: z.ZodLiteral<"boundary-thermo-attestation">;
1010
+ }, z.core.$strict>>;
1011
+ }, z.core.$strict> | z.ZodObject<{
1012
+ id: z.ZodString;
1013
+ landingSpot: z.ZodEnum<{
1014
+ CLI: "CLI";
1015
+ profile: "profile";
1016
+ skill: "skill";
1017
+ ADR: "ADR";
1018
+ }>;
1019
+ lesson: z.ZodString;
1020
+ rationale: z.ZodOptional<z.ZodString>;
1021
+ source: z.ZodOptional<z.ZodObject<{
1022
+ detail: z.ZodString;
1023
+ kind: z.ZodEnum<{
1024
+ "boundary-thermo-attestation": "boundary-thermo-attestation";
1025
+ "interior-telemetry": "interior-telemetry";
1026
+ }>;
1027
+ }, z.core.$strict>>;
1028
+ }, z.core.$strict>>;
1029
+ metrics: z.ZodArray<z.ZodObject<{
1030
+ label: z.ZodString;
1031
+ metric: z.ZodString;
1032
+ source: z.ZodObject<{
1033
+ detail: z.ZodString;
1034
+ kind: z.ZodLiteral<"boundary-thermo-attestation">;
1035
+ }, z.core.$strict>;
1036
+ unit: z.ZodEnum<{
1037
+ boolean: "boolean";
1038
+ text: "text";
1039
+ count: "count";
1040
+ }>;
1041
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>;
1042
+ }, z.core.$strict> | z.ZodObject<{
1043
+ label: z.ZodString;
1044
+ metric: z.ZodString;
1045
+ source: z.ZodObject<{
1046
+ detail: z.ZodString;
1047
+ kind: z.ZodEnum<{
1048
+ "boundary-thermo-attestation": "boundary-thermo-attestation";
1049
+ "interior-telemetry": "interior-telemetry";
1050
+ }>;
1051
+ }, z.core.$strict>;
1052
+ unit: z.ZodEnum<{
1053
+ boolean: "boolean";
1054
+ text: "text";
1055
+ count: "count";
1056
+ tokens: "tokens";
1057
+ usd: "usd";
1058
+ ratio: "ratio";
1059
+ }>;
1060
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>;
1061
+ }, z.core.$strict>>;
1062
+ repo: z.ZodString;
1063
+ schemaVersion: z.ZodLiteral<3 | 4>;
1064
+ }, z.core.$strict>]>;
724
1065
  type CloseoutArtifact = z.infer<typeof closeoutArtifactSchema>;
1066
+ type HistoricalCloseoutArtifact = z.infer<typeof legacyCloseoutArtifactSchema>;
725
1067
  //#endregion
726
1068
  //#region src/retro-envelope.d.ts
727
1069
  /**
@@ -822,11 +1164,6 @@ declare const retroEnvelopeV1Schema: z.ZodObject<{
822
1164
  }, z.core.$strict>;
823
1165
  kind: z.ZodLiteral<"retro-envelope">;
824
1166
  outcome: z.ZodOptional<z.ZodObject<{
825
- mergeCheck: z.ZodOptional<z.ZodEnum<{
826
- pass: "pass";
827
- fail: "fail";
828
- "not-run": "not-run";
829
- }>>;
830
1167
  status: z.ZodEnum<{
831
1168
  fail: "fail";
832
1169
  success: "success";
@@ -1084,7 +1421,6 @@ declare const prReviewProofSchema: z.ZodObject<{
1084
1421
  promptSections: z.ZodOptional<z.ZodArray<z.ZodObject<{
1085
1422
  provenance: z.ZodEnum<{
1086
1423
  "prior-review-ledger": "prior-review-ledger";
1087
- "profile-standing-checklist": "profile-standing-checklist";
1088
1424
  "issue-review-focus": "issue-review-focus";
1089
1425
  }>;
1090
1426
  source: z.ZodString;
@@ -1286,9 +1622,8 @@ declare const prReadyProofSchema: z.ZodObject<{
1286
1622
  "out-of-scope": "out-of-scope";
1287
1623
  }>;
1288
1624
  }, z.core.$strip>>>;
1289
- finalReviewPoint: z.ZodBoolean;
1625
+ finalReviewPoint: z.ZodOptional<z.ZodBoolean>;
1290
1626
  github: z.ZodObject<{
1291
- currentWithBase: z.ZodBoolean;
1292
1627
  draft: z.ZodBoolean;
1293
1628
  mergeStateStatus: z.ZodString;
1294
1629
  mergeable: z.ZodString;
@@ -1299,6 +1634,7 @@ declare const prReadyProofSchema: z.ZodObject<{
1299
1634
  pending: "pending";
1300
1635
  none: "none";
1301
1636
  }>;
1637
+ reviewDecision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1302
1638
  unresolvedReviewThreads: z.ZodNumber;
1303
1639
  }, z.core.$strip>;
1304
1640
  handledCommentsProducer: z.ZodOptional<z.ZodObject<{
@@ -1326,29 +1662,13 @@ declare const prReadyProofSchema: z.ZodObject<{
1326
1662
  summary: z.ZodString;
1327
1663
  url: z.ZodString;
1328
1664
  }, z.core.$strip>>>;
1665
+ postReadinessHumanReviews: z.ZodOptional<z.ZodArray<z.ZodObject<{
1666
+ author: z.ZodString;
1667
+ createdAt: z.ZodString;
1668
+ summary: z.ZodString;
1669
+ url: z.ZodString;
1670
+ }, z.core.$strip>>>;
1329
1671
  pr: z.ZodNumber;
1330
- previewDeploy: z.ZodOptional<z.ZodObject<{
1331
- adminUrl: z.ZodOptional<z.ZodString>;
1332
- apiHealthUrl: z.ZodOptional<z.ZodString>;
1333
- headSha: z.ZodOptional<z.ZodString>;
1334
- localPreviewProof: z.ZodOptional<z.ZodUnknown>;
1335
- localProofPath: z.ZodOptional<z.ZodString>;
1336
- proofSource: z.ZodOptional<z.ZodEnum<{
1337
- "github-actions": "github-actions";
1338
- "local-self-certified": "local-self-certified";
1339
- }>>;
1340
- publicUrl: z.ZodOptional<z.ZodString>;
1341
- seedStatus: z.ZodEnum<{
1342
- unknown: "unknown";
1343
- passed: "passed";
1344
- failed: "failed";
1345
- skipped: "skipped";
1346
- }>;
1347
- stage: z.ZodOptional<z.ZodString>;
1348
- timingsMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodNumber>>>;
1349
- workflowRunUrl: z.ZodOptional<z.ZodString>;
1350
- }, z.core.$strip>>;
1351
- previewDeployRequired: z.ZodBoolean;
1352
1672
  repairs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1353
1673
  action: z.ZodString;
1354
1674
  code: z.ZodEnum<{
@@ -1455,7 +1775,6 @@ declare const prReadyProofSchema: z.ZodObject<{
1455
1775
  promptSections: z.ZodOptional<z.ZodArray<z.ZodObject<{
1456
1776
  provenance: z.ZodEnum<{
1457
1777
  "prior-review-ledger": "prior-review-ledger";
1458
- "profile-standing-checklist": "profile-standing-checklist";
1459
1778
  "issue-review-focus": "issue-review-focus";
1460
1779
  }>;
1461
1780
  source: z.ZodString;
@@ -1531,12 +1850,12 @@ declare const prReadyProofSchema: z.ZodObject<{
1531
1850
  }, z.core.$strip>>;
1532
1851
  }, z.core.$strip>;
1533
1852
  schemaVersion: z.ZodLiteral<1>;
1534
- stackRole: z.ZodEnum<{
1853
+ stackRole: z.ZodOptional<z.ZodEnum<{
1535
1854
  single: "single";
1536
1855
  slice: "slice";
1537
1856
  rollup: "rollup";
1538
1857
  "merge-gate prerequisite": "merge-gate prerequisite";
1539
- }>;
1858
+ }>>;
1540
1859
  verification: z.ZodObject<{
1541
1860
  command: z.ZodLiteral<"patronage-factory pr:verify">;
1542
1861
  docsOnlyDeltaAccepted: z.ZodOptional<z.ZodBoolean>;
@@ -1573,4 +1892,4 @@ declare const prReadyProofSchema: z.ZodObject<{
1573
1892
  waivedDemands: z.ZodOptional<z.ZodArray<z.ZodType<WaivedDemand, unknown, z.core.$ZodTypeInternals<WaivedDemand, unknown>>>>;
1574
1893
  }, z.core.$strip>;
1575
1894
  //#endregion
1576
- 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, PR_READY_SCHEMA_VERSION, PR_REVIEW_SCHEMA_VERSION, type ParsedRetroEnvelope, type PrReadyProof, type PrReviewProof, type PrVerifyProof, RETRO_ENVELOPE_SCHEMA_VERSION, RETRO_ENVELOPE_VALIDATORS, RETRO_ENVELOPE_WIRE_BOUNDS, type RetroEnvelope, SUPPORTED_PR_READY_SCHEMA_VERSIONS, SUPPORTED_PR_VERIFY_SCHEMA_VERSIONS, SUPPORTED_RETRO_ENVELOPE_SCHEMA_VERSIONS, type WaivedDemand, blockedReasonSchema, blockedReasonsSchema, boundaryCheckProofSchema, boundaryReviewProofSchema, closeoutArtifactSchema, evidenceEnvelopeSchema, prReadyProofSchema, prReviewProofSchema, prVerifyProofSchema, retroEnvelopeV1Schema, retroEpicReference, waivedDemandSchema };
1895
+ 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 HistoricalCloseoutArtifact, PR_READY_SCHEMA_VERSION, PR_REVIEW_SCHEMA_VERSION, type ParsedRetroEnvelope, type PrReadyProof, type PrReviewProof, type PrVerifyProof, RETRO_ENVELOPE_SCHEMA_VERSION, RETRO_ENVELOPE_VALIDATORS, RETRO_ENVELOPE_WIRE_BOUNDS, type RetroEnvelope, SUPPORTED_CLOSEOUT_SCHEMA_VERSIONS, SUPPORTED_PR_READY_SCHEMA_VERSIONS, SUPPORTED_PR_VERIFY_SCHEMA_VERSIONS, SUPPORTED_RETRO_ENVELOPE_SCHEMA_VERSIONS, type WaivedDemand, blockedReasonSchema, blockedReasonsSchema, boundaryCheckProofSchema, boundaryReviewProofSchema, closeoutArtifactReadSchema, closeoutArtifactSchema, evidenceEnvelopeSchema, legacyCloseoutArtifactSchema, prReadyProofSchema, prReviewProofSchema, prVerifyProofSchema, retroEnvelopeV1Schema, retroEpicReference, waivedDemandSchema };