feat(portfolio): add decision queue digest#72
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e136b72397
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| key=lambda item: ( | ||
| decision_rank.get(item.decision_type, 9), | ||
| item.project.lower(), |
There was a problem hiding this comment.
Prioritize security queue by alert severity before capping
When more than five projects carry security_risk, every security item receives the same rank here and is then ordered only by project name before queue[:MAX_DECISION_QUEUE_ITEMS] is applied. That means five alphabetically earlier repos with one high alert can push a later repo with open critical alerts out of the weekly decision queue entirely, even though the digest is meant to surface security follow-up decisions. Include the Dependabot critical/high counts in the sort key for security items before falling back to the name.
Useful? React with 👍 / 👎.
What
Add a bounded portfolio decision queue derived from the canonical portfolio truth snapshot and surface it in the weekly command-center digest.
Why
Default attention is a watch set, not a decision list. The weekly digest needed a narrower report-only queue so active-product/active-infra projects do not trigger context/doc refresh work unless current truth carries a concrete decision signal.
Review Of What Was Built
portfolio_decision_queuewith a strictdecision_queue_v1contract.decision-neededitems, capped to five entries.Cleanup Review
Verification Summary
PYTHONDONTWRITEBYTECODE=1 uv run pytest tests/test_portfolio_decision_queue.py tests/test_weekly_command_center.py -q-> 10 passed.PYTHONDONTWRITEBYTECODE=1 uv run pytest tests/test_portfolio_automation.py tests/test_weekly_command_center.py tests/test_portfolio_decision_queue.py -q-> 29 passed.uv run ruff check src/portfolio_decision_queue.py src/weekly_command_center.py tests/test_portfolio_decision_queue.py tests/test_weekly_command_center.py-> passed.uv run ruff check .-> passed.PYTHONDONTWRITEBYTECODE=1 uv run pytest -q-> 2462 passed, 2 skipped, 2 existing warnings.Shipped Summary
The branch now separates portfolio watch-set attention from a concrete decision queue in the weekly command-center artifact.
Next Phase
After merge, refresh the local portfolio/coordination check from Personal Ops and confirm the GithubRepoAuditor repo-posture blocker clears.
Remaining Roadmap
output/portfolio-truth-latest.jsonas the canonical truth surface.