
determinism
Use when verifying outcomes with code instead of LLM judgment, versioning prompts with hashes, or ensuring reproducible agent behavior. Load for any critical verification. Scripts return boolean exit codes, not subjective assessments. Prompts use semantic versioning with SHA256 validation.
作者 ingpoc|オープンソース
Determinism
Turn a repeated judgment into an executable contract.
Procedure
- Name the exact input, expected invariant, and authoritative readback.
- Use the simplest deterministic mechanism: parser, schema, fixture, checksum, query, or narrow test.
- Return a meaningful exit status:
0for satisfied, nonzero for a specific failure class. - Keep diagnostics compact and stable enough for another script or agent to consume.
- Version prompts or generated contracts when their semantics affect the result; record a hash when drift must be detected.
- Prove both a passing case and a deliberately failing case.
Boundary
determinismdesigns the assertion or integrity mechanism.verifyselects and runs the repository's declared gates.- testing skills construct broader behavioral test suites.
References
- references/code-verification.md — executable assertion patterns.
- references/prompt-versioning.md — semantic versions and hashes for prompt contracts.