Skip to content

docs(plan): close the P0 alerting item, and correct its diagnosis - #126

Merged
mmcky merged 3 commits into
mainfrom
docs/plan-p0-closed
Aug 5, 2026
Merged

mmcky merged 3 commits into
mainfrom
docs/plan-p0-closed

Conversation

@mmcky

@mmcky mmcky commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

PLAN's P0 — broken safety net section is now empty: #122 fixed container-mode failure alerting. Leaving the item open overstates the repo's current risk to anyone reading the plan.

The diagnosis was wrong, and that's worth recording

A strikethrough alone would leave the next reader with the wrong model. The item said:

Neither container image installs the gh CLI, so create-failure-issue.sh exits 127 when the cache build runs inside a container — every failure goes un-alerted. Install gh in both images, or fall back to the REST API via curl … Add a container test asserting gh is on PATH.

Missing gh was real, but it was never reached. The step invoked its script through ${{ github.action_path }}, which expands to the runner's path; in a container: job the action is mounted at /__w/_actions/..., so bash got a nonexistent path and exited 127 before the script ran. And a third bug nobody had noticed broke alerting on hosted runners too: gh issue create --label validates labels client-side, and no consumer has build-failure or automated.

Each proposed remedy would have fixed exactly one of the three. Installing gh in both images — the option the wording steers toward — fixes neither the path nor the labels, and would have meant rebuilding and republishing two multi-GB images to observe no change at all. The suggested container test asserting gh is on PATH is now moot, since nothing shells out to gh.

P1 item 2 is closed the same way, with its own correction: the execution reports were not absent before, only undiscoverable — buried inside the full _build artifact, and genuinely absent only when upload-artifact was off.

This PR is also the gate's first live skip test

Deliberate. It touches only PLAN.md, which is on the gate's ignore list, so the run should skip all 14 action jobs while Action harness: all checks still reports green — the branch that makes the check safe to require, and the one shape not yet exercised on a real PR.

Under the old paths: filters this PR would have produced no workflow run at all, and a required check would have hung forever. That was demonstrated twice this week, on #119 and #121.

I checked the diff against the gate's IGNORED pattern before pushing, and PLAN.md matches. Worth confirming on the run itself: expect every changed path is on the ignore list from the gate, and ✅ no harness-relevant paths changed — all 14 jobs skipped from the summary.

Refs #83, #122, #116

🤖 Generated with Claude Code

#122 fixed container-mode failure alerting, so PLAN's P0 section — "broken
safety net" — is now empty. Leaving it as-is overstates the repo's risk.

Worth more than a strikethrough: the item's stated diagnosis was wrong. Missing
`gh` was real but never reached. The step invoked its script through
`${{ github.action_path }}`, which expands to the runner's path, and in a
container job the action is mounted at /__w/_actions/... — so bash got a
nonexistent path and exited 127 before the script ran. A third bug nobody had
noticed broke alerting on hosted runners too: `gh issue create --label`
validates labels client-side and no consumer has `build-failure` or
`automated`.

Each remedy the item proposed would have fixed only one of the three, and the
suggested container test asserting `gh` is on PATH is now moot. Recording that
so the next person reading a closed item does not inherit the wrong model.

P1 item 2 is closed the same way, with the correction that the execution
reports were not absent before — only undiscoverable, buried in the full
_build artifact.

Refs #83, #122

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings August 5, 2026 06:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates PLAN.md to close and correct the diagnosis of the former P0 “broken safety net” alerting item, reflecting the fixes delivered in #122 and documenting why earlier proposed remedies would have been incomplete.

Changes:

  • Marks the P0 container-mode cache-build failure alerting item as completed in #122 and records the corrected root-cause analysis.
  • Marks the P1 execution-report item as completed in #122 and clarifies what was previously “missing” vs merely hard to discover.

Comment thread PLAN.md Resolved
Comment thread PLAN.md Resolved
mmcky and others added 2 commits August 5, 2026 16:15
Copilot review. Closing the backlog row left two other places still asserting
the opposite, which is the exact failure mode this repo keeps hitting — a
document that contradicts itself one section apart.

"Current state" said container-mode alerting was broken and pointed at "the P0
item below", which the same PR had just marked empty. Replaced rather than
deleted: there IS still a gap in that area — a setup-environment failure alerts
nobody, because all-passed ends up unset rather than 'false' and every guard
skips (#123).

The #83 disposition row was wrong twice over. It claimed the script-not-found
127 was already fixed; it was not — that was the PRIMARY bug, and #122 fixed
it. And it listed the gh gap and missing reports as remaining, both of which
#122 closed. Corrected to record what the three bugs actually were, so a reader
does not inherit the old model.

"Last updated" bumped to August 2026. The "Backlog (July 2026 review)" heading
stays: it names when the review happened, which is accurate provenance rather
than staleness, and individual items carry their own closure notes.

Refs #83, #122, #123

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Found by sweeping the file rather than by review. Backlog item 14 proposes
hardening create-failure-issue.sh, but #122 deleted that script outright; every
concern it listed is structurally gone under actions/github-script. My own
corrected #83 row also pointed at item 14 as remaining work, which was wrong.

Also fixes a reference to "the P0 item above" that dangled once P0 emptied.

Refs #83, #122

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@mmcky
mmcky merged commit a7bb302 into main Aug 5, 2026
16 checks passed
@mmcky
mmcky deleted the docs/plan-p0-closed branch August 5, 2026 06:26
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.

2 participants