Files
nisse/nisse-dev
dongarandClaude Opus 5 8cfb45aed3
CI / checks (push) Skipped
CI / checks (pull_request) Successful in 51s
Enforce the token cap, and treat a spent budget as an interruption
Exceeding a LiteLLM spend limit takes external models away for the
rest of the day, which makes three existing gaps consequential rather
than untidy.

- A13 calls the delegation caps hard on "turns, tokens, and wall
  clock", and the module docstring repeated it, but the token cap was
  decoration: nothing counted, and result.tokens was always zero. It
  is now metered from the usage the provider reports, so a confused
  delegate cannot spend a day's allowance. A5 keeps the *money* cap on
  the LiteLLM key, which is a different thing; this is a scope cap
- The normalized route sent no ceiling at all, so truncation detection
  there had nothing to detect against. Both routes now send one
- A budget refusal is recognised distinctly. It is not a rate limit:
  retrying cannot help, so the planner no longer burns a second call
  to fail identically

And a delegation cut off by an exhausted budget is now "interrupted"
rather than "failed", which preserves its branch and leaves its intent
pending. The work on that branch may be perfectly good; discarding it
because the budget ran out would throw away work for a reason that has
nothing to do with the work. A3's resume rule already knows how to
pick such a delegation back up.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 23:54:57 +00:00
..

nisse-dev

The Dev Agent: plans and implements software projects, produces Gitea PRs for human review, and reacts to review comments and commits. A thin application over the shared nisse-core library.

Part B of the specification at ../docs/Architecture-Build-Spec.md covers this agent; Part A covers the library it sits on.