Skip to content

perf: Stop reading stale Paper heartbeat slots - #744

Merged
Pigbibi merged 1 commit into
mainfrom
perf/paper-watchdog-heartbeat-reads
Nov 14, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
perf/paper-watchdog-heartbeat-reads

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

AI assistance

OpenAI Codex.

What changed

Check collector heartbeat slots newest first. Stop reading once a heartbeat's timestamp is inside the existing freshness window. Keep the four-slot fallback, alert cadence and deduplication behavior.

How verified

94 focused Paper observation tests passed, including recent, exact-boundary and stale heartbeats. Ruff, documentation check, diff checks and staged Gitleaks passed.

Why

A healthy collector usually writes the newest slot, so the watchdog can avoid three redundant object reads.

Risk

The watchdog is a monitoring component. The change preserves all schedule and resource configuration, uses the same heartbeat schema and does not alter broker calls or collector writes.

Co-Authored-By: Codex <noreply@openai.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T15:25:10.257746Z e400975 PR opened
🔒 Security Review ✅ Completed 2026-11-14T15:26:35.882811Z e400975 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.

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 14, 2026
@Pigbibi
Pigbibi merged commit 6ba33af into main Nov 14, 2026
13 of 14 checks passed
@Pigbibi
Pigbibi deleted the perf/paper-watchdog-heartbeat-reads branch November 14, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant