Repository navigation
C3 Slice D validation record: real hook failure/recovery cycles, C6/C8 shape verification, cutover state (#9571) - #12600
Conversation
…very cycles, C6/C8 shape verification, cutover state (#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 10 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: 9886ee4f0a
ℹ️ 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".
| mkdir -p "$D" | ||
| : > "$D/log.txt" | ||
| : > "$D/captures.jsonl" |
There was a problem hiding this comment.
Reject unsupported arguments before running the drill
The driver never validates its command line, so invoking it with --dry-run, --help, or a typo proceeds to truncate existing evidence and execute real health hooks instead of returning a usage error. Declare the zero-argument interface and reject unexpected arguments before any subprocess or filesystem action, as required by the repository's operator-script contract.
AGENTS.md reference: AGENTS.md:L44-L47
Useful? React with 👍 / 👎.
| fire pm-stack-reachable.sh "$D/pm-incidents.jsonl" pm1.json "$(ts)" | ||
| sleep 1 | ||
| echo 503 > "$D/board_status" | ||
| python3 "$D/capture_server.py" aggregator 14870 "$D" & AGG_PID=$! |
There was a problem hiding this comment.
Resolve the capture server from the committed harness directory
On a fresh checkout, this launches /tmp/c3-drill/capture_server.py, but the script only creates that directory and never copies the server there; repository-wide search finds the server beside this driver under drill/. Consequently both stand-ins fail to start, preventing the documented recovery cycles, while the driver continues to print DRILL DONE. Resolve the server relative to the driver rather than relying on an unrecorded temporary-file setup.
Useful? React with 👍 / 👎.
| these two targets. Retirement remains a separate gated PR with Drew | ||
| approval after the 14 days pass, per the design. |
There was a problem hiding this comment.
Remove the owner-approval gate from the retirement criteria
This current-state validation record makes future watchdog retirement contingent on Drew's approval, reintroducing an owner-dependent release condition that the repository explicitly prohibits. Although the older design contains that gate, the subsequently accepted FDR-0013 rejects owner-approval waits. Retain the fourteen-day evidence requirement and separate retirement PR, but remove the owner-approval dependency so follow-up workers do not block on it.
AGENTS.md reference: AGENTS.md:L100-L102
Useful? React with 👍 / 👎.
Refs #9571 (Slice D, queue task 20918). Docs-only: a validation record plus its drill harness and raw evidence. Does not close #9571 and does not touch PR #12226.
Problem
Slice D of C3 (#9571) owed three things Slices A–C deferred: real failure + recovery cycles for each health hook, verification that incident records land in the shape C6/C8 consume, and the 14-consecutive-day cutover test before retiring overlapping
fleet-watchdog/fleet-minderduties. Prior claims of this task parked repeatedly because Slice C (PR #12226) is unmerged. This slice does everything that does not depend on that merge, and states precisely what still does.What was run
Real end-to-end cycles through the shipped runner on main (
9794191ad), in a sandbox against disposable stand-ins — no production service touched:down(critical); intake up but/board503 →downagain with the same incidentId (open-outage reuse);/board200 →upwithrecoveryOflineage andrecoveryDelivered: true; steady state →transient, no record. All throat POSTs captured.down(warning); throwaway/global/health200 server →upwith lineage; steady state →transient, no record.resolved, session store read, git recents). Runner suite:pytest test_run.py→ 22 passed.Shape verdict (C6/C8)
AuditEventmapping in PR C3 health hooks: wire opencode-working into lane launchers and aggregator ticks (#9571) #12226: conforms to the design's append section — its tests were run against the realEventsStorein a scratch worktree (3 pass).stackHealthmember in the stored record, recovery title wording,authHealthvocabulary) filed with it.Cutover state
Not started — day 0 of 14 has not begun. Production checks (laptop, read-only): sentinel and services active, but no hook has ever fired in production (no incident JSONL on the laptop; zero
health-hook-incidentevents). The record defines day 0 (PR #12226 merged + laptop running it + hooks firing from production callers) and confirms nothing is retired: watchdog/minder keep all duties.What remains on #9571
Merge #12226 → production failure/recovery cycle per hook in the production events stream → #12599 decision → start the 14-day clock. All recorded in the doc and on the issue.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.