Answer stability round 1: 0 🔴, 2 🟡 (0 misread); keep the whole typed answer that holds the judge's quote of a reversal, and test a failing rev-parse

This commit is contained in:
2026-11-12 10:25:30 +01:00
parent 67e272d5ef
commit d449c552c6
4 changed files with 40 additions and 17 deletions
+4 -3
View File
@@ -1,4 +1,4 @@
"""What a stretch of the chunk's work spent, in raw tokens by model and kind, which the archive records beside each verdict, interrupt and quoted answer: docs/decisions.md → `loop-claude: each verdict records the setup, the spend and the reversals…`.
"""What a stretch of the chunk's work spent, in raw tokens by model and kind, which the archive records beside each verdict, interrupt and quoted answer: docs/decisions.md → `loop-claude: each verdict records the claude-config release and commit that ran it…`.
A stretch runs from the previous outcome that recorded a spend, or from the chunk's start, to the ruling. It counts the worker's main thread, each subagent and the judge run that ruled, each message once. Dollars are left to be derived from the model and the tokens, at the prices recorded beside them.
"""
@@ -54,11 +54,12 @@ def moment(stamp: str) -> datetime.datetime:
return datetime.datetime.fromisoformat(stamp)
# The outcome's stamp runs to the second, so a message written in the second it was stamped, before it, counts again; the judge runs for seconds after the worker exits, so none is.
# An outcome's stamp runs to the second, so a message written earlier in that second would count in both stretches. In practice none is, since the judge runs for seconds after the worker's last message.
def later(timestamp: str, start: datetime.datetime) -> bool:
"""Whether timestamp is after start; False where it is no time, or names no time zone to compare by."""
try:
return moment(timestamp) > start
except ValueError:
except (TypeError, ValueError):
return False