Skip to content

codex/keepalive-replay-missing-ledger-20261001: skip reporter replay without authority ledger - #3722

Closed
stranske wants to merge 1 commit into
mainfrom
codex/keepalive-replay-missing-ledger-20261001
Closed

stranske wants to merge 1 commit into
mainfrom
codex/keepalive-replay-missing-ledger-20261001

Conversation

@stranske

@stranske stranske commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

This regular PR was raised by the closer orphan-branch sweep. Branch codex/keepalive-replay-missing-ledger-20261001 has one unmerged commit; last commit 2026-10-01T16:47:04Z, over 48 hours old at discovery. Tip: 35a6a181ae061b4ef0b47a1cd81fe1b58452e20a. git cherry origin/main <tip> reports one unique patch; merge-base-relative diff is five files, 38 additions and four deletions. No linked issue was found in the branch name or commit subject.

The patch changes keepalive reporter applicability when the authority ledger is missing, with a focused JavaScript regression and matching template/docs. Ordinary review, source-context classification and exact-head CI gates must complete before merge; the sweep supplies no automatic merge authorization.

Workflow Source

Origin: the authorized closer orphan sweep recovered an existing pushed branch. Historical author intent beyond the retained commit and diff is unverified. This marker identifies PR creation provenance, not a fabricated issue or acceptance contract.

Summary by CodeRabbit

  • Bug Fixes
    • Reporter replay now completes without processing when an ordinary pull request has no authority record. Other record-read failures continue to surface as errors.
  • Documentation
    • Clarified how missing authority records and other evidence or storage issues are handled.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T17:29:07.350311Z 35a6a18 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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 configuration
  • Configuration used: Repository: stranske/Workflows/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: a127f3fd-3e0a-457f-b2b4-d1eb8aa3dc1f
📥 Commits

Reviewing files that changed from the base of the PR and between 7b2e271 and 35a6a18.

📒 Files selected for processing (5)
  • .github/scripts/__tests__/keepalive-reporter-applicability.test.js
  • .github/scripts/keepalive_reporter_applicability.js
  • .github/sync-manifest.yml
  • docs/keepalive/GoalsAndPlumbing.md
  • templates/consumer-repo/.github/scripts/keepalive_reporter_applicability.js

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.


📝 Walkthrough

Walkthrough

Reporter replay now returns an empty result when an ordinary PR has no authority ledger. Other authority-ledger read failures still propagate. The tests, consumer-repository script, manifest, and documentation reflect this behavior.

Changes

Reporter replay

Layer / File(s) Summary
Missing-ledger replay
.github/scripts/keepalive_reporter_applicability.js, templates/consumer-repo/.github/scripts/keepalive_reporter_applicability.js, .github/scripts/__tests__/keepalive-reporter-applicability.test.js, docs/keepalive/GoalsAndPlumbing.md, .github/sync-manifest.yml
Both replay scripts allow a missing authority ledger and stop replay when the read returns null. Tests verify the empty result, the absence of a run lookup, and propagation of ledger-read errors. The documentation and manifest description reflect no-ledger-safe replay.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 35a6a

Replay safely skips when authority state is absent and preserves other read failures. No merge-blocking risk is identified in the supplied change.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: skipping reporter replay when the authority ledger is missing. The branch-name prefix adds noise but does not obscure the change.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

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.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +171 to +174
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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Confirm ordinary status before accepting a missing ledger

When the authority file or branch returns 404 for a PR that previously entered the challenge path—for example, after accidental deletion—this now reports a successful empty replay. The manual workflow_dispatch in .github/workflows/agents-keepalive-loop-reporter.yml accepts any positive PR number, and this function receives no ordinary/authority classification, so the comment's claim that the PR is ordinary is never verified. This silently abandons retryable reconciliation for a potentially outstanding receipt; only accept the 404 after independently establishing an ordinary PR, while authority candidates continue to fail closed.

Useful? React with 👍 / 👎.

@stranske stranske closed this Oct 3, 2026
@stranske
stranske deleted the codex/keepalive-replay-missing-ledger-20261001 branch October 3, 2026 17:43

This branch was successfully deployed

1 active deployment
agent-standard — 35a6a181 Deployed Oct 1, 2026 by stranske via privilege environment gate #14467
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant