Feature Request
Nightshift should consider priority:high, priority:medium, and priority:low labels when determining issue processing order, so that high-priority issues are worked on before lower-priority ones.
Current Behavior
Nightshift fetches issues with the af:fix label and orders them by:
- Issue number (ascending — oldest first)
- Explicit text dependencies (
depends on #N, blocked by #N)
- GitHub cross-reference metadata
- AI triage recommendations (for batches of 3+)
- Topological sort with tie-breaking by issue number
Priority labels on issues are completely ignored. A priority:high issue created after a priority:low issue will always be processed second.
Desired Behavior
After dependency ordering is resolved, issues at the same dependency depth should be sorted by priority label:
priority:high — processed first
priority:medium (or no priority label) — default
priority:low — processed last
Suggested Implementation
The change would be in the topological sort tie-breaking logic in packages/agentfox/agentfox/nightshift/dep_graph.py (lines 70-83). Currently ties are broken by ascending issue number. Instead, ties should be broken by:
- Priority label (high > medium/none > low)
- Issue number (ascending, as current fallback)
The priority label would need to be extracted from the issue's labels list during the ordering phase in packages/agentfox/agentfox/nightshift/engine.py.
Affected Files
packages/agentfox/agentfox/nightshift/dep_graph.py — tie-breaking in topological sort
packages/agentfox/agentfox/nightshift/engine.py — pass label info into the ordering pipeline
packages/agentfox/agentfox/platform/labels.py — define priority label constants
Feature Request
Nightshift should consider
priority:high,priority:medium, andpriority:lowlabels when determining issue processing order, so that high-priority issues are worked on before lower-priority ones.Current Behavior
Nightshift fetches issues with the
af:fixlabel and orders them by:depends on #N,blocked by #N)Priority labels on issues are completely ignored. A
priority:highissue created after apriority:lowissue will always be processed second.Desired Behavior
After dependency ordering is resolved, issues at the same dependency depth should be sorted by priority label:
priority:high— processed firstpriority:medium(or no priority label) — defaultpriority:low— processed lastSuggested Implementation
The change would be in the topological sort tie-breaking logic in
packages/agentfox/agentfox/nightshift/dep_graph.py(lines 70-83). Currently ties are broken by ascending issue number. Instead, ties should be broken by:The priority label would need to be extracted from the issue's labels list during the ordering phase in
packages/agentfox/agentfox/nightshift/engine.py.Affected Files
packages/agentfox/agentfox/nightshift/dep_graph.py— tie-breaking in topological sortpackages/agentfox/agentfox/nightshift/engine.py— pass label info into the ordering pipelinepackages/agentfox/agentfox/platform/labels.py— define priority label constants