Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Organism model

Flock treats the harness as a living organism: genomes express coordination parameters, circulation vitals track field health, and an immune gate rejects harmful topology mutations.

Status: Phases 1–4 complete (circulation, DNA lineage, immune gate, per-zone expression).

Architecture

flock-core/organism.rs     DNA types + circulation vitals + zone expression
flock-substrate/pheromone  per-zone decay (fallback to global lambda)
flock-runtime/circulation  vitals + immune_fever tracking
flock-runtime/engine.rs    vitals + genome_id + fever + decay wire-through
flock-evolve/genome.rs     lineage + crossover + archive reconstruction
flock-evolve/immune.rs     corpus threat detection + auto_reject
flock-evolve/mutator.rs    crossover + cold-zone decay adjustment
flock-cli/organism_cmd.rs  flock vitals | flock genome list|lineage

Organism loop

flowchart LR
    RUN[flock run] --> VITALS[circulation vitals]
    VITALS --> EP[episode JSON]
    EP --> EV[flock evolve]
    EV --> IMM[immune_report]
    IMM -->|accept| ARCH[genome archive]
    IMM -->|reject| QUAR[quarantine]

    class RUN,VITALS,EP runtime
    class EV,ARCH evolve
    class IMM,QUAR gate
  1. FlockGenome expresses coordination + decay params at episode end
  2. PheromoneField circulation → CirculationVitals in episode
  3. flock evolve mutates or crossover (Pareto ≥ 2) → immune_report() gates accept
  4. Quarantined genomes excluded from archive.nearest() seed
  5. Per-zone decay tuned from proposer cold-zone heatmap

CLI

flock run --goal "reach target" --plugin gridworld
flock vitals
flock evolve --episodes 10
flock genome list
flock genome lineage <genome_id>

Phase completion

PhaseDeliverableStatus
1 Circulationcirculation_vitals, flock vitals, fitness dimension
2 DNAgenome_id lineage, archive seed reconstruction, flock genome
3 Immunedrift + fitness + immune gate, quarantine, fever deposit
4 Expressionper-zone decay, crossover, flux-grid test, fever unit test

flux-grid (optional)

  • Feature: flock-substrate/flux-grid (vendored 64×64 Stigmergy grid)
  • Not enabled in default builds — zone-keyed PheromoneField remains default substrate
  • Enable for experiments: cargo build -p flock-substrate --features flux-grid

Known deferred

  • flux-grid in swarm-demo default path
  • Full parent_ids lineage CLI (crossover sets parent_ids; CLI shows primary parent_genome_id only)
  • RAH_MAX_DEPTH in flock-core (cycle avoidance with flock-evolveflock-rah)

See also