Answer prose round 1: mark the reading-cost item decision, split the rise rule's reasons, and say the trend counts since the last reset

This commit is contained in:
2026-10-08 16:46:20 +02:00
parent 5e5eea21e5
commit 35907caefa
5 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -20,8 +20,8 @@ It then compares the median tokens of the history's last 5 figures with the 5 be
the order their chunks finished, and prints "Rising:" or "Not rising:" with both medians. Rising, it
lists the files the last 5 chunks read most. With fewer than 10 figures, it says so.
Exit 1, saying why, when git cannot start or finds no checkout, the archive or the history cannot
be read or written, or a figure in the history cannot be read back.
Exit 1, saying why, on unknown arguments, or when git cannot start or finds no checkout, the
archive or the history cannot be read or written, or a figure in the history cannot be read back.
"""
import collections
import dataclasses
@@ -264,7 +264,7 @@ def merged(history: str, figures: list[str]) -> str:
def trend(readings: list[Reading]) -> str:
if len(readings) < 2 * WINDOW:
return f"{len(readings)} chunks measured; the trend needs {2 * WINDOW}."
return f"{len(readings)} chunks measured since the last reset; the trend needs {2 * WINDOW}."
last, earlier = middle(readings[-WINDOW:]), middle(readings[-2 * WINDOW:-WINDOW])
medians = f"the last {WINDOW} chunks' median is {last} new input tokens before their first commit, the {WINDOW} before them {earlier}."
if last <= earlier: