report: aligned terminal tables; refuse a mismatched --final-repeat - #11
Merged
Conversation
…; refuse a repeat of another configuration Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
node src/report.tsprinted Markdown pipe tables, which read as raw|rows when thefairtask-evalskill shows them inside an agent session. Worse, the skill's report command paired--final v3-verifywith--final-repeat v5-rerun— a repeat of a different configuration — so an in-session report showed "75% · 65%" and "0 pts" for flag recall where the README says 70% → 75%, +5 pts.What changed
src/lib/table.ts: one renderer with two formats — an aligned box table for terminals (Markdown emphasis stripped, display width counted in code points so κ/▲/▼ align) and the Markdown pipe table the README embeds. Section titles follow the same switch.src/report.ts: builds rows as data and renders them; terminal format by default,--markdownfor the README form. The--markdownoutput is byte-identical to the tables in README §4 (checked by diff). A--final-repeatwhosevariantdiffers from the final run's is refused with a message.scripts/finalize-report.pypasses--markdown.src/data/build-eval-set.ts: the stratum and per-repository counts print as one line each instead of JS object dumps.skills/fairtask-eval/SKILL.md: report command without the wrong--final-repeat; notes the table/markdown switch. README §2c rows forreport.tsupdated (--markdownrow added; repeat rule stated).src/table.test.ts: three tests for both formats (26 tests total).