Skip to content

fix(reporting): describe a failed Tier 3 arm as incomplete, not as not run - #407

Merged
rng1995 merged 15 commits into
mainfrom
naren/port-tier3-baseline-incomplete-reporting
Nov 12, 2026
Merged

rng1995 merged 15 commits into
mainfrom
naren/port-tier3-baseline-incomplete-reporting

Conversation

@rng1995

@rng1995 rng1995 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Why

On public main, one failed baseline attempt fails the agent and the run. That stays as it is. But the reports then misstate or bury what happened. BENCHMARK.md says the baseline was not run, and its Tier 3 row says only 1 validator(s); 0 finding(s). The terminal shows each arm's coverage summed over all agents (Baseline: 3 of 4 scored (failed)), and the HTML report lists the raw execution errors, such as AgentTimeoutError: .... No report names the agent and arm in plain words or says how many of that arm's attempts scored. A reader cannot tell a baseline that never ran from one that timed out.

Kept from public

  • No scoring, status or verdict change. A failed arm still fails the agent and the run. The collector, lift gating (both arms must succeed), security attribution and resource deltas are unchanged. Keeping an agent scored when only its baseline timed out needs a maintainer decision and is not part of this PR. Such a change should give that case its own notice code, since baseline_failed names only the failed arm.
  • _score_transition_values keeps its signature and call sites. The score table renders a per-agent view in which the failed baseline arm takes the place of the missing baseline value, so the INCONCLUSIVE: skill never activated wording still wins for an agent that never activated the skill.
  • A failed arm's reason and counts are given in the Agent coverage list rather than in the score cell. A failed with-skill arm's cells keep the wording fix(reporting): explain each dimension, its evidence and baseline in reports #376 added, Not scored with the skill — baseline NN%; uplift unavailable, and Not applicable cells stay fix(reporting): explain each dimension, its evidence and baseline in reports #376's, built from the payload's not_applicable_dimensions. The count rows feat(tier3): fail cases on unmet goals and security issues, independent of lift #395 added (Required checks passed, Goals met, Security clean) read N/A for a failed baseline arm and are unchanged; the docs now say the Overall and dimension cells carry the incomplete-baseline wording.
  • Exclusion cells (Excluded — ...) and coverage validity are not added: public has no agent exclusion.
  • The HTML report keeps public's display sanitizer and bounded preview. coverage_notices is normalized like the other template-facing lists and joins the keys the JSON-safe copy walks first.
  • The HTML agent details keep their per-agent labels. An agent whose baseline arm failed still reads no baseline, baseline N/A and no baseline lift, as a skipped baseline does; the Agent coverage notes callout tells the two apart, and the docs say so. Changing those labels is a separate change, left to a follow-up.
  • The terminal reuses the existing Non-blocking Findings section. A non-blocking result is rendered there only when it has findings or coverage notes, so other non-blocking results print as before.
  • The public gate (scripts/ci/check_public_benchmarks.py) needs no change. It accepts the new cells, and rendered cards with a failed baseline or a failed with-skill arm and their Agent coverage sections have no offenders. The gate test now pins the new cells.
  • Publication safety stays with public's helpers: BENCHMARK.md text goes through _publication_safe_inline and _md_cell, agent names through _agent_display_label, the HTML template autoescapes, and the terminal uses escape_markup.

Tests

  • New tests/reporting/test_tier3_incomplete_arms.py (44 tests):
    • arm states and counts: incomplete, unavailable, failed with no missing attempt, and unusable counters left out (6)
    • the first Harbor exception type in words, from collector and loader error formats, a dotted type, HTTPError, acronyms with digits (S3UploadFailedError, HTTP2Error, Http2ProtocolError), case IDs shaped like a type in a trial label or a case-coverage list, and errors without a type (14)
    • the message says the agent and the run are marked failed only when the agent is (1)
    • completed, skipped, unknown and malformed arms give no notice (6)
    • the payload notice for a failed baseline, and no coverage_notices key, Agent coverage section or HTML callout when every arm completed or was skipped (2)
    • a run directory with a failed baseline trial, through agent_eval_result_from_directory, reaches the notice and the BENCHMARK cell (1)
    • BENCHMARK.md: incomplete, completed and skipped baselines side by side; an unavailable baseline; a failed with-skill arm; never-activated wording over an incomplete baseline; the Agent coverage list and Tier 3 evidence cell (4)
    • HTML callout and terminal notes, with agent names escaped in both (2)
    • HTML: a coverage_notices value that is a number, a boolean, a single object, or a list without usable messages renders no callout (4); a payload above the 256 KiB preview trigger keeps every message whole (1)
    • terminal: a non-blocking Tier 3 result, the validate default, prints the notes once, under Non-blocking Findings, in the full terminal report (1)
    • the compact default validate view drops the cli reporter and its Tier 3 rows do not carry the notes, and docs/reports.mdx and the CHANGELOG entry name validate --verbose and -r cli (1)
    • the HTML agent details label a failed and a skipped baseline alike (no baseline, baseline N/A), only the callout names the failed one, and docs/reports.mdx says so (1)
  • tests/test_public_benchmark_gate.py: 3 new accepted score cells (baseline incomplete, baseline unavailable, baseline failed).
  • Fail-before, re-measured on main d717f22: the new module does not import. With main's src/ plus only the new helper module, 12 of the 44 fail: payload, run directory, 4 BENCHMARK, HTML and terminal (2), the bounded preview, the non-blocking terminal, the compact view and the HTML agent labels. The 32 that pass test the helper itself (27), the no-notice case (1) and the 4 malformed-notice HTML cases, which main passes because it has no callout. The 3 new gate cells also pass on main: they pin that the gate already accepts them. With this branch's src/ and the earlier docs/reports.mdx and CHANGELOG wording, the compact view and HTML agent label tests fail on the docs checks.
  • After the merge with main d717f22, run with -n 4: 68 test modules, 3390 passed, 3 skipped. They are every module under tests/reporting and tests/golden, the gate tests, the other modules outside tests/validators that import BenchmarkReporter or CLIReporter (tests/test_overall_cross_format_consistency.py, tests/test_benchmark_source_provenance.py, tests/test_version_comparison.py, tests/test_baseline_store.py and others), and the CHANGELOG and docs readers (tests/test_ci_workflows.py, tests/test_oss_packaging.py, tests/test_ci_change_classifier.py, tests/test_benchmark_rollout_docs.py). This covers the tests fix(reporting): publish the same Overall lift in BENCHMARK.md as every other output #373 and fix(reporting): explain each dimension, its evidence and baseline in reports #376 added for the score table.
  • Full suite after the merge, run with -n 6: 27412 passed, 35 skipped, 6 failed. The 6 are outside reporting: three CI bootstrap test cases that depend on the local Python setup (tests/ci/test_all_tier_preflight.py and both parametrizations in tests/ci/test_feedback.py), two secure Docker sidecar tests and one timing test that depends on machine load (a Harbor bounded-process timeout test in this run). The first five also fail on main d717f22 on the test machine. Which timing test fails changes from run to run, and the one that fails passes when run alone, on this branch and on main.
  • ruff check is clean on the changed Python files. ruff format --check is clean on them except tests/test_public_benchmark_gate.py, which main already fails on two lines this PR does not touch. scripts/check_oss_boundary.py passed.

🤖 Generated with Claude Code

rng1995 and others added 6 commits November 7, 2026 01:41
…t run

When one attempt of an agent's no-skill baseline fails, for example on the
agent timeout, the baseline arm fails while the with-skill arm keeps its
scores. BENCHMARK.md then printed "baseline not run; uplift unavailable"
for a baseline that ran, and no report said which arm was missing.

- The canonical payload gains coverage_notices: one entry per arm whose
  recorded execution_status is failed, with its scored and expected
  attempts, the first Harbor exception type in words, and a message.
- BENCHMARK.md cells read "baseline incomplete (s of e attempts scored)"
  or "baseline unavailable" when nothing scored; a skipped baseline still
  reads "baseline not run". An Agent coverage list under the table names
  each failed arm, and the Tier 3 evidence cell names the agent and arm.
- The HTML report shows the notices under Agent coverage notes, and the
  terminal prints them in the Tier 3 block.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… report

- HTML: the display sanitizer keeps only coverage notices that are objects
  with a non-empty message, so a malformed `coverage_notices` value (a
  number, a boolean, a single object) no longer breaks the report. The key
  is walked right after `execution_status`, so the bounded preview of a
  payload above 256 KiB keeps every message whole instead of cutting it to
  an empty bullet. The template also drops empty messages.
- Terminal: `validate` runs Tier 3 non-blocking by default, and a failed
  non-blocking result has errors but no findings, so its Tier 3 block was
  never printed. A non-blocking result that carries coverage notes is now
  rendered with the non-blocking findings, so the notes show without
  `--block-on-agent-eval`.
- First failure: an acronym keeps its trailing digits
  (`S3UploadFailedError` gives `s3 upload failed error`, `HTTP2Error` gives
  `http2 error`), and the collector's case-coverage diagnostics, which list
  case IDs, are skipped so a case ID shaped like an exception type is never
  named as the failure.
- The notice code is `baseline_failed` or `with_skill_failed`: the arm whose
  recorded status is `failed`, distinct from any notice for an agent that
  stays scored. When the agent itself is marked failed, the message says the
  agent and the Tier 3 run are marked failed.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Document each `coverage_notices` field, including `code` and the null
counts with state `failed` when an arm's counters are unusable, the
`baseline failed` cell, and that `validate` prints the notes also when
Tier 3 is non-blocking.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… notes

A plain `validate` shows the compact pipeline view and drops the `cli`
reporter, so the Tier 3 coverage notes print only with `validate --verbose`
or an explicit `-r cli`. The docs and the CHANGELOG entry said `validate`
prints them. They now say the compact default view leaves them to the HTML
and JSON reports and `BENCHMARK.md`. A new test pins that behavior and the
wording.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… missing

An agent whose baseline arm ran and failed gets the same per-agent HTML
labels as a skipped baseline: `no baseline` and `baseline N/A`. Only the
Agent coverage notes callout tells the two apart. The **no baseline**
definition now covers a failed baseline arm and points to the callout, and
the callout paragraph names the shared labels. A new test pins the labels,
the callout and the wording. The labels themselves are unchanged.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995 and others added 3 commits November 10, 2026 14:12
Two files conflicted:

- src/skillevaluator/reporting/benchmark.py: both sides added an import
  next to the run_status import. Kept main's summary_copy import and this
  branch's tier3_coverage import.
- src/skillevaluator/reporting/cli.py: main now builds the non-blocking
  list before the Failure Details panel and uses it to decide which Tier 3
  results still need their agent tables printed. This branch widened the
  same list, at its old place, to include a non-blocking Tier 3 result with
  coverage notes but no findings. Kept main's position and its new
  rendered-result loop, and moved this branch's wider condition into it, so
  the result is printed once, under Non-blocking Findings.

CHANGELOG.md, docs/reports.mdx, tier3_report.py, html.py and
report.html.j2 merged without conflicts.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main now adds Required checks passed, Goals met and Security clean rows
to the BENCHMARK.md Results at a Glance table. They compare counts, not a
baseline score, and read N/A for a failed baseline arm. The incomplete-arm
tests now read only the Overall and dimension rows, and the reports guide
says those are the cells that name an incomplete baseline.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…notes

Main now prints the agent tables of a Tier 3 result that is in neither
the Failure Details nor the Non-blocking Findings section, so the notes
of a non-blocking failed result would print even without this branch's
wider non-blocking condition, as a bare table above both sections. The
test now checks that the notes print once, under Non-blocking Findings,
with the result's errors. It fails if that condition is dropped.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the full production diff, report consumers, escaping and incomplete-arm coverage. No actionable code findings. Merged current main ce52a09 with no conflicts. Validation: 44 focused tests passed; broader reporting/golden/public-gate run had 2749 passed, 7 skipped and the CLI-surface golden dependency mismatch also reproduced on main (Click 8.5.1 versus locked 8.4.2). make lint, make build and pinned Fern check passed. This remains open; #427 is stacked on this PR.

rng1995 and others added 2 commits November 12, 2026 11:54
* feat(tier3): add token usage accounting per case, agent and run

New skillevaluator.tier3.token_usage sums each attempt's token counters
per case, per agent arm and over all agents, with coverage. Cached
tokens are part of the prompt and are never added again. Missing or
invalid counters add nothing and leave the arm partial; nothing is
estimated. Attempts that failed before scoring count as unscored usage.
A change needs complete counts for the same attempts in both arms and
no failed arm. It is a measurement only and changes no score.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(tier3): keep the token usage of attempts that scores never read

The report loader skipped attempts without a usable reward.json and
cleared the rewards of an arm whose scores it withholds, so their tokens
were lost. It now keeps, per arm, usage_only_attempts: the trajectory
token counters of each unscored attempt and of each scored attempt of a
failed or unknown arm. Scores, pass@k, rewards_complete and resource
totals do not read them.

The token usage module counts these attempts, matches an unscored
attempt's trial-name prefix to its case (Harbor cuts task names to 32
characters), and adds recovered timeout attempts to the expected count.
It also gains helpers to drop per-case rows and to keep only the agent
sums.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(reporting): add token_usage to the canonical Tier 3 payload

build_agent_eval_payload adds a token_usage object (per agent arm, per
case and over all agents) when any attempt has token counts. The
payload budget drops its per-case rows together with the trials they
summarize. The Tier 3 report step also records the per-agent sums in
the run result for the terminal summary. resources keeps its own
complete-only totals.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(reporting): show Tier 3 token usage in every report

New reporting/tier3_token_usage.py turns the token_usage payload into
table rows that every report shares, so the numbers and wording match:

- BENCHMARK.md: a Token Usage section after Results at a Glance, with
  agent and all-agent rows, notes on why a change is missing, and the
  first 50 case rows in a collapsed table.
- Markdown report: the same table under the Tier 3 section.
- HTML report: a table of every case under Measured Agent Resources.
- Terminal: the full validate report and tier3 evaluate --verbose print
  the agent rows.

Each table says the numbers are measured and not scored. Case and agent
names are escaped for each format.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(reports): document Tier 3 token usage

Describe the token_usage payload, its coverage and change rules, and
where each report shows it. Add a CHANGELOG entry under Unreleased >
Added and a test that keeps the docs and the entry in step with the
payload fields.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(reporting): import the token usage table where the Markdown report uses it

Open pull requests add their own imports right below the run_status
import of markdown.py. Importing inside the Tier 3 block leaves that
line alone, so those branches merge without a conflict.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(reports): say where Tier 3 token usage case rows beyond the table are

BENCHMARK.md and the Markdown report now point at the JSON payload's
token_usage for case rows past the first 50. The HTML report bounds its
Tier 3 lists for large payloads, so the docs say it shows at most 64
case rows per agent then, and that the payload keeps every case unless
the size budget drops them with the trials.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(tier3): define the usage loader helpers next to load_agent_data

A sibling branch adds its own helper right after
_trajectory_token_counter. Keeping the usage helpers just above
load_agent_data leaves that spot alone, so both branches merge cleanly.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(reporting): say the JSON payload keeps every token usage case row

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(reports): say BENCHMARK.md shows the first 50 token usage case rows

The cap counts case rows across all agents, not cases.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(tier3): attribute unscored token usage to its case and withhold unsafe changes

An attempt without a usable reward now takes its case from the task
directory its copied Harbor result.json or config.json names. Without
those files it uses the trial name before Harbor's "__<id>" suffix
(rsplit, since a case ID may contain "__"), then a stop-on-pass trial
name (...-<with|without>-<case>-attemptNNN__...), then Harbor's
32-character cut. A case such as auth__login no longer gets a phantom
"auth" row, and a timed-out stop-on-pass attempt no longer adds a row
named after its job.

A change also needs both arms to have succeeded: an arm that ran with an
unrecognized run status, whose scores the report withholds, now blocks it
with <arm>_status_unknown. A sum above 2**53 - 1 is unavailable with
total_out_of_range and null totals, and blocks the change with
<arm>_total_out_of_range, instead of turning null after the payload is
sanitized while its status still said complete.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(tier3): add token usage after the report budget so it never displaces score evidence

Token usage used to join the payload before the size budget, which only
measured bytes and dropped its case rows only in the stage that also
drops every trial. Its case rows (about 45 JSON values each per agent)
could push a run that is valid on main past the 100,000-node report
limit, so a PASS run read as Tier 3 Incomplete in the HTML report and
BENCHMARK.md. Under the byte budget they also cost the non-best agents'
details and, for large runs, the best agent's trials.

The budget now runs on the payload without token usage, exactly as on
main. Token usage is added afterwards only while the payload stays within
the embedded size budget and passes agent_eval_report_serialization_issue.
Otherwise its case rows go first (token_usage.case_rows_omitted and
report_truncation.omitted.token_usage_case_rows), then the sums
(report_truncation.omitted.token_usage). If even that record does not
fit, the payload stays exactly as the budget left it. Read-only payloads
(enforce_embedded_size=False) keep everything, as before.

Dashboards treat the two new omission keys as diagnostics, so dropped
token rows never mark trial coverage truncated. Main's retained-run
dashboard test now sizes its budget from the payload without token
usage, which keeps its intent: only the non-best agent's details go.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(reporting): read the HTML token table from the full Tier 3 data

The HTML token table read the bounded Tier 3 preview. Above 256 KiB the
preview walk spends its character budget in key order and reaches
token_usage last, so it blanked coverage.status, delta.status and
entry_id: complete rows printed "(partial)", changes printed N/A, and
case rows were named "unknown".

The table now reads the full display payload, like the steps-by-case
chart, and shows at most 64 case rows per agent with a line that says how
many more are in the JSON payload. (This supersedes the "a table of every
case" wording in 2db3fa8.) The bounded preview leaves token_usage out, so
token rows can neither trigger the preview nor spend its budget.

When the payload dropped the case rows to stay within its limits, the
HTML table, the Markdown report, BENCHMARK.md and the terminal say how
many. The terminal names the files that hold the case rows for each
command: the HTML, Markdown and JSON reports for validate, and
report.html and tier3-benchmark.md in the run directory for
tier3 evaluate. BENCHMARK.md is not one of them.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(reports): document how Tier 3 token usage stays within the report limits

docs/reports.mdx now says that token usage joins the payload after the
size budget and never displaces score evidence, which fields record
dropped case rows or sums, that a change needs both arms to have
succeeded (baseline_status_unknown), that a sum above 2^53 - 1 is
total_out_of_range, where an unscored attempt's case comes from, that
the HTML table reads the full data with at most 64 case rows per agent,
and which files each terminal command points to. The CHANGELOG entry and
the docs test follow.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(reporting): leave token usage out inside the bounded preview function

The preview call in HTMLReporter.render_all is back to main's single
line, and _bounded_tier3_preview itself drops token_usage before it
measures the payload. The behavior is the same; the call line stays free
for the open PR that adds lines right after it.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(tier3): keep token usage within the report limits after later payload writes

Token usage filled the payload up to the report limits when it was built.
Two steps then write to the same payload: the tier3 evaluate report step adds
its case findings, and validate adds its applicability fields. Either could
push a payload with token usage past the 100,000-value limit, so a passing
run read as Tier 3 Incomplete although the same run passes without token
usage.

fit_token_usage now runs after the build and again after each of those
writes. It drops the token case rows, then the sums, and records each drop
in report_truncation. If even that record does not fit, it removes the token
usage and its records, which leaves the payload as it is without token usage.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(tier3): show token usage of a baseline that did not run as not run

A run with no baseline arm for an agent reads as baseline not run in the
score tables. Its token usage said baseline 0/0, "Baseline token counts
cover 0 of 0 attempts", "baseline status unknown" and "The arms ran
different cases", three reasons for one cause.

An arm without attempts is now not_run when the payload mode leaves it out
(with_skill_only or baseline_only) or the agent has no record of it. An
arm without attempts no longer gets a status-unknown reason, and its
incomplete reason says that no attempts were recorded. A case scope
mismatch needs attempts in both arms.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(reports): say when Tier 3 token usage is left out without a record

The Token usage section said token_usage appears whenever an attempt
recorded token counts, and that a drop is recorded in report_truncation.
When the payload cannot carry even that record, for example because it
already exceeds the report limits without token usage, token_usage is left
out without a record. The section now says so.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(reporting): read the Tier 3 verdict from the HTML hero chip

The case findings regression test read the verdict after the hidden
"Tier 3 verdict:" label, which only some template versions carry. It now
reads the hero's verdict chip, incomplete reason and score, so it does not
depend on that label.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(tier3): keep token usage within the report limits after main's next steps

Main now adds the run's next steps to a built Tier 3 payload: the loader
reads them from the run's result.json, and the report step adds them with
its case findings. Both writes happen before fit_token_usage runs in the
report step and in validate, so no code change is needed. The validate
test now also runs with a result.json whose next steps push the payload
past the node limit after the build, and the report step test checks
that its payload carries next steps. The docs and CHANGELOG name the next
steps among the later writes.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(tier3): label a reused baseline's token usage

Main's --reuse-baseline (#384) copies the reused run's baseline
reward.json, trajectory.json and result.json files into the new run, so
token_usage counted their tokens as this run's baseline usage. When the
run config records a reused baseline, token_usage now carries
baseline_reused: true, and every token usage table (validate and
tier3 evaluate terminal output, the Markdown report, BENCHMARK.md and
the HTML report) says that the baseline tokens were used in the earlier
run, not in this one. Sums and the change stay as they were: the copied
rows are measurements like any other.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(tier3): reject invalid cache counters in usage-only attempts

Signed-off-by: Narendran Raghavan <[email protected]>

---------

Signed-off-by: Narendran Raghavan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the external stack update: 05e4b11 is byte-for-byte identical to the previously reviewed and fixed #427 head 361f402, including the invalid cached-token regression fix. Resolved the newly real CHANGELOG conflict with main b38b71b, preserving every upstream and PR entry; all other files match the automatic merge. Validation at the combined tree: 242 token-usage, incomplete-arm and dashboard tests passed; Ruff and pinned Fern checks passed. The external head also passed 49 focused smoke cases before integration. Current-head CI is running.

@rng1995
rng1995 enabled auto-merge (squash) November 12, 2026 20:26

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed external update a9347a3: its entire tree exactly equals the clean automatic merge of reviewed 51dea5f and main a72a611, preserving the baseline/incomplete reporting behavior and the stacked token-usage cache-counter repair. No manual or unexpected merge delta. Prior combined validation was 242 passing tests plus Ruff and pinned Fern; current-head CI has cleared the full Python 3.13/3.14 suites and Windows/macOS checks and is waiting only on Python 3.12.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved the new render integration conflict with main 88506620b2c4. Restored feedback follows the saved-feedback branch, fresh reports retain their case-findings pass, and token-usage fitting runs after either path before summaries are persisted. All other source/doc/CHANGELOG paths match the automatic merge; the only additional manual path is the regression test.

The regression compares real fresh and modern saved-feedback rendering: both stay within the report-node limit, preserve non-token score evidence and the exact saved conclusion. A control that fits only fresh findings passes the fresh case but fails the saved case at the 4,112-node limit. The final combined token/incomplete/dashboard/feedback/applicability suite passed 359 tests in 152.04s; independent review reran both variants successfully. ruff check ., changed-file format checks, whitespace checks and pinned Fern validation passed (0 Fern errors, one existing authenticated-redirect warning).

Signed-off head cdc816385de2 was pushed normally after live open/head/base/ref guards, and it merges cleanly with latest checked main 0f4395db5ff9. Hosted CI for this updated head is pending. No PR merge was performed by this task.

@rng1995
rng1995 merged commit 12b387f into main Nov 12, 2026
27 checks passed
@rng1995
rng1995 deleted the naren/port-tier3-baseline-incomplete-reporting branch November 12, 2026 22:10
rng1995 added a commit that referenced this pull request Nov 12, 2026
Brings in #407. The only conflict was CHANGELOG.md, where both sides added an Unreleased Added entry; kept both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant