refactor(workflow): S13 scheduler policy deletion#1586
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 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 |
cc3566e to
5de2ea1
Compare
7143d25 to
ffef184
Compare
Greptile SummaryThis draft PR reserves the S13 slice in the workflow-owned merge migration stack by adding a planning document and a structural guard test for
Confidence Score: 5/5Safe to merge as a draft placeholder — no production code is changed and the new guard test correctly passes against the current state of workflow-work-scheduler.ts. The two files added are a planning document and a source-scanning guard test. The guard test reads the correct file, all assertions hold against the current implementation, and no existing behavior is altered. The two findings are forward-looking quality concerns about the guard's future enforcement strength, not defects in the code shipped by this PR. packages/engine/src/tests/workflow-scheduler-policy-deletion.test.ts — consider enrolling in the engine-core gate allow-list and documenting the raw-text scanning limitation before the S13 implementation lands. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["pnpm test:gate\n(CI merge gate)"] --> B["engine-core allow-list\n(vitest.config.ts)"]
B --> C["workflow-policy-ownership-map.test.ts ✓"]
B --> D["scheduler.test.ts ✓"]
B -.->|"NOT enrolled"| E["workflow-scheduler-policy-deletion.test.ts ✗"]
F["pnpm test / full-suite.yml\n(non-blocking)"] --> G["engine-default\nsrc/**/*.test.ts"]
G --> E
E --> H{{"readFileSync\nworkflow-work-scheduler.ts"}}
H --> I["Positive assertions\n- contains listDueWorkflowWorkItems\n- contains acquireWorkflowWorkItemLease"]
H --> J["Negative assertions\n- not getTask\n- not moveTask\n- not in-review\n- not mergeRetries\n- not retryAfter"]
style E fill:#ffe4b5,stroke:#f90
style A fill:#d4f4d4,stroke:#090
Reviews (7): Last reviewed commit: "test(FN-000): harden workflow scheduler ..." | Re-trigger Greptile |
5de2ea1 to
84b5065
Compare
ffef184 to
1d5a02b
Compare
84b5065 to
b98d27d
Compare
1d5a02b to
1cc7876
Compare
b98d27d to
b82bea7
Compare
6dd457a to
5736ded
Compare
b82bea7 to
3e77551
Compare
5736ded to
5db1e17
Compare
3e77551 to
05ae169
Compare
5db1e17 to
d47219e
Compare
84619cb to
f284530
Compare
d47219e to
c232b1c
Compare
f284530 to
80c1d22
Compare
c232b1c to
63b1ee2
Compare
80c1d22 to
9b7c73a
Compare
63b1ee2 to
e331c28
Compare
Fusion-Task-Id: FN-000
Address PR #1586 feedback by replacing brittle substring checks with literal and identifier regex guards.
9b7c73a to
dd47771
Compare
e331c28 to
21ddf89
Compare
Addressed: the scheduler deletion guard now uses regex-based negative assertions for the legacy task-column patterns, reducing false positives from explanatory comments. |
Stack Slice
feature/workflow-owned-merge-s12-workflow-projectionsdocs/plans/2026-06-09-003-refactor-workflow-owned-merge-full-migration-slices-plan.mdGoal
Delete scheduler branches that infer lifecycle, merge eligibility, retry routing, or in-review dependency behavior from task columns.
Dependency
S3 scheduler claim path, S7 handoff, S8 merge processing, and S12 projections.
Expected Scope
packages/engine/src/scheduler.ts; packages/core/src/task-merge.ts; scheduler deletion tests.
Expected Tests
Dependency satisfaction cannot rely on in-review alone, retry due time from work item, overlap leases from workflow work, PR monitor remains substrate.
Exit Gate
Search/structure tests fail if scheduler reintroduces task-column merge/retry policy.
Status
Draft stack placeholder. This PR reserves ordering and review context; implementation should replace or extend the handoff artifact before this slice is marked ready.
Implementation Added
Summary by CodeRabbit
Documentation
Tests