Commit Graph
13 Commits
Author SHA1 Message Date
Joseph Magly 2a3e545283 fix(cli): decide the distributed preflight guard by argparse dispatch; convert all manifest parse errors
Muse BT6 audit of ab3be34 for #662: the guard runs a dry parse_known_args on a
copy of argv and refuses when the parse lands on distributed without the
literal "distributed preflight" shape, or when both words are left unparsed,
so a leading "--" can no longer bypass it while positional values of other
commands are accepted. RunArchive._load converts any ValueError from reading
or parsing a manifest (including the integer digit limit) into
InvalidArchiveRequest.
2026-11-25 03:21:50 -05:00
Joseph Magly ab3be343a9 fix(cli): match distributed preflight guard to command position; narrow runs error handling
Restrict the distributed+preflight shape guard to the command position so
launched arguments and option values containing both words are accepted.
Introduce RunArchiveError (keeping builtin bases) and catch only it in
`obliteratus runs`, so internal errors keep their traceback; corrupt
manifests report "invalid manifest". The secret-guard test checks stderr.

Fixes #632
Fixes #638
2026-11-25 02:47:23 -05:00
Joseph Magly 50133eb272 Merge main 11c7137 into fix/606-607-604-report-metrics
# Conflicts:
#	tests/test_cli.py
2026-11-24 18:32:15 -05:00
Joseph Magly 86407c7760 fix(viewer,report): render results as text, mirror plot metric selection, write plots atomically
Codex review r1 for #618: the results viewer builds its stats, chart and
table with DOM nodes and text only (no innerHTML), so a crafted results.json
cannot inject markup; its impact-metric selection mirrors save_plots exactly
(string primary only, measured baseline plus at least one measured ablation);
every render clears all result regions. Plots are written to a temp file and
moved into place only on success, figures are always closed, and a fallback
metric is labelled on the chart. A node-based test exercises the viewer.
2026-11-24 18:31:18 -05:00
Joseph Magly b6ac2aeffc fix(cli): keep runs stdout empty on errors; send guard diagnostics to stderr
Codex review r1 for #617: the pre-parse secret-token and
distributed+preflight guards now print to stderr, and `runs` catches archive
errors (unknown or malformed run id, unfinished run) with a one-line stderr
diagnostic, exit 1 and empty stdout. Docs and changelog state the success
and error output contract; MCP_LOCAL_SETUP.md notes that policy validation
runs before the missing-extra check.
2026-11-24 17:12:24 -05:00
Joseph Magly c0c174a05b fix(report): preserve the study impact metric and report only plots written
Record the study's chosen impact metric as an optional `primary_metric` key
in results.json so `report` replays the same chart; files without the key
keep the first-metric behaviour. Write the impact and heatmap plots
independently, fall back to a metric with a measured change, and print only
the files written in this run, flagging stale plots from earlier runs.

Fixes #606
Fixes #607
Fixes #604
2026-11-24 14:44:28 -05:00
Joseph Magly 73b8b7233f fix(cli): emit clean JSON from runs commands and drop the PyPI MCP install hint
Add `runs` to the CLI machine-JSON command set so every durable-run
subcommand writes only its JSON document to stdout.

Replace the missing-`mcp`-extra hint with the source-checkout installs from
docs/MCP_LOCAL_SETUP.md. The PyPI project named `obliteratus` is quarantined
and has no installable files, so the hint no longer points there.

Fixes #611
Fixes #603
2026-11-24 14:43:55 -05:00
Joseph MaglyandClaude Opus 5.5 a831d72b7c feat(eval): exclude invalid completions from refusal rates by default (#332)
Default exclude_invalid to True for refusal metrics, verification and the
optimizer objective, with a one-release warning for implicit legacy use,
invalid counts in metadata and reports, and a changelog note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:07:11 -04:00
Joseph Magly 985c9e9363 feat: add safe distributed checkpoint intake and preflight 2026-09-04 19:43:53 -04:00
Joseph Magly 51529ad1d7 test: add Gate 3 numerical oracle contracts 2026-08-15 20:09:21 -04:00
Joseph Magly ff0a298c6d Test Windows console and path portability contracts
Cover legacy console fallbacks, platform temp paths, local UI disk probing, and lazy analysis exports. Bind the new local UI test to the executable source-to-test risk map.
2026-08-15 03:13:27 -04:00
Rached Rayeh 2295ef3571 feat(cli): add aggregate output format options for docs parity
The README/CONTRIBUTING examples used `obliteratus aggregate --format ...` but the CLI only accepted `--dir`.
This adds `--format {summary,latex}`, `--metric`, and `--min-runs` to the aggregate command, reuses community LaTeX table generation, and adds CLI parsing tests to align behavior with documented usage.
2026-08-13 22:28:29 -04:00
pliny 66ea4a6f86 Add files via upload 2026-03-05 00:50:44 -08:00