Publish curated projectbrain source from 88fab8df1542019289e947f092c2b387e0825c60
This commit is contained in:
1 parent
48e72d07e0
commit
eca2891b07
45 files changed
+2697
-328
No files matched your search
@@ -36,6 +36,27 @@ describe("smart autonomy scheduler", () => {
|
||||
expect(chooseNextAutonomyWork(roadmap.phases, 0, "downstream-impact")?.item.id).toBe(a.id);
|
||||
});
|
||||
|
||||
it("honors explicit manual queue order before automatic scoring", () => {
|
||||
const roadmap = parseRoadmapMarkdown("## Delivery\n- [ ] High score\n- [ ] Owner first");
|
||||
const [highScore, ownerFirst] = roadmap.phases[0].items;
|
||||
highScore.priority = 100;
|
||||
ownerFirst.priority = 0;
|
||||
highScore.manualOrder = 1;
|
||||
ownerFirst.manualOrder = 0;
|
||||
|
||||
expect(chooseNextAutonomyWork(roadmap.phases, 0)?.item.id).toBe(ownerFirst.id);
|
||||
});
|
||||
|
||||
it("never lets manual ordering bypass an unmet dependency", () => {
|
||||
const roadmap = parseRoadmapMarkdown("## Delivery\n- [ ] Prerequisite\n- [ ] Manually first");
|
||||
const [prerequisite, manuallyFirst] = roadmap.phases[0].items;
|
||||
manuallyFirst.dependsOn = [prerequisite.id];
|
||||
manuallyFirst.manualOrder = 0;
|
||||
prerequisite.manualOrder = 1;
|
||||
|
||||
expect(chooseNextAutonomyWork(roadmap.phases, 0)?.item.id).toBe(prerequisite.id);
|
||||
});
|
||||
|
||||
it("does not claim work while its external dependency is unavailable", () => {
|
||||
const roadmap = parseRoadmapMarkdown("## Delivery\n- [ ] A\n- [ ] B");
|
||||
roadmap.phases[0].items[0].waitingExternal = true;
|
||||
|
||||
Reference in new issue
Block a user