ci-temporary-bypass
Skill2 starsChanged 3 months agoMITView on GitHub
Use this skill when a required CI check is failing on a pull request for reasons that appear entirely unrelated to that pull request's own diff -- e.g. every open PR shows the same failure simultaneously. Verifies the failure is provably caused by external repository state (not the PR's own defect) through two independent adversarial checks, then temporarily relaxes exactly that one required check via a public, expiry-labeled, auditable incident, and restores it immediately afterward with a second independent verification. Never use it to work around a check that is failing because of the current PR's own content.
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- site/llms.txtllms.txt
- adrSkill
- autopilot-async-monitoringSkill
- changelog-automationSkill
- ci-temporary-bypassSkill
- codebase-designSkill
- create-architectural-decision-recordSkill
- create-specificationSkill
- documentation-writerSkill
- gha-watch-ci-prSkill
- grill-with-docsSkill
- hardenSkill
- i-have-an-issueSkill
- improve-codebase-architectureSkill
- issue-implementSkill
- issue-selectSkill
- issue-to-planSkill
- next-milestoneSkill
- process-error-postmortemSkill
- pycc-feedbackSkill
- pyccSkill
- python-design-patternsSkill
- python-performance-optimizationSkill
- python-testing-patternsSkill
- review-findingsSkill
- rust-async-patternsSkill
- sessionsSkill
- tddSkill
- testing-strategySkill
- todoSkill
- ultra-reviewSkill
- adrSkill
- autopilot-async-monitoringSkill
- changelog-automationSkill
- codebase-designSkill
- create-architectural-decision-recordSkill
- create-specificationSkill
- documentation-writerSkill
- gha-watch-ci-prSkill
- grill-with-docsSkill
- hardenSkill
- i-have-an-issueSkill
- improve-codebase-architectureSkill
- issue-implementSkill
- issue-selectSkill
- issue-to-planSkill
- next-milestoneSkill
- process-error-postmortemSkill
- pycc-feedbackSkill
- pyccSkill
- python-design-patternsSkill
- python-performance-optimizationSkill
- python-testing-patternsSkill
- review-findingsSkill
- rust-async-patternsSkill
- sessionsSkill
- tddSkill
- testing-strategySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 64
Never eligible, regardless of the above: ci-gate itself or any check reflecting the PR's own build/test/coverage result.
- Distinctive: line 111
If the claim holds, stop, report through the normal path (exactly as this repository did for issue #243/PR #278 before this skill existed).
- Distinctive: line 151
If no tracking incident can be found for a drifted branch protection state (this skill's own Stop conditions below, or AGENTS.md's D-021 …
- Distinctive: line 213
Every stop condition above ends with restoring protection (if it was ever relaxed) and reporting -- never with leaving protection relaxed …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ci-temporary-bypass (Alpha)
Temporarily relax exactly one required CI check that is provably stuck due
to external repository state, then restore it -- publicly, narrowly, and
verifiably. This supersedes D-024's "not delegated to routine tasks" and
D-054's "grants no reusable permission" for this one mechanism only, per a
decision recorded in docs/decisions/D-125-session-driven-temporary-ci-check-relaxation.md; every other principle in those
decisions (public incident, minimal scope, an expiry-labeled auditable
incident rather than a hard time bound, immediately restored, fully
auditable) still applies without exception.
Full design and rationale:
docs/superpowers/specs/2026-08-02-ci-temporary-bypass-mechanism-design.md.
The manual "Emergency path" in docs/REPOSITORY_GOVERNANCE.md still exists
separately for anything this skill does not cover (administrator-only,
broader-scope relaxations).
This skill may be invoked by an attended session on the owner's explicit
instruction, or unattended by the standing autopilot loop
(issue-select/issue-implement) when it independently encounters a
qualifying stuck check -- both are authorized, per the repository owner's
explicit 2026-08-02 decision recorded in the design doc.
Scope boundary -- read before invoking anything
A required check qualifies only when all three hold, verified fresh, never assumed:
- Its exact failure text matches an already-documented failure class
in
docs/decisions/README.mdordocs/AGENT_RETROSPECTIVE.md. A failure class seen for the first time can never go through this skill -- understand and document it in a separate session first, then this skill can be used for a later recurrence. - The same failure reproduces fresh (not a stale cached CI result --
see
docs/sessions/'s 2026-08-02 entries for why apull_request_targetcheck's last recorded result can be stale after the base branch moves) on another open pull request that has nothing to do with the one motivating this relaxation, and the reproduction genuinely isolates external state from the motivating PR's own content -- this is not satisfied by finding a second failing PR whose error text superficially matches. Actively construct and refute the alternative hypothesis "this candidate's own diff explains the failure" -- do not merely fail to think of it. Concrete near-miss this must reject: a PR that edits.github/workflows/ci.ymlwithout first registering the resulting digest incheck_roadmap_evidence.rb'sREVIEWED_PERF_CI_WORKFLOW_SHA256Sallowlist fails withdoes not match a reviewed active-or-staged performance CI workflow-- error text that pattern-matches an already-documented class, purely because that PR's own content introduces bytes the base checker does not yet recognize -- a correct, single-PR-fixable defect (D-080's own staging step), not external state, even though the text looks identical to a genuine cross-PR deadlock. Check whether the specific file(s) implicated in the failure are ones the motivating PR itself modifies; if so, the failure's cause cannot be external to that PR by construction, and this condition fails regardless of what a second PR shows. - The causal mechanism is read directly in the checker's own source (e.g.
scripts/check_ci_permissions.rb), not inferred from the error text.
Never eligible, regardless of the above: ci-gate itself or any check
reflecting the PR's own build/test/coverage result; any check whose failure
cannot be traced to an unambiguous cause in the checker's source; any check
that fails only on the motivating PR and not on the independent comparison
PR (that is evidence of a real, PR-specific defect); any check whose
failure implicates a file the motivating PR itself modifies, even when a
second PR also currently fails the same check (two independently broken
PRs are not evidence of one shared external cause -- each must be
diagnosed on its own); any check when a [ci-bypass]-prefixed incident
issue is already open.
Even once the named check is relaxed, that does not mean the pull request is safe to merge. Before merging, independently re-check the PR's overall mergeability -- other blockers (an unresolved human or bot review thread, being behind the base branch, a different failing check) are not addressed by relaxing one named check, and merging through one of those anyway is exactly the failure this skill's own incident-issue discipline exists to prevent. If anything else blocks the merge, stop, restore immediately (this skill's own Step 4, below), and report -- do not treat the relaxed check as a green light for the whole PR.
Workflow
1. Gate 1 -- pre-relax, adversarial
Dispatch a fresh, isolated Agent() -- never advisor(), which shares this
session's own transcript and could inherit its framing. Give it only raw
evidence: the exact failure text, the checker's source file path, the
motivating PR's own number and changed-file list, and the other PR number
to reproduce against. Its explicit brief: try to prove the claim false. It
must re-run the reproduction itself (not trust this session's report),
read the checker code itself (not trust this session's explanation), and
explicitly check whether the failure's implicated file(s) are ones the
motivating PR itself modifies -- if so, verdict REFUTED regardless of
what the other PR shows, per the Scope Boundary section's own worked
near-miss. If it cannot be dispatched, or returns anything other than an
unambiguous CONFIRMED verdict on all three scope-boundary conditions,
treat that as REFUTED -- fail closed, do not proceed.
On REFUTED: before accepting the verdict, independently verify any factual claim about external state that drove the REFUTED decision (issue status, file existence, command output). Re-run the specific command the subagent cited and compare. If the subagent's claim does not hold, discard the REFUTED verdict and re-evaluate the scope-boundary conditions yourself inline. A fail-closed design that trusts fabricated evidence blocks legitimate work as effectively as a real failure.
If the claim holds, stop, report through the normal path (exactly as this repository did for issue #243/PR #278 before this skill existed). Do not retry Gate 1 for the same claim.
2. Relax
On CONFIRMED, write Gate 1's full verdict text to a file, then:
python3 scripts/manage_ci_bypass.py relax \
--check <check-name> --reason "<short reason>" \
--evidence <path-to-gate-1-verdict> --pr <motivating-pr-number> \
[--expiry-minutes N]--expiry-minutes defaults to 60. State its own chosen value explicitly if
overridden -- the incident issue always shows the effective expiry either
way. This step refuses (exit 1, CiBypassError) if the named check is not
currently failing on the given PR, or if a [ci-bypass] incident is
already open -- both are stop conditions, not retryable in-place.
3. Do the triggering work
Proceed with whatever the relaxation was for (typically: merge the motivating PR). Before merging, re-verify overall mergeability per the Scope Boundary section's closing paragraph above -- stop and restore immediately if anything else blocks it.
4. Restore
Immediately after the triggering work completes (successfully or not):
python3 scripts/manage_ci_bypass.py restore --incident <issue-number>This reads the snapshot back from the incident issue (authoritative),
PATCHes protection back to it, reads back the result, and raises
CiBypassError on any mismatch rather than silently closing the incident.
If no tracking incident can be found for a drifted branch protection state (this skill's own Stop conditions below, or AGENTS.md's D-021 preflight escalation path, for exactly this case), use the baseline escalation path instead of guessing an incident number:
python3 scripts/manage_ci_bypass.py restore --to-baselineThis creates its own [ci-bypass]-prefixed forced-restore issue (so the
action stays public and auditable even with nothing to restore from),
PATCHes protection directly to the documented baseline, and raises
CiBypassError on any readback mismatch exactly like restore --incident
does. --incident and --to-baseline are mutually exclusive.
--to-baseline can only repair drift in required_status_checks
(strict/contexts) -- the same narrow scope this whole mechanism is
authorized to mutate; drift in any of the other five protection fields
(enforce_admins, required_pull_request_reviews,
required_conversation_resolution, allow_force_pushes,
allow_deletions) requires manual administrator action via GitHub's branch
protection settings, and the incident it creates in that case is
deliberately not restorable via restore --incident -- close it by hand
once the out-of-scope field(s) are fixed.
5. Gate 2 -- post-restore verification
Dispatch a second fresh, isolated Agent(). Give it the pre-relax snapshot
and the post-restore readback (both already in restore's own output and
the incident issue's closing comment). Its brief: compare them field by
field and flag any drift beyond the one check that was deliberately
relaxed and restored -- not just the required-checks list, every other
protection field too (enforce_admins, required_pull_request_reviews,
required_conversation_resolution, allow_force_pushes, allow_deletions).
MATCH: done, incident issue is already closed by restore.
DRIFT, or Gate 2 cannot be dispatched: treat as a release-blocking
governance incident -- do not let this pass silently. Reopen the incident
issue with the drift details and escalate; this is not a condition this
skill resolves on its own.
Stop conditions
- Gate 1 returns REFUTED, or cannot be dispatched.
relaxraisesCiBypassErrorfor any reason.- Anything other than the named check blocks the actual merge after
relaxsucceeds (unresolved review thread, behind base, another failing check) -- restore immediately, do not merge anyway. restoreraisesCiBypassError(including DRIFT).- Gate 2 returns DRIFT, or cannot be dispatched.
relaxfails after creating the incident issue but before thePATCHsucceeds (e.g. the network call in between drops, or the TOCTOU re-check finds a different incident that appeared concurrently and aborts on purpose). Protection was never actually mutated in this case -- the mechanism correctly refused to stack or half-apply a relaxation -- but the stray incident issue leaves the mechanism wedged (a[ci-bypass]issue is now open, so a freshrelaxwill refuse to stack) until it is cleaned up. The safe remedy ispython3 scripts/manage_ci_bypass.py restore --incident <that-issue-number>: it is safe to run even though no relaxation actually took effect, because itPATCHes back to the snapshot embedded in that same issue (the unchanged, pre-relax protection) and closes it.
Every stop condition above ends with restoring protection (if it was ever relaxed) and reporting -- never with leaving protection relaxed and moving on to something else.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

