Computes and stores a content hash covering the codebook, prompt template,
provider, model, generation parameters, no_change, embedding flag,
replicate count, and parser source and captured values. validate_protocol()
on the sealed split and code_corpus() require a locked protocol and compare
its current content with the stored hash. Hashes use LLMR::llm_hash().
Arguments
- x
A
protocol().
Examples
cb <- codebook("tone", "one sentence",
list(cb_category("positive", "Approving."),
cb_category("negative", "Critical.")))
p <- protocol(cb, LLMR::llm_config("groq", "openai/gpt-oss-20b"))
protocol_lock(p)