End the enrich cascade behind an agent's save with judge, so a changed CV or like text is judged again at once
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8da0f4512a
commit
1d0a4c37f2
2 files changed
+7
-4
No files matched your search
@@ -369,7 +369,7 @@ def test_nothing_filled_passes_over_the_prep_embed_and_score_behind_enrich() ->
|
||||
|
||||
out = cascade.step(None, None, empty, {"cascade": "enrich", "task": "enrich", "at": 0},
|
||||
context=context)
|
||||
assert out["next"] == "" and len(context.made) == 2
|
||||
assert out["next"] == "judge" and context.made[2].carries["at"] == 4
|
||||
|
||||
|
||||
class _Embedder:
|
||||
@@ -397,7 +397,7 @@ def test_the_enrich_job_reads_the_pages_then_embeds_and_scores_those_roles(
|
||||
jobs = sorted(queue.jobs.of_cascade(queue.jobs.last(enrich.KIND).cascade_id), # type: ignore[union-attr]
|
||||
key=lambda j: j.id)
|
||||
assert [j.result.get("task") for j in jobs if j.kind == FINAL] == \
|
||||
["enrich", "prep", "embed", "score"]
|
||||
["enrich", "prep", "embed", "score", "judge"]
|
||||
assert [j.kind for j in jobs if j.kind != FINAL] == \
|
||||
["enrich", enrich.KIND, "prep", "embed", "score"]
|
||||
assert web["asked"] == [f"{BASE}/acme/1"]
|
||||
|
||||
Reference in new issue
Block a user