Testing, Evaluation, and Quality Gates Development SOP
Prerequisites
Read the module overview, then confirm the business owner, inputs, outputs, failure conditions, and permission boundary.
Procedure
- Define business success first.
- Create happy, boundary, failure, denial, timeout, and cancellation scenarios.
- Use schemaVersion 1 for compatible text checks; use schemaVersion 2 when tools, files, diffs, and runtime-state evidence matter.
- Include an outcome grader in every schemaVersion 2 scenario, then add trajectory, command, file, diff, state, and response graders according to risk.
- Capture the dirty-worktree and protected-file baseline, and declare allowed plus forbidden paths before execution.
- Run
coremind checkandcoremind eval; repeat strict scenarios at least three times. - Keep deterministic offline and live-model results separate. Record model, provider, platform, repetitions, cost/tokens, and data-egress authorization for live runs.
- Use release readiness, security gates, final tests, and owner review—not fluent prose—to decide release.
- When comparing strategies, freeze the experiment id, version, seed, arm weights, and input-fingerprint rule. Use the same task, budget, provider, and graders for every arm.
- Use
runExperimentto retain environment, assignment hash, truthful outcome, metrics, complete trace, and graders; do not store only model prose. - Run the listed module tests and
npm run check:modules. - Preserve trace, grader, diff, and human-approval evidence; do not publish without explicit authorization.
Stop conditions
Stop for unconfirmed business rules, non-reversible side effects, access outside the workspace, unavailable real credentials, or failed security gates. Ask the owner instead of expanding scope.