Docs
complier turns an authored .cpl contract into a runtime graph that can govern what an agent is allowed to do next.
This docs workspace is grounded in the syntax that the current parser and compiler actually support:
- guarantees
- workflows
- tool steps with named params
@llmand@humansteps@call,@use, and@inline@branch,@loop, and@unordered@forkand@join
Start here:
What A Contract Does
At a high level:
- authored
.cplsource is parsed - the source becomes an AST
- the AST is compiled into a runtime workflow graph
- a session uses that graph to decide whether tool calls can proceed
Minimal Example
cplguarantee safe [no_harmful_content]:halt workflow "research" @always safe | @human "What topic?" | search_web query="agent compliance" | summarize style="brief"
That example uses a reusable guarantee, a named workflow, a human step, and two tool calls.