Start here
Scenario Pack Guide
Defines when to use the pack, roles and authority, entry and exit criteria, the working sequence, deeper-record triggers, and reopening rules.
Preview
# AI-Assisted Code Change Scenario Pack Toolkit schema: `PAISEH-TK-1.0` Scenario pack: `PAISEH-SC-ACC-1.0` Use this pack when an engineer uses AI to inspect a repository, propose or make a bounded code change, and assemble evidence for human review. It is designed for day-to-day engineering work where the named engineer remains accountable for scope, correctness, verification, and disposition. This pack records work; it does not authorize repository access, approve a change, merge code, release software, or waive an owning team's controls. ## Smallest Credible Starting Set For bounded, reversible work with no protected data, external effect, or durable-state migration, complete: 1. `bounded-task-brief.md` 2. `allowed-context-manifest.md` 3. `change-plan.md` 4. `code-review-verification-checklist.md` 5. `completion-receipt.md` Attach a runbook when its entry condition is plausible. A runbook may be referenced rather than copied when the authoritative version is already available to the operator. ## Users, Owners, and Authority | Role | Responsibility | Authority boundary | | --- | --- | --- | | Requester | States the desired outcome and business constraint | May request work; cannot expand repository or release authority | | Task owner | Accepts the brief, bounds the work, and owns completion | May stop or narrow the task; may not waive repository controls | | Implementer | Uses AI and engineering tools within the accepted brief | May make only allowed changes in the authorized workspace | | Reviewer | Inspects the diff, evidence, assumptions, and findings | Produces findings or a recommendation unless separately delegated decision authority | | Verification owner | Confirms that checks are relevant, valid, and reproducible | Accepts verification evidence for the named scope | | Decision authority | Accepts, rejects, or returns the change under repository policy | Makes the recorded disposition; approval is not produced by this pack | | Release owner | Controls merge, deployment, exposure, and rollback when applicable | Acts only through the owning release process | One person may hold several roles when policy permits. Record the role assignment; do not infer authority from tool access or seniority. ## Required Inputs and Entry Criteria - A named requester, task owner, implementer, reviewer, verification owner, and decision authority. - A repository and baseline revision that the implementer is authorized to inspect and change. - A bounded outcome, explicit exclusions, consequence ceiling, and stop conditions. - An allowed-context manifest that distinguishes readable, editable, generated, and forbidden material. - Repository instructions, contribution rules, and required checks. - A clean separation between pre-existing changes and work created for this task. - A credible restoration point and a known escalation path. Do not start autonomous edits when the repository target, authority, sensitive-data handling, or ownership of existing changes is unresolved. ## Working Sequence | Stage | Required record | Result | | --- | --- | --- | | Bound | Bounded Task Brief | Accepted outcome, exclusions, authority, and acceptance evidence | | Admit context | Allowed-Context Manifest | Explicit read, edit, generation, and prohibition boundaries | | Plan | Change Plan | Reviewable file-level intent, risks, checks, and restoration path | | Execute | Repository-native change history and evidence references | Traceable edits within the accepted plan | | Inspect | Code-Review and Verification Checklist | Evidence-indexed findings; never automatic approval | | Decide | Repository decision record | Accept, reject, return, narrow, or escalate | | Close | Completion Receipt | Immutable account of actual change, evidence, disposition, and remaining work | ## Completed Walkthrough Use `examples/bounded-api-code-change.md` to inspect all five working records completed for a two-file, reversible API response change. It shows claim-mapped tests, evidence-indexed findings, an accepted release limitation, and a repository decision that grants no merge or deployment authority. ## Runbook Selector | Condition | Runbook | | --- | --- | | Generated code does not build, behaves incorrectly, or violates an invariant | `runbooks/generated-code-failure.md` | | Inspection or edits move beyond the accepted repository, paths, task, or consequence ceiling | `runbooks/scope-escape.md` | | Tests are irrelevant, weakened, flaky, misleading, or do not exercise the claimed behavior | `runbooks/invalid-tests.md` | | The change introduces an undeclared dependency, accesses a credential, or exposes secret-like material | `runbooks/unexpected-dependency-or-secret.md` | | The accepted change must be reversed after integration or release | `runbooks/rollback.md` | ## Exit and Acceptance Criteria The work may close only when: - the actual diff is within the accepted brief or an authorized revision of it; - every changed file is explained and attributable; - required checks ran against the recorded candidate and baseline; - verification evidence is relevant, reproducible, and indexed; - findings have an owner and disposition; - no secret, unapproved dependency, generated artifact, or unrelated user change is hidden in the diff; - the decision authority recorded the outcome through the repository's normal process; - rollback or restoration remains credible for the accepted consequence; and - the Completion Receipt names residual uncertainty and follow-up work. ## Deeper Record Triggers Add the applicable core toolkit modules when the change: - handles protected or personal data; - changes prompts, retrieval, model configuration, evaluation policy, or tool permissions; - calls an external tool or creates a durable effect; - modifies a schema, migration, authorization boundary, or other durable state; - crosses a trust boundary or consumes untrusted content; - changes runtime exposure, compatibility, or rollback behavior; - is hard to reverse; or - raises the affected population or consequence ceiling. Typical additions are the Decision Packet Manifest, AI Threat Model, Tool Permission Matrix, Evaluation Plan, AI Release Manifest, and Principal Design Review Checklist and Record. The source chapter for each module remains authoritative for its engineering method. ## Material Change and Reopening Triggers Reopen the brief and affected records when the requested behavior, target repository, baseline, editable paths, dependency set, data access, external effects, test strategy, release path, population, authority, or consequence ceiling changes. Also reopen when new evidence invalidates an acceptance claim, a check proves non-deterministic, a secret is suspected, or rollback is no longer credible.