Skip to content
Back to skills

John Muir Ant Eval

ASecurity

Evaluates the ability of a genetic algorithm to evolve a navigation program for an artificial ant to traverse a complex, toroidal grid trail with gaps and high-difficulty sections. The benchmark measures how well the evolved program generalizes beyond the standard Santa Fe trail into a chaotic extended sector. Use when the user wants to benchmark on John Muir Ant Problem, or asks about evaluating this task. Reports score.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
researchpythongo

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill john-muir-ant-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of John Muir Ant Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for John Muir Ant Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-john-muir-ant-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-john-muir-ant-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: john-muir-ant-eval
description: Evaluates the ability of a genetic algorithm to evolve a navigation program for an artificial ant to traverse a complex, toroidal grid trail with gaps and high-difficulty sections. The benchmark measures how well the evolved program generalizes beyond the standard Santa Fe trail into a chaotic extended sector. Use when the user wants to benchmark on John Muir Ant Problem, or asks about evaluating this task. Reports score.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 0910.5542
  bibtex_key: [REDACTED]
  confidence: high
---

# john-muir-ant-eval

> Forced Evolution in Silico by Artificial Transposons and their Genetic Operators: The John Muir Ant Problem — Spirov et al. (2009) (arXiv:0910.5542, 2009)

## What this evaluates

Evaluates the ability of a genetic algorithm to evolve a navigation program for an artificial ant to traverse a complex, toroidal grid trail with gaps and high-difficulty sections. The benchmark measures how well the evolved program generalizes beyond the standard Santa Fe trail into a chaotic extended sector.

## Datasets

- **John Muir Ant Problem** — total 89; splits: test (89)

## Metrics

- `score` **(primary)** — range: [0, 89]
  - Number of food items collected by the ant while traversing the trail within a maximum of 330 time steps. A score of 64 is considered effective.

## Input / output format

**Input**: A 32x32 toroidal grid with a predefined 89-step trail containing food items and gaps. The ant's program receives sensor inputs (e.g., food ahead, empty ahead, left, right) and outputs actions (move forward, turn left, turn right).

**Output**: A sequence of actions (program) executed by the ant for up to 330 steps on the trail.

## Scoring recipe

```python
def evaluate_ant_program(program, trail, max_steps=330):
    ant_pos = 0
    score = 0
    for step in range(max_steps):
        if ant_pos >= len(trail): break
        sensor = get_sensors(trail, ant_pos)
        action = program.run(sensor)
        ant_pos = move(ant_pos, action, trail)
        if trail[ant_pos] == FOOD: score += 1
    return score
```

## Common pitfalls

- The trail extends beyond the standard Santa Fe trail (first 64 steps) into a chaotic high-difficulty sector, requiring generalization beyond simple trail following.
- The evaluation uses a fixed maximum of 330 time steps; exceeding this limit stops the run regardless of progress.
- Score is averaged over 100 independent runs to account for stochasticity in the genetic algorithm.

## Evidence (verbatim from paper)

> The test trail used in this work is illustrated in Fig. 4. It can be seen that up to the 64th element our trail coincides with the Santa Fe trail, but afterwards includes chaotically scattered elements of high difficulty. ... Everywhere in this section we will accept that an effective navigation algorithm should exceed a score of 64 in 330 time steps. ... The score values are averaged over 100 runs in both cases.

## Citation

```bibtex
@misc{spirov2009forced,
  title={Forced Evolution in Silico by Artificial Transposons and their Genetic Operators: The John Muir Ant Problem},
  author={Spirov et al. (2009)},
  year={2009},
  note={arXiv:0910.5542}
}
```

- arXiv: 0910.5542

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.