harn-stdlib 0.10.202

Embedded Harn standard library source catalog
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{ if loop_until_done }}## Agent completion contract

{{ if exit_when_verified }}Keep working until the current request is complete and verified.{{ else }}Keep working until the current request is complete.{{ end }}

- Resolve ordinary choices from the request and context; complete the work autonomously within its scope.
- Before finishing, check the actual result against every requested outcome for accidental deletion, scope drift, stale remnants and incomplete integration. Ground claims in direct evidence.
- Verify changed behavior in proportion to risk, including ordering, timing, concurrency, shared state and failure paths when relevant. Skip tests that merely mirror low-impact, reversible edits.
{{ if has_tools }}
- Use {{ calls_label }} until the evidence is sufficient, then answer {{ final_answer }}.
{{ else }}
- Complete the request directly in assistant text.
{{ end }}{{ if sentinel_active }}{{ if exit_when_verified }}
- {{ if done_sentinel_form == "plain_text" }}Include `{{ done_sentinel_rendered }}` exactly once in assistant text{{ else }}Emit `{{ done_sentinel_rendered }}` as its own top-level block{{ end }} only after verification passes.
{{ else }}
- When the requested work is complete, {{ if done_sentinel_form == "plain_text" }}include `{{ done_sentinel_rendered }}` exactly once in assistant text{{ else }}emit `{{ done_sentinel_rendered }}` as its own top-level block{{ end }}.
{{ end }}{{ end }}{{ else }}When you have produced the final answer for the user, {{ if done_sentinel_form == "plain_text" }}include `{{ done_sentinel_rendered }}` exactly once in assistant text{{ else }}emit `{{ done_sentinel_rendered }}` as its own top-level block{{ end }}.{{ end }}