From d954fb002628f891e0b1269c51a457bd3b638bcf Mon Sep 17 00:00:00 2001 From: Lilleman Date: Thu, 19 Nov 2026 22:24:24 +0100 Subject: [PATCH 1/7] =?UTF-8?q?Answer=20security=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20keep=20a=20?= =?UTF-8?q?judge's=20evidence=20quote=20from=20running=20across=20the=20ta?= =?UTF-8?q?sk=20and=20the=20tail,=20and=20name=20the=20task=20in=20the=20s?= =?UTF-8?q?chema=20and=20the=20rejection=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/agent_cycle/judge.py | 8 +++++--- bin/agent_cycle/test_judge.py | 1 + bin/agent_cycle/test_run.py | 2 +- bin/loop_claude/loop/test_usage.py | 4 ++-- bin/loop_claude/loop/usage.py | 4 ++-- bin/loop_claude/test_black_box.py | 4 ++-- 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/bin/agent_cycle/judge.py b/bin/agent_cycle/judge.py index c1edb597..2243075a 100644 --- a/bin/agent_cycle/judge.py +++ b/bin/agent_cycle/judge.py @@ -74,6 +74,8 @@ def judge_rules(answer_destinations: str, driver: str) -> str: # Open the task and the transcript in the prompt; the premises and the records come before the task, the rules after the transcript. # judge_replay.archived_prompt splits each archived prompt on them, so rewording one makes every run archived before it replay as failed. TASK_HEADING = "The task the worker was given:\n" +# Between the task and the tail that quotes_checked searches, so that no quote runs across the join: plain() keeps it, and a quote has none. +PASSAGE_BREAK = "\x00" def transcript_heading(driver: str) -> str: @@ -85,7 +87,7 @@ class Reply: answer: str = dataclasses.field(metadata={"description": "With interrupt false, the passage of the premises or the records that answers the worker's question, quoted verbatim, without elisions. Empty otherwise."}) # Routes the worker one rung up, as the judge interrupts or quotes an answer, or on the next cycle: agent_cycle/escalation_mark.py. escalation: str = dataclasses.field(metadata={"description": "Empty unless the chunk is unfinished, interrupt is true or answer quotes a passage, and the worker's run ends {asks_higher_rung}, citing an escalation trigger. Then: a verbatim quote, without elisions, of the transcript passage where the trigger fired, such as a review round's commit title or the worker's report of the finding or failing test. {quote_after_step} Never a later mention of the trigger, and never the request itself."}) - evidence: str = dataclasses.field(metadata={"description": "A verbatim quote of the one transcript passage the verdict rests on, without elisions: what triggers the interrupt; for a quoted answer, the worker's question; else what shows the chunk finished or the work remaining."}) + evidence: str = dataclasses.field(metadata={"description": "A verbatim quote of the one passage of the task or the transcript the verdict rests on, without elisions: what triggers the interrupt; for a quoted answer, the worker's question; else what shows the chunk finished or the work remaining."}) finished: bool = dataclasses.field(metadata={"description": "Whether the chunk is finished."}) interrupt: bool = dataclasses.field(metadata={"description": "Whether the human must now be interrupted."}) answered_before: str = dataclasses.field(metadata={"description": "With interrupt true, a [human] line from earlier in the chunk that answered the question the worker asks now, quoted verbatim, without elisions. Empty otherwise."}) @@ -248,7 +250,7 @@ def quotes_checked(verdict: Verdict, grounds: Grounds) -> Verdict | Failure: Only a misquoted evidence fails. A Failure for any other would exit an unattended loop, so each changes the verdict instead. """ - if not grounded(verdict.evidence, f"{grounds.task}\n\n{grounds.shown}"): + if not grounded(verdict.evidence, f"{grounds.task}{PASSAGE_BREAK}{grounds.shown}"): return misquoted_evidence(verdict) verdict = re_ask_checked(verdict, grounds.shown) verdict = answer_checked(verdict, grounds.quotable) @@ -271,7 +273,7 @@ def grounded(evidence: str, rendered_transcript: str) -> bool: def misquoted_evidence(verdict: Verdict) -> Failure: asked = f", for the question: {verdict.question}" if isinstance(verdict, Interrupt | QuotedAnswer) else "" - return Failure(f"the judge quoted {verdict.evidence!r}, which is not in the transcript{asked}") + return Failure(f"the judge quoted {verdict.evidence!r}, which is not in the task or the transcript{asked}") def re_ask_checked(verdict: Verdict, shown: str) -> Verdict: diff --git a/bin/agent_cycle/test_judge.py b/bin/agent_cycle/test_judge.py index 780feece..cd132525 100644 --- a/bin/agent_cycle/test_judge.py +++ b/bin/agent_cycle/test_judge.py @@ -131,6 +131,7 @@ class Verdict(unittest.TestCase): self.assertEqual(judged_on("Do the next chunk."), Unfinished("Do the next chunk.", entries_read=2)) self.assertEqual(judged_on("Do the next chunk. ... Merged."), Unfinished("Do the next chunk. ... Merged.", entries_read=2)) self.assertIsInstance(judged_on("Do the next release."), Failure) + self.assertIsInstance(judged_on("next chunk. xxx"), Failure) class JudgePrompt(unittest.TestCase): diff --git a/bin/agent_cycle/test_run.py b/bin/agent_cycle/test_run.py index 99f2320a..e8be0e83 100644 --- a/bin/agent_cycle/test_run.py +++ b/bin/agent_cycle/test_run.py @@ -188,7 +188,7 @@ Worker: {OFF_LADDER} self.assertEqual(self.archived_outcomes(), [ "Task: Do it.\n\n" f"{stamp} Judge reply rejected: the judge's reply has no answer of type string\n\nReply:\n> {unfilled.stdout}\n\nJudge: judge-model\n\n" - f"{stamp} Judge reply rejected: the judge quoted 'never said', which is not in the transcript\n\nReply:\n> {misquoted.stdout}\n\nJudge: judge-model\n\n" + f"{stamp} Judge reply rejected: the judge quoted 'never said', which is not in the task or the transcript\n\nReply:\n> {misquoted.stdout}\n\nJudge: judge-model\n\n" f"{stamp} Verdict: finished\n\nEvidence:\n> working\n\nConfig: {CONFIG}\nJudge: judge-model\nWorker: {OFF_LADDER}\n"]) def test_archives_each_judge_runs_prompt_and_reply_beside_the_rejection_interrupt_and_verdict_it_gave(self): diff --git a/bin/loop_claude/loop/test_usage.py b/bin/loop_claude/loop/test_usage.py index af996f1d..1bb4148c 100644 --- a/bin/loop_claude/loop/test_usage.py +++ b/bin/loop_claude/loop/test_usage.py @@ -99,8 +99,8 @@ class JudgeFailures(unittest.TestCase): ("verdict_from", "'the judge interrupted without a question'", unasked), ("verdict_from", "'the judge quoted an answer without a question'", unasked), ("run_judge", "verdict.reason", field), - ("run_judge", "checked.reason", "quotes a passage the transcript does not hold"), - ("misquoted_evidence", "f'the judge quoted {verdict.evidence!r}, which is not in the transcript", "quotes a passage the transcript does not hold"), + ("run_judge", "checked.reason", "quotes a passage that neither the task nor the transcript holds"), + ("misquoted_evidence", "f'the judge quoted {verdict.evidence!r}, which is not in the task or the transcript", "quotes a passage that neither the task nor the transcript holds"), ("claude_reply", "f'could not start claude:", started), ("claude_reply", "proc.stderr.strip() or f'{who} exited", exited), ("claude_reply", 'f"{who} printed no json reply', unparsed), diff --git a/bin/loop_claude/loop/usage.py b/bin/loop_claude/loop/usage.py index 0b73d47f..2dd26fb9 100644 --- a/bin/loop_claude/loop/usage.py +++ b/bin/loop_claude/loop/usage.py @@ -183,8 +183,8 @@ Exit 1, saying why, when: - the worker or the judge fails three times running, retried a minute apart within the cycle. A worker fails when claude cannot start, exits non-zero, is killed, or ends without a result event; a judge when claude cannot start, exits non-zero or prints no json reply, or its reply misses or - mistypes a field, interrupts or quotes an answer without a question, or quotes a passage the - transcript does not hold; it holds an elided passage when each fragment appears in order. + mistypes a field, interrupts or quotes an answer without a question, or quotes a passage that + neither the task nor the transcript holds; it holds an elided passage when each fragment appears in order. A usage limit is not a failure, and restarts the count of three: the worker or the judge is retried 2 minutes after the limit resets, or every 10 minutes when the reset time is unknown or more than 2 minutes past. The judge's reply gives its reset time only as text, so the judge is diff --git a/bin/loop_claude/test_black_box.py b/bin/loop_claude/test_black_box.py index 020098ed..7b0d0ab8 100644 --- a/bin/loop_claude/test_black_box.py +++ b/bin/loop_claude/test_black_box.py @@ -726,8 +726,8 @@ class Cycles(unittest.TestCase): self.assertEqual(run.code, 130) self.assertEqual(run.roles(), ["worker", "judge", "judge", "judge", "worker", "judge"]) self.assertEqual(run.sleeps, [60, 60]) - self.assertIn("the judge quoted 'never said', which is not in the transcript, for the question: A or B?", run.stderr) - self.assertIn("retrying the judge in a minute: the judge quoted '', which is not in the transcript\n", run.stderr) + self.assertIn("the judge quoted 'never said', which is not in the task or the transcript, for the question: A or B?", run.stderr) + self.assertIn("retrying the judge in a minute: the judge quoted '', which is not in the task or the transcript\n", run.stderr) def test_retries_a_judge_claude_cannot_start(self): checkout = Checkout(self) -- 2.52.0 From 1845d8ff3788ebe14a5d0b526960235379360192 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Thu, 19 Nov 2026 22:36:14 +0100 Subject: [PATCH 2/7] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=204=20=F0=9F=9F=A1=20(0=20misread);=20say=20that?= =?UTF-8?q?=20the=20task=20and=20the=20transcript=20are=20searched,=20and?= =?UTF-8?q?=20where=20a=20quote=20may=20not=20run=20across=20them?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/agent_cycle/judge.py | 10 +++++----- bin/agent_cycle/test_judge.py | 2 +- bin/judge_replay/archived_prompt.py | 2 +- bin/loop_claude/loop/usage.py | 3 ++- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/bin/agent_cycle/judge.py b/bin/agent_cycle/judge.py index 2243075a..a80eae93 100644 --- a/bin/agent_cycle/judge.py +++ b/bin/agent_cycle/judge.py @@ -74,7 +74,7 @@ def judge_rules(answer_destinations: str, driver: str) -> str: # Open the task and the transcript in the prompt; the premises and the records come before the task, the rules after the transcript. # judge_replay.archived_prompt splits each archived prompt on them, so rewording one makes every run archived before it replay as failed. TASK_HEADING = "The task the worker was given:\n" -# Between the task and the tail that quotes_checked searches, so that no quote runs across the join: plain() keeps it, and a quote has none. +# Between the task and the tail that quotes_checked searches, so that no fragment of a quote runs across the join. plain() keeps it, and the judge's quotes hold no NUL. PASSAGE_BREAK = "\x00" @@ -257,13 +257,13 @@ def quotes_checked(verdict: Verdict, grounds: Grounds) -> Verdict | Failure: return escalation_mark.checked(verdict, after=grounds.after_mark, shown=grounds.shown) -def grounded(evidence: str, rendered_transcript: str) -> bool: - """Whether the transcript holds the evidence word for word, once emphasis marks are stripped and whitespace is reflowed in both. The judge joins passages with an ellipsis though told to quote one, so each fragment between ellipses must come after the one before it.""" - transcript = plain(rendered_transcript) +def grounded(evidence: str, searched: str) -> bool: + """Whether the searched text holds the evidence word for word, once emphasis marks are stripped and whitespace is reflowed in both. The judge joins passages with an ellipsis though told to quote one, so each fragment between ellipses must come after the one before it.""" + searched = plain(searched) fragments = [fragment.strip() for fragment in re.split(r"\.\.\.|…", plain(evidence)) if fragment.strip()] after = 0 for fragment in fragments: - at = transcript.find(fragment, after) + at = searched.find(fragment, after) if at < 0: return False after = at + len(fragment) diff --git a/bin/agent_cycle/test_judge.py b/bin/agent_cycle/test_judge.py index cd132525..2239d010 100644 --- a/bin/agent_cycle/test_judge.py +++ b/bin/agent_cycle/test_judge.py @@ -124,7 +124,7 @@ class Verdict(unittest.TestCase): verdict = judge.judge_once("/r", judge.Brief("Do it.", "## Goals", "", "the project's decisions", "the plan or a comment", kinds(*entries), 1, "loop-claude"), Rung("judge-model"), FakeEffects(claude=[judged("unfinished", evidence="round 2: 🔴")]).effects()) self.assertEqual(verdict, Unfinished("round 2: 🔴", entries_read=2)) - def test_takes_the_task_as_evidence_where_the_tail_it_shows_cuts_off_the_workers_first_prompt(self): + def test_takes_the_task_as_evidence_where_the_tail_it_shows_cuts_off_the_workers_first_prompt_but_no_quote_across_the_join(self): entries = [human("Do the next chunk. " + "x" * judge.JUDGE_PROMPT_CHARS), assistant({"type": "text", "text": "Merged."})] def judged_on(evidence): return judge.judge_once("/r", judge.Brief("Do the next chunk.", "## Goals", "", "the project's decisions", "the plan or a comment", kinds(*entries), 0, "loop-claude"), Rung("judge-model"), FakeEffects(claude=[judged("unfinished", evidence=evidence)] * 3).effects()) diff --git a/bin/judge_replay/archived_prompt.py b/bin/judge_replay/archived_prompt.py index b6d40a3b..af1fccf4 100644 --- a/bin/judge_replay/archived_prompt.py +++ b/bin/judge_replay/archived_prompt.py @@ -9,7 +9,7 @@ from agent_cycle.worker_prompts import typed_answer def grounds_of(prompt: str, entries: list[Entry]) -> Grounds | Failure: - """What the quotes of a judge run on prompt are checked against, as judge_prompt would have made it for the transcript's entries: the premises and the records before the task are quotable, the transcript the judge was shown comes before the rules. The prompt is split on the headings judge_prompt writes, at the first of each; a Failure where it lacks one. Rules of an earlier wording stay part of the transcript, a slack that lets an evidence quote them pass.""" + """What the quotes of a judge run on prompt are checked against, as judge_prompt would have made it for the transcript's entries: the premises and the records before the task are quotable, the task is quotable as the evidence, and the transcript the judge was shown comes before the rules. The prompt is split on the headings judge_prompt writes, at the first of each; a Failure where it lacks one. Rules of an earlier wording stay part of the transcript, a slack that lets an evidence quote them pass.""" before_task, task_heading, after_task = prompt.partition(f"\n\n{TASK_HEADING}") heading = transcript_heading(LOOP_CLAUDE) task, found_heading, shown = after_task.partition(heading) diff --git a/bin/loop_claude/loop/usage.py b/bin/loop_claude/loop/usage.py index 2dd26fb9..46e4d7ec 100644 --- a/bin/loop_claude/loop/usage.py +++ b/bin/loop_claude/loop/usage.py @@ -184,7 +184,8 @@ Exit 1, saying why, when: worker fails when claude cannot start, exits non-zero, is killed, or ends without a result event; a judge when claude cannot start, exits non-zero or prints no json reply, or its reply misses or mistypes a field, interrupts or quotes an answer without a question, or quotes a passage that - neither the task nor the transcript holds; it holds an elided passage when each fragment appears in order. + neither the task nor the transcript holds, where each fragment of an elided quote must appear in + order, in the task then the transcript. A usage limit is not a failure, and restarts the count of three: the worker or the judge is retried 2 minutes after the limit resets, or every 10 minutes when the reset time is unknown or more than 2 minutes past. The judge's reply gives its reset time only as text, so the judge is -- 2.52.0 From 29b1be3fd740969be1faa1d3697e88b34228a52e Mon Sep 17 00:00:00 2001 From: Lilleman Date: Thu, 19 Nov 2026 23:25:38 +0100 Subject: [PATCH 3/7] Test how grounds_of splits an archived prompt, to kill the mutants that survived on its changed lines --- bin/judge_replay/test_judge_replay.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/judge_replay/test_judge_replay.py b/bin/judge_replay/test_judge_replay.py index 90a26fc4..fd037710 100644 --- a/bin/judge_replay/test_judge_replay.py +++ b/bin/judge_replay/test_judge_replay.py @@ -403,6 +403,14 @@ class JudgeArchivedRuns(unittest.TestCase): self.assertIsInstance(self.judged(evidence="Do it.")[0], Unfinished) self.assertIsInstance(self.judged(evidence="Do it. ... Use Postgres.")[0], Unfinished) + def test_splits_the_prompt_into_the_premises_the_task_and_the_transcript_at_the_first_heading_of_each(self): + heading = transcript_heading(LOOP_CLAUDE) + again = self.PROMPT.replace("Worker chose option B.", f"Worker chose option B. {heading}Again.", 1) + for prompt in (self.PROMPT, again): + grounds = grounds_of(prompt, self.ENTRIES) + self.assertEqual((grounds.quotable, grounds.task), ("HEAD: Ship fast.", "Do it.")) + self.assertEqual(grounds_of(self.PROMPT, self.ENTRIES).shown, "Worker chose option B.\n[human] Use Postgres.") + def test_keeps_the_cost_and_the_run_of_a_rejected_reply(self): rejected, _ = self.judged(evidence="Never said.") self.assertEqual((rejected.cost, rejected.run.prompt), (0.25, self.PROMPT)) -- 2.52.0 From 3cce40437ef392f76c44aaf612077af5b934f466 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Thu, 19 Nov 2026 23:39:54 +0100 Subject: [PATCH 4/7] Let prepare-scoring read claude-config's scoring-run values from seat-prompts.md where docs/decisions.md holds none --- bin/larv_review/scoring_setup.py | 9 +++++---- bin/larv_review/test_scoring_setup.py | 11 +++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/bin/larv_review/scoring_setup.py b/bin/larv_review/scoring_setup.py index 806ef509..2e7b77ab 100644 --- a/bin/larv_review/scoring_setup.py +++ b/bin/larv_review/scoring_setup.py @@ -137,17 +137,18 @@ def prepare_scoring(worktree: str, home: pathlib.Path, run: Git = git) -> str | config = located(worktree, home, run) if isinstance(config, Failure): return config - # Where AGENTS.md is missing, this repo keeps the values in seat-prompts.md: .claude/rules/this-repo-keeps-no-agents-md.md. source = config.paths["working-rules"] - if not source.is_file() and (own := pathlib.Path(worktree) / "skills" / "comprehension-panel" / "seat-prompts.md").is_file(): - source = own rules = read(source) if source.is_file() else "" if isinstance(rules, Failure): return rules + values = project_values(rules, source.name) + # Where the working rules hold no values, as with AGENTS.md missing or this repo's decisions.md head, this repo keeps them in seat-prompts.md: .claude/rules/this-repo-keeps-no-agents-md.md. + if isinstance(values, Failure) and (own := pathlib.Path(worktree) / "skills" / "comprehension-panel" / "seat-prompts.md").is_file(): + own_text = read(own) + values = own_text if isinstance(own_text, Failure) else project_values(own_text, own.name) skill = read(PANEL / "SKILL.md") if isinstance(skill, Failure): return skill - values = project_values(rules, source.name) if isinstance(values, Failure): return values parts = prompt_parts() diff --git a/bin/larv_review/test_scoring_setup.py b/bin/larv_review/test_scoring_setup.py index 4e3eebc9..34561f3f 100644 --- a/bin/larv_review/test_scoring_setup.py +++ b/bin/larv_review/test_scoring_setup.py @@ -157,6 +157,17 @@ class PrepareScoring(unittest.TestCase): self.assertIn("Your background: ~2 years in Go,", junior) self.assertIn("every non-test tracked file: `bin/**`, `AGENTS.md` and `README.md`. Do NOT open plan/todo.md, docs/decisions.md or docs/reading-cost.md (the plan, the decision log and past chunks' reading cost), nor any review output.", junior) + def test_takes_the_values_from_seat_prompts_where_the_working_rules_hold_none_and_the_repo_keeps_them_there(self): + self.commit("# Working rules, with no values\n") + self.assertIsInstance(failed := self.prepare(), Failure, failed) + panel = self.checkout / "skills" / "comprehension-panel" + panel.mkdir(parents=True) + (panel / "seat-prompts.md").write_text("# Seats\n\n## The repo's values\n\n- `{language}`: Go\n- `{kind}`: a CLI\n- `{domain}`: parsing\n- `{domain docs}`: the spec\n- `{3am question}`: the parse hangs\n") + self.commit() + ran = self.prepare() + assert isinstance(ran, str), ran + self.assertIn("Your background: ~2 years in Go,", pathlib.Path(ran.splitlines()[2]).read_text()) + def test_forbids_any_record_of_a_past_panel_where_the_config_puts_every_record_outside_the_checkout(self): self.config.write_text(self.config.read_text().replace('"checkout:', '"folder:').replace('"folder:README.md"', '"checkout:README.md"')) (self.config.parent / "AGENTS.md").write_text("# A\n\n## Scoring run\n\n- Language: Go\n- Kind: a CLI\n- Domain: parsing\n- Domain docs: the spec\n- 3am question: the parse hangs\n") -- 2.52.0 From afc51efb1b8d1d2888949f930e2bc2d536f25ef6 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Fri, 20 Nov 2026 00:01:03 +0100 Subject: [PATCH 5/7] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20decline=20t?= =?UTF-8?q?he=20=F0=9F=9F=A2=20on=20a=20NUL=20in=20the=20evidence,=20which?= =?UTF-8?q?=20the=20judge=20does=20not=20write?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 04c67d958e1c4e93b6a008f03adbbf94f6e14e5a Mon Sep 17 00:00:00 2001 From: Lilleman Date: Fri, 20 Nov 2026 00:02:03 +0100 Subject: [PATCH 6/7] =?UTF-8?q?Answer=20stability=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20tests=20and?= =?UTF-8?q?=20mutants=20clean=20at=203cce4043?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 6e221493347ef987d58fc783e2c383f3dc218060 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Fri, 20 Nov 2026 00:10:43 +0100 Subject: [PATCH 7/7] Finish item 460 in the plan --- todo.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/todo.md b/todo.md index 300dca3d..aa6f4f4a 100644 --- a/todo.md +++ b/todo.md @@ -12,7 +12,6 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 460 | 0.14.0 | | | **Review the judge's fix for quoting the worker's task as evidence with every larv-review pass it fires, and adjust it to their findings.** | 2 | 2 | 3 | 5 | 2 | code health by 3, 1.1 by 5 | 7.2 | | 463 | 0.14.0 | | defect | **Show the judge the transcript's tail whatever the size of the records.** | 2 | 2 | 3 | 5 | 3 | 1.2 by 6, 1.5 by 4, 1.4 by 2 | 4.2 | | 449 | 0.14.0 | | | **Record do-epic's repo picks and sub-task summaries in the team's own spelling, such as `core-4` and `core-4: Bygg …`, as its config sets them.** | 2 | 2 | 2 | 4 | 3 | 1.6 by 6 | 2.0 | | 453 | 0.14.0 | | | **Make the issue types that do-epic and `todo-item add` file in Jira settings, since a Jira project such as TW has no Task type.** | 2 | 2 | 1 | 3 | 2 | 1.6 by 5 | 1.8 | @@ -78,18 +77,6 @@ ## Details -### 460. Review the judge's fix for quoting the worker's task as evidence with every larv-review pass it fires, and adjust it to their findings. - -The fix shipped without any larv-review pass, reviewer or comprehension check, at lilleman's request on 2026-11-19, so loop-claude could run unattended again: PR #641, commit "Let the judge quote the worker's task as evidence". Before it, the judge read the task above the transcript's tail but `quotes_checked` checked the evidence only against that tail. Once a session outgrew the tail, a verdict quoting the task, such as `Do the next chunk in 0.13.0`, was rejected three times running, and the loop exited after each merged chunk (items 448, 455 and 451). `Grounds` now carries the task, and the evidence must appear in the task, then the tail. - -Run the passes the change fires: security, stability (with `~/.claude/rules/this-machine/cross-repo-review.md` where it applies), prose for the comments and docstrings it changed, and overrides if `rule-hook overrides` prints a line. Run the comprehension check where `larv-review` says one is due. Also weigh whether the evidence schema's description ("a verbatim quote of the one transcript passage") should name the task too, and whether `misquoted_evidence`'s message should say "the task or the transcript". - -Touches: -- `bin/agent_cycle/judge.py`: `Grounds` (small), `quotes_checked` (small), `judge_prompt` (small) -- `bin/judge_replay/archived_prompt.py`: `grounds_of` (small) -- `bin/agent_cycle/test_judge.py` -- `bin/judge_replay/test_judge_replay.py` - ### 463. Show the judge the transcript's tail whatever the size of the records. `judge_prompt` in `bin/agent_cycle/judge.py` gives the transcript only what `JUDGE_PROMPT_CHARS = 400000` leaves after the premises, the records and the rules. In claude-config those now take about 519,000 to 523,000 characters, so `room` clamps to 0 and the judge reads the task above an empty transcript. Every judge prompt archived for claude-config since at least 2026-11-19 17:16 shows none: -- 2.52.0