Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
or the harness, not held against the assistant), and, with a per-criterion format, says for each failed criterion
whether it traces to context a compaction lost (``context_loss`` on the row; the entry counts them): reported next to
the score, never changing it. A trajectory whose compaction doesn't say who wrote its summary leaves the run ungraded
(``UngradableRunError``), never misread. Every entry also says what the run records of the assistant's harness
(``UngradableRunError``), never misread. What the harness's context guard did (v14: results hidden behind stubs or
cut, a compaction inside a wake, a refused call sent again) is in the files as its notes, a result the assistant was
shown cut or as a stub says so on its call, and the judge is told to grade on what the assistant was shown. Every
entry also says what the run records of the assistant's harness
(``assistant_harness``: its agent name, its card's name and version and, when its wakes are staged, the harness version
and settings its trace reports).
"""
Expand Down Expand Up @@ -128,8 +131,10 @@
user never saw it), each message the user got ("message_to_user"), a nudge and its calls, and the user's reads of its \
messages.
- {results}/: what is too long for a line (a tool's input or result, a long message): the line names the file \
("<field>_file", such as "result_file" or "text_file") and shows its start ("<field>_preview"). Email bodies are \
decoded (body.text). A line longer than 1,800 characters is split across lines there, nothing dropped.
("<field>_file", such as "result_file" or "text_file") and shows its start ("<field>_preview"). A preview can be \
shortened or left out; the "<field>_file" always holds the whole value. A line with only "event", "wake" and \
"line_file" was too long to show, and its file holds the whole line. Email bodies are decoded (body.text). A line \
longer than 1,800 characters is split across lines there, nothing dropped.
- {events}: every wake's events in one file, so "did it ever do X" is one search. {triggers}: every trigger firing, \
fired or failed, with its pretend time and the wake it came after.

Expand All @@ -139,7 +144,7 @@
follow-ups before you decide.
- Before you conclude that something never happened, or was never said or done, search every wake for it, long \
texts included: grep -r {wakes}/ (the wake files and {results}/, where a text too long for a line is kept whole; \
{events} has only its first 300 characters), and name that search in your reason.
{events} has at most the first 300 characters), and name that search in your reason.
- The user's messages are the "user_message" lines (and the first wake's "wake_input"); the user saw only the \
"message_to_user" lines.
- Cite the wake (and call) number of every piece of evidence, and quote it.
Expand Down Expand Up @@ -178,6 +183,16 @@
_NOTES_ORDER = """
- Harness notes have no "at": read them in file order."""
_HARNESS_NOTE = _HARNESS_LINES + _LABELLED_LINES + _NOTES_ORDER
# Added after _HARNESS_NOTE for a run in which the harness's context guard acted (its record's
# "context_guard_actions" or "results_shown_not_whole"): what the assistant was shown is not always what the files hold.
_GUARD_NOTE = """
- "harness_note" lines with "guard" are what the harness's context guard did to keep the assistant's requests inside \
its model's context window: it hid older tool results behind short stubs, cut new ones short, compacted the history \
inside a wake, or sent a call refused as too long again. They are the harness's doing, not the assistant's.
- A tool call with "shown_to_assistant" holds the whole result, but the assistant was not shown all of it, as that \
field says. Grade the assistant on what it was shown: a result cut before it saw it, it saw only that part; a result \
hidden behind a stub, it saw whole when it came back and only the stub after that. Either way it saw more only where \
it read the result with result_read, which its later calls show."""
# Added to _FILES_NOTE for a run staged with full_app_changes (its record's "app_change_values").
_FULL_CHANGES_NOTE = """
- Each "app_change" line is one change to an app's data. "by" says whose: "agent" is the assistant's own, "others" \
Expand Down Expand Up @@ -680,9 +695,11 @@ def _files_note(path: str, staged: StagedRun, *, context_loss: bool = False) ->
"for them only the run's record is there: " + ", ".join(str(n) for n in gaps) + ".") if gaps else ""
writers = r.get("compaction_summaries_written_by") or {}
lines = _HARNESS_NOTE if r.get("agent_labeled_trajectories") else _HARNESS_LINES + _NOTES_ORDER
guarded = r.get("context_guard_actions") or r.get("results_shown_not_whole")
harness = (lines + (_FAILURE_NOTE if r.get("harness_failures") else "")
+ "".join(note for writer, note in _COMPACTION_NOTES.items() if writer in writers)
+ (_CONTEXT_LOSS_NOTE if context_loss else "")) if _harness_read(r) else ""
+ (_GUARD_NOTE if guarded else "") + (_CONTEXT_LOSS_NOTE if context_loss else "")
) if _harness_read(r) else ""
values = r.get("app_change_values")
missing = (f"\n- {values['missing']} app changes have no \"changed_fields\": the run's record of its apps' changes "
"doesn't have them, so their \"summary\" is all there is.") if values and values["missing"] else ""
Expand Down
Loading
Loading