codex-workflow-v2 2.0.0-alpha.6 → 2.0.0-alpha.6.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 +57 -1
- package/dist/src/alpha6/remediation.d.ts +20 -0
- package/dist/src/alpha6/remediation.js +139 -4
- package/dist/src/alpha6/remediation.js.map +1 -1
- package/dist/src/cli.js +15 -1
- package/dist/src/cli.js.map +1 -1
- package/dist/src/contracts.d.ts +5 -0
- package/dist/src/state/lock.d.ts +3 -1
- package/dist/src/state/lock.js +5 -2
- 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/version.js.map +1 -1
- package/dist/src/workflow.d.ts +84 -4
- package/dist/src/workflow.js +677 -66
- package/dist/src/workflow.js.map +1 -1
- package/docs/decisions.md +4 -0
- package/docs/release.md +4 -0
- package/docs/updating-existing-project.md +40 -0
- package/docs/validation-report.md +25 -7
- package/package.json +2 -2
- package/plugins/codex-workflow-gateway/references/protocol.md +5 -0
- package/plugins/codex-workflow-gateway/skills/codex-workflow-gateway/SKILL.md +7 -0
- package/schemas/context-envelope.schema.json +10 -0
- package/schemas/corrective-plan-audit-record.schema.json +47 -0
package/dist/src/contracts.d.ts
CHANGED
|
@@ -642,6 +642,11 @@ export interface ContextEnvelope {
|
|
|
642
642
|
stepId: string;
|
|
643
643
|
expectedRevision: number;
|
|
644
644
|
writerToken: string | null;
|
|
645
|
+
remediation?: {
|
|
646
|
+
attemptOrdinal: number;
|
|
647
|
+
mode: RemediationMode;
|
|
648
|
+
correctiveDecisionEventId: string | null;
|
|
649
|
+
};
|
|
645
650
|
knowledgeMap: {
|
|
646
651
|
revision: number;
|
|
647
652
|
hash: string;
|
package/dist/src/state/lock.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { type WriterLease } from '../contracts.js';
|
|
|
2
2
|
export declare class WriterLockManager {
|
|
3
3
|
private readonly locksRoot;
|
|
4
4
|
private readonly now;
|
|
5
|
-
constructor(locksRoot: string, now?: () => Date
|
|
5
|
+
constructor(locksRoot: string, now?: () => Date, options?: {
|
|
6
|
+
ensureRoot?: boolean;
|
|
7
|
+
});
|
|
6
8
|
acquire(entityId: string, owner: string, leaseMs?: number): WriterLease;
|
|
7
9
|
heartbeat(entityId: string, token: string, leaseMs?: number): WriterLease;
|
|
8
10
|
release(entityId: string, token: string): void;
|
package/dist/src/state/lock.js
CHANGED
|
@@ -9,10 +9,11 @@ const DEFAULT_LEASE_MS = 30 * 60 * 1000;
|
|
|
9
9
|
export class WriterLockManager {
|
|
10
10
|
locksRoot;
|
|
11
11
|
now;
|
|
12
|
-
constructor(locksRoot, now = () => new Date()) {
|
|
12
|
+
constructor(locksRoot, now = () => new Date(), options = {}) {
|
|
13
13
|
this.locksRoot = locksRoot;
|
|
14
14
|
this.now = now;
|
|
15
|
-
|
|
15
|
+
if (options.ensureRoot !== false)
|
|
16
|
+
ensureDirectory(locksRoot);
|
|
16
17
|
}
|
|
17
18
|
acquire(entityId, owner, leaseMs = DEFAULT_LEASE_MS) {
|
|
18
19
|
const file = this.file(entityId);
|
|
@@ -69,6 +70,8 @@ export class WriterLockManager {
|
|
|
69
70
|
return existsSync(file) ? readJson(file) : null;
|
|
70
71
|
}
|
|
71
72
|
list() {
|
|
73
|
+
if (!existsSync(this.locksRoot))
|
|
74
|
+
return [];
|
|
72
75
|
return readdirSync(this.locksRoot, { withFileTypes: true })
|
|
73
76
|
.filter((entry) => entry.isFile() && /^(TASK|MS)-[0-9A-HJKMNP-TV-Z]{26}\.json$/.test(entry.name))
|
|
74
77
|
.map((entry) => readJson(path.join(this.locksRoot, entry.name)))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lock.js","sourceRoot":"","sources":["../../../src/state/lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAA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,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO;YAAE,MAAM,IAAI,aAAa,CAAC,WAAW,EAAE,sBAAsB,QAAQ,EAAE,CAAC,CAAC;QACrF,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK,EAAE,CAAC;YAC5B,MAAM,IAAI,aAAa,CAAC,oBAAoB,EAAE,6BAA6B,QAAQ,EAAE,CAAC,CAAC;QACzF,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAEO,IAAI,CAAC,QAAgB;QAC3B,IAAI,CAAC,oCAAoC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YACzD,MAAM,IAAI,aAAa,CAAC,kBAAkB,EAAE,wBAAwB,QAAQ,EAAE,CAAC,CAAC;QAClF,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,QAAQ,OAAO,CAAC,CAAC;IACvD,CAAC;CACF"}
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const PACKAGE_NAME = "codex-workflow-v2";
|
|
2
|
-
export declare const PACKAGE_VERSION = "2.0.0-alpha.6";
|
|
2
|
+
export declare const PACKAGE_VERSION = "2.0.0-alpha.6.2";
|
package/dist/src/version.js
CHANGED
package/dist/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,mBAAmB,CAAC;AAChD,MAAM,CAAC,MAAM,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,mBAAmB,CAAC;AAChD,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC"}
|
package/dist/src/workflow.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AdoptionPostureEvent, type ContextEnvelope, type CorrectivePlanAuditInput, type DelegationGrant, type DelegationGrantGate, type DelegationPolicyInput, type DiscoveryState, type MilestonePlanInput, type MilestoneState, type KnowledgeSelection, type GraphBinding, type GraphKind, type GraphMode, type GraphRefreshEvidence, type GraphRefreshRequest, type PlanRiskAuditEvent, type ProjectKnowledgeMap, type ReviewInput, type TaskPlanInput, type TaskContextRefreshResult, type TaskState, type UpdatePreflightResult, type WriterLease, type WorkflowRole, type WorkspaceOwner } from './contracts.js';
|
|
1
|
+
import { type AdoptionPostureEvent, type ContextEnvelope, type CorrectiveDecisionEvent, type CorrectivePlanAuditInput, type DelegationGrant, type DelegationGrantGate, type DelegationPolicyInput, type DiscoveryState, type MilestonePlanInput, type MilestoneState, type KnowledgeSelection, type GraphBinding, type GraphKind, type GraphMode, type GraphRefreshEvidence, type GraphRefreshRequest, type PlanRiskAuditEvent, type ProjectKnowledgeMap, type ReviewInput, type TaskPlanInput, type TaskContextRefreshResult, type TaskState, type UpdatePreflightResult, type WriterLease, type WorkflowRole, type WorkspaceOwner } from './contracts.js';
|
|
2
2
|
import { appendTaskClaim, appendTaskHandback, readTaskC1Posture } from './alpha6/handoff.js';
|
|
3
3
|
import { type AdoptionPreparation } from './alpha6/adoption.js';
|
|
4
4
|
import { type RecordPlanRiskAuditInput } from './alpha6/plan-risk.js';
|
|
@@ -45,10 +45,78 @@ export interface MilestoneScopeChangePreparation {
|
|
|
45
45
|
memberships: MilestoneState['memberships'];
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
+
export interface Alpha6C1StrictReviewRescuePreflight {
|
|
49
|
+
eligible: boolean;
|
|
50
|
+
mutationFree: true;
|
|
51
|
+
runnerPackageVersion: string;
|
|
52
|
+
requiredProjectPackageVersion: '2.0.0-alpha.6';
|
|
53
|
+
declaredProjectPackageVersion: string | null;
|
|
54
|
+
projectId: string;
|
|
55
|
+
repositoryRoot: string;
|
|
56
|
+
clean: boolean;
|
|
57
|
+
candidate: {
|
|
58
|
+
taskId: string;
|
|
59
|
+
taskRevision: number;
|
|
60
|
+
stepId: string;
|
|
61
|
+
completionCommit: string;
|
|
62
|
+
currentHead: string;
|
|
63
|
+
knowledgeBindingStale: boolean;
|
|
64
|
+
claimant: string | null;
|
|
65
|
+
handoffExpiresAt: string | null;
|
|
66
|
+
lease: {
|
|
67
|
+
entityId: string;
|
|
68
|
+
owner: string;
|
|
69
|
+
pid: number;
|
|
70
|
+
hostname: string;
|
|
71
|
+
acquiredAt: string;
|
|
72
|
+
heartbeatAt: string;
|
|
73
|
+
expiresAt: string;
|
|
74
|
+
stale: boolean;
|
|
75
|
+
tokenBound: boolean;
|
|
76
|
+
} | null;
|
|
77
|
+
} | null;
|
|
78
|
+
blockers: string[];
|
|
79
|
+
requiredAction: {
|
|
80
|
+
action: 'update rescue-review';
|
|
81
|
+
taskId: string;
|
|
82
|
+
stepId: string;
|
|
83
|
+
expectedRevision: number;
|
|
84
|
+
actor: string;
|
|
85
|
+
requiresBoundWriterToken: true;
|
|
86
|
+
} | null;
|
|
87
|
+
}
|
|
88
|
+
export interface Alpha6CorrectiveRescuePreflight {
|
|
89
|
+
eligible: boolean;
|
|
90
|
+
mutationFree: true;
|
|
91
|
+
runnerPackageVersion: string;
|
|
92
|
+
requiredProjectPackageVersion: '2.0.0-alpha.6';
|
|
93
|
+
declaredProjectPackageVersion: string | null;
|
|
94
|
+
requiredHead: string;
|
|
95
|
+
currentHead: string;
|
|
96
|
+
clean: boolean;
|
|
97
|
+
candidate: {
|
|
98
|
+
taskId: string;
|
|
99
|
+
taskRevision: 14;
|
|
100
|
+
taskStatus: 'ready';
|
|
101
|
+
stepId: 'STEP-001';
|
|
102
|
+
stepStatus: 'failed';
|
|
103
|
+
attemptCount: 2;
|
|
104
|
+
briefHash: string;
|
|
105
|
+
planHash: string;
|
|
106
|
+
claimant: string;
|
|
107
|
+
lease: Omit<WriterLease, 'token'> & {
|
|
108
|
+
stale: boolean;
|
|
109
|
+
tokenBound: true;
|
|
110
|
+
};
|
|
111
|
+
milestoneScopeHash: string | null;
|
|
112
|
+
} | null;
|
|
113
|
+
blockers: string[];
|
|
114
|
+
}
|
|
48
115
|
export declare class WorkflowService {
|
|
49
116
|
readonly store: FileStateStore;
|
|
50
117
|
private readonly now;
|
|
51
|
-
|
|
118
|
+
private readonly alpha6CorrectiveRescueHead;
|
|
119
|
+
constructor(store?: FileStateStore, now?: () => Date, alpha6CorrectiveRescueHead?: string);
|
|
52
120
|
context(repository: string): WorkflowContext;
|
|
53
121
|
prepareDelegation(repository: string, input: DelegationPolicyInput): DelegationGrantGate;
|
|
54
122
|
grantDelegation(repository: string, input: DelegationPolicyInput, confirmationCode: string): DelegationGrant;
|
|
@@ -102,12 +170,15 @@ export declare class WorkflowService {
|
|
|
102
170
|
lease: WriterLease;
|
|
103
171
|
envelope: ContextEnvelope;
|
|
104
172
|
};
|
|
105
|
-
taskContext(repository: string, taskId: string, role: Exclude<WorkflowRole, 'scope-lead' | 'worker'
|
|
173
|
+
taskContext(repository: string, taskId: string, role: Exclude<WorkflowRole, 'scope-lead' | 'worker'>, allowHistoricalStrictReview?: boolean): ContextEnvelope;
|
|
106
174
|
completeStep(repository: string, taskId: string, stepId: string, expectedRevision: number, writerToken: string, notes: string[], actor?: string): TaskState;
|
|
175
|
+
alpha6C1StrictReviewRescuePreflight(repository: string): Alpha6C1StrictReviewRescuePreflight;
|
|
176
|
+
alpha6C1StrictReviewRescue(repository: string, taskId: string, stepId: string, expectedRevision: number, actor: string, writerToken: string, runner?: ReviewerCommandRunner): TaskState;
|
|
107
177
|
reviewStep(repository: string, taskId: string, stepId: string, expectedRevision: number, runner?: ReviewerCommandRunner, actor?: string, writerToken?: string | null): TaskState;
|
|
178
|
+
private reviewStepWithKnowledgePolicy;
|
|
108
179
|
submitTask(repository: string, taskId: string, expectedRevision: number, writerToken: string, actor?: string): TaskState;
|
|
109
180
|
recordReview(repository: string, taskId: string, expectedRevision: number, review: ReviewInput, actor?: string, writerToken?: string | null): TaskState;
|
|
110
|
-
recordStepCorrectiveDecision(repository: string, taskId: string, stepId: string, expectedRevision: number, correctiveAudit: CorrectivePlanAuditInput, actor?: string, writerToken?: string | null):
|
|
181
|
+
recordStepCorrectiveDecision(repository: string, taskId: string, stepId: string, expectedRevision: number, correctiveAudit: CorrectivePlanAuditInput, actor?: string, writerToken?: string | null): CorrectiveDecisionEvent;
|
|
111
182
|
setTaskResult(repository: string, taskId: string, expectedRevision: number, summary: string, limitations: string[]): TaskState;
|
|
112
183
|
acceptTask(repository: string, taskId: string, expectedRevision: number, actor: string, delegationGrantId?: string | null): TaskState;
|
|
113
184
|
syncTaskBase(repository: string, taskId: string, expectedRevision: number): TaskState;
|
|
@@ -130,6 +201,14 @@ export declare class WorkflowService {
|
|
|
130
201
|
updatePreflight(repository: string): UpdatePreflightResult & {
|
|
131
202
|
adoption: AdoptionPreparation;
|
|
132
203
|
};
|
|
204
|
+
alpha6CorrectiveRescuePreflight(repository: string): Alpha6CorrectiveRescuePreflight;
|
|
205
|
+
alpha6CorrectiveRescueApply(repository: string, taskId: string, expectedRevision: number, actor: string, writerToken: string, plan: TaskPlanInput, decisionAudit: CorrectivePlanAuditInput, correctivePlanAudit: CorrectivePlanAuditInput): {
|
|
206
|
+
task: TaskState;
|
|
207
|
+
decision: CorrectiveDecisionEvent;
|
|
208
|
+
lease: Omit<WriterLease, 'token'> & {
|
|
209
|
+
tokenRetained: true;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
133
212
|
scanKnowledgeMap(repository: string): ProjectKnowledgeMap;
|
|
134
213
|
showKnowledgeMap(repository: string): ProjectKnowledgeMap;
|
|
135
214
|
knowledgeMapStatus(repository: string): ProjectKnowledgeMap;
|
|
@@ -160,6 +239,7 @@ export declare class WorkflowService {
|
|
|
160
239
|
private assertTaskMutationAllowedByHandoff;
|
|
161
240
|
private readGraphBindingOrNull;
|
|
162
241
|
private requireActiveKnowledgeMap;
|
|
242
|
+
private strictReviewKnowledgeMap;
|
|
163
243
|
private inspectAdoptionPreparation;
|
|
164
244
|
private computeAdoptionBoundaryBlockers;
|
|
165
245
|
private collectAdoptionSidecarInventory;
|