Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion captain_hook/grants/judge.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Judge:
rules: str
contexts: Sequence[PromptContext] = ()
model: TModel = "small"
specialty: TSpecialty = "general"
specialty: TSpecialty = "review"
deadline: float = 20
transcript: bool | int | Literal["recent", "full"] = False
root_transcript: bool | int | Literal["recent", "full"] = False
Expand Down
7 changes: 7 additions & 0 deletions tests/test_grants.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,3 +524,10 @@ def test_linking_keeps_a_concurrent_revocation(tmp_path: Path) -> None:
store.revoke(grant.id)
linked = store.link(grant.id, "cc-slack", "daemon-1")
assert linked.revoked is not None and linked.links == {"cc-slack": "daemon-1"}


def test_the_judge_runs_on_luna_at_low_effort() -> None:
from spawnllm import LlmBackends

judge = Judge("rules")
assert LlmBackends.for_specialty(judge.specialty).resolve_model(judge.model) == "gpt-6-luna:low"
Loading