Game Manual

Build a Better Bot — design pages, rendered from the repo docs.

Threads — the decision layer that plays a bot

settled decided — build to this page

Threads are where personality lives. A thread is a catalog item (data/threads/<name>.yaml) with a name and a personality: an affinity for each power color and for any mod it names, immediacy, preservation, and the basics it disables. It plays with that same personality on every bot it pilots.

The bot itself decides nothing. Each assigned thread walks the constellation on its own — its own energy pool, holds, and reset cycle, and one thread turn in each of its bot’s turns. There is no bot-level personality anywhere; a bot’s YAML lists only a threads: template, and two threads on one bot can and should play differently. Awakening, assignment, and the token economy live on the progression and stable pages. This page covers how an assigned thread walks, advertises and plans; how it scores and picks a plan is thread-decision-model.md.

The personality numbers are engine values, so a thread wears them on its face:

Sput7 the Brawler · Apis9 the Shepherd Same shell, opposite play: Sput7 favors BLACK, acts now and minds little what it takes (immediacy 0.6, preservation 0.15); Apis9 favors BLUE and weighs every blow an ally could take (preservation 0.9). Both read live from data/threads/.
Sput7
immediacy 0.6
preservation 0.15
Resting
Apis9
immediacy 0.3
preservation 0.9
Resting

The face. A thread is pictured as itself: the published threads/<name> sprite, or its own emoji until the pack ships one. The roster the player builds is a roster of personalities, so threads don’t share a generic spool icon. A thread’s face is always an object, never a creature — bots wear the creature faces, and a thread borrowing one would look like whatever body it pilots today. Its card frames the face in the color it pulls hardest toward, so a stable sorts by eye.

The player roster, by face Each face is a thread’s own, tinted by the color it pulls hardest toward — read live from data/threads/.
Apis9 Aquila1 Hoarder3 Hystrix6 Mantis8 Mustela2 Pico3 Sput7 Torpedo4

Foresight. Each turn a thread plans, it builds plans of advertised_turns turns through its constellation, scores each with the foresight equation, picks one, fires its first action at the target and tile the plan names, and advertises the rest. Every action a plan takes is played through the arena’s own rules on a copy of the board, so what a mod is worth is measured from what the rules change, never declared by the mod. The equation, the search and the pick are thread-decision-model.md; read it before touching thread decisions. At the arena only a clashing bot’s threads plan; an idle bot’s threads play the idle tree, which searches nothing (idle and clash).

Tuning. Affinity, immediacy and preservation are declared tuning levers (OVL-008, balance-lab §2). Each lies between 0 and 1 and means the same thing on every thread (TCT-008), and each thread values it in its own YAML; an axis a thread leaves unset takes the default (TCT-007). The parameter registry lists every thread’s numbers, and a threads: overlay entry re-resolves an axis for one build. Disabling a basic is thread design, not tuning: a thread that disables move never plans or fires it, and a bot none of whose threads can move is immobile (TCT-009). Holding engagement is thread design too: a thread with holds_engagement: true is offered no move on a turn a rival, decoys included, stands on one of the eight tiles beside its bot, live and on a plan’s board, and on that turn counts as a thread that cannot move (TCT-011). So is being heedless: a thread with heedless: true weighs plans that predict its bot’s death as any other plan (TCT-013, PIK-007).

The walk. Each turn of a plan stands on a star: the first on the thread’s current star, each later one on a successor of the star before. A fire spends a unit of thread energy; a pass spends none and still steps on. An idle thread turn spends no energy and leaves its thread on the star it stands on, so a bot starts every clash where it left off (IDL-003). When the walk ends — the star has no open successor or the energy is spent — the next turn opens with a reset (PSR-001, PSR-003).

Reset. A reset returns the thread to its beginning star, refills its energy, releases its holds and clears its trail, then the thread fires or passes from its beginning star on the same turn, so no reset spends a turn (HDL-004, PSR-001): a walk of n stars fires n times in n turns.

Advertisement. Every planning thread publishes its plan; at the arena an idle bot publishes none (IDL-008). An advertisement covers the bot’s next advertised_turns turns, each with its star, the tile the bot stands on, the action, its target, the payoff and denial the plan measured, and the thread’s reach damage: each damaging action at that turn’s star, with its blows before defenses and the tiles it reaches (ADV-012, ADV-014). A turn that resets carries the reach damage of its beginning star, and nothing marks the reset.

  • A bot advertises its whole plan as soon as it enters a station, before it acts, one advertisement per thread (ADV-013). At the arena a bot whose clash starts advertises as an entrant does, and a bot whose last clash ends drops its advertisement then.
  • After a thread fires, it advertises the rest of its plan followed by a pass on its next star, or, where its walk ends, a pass on its beginning star. A plan that predicts its bot’s death walks on past the death turn the same way.
  • A bot stunned, put to sleep or brought to another side advertises again when the station next publishes: a locked-down bot starts with no action for the turn it loses and drops its last turn. The arena publishes as each turn opens, after each action resolves and as the turn closes, never on a read, so a battle plays the same whether or not anyone watches it.
  • A bot that leaves the board takes its advertisements with it (ADV-004). They are per-battle state no save carries (ADV-005).

Publication holds wherever a bot acts on initiative: the shop keeps its own registry of the same shape (ADV-010, ADV-011). Advertisements join the arena snapshot, so the intent overlay draws what the bots plan (power-station § On screen). An advertisement is intent, not a promise: threads replan every turn. The arena’s read of the steps ahead, which the shop’s bins read for advertised spends, counts a standing idle run as one step that spends nothing (ADV-015).

Telegraphs. A plan’s board plays each other bot’s advertised turns through the arena’s own rules (thread-decision-model.md). A bot’s telegraphs are the hits rivals land on it on the first turn of the board its chosen plan played (arena § Telegraph).

Sight. Threads read every advertisement exactly, never limited by fog-of-war or inexperience. All reads pass through one assessor seat per station (Arena.advertised_paths, Shop.advertised_paths), so imperfect knowledge — delay, blur, omission — is a mask to apply there later (ADV-006).

The trail. Each thread keeps a short memory of its current trajectory: the star and mod of each evaluation and the facts a firing mod offered (TRA-001, TRA-002). Mods query it to confirm a setup landed —

🤺 Feint
Power Yellow

Strikes an enemy within two tiles that this thread already damaged earlier this pass, for 5 damage.

’s bonus asks whether this thread already damaged the target — and it clears on reset (TRA-003). Each thread keeps its own; it is trajectory memory only, never a channel for bot-wide state (TRA-004).

The order threads plan in. A bot’s threads plan in order of immediacy, highest first, and by name where equal, at every station (HDL-009). Each thread plans on a board that includes the plans its bot’s earlier threads chose this turn, read as an ally’s advertisements, and its action resolves before the next thread plans, so the threads fire in the order they planned (HDL-010). A thread due for reset resets on its own thread turn, as that turn is carried out and before it fires, so the holds it releases are still held while the threads before it plan (HDL-004). When a bot is no longer on the board after one of its threads acts, none of its remaining threads plans or acts that turn (HDL-011).

Derived specs — engine/bbsb_engine/test/constellation/threads_spec.yaml · THD thread-lifecycle · TCT thread-catalog · FRS foresight · PSR plan-search · PIK plan-pick · PBD plan-board · PAY payoff · DNL denial · PDM threat · PLN planning · MOV movement · DGR danger · TRA trail · HDL coordination · ADV advertisement · URG urgency. SPC-016 — slipstream, first place in the turn order — sits in thread-lifecycle; the chassis options are designed in docs/design/bot-specializations.md § 3. The decision model is thread-decision-model.md. An idle thread turn, which spends no energy and publishes no plan, is combat/combat_spec.yaml’s IDL-003 and IDL-008.