feat(workflow): add atomic durable task claim and checkpoint CAS - #542
feat(workflow): add atomic durable task claim and checkpoint CAS#542seonghobae wants to merge 134 commits into
Conversation
📝 WalkthroughWalkthroughChanges내구성 워크플로 실행 권한
Estimated code review effort: 4 (Complex) | ~60 minutes Merge Risk: 🟠 High · up to Existing workflows could acquire conflicting plan histories, while corrupted transition receipts may be accepted as valid. These integrity issues should be fixed before merge. Sequence Diagram(s)sequenceDiagram
participant Scheduler
participant NOEMA_WORKFLOW_STATE
participant NoemaWorkflowState
participant DurableWorkflowStateRepository
participant EffectExecutor
Scheduler->>NOEMA_WORKFLOW_STATE: route command by execution ID
NOEMA_WORKFLOW_STATE->>NoemaWorkflowState: forward internal JSON command
NoemaWorkflowState->>DurableWorkflowStateRepository: initialize or require plan authority
DurableWorkflowStateRepository-->>NoemaWorkflowState: accept exact plan or return conflict
NoemaWorkflowState->>DurableWorkflowStateRepository: claim task
DurableWorkflowStateRepository-->>Scheduler: active claim
Scheduler->>NoemaWorkflowState: persist effect start
Scheduler->>EffectExecutor: execute effect
EffectExecutor-->>Scheduler: terminal outcome
Scheduler->>NoemaWorkflowState: persist terminal outcome
NoemaWorkflowState->>DurableWorkflowStateRepository: commit state transition
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 12.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 40 functions across 16 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Fresh current-head repair after
Current exact authority supersedes the older head/run block in the PR description: protected base |
|
Fresh application-boundary review found another claim-authority fail-open path on the live branch. TDD repair on the same non-force branch:
Current exact head is |
Verified: CodeRabbit's Wrangler
|
|
Fresh current-head authority supersedes the stale body snapshot: protected |
|
2026-09-06 KST authority refresh: #546 exact |
Scope
P0 Workflow / Task Execution + State / Checkpoint implementation tracked by #541. This lane owns durable claim/recovery/checkpoint authority and Worker/Durable Object composition only; it does not copy provider/model routing, foreign domain truth, quarantine/security verdicts, outbound authority, Context Graph source or EA implementation.
Current exact authority — 2026-09-06 KST
Protected Noema is
main@e26d771470a4ece873c367b40b3cd6cb03ac7de3. The post-#527 semantic restack had a real overlap inwrangler.toml: branch authority requires privateNOEMA_WORKFLOW_STATE, while protected authority requiresALLOWED_WORKFLOW_SHA=43024633eba9d96b0456970391360da5a171fbda. Ordinary two-parent/non-force commit9236775bad5476a70601c3dd0331211d42eaed12preserves both, together with the complete atomic-claim/checkpoint/recovery/payload-minimization delta.Fresh exact-head
reviewer-ci 34027045430,ci 34027045443, requiredSecurity Scan 34027045440, andpatch-validator-image 34027045436are queued. Predecessor GREEN does not transfer. Keep Draft until current CI/reviewer/Security/image and owned 100% coverage/docstring/edge evidence are terminal with zero valid unresolved findings.