codex-workflow-v2 2.0.0-beta.4 → 2.0.0-beta.6
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 +1 -1
- package/dist/src/alpha6/handoff.d.ts +2 -0
- package/dist/src/alpha6/handoff.js +124 -12
- package/dist/src/alpha6/handoff.js.map +1 -1
- package/dist/src/alpha6/plan-risk.js +9 -7
- package/dist/src/alpha6/plan-risk.js.map +1 -1
- package/dist/src/alpha6/review.d.ts +1 -0
- package/dist/src/alpha6/review.js +9 -0
- package/dist/src/alpha6/review.js.map +1 -1
- package/dist/src/cli.js +72 -9
- package/dist/src/cli.js.map +1 -1
- package/dist/src/contracts.d.ts +1 -1
- package/dist/src/lifecycle/corrective-replan-credential-core.js +31 -2
- package/dist/src/lifecycle/corrective-replan-credential-core.js.map +1 -1
- package/dist/src/reviewer.d.ts +39 -1
- package/dist/src/reviewer.js +179 -43
- package/dist/src/reviewer.js.map +1 -1
- package/dist/src/state/corrective-replan-executor.js +15 -5
- package/dist/src/state/corrective-replan-executor.js.map +1 -1
- package/dist/src/state/corrective-replan-public.js +53 -6
- package/dist/src/state/corrective-replan-public.js.map +1 -1
- package/dist/src/state/corrective-replan-transaction.d.ts +2 -0
- package/dist/src/state/corrective-replan-transaction.js +11 -4
- package/dist/src/state/corrective-replan-transaction.js.map +1 -1
- package/dist/src/state/lock.d.ts +1 -0
- package/dist/src/state/lock.js +29 -0
- package/dist/src/state/lock.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/workflow.d.ts +28 -3
- package/dist/src/workflow.js +443 -43
- package/dist/src/workflow.js.map +1 -1
- package/docs/release.md +3 -1
- package/docs/stable-release-defect-register.md +53 -2
- package/package.json +1 -1
- package/plugins/codex-workflow-gateway/skills/codex-workflow-gateway/SKILL.md +36 -0
- package/schemas/task-handoff-event.schema.json +1 -1
package/dist/src/workflow.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { appendTaskClaim, appendTaskHandback, readTaskC1Posture } from './alpha6
|
|
|
3
3
|
import { type AdoptionPreparation } from './alpha6/adoption.js';
|
|
4
4
|
import { type RecordPlanRiskAuditInput } from './alpha6/plan-risk.js';
|
|
5
5
|
import { type ActiveMilestoneAutonomy, type MilestoneAutonomyPreparation } from './alpha7/autonomy.js';
|
|
6
|
-
import { type ReviewerCommandRunner } from './reviewer.js';
|
|
6
|
+
import { type ExternalStrictStepReviewInput, type ExternalStrictTaskReviewInput, type ReviewerCommandRunner } from './reviewer.js';
|
|
7
7
|
import { FileStateStore } from './state/store.js';
|
|
8
8
|
import { type CorrectiveYieldExecutionResult } from './state/corrective-yield-executor.js';
|
|
9
9
|
import { type CorrectiveReplanHumanGate, type CorrectiveReplanHumanGateResult, type CorrectiveReplanPublicCandidate, type CorrectiveReplanPublicCredential } from './state/corrective-replan-public.js';
|
|
@@ -148,7 +148,7 @@ export declare class WorkflowService {
|
|
|
148
148
|
posture: ReturnType<typeof readTaskC1Posture>;
|
|
149
149
|
claimTokenAvailable: false;
|
|
150
150
|
};
|
|
151
|
-
handoffTask(repository: string, taskId: string, expectedRevision: number, actor: string, targetActor: string, reason: string, writerToken?: string | null, grantId?: string | null, expiresAt?: string | null): {
|
|
151
|
+
handoffTask(repository: string, taskId: string, expectedRevision: number, actor: string, targetActor: string, reason: string, writerToken?: string | null, grantId?: string | null, expiresAt?: string | null, replacePending?: boolean): {
|
|
152
152
|
task: TaskState;
|
|
153
153
|
event: import("./contracts.js").TaskHandoffEvent;
|
|
154
154
|
bundle: import("./contracts.js").TaskHandoffBundle;
|
|
@@ -159,6 +159,13 @@ export declare class WorkflowService {
|
|
|
159
159
|
lease: PublicWriterLease;
|
|
160
160
|
writerCredential: WriterCredentialResult;
|
|
161
161
|
};
|
|
162
|
+
replaceClaimedWriterCredential(repository: string, taskId: string, expectedRevision: number, actor: string): {
|
|
163
|
+
task: TaskState;
|
|
164
|
+
lease: PublicWriterLease;
|
|
165
|
+
writerCredential: Extract<WriterCredentialResult, {
|
|
166
|
+
disposition: 'issued';
|
|
167
|
+
}>;
|
|
168
|
+
};
|
|
162
169
|
handbackTask(repository: string, taskId: string, expectedRevision: number, actor: string, reason: string, writerToken?: string | null, limitations?: readonly string[], recommendedNext?: string): {
|
|
163
170
|
task: TaskState;
|
|
164
171
|
event: ReturnType<typeof appendTaskHandback>;
|
|
@@ -173,6 +180,22 @@ export declare class WorkflowService {
|
|
|
173
180
|
taskContext(repository: string, taskId: string, role: Exclude<WorkflowRole, 'scope-lead' | 'worker'>): ContextEnvelope;
|
|
174
181
|
completeStep(repository: string, taskId: string, stepId: string, expectedRevision: number, writerToken: string, notes: string[], actor?: string): TaskState;
|
|
175
182
|
reviewStep(repository: string, taskId: string, stepId: string, expectedRevision: number, runner?: ReviewerCommandRunner, actor?: string, writerToken?: string | null): TaskState;
|
|
183
|
+
prepareExternalStepReview(repository: string, taskId: string, stepId: string, expectedRevision: number): import("./reviewer.js").ExternalStrictStepReviewPacket;
|
|
184
|
+
recordExternalStepReview(repository: string, taskId: string, stepId: string, expectedRevision: number, input: ExternalStrictStepReviewInput, actor: string, writerToken?: string | null): {
|
|
185
|
+
mode: "external-sealed";
|
|
186
|
+
packetHash: string;
|
|
187
|
+
repositorySealHash: string;
|
|
188
|
+
reviewerThreadId: string;
|
|
189
|
+
task: TaskState;
|
|
190
|
+
};
|
|
191
|
+
prepareExternalTaskReview(repository: string, taskId: string, expectedRevision: number): import("./reviewer.js").ExternalStrictTaskReviewPacket;
|
|
192
|
+
recordExternalTaskReview(repository: string, taskId: string, expectedRevision: number, input: ExternalStrictTaskReviewInput, actor: string, writerToken?: string | null): {
|
|
193
|
+
mode: "external-sealed";
|
|
194
|
+
packetHash: string;
|
|
195
|
+
repositorySealHash: string;
|
|
196
|
+
reviewerThreadId: string;
|
|
197
|
+
task: TaskState;
|
|
198
|
+
};
|
|
176
199
|
submitTask(repository: string, taskId: string, expectedRevision: number, writerToken: string, actor?: string): TaskState;
|
|
177
200
|
recordReview(repository: string, taskId: string, expectedRevision: number, review: ReviewInput, actor?: string, writerToken?: string | null): TaskState;
|
|
178
201
|
recoverStepCorrectiveDecision(repository: string, taskId: string, stepId: string, expectedRevision: number, actor: string, writerToken: string | null): import("./contracts.js").CorrectiveDecisionRecoveryEvent;
|
|
@@ -207,7 +230,7 @@ export declare class WorkflowService {
|
|
|
207
230
|
};
|
|
208
231
|
bindGraph(repository: string, expectedRevision: number | null, request: GraphRefreshRequest, evidence: GraphRefreshEvidence): GraphBinding;
|
|
209
232
|
recordGraphFallback(repository: string, graphKind: GraphKind, mode: GraphMode, expectedRevision: number | null, reason: string): GraphBinding;
|
|
210
|
-
next(repository: string): Record<string, unknown>;
|
|
233
|
+
next(repository: string, taskId?: string | null): Record<string, unknown>;
|
|
211
234
|
private delegatedAuthorization;
|
|
212
235
|
private assertHandoffGrant;
|
|
213
236
|
private nextForTaskWithDelegation;
|
|
@@ -217,6 +240,7 @@ export declare class WorkflowService {
|
|
|
217
240
|
private taskTerminalCorrectivePosture;
|
|
218
241
|
private delegatedApprovalOptions;
|
|
219
242
|
private delegatedContextRefreshOptions;
|
|
243
|
+
private findDelegatedContextRefreshOwner;
|
|
220
244
|
private assertPlanBoundedSupportingSourceGrant;
|
|
221
245
|
private assertDelegationScopeExists;
|
|
222
246
|
private assertExecutionAuthorizationFresh;
|
|
@@ -227,6 +251,7 @@ export declare class WorkflowService {
|
|
|
227
251
|
private listMilestonesObserved;
|
|
228
252
|
private taskGitNavigationOverride;
|
|
229
253
|
private withTaskNavigationContracts;
|
|
254
|
+
private writerCredentialRecoveryActor;
|
|
230
255
|
private describeMilestoneInitialAssembly;
|
|
231
256
|
private prepareMilestoneScopeChangeCandidate;
|
|
232
257
|
private publicWriterLeaseDiagnostic;
|