fix: preserve control center context on refresh#155
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4247a87599
ℹ️ 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".
| if catalog_entry: | ||
| item["portfolio_catalog"] = dict(catalog_entry) | ||
| item["catalog_line"] = catalog_entry.get("catalog_line", "") | ||
| item["intent_alignment"] = catalog_entry.get("intent_alignment", "missing-contract") |
There was a problem hiding this comment.
Recompute intent alignment for refreshed queues
When standalone --control-center rebuilds a snapshot whose queue differs from the stored report queue (for example a lane-filtered view or local acknowledgment/approval state), build_operator_snapshot has already attached intent alignment from the current queue item, but this line overwrites it with the audit row's older intent_alignment. A maintain/finish repo that is now urgent or blocked can therefore keep an aligned value, and _apply_operating_paths below will treat the path as healthier than the refreshed operator evidence supports.
Useful? React with 👍 / 👎.
Summary
Verification