Repository navigation
feat(pm-stack): C3 health hooks design and initial runner - #12077
Conversation
…ble/opencode-working (#9571)
|
Warning Review limit reachedYou'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 41 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c78931e828
ℹ️ 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".
|
Follow-up on the existing C3 health-hooks PR: commit Focused verification: This update does not claim full #9571 acceptance. Live caller integrations, end-to-end event-store/audit writes, real failure/recovery cycles, and cutover testing remain outstanding. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0cd2e0fd54
ℹ️ 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".
- bws lookups list secrets and fetch by id, as secrets.ts does. - A recovery posts with its outage's intake key so the intake closes it. - Session liveness reads session_v2 from the live OpenCode store. - Inactive oneshots whose last run succeeded are not counted as down. - A second --target is rejected, so a wrapper can't run the other hook. - The sentinel records a first up as a baseline instead of launching a hook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 34d1711a4a
ℹ️ 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".
…ecoveries The sentinel holds a target's next hook dispatch while that target's previous hook is still running, so a slow down diagnostic cannot land after its own recovery. A recovery records whether the intake took it; an undelivered recovery leaves the outage open, so the next hook run posts it again under the outage's key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1868966d1a
ℹ️ 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".
Two callers diagnosing the same outage now share its incident id and intake key, so one recovery closes the one alert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Scope and acceptance
This PR lands the design-first slice and initial runner/wiring. It does not claim full issue #9571 acceptance: live caller integrations, true end-to-end event-store/audit writes, category-chat routing, real failure/recovery cycles, and the 14-day cutover test remain follow-up work. See the design's implementation slices.
Verification
PASS test_argparse_requires_target
PASS test_argparse_rejects_bad_target
PASS test_targets_defined
PASS test_tcp_probe_shape
PASS test_http_probe_shape
PASS test_systemctl_state_shape
PASS test_git_recent_commits
PASS test_runner_runs_and_prints_json
PASS test_runner_pm_stack
Bundled 4 modules in 9ms
stack-sentinel.js 12.1 KB (entry point)
Safety
All diagnostic probes are read-only. The hook does not perform remediation.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.