@claudexor/schema 3.0.4 → 3.1.1
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/agent-capabilities.d.ts +45 -8
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +14 -0
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts +384 -18
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +20 -1
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/budget.d.ts +84 -9
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +46 -0
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +97 -65
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +12 -1
- package/dist/config.js.map +1 -1
- package/dist/control-operation-responses.d.ts +311 -89
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +33 -3
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +613 -163
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +28 -2
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +1 -1
- package/dist/control-run-scope.d.ts +1 -1
- package/dist/control-thread-apply.d.ts +10 -0
- package/dist/control-thread-apply.d.ts.map +1 -1
- package/dist/control.d.ts +791 -232
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +76 -2
- package/dist/control.js.map +1 -1
- package/dist/decision.d.ts +205 -9
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +69 -1
- package/dist/decision.js.map +1 -1
- package/dist/deep-scan.d.ts +27 -0
- package/dist/deep-scan.d.ts.map +1 -0
- package/dist/deep-scan.js +27 -0
- package/dist/deep-scan.js.map +1 -0
- package/dist/delivery.d.ts +13 -0
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +15 -0
- package/dist/delivery.js.map +1 -1
- package/dist/effort.d.ts +132 -0
- package/dist/effort.d.ts.map +1 -0
- package/dist/effort.js +167 -0
- package/dist/effort.js.map +1 -0
- package/dist/events.d.ts +59 -4
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +91 -0
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +2 -2
- package/dist/harness.d.ts +209 -28
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +107 -14
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/operation.d.ts +193 -10
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +45 -0
- package/dist/operation.js.map +1 -1
- package/dist/output-schema-dialect.d.ts +22 -0
- package/dist/output-schema-dialect.d.ts.map +1 -0
- package/dist/output-schema-dialect.js +37 -0
- package/dist/output-schema-dialect.js.map +1 -0
- package/dist/output-schema.d.ts +26 -2
- package/dist/output-schema.d.ts.map +1 -1
- package/dist/output-schema.js +313 -16
- package/dist/output-schema.js.map +1 -1
- package/dist/plan.d.ts +2 -2
- package/dist/problem.d.ts +3 -3
- package/dist/project.d.ts +47 -12
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +32 -0
- package/dist/project.js.map +1 -1
- package/dist/readiness.d.ts +62 -7
- package/dist/readiness.d.ts.map +1 -1
- package/dist/recovery.d.ts +14 -14
- package/dist/review.d.ts +7 -7
- package/dist/route.d.ts +2 -2
- package/dist/setup.d.ts +288 -94
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +90 -6
- package/dist/setup.js.map +1 -1
- package/dist/status-projection.d.ts +79 -4
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +161 -4
- package/dist/status-projection.js.map +1 -1
- package/dist/task.d.ts +70 -53
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +18 -8
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +795 -32
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +177 -4
- package/dist/telemetry.js.map +1 -1
- package/dist/tool-ref.d.ts +14 -0
- package/dist/tool-ref.d.ts.map +1 -1
- package/dist/tool-ref.js +15 -0
- package/dist/tool-ref.js.map +1 -1
- package/dist/work-report.d.ts +131 -0
- package/dist/work-report.d.ts.map +1 -0
- package/dist/work-report.js +124 -0
- package/dist/work-report.js.map +1 -0
- package/dist/workspace.d.ts +2 -2
- package/generated/AgentCapabilityCatalog.schema.json +39 -8
- package/generated/ControlApplyCheckResponse.schema.json +5 -0
- package/generated/ControlDeliveryResponse.schema.json +14 -0
- package/generated/ControlHarnessListResponse.schema.json +64 -9
- package/generated/ControlHarnessSettingsPatch.schema.json +4 -8
- package/generated/ControlOperationCatalog.schema.json +74 -0
- package/generated/ControlOperationDescriptor.schema.json +74 -0
- package/generated/ControlOperationParameter.schema.json +75 -0
- package/generated/ControlProjectRemoveReceipt.schema.json +58 -0
- package/generated/ControlRunAgainDraft.schema.json +14 -7
- package/generated/ControlRunDetail.schema.json +406 -16
- package/generated/ControlRunListResponse.schema.json +232 -10
- package/generated/ControlRunStartRequest.schema.json +14 -7
- package/generated/ControlRunSummary.schema.json +218 -9
- package/generated/ControlSettingsSnapshot.schema.json +4 -8
- package/generated/ControlSettingsUpdateRequest.schema.json +4 -8
- package/generated/ControlSetupJobCreateRequest.schema.json +2 -1
- package/generated/ControlSetupJobEvent.schema.json +28 -0
- package/generated/ControlSetupJobSnapshot.schema.json +28 -0
- package/generated/ControlThreadApplyResponse.schema.json +14 -0
- package/generated/ControlThreadDetail.schema.json +94 -1
- package/generated/ControlThreadTurnRequest.schema.json +14 -7
- package/generated/DecisionRecord.schema.json +178 -2
- package/generated/GlobalConfig.schema.json +4 -8
- package/generated/HarnessEvent.schema.json +79 -1
- package/generated/HarnessManifest.schema.json +64 -9
- package/generated/HarnessStatusDto.schema.json +64 -9
- package/generated/McpRunHandleResult.schema.json +286 -1
- package/generated/McpRunToolResult.schema.json +171 -1
- package/generated/ProjectConfig.schema.json +26 -0
- package/generated/RoutePoolDegradedPayload.schema.json +79 -0
- package/generated/RunEvent.schema.json +8 -1
- package/generated/RunFailure.schema.json +23 -1
- package/generated/RunTelemetry.schema.json +376 -1
- package/generated/StructuredOutputConformance.schema.json +83 -0
- package/generated/TaskContract.schema.json +13 -1
- package/package.json +2 -2
package/dist/task.d.ts
CHANGED
|
@@ -84,8 +84,8 @@ export declare const TestCommand: z.ZodObject<{
|
|
|
84
84
|
}>>>;
|
|
85
85
|
}, "strict", z.ZodTypeAny, {
|
|
86
86
|
id: string;
|
|
87
|
-
args: string[];
|
|
88
87
|
required: boolean;
|
|
88
|
+
args: string[];
|
|
89
89
|
program: string;
|
|
90
90
|
envAllowlist: string[];
|
|
91
91
|
trust_required: boolean;
|
|
@@ -103,9 +103,9 @@ export declare const TestCommand: z.ZodObject<{
|
|
|
103
103
|
}, {
|
|
104
104
|
id: string;
|
|
105
105
|
program: string;
|
|
106
|
+
required?: boolean | undefined;
|
|
106
107
|
args?: string[] | undefined;
|
|
107
108
|
cwd?: string | undefined;
|
|
108
|
-
required?: boolean | undefined;
|
|
109
109
|
envAllowlist?: string[] | undefined;
|
|
110
110
|
trust_required?: boolean | undefined;
|
|
111
111
|
trust_grant?: {
|
|
@@ -135,19 +135,20 @@ export declare const ProtectedPathApproval: z.ZodObject<{
|
|
|
135
135
|
export type ProtectedPathApproval = z.infer<typeof ProtectedPathApproval>;
|
|
136
136
|
export declare const TaskConstraints: z.ZodObject<{
|
|
137
137
|
/** Globs whose changes escalate risk to a human-approval gate (wired into
|
|
138
|
-
* classifyRisk/requireHuman). These are
|
|
139
|
-
*
|
|
140
|
-
*
|
|
138
|
+
* classifyRisk/requireHuman). These are project-config-owned, cover every
|
|
139
|
+
* touched path (create/modify/delete/both rename sides), and cannot be
|
|
140
|
+
* suppressed by per-run protected-path approvals. */
|
|
141
141
|
protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
142
|
-
/** Per-run globs no candidate may touch AT ALL (create, modify,
|
|
143
|
-
*
|
|
144
|
-
*
|
|
142
|
+
/** Per-run globs no candidate may touch AT ALL (create, modify, delete, or
|
|
143
|
+
* rename). Unlike protected_paths, these produce a deny-path violation;
|
|
144
|
+
* both still require an explicit human decision before delivery. Enforced
|
|
145
|
+
* by the engine's post-diff policy gate on envelope runs;
|
|
145
146
|
* an in-place run with deny_paths is refused at preflight. An operator
|
|
146
147
|
* accept_risk decision MAY still deliver a violating patch (INV-111: the
|
|
147
148
|
* human is the final authority). */
|
|
148
149
|
deny_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
149
150
|
/** Engine-derived gate/test path protections. Per-run approvals can narrow
|
|
150
|
-
* only this auto-protected set, never
|
|
151
|
+
* only this auto-protected set, never project-config-owned protected_paths. */
|
|
151
152
|
auto_protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
152
153
|
/** Per-run typed approvals for protected gate/test path changes. These are
|
|
153
154
|
* produced by explicit surfaces (CLI/control/IDE), then consumed by policy. */
|
|
@@ -273,19 +274,20 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
273
274
|
max_turns: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
274
275
|
constraints: z.ZodDefault<z.ZodObject<{
|
|
275
276
|
/** Globs whose changes escalate risk to a human-approval gate (wired into
|
|
276
|
-
* classifyRisk/requireHuman). These are
|
|
277
|
-
*
|
|
278
|
-
*
|
|
277
|
+
* classifyRisk/requireHuman). These are project-config-owned, cover every
|
|
278
|
+
* touched path (create/modify/delete/both rename sides), and cannot be
|
|
279
|
+
* suppressed by per-run protected-path approvals. */
|
|
279
280
|
protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
280
|
-
/** Per-run globs no candidate may touch AT ALL (create, modify,
|
|
281
|
-
*
|
|
282
|
-
*
|
|
281
|
+
/** Per-run globs no candidate may touch AT ALL (create, modify, delete, or
|
|
282
|
+
* rename). Unlike protected_paths, these produce a deny-path violation;
|
|
283
|
+
* both still require an explicit human decision before delivery. Enforced
|
|
284
|
+
* by the engine's post-diff policy gate on envelope runs;
|
|
283
285
|
* an in-place run with deny_paths is refused at preflight. An operator
|
|
284
286
|
* accept_risk decision MAY still deliver a violating patch (INV-111: the
|
|
285
287
|
* human is the final authority). */
|
|
286
288
|
deny_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
287
289
|
/** Engine-derived gate/test path protections. Per-run approvals can narrow
|
|
288
|
-
* only this auto-protected set, never
|
|
290
|
+
* only this auto-protected set, never project-config-owned protected_paths. */
|
|
289
291
|
auto_protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
290
292
|
/** Per-run typed approvals for protected gate/test path changes. These are
|
|
291
293
|
* produced by explicit surfaces (CLI/control/IDE), then consumed by policy. */
|
|
@@ -358,8 +360,8 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
358
360
|
}>>>;
|
|
359
361
|
}, "strict", z.ZodTypeAny, {
|
|
360
362
|
id: string;
|
|
361
|
-
args: string[];
|
|
362
363
|
required: boolean;
|
|
364
|
+
args: string[];
|
|
363
365
|
program: string;
|
|
364
366
|
envAllowlist: string[];
|
|
365
367
|
trust_required: boolean;
|
|
@@ -377,9 +379,9 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
377
379
|
}, {
|
|
378
380
|
id: string;
|
|
379
381
|
program: string;
|
|
382
|
+
required?: boolean | undefined;
|
|
380
383
|
args?: string[] | undefined;
|
|
381
384
|
cwd?: string | undefined;
|
|
382
|
-
required?: boolean | undefined;
|
|
383
385
|
envAllowlist?: string[] | undefined;
|
|
384
386
|
trust_required?: boolean | undefined;
|
|
385
387
|
trust_grant?: {
|
|
@@ -396,8 +398,8 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
396
398
|
}, "strip", z.ZodTypeAny, {
|
|
397
399
|
commands: {
|
|
398
400
|
id: string;
|
|
399
|
-
args: string[];
|
|
400
401
|
required: boolean;
|
|
402
|
+
args: string[];
|
|
401
403
|
program: string;
|
|
402
404
|
envAllowlist: string[];
|
|
403
405
|
trust_required: boolean;
|
|
@@ -417,9 +419,9 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
417
419
|
commands?: {
|
|
418
420
|
id: string;
|
|
419
421
|
program: string;
|
|
422
|
+
required?: boolean | undefined;
|
|
420
423
|
args?: string[] | undefined;
|
|
421
424
|
cwd?: string | undefined;
|
|
422
|
-
required?: boolean | undefined;
|
|
423
425
|
envAllowlist?: string[] | undefined;
|
|
424
426
|
trust_required?: boolean | undefined;
|
|
425
427
|
trust_grant?: {
|
|
@@ -511,6 +513,11 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
511
513
|
* after scalar→primary expansion. The contract is the SSOT the route spec
|
|
512
514
|
* builder reads; empty = every route uses its per-harness settings default. */
|
|
513
515
|
routing_models: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
516
|
+
/** QA-035: the RESOLVED reasoning-effort per admitted lane, frozen at
|
|
517
|
+
* contract build so Exact Retry replays the effort that actually governed
|
|
518
|
+
* the run instead of re-reading (possibly changed) settings. Empty = no
|
|
519
|
+
* effort was resolved for any known lane (vendor default). */
|
|
520
|
+
routing_efforts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
514
521
|
convergence: z.ZodDefault<z.ZodObject<{
|
|
515
522
|
require_tests_pass: z.ZodDefault<z.ZodBoolean>;
|
|
516
523
|
require_no_accepted_block_open: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -580,8 +587,8 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
580
587
|
tests: {
|
|
581
588
|
commands: {
|
|
582
589
|
id: string;
|
|
583
|
-
args: string[];
|
|
584
590
|
required: boolean;
|
|
591
|
+
args: string[];
|
|
585
592
|
program: string;
|
|
586
593
|
envAllowlist: string[];
|
|
587
594
|
trust_required: boolean;
|
|
@@ -613,6 +620,7 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
613
620
|
};
|
|
614
621
|
};
|
|
615
622
|
routing_models: Record<string, string>;
|
|
623
|
+
routing_efforts: Record<string, string>;
|
|
616
624
|
convergence: {
|
|
617
625
|
require_tests_pass: boolean;
|
|
618
626
|
require_no_accepted_block_open: boolean;
|
|
@@ -666,9 +674,9 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
666
674
|
commands?: {
|
|
667
675
|
id: string;
|
|
668
676
|
program: string;
|
|
677
|
+
required?: boolean | undefined;
|
|
669
678
|
args?: string[] | undefined;
|
|
670
679
|
cwd?: string | undefined;
|
|
671
|
-
required?: boolean | undefined;
|
|
672
680
|
envAllowlist?: string[] | undefined;
|
|
673
681
|
trust_required?: boolean | undefined;
|
|
674
682
|
trust_grant?: {
|
|
@@ -698,6 +706,7 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
698
706
|
} | undefined;
|
|
699
707
|
} | undefined;
|
|
700
708
|
routing_models?: Record<string, string> | undefined;
|
|
709
|
+
routing_efforts?: Record<string, string> | undefined;
|
|
701
710
|
convergence?: {
|
|
702
711
|
require_tests_pass?: boolean | undefined;
|
|
703
712
|
require_no_accepted_block_open?: boolean | undefined;
|
|
@@ -755,8 +764,8 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
755
764
|
}>>>;
|
|
756
765
|
}, "strict", z.ZodTypeAny, {
|
|
757
766
|
id: string;
|
|
758
|
-
args: string[];
|
|
759
767
|
required: boolean;
|
|
768
|
+
args: string[];
|
|
760
769
|
program: string;
|
|
761
770
|
envAllowlist: string[];
|
|
762
771
|
trust_required: boolean;
|
|
@@ -774,9 +783,9 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
774
783
|
}, {
|
|
775
784
|
id: string;
|
|
776
785
|
program: string;
|
|
786
|
+
required?: boolean | undefined;
|
|
777
787
|
args?: string[] | undefined;
|
|
778
788
|
cwd?: string | undefined;
|
|
779
|
-
required?: boolean | undefined;
|
|
780
789
|
envAllowlist?: string[] | undefined;
|
|
781
790
|
trust_required?: boolean | undefined;
|
|
782
791
|
trust_grant?: {
|
|
@@ -830,8 +839,8 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
830
839
|
}>>>;
|
|
831
840
|
}, "strict", z.ZodTypeAny, {
|
|
832
841
|
id: string;
|
|
833
|
-
args: string[];
|
|
834
842
|
required: boolean;
|
|
843
|
+
args: string[];
|
|
835
844
|
program: string;
|
|
836
845
|
envAllowlist: string[];
|
|
837
846
|
trust_required: boolean;
|
|
@@ -849,9 +858,9 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
849
858
|
}, {
|
|
850
859
|
id: string;
|
|
851
860
|
program: string;
|
|
861
|
+
required?: boolean | undefined;
|
|
852
862
|
args?: string[] | undefined;
|
|
853
863
|
cwd?: string | undefined;
|
|
854
|
-
required?: boolean | undefined;
|
|
855
864
|
envAllowlist?: string[] | undefined;
|
|
856
865
|
trust_required?: boolean | undefined;
|
|
857
866
|
trust_grant?: {
|
|
@@ -905,8 +914,8 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
905
914
|
}>>>;
|
|
906
915
|
}, "strict", z.ZodTypeAny, {
|
|
907
916
|
id: string;
|
|
908
|
-
args: string[];
|
|
909
917
|
required: boolean;
|
|
918
|
+
args: string[];
|
|
910
919
|
program: string;
|
|
911
920
|
envAllowlist: string[];
|
|
912
921
|
trust_required: boolean;
|
|
@@ -924,9 +933,9 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
924
933
|
}, {
|
|
925
934
|
id: string;
|
|
926
935
|
program: string;
|
|
936
|
+
required?: boolean | undefined;
|
|
927
937
|
args?: string[] | undefined;
|
|
928
938
|
cwd?: string | undefined;
|
|
929
|
-
required?: boolean | undefined;
|
|
930
939
|
envAllowlist?: string[] | undefined;
|
|
931
940
|
trust_required?: boolean | undefined;
|
|
932
941
|
trust_grant?: {
|
|
@@ -982,8 +991,8 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
982
991
|
}>>>;
|
|
983
992
|
}, "strict", z.ZodTypeAny, {
|
|
984
993
|
id: string;
|
|
985
|
-
args: string[];
|
|
986
994
|
required: boolean;
|
|
995
|
+
args: string[];
|
|
987
996
|
program: string;
|
|
988
997
|
envAllowlist: string[];
|
|
989
998
|
trust_required: boolean;
|
|
@@ -1001,9 +1010,9 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1001
1010
|
}, {
|
|
1002
1011
|
id: string;
|
|
1003
1012
|
program: string;
|
|
1013
|
+
required?: boolean | undefined;
|
|
1004
1014
|
args?: string[] | undefined;
|
|
1005
1015
|
cwd?: string | undefined;
|
|
1006
|
-
required?: boolean | undefined;
|
|
1007
1016
|
envAllowlist?: string[] | undefined;
|
|
1008
1017
|
trust_required?: boolean | undefined;
|
|
1009
1018
|
trust_grant?: {
|
|
@@ -1057,8 +1066,8 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1057
1066
|
}>>>;
|
|
1058
1067
|
}, "strict", z.ZodTypeAny, {
|
|
1059
1068
|
id: string;
|
|
1060
|
-
args: string[];
|
|
1061
1069
|
required: boolean;
|
|
1070
|
+
args: string[];
|
|
1062
1071
|
program: string;
|
|
1063
1072
|
envAllowlist: string[];
|
|
1064
1073
|
trust_required: boolean;
|
|
@@ -1076,9 +1085,9 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1076
1085
|
}, {
|
|
1077
1086
|
id: string;
|
|
1078
1087
|
program: string;
|
|
1088
|
+
required?: boolean | undefined;
|
|
1079
1089
|
args?: string[] | undefined;
|
|
1080
1090
|
cwd?: string | undefined;
|
|
1081
|
-
required?: boolean | undefined;
|
|
1082
1091
|
envAllowlist?: string[] | undefined;
|
|
1083
1092
|
trust_required?: boolean | undefined;
|
|
1084
1093
|
trust_grant?: {
|
|
@@ -1132,8 +1141,8 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1132
1141
|
}>>>;
|
|
1133
1142
|
}, "strict", z.ZodTypeAny, {
|
|
1134
1143
|
id: string;
|
|
1135
|
-
args: string[];
|
|
1136
1144
|
required: boolean;
|
|
1145
|
+
args: string[];
|
|
1137
1146
|
program: string;
|
|
1138
1147
|
envAllowlist: string[];
|
|
1139
1148
|
trust_required: boolean;
|
|
@@ -1151,9 +1160,9 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1151
1160
|
}, {
|
|
1152
1161
|
id: string;
|
|
1153
1162
|
program: string;
|
|
1163
|
+
required?: boolean | undefined;
|
|
1154
1164
|
args?: string[] | undefined;
|
|
1155
1165
|
cwd?: string | undefined;
|
|
1156
|
-
required?: boolean | undefined;
|
|
1157
1166
|
envAllowlist?: string[] | undefined;
|
|
1158
1167
|
trust_required?: boolean | undefined;
|
|
1159
1168
|
trust_grant?: {
|
|
@@ -1209,8 +1218,8 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1209
1218
|
}>>>;
|
|
1210
1219
|
}, "strict", z.ZodTypeAny, {
|
|
1211
1220
|
id: string;
|
|
1212
|
-
args: string[];
|
|
1213
1221
|
required: boolean;
|
|
1222
|
+
args: string[];
|
|
1214
1223
|
program: string;
|
|
1215
1224
|
envAllowlist: string[];
|
|
1216
1225
|
trust_required: boolean;
|
|
@@ -1228,9 +1237,9 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1228
1237
|
}, {
|
|
1229
1238
|
id: string;
|
|
1230
1239
|
program: string;
|
|
1240
|
+
required?: boolean | undefined;
|
|
1231
1241
|
args?: string[] | undefined;
|
|
1232
1242
|
cwd?: string | undefined;
|
|
1233
|
-
required?: boolean | undefined;
|
|
1234
1243
|
envAllowlist?: string[] | undefined;
|
|
1235
1244
|
trust_required?: boolean | undefined;
|
|
1236
1245
|
trust_grant?: {
|
|
@@ -1284,8 +1293,8 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1284
1293
|
}>>>;
|
|
1285
1294
|
}, "strict", z.ZodTypeAny, {
|
|
1286
1295
|
id: string;
|
|
1287
|
-
args: string[];
|
|
1288
1296
|
required: boolean;
|
|
1297
|
+
args: string[];
|
|
1289
1298
|
program: string;
|
|
1290
1299
|
envAllowlist: string[];
|
|
1291
1300
|
trust_required: boolean;
|
|
@@ -1303,9 +1312,9 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1303
1312
|
}, {
|
|
1304
1313
|
id: string;
|
|
1305
1314
|
program: string;
|
|
1315
|
+
required?: boolean | undefined;
|
|
1306
1316
|
args?: string[] | undefined;
|
|
1307
1317
|
cwd?: string | undefined;
|
|
1308
|
-
required?: boolean | undefined;
|
|
1309
1318
|
envAllowlist?: string[] | undefined;
|
|
1310
1319
|
trust_required?: boolean | undefined;
|
|
1311
1320
|
trust_grant?: {
|
|
@@ -1359,8 +1368,8 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1359
1368
|
}>>>;
|
|
1360
1369
|
}, "strict", z.ZodTypeAny, {
|
|
1361
1370
|
id: string;
|
|
1362
|
-
args: string[];
|
|
1363
1371
|
required: boolean;
|
|
1372
|
+
args: string[];
|
|
1364
1373
|
program: string;
|
|
1365
1374
|
envAllowlist: string[];
|
|
1366
1375
|
trust_required: boolean;
|
|
@@ -1378,9 +1387,9 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1378
1387
|
}, {
|
|
1379
1388
|
id: string;
|
|
1380
1389
|
program: string;
|
|
1390
|
+
required?: boolean | undefined;
|
|
1381
1391
|
args?: string[] | undefined;
|
|
1382
1392
|
cwd?: string | undefined;
|
|
1383
|
-
required?: boolean | undefined;
|
|
1384
1393
|
envAllowlist?: string[] | undefined;
|
|
1385
1394
|
trust_required?: boolean | undefined;
|
|
1386
1395
|
trust_grant?: {
|
|
@@ -1456,19 +1465,20 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1456
1465
|
max_turns: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1457
1466
|
constraints: z.ZodDefault<z.ZodObject<{
|
|
1458
1467
|
/** Globs whose changes escalate risk to a human-approval gate (wired into
|
|
1459
|
-
* classifyRisk/requireHuman). These are
|
|
1460
|
-
*
|
|
1461
|
-
*
|
|
1468
|
+
* classifyRisk/requireHuman). These are project-config-owned, cover every
|
|
1469
|
+
* touched path (create/modify/delete/both rename sides), and cannot be
|
|
1470
|
+
* suppressed by per-run protected-path approvals. */
|
|
1462
1471
|
protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1463
|
-
/** Per-run globs no candidate may touch AT ALL (create, modify,
|
|
1464
|
-
*
|
|
1465
|
-
*
|
|
1472
|
+
/** Per-run globs no candidate may touch AT ALL (create, modify, delete, or
|
|
1473
|
+
* rename). Unlike protected_paths, these produce a deny-path violation;
|
|
1474
|
+
* both still require an explicit human decision before delivery. Enforced
|
|
1475
|
+
* by the engine's post-diff policy gate on envelope runs;
|
|
1466
1476
|
* an in-place run with deny_paths is refused at preflight. An operator
|
|
1467
1477
|
* accept_risk decision MAY still deliver a violating patch (INV-111: the
|
|
1468
1478
|
* human is the final authority). */
|
|
1469
1479
|
deny_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1470
1480
|
/** Engine-derived gate/test path protections. Per-run approvals can narrow
|
|
1471
|
-
* only this auto-protected set, never
|
|
1481
|
+
* only this auto-protected set, never project-config-owned protected_paths. */
|
|
1472
1482
|
auto_protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1473
1483
|
/** Per-run typed approvals for protected gate/test path changes. These are
|
|
1474
1484
|
* produced by explicit surfaces (CLI/control/IDE), then consumed by policy. */
|
|
@@ -1541,8 +1551,8 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1541
1551
|
}>>>;
|
|
1542
1552
|
}, "strict", z.ZodTypeAny, {
|
|
1543
1553
|
id: string;
|
|
1544
|
-
args: string[];
|
|
1545
1554
|
required: boolean;
|
|
1555
|
+
args: string[];
|
|
1546
1556
|
program: string;
|
|
1547
1557
|
envAllowlist: string[];
|
|
1548
1558
|
trust_required: boolean;
|
|
@@ -1560,9 +1570,9 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1560
1570
|
}, {
|
|
1561
1571
|
id: string;
|
|
1562
1572
|
program: string;
|
|
1573
|
+
required?: boolean | undefined;
|
|
1563
1574
|
args?: string[] | undefined;
|
|
1564
1575
|
cwd?: string | undefined;
|
|
1565
|
-
required?: boolean | undefined;
|
|
1566
1576
|
envAllowlist?: string[] | undefined;
|
|
1567
1577
|
trust_required?: boolean | undefined;
|
|
1568
1578
|
trust_grant?: {
|
|
@@ -1579,8 +1589,8 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1579
1589
|
}, "strip", z.ZodTypeAny, {
|
|
1580
1590
|
commands: {
|
|
1581
1591
|
id: string;
|
|
1582
|
-
args: string[];
|
|
1583
1592
|
required: boolean;
|
|
1593
|
+
args: string[];
|
|
1584
1594
|
program: string;
|
|
1585
1595
|
envAllowlist: string[];
|
|
1586
1596
|
trust_required: boolean;
|
|
@@ -1600,9 +1610,9 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1600
1610
|
commands?: {
|
|
1601
1611
|
id: string;
|
|
1602
1612
|
program: string;
|
|
1613
|
+
required?: boolean | undefined;
|
|
1603
1614
|
args?: string[] | undefined;
|
|
1604
1615
|
cwd?: string | undefined;
|
|
1605
|
-
required?: boolean | undefined;
|
|
1606
1616
|
envAllowlist?: string[] | undefined;
|
|
1607
1617
|
trust_required?: boolean | undefined;
|
|
1608
1618
|
trust_grant?: {
|
|
@@ -1694,6 +1704,11 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1694
1704
|
* after scalar→primary expansion. The contract is the SSOT the route spec
|
|
1695
1705
|
* builder reads; empty = every route uses its per-harness settings default. */
|
|
1696
1706
|
routing_models: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1707
|
+
/** QA-035: the RESOLVED reasoning-effort per admitted lane, frozen at
|
|
1708
|
+
* contract build so Exact Retry replays the effort that actually governed
|
|
1709
|
+
* the run instead of re-reading (possibly changed) settings. Empty = no
|
|
1710
|
+
* effort was resolved for any known lane (vendor default). */
|
|
1711
|
+
routing_efforts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1697
1712
|
convergence: z.ZodDefault<z.ZodObject<{
|
|
1698
1713
|
require_tests_pass: z.ZodDefault<z.ZodBoolean>;
|
|
1699
1714
|
require_no_accepted_block_open: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1763,8 +1778,8 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1763
1778
|
tests: {
|
|
1764
1779
|
commands: {
|
|
1765
1780
|
id: string;
|
|
1766
|
-
args: string[];
|
|
1767
1781
|
required: boolean;
|
|
1782
|
+
args: string[];
|
|
1768
1783
|
program: string;
|
|
1769
1784
|
envAllowlist: string[];
|
|
1770
1785
|
trust_required: boolean;
|
|
@@ -1796,6 +1811,7 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1796
1811
|
};
|
|
1797
1812
|
};
|
|
1798
1813
|
routing_models: Record<string, string>;
|
|
1814
|
+
routing_efforts: Record<string, string>;
|
|
1799
1815
|
convergence: {
|
|
1800
1816
|
require_tests_pass: boolean;
|
|
1801
1817
|
require_no_accepted_block_open: boolean;
|
|
@@ -1849,9 +1865,9 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1849
1865
|
commands?: {
|
|
1850
1866
|
id: string;
|
|
1851
1867
|
program: string;
|
|
1868
|
+
required?: boolean | undefined;
|
|
1852
1869
|
args?: string[] | undefined;
|
|
1853
1870
|
cwd?: string | undefined;
|
|
1854
|
-
required?: boolean | undefined;
|
|
1855
1871
|
envAllowlist?: string[] | undefined;
|
|
1856
1872
|
trust_required?: boolean | undefined;
|
|
1857
1873
|
trust_grant?: {
|
|
@@ -1881,6 +1897,7 @@ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
|
1881
1897
|
} | undefined;
|
|
1882
1898
|
} | undefined;
|
|
1883
1899
|
routing_models?: Record<string, string> | undefined;
|
|
1900
|
+
routing_efforts?: Record<string, string> | undefined;
|
|
1884
1901
|
convergence?: {
|
|
1885
1902
|
require_tests_pass?: boolean | undefined;
|
|
1886
1903
|
require_no_accepted_block_open?: boolean | undefined;
|
package/dist/task.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../src/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../src/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAcmD,CAAC;AACtF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY8C,CAAC;AAC5E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,WAAW;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAnInC;;2DAEuD;;IAKvD;;;;;mFAK+E;;IAQ/E;;2CAEuC;;IAIvC;iFAC6E;;IAM7E;;qEAEiE;;;QA/IjE;;;6DAGqD;;QAOrD;;;;;;4CAMoC;;QAOpC;uFAC+E;;QAO/E;uFAC+E;;YA/C/E;4FACgF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAoL5E,kGAAkG;;;;;;;;;;;;QAmBlG,gGAAgG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwBpG;;mFAE+E;;IAO/E;;;kEAG8D;;;;;;;;QAxJ9D;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4K6E,CAAC;AACrF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
package/dist/task.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AccessProfile, AuthPreference, ContentHash, DirtyPolicy, ExternalContextPolicy, Id, IsoTimestamp, ModeKind, NonBlankString, SchemaVersion, } from "./primitives.js";
|
|
3
3
|
import { PaidBudget, RoutingGoal } from "./budget.js";
|
|
4
|
+
import { EffortHint } from "./harness.js";
|
|
4
5
|
export const TestCommandInvocation = z
|
|
5
6
|
.object({
|
|
6
7
|
program: NonBlankString.describe("Executable invoked directly without an implicit shell."),
|
|
@@ -54,16 +55,17 @@ export const ProtectedPathApproval = z
|
|
|
54
55
|
export const TaskConstraints = z
|
|
55
56
|
.object({
|
|
56
57
|
/** Globs whose changes escalate risk to a human-approval gate (wired into
|
|
57
|
-
* classifyRisk/requireHuman). These are
|
|
58
|
-
*
|
|
59
|
-
*
|
|
58
|
+
* classifyRisk/requireHuman). These are project-config-owned, cover every
|
|
59
|
+
* touched path (create/modify/delete/both rename sides), and cannot be
|
|
60
|
+
* suppressed by per-run protected-path approvals. */
|
|
60
61
|
protected_paths: z
|
|
61
62
|
.array(z.string())
|
|
62
63
|
.default([])
|
|
63
|
-
.describe("Approval globs — path globs (e.g. `migrations/**`, `**/*.env`) whose changes escalate a run to a human-approval gate before it can be applied.
|
|
64
|
-
/** Per-run globs no candidate may touch AT ALL (create, modify,
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
.describe("Approval globs — path globs (e.g. `migrations/**`, `**/*.env`) whose matching create, modify, delete, or rename changes escalate a run to a human-approval gate before it can be applied. Project-config-owned and never suppressed by per-run protected-path approvals."),
|
|
65
|
+
/** Per-run globs no candidate may touch AT ALL (create, modify, delete, or
|
|
66
|
+
* rename). Unlike protected_paths, these produce a deny-path violation;
|
|
67
|
+
* both still require an explicit human decision before delivery. Enforced
|
|
68
|
+
* by the engine's post-diff policy gate on envelope runs;
|
|
67
69
|
* an in-place run with deny_paths is refused at preflight. An operator
|
|
68
70
|
* accept_risk decision MAY still deliver a violating patch (INV-111: the
|
|
69
71
|
* human is the final authority). */
|
|
@@ -72,7 +74,7 @@ export const TaskConstraints = z
|
|
|
72
74
|
.default([])
|
|
73
75
|
.describe("Per-run globs no candidate may touch at all; enforced by the engine post-diff gate on envelope runs (in-place runs with deny_paths are refused). accept_risk may still deliver (INV-111)."),
|
|
74
76
|
/** Engine-derived gate/test path protections. Per-run approvals can narrow
|
|
75
|
-
* only this auto-protected set, never
|
|
77
|
+
* only this auto-protected set, never project-config-owned protected_paths. */
|
|
76
78
|
auto_protected_paths: z
|
|
77
79
|
.array(z.string())
|
|
78
80
|
.default([])
|
|
@@ -236,6 +238,14 @@ export const TaskContract = z
|
|
|
236
238
|
.record(z.string(), z.string())
|
|
237
239
|
.default({})
|
|
238
240
|
.describe("Resolved harness-scoped model map for this run (harness id to model id); empty means every route uses its per-harness settings default."),
|
|
241
|
+
/** QA-035: the RESOLVED reasoning-effort per admitted lane, frozen at
|
|
242
|
+
* contract build so Exact Retry replays the effort that actually governed
|
|
243
|
+
* the run instead of re-reading (possibly changed) settings. Empty = no
|
|
244
|
+
* effort was resolved for any known lane (vendor default). */
|
|
245
|
+
routing_efforts: z
|
|
246
|
+
.record(z.string(), EffortHint)
|
|
247
|
+
.default({})
|
|
248
|
+
.describe("Resolved harness-scoped reasoning-effort map for this run (harness id to effort), frozen so an Exact Retry replays the same effort instead of re-resolving current settings."),
|
|
239
249
|
convergence: ConvergencePredicate.default({}),
|
|
240
250
|
})
|
|
241
251
|
.describe("Immutable contract describing a single run; built once, hashed, never mutated.");
|
package/dist/task.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.js","sourceRoot":"","sources":["../src/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,cAAc,EACd,WAAW,EACX,WAAW,EACX,qBAAqB,EACrB,EAAE,EACF,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"task.js","sourceRoot":"","sources":["../src/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EAC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