Skip to content
Skills Library
Programming · Testing

precondition-enumeration

/precondition-enumeration

List every state, role, flag and prior action your proof depends on, so reproduction works on the first attempt and triage never has to guess what setup the test assumed. Use when the proof requires a specific starting state to trigger

Repository
payloadlab ↗
Licence
MIT
Last repository change
28.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

List every state, role, flag and prior action your proof depends on, so reproduction works on the first attempt and triage never has to guess what setup the test assumed. Use when the proof requires a specific starting state to trigger

Original author description

List every state, role, flag and prior action your proof depends on, so reproduction works on the first attempt and triage never has to guess what setup the test assumed. Use when the proof requires a specific starting state to trigger

How it works

  1. Procedure
  2. Signals
  3. Patterns
  4. Pitfalls
  5. Done when
  6. References
Original SKILL.md headings · 63 lines, 353 words
SKILL.md preview
---
name: precondition-enumeration
description: "List every state, role, flag and prior action your proof depends on, so reproduction works on the first attempt and triage never has to guess what setup the test assumed. Use when the proof requires a specific starting state to trigger"
pack: payloadlab
version: 1.0.0
category: defensive-security
tags: [setup, hypothesis, reproduction]
---

# Precondition Enumeration

> List every state, role, flag and prior action your proof depends on, so reproduction works on the first attempt and triage never has to guess what setup the test assumed

**Use when:** the proof requires a specific starting state to trigger

**Avoid when:** the behavior occurs on a default install with no setup beyond an account

## Procedure

1. List every precondition: role, plan tier, feature flag, prior action, data rows and account age.
2. Order them so the chain executes top to bottom without improvisation or hidden knowledge.
3. Mark each as default, product-obtainable or requiring privileged access to establish.
4. State time dependence: how long setup takes and how long the precondition remains true.
5. Follow the chain literally from a clean environment and fix every ambiguity you hit.
6. Attach the ordered chain to the record, separate from the trigger steps themselves.

## Signals

- The proof assumes two roles in different tenants without stating how that state was created.
- A feature flag must be enabled and the method of enabling it was never recorded.
- The trigger requires accumulated data, so anyone reproducing today cannot match your conditions.
- Triage's first reply is a request for the missing setup, which this chain would have supplied.

## Patterns

**1. Chain line**

```text
1=create-tenant-a 2=create-tenant-b 3=b-creates-order 4=flag-on 5=a-attempts-read expect=denied
```

**2. Flag note**

```text
flag=new-flow default=off how-enabled=admin-console persists=until-redeploy note=state-this
```

**3. Time dep**

```text
precondition=account-age>30d implication=cannot-repro-today mitigation=seed-or-wait note=declare-it
```

## Pitfalls

- Describing setup as narrative prose, forcing the reader to re-derive the order.
- Assuming a precondition is default when your own earlier testing enabled it.
- Omitting time-dependent state, which makes the proof appear non-reproducible to everyone else.
- Mixing prerequisites into trigger steps so neither section can be followed alone.

## Done when

- Preconditions are listed in executable order with their source classified.
- Time dependence and persistence are stated for each.
- The chain has been followed literally from a clean state with ambiguities fixed.

## References

- [OWASP - testing guidance for test cases](https://owasp.org/www-project-web-security-testing-guide/)
- [ISO 29147 - vulnerability disclosure](https://www.iso.org/standard/72311.html)

Versions

The database has no other skills named precondition-enumeration.

Database snapshot: 13.11.2026 · package version 64b24750fd48 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100prerequisite-chain-documentation
    Document every precondition a defect depends on, in order, so triage can rebuild your exact starting position instead of guessing at what state the test assumed. Use when a defect only fires after a specific sequence of setup, roles, flags or data exists
  • 100reproduction-planning
    Plan the exact reproduction before touching the system: what precondition, what request or input, and what observation counts as success. Use when a report claims a behavior you have not yet seen and you need an honest attempt to see it or fail to see it
  • 100session-state-hygiene-during-tests
    Control cookies, tokens and cached state during the proof so the identity you think you are testing is the identity actually being tested, run after run. Use when the proof depends on a specific role, account or session boundary
  • 90reproduction-first
    Build a reliable, minimal reproduction before you write a fix so you can prove the bug is actually gone. Use when a report is vague, intermittent, or "works on my machine" and you need solid ground under the debugging.
  • 90test-and-verify
    Test and verify one behavior through a tight evidence loop: baseline, failing proof when useful, minimal edit, and final proof. Use for tests, verification, TDD, regression-proofing, smoke checks, readiness validation, or prove-change.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.