@cat-factory/contracts 0.170.0 → 0.171.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/execution.d.ts +7 -236
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +15 -131
- package/dist/execution.js.map +1 -1
- package/dist/human-verdict-gates.d.ts +165 -0
- package/dist/human-verdict-gates.d.ts.map +1 -0
- package/dist/human-verdict-gates.js +139 -0
- package/dist/human-verdict-gates.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/public-api.d.ts +74 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +75 -1
- package/dist/public-api.js.map +1 -1
- package/dist/routes/public-api.d.ts +67 -1
- package/dist/routes/public-api.d.ts.map +1 -1
- package/dist/routes/public-api.js +18 -2
- package/dist/routes/public-api.js.map +1 -1
- package/package.json +1 -1
package/dist/execution.d.ts
CHANGED
|
@@ -570,169 +570,6 @@ export declare const deployEnvsSchema: v.RecordSchema<v.StringSchema<undefined>,
|
|
|
570
570
|
readonly error: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
571
571
|
}, undefined>, undefined>;
|
|
572
572
|
export type DeployEnvs = v.InferOutput<typeof deployEnvsSchema>;
|
|
573
|
-
export declare const humanTestEnvironmentSchema: v.ObjectSchema<{
|
|
574
|
-
/** The `environments` row id, so the window can fetch access creds / re-poll status. */
|
|
575
|
-
readonly id: v.StringSchema<undefined>;
|
|
576
|
-
/** The provisioned public URL the human tests against (null while still provisioning). */
|
|
577
|
-
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
578
|
-
/** The environment lifecycle status; see {@link environmentStatusSchema}. */
|
|
579
|
-
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
580
|
-
/** Epoch ms the environment expires (TTL), when known. */
|
|
581
|
-
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
582
|
-
}, undefined>;
|
|
583
|
-
export type HumanTestEnvironment = v.InferOutput<typeof humanTestEnvironmentSchema>;
|
|
584
|
-
/**
|
|
585
|
-
* One round of human-driven remediation on a `human-test` gate: the human wrote findings and
|
|
586
|
-
* asked for a fix (helper `fixer`), or pulled main and hit a conflict (helper
|
|
587
|
-
* `conflict-resolver`). Appended when the round opens and stamped with its outcome once the
|
|
588
|
-
* helper job settles, so the window can show the full history of what was asked and how it ended.
|
|
589
|
-
*/
|
|
590
|
-
export declare const humanTestRoundSchema: v.ObjectSchema<{
|
|
591
|
-
/** The kind of round — a findings-driven fix or a pull-main-with-conflicts resolve. */
|
|
592
|
-
readonly kind: v.PicklistSchema<["fix", "pull-main"], undefined>;
|
|
593
|
-
/** The human's findings prompt (fix), or a one-line note for the pull-main round. */
|
|
594
|
-
readonly findings: v.StringSchema<undefined>;
|
|
595
|
-
/** The helper container kind this round dispatched (`fixer` / `conflict-resolver`). */
|
|
596
|
-
readonly helperKind: v.StringSchema<undefined>;
|
|
597
|
-
/** The helper job's id while it ran, for cross-referencing the run timeline. */
|
|
598
|
-
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
599
|
-
/** How the helper ended once its job settled. Absent while still in flight. */
|
|
600
|
-
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
601
|
-
/** Epoch ms the round opened (the human clicked Request fix / Pull main). */
|
|
602
|
-
readonly at: v.NumberSchema<undefined>;
|
|
603
|
-
}, undefined>;
|
|
604
|
-
export type HumanTestRound = v.InferOutput<typeof humanTestRoundSchema>;
|
|
605
|
-
/**
|
|
606
|
-
* State a `human-test` gate carries while it runs. Unlike a polling gate (`ci`/`conflicts`)
|
|
607
|
-
* there is no programmatic verdict — the HUMAN is the verdict — so the step spins up an
|
|
608
|
-
* ephemeral environment, parks for a person to validate it, and on demand dispatches the same
|
|
609
|
-
* helpers the other gates use (the Tester's `fixer` for findings; the `conflict-resolver` for a
|
|
610
|
-
* conflicting pull-main). Phases:
|
|
611
|
-
* - `provisioning` — an environment is being stood up (the driver polls until ready).
|
|
612
|
-
* - `awaiting_human` — parked: the human tests the env and confirms / requests a fix / etc.
|
|
613
|
-
* - `fixing` — a `fixer` job (from the human's findings) is in flight.
|
|
614
|
-
* - `resolving_conflicts` — a `conflict-resolver` job (from a conflicting pull-main) is in flight.
|
|
615
|
-
* - `passed` — the human confirmed; the env is torn down and the run advances.
|
|
616
|
-
*/
|
|
617
|
-
export declare const humanTestStepStateSchema: v.ObjectSchema<{
|
|
618
|
-
readonly phase: v.PicklistSchema<["provisioning", "awaiting_human", "fixing", "resolving_conflicts", "passed"], undefined>;
|
|
619
|
-
/** The live ephemeral environment (null in degraded manual mode / after destroy). */
|
|
620
|
-
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
621
|
-
/** The `environments` row id, so the window can fetch access creds / re-poll status. */
|
|
622
|
-
readonly id: v.StringSchema<undefined>;
|
|
623
|
-
/** The provisioned public URL the human tests against (null while still provisioning). */
|
|
624
|
-
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
625
|
-
/** The environment lifecycle status; see {@link environmentStatusSchema}. */
|
|
626
|
-
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
627
|
-
/** Epoch ms the environment expires (TTL), when known. */
|
|
628
|
-
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
629
|
-
}, undefined>, undefined>, undefined>;
|
|
630
|
-
/**
|
|
631
|
-
* Why no environment was auto-provisioned — set in degraded manual mode (no env provider
|
|
632
|
-
* wired, or provisioning errored) so the window can explain it and let the human test
|
|
633
|
-
* against the PR branch manually. Absent when an env was provisioned.
|
|
634
|
-
*/
|
|
635
|
-
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
636
|
-
/** How many helper (fixer / conflict-resolver) attempts have been dispatched so far. */
|
|
637
|
-
readonly attempts: v.NumberSchema<undefined>;
|
|
638
|
-
/** Ceiling on helper attempts, resolved from the task's merge preset (`ciMaxAttempts`). */
|
|
639
|
-
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
640
|
-
/** The PR head commit being tested, when known. */
|
|
641
|
-
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
642
|
-
/** Append-only history of fix / pull-main rounds; see {@link humanTestRoundSchema}. */
|
|
643
|
-
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
644
|
-
/** The kind of round — a findings-driven fix or a pull-main-with-conflicts resolve. */
|
|
645
|
-
readonly kind: v.PicklistSchema<["fix", "pull-main"], undefined>;
|
|
646
|
-
/** The human's findings prompt (fix), or a one-line note for the pull-main round. */
|
|
647
|
-
readonly findings: v.StringSchema<undefined>;
|
|
648
|
-
/** The helper container kind this round dispatched (`fixer` / `conflict-resolver`). */
|
|
649
|
-
readonly helperKind: v.StringSchema<undefined>;
|
|
650
|
-
/** The helper job's id while it ran, for cross-referencing the run timeline. */
|
|
651
|
-
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
652
|
-
/** How the helper ended once its job settled. Absent while still in flight. */
|
|
653
|
-
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
654
|
-
/** Epoch ms the round opened (the human clicked Request fix / Pull main). */
|
|
655
|
-
readonly at: v.NumberSchema<undefined>;
|
|
656
|
-
}, undefined>, undefined>, undefined>;
|
|
657
|
-
/**
|
|
658
|
-
* Transient action the human requested while the gate is parked — recorded on the parked
|
|
659
|
-
* step and consumed by the durable driver when it re-enters the gate (the analogue of
|
|
660
|
-
* `pendingIncorporation` on a requirements gate). Cleared once the driver acts on it.
|
|
661
|
-
*/
|
|
662
|
-
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
663
|
-
readonly type: v.PicklistSchema<["confirm", "request-fix", "pull-main", "recreate"], undefined>;
|
|
664
|
-
/** The findings prompt for a `request-fix` action. */
|
|
665
|
-
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
666
|
-
}, undefined>, undefined>, undefined>;
|
|
667
|
-
}, undefined>;
|
|
668
|
-
export type HumanTestStepState = v.InferOutput<typeof humanTestStepStateSchema>;
|
|
669
|
-
/**
|
|
670
|
-
* One actual-vs-reference pairing the visual-confirmation gate shows the human: a logical
|
|
671
|
-
* view, the screenshot the UI tester captured of it (`actualArtifactId`), and the reference
|
|
672
|
-
* design image for the same view when one was uploaded (`referenceArtifactId`). Either side
|
|
673
|
-
* may be absent (a captured view with no reference, or a reference whose view wasn't captured).
|
|
674
|
-
*/
|
|
675
|
-
export declare const visualConfirmPairSchema: v.ObjectSchema<{
|
|
676
|
-
readonly view: v.StringSchema<undefined>;
|
|
677
|
-
readonly actualArtifactId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
678
|
-
readonly referenceArtifactId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
679
|
-
}, undefined>;
|
|
680
|
-
export type VisualConfirmPair = v.InferOutput<typeof visualConfirmPairSchema>;
|
|
681
|
-
/** One human-requested fix round on a visual-confirmation gate (dispatches the `fixer`). */
|
|
682
|
-
export declare const visualConfirmRoundSchema: v.ObjectSchema<{
|
|
683
|
-
readonly findings: v.StringSchema<undefined>;
|
|
684
|
-
readonly helperKind: v.StringSchema<undefined>;
|
|
685
|
-
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
686
|
-
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
687
|
-
readonly at: v.NumberSchema<undefined>;
|
|
688
|
-
}, undefined>;
|
|
689
|
-
export type VisualConfirmRound = v.InferOutput<typeof visualConfirmRoundSchema>;
|
|
690
|
-
/**
|
|
691
|
-
* State a `visual-confirmation` gate carries while it runs. Like `human-test` there is no
|
|
692
|
-
* programmatic verdict — a HUMAN reviews the UI tester's screenshots against the uploaded
|
|
693
|
-
* reference designs and approves, or requests a fix (which dispatches the `fixer` and then
|
|
694
|
-
* re-captures via the UI tester). Phases:
|
|
695
|
-
* - `awaiting_human`— parked: the human reviews actual-vs-reference and approves / requests a fix.
|
|
696
|
-
* - `fixing` — a `fixer` job (from the human's findings) is in flight.
|
|
697
|
-
* - `approved` — the human approved; the run advances.
|
|
698
|
-
*
|
|
699
|
-
* (A dedicated `capturing` phase for an auto re-run of the UI tester after a fix is deferred
|
|
700
|
-
* until that loop is wired — see the visual-confirmation handover doc — so it is intentionally
|
|
701
|
-
* absent from the picklist rather than carried as dead state.)
|
|
702
|
-
*/
|
|
703
|
-
export declare const visualConfirmStepStateSchema: v.ObjectSchema<{
|
|
704
|
-
readonly phase: v.PicklistSchema<["awaiting_human", "fixing", "approved"], undefined>;
|
|
705
|
-
/** The actual-vs-reference pairs the human reviews, refreshed on each (re)capture. */
|
|
706
|
-
readonly pairs: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
707
|
-
readonly view: v.StringSchema<undefined>;
|
|
708
|
-
readonly actualArtifactId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
709
|
-
readonly referenceArtifactId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
710
|
-
}, undefined>, undefined>, undefined>;
|
|
711
|
-
/** Set when no screenshots could be gathered (no UI tester ran / no storage) — manual mode. */
|
|
712
|
-
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
713
|
-
/** How many fixer attempts have been dispatched so far. */
|
|
714
|
-
readonly attempts: v.NumberSchema<undefined>;
|
|
715
|
-
/** Ceiling on fixer attempts, resolved from the task's merge preset (`ciMaxAttempts`). */
|
|
716
|
-
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
717
|
-
/** Append-only history of fix rounds; see {@link visualConfirmRoundSchema}. */
|
|
718
|
-
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
719
|
-
readonly findings: v.StringSchema<undefined>;
|
|
720
|
-
readonly helperKind: v.StringSchema<undefined>;
|
|
721
|
-
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
722
|
-
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
723
|
-
readonly at: v.NumberSchema<undefined>;
|
|
724
|
-
}, undefined>, undefined>, undefined>;
|
|
725
|
-
/**
|
|
726
|
-
* Transient action the human requested while parked — consumed by the durable driver
|
|
727
|
-
* when it re-enters the gate. Cleared once acted on.
|
|
728
|
-
*/
|
|
729
|
-
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
730
|
-
readonly type: v.PicklistSchema<["approve", "request-fix", "recapture"], undefined>;
|
|
731
|
-
/** The findings prompt for a `request-fix` action. */
|
|
732
|
-
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
733
|
-
}, undefined>, undefined>, undefined>;
|
|
734
|
-
}, undefined>;
|
|
735
|
-
export type VisualConfirmStepState = v.InferOutput<typeof visualConfirmStepStateSchema>;
|
|
736
573
|
/**
|
|
737
574
|
* Per-step LLM observability rollup: a compact aggregate over every model call the
|
|
738
575
|
* step's container made, recorded by the LLM proxy and summed by the engine for the
|
|
@@ -1046,52 +883,26 @@ export declare const pipelineStepSchema: v.ObjectSchema<{
|
|
|
1046
883
|
*/
|
|
1047
884
|
readonly humanTest: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1048
885
|
readonly phase: v.PicklistSchema<["provisioning", "awaiting_human", "fixing", "resolving_conflicts", "passed"], undefined>;
|
|
1049
|
-
/** The live ephemeral environment (null in degraded manual mode / after destroy). */
|
|
1050
886
|
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1051
|
-
/** The `environments` row id, so the window can fetch access creds / re-poll status. */
|
|
1052
887
|
readonly id: v.StringSchema<undefined>;
|
|
1053
|
-
/** The provisioned public URL the human tests against (null while still provisioning). */
|
|
1054
888
|
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1055
|
-
/** The environment lifecycle status; see {@link environmentStatusSchema}. */
|
|
1056
889
|
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
1057
|
-
/** Epoch ms the environment expires (TTL), when known. */
|
|
1058
890
|
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1059
891
|
}, undefined>, undefined>, undefined>;
|
|
1060
|
-
/**
|
|
1061
|
-
* Why no environment was auto-provisioned — set in degraded manual mode (no env provider
|
|
1062
|
-
* wired, or provisioning errored) so the window can explain it and let the human test
|
|
1063
|
-
* against the PR branch manually. Absent when an env was provisioned.
|
|
1064
|
-
*/
|
|
1065
892
|
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1066
|
-
/** How many helper (fixer / conflict-resolver) attempts have been dispatched so far. */
|
|
1067
893
|
readonly attempts: v.NumberSchema<undefined>;
|
|
1068
|
-
/** Ceiling on helper attempts, resolved from the task's merge preset (`ciMaxAttempts`). */
|
|
1069
894
|
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1070
|
-
/** The PR head commit being tested, when known. */
|
|
1071
895
|
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1072
|
-
/** Append-only history of fix / pull-main rounds; see {@link humanTestRoundSchema}. */
|
|
1073
896
|
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1074
|
-
/** The kind of round — a findings-driven fix or a pull-main-with-conflicts resolve. */
|
|
1075
897
|
readonly kind: v.PicklistSchema<["fix", "pull-main"], undefined>;
|
|
1076
|
-
/** The human's findings prompt (fix), or a one-line note for the pull-main round. */
|
|
1077
898
|
readonly findings: v.StringSchema<undefined>;
|
|
1078
|
-
/** The helper container kind this round dispatched (`fixer` / `conflict-resolver`). */
|
|
1079
899
|
readonly helperKind: v.StringSchema<undefined>;
|
|
1080
|
-
/** The helper job's id while it ran, for cross-referencing the run timeline. */
|
|
1081
900
|
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1082
|
-
/** How the helper ended once its job settled. Absent while still in flight. */
|
|
1083
901
|
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
1084
|
-
/** Epoch ms the round opened (the human clicked Request fix / Pull main). */
|
|
1085
902
|
readonly at: v.NumberSchema<undefined>;
|
|
1086
903
|
}, undefined>, undefined>, undefined>;
|
|
1087
|
-
/**
|
|
1088
|
-
* Transient action the human requested while the gate is parked — recorded on the parked
|
|
1089
|
-
* step and consumed by the durable driver when it re-enters the gate (the analogue of
|
|
1090
|
-
* `pendingIncorporation` on a requirements gate). Cleared once the driver acts on it.
|
|
1091
|
-
*/
|
|
1092
904
|
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1093
905
|
readonly type: v.PicklistSchema<["confirm", "request-fix", "pull-main", "recreate"], undefined>;
|
|
1094
|
-
/** The findings prompt for a `request-fix` action. */
|
|
1095
906
|
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1096
907
|
}, undefined>, undefined>, undefined>;
|
|
1097
908
|
}, undefined>, undefined>, undefined>;
|
|
@@ -1101,19 +912,14 @@ export declare const pipelineStepSchema: v.ObjectSchema<{
|
|
|
1101
912
|
*/
|
|
1102
913
|
readonly visualConfirm: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1103
914
|
readonly phase: v.PicklistSchema<["awaiting_human", "fixing", "approved"], undefined>;
|
|
1104
|
-
/** The actual-vs-reference pairs the human reviews, refreshed on each (re)capture. */
|
|
1105
915
|
readonly pairs: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1106
916
|
readonly view: v.StringSchema<undefined>;
|
|
1107
917
|
readonly actualArtifactId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1108
918
|
readonly referenceArtifactId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1109
919
|
}, undefined>, undefined>, undefined>;
|
|
1110
|
-
/** Set when no screenshots could be gathered (no UI tester ran / no storage) — manual mode. */
|
|
1111
920
|
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1112
|
-
/** How many fixer attempts have been dispatched so far. */
|
|
1113
921
|
readonly attempts: v.NumberSchema<undefined>;
|
|
1114
|
-
/** Ceiling on fixer attempts, resolved from the task's merge preset (`ciMaxAttempts`). */
|
|
1115
922
|
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1116
|
-
/** Append-only history of fix rounds; see {@link visualConfirmRoundSchema}. */
|
|
1117
923
|
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1118
924
|
readonly findings: v.StringSchema<undefined>;
|
|
1119
925
|
readonly helperKind: v.StringSchema<undefined>;
|
|
@@ -1121,13 +927,8 @@ export declare const pipelineStepSchema: v.ObjectSchema<{
|
|
|
1121
927
|
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
1122
928
|
readonly at: v.NumberSchema<undefined>;
|
|
1123
929
|
}, undefined>, undefined>, undefined>;
|
|
1124
|
-
/**
|
|
1125
|
-
* Transient action the human requested while parked — consumed by the durable driver
|
|
1126
|
-
* when it re-enters the gate. Cleared once acted on.
|
|
1127
|
-
*/
|
|
1128
930
|
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1129
931
|
readonly type: v.PicklistSchema<["approve", "request-fix", "recapture"], undefined>;
|
|
1130
|
-
/** The findings prompt for a `request-fix` action. */
|
|
1131
932
|
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1132
933
|
}, undefined>, undefined>, undefined>;
|
|
1133
934
|
}, undefined>, undefined>, undefined>;
|
|
@@ -2446,52 +2247,26 @@ export declare const executionInstanceSchema: v.ObjectSchema<{
|
|
|
2446
2247
|
*/
|
|
2447
2248
|
readonly humanTest: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2448
2249
|
readonly phase: v.PicklistSchema<["provisioning", "awaiting_human", "fixing", "resolving_conflicts", "passed"], undefined>;
|
|
2449
|
-
/** The live ephemeral environment (null in degraded manual mode / after destroy). */
|
|
2450
2250
|
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2451
|
-
/** The `environments` row id, so the window can fetch access creds / re-poll status. */
|
|
2452
2251
|
readonly id: v.StringSchema<undefined>;
|
|
2453
|
-
/** The provisioned public URL the human tests against (null while still provisioning). */
|
|
2454
2252
|
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2455
|
-
/** The environment lifecycle status; see {@link environmentStatusSchema}. */
|
|
2456
2253
|
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
2457
|
-
/** Epoch ms the environment expires (TTL), when known. */
|
|
2458
2254
|
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2459
2255
|
}, undefined>, undefined>, undefined>;
|
|
2460
|
-
/**
|
|
2461
|
-
* Why no environment was auto-provisioned — set in degraded manual mode (no env provider
|
|
2462
|
-
* wired, or provisioning errored) so the window can explain it and let the human test
|
|
2463
|
-
* against the PR branch manually. Absent when an env was provisioned.
|
|
2464
|
-
*/
|
|
2465
2256
|
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2466
|
-
/** How many helper (fixer / conflict-resolver) attempts have been dispatched so far. */
|
|
2467
2257
|
readonly attempts: v.NumberSchema<undefined>;
|
|
2468
|
-
/** Ceiling on helper attempts, resolved from the task's merge preset (`ciMaxAttempts`). */
|
|
2469
2258
|
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2470
|
-
/** The PR head commit being tested, when known. */
|
|
2471
2259
|
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2472
|
-
/** Append-only history of fix / pull-main rounds; see {@link humanTestRoundSchema}. */
|
|
2473
2260
|
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2474
|
-
/** The kind of round — a findings-driven fix or a pull-main-with-conflicts resolve. */
|
|
2475
2261
|
readonly kind: v.PicklistSchema<["fix", "pull-main"], undefined>;
|
|
2476
|
-
/** The human's findings prompt (fix), or a one-line note for the pull-main round. */
|
|
2477
2262
|
readonly findings: v.StringSchema<undefined>;
|
|
2478
|
-
/** The helper container kind this round dispatched (`fixer` / `conflict-resolver`). */
|
|
2479
2263
|
readonly helperKind: v.StringSchema<undefined>;
|
|
2480
|
-
/** The helper job's id while it ran, for cross-referencing the run timeline. */
|
|
2481
2264
|
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2482
|
-
/** How the helper ended once its job settled. Absent while still in flight. */
|
|
2483
2265
|
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
2484
|
-
/** Epoch ms the round opened (the human clicked Request fix / Pull main). */
|
|
2485
2266
|
readonly at: v.NumberSchema<undefined>;
|
|
2486
2267
|
}, undefined>, undefined>, undefined>;
|
|
2487
|
-
/**
|
|
2488
|
-
* Transient action the human requested while the gate is parked — recorded on the parked
|
|
2489
|
-
* step and consumed by the durable driver when it re-enters the gate (the analogue of
|
|
2490
|
-
* `pendingIncorporation` on a requirements gate). Cleared once the driver acts on it.
|
|
2491
|
-
*/
|
|
2492
2268
|
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2493
2269
|
readonly type: v.PicklistSchema<["confirm", "request-fix", "pull-main", "recreate"], undefined>;
|
|
2494
|
-
/** The findings prompt for a `request-fix` action. */
|
|
2495
2270
|
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2496
2271
|
}, undefined>, undefined>, undefined>;
|
|
2497
2272
|
}, undefined>, undefined>, undefined>;
|
|
@@ -2501,19 +2276,14 @@ export declare const executionInstanceSchema: v.ObjectSchema<{
|
|
|
2501
2276
|
*/
|
|
2502
2277
|
readonly visualConfirm: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2503
2278
|
readonly phase: v.PicklistSchema<["awaiting_human", "fixing", "approved"], undefined>;
|
|
2504
|
-
/** The actual-vs-reference pairs the human reviews, refreshed on each (re)capture. */
|
|
2505
2279
|
readonly pairs: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2506
2280
|
readonly view: v.StringSchema<undefined>;
|
|
2507
2281
|
readonly actualArtifactId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2508
2282
|
readonly referenceArtifactId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2509
2283
|
}, undefined>, undefined>, undefined>;
|
|
2510
|
-
/** Set when no screenshots could be gathered (no UI tester ran / no storage) — manual mode. */
|
|
2511
2284
|
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2512
|
-
/** How many fixer attempts have been dispatched so far. */
|
|
2513
2285
|
readonly attempts: v.NumberSchema<undefined>;
|
|
2514
|
-
/** Ceiling on fixer attempts, resolved from the task's merge preset (`ciMaxAttempts`). */
|
|
2515
2286
|
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2516
|
-
/** Append-only history of fix rounds; see {@link visualConfirmRoundSchema}. */
|
|
2517
2287
|
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2518
2288
|
readonly findings: v.StringSchema<undefined>;
|
|
2519
2289
|
readonly helperKind: v.StringSchema<undefined>;
|
|
@@ -2521,13 +2291,8 @@ export declare const executionInstanceSchema: v.ObjectSchema<{
|
|
|
2521
2291
|
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
2522
2292
|
readonly at: v.NumberSchema<undefined>;
|
|
2523
2293
|
}, undefined>, undefined>, undefined>;
|
|
2524
|
-
/**
|
|
2525
|
-
* Transient action the human requested while parked — consumed by the durable driver
|
|
2526
|
-
* when it re-enters the gate. Cleared once acted on.
|
|
2527
|
-
*/
|
|
2528
2294
|
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2529
2295
|
readonly type: v.PicklistSchema<["approve", "request-fix", "recapture"], undefined>;
|
|
2530
|
-
/** The findings prompt for a `request-fix` action. */
|
|
2531
2296
|
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2532
2297
|
}, undefined>, undefined>, undefined>;
|
|
2533
2298
|
}, undefined>, undefined>, undefined>;
|
|
@@ -3661,7 +3426,13 @@ export declare const executionInstanceSchema: v.ObjectSchema<{
|
|
|
3661
3426
|
/**
|
|
3662
3427
|
* Epoch-ms creation time, stamped when the run is first started. Gives a run a stable
|
|
3663
3428
|
* creation timestamp independent of when its first step actually starts (the public-API
|
|
3664
|
-
* job view reports it as `createdAt`).
|
|
3429
|
+
* job view reports it as `createdAt`).
|
|
3430
|
+
*
|
|
3431
|
+
* On a run READ BACK from storage this is the `agent_runs.created_at` COLUMN — the value
|
|
3432
|
+
* chronological reads order by — so a keyset cursor minted from a run names exactly the
|
|
3433
|
+
* position the next query resumes at. The insert adopts whatever the instance was stamped with
|
|
3434
|
+
* at start (`adoptCreatedAt`), so the in-memory run and its row never disagree. Optional only
|
|
3435
|
+
* because a run assembled in memory has not been persisted yet.
|
|
3665
3436
|
*/
|
|
3666
3437
|
readonly createdAt: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
3667
3438
|
/**
|
package/dist/execution.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../src/execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqC5B,eAAO,MAAM,cAAc;;;;;aAKzB,CAAA;AACF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB;IAChC,gEAAgE;;;aAGhE,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;;QAjB7B,gEAAgE;;;;aAsBhE,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB;IAClC;;;;OAIG;;IAEH;;;;;OAKG;;;IAGH;;;;OAIG;;IAEH,gDAAgD;;aAEhD,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAEH;;;;;;;WAOG;;;YAteH,6EAA6E;;YAE7E,sDAAsD;;;QAsetD;;;;;WAKG;;QAEH;;;;;;;WAOG;;;;;IAiFH;;;;OAIG;;;QAp1BH,0EAA0E;;QAE1E,8EAA8E;;QAE9E,4EAA4E;;QAE5E;;;;;;WAMG;;QAEH,yCAAyC;;QAEzC,+EAA+E;;;;;;gBAtL/E,gEAAgE;;;;;QAwLhE;;;;;WAKG;;;IA+zBH;;;;;;OAMG;;;QA51BH,0EAA0E;;QAE1E,8EAA8E;;QAE9E,4EAA4E;;QAE5E;;;;;;WAMG;;QAEH,yCAAyC;;QAEzC,+EAA+E;;;;;;gBAtL/E,gEAAgE;;;;;QAwLhE;;;;;WAKG;;;IAu0BH;;;;;;;;;OASG;;QAl0BH,yGAAyG;;QAEzG,8FAA8F;;QAE9F,8FAA8F;;QAE9F,iGAAiG;;;IA8zBjG;;;;;;;;OAQG;;IAEH;;;;;;;OAOG;;;;;IAEH;;;;;;OAMG;;IAEH;;;;;;;;;;OAUG;;IAEH;;;;;;;;;;OAUG;;IAEH;;;;;;;;;OASG;;IAEH;;;;OAIG;;QAhJH,0DAA0D;;YAGtD,wDAAwD;;YAExD,mEAAmE;;YAEnE,kGAAkG;;YAElG;;;;;eAKG;;YAEH,qCAAqC;;;;gBAKjC,8CAA8C;;gBAE9C,+EAA+E;;;YAInF,0CAA0C;;;QAI9C;;;;;WAKG;;;;;aA8GH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
package/dist/execution.js
CHANGED
|
@@ -10,9 +10,10 @@ import { reproductionReportSchema } from './reproduction.js';
|
|
|
10
10
|
import { prReviewStepStateSchema } from './prReview.js';
|
|
11
11
|
import { fragmentAdherenceSchema } from './fragment-adherence.js';
|
|
12
12
|
import { agentEffortReportSchema } from './agent-effort.js';
|
|
13
|
-
// The polling-GATE step-state
|
|
14
|
-
// `judge.ts` shape); `PipelineStep` composes
|
|
13
|
+
// The polling-GATE and the human-verdict-gate step-state clusters each live in their own
|
|
14
|
+
// module (the `forkDecision.ts` / `judge.ts` shape); `PipelineStep` composes them back in below.
|
|
15
15
|
import { gateStepStateSchema } from './gate.js';
|
|
16
|
+
import { humanTestStepStateSchema, visualConfirmStepStateSchema } from './human-verdict-gates.js';
|
|
16
17
|
import { environmentStatusSchema, infraEngineSchema, provisionTypeSchema, serviceProvisioningSchema, } from './environments.js';
|
|
17
18
|
import { resolvedFrontendBindingSchema } from './frontend.js';
|
|
18
19
|
import { agentKindSchema, agentStateSchema } from './primitives.js';
|
|
@@ -20,9 +21,11 @@ import { stepOptionsSchema } from './entities.js';
|
|
|
20
21
|
// ---------------------------------------------------------------------------
|
|
21
22
|
// Run / execution runtime state: the shapes that describe an in-flight run and
|
|
22
23
|
// its steps' live state — human decisions, subtasks, review comments, companion
|
|
23
|
-
// verdicts, approvals, agent-run failures, the
|
|
24
|
-
//
|
|
25
|
-
//
|
|
24
|
+
// verdicts, approvals, agent-run failures, the tester step-state machine,
|
|
25
|
+
// per-step metrics, the pipeline STEP (the runtime instance of a pipeline's
|
|
26
|
+
// step), and the execution instance itself. The gate (`gate.ts`) and
|
|
27
|
+
// human-verdict-gate (`human-verdict-gates.ts`) step-state clusters live in
|
|
28
|
+
// their own modules and are composed back into `PipelineStep` here.
|
|
26
29
|
// Split out of entities.ts (which keeps the board / pipeline-definition / model
|
|
27
30
|
// / workspace shapes); re-exported from the package barrel, so consumers are
|
|
28
31
|
// unaffected. Depends on entities.ts (for stepOptionsSchema); entities.ts does
|
|
@@ -437,131 +440,6 @@ export const deployEnvStateSchema = v.object({
|
|
|
437
440
|
});
|
|
438
441
|
/** Per-frame deploy outcomes keyed by service-frame block id; see {@link deployEnvStateSchema}. */
|
|
439
442
|
export const deployEnvsSchema = v.record(v.string(), deployEnvStateSchema);
|
|
440
|
-
export const humanTestEnvironmentSchema = v.object({
|
|
441
|
-
/** The `environments` row id, so the window can fetch access creds / re-poll status. */
|
|
442
|
-
id: v.string(),
|
|
443
|
-
/** The provisioned public URL the human tests against (null while still provisioning). */
|
|
444
|
-
url: v.nullable(v.string()),
|
|
445
|
-
/** The environment lifecycle status; see {@link environmentStatusSchema}. */
|
|
446
|
-
status: environmentStatusSchema,
|
|
447
|
-
/** Epoch ms the environment expires (TTL), when known. */
|
|
448
|
-
expiresAt: v.optional(v.nullable(v.number())),
|
|
449
|
-
});
|
|
450
|
-
/**
|
|
451
|
-
* One round of human-driven remediation on a `human-test` gate: the human wrote findings and
|
|
452
|
-
* asked for a fix (helper `fixer`), or pulled main and hit a conflict (helper
|
|
453
|
-
* `conflict-resolver`). Appended when the round opens and stamped with its outcome once the
|
|
454
|
-
* helper job settles, so the window can show the full history of what was asked and how it ended.
|
|
455
|
-
*/
|
|
456
|
-
export const humanTestRoundSchema = v.object({
|
|
457
|
-
/** The kind of round — a findings-driven fix or a pull-main-with-conflicts resolve. */
|
|
458
|
-
kind: v.picklist(['fix', 'pull-main']),
|
|
459
|
-
/** The human's findings prompt (fix), or a one-line note for the pull-main round. */
|
|
460
|
-
findings: v.string(),
|
|
461
|
-
/** The helper container kind this round dispatched (`fixer` / `conflict-resolver`). */
|
|
462
|
-
helperKind: v.string(),
|
|
463
|
-
/** The helper job's id while it ran, for cross-referencing the run timeline. */
|
|
464
|
-
jobId: v.optional(v.nullable(v.string())),
|
|
465
|
-
/** How the helper ended once its job settled. Absent while still in flight. */
|
|
466
|
-
outcome: v.optional(v.nullable(v.picklist(['completed', 'failed']))),
|
|
467
|
-
/** Epoch ms the round opened (the human clicked Request fix / Pull main). */
|
|
468
|
-
at: v.number(),
|
|
469
|
-
});
|
|
470
|
-
/**
|
|
471
|
-
* State a `human-test` gate carries while it runs. Unlike a polling gate (`ci`/`conflicts`)
|
|
472
|
-
* there is no programmatic verdict — the HUMAN is the verdict — so the step spins up an
|
|
473
|
-
* ephemeral environment, parks for a person to validate it, and on demand dispatches the same
|
|
474
|
-
* helpers the other gates use (the Tester's `fixer` for findings; the `conflict-resolver` for a
|
|
475
|
-
* conflicting pull-main). Phases:
|
|
476
|
-
* - `provisioning` — an environment is being stood up (the driver polls until ready).
|
|
477
|
-
* - `awaiting_human` — parked: the human tests the env and confirms / requests a fix / etc.
|
|
478
|
-
* - `fixing` — a `fixer` job (from the human's findings) is in flight.
|
|
479
|
-
* - `resolving_conflicts` — a `conflict-resolver` job (from a conflicting pull-main) is in flight.
|
|
480
|
-
* - `passed` — the human confirmed; the env is torn down and the run advances.
|
|
481
|
-
*/
|
|
482
|
-
export const humanTestStepStateSchema = v.object({
|
|
483
|
-
phase: v.picklist(['provisioning', 'awaiting_human', 'fixing', 'resolving_conflicts', 'passed']),
|
|
484
|
-
/** The live ephemeral environment (null in degraded manual mode / after destroy). */
|
|
485
|
-
environment: v.optional(v.nullable(humanTestEnvironmentSchema)),
|
|
486
|
-
/**
|
|
487
|
-
* Why no environment was auto-provisioned — set in degraded manual mode (no env provider
|
|
488
|
-
* wired, or provisioning errored) so the window can explain it and let the human test
|
|
489
|
-
* against the PR branch manually. Absent when an env was provisioned.
|
|
490
|
-
*/
|
|
491
|
-
degradedReason: v.optional(v.nullable(v.string())),
|
|
492
|
-
/** How many helper (fixer / conflict-resolver) attempts have been dispatched so far. */
|
|
493
|
-
attempts: v.number(),
|
|
494
|
-
/** Ceiling on helper attempts, resolved from the task's merge preset (`ciMaxAttempts`). */
|
|
495
|
-
maxAttempts: v.number(),
|
|
496
|
-
/** The PR head commit being tested, when known. */
|
|
497
|
-
headSha: v.optional(v.nullable(v.string())),
|
|
498
|
-
/** Append-only history of fix / pull-main rounds; see {@link humanTestRoundSchema}. */
|
|
499
|
-
rounds: v.optional(v.array(humanTestRoundSchema)),
|
|
500
|
-
/**
|
|
501
|
-
* Transient action the human requested while the gate is parked — recorded on the parked
|
|
502
|
-
* step and consumed by the durable driver when it re-enters the gate (the analogue of
|
|
503
|
-
* `pendingIncorporation` on a requirements gate). Cleared once the driver acts on it.
|
|
504
|
-
*/
|
|
505
|
-
pendingAction: v.optional(v.nullable(v.object({
|
|
506
|
-
type: v.picklist(['confirm', 'request-fix', 'pull-main', 'recreate']),
|
|
507
|
-
/** The findings prompt for a `request-fix` action. */
|
|
508
|
-
findings: v.optional(v.string()),
|
|
509
|
-
}))),
|
|
510
|
-
});
|
|
511
|
-
/**
|
|
512
|
-
* One actual-vs-reference pairing the visual-confirmation gate shows the human: a logical
|
|
513
|
-
* view, the screenshot the UI tester captured of it (`actualArtifactId`), and the reference
|
|
514
|
-
* design image for the same view when one was uploaded (`referenceArtifactId`). Either side
|
|
515
|
-
* may be absent (a captured view with no reference, or a reference whose view wasn't captured).
|
|
516
|
-
*/
|
|
517
|
-
export const visualConfirmPairSchema = v.object({
|
|
518
|
-
view: v.string(),
|
|
519
|
-
actualArtifactId: v.optional(v.nullable(v.string())),
|
|
520
|
-
referenceArtifactId: v.optional(v.nullable(v.string())),
|
|
521
|
-
});
|
|
522
|
-
/** One human-requested fix round on a visual-confirmation gate (dispatches the `fixer`). */
|
|
523
|
-
export const visualConfirmRoundSchema = v.object({
|
|
524
|
-
findings: v.string(),
|
|
525
|
-
helperKind: v.string(),
|
|
526
|
-
jobId: v.optional(v.nullable(v.string())),
|
|
527
|
-
outcome: v.optional(v.nullable(v.picklist(['completed', 'failed']))),
|
|
528
|
-
at: v.number(),
|
|
529
|
-
});
|
|
530
|
-
/**
|
|
531
|
-
* State a `visual-confirmation` gate carries while it runs. Like `human-test` there is no
|
|
532
|
-
* programmatic verdict — a HUMAN reviews the UI tester's screenshots against the uploaded
|
|
533
|
-
* reference designs and approves, or requests a fix (which dispatches the `fixer` and then
|
|
534
|
-
* re-captures via the UI tester). Phases:
|
|
535
|
-
* - `awaiting_human`— parked: the human reviews actual-vs-reference and approves / requests a fix.
|
|
536
|
-
* - `fixing` — a `fixer` job (from the human's findings) is in flight.
|
|
537
|
-
* - `approved` — the human approved; the run advances.
|
|
538
|
-
*
|
|
539
|
-
* (A dedicated `capturing` phase for an auto re-run of the UI tester after a fix is deferred
|
|
540
|
-
* until that loop is wired — see the visual-confirmation handover doc — so it is intentionally
|
|
541
|
-
* absent from the picklist rather than carried as dead state.)
|
|
542
|
-
*/
|
|
543
|
-
export const visualConfirmStepStateSchema = v.object({
|
|
544
|
-
phase: v.picklist(['awaiting_human', 'fixing', 'approved']),
|
|
545
|
-
/** The actual-vs-reference pairs the human reviews, refreshed on each (re)capture. */
|
|
546
|
-
pairs: v.optional(v.array(visualConfirmPairSchema)),
|
|
547
|
-
/** Set when no screenshots could be gathered (no UI tester ran / no storage) — manual mode. */
|
|
548
|
-
degradedReason: v.optional(v.nullable(v.string())),
|
|
549
|
-
/** How many fixer attempts have been dispatched so far. */
|
|
550
|
-
attempts: v.number(),
|
|
551
|
-
/** Ceiling on fixer attempts, resolved from the task's merge preset (`ciMaxAttempts`). */
|
|
552
|
-
maxAttempts: v.number(),
|
|
553
|
-
/** Append-only history of fix rounds; see {@link visualConfirmRoundSchema}. */
|
|
554
|
-
rounds: v.optional(v.array(visualConfirmRoundSchema)),
|
|
555
|
-
/**
|
|
556
|
-
* Transient action the human requested while parked — consumed by the durable driver
|
|
557
|
-
* when it re-enters the gate. Cleared once acted on.
|
|
558
|
-
*/
|
|
559
|
-
pendingAction: v.optional(v.nullable(v.object({
|
|
560
|
-
type: v.picklist(['approve', 'request-fix', 'recapture']),
|
|
561
|
-
/** The findings prompt for a `request-fix` action. */
|
|
562
|
-
findings: v.optional(v.string()),
|
|
563
|
-
}))),
|
|
564
|
-
});
|
|
565
443
|
/**
|
|
566
444
|
* Per-step LLM observability rollup: a compact aggregate over every model call the
|
|
567
445
|
* step's container made, recorded by the LLM proxy and summed by the engine for the
|
|
@@ -1171,7 +1049,13 @@ export const executionInstanceSchema = v.object({
|
|
|
1171
1049
|
/**
|
|
1172
1050
|
* Epoch-ms creation time, stamped when the run is first started. Gives a run a stable
|
|
1173
1051
|
* creation timestamp independent of when its first step actually starts (the public-API
|
|
1174
|
-
* job view reports it as `createdAt`).
|
|
1052
|
+
* job view reports it as `createdAt`).
|
|
1053
|
+
*
|
|
1054
|
+
* On a run READ BACK from storage this is the `agent_runs.created_at` COLUMN — the value
|
|
1055
|
+
* chronological reads order by — so a keyset cursor minted from a run names exactly the
|
|
1056
|
+
* position the next query resumes at. The insert adopts whatever the instance was stamped with
|
|
1057
|
+
* at start (`adoptCreatedAt`), so the in-memory run and its row never disagree. Optional only
|
|
1058
|
+
* because a run assembled in memory has not been persisted yet.
|
|
1175
1059
|
*/
|
|
1176
1060
|
createdAt: v.optional(v.number()),
|
|
1177
1061
|
/**
|