codex-workflow-v2 2.0.0-beta.13.9 → 2.0.0-beta.14.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/README.md +27 -388
- package/dist/reviewer-runtime-build.json +98 -34
- package/dist/src/alpha6/adoption.d.ts +3 -1
- package/dist/src/alpha6/adoption.js +48 -8
- package/dist/src/alpha6/adoption.js.map +1 -1
- package/dist/src/alpha6/captured-check-evidence.d.ts +51 -0
- package/dist/src/alpha6/captured-check-evidence.js +152 -0
- package/dist/src/alpha6/captured-check-evidence.js.map +1 -0
- package/dist/src/alpha6/component-owner.d.ts +15 -1
- package/dist/src/alpha6/component-owner.js +44 -2
- package/dist/src/alpha6/component-owner.js.map +1 -1
- package/dist/src/alpha6/corrective-decision-boundary.d.ts +4 -0
- package/dist/src/alpha6/corrective-decision-boundary.js +53 -0
- package/dist/src/alpha6/corrective-decision-boundary.js.map +1 -0
- package/dist/src/alpha6/downstream-proof.d.ts +1 -25
- package/dist/src/alpha6/downstream-proof.js +0 -171
- package/dist/src/alpha6/downstream-proof.js.map +1 -1
- package/dist/src/alpha6/literal-test-invocation.d.ts +2 -0
- package/dist/src/alpha6/literal-test-invocation.js +106 -0
- package/dist/src/alpha6/literal-test-invocation.js.map +1 -0
- package/dist/src/alpha6/milestone.d.ts +2 -0
- package/dist/src/alpha6/milestone.js +10 -1
- package/dist/src/alpha6/milestone.js.map +1 -1
- package/dist/src/alpha6/navigation-dirty-carryover.d.ts +11 -0
- package/dist/src/alpha6/navigation-dirty-carryover.js +130 -0
- package/dist/src/alpha6/navigation-dirty-carryover.js.map +1 -0
- package/dist/src/alpha6/plan-integrity.js +7 -5
- package/dist/src/alpha6/plan-integrity.js.map +1 -1
- package/dist/src/alpha6/remediation.d.ts +8 -21
- package/dist/src/alpha6/remediation.js +225 -474
- package/dist/src/alpha6/remediation.js.map +1 -1
- package/dist/src/alpha6/root-cause-replan-carryover.d.ts +4 -1
- package/dist/src/alpha6/root-cause-replan-carryover.js +29 -5
- package/dist/src/alpha6/root-cause-replan-carryover.js.map +1 -1
- package/dist/src/alpha7/autonomy.d.ts +9 -0
- package/dist/src/alpha7/autonomy.js +40 -1
- package/dist/src/alpha7/autonomy.js.map +1 -1
- package/dist/src/beta1/project-transaction.d.ts +3 -1
- package/dist/src/beta1/project-transaction.js +20 -6
- package/dist/src/beta1/project-transaction.js.map +1 -1
- package/dist/src/checks/runner.d.ts +26 -0
- package/dist/src/checks/runner.js +223 -0
- package/dist/src/checks/runner.js.map +1 -0
- package/dist/src/checks/task-sync.d.ts +10 -0
- package/dist/src/checks/task-sync.js +41 -0
- package/dist/src/checks/task-sync.js.map +1 -0
- package/dist/src/checks/worker.d.ts +1 -0
- package/dist/src/checks/worker.js +154 -0
- package/dist/src/checks/worker.js.map +1 -0
- package/dist/src/cli-actions.d.ts +3 -3
- package/dist/src/cli-actions.js +8 -15
- package/dist/src/cli-actions.js.map +1 -1
- package/dist/src/cli.js +43 -97
- package/dist/src/cli.js.map +1 -1
- package/dist/src/contracts.d.ts +54 -34
- package/dist/src/delegation.d.ts +5 -1
- package/dist/src/delegation.js +4 -0
- package/dist/src/delegation.js.map +1 -1
- package/dist/src/dependency-provenance.d.ts +2 -2
- package/dist/src/dependency-provenance.js +12 -69
- package/dist/src/dependency-provenance.js.map +1 -1
- package/dist/src/domain/base-sync-conflict.d.ts +13 -0
- package/dist/src/domain/base-sync-conflict.js +32 -0
- package/dist/src/domain/base-sync-conflict.js.map +1 -0
- package/dist/src/domain/step-start-admission.d.ts +4 -0
- package/dist/src/domain/step-start-admission.js +9 -0
- package/dist/src/domain/step-start-admission.js.map +1 -0
- package/dist/src/domain/virgin-registration.d.ts +3 -0
- package/dist/src/domain/virgin-registration.js +65 -0
- package/dist/src/domain/virgin-registration.js.map +1 -0
- package/dist/src/errors.d.ts +1 -1
- package/dist/src/errors.js.map +1 -1
- package/dist/src/failed-checkpoint-update.d.ts +69 -0
- package/dist/src/failed-checkpoint-update.js +171 -0
- package/dist/src/failed-checkpoint-update.js.map +1 -0
- package/dist/src/gateway-handshake.js +0 -8
- package/dist/src/gateway-handshake.js.map +1 -1
- package/dist/src/git.d.ts +3 -1
- package/dist/src/git.js +41 -14
- package/dist/src/git.js.map +1 -1
- package/dist/src/graph.js +25 -3
- package/dist/src/graph.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lifecycle/corrective-replan-credential-core.d.ts +2 -0
- package/dist/src/lifecycle/corrective-replan-credential-core.js +45 -9
- package/dist/src/lifecycle/corrective-replan-credential-core.js.map +1 -1
- package/dist/src/lifecycle/corrective-replan.js +12 -8
- package/dist/src/lifecycle/corrective-replan.js.map +1 -1
- package/dist/src/lifecycle/semantic-registry.js +4 -2
- package/dist/src/lifecycle/semantic-registry.js.map +1 -1
- package/dist/src/navigation-actions.d.ts +9 -0
- package/dist/src/navigation-actions.js +72 -0
- package/dist/src/navigation-actions.js.map +1 -0
- package/dist/src/navigation-update-artifact.d.ts +5 -0
- package/dist/src/navigation-update-artifact.js +227 -0
- package/dist/src/navigation-update-artifact.js.map +1 -0
- package/dist/src/navigation-update.d.ts +39 -0
- package/dist/src/navigation-update.js +82 -0
- package/dist/src/navigation-update.js.map +1 -0
- package/dist/src/observation.js +52 -29
- package/dist/src/observation.js.map +1 -1
- package/dist/src/observed-routes.js +10 -6
- package/dist/src/observed-routes.js.map +1 -1
- package/dist/src/pending-review-update.d.ts +0 -13
- package/dist/src/pending-review-update.js +1 -6
- package/dist/src/pending-review-update.js.map +1 -1
- package/dist/src/reviewer.d.ts +1 -1
- package/dist/src/reviewer.js +20 -17
- package/dist/src/reviewer.js.map +1 -1
- package/dist/src/runtime.d.ts +3 -0
- package/dist/src/runtime.js +6 -0
- package/dist/src/runtime.js.map +1 -0
- package/dist/src/state/corrective-replan-executor.d.ts +10 -0
- package/dist/src/state/corrective-replan-executor.js +38 -1
- package/dist/src/state/corrective-replan-executor.js.map +1 -1
- package/dist/src/state/corrective-replan-public-schema.js +15 -2
- package/dist/src/state/corrective-replan-public-schema.js.map +1 -1
- package/dist/src/state/corrective-replan-public.d.ts +9 -1
- package/dist/src/state/corrective-replan-public.js +50 -8
- package/dist/src/state/corrective-replan-public.js.map +1 -1
- package/dist/src/state/corrective-replan-transaction.d.ts +1 -0
- package/dist/src/state/corrective-replan-transaction.js +12 -11
- package/dist/src/state/corrective-replan-transaction.js.map +1 -1
- package/dist/src/state/corrective-yield-transaction.d.ts +1 -0
- package/dist/src/state/corrective-yield-transaction.js +11 -10
- package/dist/src/state/corrective-yield-transaction.js.map +1 -1
- package/dist/src/state/lock.d.ts +4 -0
- package/dist/src/state/lock.js +21 -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-blocker-route.d.ts +8 -0
- package/dist/src/workflow-blocker-route.js +106 -0
- package/dist/src/workflow-blocker-route.js.map +1 -0
- package/dist/src/workflow.d.ts +88 -64
- package/dist/src/workflow.js +832 -1456
- package/dist/src/workflow.js.map +1 -1
- package/docs/autonomy-guardrails.md +26 -304
- package/docs/decisions.md +14 -112
- package/docs/development-flow.md +36 -237
- package/docs/project-memory.md +31 -50
- package/docs/release-app-evidence.md +190 -0
- package/docs/release.md +101 -388
- package/docs/updating-existing-project.md +65 -726
- package/package.json +11 -13
- package/plugins/codex-workflow-gateway/.codex-plugin/plugin.json +2 -2
- package/plugins/codex-workflow-gateway/references/chat-dispatch.md +88 -200
- package/plugins/codex-workflow-gateway/references/codebase-memory-routing.md +57 -0
- package/plugins/codex-workflow-gateway/references/protocol.md +51 -458
- package/plugins/codex-workflow-gateway/scripts/chat-dispatch.mjs +20 -4
- package/plugins/codex-workflow-gateway/scripts/chat-model-policy.mjs +21 -34
- package/plugins/codex-workflow-gateway/scripts/chat-registry.mjs +23 -5
- package/plugins/codex-workflow-gateway/skills/codex-workflow-gateway/SKILL.md +92 -778
- package/references/state-machine.md +7 -5
- package/roles/delivery-coordinator.md +31 -11
- package/roles/scope-lead.md +1 -1
- package/roles/technical-planner.md +5 -2
- package/schemas/adoption-posture-event.schema.json +11 -0
- package/schemas/authorization-event.schema.json +1 -1
- package/schemas/corrective-decision-event.schema.json +26 -4
- package/schemas/corrective-replan-credentials.private.schema.json +8 -5
- package/schemas/corrective-replan-execution-event.private.schema.json +9 -0
- package/schemas/corrective-replan-public.schema.json +2 -1
- package/schemas/delegation-grant.schema.json +1 -1
- package/schemas/project-knowledge-map.schema.json +3 -1
- package/schemas/remediation-event.schema.json +10 -1
- package/schemas/task.schema.json +64 -2
- package/schemas/transition-definition.schema.json +4 -0
- package/schemas/transition-payloads.schema.json +16 -1
- package/src/alpha6/adoption.ts +1146 -0
- package/src/alpha6/captured-check-evidence.ts +132 -0
- package/src/alpha6/check-support-anchor.ts +128 -0
- package/src/alpha6/component-owner.ts +168 -0
- package/src/alpha6/corrective-decision-boundary.ts +45 -0
- package/src/alpha6/downstream-proof.ts +520 -0
- package/src/alpha6/failed-step-planning-recovery.ts +88 -0
- package/src/alpha6/handoff.ts +1443 -0
- package/src/alpha6/journal.ts +473 -0
- package/src/alpha6/literal-test-invocation.ts +84 -0
- package/src/alpha6/mechanical-feasibility.ts +488 -0
- package/src/alpha6/milestone.ts +2192 -0
- package/src/alpha6/navigation-dirty-carryover.ts +154 -0
- package/src/alpha6/npm-check-contract.ts +47 -0
- package/src/alpha6/plan-integrity.ts +298 -0
- package/src/alpha6/plan-risk.ts +1480 -0
- package/src/alpha6/preexecution-replan.ts +187 -0
- package/src/alpha6/remediation-cause.ts +98 -0
- package/src/alpha6/remediation.ts +2505 -0
- package/src/alpha6/review.ts +1198 -0
- package/src/alpha6/root-cause-replan-carryover.ts +491 -0
- package/src/alpha6/store-sidecars.ts +335 -0
- package/src/alpha7/autonomy.ts +449 -0
- package/src/alpha7/corrective-recovery.ts +1332 -0
- package/src/artifacts.ts +130 -0
- package/src/beta1/project-transaction.ts +364 -0
- package/src/change-explanation.ts +153 -0
- package/src/checks/runner.ts +245 -0
- package/src/checks/task-sync.ts +41 -0
- package/src/checks/worker.ts +149 -0
- package/src/cli-actions.ts +112 -0
- package/src/cli.ts +1490 -0
- package/src/contracts.ts +1512 -0
- package/src/credential-output.ts +89 -0
- package/src/credential-transport.ts +215 -0
- package/src/delegation.ts +194 -0
- package/src/dependency-provenance.ts +472 -0
- package/src/diagnostics.ts +93 -0
- package/src/domain/base-sync-conflict.ts +35 -0
- package/src/domain/completed-step-carryover.ts +76 -0
- package/src/domain/discovery.ts +27 -0
- package/src/domain/plan-semantics.ts +58 -0
- package/src/domain/step-start-admission.ts +10 -0
- package/src/domain/validation.ts +177 -0
- package/src/domain/virgin-registration.ts +46 -0
- package/src/errors.ts +24 -0
- package/src/failed-checkpoint-update.ts +203 -0
- package/src/fs-utils.ts +61 -0
- package/src/gateway-handshake.ts +95 -0
- package/src/git.ts +183 -0
- package/src/graph.ts +342 -0
- package/src/historical-step-provenance.ts +136 -0
- package/src/index.ts +23 -0
- package/src/lifecycle/canonical-hash.ts +28 -0
- package/src/lifecycle/catalog.ts +202 -0
- package/src/lifecycle/compiler-inspection.ts +29 -0
- package/src/lifecycle/core-static-readiness.ts +132 -0
- package/src/lifecycle/corrective-replan-authority.ts +136 -0
- package/src/lifecycle/corrective-replan-binding-manifest.ts +51 -0
- package/src/lifecycle/corrective-replan-credential-core.ts +437 -0
- package/src/lifecycle/corrective-replan-credential-schema.ts +54 -0
- package/src/lifecycle/corrective-replan-credentials.ts +48 -0
- package/src/lifecycle/corrective-replan.ts +847 -0
- package/src/lifecycle/evaluator.ts +48 -0
- package/src/lifecycle/fingerprint.ts +488 -0
- package/src/lifecycle/immutable.ts +8 -0
- package/src/lifecycle/implementation-table.ts +118 -0
- package/src/lifecycle/index.ts +8 -0
- package/src/lifecycle/schema-artifact.ts +263 -0
- package/src/lifecycle/semantic-registry.ts +574 -0
- package/src/lifecycle/types.ts +838 -0
- package/src/memory.ts +273 -0
- package/src/migration.ts +161 -0
- package/src/navigation-actions.ts +70 -0
- package/src/navigation-update-artifact.ts +198 -0
- package/src/navigation-update.ts +121 -0
- package/src/observation.ts +225 -0
- package/src/observed-routes.ts +665 -0
- package/src/operational-contract.ts +125 -0
- package/src/pending-review-update.ts +175 -0
- package/src/repository.ts +99 -0
- package/src/reviewer.ts +1879 -0
- package/src/runtime.ts +6 -0
- package/src/state/corrective-replan-executor.ts +819 -0
- package/src/state/corrective-replan-public-schema.ts +83 -0
- package/src/state/corrective-replan-public.ts +952 -0
- package/src/state/corrective-replan-transaction.ts +949 -0
- package/src/state/corrective-yield-executor.ts +327 -0
- package/src/state/corrective-yield-transaction.ts +730 -0
- package/src/state/lock.ts +902 -0
- package/src/state/store.ts +567 -0
- package/src/transition-core.ts +330 -0
- package/src/ulid.ts +24 -0
- package/src/version.ts +2 -0
- package/src/workflow-blocker-route.ts +109 -0
- package/src/workflow.ts +10342 -0
- package/docs/alpha7.1-implementation-brief.md +0 -268
- package/docs/alpha7.2-corrective-context-refresh-brief.md +0 -484
- package/docs/alpha7.2.1-remediation-recovery-brief.md +0 -86
- package/docs/beta1-stabilization-brief.md +0 -165
- package/docs/beta11-plan-integrity-recovery-brief.md +0 -38
- package/docs/beta13.2-signal-review-recovery.md +0 -38
- package/docs/beta2-initial-assembly-navigation-brief.md +0 -616
- package/docs/change-model.md +0 -118
- package/docs/delegated-approval.md +0 -254
- package/docs/lifecycle/state-machine-stabilization.md +0 -641
- package/docs/pdf/README.md +0 -24
- package/docs/pdf/codex-workflow-v2-architecture-ru.pdf +0 -0
- package/docs/pdf/codex-workflow-v2-chat-only-guide-ru.pdf +0 -0
- package/docs/pdf/codex-workflow-v2-technical-reference-ru.pdf +0 -0
- package/docs/pdf/requirements.txt +0 -1
- package/docs/pdf/sources/codex-workflow-v2-architecture-ru.md +0 -478
- package/docs/pdf/sources/codex-workflow-v2-chat-only-guide-ru.md +0 -506
- package/docs/pdf/sources/codex-workflow-v2-technical-reference-ru.md +0 -778
- package/docs/pending-review-update.md +0 -15
- package/docs/problem-briefs/01-pre-implementation-integrity.md +0 -482
- package/docs/problem-briefs/02-minimal-step-integrity.md +0 -411
- package/docs/problem-briefs/03-minimal-agent-context-integrity.md +0 -358
- package/docs/problem-briefs/04-task-dependency-and-structural-replacement-integrity.md +0 -573
- package/docs/problem-briefs/BRIEF-TEMPLATE.md +0 -56
- package/docs/problem-briefs/README.md +0 -120
- package/docs/problem-briefs/evidence/p01-mechanical-feasibility-corpus.md +0 -90
- package/docs/problem-briefs/evidence/signal-v4-pre-m3-replay.md +0 -246
- package/docs/split-required-recovery.md +0 -47
- package/docs/stable-release-defect-register.md +0 -730
- package/docs/validation-report.md +0 -182
- package/scripts/generate-pdf-docs.py +0 -524
- package/scripts/run-pdf-docs.mjs +0 -62
package/dist/src/workflow.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import { type NavigationUpdateReceipt } from './navigation-update.js';
|
|
2
|
+
import { type FailedCheckpointUpdateReceipt } from './failed-checkpoint-update.js';
|
|
3
|
+
import type { CheckExecutionOptions } from './checks/runner.js';
|
|
1
4
|
import { type ChangeExplanationInput } from './change-explanation.js';
|
|
2
|
-
import { type
|
|
3
|
-
import { type AdoptionPostureEvent, type AuditedRemediationEvidence, type ContextEnvelope, type CorrectivePlanAuditInput, type DependencyProvenanceRecoveryPreflight, type DelegationGrant, type DelegationGrantGate, type DelegationPolicyInput, type DiscoveryState, type MilestonePlanInput, type MilestoneProgressProjection, type MilestoneState, type KnowledgeSelection, type GraphBinding, type GraphKind, type GraphMode, type GraphRefreshEvidence, type GraphRefreshRequest, type HistoricalStepProvenanceRecoveryPreflight, type PlanRiskAuditEvent, type PublicWriterLease, type PublicWriterLeaseDiagnostic, type PublicWriterLeaseRepairResult, type ProjectKnowledgeMap, type ReviewInput, type StopEscalateOverrideEvent, type StopEscalateOverridePreparation, type TaskPlanInput, type TaskContextRefreshResult, type TaskState, type UpdatePreflightResult, type WriterCredentialResult, type WriterCredentialStatus, type WorkflowObservation, type WorkflowRole, type WorkspaceOwner } from './contracts.js';
|
|
5
|
+
import { type AdoptionPostureEvent, type AuditedRemediationEvidence, type ContextEnvelope, type CorrectivePlanAuditInput, type DependencyProvenanceRecoveryPreflight, type DelegationGrant, type DelegationGrantGate, type DelegationPolicyInput, type DiscoveryState, type MilestonePlanInput, type MilestoneProgressProjection, type MilestoneState, type KnowledgeSelection, type GraphBinding, type GraphKind, type GraphMode, type GraphRefreshEvidence, type GraphRefreshRequest, type HistoricalStepProvenanceRecoveryPreflight, type PlanRiskAuditEvent, type PublicWriterLease, type PublicWriterLeaseDiagnostic, type PublicWriterLeaseRepairResult, type ProjectKnowledgeMap, type ReviewInput, type TaskPlanInput, type TaskContextRefreshResult, type TaskState, type UpdatePreflightResult, type WriterCredentialResult, type WriterCredentialStatus, type WorkflowObservation, type WorkflowRole, type WorkspaceOwner } from './contracts.js';
|
|
4
6
|
import { appendTaskClaim, appendTaskHandback, readTaskC1Posture } from './alpha6/handoff.js';
|
|
5
|
-
import { prepareDownstreamProofInvalidation
|
|
7
|
+
import { prepareDownstreamProofInvalidation } from './alpha6/downstream-proof.js';
|
|
6
8
|
import { type AdoptionPreparation } from './alpha6/adoption.js';
|
|
7
9
|
import { type RecordPlanRiskAuditInput } from './alpha6/plan-risk.js';
|
|
8
10
|
import { type PreExecutionReplanEvent } from './alpha6/preexecution-replan.js';
|
|
9
11
|
import { type ActiveMilestoneAutonomy, type MilestoneAutonomyPreparation } from './alpha7/autonomy.js';
|
|
10
12
|
import { type ExternalStrictStepReviewInput, type ExternalStrictTaskReviewInput, type ReviewMode, type ReviewerCommandRunner } from './reviewer.js';
|
|
13
|
+
import { CoreTaskOperationLockManager } from './state/lock.js';
|
|
11
14
|
import { FileStateStore } from './state/store.js';
|
|
12
15
|
import { type CorrectiveYieldExecutionResult } from './state/corrective-yield-executor.js';
|
|
13
16
|
import { type CorrectiveReplanHumanGate, type CorrectiveReplanHumanGateResult, type CorrectiveReplanPublicCandidate, type CorrectiveReplanPublicCredential } from './state/corrective-replan-public.js';
|
|
@@ -96,34 +99,6 @@ export interface MilestoneScopeChangePreparation {
|
|
|
96
99
|
memberships: MilestoneState['memberships'];
|
|
97
100
|
};
|
|
98
101
|
}
|
|
99
|
-
export interface Alpha6StrictReviewRescuePreflight {
|
|
100
|
-
eligible: boolean;
|
|
101
|
-
mutationFree: true;
|
|
102
|
-
runnerPackageVersion: string;
|
|
103
|
-
requiredProjectPackageVersion: '2.0.0-alpha.6';
|
|
104
|
-
declaredProjectPackageVersion: string | null;
|
|
105
|
-
projectId: string;
|
|
106
|
-
repositoryRoot: string;
|
|
107
|
-
clean: boolean;
|
|
108
|
-
activeLeases: PublicWriterLease[];
|
|
109
|
-
staleLeases: PublicWriterLease[];
|
|
110
|
-
candidate: {
|
|
111
|
-
taskId: string;
|
|
112
|
-
taskRevision: number;
|
|
113
|
-
stepId: string;
|
|
114
|
-
completionCommit: string;
|
|
115
|
-
currentHead: string;
|
|
116
|
-
knowledgeBindingStale: boolean;
|
|
117
|
-
} | null;
|
|
118
|
-
blockers: string[];
|
|
119
|
-
requiredActions: Array<{
|
|
120
|
-
action: 'locks repair' | 'task step-review';
|
|
121
|
-
entityId?: string;
|
|
122
|
-
taskId?: string;
|
|
123
|
-
stepId?: string;
|
|
124
|
-
expectedRevision?: number;
|
|
125
|
-
}>;
|
|
126
|
-
}
|
|
127
102
|
interface MilestoneInitialAssemblyOption {
|
|
128
103
|
action: 'linked-task-assembly' | 'milestone plan-set';
|
|
129
104
|
commands: string[];
|
|
@@ -145,13 +120,13 @@ export interface WorkflowTransactionHooks {
|
|
|
145
120
|
export declare class WorkflowService {
|
|
146
121
|
#private;
|
|
147
122
|
readonly store: FileStateStore;
|
|
123
|
+
private readonly checkOptions;
|
|
148
124
|
private readonly now;
|
|
149
125
|
private readonly transactionHooks;
|
|
150
|
-
constructor(store?: FileStateStore, now?: () => Date, transactionHooks?: WorkflowTransactionHooks);
|
|
126
|
+
constructor(store?: FileStateStore, now?: () => Date, transactionHooks?: WorkflowTransactionHooks, checkOptions?: CheckExecutionOptions);
|
|
151
127
|
inspectWriterLease(repository: string, entityId: string): PublicWriterLeaseDiagnostic | null;
|
|
152
|
-
repairStaleWriterLease(repository: string, entityId: string): PublicWriterLeaseRepairResult
|
|
153
|
-
|
|
154
|
-
applyTaskStopOverride(repository: string, taskId: string, stepId: string, expectedRevision: number, actor: string, reason: string, confirmationCode: string): StopEscalateOverrideEvent;
|
|
128
|
+
repairStaleWriterLease(repository: string, entityId: string): PublicWriterLeaseRepairResult | ReturnType<CoreTaskOperationLockManager['repairExpiredOrphan']>;
|
|
129
|
+
authorizeDelegatedCorrectiveReplan(repository: string, taskId: string, candidate: CorrectiveReplanPublicCandidate): CorrectiveReplanPublicCredential;
|
|
155
130
|
prepareCorrectiveReplan(repository: string, taskId: string, candidate: CorrectiveReplanPublicCandidate): CorrectiveReplanHumanGateResult;
|
|
156
131
|
confirmCorrectiveReplan(repository: string, taskId: string, candidate: CorrectiveReplanPublicCandidate, gate: CorrectiveReplanHumanGate, confirmationCode: string): CorrectiveReplanPublicCredential;
|
|
157
132
|
executeCorrectiveReplan(repository: string, taskId: string, candidate: CorrectiveReplanPublicCandidate, credential: CorrectiveReplanPublicCredential): CorrectiveReplanExecutionResult;
|
|
@@ -162,10 +137,6 @@ export declare class WorkflowService {
|
|
|
162
137
|
task: TaskState;
|
|
163
138
|
invalidation: ReturnType<typeof prepareDownstreamProofInvalidation>['event'];
|
|
164
139
|
};
|
|
165
|
-
recoverDownstreamProofReplan(repository: string, taskId: string, expectedTaskRevision: number, actor: string, reason: string): {
|
|
166
|
-
task: TaskState;
|
|
167
|
-
recovery: ReturnType<typeof prepareDownstreamProofReplanRecovery>['event'];
|
|
168
|
-
};
|
|
169
140
|
private correctiveReplanController;
|
|
170
141
|
private observationSnapshot;
|
|
171
142
|
prepareDelegation(repository: string, input: DelegationPolicyInput): DelegationGrantGate;
|
|
@@ -202,8 +173,10 @@ export declare class WorkflowService {
|
|
|
202
173
|
listDelegations(projectId: string): DelegationGrant[];
|
|
203
174
|
prepareMilestoneAutonomy(repository: string, milestoneId: string, expectedRevision: number, principal: string, delegate: string, expiresAt: string): MilestoneAutonomyPreparation;
|
|
204
175
|
grantMilestoneAutonomy(repository: string, milestoneId: string, expectedRevision: number, principal: string, delegate: string, expiresAt: string, confirmationCode: string): ActiveMilestoneAutonomy;
|
|
176
|
+
bindMilestoneAutonomy(repository: string, milestoneId: string, expectedRevision: number, actor: string, grantId: string): ActiveMilestoneAutonomy;
|
|
205
177
|
evolveMilestonePlanAutonomously(repository: string, milestoneId: string, expectedRevision: number, plan: MilestonePlanInput, actor: string): MilestoneState;
|
|
206
178
|
authorizeMilestone(repository: string, milestoneId: string, expectedRevision: number, actor: string, reason?: string, delegationGrantId?: string | null): MilestoneState;
|
|
179
|
+
private assertMilestoneValidationReady;
|
|
207
180
|
validateMilestone(repository: string, milestoneId: string, expectedRevision: number): MilestoneState;
|
|
208
181
|
acceptMilestone(repository: string, milestoneId: string, expectedRevision: number, actor: string, confirmationCode: string, delegationGrantId?: string | null): MilestoneState;
|
|
209
182
|
cancelMilestone(repository: string, milestoneId: string, expectedRevision: number, reason: string): MilestoneState;
|
|
@@ -281,7 +254,9 @@ export declare class WorkflowService {
|
|
|
281
254
|
submitTask(repository: string, taskId: string, expectedRevision: number, writerToken: string, actor?: string): TaskState;
|
|
282
255
|
recordReview(repository: string, taskId: string, expectedRevision: number, review: ReviewInput, actor?: string, writerToken?: string | null): TaskState;
|
|
283
256
|
recoverStepCorrectiveDecision(repository: string, taskId: string, stepId: string, expectedRevision: number, actor: string, writerToken: string | null): import("./contracts.js").CorrectiveDecisionRecoveryEvent;
|
|
284
|
-
|
|
257
|
+
/** Recording a machine finding may retain its exact failed execution context;
|
|
258
|
+
* it never approves changed Knowledge or authorizes another task run. */
|
|
259
|
+
private assessPlanIntegrityRecoveryAdmission;
|
|
285
260
|
recoverPlanIntegrity(repository: string, taskId: string, stepId: string, expectedRevision: number, actor: string, writerToken: string | null): {
|
|
286
261
|
assessment: import("./alpha6/plan-integrity.js").PlanIntegrityRecoveryAssessment;
|
|
287
262
|
event: import("./contracts.js").CorrectiveDecisionEvent;
|
|
@@ -300,41 +275,90 @@ export declare class WorkflowService {
|
|
|
300
275
|
recoveredMilestoneIds: string[];
|
|
301
276
|
};
|
|
302
277
|
prepareAdoption(repository: string): AdoptionPreparation;
|
|
303
|
-
applyAdoption(repository: string, actor: string, confirmationCode: string): AdoptionPostureEvent;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
278
|
+
applyAdoption(repository: string, actor: string, confirmationCode: string, delegationGrantId?: string | null): AdoptionPostureEvent;
|
|
279
|
+
updatePreflight(repository: string): UpdatePreflightResult & {
|
|
280
|
+
adoption: AdoptionPreparation | null;
|
|
281
|
+
};
|
|
282
|
+
private navigationUpdateBoundary;
|
|
283
|
+
failedCheckpointUpdateSourcePreflight(repository: string, taskId: string, tarball: string): {
|
|
284
|
+
eligible: boolean;
|
|
285
|
+
blockers: string[];
|
|
286
|
+
receipt: FailedCheckpointUpdateReceipt;
|
|
287
|
+
} | {
|
|
307
288
|
eligible: boolean;
|
|
308
289
|
blockers: string[];
|
|
309
|
-
|
|
310
|
-
baseTransportCommit: string | null;
|
|
290
|
+
receipt: null;
|
|
311
291
|
};
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
292
|
+
failedCheckpointUpdateTransportPreflight(repository: string, taskId: string, tarball: string, receipt: FailedCheckpointUpdateReceipt): {
|
|
293
|
+
eligible: boolean;
|
|
294
|
+
blockers: string[];
|
|
295
|
+
proof: {
|
|
296
|
+
receipt: FailedCheckpointUpdateReceipt;
|
|
297
|
+
target: {
|
|
298
|
+
commitSha: string;
|
|
299
|
+
parentCommitSha: string;
|
|
300
|
+
packageVersion: string;
|
|
301
|
+
};
|
|
302
|
+
baseTransport: string;
|
|
303
|
+
targetHead: string;
|
|
304
|
+
binding: import("./failed-checkpoint-update.js").FailedCheckpointUpdateBinding;
|
|
305
|
+
};
|
|
306
|
+
action: string;
|
|
307
|
+
expectedRevision: number;
|
|
308
|
+
actor: string;
|
|
309
|
+
} | {
|
|
310
|
+
eligible: boolean;
|
|
311
|
+
blockers: string[];
|
|
312
|
+
proof: null;
|
|
313
|
+
action?: never;
|
|
314
|
+
expectedRevision?: never;
|
|
315
|
+
actor?: never;
|
|
316
|
+
};
|
|
317
|
+
recoverFailedCheckpointUpdate(repository: string, taskId: string, expectedRevision: number, tarball: string, receipt: FailedCheckpointUpdateReceipt, actor: string, reason: string): TaskState;
|
|
318
|
+
navigationUpdateSourcePreflight(repository: string, taskId: string, tarball: string): {
|
|
319
|
+
eligible: boolean;
|
|
320
|
+
blockers: string[];
|
|
321
|
+
receipt: NavigationUpdateReceipt;
|
|
322
|
+
} | {
|
|
323
|
+
eligible: boolean;
|
|
324
|
+
blockers: string[];
|
|
325
|
+
receipt: null;
|
|
326
|
+
};
|
|
327
|
+
navigationUpdateTransportPreflight(repository: string, taskId: string, tarball: string, receipt: NavigationUpdateReceipt): {
|
|
328
|
+
eligible: boolean;
|
|
329
|
+
blockers: string[];
|
|
330
|
+
proof: {
|
|
331
|
+
receipt: NavigationUpdateReceipt;
|
|
332
|
+
commits: {
|
|
333
|
+
commitSha: string;
|
|
334
|
+
parentCommitSha: string;
|
|
335
|
+
packageVersion: string;
|
|
336
|
+
}[];
|
|
337
|
+
baseTransport: string;
|
|
338
|
+
targetHead: string;
|
|
339
|
+
};
|
|
340
|
+
action: string;
|
|
341
|
+
expectedRevision: number;
|
|
342
|
+
actor: string;
|
|
343
|
+
} | {
|
|
344
|
+
eligible: boolean;
|
|
345
|
+
blockers: string[];
|
|
346
|
+
proof: null;
|
|
347
|
+
action?: never;
|
|
348
|
+
expectedRevision?: never;
|
|
349
|
+
actor?: never;
|
|
315
350
|
};
|
|
351
|
+
recoverNavigationUpdate(repository: string, taskId: string, expectedRevision: number, tarball: string, receipt: NavigationUpdateReceipt, actor: string, reason: string): TaskState;
|
|
316
352
|
dependencyProvenanceRecoveryPreflight(repository: string, taskId: string): DependencyProvenanceRecoveryPreflight;
|
|
317
|
-
correctiveCarryoverUpdatePreflight(repository: string, taskId: string, candidate?: {
|
|
318
|
-
plan: TaskPlanInput;
|
|
319
|
-
planRiskAudit: RecordPlanRiskAuditInput;
|
|
320
|
-
} | null): Record<string, unknown>;
|
|
321
|
-
private consumedCarryoverSourceRecoveryPreflight;
|
|
322
353
|
historicalStepProvenanceRecoveryPreflight(repository: string, taskId: string): HistoricalStepProvenanceRecoveryPreflight;
|
|
323
354
|
historicalStepDependencyRecoveryPreflight(repository: string, taskId: string): DependencyProvenanceRecoveryPreflight;
|
|
324
355
|
recoverHistoricalStepProvenance(repository: string, taskId: string, expectedRevision: number, commitSha: string, actor: string, reason: string): TaskState;
|
|
325
356
|
activeDownstreamProofDependencyRecoveryPreflight(repository: string, taskId: string): DependencyProvenanceRecoveryPreflight;
|
|
326
|
-
downstreamProofReplanUpdatePreflight(repository: string, taskId: string): Record<string, unknown>;
|
|
327
|
-
planIntegrityUpdatePreflight(repository: string, taskId: string): Record<string, unknown>;
|
|
328
|
-
planIntegrityDependencyRecoveryPreflight(repository: string, taskId: string): DependencyProvenanceRecoveryPreflight;
|
|
329
|
-
downstreamProofReplanDependencyRecoveryPreflight(repository: string, taskId: string): DependencyProvenanceRecoveryPreflight;
|
|
330
357
|
recoverDependencyProvenance(repository: string, taskId: string, expectedRevision: number, actor: string, reason: string): TaskState;
|
|
331
358
|
recoverActiveDownstreamProofDependencyProvenance(repository: string, taskId: string, expectedRevision: number, actor: string, reason: string): TaskState;
|
|
332
|
-
recoverDownstreamProofReplanDependencyProvenance(repository: string, taskId: string, expectedRevision: number, actor: string, reason: string): TaskState;
|
|
333
359
|
recoverHistoricalStepDependencyProvenance(repository: string, taskId: string, expectedRevision: number, actor: string, reason: string): TaskState;
|
|
334
|
-
recoverPlanIntegrityDependencyProvenance(repository: string, taskId: string, expectedRevision: number, actor: string, reason: string): TaskState;
|
|
335
360
|
private recoverDependencyProvenanceCandidate;
|
|
336
361
|
milestoneProgress(repository: string, milestoneId: string): MilestoneProgressProjection;
|
|
337
|
-
alpha6StrictReviewRescuePreflight(repository: string): Alpha6StrictReviewRescuePreflight;
|
|
338
362
|
scanKnowledgeMap(repository: string): ProjectKnowledgeMap;
|
|
339
363
|
showKnowledgeMap(repository: string): ProjectKnowledgeMap;
|
|
340
364
|
knowledgeMapStatus(repository: string): ProjectKnowledgeMap;
|
|
@@ -345,6 +369,7 @@ export declare class WorkflowService {
|
|
|
345
369
|
graphStatus(repository: string, graphKind: GraphKind, mode?: GraphMode): {
|
|
346
370
|
request: GraphRefreshRequest;
|
|
347
371
|
binding: GraphBinding | null;
|
|
372
|
+
observation: WorkflowObservation;
|
|
348
373
|
};
|
|
349
374
|
bindGraph(repository: string, expectedRevision: number | null, request: GraphRefreshRequest, evidence: GraphRefreshEvidence): GraphBinding;
|
|
350
375
|
recordGraphFallback(repository: string, graphKind: GraphKind, mode: GraphMode, expectedRevision: number | null, reason: string): GraphBinding;
|
|
@@ -403,11 +428,11 @@ export declare class WorkflowService {
|
|
|
403
428
|
private currentCorrectiveDerivedTaskAuthority;
|
|
404
429
|
private nextForTaskWithDelegation;
|
|
405
430
|
private taskPlanContract;
|
|
406
|
-
private
|
|
431
|
+
private registeredPlanningContextTransport;
|
|
432
|
+
private taskContextChangeBlocker;
|
|
407
433
|
private stopOverrideContextRebindDecisionId;
|
|
408
434
|
private taskHasTerminalCorrectiveDecision;
|
|
409
435
|
private taskTerminalCorrectivePosture;
|
|
410
|
-
private assertStopOverrideRepositoryBoundary;
|
|
411
436
|
private delegatedApprovalOptions;
|
|
412
437
|
private delegatedContextRefreshOptions;
|
|
413
438
|
private findDelegatedContextRefreshOwner;
|
|
@@ -420,7 +445,6 @@ export declare class WorkflowService {
|
|
|
420
445
|
private listMilestonesCurrent;
|
|
421
446
|
private listMilestonesObserved;
|
|
422
447
|
private taskGitNavigationOverride;
|
|
423
|
-
private carriedPlanIntegrityUpdateCompatibility;
|
|
424
448
|
private postRebindCheckSupportCompatibility;
|
|
425
449
|
private carriedPostRebindCheckSupportDirtyCarryover;
|
|
426
450
|
private assessPostRebindCheckSupportDirtyCarryover;
|