Lower-priority goal can invalidate an already satisfied higher-priority goal
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by locating the scheduler's handling of goal priority and the goal satisfaction analysis entry point; the issue does not name files or tests. Reproduce the battery scenario and compare statuses immediately after scheduling with a fresh analysis. Done means lower-priority placements cannot invalidate an already satisfied higher-priority goal, and the displayed status matches fresh analysis.
Written by the indexing model from the issue text.
Description
Checked for duplicates
Yes - I've already checked
Is this a regression?
No - This is a new bug
Version
v4.4.0
Describe the bug
I reproduced this behavior on a local PlanDev deployment. The scheduler satisfied a higher-priority goal, then accepted an activity from a lower-priority goal that caused the higher-priority requirement to fail.
I also observed a separate reporting issue. Immediately after scheduling, both goals showed Satisfied. Without editing the plan, I clicked Analyze Goal Satisfaction. Only then did the higher-priority goal change to Unsatisfied. The lower-priority goal remained Satisfied.
Reproduction
The following battery example illustrates the scheduling conflict:
- The higher-priority goal requires a specific observation to start at 10:00 with at least 40% battery charge. When the scheduler places the observation, the predicted charge at its start is 45%, so the goal is satisfied.
- The lower-priority procedural goal then inserts a power-consuming downlink at 09:50. The scheduler accepts the downlink.
- The observation is still scheduled for 10:00, but the downlink reduces the predicted charge at the start of the observation to 35%. The observation now violates its 40% minimum.
- Compare the goal statuses immediately after scheduling and after clicking Analyze Goal Satisfaction, without making any changes to the plan.
| When checked | Higher-priority observation goal | Lower-priority downlink goal |
|---|---|---|
| Immediately after scheduling | Satisfied | Satisfied |
| After Analyze Goal Satisfaction, on the same plan | Unsatisfied | Satisfied |
Expected behavior
Scheduling should preserve an already satisfied higher-priority goal. In this example, the scheduler should only accept a downlink placement that keeps the observation at 10:00 with at least 40% charge. If the 09:50 placement would reduce the charge to 35%, the scheduler should reject that placement. If no compatible placement exists, the lower-priority downlink goal should remain Unsatisfied.
The status shown after scheduling should also agree with a fresh analysis of the same plan. In the observed run, the higher-priority goal had already become unsatisfied by the time scheduling finished. The result should have shown that immediately. Updating the status would fix the reporting issue, but the scheduling issue would still need to be addressed.
Logs
System Info
Local PlanDev deployment. Regression status across earlier releases is unknown.
Severity
Moderate
- Dominant language
- Java
- Stars
- 135
- Forks
- 34
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 10
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NASA-AMMOS/plandev
-
SeqDev Workspace permissions based on user roleMay be free again @AaronPlave claimed this 32 days ago, and no pull request is open. Open
NASA-AMMOS/plandev#1900 · 1 assignee ·
Maintainers usually reply within 1 day
-
feature
Difficulty 5/5 Over a week Newbie friendliness 42/100
NASA-AMMOS/plandev#1890 · 2 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
NASA-AMMOS/plandev#1830 ·
Maintainers usually reply within 1 day
-
Anchor negative offset validation fails to re-run in some casesMay be free again @Mythicaeda claimed this 207 days ago, and no pull request is open. Openbug planning
NASA-AMMOS/plandev#1829 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
feature
Difficulty 5/5 Over a week Newbie friendliness 42/100
NASA-AMMOS/plandev#1828 · 1 comment ·
Maintainers usually reply within 1 day
All issues in NASA-AMMOS/plandev
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
521xueweihan/HelloGitHub#4654 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
commons-app/apps-android-commons#7486 ·
Maintainers usually reply within 1 day
-
easy first-contributor first-contributors good first issue help wanted kotlin up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
fork-commit-merge/fork-commit-merge#8752 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/fineract-consumer-facing#306 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
testng-team/testng#3672 ·
Maintainers usually reply within 1 day