codex-workflow-v2 2.0.0-beta.13.2 → 2.0.0-beta.13.3

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.
@@ -1,2 +1,2 @@
1
1
  export declare const PACKAGE_NAME = "codex-workflow-v2";
2
- export declare const PACKAGE_VERSION = "2.0.0-beta.13.2";
2
+ export declare const PACKAGE_VERSION = "2.0.0-beta.13.3";
@@ -1,3 +1,3 @@
1
1
  export const PACKAGE_NAME = 'codex-workflow-v2';
2
- export const PACKAGE_VERSION = '2.0.0-beta.13.2';
2
+ export const PACKAGE_VERSION = '2.0.0-beta.13.3';
3
3
  //# sourceMappingURL=version.js.map
@@ -18,7 +18,7 @@ import { appendTaskClaim, appendTaskHandback, appendTaskHandoff, appendTaskWrite
18
18
  import { assessDownstreamProofCarryover, assessDownstreamProofReplanRecovery, assessDownstreamProofRecovery, downstreamProofInvalidationSidecar, downstreamProofReplanRecoverySidecar, prepareDownstreamProofInvalidation, prepareDownstreamProofReplanRecovery, readDownstreamProofInvalidations, readDownstreamProofReplanRecoveries, hashDirtyWorktree, } from './alpha6/downstream-proof.js';
19
19
  import { applyAdoptionPosture, assertAdoptionBaselinePreserved, buildAdoptionPreparation, initializeProjectRegistrationAdoption, readCurrentAdoptionPosture, } from './alpha6/adoption.js';
20
20
  import { appendCurrentPlanRiskAudit, appendReboundPlanRiskAudit, readCurrentPlanRiskAudit, readPlanRiskAuditEvents, validatePlanRiskAuditCandidate, } from './alpha6/plan-risk.js';
21
- import { appendCorrectiveDecisionEvent, appendPlanIntegrityRecoveryDecision, appendRemediationModeRecovery, appendStopEscalateOverride, assertCorrectiveAuditorIndependence, assertGuardedRemediationAttemptAllowed, defaultCorrectiveAuditorActor, effectiveStepAllowedWrites, findCurrentGuardedRemediationPosture, findRemediationModeRecoveryCandidate, findFailedGuardedStepRequiringCorrectiveDecision, readGuardedRemediationPostureForStep, readCorrectiveDecisionEvents, readRemediationEvents, deriveRollingCauseDecision, prepareRemediationEvent, prepareStopEscalateOverride, stopEscalateOverrideDecisionEventIds, } from './alpha6/remediation.js';
21
+ import { appendCorrectiveDecisionEvent, appendPlanIntegrityRecoveryDecision, appendRemediationModeRecovery, appendStopEscalateOverride, assertCorrectiveAuditorIndependence, assertGuardedRemediationAttemptAllowed, defaultCorrectiveAuditorActor, effectiveStepAllowedWrites, findCurrentGuardedRemediationPosture, findRemediationModeRecoveryCandidate, findFailedGuardedStepRequiringCorrectiveDecision, readGuardedRemediationPostureForStep, readCorrectiveDecisionEvents, readRemediationEvents, deriveRollingCauseDecision, deriveCurrentCauseDecision, prepareRemediationEvent, prepareStopEscalateOverride, stopEscalateOverrideDecisionEventIds, } from './alpha6/remediation.js';
22
22
  import { assessPlanIntegrityRecovery, defaultPlanIntegrityRecoveryActor, } from './alpha6/plan-integrity.js';
23
23
  import { mechanicalCauseBindings, normalizeMechanicalFailures, } from './alpha6/remediation-cause.js';
24
24
  import { assertMechanicalFeasibilityFresh, evaluateMechanicalFeasibility, hashMechanicalFeasibilityEvidence, } from './alpha6/mechanical-feasibility.js';
@@ -3062,7 +3062,7 @@ export class WorkflowService {
3062
3062
  const resultingHistory = preparedRemediation.postimage === null
3063
3063
  ? stepHistory
3064
3064
  : [...stepHistory, preparedRemediation.event];
3065
- const rollingCauseDecision = deriveRollingCauseDecision(resultingHistory);
3065
+ const rollingCauseDecision = deriveCurrentCauseDecision(resultingHistory);
3066
3066
  const resolved = applyStrictStepReviewResolution(task, stepId, 'failed', summary);
3067
3067
  const paused = {
3068
3068
  ...resolved,
@@ -3086,7 +3086,7 @@ export class WorkflowService {
3086
3086
  ? prepareTaskCorrectiveYield(this.store, paused, {
3087
3087
  actor: c1Posture.claimant,
3088
3088
  writerToken: reviewLease.token,
3089
- reason: `Yield execution authority after repeated authoritative cause ${preparedRemediation.event.eventId}.`,
3089
+ reason: `Yield execution authority after authoritative replan cause ${preparedRemediation.event.eventId}.`,
3090
3090
  eventId: `HOF-${sha256Hex([
3091
3091
  'strict-review-root-cause-replan-pause-v1',
3092
3092
  task.id,
@@ -6071,8 +6071,8 @@ export class WorkflowService {
6071
6071
  ...(task.steps.find((step) => step.id === guardedCorrectivePosture.stepId)?.status !== 'failed'
6072
6072
  ? [`${guardedCorrectivePosture.stepId} must remain failed.`]
6073
6073
  : []),
6074
- ...(writerLease ? ['No active or stale writer lease may remain after the failure pause.'] : []),
6075
- ...(rollingC1Posture.state !== 'none'
6074
+ ...(writerLease && rollingC1Posture.state !== 'claimed' ? ['No active or stale writer lease may remain after the failure pause.'] : []),
6075
+ ...(rollingC1Posture.state !== 'none' && rollingC1Posture.state !== 'claimed'
6076
6076
  ? ['No C1 claim may remain after the root-cause failure pause.']
6077
6077
  : []),
6078
6078
  ];
@@ -6089,7 +6089,7 @@ export class WorkflowService {
6089
6089
  },
6090
6090
  }
6091
6091
  : {
6092
- action: 'task plan-set',
6092
+ action: rollingC1Posture.state === 'claimed' ? 'task corrective-yield' : 'task plan-set',
6093
6093
  blockedAction: 'task run',
6094
6094
  stepId: guardedCorrectivePosture.stepId,
6095
6095
  rollingWave: {