Start here
Scenario Pack Guide
Defines roles, evidence and action boundaries, the minimum pack, source-pack handoffs, exit criteria, and reopening rules.
Preview
# CI and Test Failure Triage Scenario Pack Toolkit schema: `PAISEH-TK-1.0` Scenario pack: `PAISEH-SC-CITFT-1.0` Use this pack when AI helps interpret build or test failures, rank diagnoses, recommend a bounded next step, or initiate a separately authorized rerun. It keeps observed evidence, diagnosis, remediation, execution, and repository decisions distinct. This pack does not replace the AI-Assisted Code Change pack for source changes, the Tool-Using Workflow or Agent pack for effecting actions, or source-chapter methods for harness, evaluation, tool authority, release, and operations. ## When to Use This Pack Use it for one identified candidate and CI or test execution whose logs and artifacts can be preserved. Do not use it to let a model waive required checks, classify a failure as flaky without evidence, make an unreviewed code change, or restart work under inferred authority. ## Roles and Authority | Role | Responsibility | Authority retained | | --- | --- | --- | | Requester | Identifies the failed candidate and desired triage outcome | May request diagnosis; cannot waive repository policy | | Triage owner | Owns scope, evidence, hypotheses, and handoff | Accepts the triage record, not the code or release | | CI owner | Owns pipeline semantics, runners, and rerun controls | Authorizes infrastructure action and failure classification | | Test owner | Owns test intent, validity, fixtures, and quarantine policy | Decides whether a test or result is valid | | Remediation owner | Owns an accepted correction path | Must use the code-change pack for source edits | | Verifier | Inspects evidence and attempted remediation | Produces evidence-indexed findings | | Decision authority | Controls merge, release, waiver, quarantine, or retry decisions | Records the final disposition | ## Minimum Viable Pack For advisory triage, complete: 1. Common Artifact Header. 2. Failure Triage Brief. 3. CI Evidence Snapshot Manifest. 4. Triage Verification Checklist. 5. Triage Completion Receipt. Use the Harness Control-Loop Diagram when retries, fallbacks, or multiple states matter. Add the Tool Permission Matrix and Tool-Using Workflow pack before any rerun, cancellation, job restart, quarantine, or artifact mutation. Use the AI-Assisted Code Change pack for a proposed source change. Use the Evaluation Plan when a check's validity or regression claim must be established. ## Entry Criteria - Candidate revision, pipeline definition, run, job, test, and environment identities are known. - Logs, reports, exit status, timing, dependencies, and relevant artifacts are retrievable. - Repository and CI policies identify required checks and decision authorities. - The task states whether output is diagnosis only, a remediation proposal, or a request for separately authorized action. - Sensitive logs and artifacts have an access and redaction path. ## Working Sequence 1. Bound the failed candidate, run, and permitted outcome. 2. Freeze the evidence snapshot before reruns or mutable logs change. 3. Separate observations from hypotheses and rank disconfirming checks. 4. Run the checklist against evidence validity, reproduction, diagnosis, and action boundaries. 5. Hand source changes to the AI-Assisted Code Change pack and tool effects to the Tool-Using Workflow pack. 6. Preserve the final result, uncertainty, and decision in the completion receipt. ## Exit and Acceptance Criteria - Every diagnosis points to evidence and names competing hypotheses. - Candidate, pipeline, environment, dependency, and test identities are reproducible. - Missing, truncated, sampled, flaky, skipped, retried, or quarantined evidence remains visible. - No rerun result overwrites the first failure or silently converts an unknown cause into success. - Any code change, waiver, quarantine, restart, or release decision has separate authority and receipt. - The completion receipt records what was learned, what remains unknown, and the exact handoff. ## Failure Paths - Use `runbooks/incomplete-or-misleading-ci-evidence.md` when logs, reports, test semantics, or environment identity cannot support the diagnosis. - Use `runbooks/flaky-or-nonreproducible-failure.md` when outcomes vary and recurrence has not been explained. ## Material Change and Reopening Triggers Reopen triage when the candidate revision, pipeline definition, runner image, dependency lock, environment, test, fixture, seed, shard, clock, retry policy, quarantine state, evidence snapshot, diagnosis, remediation, or decision use changes. A passing rerun does not close the original failure unless the recorded authority accepts the causal explanation and evidence.