@riddledc/riddle-proof 0.5.1 → 0.5.2
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/README.md +2 -2
- package/dist/chunk-3MHFLQKG.js +853 -0
- package/dist/{chunk-LVP22WE4.js → chunk-5GZZZ6JA.js} +5 -1
- package/dist/engine-harness.cjs +2505 -22
- package/dist/engine-harness.js +1 -1
- package/dist/index.cjs +2512 -29
- package/dist/index.js +2 -2
- package/dist/proof-run-core.cjs +909 -0
- package/dist/proof-run-core.d.cts +280 -0
- package/dist/proof-run-core.d.ts +280 -0
- package/dist/proof-run-core.js +48 -0
- package/dist/proof-run-engine.cjs +2499 -0
- package/dist/proof-run-engine.d.cts +677 -0
- package/dist/proof-run-engine.d.ts +677 -0
- package/dist/proof-run-engine.js +1649 -0
- package/lib/workspace-core.mjs +391 -0
- package/package.json +15 -3
- package/runtime/lib/author.py +343 -0
- package/runtime/lib/implement.py +63 -0
- package/runtime/lib/preflight.py +246 -0
- package/runtime/lib/recon.py +1048 -0
- package/runtime/lib/riddle_core_call.mjs +151 -0
- package/runtime/lib/setup.py +387 -0
- package/runtime/lib/ship.py +834 -0
- package/runtime/lib/util.py +673 -0
- package/runtime/lib/verify.py +1223 -0
- package/runtime/pipelines/riddle-proof-author.lobster +28 -0
- package/runtime/pipelines/riddle-proof-implement.lobster +26 -0
- package/runtime/pipelines/riddle-proof-recon.lobster +79 -0
- package/runtime/pipelines/riddle-proof-setup.lobster +141 -0
- package/runtime/pipelines/riddle-proof-ship.lobster +36 -0
- package/runtime/pipelines/riddle-proof-verify.lobster +74 -0
- package/runtime/tests/recon_verify_smoke.py +1198 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
type WorkflowAction = "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "status" | "sync" | "run";
|
|
2
|
+
type WorkflowStage = Exclude<WorkflowAction, "status" | "sync" | "run">;
|
|
3
|
+
declare const WORKFLOW_STAGE_ORDER: WorkflowStage[];
|
|
4
|
+
interface WorkflowParams {
|
|
5
|
+
action: WorkflowAction;
|
|
6
|
+
repo?: string;
|
|
7
|
+
branch?: string;
|
|
8
|
+
change_request?: string;
|
|
9
|
+
commit_message?: string;
|
|
10
|
+
prod_url?: string;
|
|
11
|
+
capture_script?: string;
|
|
12
|
+
success_criteria?: string;
|
|
13
|
+
assertions_json?: string;
|
|
14
|
+
verification_mode?: string;
|
|
15
|
+
reference?: "prod" | "before" | "both";
|
|
16
|
+
base_branch?: string;
|
|
17
|
+
before_ref?: string;
|
|
18
|
+
allow_static_preview_fallback?: boolean;
|
|
19
|
+
context?: string;
|
|
20
|
+
reviewer?: string;
|
|
21
|
+
mode?: "server" | "static";
|
|
22
|
+
build_command?: string;
|
|
23
|
+
build_output?: string;
|
|
24
|
+
server_image?: string;
|
|
25
|
+
server_command?: string;
|
|
26
|
+
server_port?: number;
|
|
27
|
+
server_path?: string;
|
|
28
|
+
use_auth?: boolean;
|
|
29
|
+
auth_localStorage_json?: string;
|
|
30
|
+
auth_cookies_json?: string;
|
|
31
|
+
auth_headers_json?: string;
|
|
32
|
+
color_scheme?: "dark" | "light";
|
|
33
|
+
wait_for_selector?: string;
|
|
34
|
+
discord_channel?: string;
|
|
35
|
+
discord_thread_id?: string;
|
|
36
|
+
discord_message_id?: string;
|
|
37
|
+
discord_source_url?: string;
|
|
38
|
+
recon_assessment_json?: string;
|
|
39
|
+
proof_plan?: string;
|
|
40
|
+
author_packet_json?: string;
|
|
41
|
+
implementation_notes?: string;
|
|
42
|
+
proof_assessment_json?: string;
|
|
43
|
+
state_path?: string;
|
|
44
|
+
auto_approve?: boolean;
|
|
45
|
+
continue_from_checkpoint?: boolean;
|
|
46
|
+
ship_after_verify?: boolean;
|
|
47
|
+
leave_draft?: boolean;
|
|
48
|
+
cleanup_merged_pr?: boolean;
|
|
49
|
+
fetch_base?: boolean;
|
|
50
|
+
update_base_checkout?: boolean;
|
|
51
|
+
advance_stage?: WorkflowStage;
|
|
52
|
+
}
|
|
53
|
+
interface PluginConfig {
|
|
54
|
+
riddleProofDir?: string;
|
|
55
|
+
statePath?: string;
|
|
56
|
+
defaultReviewer?: string;
|
|
57
|
+
}
|
|
58
|
+
declare const CHECKPOINT_CONTRACT_VERSION = "riddle-proof-run.checkpoint.v1";
|
|
59
|
+
declare const BUNDLED_RIDDLE_PROOF_DIR: string;
|
|
60
|
+
declare const RIDDLE_PROOF_DIR_CANDIDATES: string[];
|
|
61
|
+
interface CheckpointInputContract {
|
|
62
|
+
name: string;
|
|
63
|
+
type: "json" | "string" | "boolean" | "external_action";
|
|
64
|
+
required?: boolean;
|
|
65
|
+
description: string;
|
|
66
|
+
}
|
|
67
|
+
interface ShipGateValidation {
|
|
68
|
+
ok: boolean;
|
|
69
|
+
reasons: string[];
|
|
70
|
+
required_baselines: string[];
|
|
71
|
+
evidence: {
|
|
72
|
+
reference: string;
|
|
73
|
+
prod_url: string | null;
|
|
74
|
+
before_cdn: string | null;
|
|
75
|
+
prod_cdn: string | null;
|
|
76
|
+
after_cdn: string | null;
|
|
77
|
+
verify_status: string | null;
|
|
78
|
+
proof_assessment_decision: string | null;
|
|
79
|
+
proof_assessment_source: string | null;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
declare function resolveRiddleProofDir(config?: PluginConfig): string;
|
|
83
|
+
declare function resolveConfig(config?: PluginConfig, params?: Partial<Pick<WorkflowParams, "action" | "state_path">>): {
|
|
84
|
+
riddleProofDir: string;
|
|
85
|
+
statePath: string;
|
|
86
|
+
argsPath: string;
|
|
87
|
+
defaultReviewer: string;
|
|
88
|
+
};
|
|
89
|
+
declare function ensureAction(action: string): WorkflowAction;
|
|
90
|
+
declare function workflowFile(riddleProofDir: string, action: WorkflowStage): string;
|
|
91
|
+
declare function buildSetupArgs(params: WorkflowParams, config: ReturnType<typeof resolveConfig>): {
|
|
92
|
+
repo: string;
|
|
93
|
+
branch: string;
|
|
94
|
+
change_request: string;
|
|
95
|
+
commit_message: string;
|
|
96
|
+
prod_url: string;
|
|
97
|
+
capture_script: string;
|
|
98
|
+
success_criteria: string;
|
|
99
|
+
assertions_json: string;
|
|
100
|
+
verification_mode: string;
|
|
101
|
+
reference: "prod" | "before" | "both";
|
|
102
|
+
base_branch: string;
|
|
103
|
+
before_ref: string;
|
|
104
|
+
allow_static_preview_fallback: string;
|
|
105
|
+
context: string;
|
|
106
|
+
reviewer: string;
|
|
107
|
+
mode: string;
|
|
108
|
+
build_command: string;
|
|
109
|
+
build_output: string;
|
|
110
|
+
server_image: string;
|
|
111
|
+
server_command: string;
|
|
112
|
+
server_port: string;
|
|
113
|
+
server_path: string;
|
|
114
|
+
server_path_source: string;
|
|
115
|
+
use_auth: string;
|
|
116
|
+
auth_localStorage_json: string;
|
|
117
|
+
auth_cookies_json: string;
|
|
118
|
+
auth_headers_json: string;
|
|
119
|
+
color_scheme: string;
|
|
120
|
+
wait_for_selector: string;
|
|
121
|
+
discord_channel: string;
|
|
122
|
+
discord_thread_id: string;
|
|
123
|
+
discord_message_id: string;
|
|
124
|
+
discord_source_url: string;
|
|
125
|
+
leave_draft: string;
|
|
126
|
+
};
|
|
127
|
+
declare function readState(statePath: string): any;
|
|
128
|
+
declare function writeState(statePath: string, state: Record<string, unknown>): void;
|
|
129
|
+
declare function ensureStageLoopState(state?: any): any;
|
|
130
|
+
declare function clearStageDecisionRequest(state?: any): any;
|
|
131
|
+
declare function recordStageAttempt(state: any, stage: WorkflowStage, entry?: {
|
|
132
|
+
status?: string;
|
|
133
|
+
checkpoint?: string | null;
|
|
134
|
+
summary?: string | null;
|
|
135
|
+
requestedAdvanceStage?: WorkflowStage | null;
|
|
136
|
+
haltedForApproval?: boolean;
|
|
137
|
+
autoApproved?: boolean;
|
|
138
|
+
error?: string | null;
|
|
139
|
+
details?: Record<string, unknown>;
|
|
140
|
+
}): {
|
|
141
|
+
attempt: number;
|
|
142
|
+
stage: WorkflowStage;
|
|
143
|
+
status: string;
|
|
144
|
+
checkpoint: string | null;
|
|
145
|
+
summary: string | null;
|
|
146
|
+
requested_advance_stage: WorkflowStage | null;
|
|
147
|
+
halted_for_approval: boolean;
|
|
148
|
+
auto_approved: boolean;
|
|
149
|
+
error: string | null;
|
|
150
|
+
details: Record<string, unknown>;
|
|
151
|
+
attempted_at: string;
|
|
152
|
+
};
|
|
153
|
+
declare function setStageDecisionRequest(state: any, request: {
|
|
154
|
+
stage: WorkflowStage;
|
|
155
|
+
checkpoint: string;
|
|
156
|
+
summary: string;
|
|
157
|
+
nextActions?: string[];
|
|
158
|
+
advanceOptions?: WorkflowStage[];
|
|
159
|
+
recommendedAdvanceStage?: WorkflowStage | null;
|
|
160
|
+
continueWithStage?: WorkflowStage | null;
|
|
161
|
+
blocking?: boolean;
|
|
162
|
+
details?: Record<string, unknown>;
|
|
163
|
+
checkpointContract?: Record<string, unknown>;
|
|
164
|
+
}): any;
|
|
165
|
+
declare function checkpointContinueStage(state: any): WorkflowStage | null;
|
|
166
|
+
declare function invalidateVerifyEvidence(state?: any): {
|
|
167
|
+
invalidated: boolean;
|
|
168
|
+
hadAfterCdn?: undefined;
|
|
169
|
+
hadVerifyResults?: undefined;
|
|
170
|
+
hadMergeRecommendation?: undefined;
|
|
171
|
+
hadProofSummary?: undefined;
|
|
172
|
+
hadVerifyStatus?: undefined;
|
|
173
|
+
hadVerifySummary?: undefined;
|
|
174
|
+
hadVerifyDecisionRequest?: undefined;
|
|
175
|
+
hadEvidenceNotes?: undefined;
|
|
176
|
+
hadProofAssessment?: undefined;
|
|
177
|
+
hadProofAssessmentRequest?: undefined;
|
|
178
|
+
} | {
|
|
179
|
+
invalidated: boolean;
|
|
180
|
+
hadAfterCdn: boolean;
|
|
181
|
+
hadVerifyResults: boolean;
|
|
182
|
+
hadMergeRecommendation: boolean;
|
|
183
|
+
hadProofSummary: boolean;
|
|
184
|
+
hadVerifyStatus: boolean;
|
|
185
|
+
hadVerifySummary: boolean;
|
|
186
|
+
hadVerifyDecisionRequest: boolean;
|
|
187
|
+
hadEvidenceNotes: boolean;
|
|
188
|
+
hadProofAssessment: boolean;
|
|
189
|
+
hadProofAssessmentRequest: boolean;
|
|
190
|
+
};
|
|
191
|
+
declare function requiredBaselineLabelsForState(state?: any): string[];
|
|
192
|
+
declare function validateShipGate(state?: any): ShipGateValidation;
|
|
193
|
+
declare function buildCheckpointContract(state: any, request: {
|
|
194
|
+
statePath?: string;
|
|
195
|
+
stage: WorkflowStage;
|
|
196
|
+
checkpoint: string;
|
|
197
|
+
summary: string;
|
|
198
|
+
nextActions?: string[];
|
|
199
|
+
advanceOptions?: WorkflowStage[];
|
|
200
|
+
recommendedAdvanceStage?: WorkflowStage | null;
|
|
201
|
+
continueWithStage?: WorkflowStage | null;
|
|
202
|
+
blocking?: boolean;
|
|
203
|
+
}): Record<string, unknown>;
|
|
204
|
+
declare function mergeStateFromParams(statePath: string, params: WorkflowParams): any;
|
|
205
|
+
declare function summarizeState(state: any): {
|
|
206
|
+
stage: string;
|
|
207
|
+
summary: string;
|
|
208
|
+
state: null;
|
|
209
|
+
} | {
|
|
210
|
+
stage: any;
|
|
211
|
+
summary: string;
|
|
212
|
+
state: {
|
|
213
|
+
workspace_ready: boolean;
|
|
214
|
+
repo: any;
|
|
215
|
+
branch: any;
|
|
216
|
+
mode: any;
|
|
217
|
+
reference: any;
|
|
218
|
+
before_ref: any;
|
|
219
|
+
allow_static_preview_fallback: boolean;
|
|
220
|
+
commit_message: any;
|
|
221
|
+
author_status: any;
|
|
222
|
+
author_summary: any;
|
|
223
|
+
author_request: any;
|
|
224
|
+
proof_plan_status: any;
|
|
225
|
+
proof_plan: any;
|
|
226
|
+
proof_plan_request: any;
|
|
227
|
+
proof_profile_applied: boolean;
|
|
228
|
+
proof_profile: any;
|
|
229
|
+
recon_status: any;
|
|
230
|
+
recon_assessment: any;
|
|
231
|
+
recon_assessment_request: any;
|
|
232
|
+
recon_assessment_source: any;
|
|
233
|
+
recon_decision_request: any;
|
|
234
|
+
recon_attempts_used: any;
|
|
235
|
+
recon_attempts_max: any;
|
|
236
|
+
recon_hypothesis: any;
|
|
237
|
+
implementation_status: any;
|
|
238
|
+
implementation_summary: any;
|
|
239
|
+
implementation_environment_issues: any;
|
|
240
|
+
verify_status: any;
|
|
241
|
+
verify_summary: any;
|
|
242
|
+
verify_decision_request: any;
|
|
243
|
+
proof_assessment: any;
|
|
244
|
+
proof_assessment_request: any;
|
|
245
|
+
proof_assessment_source: any;
|
|
246
|
+
merge_recommendation: any;
|
|
247
|
+
before_cdn: any;
|
|
248
|
+
after_cdn: any;
|
|
249
|
+
prod_cdn: any;
|
|
250
|
+
pr_url: any;
|
|
251
|
+
pr_branch: any;
|
|
252
|
+
pr_state: any;
|
|
253
|
+
ship_commit: any;
|
|
254
|
+
ship_remote_head: any;
|
|
255
|
+
merge_commit: any;
|
|
256
|
+
merged_at: any;
|
|
257
|
+
ship_push: any;
|
|
258
|
+
ship_report: any;
|
|
259
|
+
cleanup_report: any;
|
|
260
|
+
proof_comment_url: any;
|
|
261
|
+
proof_assessment_comment_url: any;
|
|
262
|
+
marked_ready: any;
|
|
263
|
+
left_draft: any;
|
|
264
|
+
ci_status: any;
|
|
265
|
+
reviewer: any;
|
|
266
|
+
active_checkpoint: any;
|
|
267
|
+
active_checkpoint_stage: any;
|
|
268
|
+
continue_with_stage: WorkflowStage | null;
|
|
269
|
+
stage_decision_request: any;
|
|
270
|
+
stage_attempt_counts: {
|
|
271
|
+
[k: string]: number;
|
|
272
|
+
};
|
|
273
|
+
explicit_stage_gate: boolean;
|
|
274
|
+
last_requested_advance_stage: any;
|
|
275
|
+
recon_results: any;
|
|
276
|
+
verify_results: any;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export { BUNDLED_RIDDLE_PROOF_DIR, CHECKPOINT_CONTRACT_VERSION, type CheckpointInputContract, type PluginConfig, RIDDLE_PROOF_DIR_CANDIDATES, type ShipGateValidation, WORKFLOW_STAGE_ORDER, type WorkflowAction, type WorkflowParams, type WorkflowStage, buildCheckpointContract, buildSetupArgs, checkpointContinueStage, clearStageDecisionRequest, ensureAction, ensureStageLoopState, invalidateVerifyEvidence, mergeStateFromParams, readState, recordStageAttempt, requiredBaselineLabelsForState, resolveConfig, resolveRiddleProofDir, setStageDecisionRequest, summarizeState, validateShipGate, workflowFile, writeState };
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
type WorkflowAction = "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "status" | "sync" | "run";
|
|
2
|
+
type WorkflowStage = Exclude<WorkflowAction, "status" | "sync" | "run">;
|
|
3
|
+
declare const WORKFLOW_STAGE_ORDER: WorkflowStage[];
|
|
4
|
+
interface WorkflowParams {
|
|
5
|
+
action: WorkflowAction;
|
|
6
|
+
repo?: string;
|
|
7
|
+
branch?: string;
|
|
8
|
+
change_request?: string;
|
|
9
|
+
commit_message?: string;
|
|
10
|
+
prod_url?: string;
|
|
11
|
+
capture_script?: string;
|
|
12
|
+
success_criteria?: string;
|
|
13
|
+
assertions_json?: string;
|
|
14
|
+
verification_mode?: string;
|
|
15
|
+
reference?: "prod" | "before" | "both";
|
|
16
|
+
base_branch?: string;
|
|
17
|
+
before_ref?: string;
|
|
18
|
+
allow_static_preview_fallback?: boolean;
|
|
19
|
+
context?: string;
|
|
20
|
+
reviewer?: string;
|
|
21
|
+
mode?: "server" | "static";
|
|
22
|
+
build_command?: string;
|
|
23
|
+
build_output?: string;
|
|
24
|
+
server_image?: string;
|
|
25
|
+
server_command?: string;
|
|
26
|
+
server_port?: number;
|
|
27
|
+
server_path?: string;
|
|
28
|
+
use_auth?: boolean;
|
|
29
|
+
auth_localStorage_json?: string;
|
|
30
|
+
auth_cookies_json?: string;
|
|
31
|
+
auth_headers_json?: string;
|
|
32
|
+
color_scheme?: "dark" | "light";
|
|
33
|
+
wait_for_selector?: string;
|
|
34
|
+
discord_channel?: string;
|
|
35
|
+
discord_thread_id?: string;
|
|
36
|
+
discord_message_id?: string;
|
|
37
|
+
discord_source_url?: string;
|
|
38
|
+
recon_assessment_json?: string;
|
|
39
|
+
proof_plan?: string;
|
|
40
|
+
author_packet_json?: string;
|
|
41
|
+
implementation_notes?: string;
|
|
42
|
+
proof_assessment_json?: string;
|
|
43
|
+
state_path?: string;
|
|
44
|
+
auto_approve?: boolean;
|
|
45
|
+
continue_from_checkpoint?: boolean;
|
|
46
|
+
ship_after_verify?: boolean;
|
|
47
|
+
leave_draft?: boolean;
|
|
48
|
+
cleanup_merged_pr?: boolean;
|
|
49
|
+
fetch_base?: boolean;
|
|
50
|
+
update_base_checkout?: boolean;
|
|
51
|
+
advance_stage?: WorkflowStage;
|
|
52
|
+
}
|
|
53
|
+
interface PluginConfig {
|
|
54
|
+
riddleProofDir?: string;
|
|
55
|
+
statePath?: string;
|
|
56
|
+
defaultReviewer?: string;
|
|
57
|
+
}
|
|
58
|
+
declare const CHECKPOINT_CONTRACT_VERSION = "riddle-proof-run.checkpoint.v1";
|
|
59
|
+
declare const BUNDLED_RIDDLE_PROOF_DIR: string;
|
|
60
|
+
declare const RIDDLE_PROOF_DIR_CANDIDATES: string[];
|
|
61
|
+
interface CheckpointInputContract {
|
|
62
|
+
name: string;
|
|
63
|
+
type: "json" | "string" | "boolean" | "external_action";
|
|
64
|
+
required?: boolean;
|
|
65
|
+
description: string;
|
|
66
|
+
}
|
|
67
|
+
interface ShipGateValidation {
|
|
68
|
+
ok: boolean;
|
|
69
|
+
reasons: string[];
|
|
70
|
+
required_baselines: string[];
|
|
71
|
+
evidence: {
|
|
72
|
+
reference: string;
|
|
73
|
+
prod_url: string | null;
|
|
74
|
+
before_cdn: string | null;
|
|
75
|
+
prod_cdn: string | null;
|
|
76
|
+
after_cdn: string | null;
|
|
77
|
+
verify_status: string | null;
|
|
78
|
+
proof_assessment_decision: string | null;
|
|
79
|
+
proof_assessment_source: string | null;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
declare function resolveRiddleProofDir(config?: PluginConfig): string;
|
|
83
|
+
declare function resolveConfig(config?: PluginConfig, params?: Partial<Pick<WorkflowParams, "action" | "state_path">>): {
|
|
84
|
+
riddleProofDir: string;
|
|
85
|
+
statePath: string;
|
|
86
|
+
argsPath: string;
|
|
87
|
+
defaultReviewer: string;
|
|
88
|
+
};
|
|
89
|
+
declare function ensureAction(action: string): WorkflowAction;
|
|
90
|
+
declare function workflowFile(riddleProofDir: string, action: WorkflowStage): string;
|
|
91
|
+
declare function buildSetupArgs(params: WorkflowParams, config: ReturnType<typeof resolveConfig>): {
|
|
92
|
+
repo: string;
|
|
93
|
+
branch: string;
|
|
94
|
+
change_request: string;
|
|
95
|
+
commit_message: string;
|
|
96
|
+
prod_url: string;
|
|
97
|
+
capture_script: string;
|
|
98
|
+
success_criteria: string;
|
|
99
|
+
assertions_json: string;
|
|
100
|
+
verification_mode: string;
|
|
101
|
+
reference: "prod" | "before" | "both";
|
|
102
|
+
base_branch: string;
|
|
103
|
+
before_ref: string;
|
|
104
|
+
allow_static_preview_fallback: string;
|
|
105
|
+
context: string;
|
|
106
|
+
reviewer: string;
|
|
107
|
+
mode: string;
|
|
108
|
+
build_command: string;
|
|
109
|
+
build_output: string;
|
|
110
|
+
server_image: string;
|
|
111
|
+
server_command: string;
|
|
112
|
+
server_port: string;
|
|
113
|
+
server_path: string;
|
|
114
|
+
server_path_source: string;
|
|
115
|
+
use_auth: string;
|
|
116
|
+
auth_localStorage_json: string;
|
|
117
|
+
auth_cookies_json: string;
|
|
118
|
+
auth_headers_json: string;
|
|
119
|
+
color_scheme: string;
|
|
120
|
+
wait_for_selector: string;
|
|
121
|
+
discord_channel: string;
|
|
122
|
+
discord_thread_id: string;
|
|
123
|
+
discord_message_id: string;
|
|
124
|
+
discord_source_url: string;
|
|
125
|
+
leave_draft: string;
|
|
126
|
+
};
|
|
127
|
+
declare function readState(statePath: string): any;
|
|
128
|
+
declare function writeState(statePath: string, state: Record<string, unknown>): void;
|
|
129
|
+
declare function ensureStageLoopState(state?: any): any;
|
|
130
|
+
declare function clearStageDecisionRequest(state?: any): any;
|
|
131
|
+
declare function recordStageAttempt(state: any, stage: WorkflowStage, entry?: {
|
|
132
|
+
status?: string;
|
|
133
|
+
checkpoint?: string | null;
|
|
134
|
+
summary?: string | null;
|
|
135
|
+
requestedAdvanceStage?: WorkflowStage | null;
|
|
136
|
+
haltedForApproval?: boolean;
|
|
137
|
+
autoApproved?: boolean;
|
|
138
|
+
error?: string | null;
|
|
139
|
+
details?: Record<string, unknown>;
|
|
140
|
+
}): {
|
|
141
|
+
attempt: number;
|
|
142
|
+
stage: WorkflowStage;
|
|
143
|
+
status: string;
|
|
144
|
+
checkpoint: string | null;
|
|
145
|
+
summary: string | null;
|
|
146
|
+
requested_advance_stage: WorkflowStage | null;
|
|
147
|
+
halted_for_approval: boolean;
|
|
148
|
+
auto_approved: boolean;
|
|
149
|
+
error: string | null;
|
|
150
|
+
details: Record<string, unknown>;
|
|
151
|
+
attempted_at: string;
|
|
152
|
+
};
|
|
153
|
+
declare function setStageDecisionRequest(state: any, request: {
|
|
154
|
+
stage: WorkflowStage;
|
|
155
|
+
checkpoint: string;
|
|
156
|
+
summary: string;
|
|
157
|
+
nextActions?: string[];
|
|
158
|
+
advanceOptions?: WorkflowStage[];
|
|
159
|
+
recommendedAdvanceStage?: WorkflowStage | null;
|
|
160
|
+
continueWithStage?: WorkflowStage | null;
|
|
161
|
+
blocking?: boolean;
|
|
162
|
+
details?: Record<string, unknown>;
|
|
163
|
+
checkpointContract?: Record<string, unknown>;
|
|
164
|
+
}): any;
|
|
165
|
+
declare function checkpointContinueStage(state: any): WorkflowStage | null;
|
|
166
|
+
declare function invalidateVerifyEvidence(state?: any): {
|
|
167
|
+
invalidated: boolean;
|
|
168
|
+
hadAfterCdn?: undefined;
|
|
169
|
+
hadVerifyResults?: undefined;
|
|
170
|
+
hadMergeRecommendation?: undefined;
|
|
171
|
+
hadProofSummary?: undefined;
|
|
172
|
+
hadVerifyStatus?: undefined;
|
|
173
|
+
hadVerifySummary?: undefined;
|
|
174
|
+
hadVerifyDecisionRequest?: undefined;
|
|
175
|
+
hadEvidenceNotes?: undefined;
|
|
176
|
+
hadProofAssessment?: undefined;
|
|
177
|
+
hadProofAssessmentRequest?: undefined;
|
|
178
|
+
} | {
|
|
179
|
+
invalidated: boolean;
|
|
180
|
+
hadAfterCdn: boolean;
|
|
181
|
+
hadVerifyResults: boolean;
|
|
182
|
+
hadMergeRecommendation: boolean;
|
|
183
|
+
hadProofSummary: boolean;
|
|
184
|
+
hadVerifyStatus: boolean;
|
|
185
|
+
hadVerifySummary: boolean;
|
|
186
|
+
hadVerifyDecisionRequest: boolean;
|
|
187
|
+
hadEvidenceNotes: boolean;
|
|
188
|
+
hadProofAssessment: boolean;
|
|
189
|
+
hadProofAssessmentRequest: boolean;
|
|
190
|
+
};
|
|
191
|
+
declare function requiredBaselineLabelsForState(state?: any): string[];
|
|
192
|
+
declare function validateShipGate(state?: any): ShipGateValidation;
|
|
193
|
+
declare function buildCheckpointContract(state: any, request: {
|
|
194
|
+
statePath?: string;
|
|
195
|
+
stage: WorkflowStage;
|
|
196
|
+
checkpoint: string;
|
|
197
|
+
summary: string;
|
|
198
|
+
nextActions?: string[];
|
|
199
|
+
advanceOptions?: WorkflowStage[];
|
|
200
|
+
recommendedAdvanceStage?: WorkflowStage | null;
|
|
201
|
+
continueWithStage?: WorkflowStage | null;
|
|
202
|
+
blocking?: boolean;
|
|
203
|
+
}): Record<string, unknown>;
|
|
204
|
+
declare function mergeStateFromParams(statePath: string, params: WorkflowParams): any;
|
|
205
|
+
declare function summarizeState(state: any): {
|
|
206
|
+
stage: string;
|
|
207
|
+
summary: string;
|
|
208
|
+
state: null;
|
|
209
|
+
} | {
|
|
210
|
+
stage: any;
|
|
211
|
+
summary: string;
|
|
212
|
+
state: {
|
|
213
|
+
workspace_ready: boolean;
|
|
214
|
+
repo: any;
|
|
215
|
+
branch: any;
|
|
216
|
+
mode: any;
|
|
217
|
+
reference: any;
|
|
218
|
+
before_ref: any;
|
|
219
|
+
allow_static_preview_fallback: boolean;
|
|
220
|
+
commit_message: any;
|
|
221
|
+
author_status: any;
|
|
222
|
+
author_summary: any;
|
|
223
|
+
author_request: any;
|
|
224
|
+
proof_plan_status: any;
|
|
225
|
+
proof_plan: any;
|
|
226
|
+
proof_plan_request: any;
|
|
227
|
+
proof_profile_applied: boolean;
|
|
228
|
+
proof_profile: any;
|
|
229
|
+
recon_status: any;
|
|
230
|
+
recon_assessment: any;
|
|
231
|
+
recon_assessment_request: any;
|
|
232
|
+
recon_assessment_source: any;
|
|
233
|
+
recon_decision_request: any;
|
|
234
|
+
recon_attempts_used: any;
|
|
235
|
+
recon_attempts_max: any;
|
|
236
|
+
recon_hypothesis: any;
|
|
237
|
+
implementation_status: any;
|
|
238
|
+
implementation_summary: any;
|
|
239
|
+
implementation_environment_issues: any;
|
|
240
|
+
verify_status: any;
|
|
241
|
+
verify_summary: any;
|
|
242
|
+
verify_decision_request: any;
|
|
243
|
+
proof_assessment: any;
|
|
244
|
+
proof_assessment_request: any;
|
|
245
|
+
proof_assessment_source: any;
|
|
246
|
+
merge_recommendation: any;
|
|
247
|
+
before_cdn: any;
|
|
248
|
+
after_cdn: any;
|
|
249
|
+
prod_cdn: any;
|
|
250
|
+
pr_url: any;
|
|
251
|
+
pr_branch: any;
|
|
252
|
+
pr_state: any;
|
|
253
|
+
ship_commit: any;
|
|
254
|
+
ship_remote_head: any;
|
|
255
|
+
merge_commit: any;
|
|
256
|
+
merged_at: any;
|
|
257
|
+
ship_push: any;
|
|
258
|
+
ship_report: any;
|
|
259
|
+
cleanup_report: any;
|
|
260
|
+
proof_comment_url: any;
|
|
261
|
+
proof_assessment_comment_url: any;
|
|
262
|
+
marked_ready: any;
|
|
263
|
+
left_draft: any;
|
|
264
|
+
ci_status: any;
|
|
265
|
+
reviewer: any;
|
|
266
|
+
active_checkpoint: any;
|
|
267
|
+
active_checkpoint_stage: any;
|
|
268
|
+
continue_with_stage: WorkflowStage | null;
|
|
269
|
+
stage_decision_request: any;
|
|
270
|
+
stage_attempt_counts: {
|
|
271
|
+
[k: string]: number;
|
|
272
|
+
};
|
|
273
|
+
explicit_stage_gate: boolean;
|
|
274
|
+
last_requested_advance_stage: any;
|
|
275
|
+
recon_results: any;
|
|
276
|
+
verify_results: any;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export { BUNDLED_RIDDLE_PROOF_DIR, CHECKPOINT_CONTRACT_VERSION, type CheckpointInputContract, type PluginConfig, RIDDLE_PROOF_DIR_CANDIDATES, type ShipGateValidation, WORKFLOW_STAGE_ORDER, type WorkflowAction, type WorkflowParams, type WorkflowStage, buildCheckpointContract, buildSetupArgs, checkpointContinueStage, clearStageDecisionRequest, ensureAction, ensureStageLoopState, invalidateVerifyEvidence, mergeStateFromParams, readState, recordStageAttempt, requiredBaselineLabelsForState, resolveConfig, resolveRiddleProofDir, setStageDecisionRequest, summarizeState, validateShipGate, workflowFile, writeState };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BUNDLED_RIDDLE_PROOF_DIR,
|
|
3
|
+
CHECKPOINT_CONTRACT_VERSION,
|
|
4
|
+
RIDDLE_PROOF_DIR_CANDIDATES,
|
|
5
|
+
WORKFLOW_STAGE_ORDER,
|
|
6
|
+
buildCheckpointContract,
|
|
7
|
+
buildSetupArgs,
|
|
8
|
+
checkpointContinueStage,
|
|
9
|
+
clearStageDecisionRequest,
|
|
10
|
+
ensureAction,
|
|
11
|
+
ensureStageLoopState,
|
|
12
|
+
invalidateVerifyEvidence,
|
|
13
|
+
mergeStateFromParams,
|
|
14
|
+
readState,
|
|
15
|
+
recordStageAttempt,
|
|
16
|
+
requiredBaselineLabelsForState,
|
|
17
|
+
resolveConfig,
|
|
18
|
+
resolveRiddleProofDir,
|
|
19
|
+
setStageDecisionRequest,
|
|
20
|
+
summarizeState,
|
|
21
|
+
validateShipGate,
|
|
22
|
+
workflowFile,
|
|
23
|
+
writeState
|
|
24
|
+
} from "./chunk-3MHFLQKG.js";
|
|
25
|
+
export {
|
|
26
|
+
BUNDLED_RIDDLE_PROOF_DIR,
|
|
27
|
+
CHECKPOINT_CONTRACT_VERSION,
|
|
28
|
+
RIDDLE_PROOF_DIR_CANDIDATES,
|
|
29
|
+
WORKFLOW_STAGE_ORDER,
|
|
30
|
+
buildCheckpointContract,
|
|
31
|
+
buildSetupArgs,
|
|
32
|
+
checkpointContinueStage,
|
|
33
|
+
clearStageDecisionRequest,
|
|
34
|
+
ensureAction,
|
|
35
|
+
ensureStageLoopState,
|
|
36
|
+
invalidateVerifyEvidence,
|
|
37
|
+
mergeStateFromParams,
|
|
38
|
+
readState,
|
|
39
|
+
recordStageAttempt,
|
|
40
|
+
requiredBaselineLabelsForState,
|
|
41
|
+
resolveConfig,
|
|
42
|
+
resolveRiddleProofDir,
|
|
43
|
+
setStageDecisionRequest,
|
|
44
|
+
summarizeState,
|
|
45
|
+
validateShipGate,
|
|
46
|
+
workflowFile,
|
|
47
|
+
writeState
|
|
48
|
+
};
|