Generation Algorithm
Design principle
The generator starts from a behavioral archetype and a structured scenario blueprint. It does not begin from a prompt template or a programming language.
Pipeline
- Select an underrepresented behavioral family.
- Select a narrow archetype within that family.
- Assign a group-aware dataset split at the archetype level.
- Construct a compatible environment:
- domain;
- architecture;
- programming stack;
- component interaction;
- operational modifier;
- constraints.
- Produce evidence from the intended causal mechanism.
- Build repository context and relevant files.
- Produce the user request.
- Produce ideal agent behavior:
- assessment;
- assumptions;
- plan;
- tool trace;
- observations;
- decision;
- implementation strategy;
- verification;
- stopping criteria;
- final communication.
- Produce contrasting bad behavior.
- Validate against JSON Schema and consistency rules.
- Compute exact, normalized, structural, and lexical deduplication reports.
- Export JSONL files and audit artifacts.
Structural uniqueness key
Each record fingerprint includes:
- family
- archetype
- domain
- architecture
- stack
- interacting component pair
- operational modifier
This prevents records from being treated as unique merely because a project name or language changed.
Split policy
All 25 scenarios for one archetype remain in the same split. This reduces direct archetype leakage. The test set therefore measures transfer to held-out behavioral archetypes rather than random rows.