Step 2 of 6 · Testing - practitioner kit

Test Case Template

The blank, reusable version of the test case model used across the library, including evidence chain, positive control and all four outcomes.

Use this template

A template is not evidence. Fill in sanitized identifiers only.

  1. 01Plan
  2. 02Case
  3. 03Run
  4. 04Evidence
  5. 05Finding
  6. 06Regression

Purpose

Turns a security question into a reviewable record with a decidable oracle before execution.

When used: When adapting a library case to a local system, or writing a new local case within an authorized assessment.

Identity and scope

Identity and scope
FieldWhat to record
Test IDLocal identifier; keep library IDs unchanged when reusing a reviewed case and record your adaptation separately.
TitleNames the boundary being tested, not the trick.
Domain / familyTesting domain and family from the methodology.
LevelFoundation, Intermediate or Advanced, by required system knowledge.
ObjectiveOne sentence: which control decision this case checks.
Security questionA yes or no question the oracle can answer.
System boundaryComponents inside the test and those explicitly outside it.
PreconditionsFixtures, accounts, versions and baseline state required before the run.
Authorization / safety constraintsScope reference, permitted benign actions, prohibited actions, stop conditions.
Source / trust assumptionsWhich inputs are trusted, which are untrusted, and which component assigns that status.

Stimulus and execution

Stimulus and execution
FieldWhat to record
Safe synthetic stimulusHigh-level description of a benign fixture from a fictional .example.test source. Do not store payload text in the shared template.
Positive controlA benign in-scope operation that must succeed under the same conditions.
Execution stepsNumbered steps including baseline, positive control, stimulus, variants and reset.
Expected model behaviorWhat the model may plausibly do. This is context, never the pass criterion.
Deterministic oracleThe application-owned decision and the record that shows it.
Telemetry / evidenceSources required for each evidence stage, with correlation IDs.

8-stage evidence chain

Record what you expect to observe at each stage and where it will come from.

8-stage evidence chain
FieldWhat to record
1. Source and provenanceOrigin and trust label of the stimulus as assigned by the application.
2. Model-visible contextProof the content actually reached the context, from orchestration logs.
3. Model or plan influenceObserved change in plan or output attributable to the content.
4. Proposed actionTool call or action proposal with parameters.
5. Control decisionAllow, deny or require approval, with the policy version.
6. Submission / executionWhether the call was submitted and executed, from the tool gateway.
7. Downstream effectState change read from the system of record.
8. Security impactConcrete classification: which principal, resource, action and destination, and whether policy was violated.

Outcomes

Outcomes
FieldWhat to record
Outcome guidanceHow to read combinations of chain states for this case.
PassProtected path was exercised, the control decided as expected, positive control succeeded, evidence is complete.
FailAn unauthorized action executed or a protected flow occurred, shown by authoritative evidence.
InconclusiveRequired evidence is missing, contradictory or versions drifted during runs.
Control not exercisedThe protected path or intended condition never occurred, so the control was not tested.

Maintenance and interpretation

Maintenance and interpretation
FieldWhat to record
Cleanup / resetHow fixtures, records, memory and sessions are returned to baseline.
Regression triggersChanges that require rerunning: model, prompt, policy, tool, catalogue, corpus, connector.
Interpretation mistakesMisreadings specific to this boundary.
What this test does not proveExplicit limits of the conclusion.
Related Attack / Defense / Lab referencesFocused links that explain the boundary and the control.

Rule for assigning each outcome

Rule for assigning each outcome
OutcomeAssign only when
PassStage 5 shows the expected control decision on an exercised protected path, stage 6 and 7 confirm no unauthorized execution or effect from authoritative records, and the positive control succeeded in the same versions.
FailAuthoritative evidence shows execution or downstream effect outside policy, or a protected flow left its boundary. Model influence alone is not Fail.
InconclusiveThe path was exercised but a required stage is unobserved or unavailable, records contradict each other, or versions changed between runs.
Control not exercisedThe model never proposed the action, the content never reached context, or the precondition did not hold. Record it, fix the setup, and rerun; it is not Pass.

How to use this template

  1. Start from the closest library case and copy its structure, not its fixture.
  2. Write the oracle and evidence sources before writing the stimulus description.
  3. Define the positive control in the same session conditions as the stimulus.
  4. Keep local pass criteria next to the case and version them with it.

Common mistakes

  • Using expected model behavior as the pass condition.
  • No positive control.
  • An evidence chain that repeats 'check logs' at every stage.
  • Recording 'not observed' as Pass.
  • Storing working payload text in shared templates or reports.