Skip to content

C3 Slice D validation record: real hook failure/recovery cycles, C6/C8 shape verification, cutover state (#9571) - #12600

Merged
dezren39 merged 1 commit into
mainfrom
felix/9571-slice-d-record
Nov 22, 2026
Merged

dezren39 merged 1 commit into
mainfrom
felix/9571-slice-d-record

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

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-minder duties. 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:

  • pm-stack-reachable: nothing listening → down (critical); intake up but /board 503 → down again with the same incidentId (open-outage reuse); /board 200 → up with recoveryOf lineage and recoveryDelivered: true; steady state → transient, no record. All throat POSTs captured.
  • opencode-working: nothing on the production port 13420 (verified free) → down (warning); throwaway /global/health 200 server → up with lineage; steady state → transient, no record.
  • Probes ran for real (BWS resolution resolved, session store read, git recents). Runner suite: pytest test_run.py → 22 passed.

Shape verdict (C6/C8)

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


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…very cycles, C6/C8 shape verification, cutover state (#9571)
@dezren39
dezren39 requested a review from a team as a code owner November 22, 2026 14:59
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

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 10 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: 707a5caf-36da-45f7-8f6e-ea8079696584
Commits

Reviewing files that changed from the base of the PR and between 242aae8 and 9886ee4.

Files selected for processing: 14

  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation.md
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/drill/capture_server.py
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/drill/run_drill.sh
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/evidence/captures.jsonl
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/evidence/log.txt
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/evidence/oc-incidents.jsonl
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/evidence/oc1.json
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/evidence/oc2.json
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/evidence/oc3.json
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/evidence/pm-incidents.jsonl
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/evidence/pm1.json
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/evidence/pm2.json
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/evidence/pm3.json
  • doc/2026-11-22T14-55-23Z_c3-health-hooks_slice-d-validation/evidence/pm4.json
  • 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 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-22T15:02:14.140057Z 9886ee4 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.

@dezren39
dezren39 merged commit 8f47a87 into main Nov 22, 2026
2 checks passed
@dezren39
dezren39 deleted the felix/9571-slice-d-record branch November 22, 2026 15:00

@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: 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".

Comment on lines +19 to +21
mkdir -p "$D"
: > "$D/log.txt"
: > "$D/captures.jsonl"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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=$!

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 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 👍 / 👎.

Comment on lines +153 to +154
these two targets. Retirement remains a separate gated PR with Drew
approval after the 14 days pass, per the design.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C3 — Health hooks: failure-triggered checks that troubleshoot and report

1 participant