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

DEFAULT_TASKS_ROOT

DEFAULT_VAULT_DIR

DEFAULT_ARENA_DIR

BG_CANVAS

BG_CARD

FG_TEXT

FG_MUTED

FG_ACCENT

FG_WARN

Functions

get_tasks_root([tasks_root]) → pathlib.Path

Resolve the puzzle corpus root directory.

get_vault_dir([vault_dir]) → pathlib.Path

Resolve the sealed ground-truth vault directory.

get_arena_dir([arena_dir]) → pathlib.Path

Resolve the public trial bundle output directory.

resolve_puzzle_path(puzzle_spec[, tasks_root]) → tuple[pathlib.Path, str, str]

Resolve a puzzle specification into (json_path, corpus_label, puzzle_id).

choose_cell_size(max_dim) → int

Choose a crisp pixel cell size so even 30x30 grids stay compact and readable.

render_grid_image(grid_data[, cell_size]) → PIL.Image.Image

Render a 2D integer grid using SEER's canonical color palette and cell digits.

render_pair_card(title, left_grid[, right_grid, ...]) → PIL.Image.Image

Render a labeled side-by-side card for Input -> Output (or blind '?' placeholder).

stack_cards_vertically(header_text, cards) → PIL.Image.Image

Stack rendered pair cards into a single overview board.

render_trial_bundle(trial_id, train_pairs, ...[, ...]) → dict[str, Any]

Write puzzle.json, README.md, and images/*.png into trial_dir.

deal_trial(puzzle_spec[, topology, match_id, ...]) → dict[str, Any]

Deal a single blind puzzle bundle and seal its expected test outputs in the vault.

deal_head_to_head(puzzle_spec[, topologies, ...]) → dict[str, Any]

Deal independent anonymized trials on the exact same puzzle for multiple topologies.

get_trial_status(trial_id[, vault_dir]) → dict[str, Any]

Return zero-leakage status metadata for a dealt trial.

get_public_trial(trial_id[, vault_dir]) → dict[str, Any]

Return full public puzzle data + image paths for trial_id with zero test leakage.

normalize_predictions(predictions, expected_num_test) → list[list[list[int]]]

Validate and normalize predicted test output grid(s) prior to consuming an attempt.

submit_trial_predictions(trial_id, predictions[, ...]) → dict[str, Any]

Judge submitted test prediction(s) with strict binary PASS/FAIL and attempt cap.

verify_solution_on_trial(puzzle_json_path, ...[, ...]) → dict[str, Any]

Verify solution.py:transform(grid) against public training pairs and render test predictions.

load_scoreboard_records([match_id, vault_dir]) → list[dict[str, Any]]

Load vault records (optionally filtered by match_id) sorted by creation time.

print_scoreboard([match_id, vault_dir, as_json]) → None

Render a host-side reveal scoreboard comparing topologies across dealt trials.

register_antigravity_mcp([server_bin]) → list[str]

Register the seer stdio MCP server in Antigravity's mcp_config.json files.

main([argv]) → int

CLI entry point for seer-arena.

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/00d62c1b or ConceptARC/Center/Center1, or bare puzzle stem like 00d62c1b.

  • tasks_root – Root directory containing ARCv1, ARCv2, and ConceptARC.

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, and images/*.png into trial_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_id with 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.json inside trial_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.

geometor.seer.arena.register_antigravity_mcp(server_bin: str | None = None) → list[str]

Register the seer stdio MCP server in Antigravity’s mcp_config.json files.

geometor.seer.arena.main(argv: list[str] | None = None) → int

CLI entry point for seer-arena.