Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Workflow source neededPR #3672 needs either a linked GitHub issue or one valid non-issue Workflow Source before PR metadata automation can manage it safely. Please do one of:
Once a valid source is present, this warning will not be reposted. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: stranske/Workflows/.coderabbit.yaml Review profile: ASSERTIVE Plan: Essentials Run ID: 📒 Files selected for processing (5)
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour. 📝 WalkthroughWalkthroughReporter replay now returns an empty result when the authority ledger is confirmed missing. Other ledger-read errors remain fatal. The change also updates the consumer-repository template, tests, manifest description, and documentation. ChangesReporter replay
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to A confirmed missing ledger now produces an empty reporter replay, and other ledger-read errors remain distinct. No material merge risk is established by the workflow or operator contract. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 35a6a181ae
ℹ️ 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".
| const authority = await readAuthority(request, repository, number, { allowMissing: true }); | ||
| // Most keepalive PRs never enter the challenge path and have no ledger. | ||
| // Only a confirmed 404 is an empty replay; all other read failures remain fatal. | ||
| if (authority === null) break; |
There was a problem hiding this comment.
Distinguish an absent ledger from an inaccessible authority ref
When the authority branch is missing, deleted, or concealed by repository access, the Contents API returns the same 404 as a missing PR ledger, and readAuthorityState(..., { allowMissing: true }) maps every such response to null. This function also never verifies that the PR is actually an ordinary, non-authority PR, so the unconditional break can report a successful replay while silently abandoning an existing challenge receipt; verify the authority ref and the PR's ordinary state before treating the file-level 404 as an empty replay.
Useful? React with 👍 / 👎.
Automated Status SummaryHead SHA: b9925f6
Coverage Overview
Updated automatically; will refresh on subsequent CI/Docker completions. Keepalive checklistScopeNo scope information available Tasks
Acceptance criteria
|
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The focused change preserves fail-closed error handling and includes aligned tests, documentation, and consumer templates.
Review effort: Balanced
Findings: None
What changed in this PR
Makes reporter replay safely skip ordinary PRs without an authority ledger, resolving the consumer sync finding.
Changes:
- Treat missing ledgers as empty replays while preserving other failures.
- Add success and failure-path tests.
- Synchronize templates, manifest metadata, and keepalive documentation.
| File | Description |
|---|---|
.github/scripts/keepalive_reporter_applicability.js |
Enables no-ledger replay handling. |
templates/consumer-repo/.github/scripts/keepalive_reporter_applicability.js |
Mirrors the source implementation. |
.github/scripts/__tests__/keepalive-reporter-applicability.test.js |
Tests missing-ledger and failure behavior. |
.github/sync-manifest.yml |
Updates the managed script description. |
docs/keepalive/GoalsAndPlumbing.md |
Documents replay semantics. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Superseded by #3674 on the registry-compliant branch |
Summary
Validation
Addresses the exact-head finding on stranske/Portable-Alpha-Extension-Model#2318. Regenerate through Maint 68/71 after source merge; do not patch generated PRs.
Summary by CodeRabbit