claude-dev-env 8.114.10 → 8.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,4 +58,4 @@ Report only what a verifier passed. Name the verifier's verdict and the evidence
|
|
|
58
58
|
|
|
59
59
|
## Enforcement
|
|
60
60
|
|
|
61
|
-
`hooks/routing/spawn_oversight_hook.py` adds the six steps, the separate verifier, the reproduce-first check, the scope ask, and the reporting rule to the first passing spawn of each agent in the tree, and again after a compaction. A passing brief has an `Outcome:` line and an `On a blocker:` line; the hook denies a brief without them on every spawn, and the verifier brief template carries both. The flow itself adds context only. No hook refuses a report, a commit, or a spawn for a missing verifier run, so the flow never blocks work the user asked for.
|
|
61
|
+
`hooks/routing/spawn_oversight_hook.py` adds the six steps, the separate verifier, the reproduce-first check, the one-piece-per-level delivery where the brief allows commits, the scope ask, and the reporting rule to the first passing spawn of each agent in the tree, and again after a compaction. A passing brief has an `Outcome:` line and an `On a blocker:` line; the hook denies a brief without them on every spawn, and the verifier brief template carries both. The flow itself adds context only. No hook refuses a report, a commit, or a spawn for a missing verifier run, so the flow never blocks work the user asked for.
|
|
@@ -5,7 +5,7 @@ This family reminds the agent to gather context before a spawn, refuses a brief
|
|
|
5
5
|
## Checks
|
|
6
6
|
|
|
7
7
|
- `routing/spawn_readiness_hook.py` adds context to a spawn that comes before a read step, or before an answered question or a settled-scope line. The spawn still runs.
|
|
8
|
-
- `routing/spawn_oversight_hook.py` denies a spawn whose brief has no `Outcome:` line or no `On a blocker:` clause, each with text after it. The first passing spawn of a session, the first of each subagent, and the first after each compaction get the orchestrator oversight directive; the brief check runs on every spawn. The directive says: run each piece through the verified-work flow, with a fresh verifier agent that checks the research, the plan, and the fix, reproduces the issue before it confirms the fix, and leaves the worker's conclusion out of its brief; ask the user before new scope; report as done only what a verifier passed; and watch the agent while it runs. `routing/spawn_brief_text.py` reads the brief from each spawn tool for this hook and the readiness hook.
|
|
8
|
+
- `routing/spawn_oversight_hook.py` denies a spawn whose brief has no `Outcome:` line or no `On a blocker:` clause, each with text after it. The first passing spawn of a session, the first of each subagent, and the first after each compaction get the orchestrator oversight directive; the brief check runs on every spawn. The directive says: run each piece through the verified-work flow, with a fresh verifier agent that checks the research, the plan, and the fix, reproduces the issue before it confirms the fix, and leaves the worker's conclusion out of its brief; where the brief allows commits, commit each piece a verifier passed alone, as its own stack level, and otherwise hand it back uncommitted and say so; ask the user before new scope; report as done only what a verifier passed; and watch the agent while it runs. `routing/spawn_brief_text.py` reads the brief from each spawn tool for this hook and the readiness hook.
|
|
9
9
|
- `routing/thread_spawn_pace_hook.py` reshapes a thread request to Opus at medium when usage is over pace or unreadable. Under pace, a thread request that names a model gets the effort its model allows.
|
|
10
10
|
- `routing/subagent_effort_route_hook.py` sets an allowed effort on an Agent or Task spawn: Opus medium, Sonnet high, Fable low, medium or high, and Haiku any effort. A spawn with no effort or one outside its model's list gets Opus medium, Sonnet high, Fable high, or Haiku medium. `routing/subagent_effort_route.py` holds the rule for this hook and the pace hook.
|
|
11
11
|
- `routing/subagent_model_routing.mjs` allows a selected Luna model, remaps eligible requests, and denies unsupported model routing.
|
|
@@ -44,7 +44,11 @@ SPAWN_OVERSIGHT_DIRECTIVE = (
|
|
|
44
44
|
"confirms the fix on the new state. Spawn a fresh verifier agent for each "
|
|
45
45
|
"check, never the agent that did the work, and brief it with the issue and "
|
|
46
46
|
"the sources and leave the worker's conclusion out. A verifier's check ends "
|
|
47
|
-
"the chain and gets no verifier of its own.
|
|
47
|
+
"the chain and gets no verifier of its own. When a piece's verifier passes "
|
|
48
|
+
"and the brief allows commits, commit that piece alone as its own stack level "
|
|
49
|
+
"with a subject for that one behaviour: a piece that depends on it goes on "
|
|
50
|
+
"top, and an independent piece goes on its own branch from trunk. Otherwise "
|
|
51
|
+
"hand the piece back uncommitted and say so. Ask the user once before "
|
|
48
52
|
"you build new scope the user's words do not name, and keep in-scope work "
|
|
49
53
|
"moving while the question waits. Report as done only what a verifier "
|
|
50
54
|
"passed, with its evidence. While the agent runs, read its progress and wake "
|
|
@@ -361,3 +361,18 @@ def test_the_emitted_directive_reports_only_verified_results() -> None:
|
|
|
361
361
|
|
|
362
362
|
def test_the_emitted_directive_ends_the_chain_at_the_verifier() -> None:
|
|
363
363
|
assert "A verifier's check ends the chain and gets no verifier of its own" in _emitted_directive()
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
def test_the_emitted_directive_commits_each_passed_piece_as_its_own_stack_level() -> None:
|
|
367
|
+
directive = _emitted_directive()
|
|
368
|
+
assert "When a piece's verifier passes and the brief allows commits, commit that piece alone as its own stack level" in directive
|
|
369
|
+
assert "a piece that depends on it goes on top" in directive
|
|
370
|
+
assert "an independent piece goes on its own branch from trunk" in directive
|
|
371
|
+
assert "Otherwise hand the piece back uncommitted and say so." in directive
|
|
372
|
+
assert directive.index("confirms the fix on the new state") < directive.index("commit that piece alone")
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
def test_the_emitted_directive_stays_context_only_and_inside_its_budget() -> None:
|
|
376
|
+
directive = _emitted_directive()
|
|
377
|
+
assert len(directive) < 1500
|
|
378
|
+
assert "deny" not in directive.lower()
|