LLM-kind @boundary pre_call via Chronicle on_enter - #39
Merged
Conversation
Bare @boundary(..., kind=\"llm\") under tokenops_run runs worst-case halt and output-cap MUTATE without wrap_complete. wrap_complete opts out of the double path. Bumps to 0.1.2; depends on chronicle on_enter (0.3.0 branch). Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Narrow max_output_tokens parsing so object→int is type-safe, and add a local mypy hook alongside ruff so commits catch CI lint failures. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
on_enter/on_leaveininstall_crossing_hooksokind=\"llm\"Chronicle boundaries rungovernor.pre_call(and ledger admit/complete) withoutwrap_complete.wrap_complete/wrap_streamset a context flag so they do not double-govern.on_enter/on_leave); pyproject pins that branch untilagent-chronicle0.3.0 is on PyPI — then switch to>=0.3.0.Test plan
pytest tests/test_llm_boundary_precall.py(halt + MUTATE max_output)agent-chronicle>=0.3.0Made with Cursor