Rename loop-claude to build-release, with no alias
This commit is contained in:
@@ -78,14 +78,14 @@ that has any, then how many have none: the defects that reappear in what already
|
||||
other half of that counter-signal.
|
||||
|
||||
Then, newest first, how many of the human's typed answers each finished chunk's judge quoted as
|
||||
reversing a choice the worker took on its own recommendation, for every chunk loop-claude finished
|
||||
reversing a choice the worker took on its own recommendation, for every chunk build-release finished
|
||||
that has any, then how many have none: how often a choice the worker took on its own recommendation
|
||||
fails to hold. It reads loop-claude's archive, and counts only chunks whose verdicts record a
|
||||
fails to hold. It reads build-release's archive, and counts only chunks whose verdicts record a
|
||||
Config line, since earlier judges didn't look for reversals.
|
||||
|
||||
Exit 1, saying why, on bad arguments, when git cannot start, finds no checkout or reads a shallow
|
||||
clone, or the default branch cannot be read; or, after the rest of the report, when the anchors or
|
||||
loop-claude's archive cannot be read.
|
||||
build-release's archive cannot be read.
|
||||
"""
|
||||
import functools
|
||||
import os
|
||||
@@ -156,7 +156,7 @@ def report_text(results: list[Result], anchored: Anchors | Failure, given: dict[
|
||||
sections.append(["Median outcome at each guessed score, among chunks that shipped one item, never-replayed ones left out:", "", *report(results)])
|
||||
sections.append(["🔴 and 🟡 findings, with how many a reviewer marked `[misread]`, per finished chunk whose round titles count them, newest first:", "", *misreads(results)])
|
||||
sections.append(["Later fixes: the chunks that fixed code each finished chunk shipped, newest first:", "", *fixed_later(results)])
|
||||
sections.append(["Reversals: the human's typed answers that reversed a choice the worker took on its own recommendation, per chunk loop-claude finished, newest first:", "", *([f"- None: {reversal.reason}"] if isinstance(reversal, Failure) else reversal)])
|
||||
sections.append(["Reversals: the human's typed answers that reversed a choice the worker took on its own recommendation, per chunk build-release finished, newest first:", "", *([f"- None: {reversal.reason}"] if isinstance(reversal, Failure) else reversal)])
|
||||
if any(result.landing != "merge" for result in results):
|
||||
sections.append(UNMERGED)
|
||||
return "\n\n".join("\n".join(section) for section in sections)
|
||||
@@ -177,7 +177,7 @@ def read_anchors(home: pathlib.Path) -> Anchors | Failure:
|
||||
|
||||
|
||||
def read_reversals(home: pathlib.Path) -> list[str] | Failure:
|
||||
"""The reversals in loop-claude's archive of this project, which the main checkout's path keys, whichever worktree this runs in."""
|
||||
"""The reversals in build-release's archive of this project, which the main checkout's path keys, whichever worktree this runs in."""
|
||||
common = git("rev-parse", "--path-format=absolute", "--git-common-dir")
|
||||
if isinstance(common, Failure):
|
||||
return common
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""The human's reversals of choices workers took on their own recommendation, per finished chunk in loop-claude's archive. docs/decisions.md → `loop-claude: a judge decides each interrupt and each quoted answer…`, in its entry of 2026-11-08, is valid while they stay few."""
|
||||
"""The human's reversals of choices workers took on their own recommendation, per finished chunk in build-release's archive. docs/decisions.md → `build-release: a judge decides each interrupt and each quoted answer…`, in its entry of 2026-11-08, is valid while they stay few."""
|
||||
import json
|
||||
import pathlib
|
||||
|
||||
@@ -26,7 +26,7 @@ def reversal_lines(project_archive: pathlib.Path) -> list[str] | Failure:
|
||||
found = dict.fromkeys(quote for text in texts for quote in reversals(text))
|
||||
counted.append((f"{chunk.finished}{item_of(texts)}", len(found)))
|
||||
if not counted:
|
||||
return ["- None: loop-claude's archive holds no finished chunk whose verdicts record a Config line."]
|
||||
return ["- None: build-release's archive holds no finished chunk whose verdicts record a Config line."]
|
||||
lines = [f"- {chunk}: {count} reversed" for chunk, count in counted if count]
|
||||
others = len(counted) - len(lines)
|
||||
return lines + ([f"- {'The other' if lines else 'All'} {plural(others, 'finished chunk')}: none."] if others else [])
|
||||
|
||||
@@ -198,7 +198,7 @@ class ReportText(unittest.TestCase):
|
||||
def test_lists_the_nearest_by_r_then_the_anchors_then_the_medians(self):
|
||||
found = [result(1, 5, 3, None, merged="2026-10-13T10:00:00Z"), result(2, 1, 3, None, merged="2026-10-12T10:00:00Z")]
|
||||
too_few = "such chunks record"
|
||||
self.assertEqual(report_text(found, [("L 1", (2,))], {"L": 1, "E": 1, "I": 1, "S": 3}, ["- None: loop-claude's archive holds no finished chunk whose verdicts record a Config line."]), f"""Finished items nearest L 1, E 1, I 1, so R 1, and S 3, closest first:
|
||||
self.assertEqual(report_text(found, [("L 1", (2,))], {"L": 1, "E": 1, "I": 1, "S": 3}, ["- None: build-release's archive holds no finished chunk whose verdicts record a Config line."]), f"""Finished items nearest L 1, E 1, I 1, so R 1, and S 3, closest first:
|
||||
|
||||
- Item 2, R 1, S 3: 10 lines in 1 file, 1 round past each pass's first, 0 🔴, 0 🟡, 0 later fixes; merged 2026-10-12T10:00:00Z in aaaaaaa. **Item 2.**
|
||||
- Item 1, R 5, S 3: 10 lines in 1 file, 1 round past each pass's first, 0 🔴, 0 🟡, 0 later fixes; merged 2026-10-13T10:00:00Z in aaaaaaa. **Item 1.**
|
||||
@@ -224,9 +224,9 @@ Later fixes: the chunks that fixed code each finished chunk shipped, newest firs
|
||||
|
||||
- None: no later chunk fixed code a finished chunk shipped.
|
||||
|
||||
Reversals: the human's typed answers that reversed a choice the worker took on its own recommendation, per chunk loop-claude finished, newest first:
|
||||
Reversals: the human's typed answers that reversed a choice the worker took on its own recommendation, per chunk build-release finished, newest first:
|
||||
|
||||
- None: loop-claude's archive holds no finished chunk whose verdicts record a Config line.""")
|
||||
- None: build-release's archive holds no finished chunk whose verdicts record a Config line.""")
|
||||
|
||||
def test_lists_each_chunks_findings_with_their_misread_count_newest_first_once_per_chunk(self):
|
||||
found = [result(1, 5, 3, None, findings=(1, 2), misread=1, merge="bbbbbbb", merged="2026-10-12T10:00:00Z", shipped_with=(2,)), result(2, 5, 3, None, findings=(1, 2), misread=1, merge="bbbbbbb", merged="2026-10-12T10:00:00Z", shipped_with=(1,)), result(3, 5, 3, None, findings=(0, 4), misread=0, merge="ccccccc", merged="2026-10-14T10:00:00Z", landing="rebase"), result(4, 5, 3, None)]
|
||||
@@ -327,9 +327,9 @@ class ScoreOutcomesTool(unittest.TestCase):
|
||||
self.assertEqual((ran.returncode, ran.stdout), (1, ""))
|
||||
self.assertEqual(ran.stderr, f"score-outcomes: this project is not supported yet: the project's config puts {config.parent}/todo.md elsewhere than todo.md, docs/comprehension-history.md, docs/reading-cost.md in the checkout, the only paths whose commits are read so far\n")
|
||||
|
||||
def test_counts_the_reversals_in_loop_claudes_archive_of_the_main_checkout_run_from_a_worktree(self):
|
||||
def test_counts_the_reversals_in_build_releases_archive_of_the_main_checkout_run_from_a_worktree(self):
|
||||
archive = pathlib.Path(self.env["HOME"], "archive")
|
||||
self.env["LOOP_CLAUDE_TRANSCRIPTS"] = str(archive)
|
||||
self.env["BUILD_RELEASE_TRANSCRIPTS"] = str(archive)
|
||||
chunk_file(project_archive(str(self.checkout), pathlib.Path(self.env["HOME"]), self.env), "a", ("2026-11-02T10:00:00Z", outcomes.finished('{"model": "m", "item": 4}', "e", "j", annotation=outcomes.Annotation("c", reversed="No."))))
|
||||
worktree = pathlib.Path(self.env["HOME"], "proj-item-4")
|
||||
self.git("worktree", "add", "-q", str(worktree))
|
||||
@@ -534,7 +534,7 @@ class Reversals(unittest.TestCase):
|
||||
worker = '{"model": "m", "item": 7}'
|
||||
with tempfile.TemporaryDirectory() as root:
|
||||
archive = pathlib.Path(root)
|
||||
self.assertEqual(reversal_lines(archive), ["- None: loop-claude's archive holds no finished chunk whose verdicts record a Config line."])
|
||||
self.assertEqual(reversal_lines(archive), ["- None: build-release's archive holds no finished chunk whose verdicts record a Config line."])
|
||||
chunk_file(archive, "old", ("2026-11-01T10:00:00Z", outcomes.finished(worker, "e", "j", annotation=outcomes.Annotation(reversed="No."))))
|
||||
chunk_file(archive, "reversed", ("2026-11-02T10:00:00Z", outcomes.unfinished(worker, "e", "j", "", annotation=outcomes.Annotation("c", reversed="No."))), ("2026-11-02T11:00:00Z", outcomes.unfinished(worker, "e", "j", "", annotation=outcomes.Annotation("c", reversed="No."))), ("2026-11-02T12:00:00Z", outcomes.finished(worker, "e", "j", annotation=outcomes.Annotation("c", reversed="Use X."))))
|
||||
chunk_file(archive, "kept", ("2026-11-03T10:00:00Z", outcomes.finished('{"model": "m"}', "e", "j", annotation=outcomes.Annotation("c"))))
|
||||
|
||||
Reference in New Issue
Block a user