Skip to content

chore: centralize supervisor hint bookkeeping - #191

Draft
hallerite wants to merge 1 commit into
mainfrom
chore/hint-bookkeeping
Draft

hallerite wants to merge 1 commit into
mainfrom
chore/hint-bookkeeping

Conversation

@hallerite

Copy link
Copy Markdown
Member

Hint delivery, muting, and lifetime counters were spread across the supervisor's invocation record and individual trigger handlers. Collect that bookkeeping in a small per-agent RuntimeHints object, with shared enqueue and drain operations.

The existing triggers still determine when and what to suggest. Hint text, public APIs, limits, and prompt instructions are unchanged. Muted Bash hints do not spend their budgets; hints muted after enqueue are discarded on delivery without refunding their budgets. Environment-prefix counts remain per variable, and the redundant already-hinted set is removed. Quote-error detection and its distinct per-prompt attempt limit stay in the engine.

Validation: all 301 tests pass with uv run pytest tests/. Focused coverage checks budget exhaustion, mute/unmute behavior, pending delivery, independent agent state, and environment-prefix thresholds. Ruff lint/format checks and git diff --check pass. No live-model evaluation was run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant