feat(portfolio): ingest producer preflight receipts#170
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f3aba2b9b4
ℹ️ 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".
| require_producer_evidence=bool( | ||
| os.environ.get("GHRA_REQUIRE_PRODUCER_EVIDENCE") == "1" | ||
| ), |
There was a problem hiding this comment.
Enforce producer guard on recovery publishes
This only applies GHRA_REQUIRE_PRODUCER_EVIDENCE to run_portfolio_truth_mode; the same module still calls publish_portfolio_truth from run_portfolio_context_recovery_mode after --apply-context-recovery without passing the loaded evidence or the requirement flag. In an automation environment that sets the guard, an operator can still rewrite output/portfolio-truth-latest.json via the context-recovery apply path with an empty producer envelope, bypassing the canonical-evidence requirement this change is adding.
Useful? React with 👍 / 👎.
Summary
Verification
Operational companion
Boundaries