geometor.seer.arena¶
Blind puzzle arena, multimodal trial bundler, training verifier, and vault judge for SEER.
Separates public puzzle bundles (anonymized trial_id, training pairs, blind test inputs,
and rendered PNGs) from a sealed host-side answer vault so MCP solver agents cannot peek at
puzzle identifiers or expected test outputs.
Attributes¶
Functions¶
|
Resolve the puzzle corpus root directory. |
|
Resolve the sealed ground-truth vault directory. |
|
Resolve the public trial bundle output directory. |
|
Resolve a puzzle specification into |
|
Choose a crisp pixel cell size so even 30x30 grids stay compact and readable. |
|
Render a 2D integer grid using SEER's canonical color palette and cell digits. |
|
Render a labeled side-by-side card for Input -> Output (or blind '?' placeholder). |
|
Stack rendered pair cards into a single overview board. |
|
Write |
|
Deal a single blind puzzle bundle and seal its expected test outputs in the vault. |
|
Deal independent anonymized trials on the exact same puzzle for multiple topologies. |
|
Return zero-leakage status metadata for a dealt trial. |
|
Return full public puzzle data + image paths for |
|
Validate and normalize predicted test output grid(s) prior to consuming an attempt. |
|
Judge submitted test prediction(s) with strict binary PASS/FAIL and attempt cap. |
|
Verify |
|
Load vault records (optionally filtered by |
|
Render a host-side reveal scoreboard comparing topologies across dealt trials. |
|
Register the |
|
CLI entry point for |
Module Contents¶
- geometor.seer.arena.DEFAULT_TASKS_ROOT¶
- geometor.seer.arena.DEFAULT_VAULT_DIR¶
- geometor.seer.arena.DEFAULT_ARENA_DIR¶
- geometor.seer.arena.BG_CANVAS = (18, 20, 26)¶
- geometor.seer.arena.BG_CARD = (28, 32, 42)¶
- geometor.seer.arena.FG_TEXT = (232, 236, 244)¶
- geometor.seer.arena.FG_MUTED = (156, 166, 184)¶
- geometor.seer.arena.FG_ACCENT = (110, 190, 255)¶
- geometor.seer.arena.FG_WARN = (245, 194, 66)¶
- geometor.seer.arena.get_tasks_root(tasks_root: pathlib.Path | str | None = None) pathlib.Path¶
Resolve the puzzle corpus root directory.
- geometor.seer.arena.get_vault_dir(vault_dir: pathlib.Path | str | None = None) pathlib.Path¶
Resolve the sealed ground-truth vault directory.
- geometor.seer.arena.get_arena_dir(arena_dir: pathlib.Path | str | None = None) pathlib.Path¶
Resolve the public trial bundle output directory.
- geometor.seer.arena.resolve_puzzle_path(puzzle_spec: str, tasks_root: pathlib.Path | str | None = None) tuple[pathlib.Path, str, str]¶
Resolve a puzzle specification into
(json_path, corpus_label, puzzle_id).- Parameters:
puzzle_spec – Direct path, relative subpath like
ARCv1/training/00d62c1borConceptARC/Center/Center1, or bare puzzle stem like00d62c1b.tasks_root – Root directory containing
ARCv1,ARCv2, andConceptARC.
- Returns:
Tuple of
(resolved_json_path, corpus_label, puzzle_id).
- geometor.seer.arena.choose_cell_size(max_dim: int) int¶
Choose a crisp pixel cell size so even 30x30 grids stay compact and readable.
- geometor.seer.arena.render_grid_image(grid_data: list[list[int]], cell_size: int | None = None) PIL.Image.Image¶
Render a 2D integer grid using SEER’s canonical color palette and cell digits.
- geometor.seer.arena.render_pair_card(title: str, left_grid: list[list[int]], right_grid: list[list[int]] | None = None, left_label: str = 'Input', right_label: str = 'Output', third_grid: list[list[int]] | None = None, third_label: str = 'Expected') PIL.Image.Image¶
Render a labeled side-by-side card for Input -> Output (or blind ‘?’ placeholder).
- geometor.seer.arena.stack_cards_vertically(header_text: str, cards: list[PIL.Image.Image]) PIL.Image.Image¶
Stack rendered pair cards into a single overview board.
- geometor.seer.arena.render_trial_bundle(trial_id: str, train_pairs: list[dict[str, Any]], test_inputs: list[dict[str, Any]], trial_dir: pathlib.Path, max_attempts: int = 2) dict[str, Any]¶
Write
puzzle.json,README.md, andimages/*.pngintotrial_dir.
- geometor.seer.arena.deal_trial(puzzle_spec: str, topology: str = 'seer', match_id: str | None = None, max_attempts: int = 2, tasks_root: pathlib.Path | str | None = None, vault_dir: pathlib.Path | str | None = None, arena_dir: pathlib.Path | str | None = None) dict[str, Any]¶
Deal a single blind puzzle bundle and seal its expected test outputs in the vault.
- geometor.seer.arena.deal_head_to_head(puzzle_spec: str, topologies: list[str] | None = None, max_attempts: int = 2, tasks_root: pathlib.Path | str | None = None, vault_dir: pathlib.Path | str | None = None, arena_dir: pathlib.Path | str | None = None) dict[str, Any]¶
Deal independent anonymized trials on the exact same puzzle for multiple topologies.
- geometor.seer.arena.get_trial_status(trial_id: str, vault_dir: pathlib.Path | str | None = None) dict[str, Any]¶
Return zero-leakage status metadata for a dealt trial.
- geometor.seer.arena.get_public_trial(trial_id: str, vault_dir: pathlib.Path | str | None = None) dict[str, Any]¶
Return full public puzzle data + image paths for
trial_idwith zero test leakage.
- geometor.seer.arena.normalize_predictions(predictions: Any, expected_num_test: int) list[list[list[int]]]¶
Validate and normalize predicted test output grid(s) prior to consuming an attempt.
- geometor.seer.arena.submit_trial_predictions(trial_id: str, predictions: Any, natural_language_program: str = '', transform_code: str = '', agent_topology: str = '', vault_dir: pathlib.Path | str | None = None) dict[str, Any]¶
Judge submitted test prediction(s) with strict binary PASS/FAIL and attempt cap.
- geometor.seer.arena.verify_solution_on_trial(puzzle_json_path: pathlib.Path | str, solution_py_path: pathlib.Path | str, render_visuals: bool = True) dict[str, Any]¶
Verify
solution.py:transform(grid)against public training pairs and render test predictions.Operates strictly on the public
puzzle.jsoninsidetrial_dir(zero vault access).
- geometor.seer.arena.load_scoreboard_records(match_id: str | None = None, vault_dir: pathlib.Path | str | None = None) list[dict[str, Any]]¶
Load vault records (optionally filtered by
match_id) sorted by creation time.
- geometor.seer.arena.print_scoreboard(match_id: str | None = None, vault_dir: pathlib.Path | str | None = None, as_json: bool = False) None¶
Render a host-side reveal scoreboard comparing topologies across dealt trials.