Skip to content
Skills Library
Programming · Review & audit

test-data-selection-discipline

/test-data-selection-discipline

Choose test records that are synthetic, identifiable as yours and isolated from real users, so the proof never depends on, exposes or disturbs somebody else's data. Use when the proof needs existing rows, files, orders or records to operate on

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

Choose test records that are synthetic, identifiable as yours and isolated from real users, so the proof never depends on, exposes or disturbs somebody else's data. Use when the proof needs existing rows, files, orders or records to operate on

Original author description

Choose test records that are synthetic, identifiable as yours and isolated from real users, so the proof never depends on, exposes or disturbs somebody else's data. Use when the proof needs existing rows, files, orders or records to operate on

How it works

  1. Procedure
  2. Signals
  3. Patterns
  4. Pitfalls
  5. Done when
  6. References
Original SKILL.md headings · 63 lines, 376 words
SKILL.md preview
---
name: test-data-selection-discipline
description: "Choose test records that are synthetic, identifiable as yours and isolated from real users, so the proof never depends on, exposes or disturbs somebody else's data. Use when the proof needs existing rows, files, orders or records to operate on"
pack: payloadlab
version: 1.0.0
category: defensive-security
tags: [test-data, safety, setup]
---

# Test Data Selection Discipline

> Choose test records that are synthetic, identifiable as yours and isolated from real users, so the proof never depends on, exposes or disturbs somebody else's data

**Use when:** the proof needs existing rows, files, orders or records to operate on

**Avoid when:** the proof runs entirely against objects your own test accounts just created

## Procedure

1. Prefer records your test identities created in this session, since ownership and content are both known.
2. Where seeded data is required, confirm its provenance and that no real person's information is present.
3. Tag every record you select with a marker so later review can distinguish test data from live data.
4. Never select a record at random from production without knowing exactly whose it is and what it contains.
5. Record which records the proof touched, so cleanup and disclosure questions can be answered precisely.
6. Re-verify selection at execution time, because record sets shift between planning and running.

## Signals

- The fastest path is to pick any row from production, which guarantees someone's real data is involved.
- Selected records were created by someone else and their content is unknown to you.
- No marker distinguishes your test records from live ones during cleanup or evidence review.
- Record identifiers changed since planning, so the selection list is silently stale.

## Patterns

**1. Selection row**

```text
record=order-4471 owner=test-a source=self-created marker=lab-01 contains-pii=no status=approved
```

**2. Provenance note**

```text
seed=fixture-import rows=50 provenance=synthetic last-verified=2026-10-27 contains-pii=no
```

**3. Touch log**

```text
touched=[order-4471,order-4472] created-by=test-a cleanup=restore-or-delete-after-run owner=you
```

## Pitfalls

- Sampling a production row because it was convenient, then reading real user data you had no reason to touch.
- Assuming seeded data is synthetic without checking its provenance.
- Selecting records without markers, so cleanup cannot tell test rows from live rows.
- Never logging what was touched, which makes both cleanup and disclosure answers guesses.

## Done when

- Every record used is self-created or verified synthetic, with provenance recorded.
- Each selected record carries a marker distinguishing it from live data.
- A touch log lists exactly what the proof operated on, ready for cleanup.

## References

- [OWASP - testing guidance for test data handling](https://owasp.org/www-project-web-security-testing-guide/)
- [CWE - weakness catalog](https://cwe.mitre.org/)

Versions

The database has no other skills named test-data-selection-discipline.

Database snapshot: 13.11.2026 · package version 725b106dde19 (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

  • 90test-synthetic-dataset
    Design and generate synthetic or scrambled test data: a seeded generator script plus a design.tsv that states the intended outcome of every edge case, deliberate defects, size limits, and where generators and data live (data in a separate repo, code with the workflow). Use when…
  • 100test-fixtures-and-factories
    Use when tests need realistic data — users, orders, records, files — and the ticket or the existing suite calls for fixtures, factories, builders, seed data, temp directories or test databases that stay readable and isolated. Invoke for "add a factory for X", "the tests share…
  • 100test-identity-provisioning
    Create the accounts, roles and owned data your proof needs in advance, with each identity's purpose recorded, so the test never borrows a stranger's account or a colleague's data. Use when the proof requires two or more roles, tenants or accounts to demonstrate a boundary crossing
  • 100test-data
    Generate realistic test data — users, products, orders as CSV/JSON/SQL files, including edge-case values (unicode, boundaries, injection strings). Use when the user needs test data, dummy data, or data files for testing.
  • 90seed-scenarios
    Generate deterministic, idempotent seed data that puts users and records into every state of a complex workflow (bookings, orders, subscriptions, approvals) for QA and local testing. Use when the user wants seed data, test fixtures, fake users in specific states, or coverage of…

Feedback and reports

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