GeezerVison is showing github.com — feat(scheduled-history): Gap 3 watchdog over OpenChamber run history (#2174) by dezren39 · Pull Request #11158 · developing-today/code
Conversation
dezren39
commented
Nov 17, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Gap 3 of #2174: watchdog coverage over the Gap 1 run history.
What landed (pm-stack/scheduled-history/)
watchdog.py — watchdog.py check reads the collect.py store (~/.local/state/openchamber-scheduled-history/history.json) and flags, per scheduled task:
missing_run — no run scheduled within the task's expected cadence window;
stale — newest run older than the stale threshold (default 2× the window, --stale-multiplier) with nothing in flight;
failed_latest — most recent terminal outcome is an error class (error/failed/failure/timeout/timed_out).
- Expected-window source, stated in every alert's evidence: a declared per-task window from
--windows (JSON: task id → seconds) when present, otherwise the observed schedule — the minimum interval between consecutive scheduled_for instants in the task's own history (window_source: observed-schedule). A task whose history is younger than one window is in its first window and cannot alert for missing/stale; disabled tasks are skipped; an in-flight (non-terminal) latest run suppresses missing/stale.
- Alert path: one JSON document (
scheduled-history-watchdog/v1) on stdout — task, condition, and evidence timestamps per alert — with exit 1 when any alert fires and 0 when healthy. That document is the input the fleet-watchdog cron consumes; the script sends nothing itself and changes no schedule.
test_watchdog.py — 13 checks in test_collect.py's plain-script style: healthy, missing, stale, failed-latest, first-window grace, declared-window override (both directions), disabled skip, in-flight suppression. All pass; test_collect.py still 19/19.
- README gains a Gap 3 section, including the known limit: a task whose observed history mixes a burst of test runs with its real cadence derives a too-tight window — declare its window instead.
Live smoke against the real store at build time: 37 tasks checked, 29 alerts (mostly stale — the collector's store had not ticked for ~6h at that moment, which is exactly the silence this check exists to surface).
Per-gap status after this PR: Gap 1 closed (openchamber PR #2082 + code PR #8437); Gap 2 (token accounting) is #2072-owned; Gap 3 is this PR; Gaps 4 (server residency), 5 (shared-state locality), and 6 (identity binding) have no packets yet.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
watchdog.py check consumes the Gap 1 collect.py store and flags missing_run, stale, and failed_latest per scheduled task, with the expected-window source (declared --windows override or observed schedule) stated in each alert. JSON on stdout + exit 1 on alerts is the alert path for the fleet-watchdog cron. test_watchdog.py: 13 checks; test_collect.py still 19/19.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 45 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
52cc5ea2-9dea-431f-9ac6-a61758469227
Commits
-
Reviewing files that changed from the base of the PR and between 5f21c24 and b76f809.
Files selected for processing: 3
-
pm-stack/scheduled-history/README.md
pm-stack/scheduled-history/test_watchdog.py
pm-stack/scheduled-history/watchdog.py
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ❌ Failed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
❌ Failed 2026-11-17T08:18:23.448744Z We couldn’t complete this review. Comment @codex review to try again. |
b76f809 |
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 24, 2026
This was referenced Nov 26, 2026
dezren39
added a commit
that referenced
this pull request
Nov 26, 2026
…s 2/4
Criteria 1-2 of #15339 verified 2026-11-26: all three Muse jobs
recorded disabled and absent from this seat's live scheduler (primary
seat unreachable, #15131); gap 1 closed (PR #8437), gap 3 closed
(PR #11158), gap 2 OPEN (#2072), gap 4 OPEN/unverified. Verdict: the
port stays gated until gaps 1-4 close. Registry rows re-reviewed in
the same pass; check_gating_record.py guards the record against
drift.
This was referenced Nov 26, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|