Facts and rules: the single source
Generated from
_data/facts.jsonand_data/rules.json. Do not hand-edit: change the atom, then runscripts/gen-atoms.py. Agents: the same data is at/facts.jsonand/rules.json.
Verified against structsd v0.23.0 (f6dc0047fa896aaa4fdc4be21eb22c12f7ae3e1e) on 2026-11-27. Source paths are in the structsd repository unless they name another one. Times assume 6-second blocks.
When two pages disagree, this page wins. If this page is wrong, fix the atom: every page that embeds it changes too, and the claim lint (scripts/ci/check-claims.py) stops the old wording from coming back.
Source repositories
| Repository | Pinned commit |
|---|---|
| structsd | f6dc0047fa89 (v0.23.0) |
| structs-pg | e4f58f61a9c6 |
| docker-structs-pg | 9a7a89dce204 |
| docker-structs-guild | 86104df74e99 |
| structs-webapp | 1c2b8857b7e1 |
Rules
R.reactor.is-validator
Every reactor is a validator. When a validator is created, the chain initializes its reactor; infusing a reactor is delegating stake to that validator. A jailed validator’s reactor produces no power until it is unjailed and bonded again, which restores power automatically.
- Canonical page: reactor/index.md
- Source:
x/structs/keeper/hooks.go:40-43 (AfterValidatorCreated -> ReactorInitialize); x/structs/keeper/hooks.go:84-86; x/structs/keeper/reactor_hooks.go
R.raid.gate
A raid can complete only while the defender is vulnerable: no fleet, the fleet off station, or no Command Ship, a destroyed one, or an offline one. While the fleet is on station with an online Command Ship, raid completion is rejected however much work the raider does. The shield number sets the raid’s proof-of-work difficulty (a timer), not whether it can complete.
- Canonical page: knowledge/mechanics/defense.md
- Source:
x/structs/keeper/planet_cache.go:186-215 (IsDefenderCommandStructVulnerable)
R.power.offline
Going over capacity (load above capacity) stops a player from acting: no building, attacking, moving or mining. It does not switch structs off; only deactivation or destruction takes a struct offline. Whether a planet can be raided depends on the Command Ship’s own status and the fleet’s position.
- Canonical page: knowledge/mechanics/power.md
- Source:
x/structs/keeper/player_cache.go:321-324 (player online = power headroom); x/structs/keeper/struct_cache.go:405 (GoOffline only via deactivate/destroy); x/structs/keeper/planet_cache.go:186-215
R.raid.loot
A raid takes only the defender’s stored (unrefined) ore. Its settlement never takes refined Alpha, the vault, the account, or generator fuel. Fighting during a raid can still destroy structs, and a generator that is destroyed for any reason (combat, trashing, or its planet’s depletion) loses its fuel.
- Canonical page: knowledge/mechanics/defense.md
- Source:
x/structs/keeper/msg_server_planet_raid_complete.go:128-131; x/structs/keeper/generator_power_queue.go:204-207; x/structs/keeper/infusion_cache.go:342-361
R.refine.parallel
Launch the refine compute together with the mine compute. A refinery ages while it holds no ore; ore is checked when the refine completes, and a refine that lands with no stored ore is rejected.
- Canonical page: .cursor/skills/structs-production/SKILL.md
- Source:
x/structs/keeper/struct_cache.go:568-588 (CanOreRefine: HasStoredOre at completion)
R.refine.under-raid
Mining and refining cannot complete while a visitor heads the planet’s raid queue (under_raid). When the raid ends the ore clocks shift, so computes that were running must be relaunched.
- Canonical page: playbooks/situations/under-attack.md
- Source:
x/structs/keeper/struct_cache.go:538-540,578-580; x/structs/keeper/planet_cache.go:286-288,451-469
R.compute.same-key
Do not let two auto-submitting computes on one signing key finish together; their submissions collide on the account sequence. Overlap is fine when completions are well apart, as with a fresh mine and refine, which land hours apart. The chain has no rule against overlapping computes.
- Canonical page: SAFETY.md
- Source:
x/structs/client/cli/tx_struct_mine_compute.go:168 (the account sequence is read when the completion is broadcast)
R.player.create
A new key becomes a player through guild signup or a native staking delegate. reactor-infuse from an unregistered address is rejected (2010).
- Canonical page: .cursor/skills/structs-onboarding/SKILL.md
- Source:
app/ante/structs_decorator.go:147-152; app/ante/errors.go:40-41; x/structs/keeper/hooks.go:84-86; x/structs/keeper/vault_context.go:11-16
R.cmd.granted
A player’s fleet and Command Ship are created the first time the fleet is used, normally the first planet-explore. The Command Ship starts online only if the player can carry its 50 W draw. Planet builds need it online and the fleet on station.
- Canonical page: knowledge/mechanics/fleet.md
- Source:
x/structs/keeper/fleet_cache.go:43-59; x/structs/keeper/struct_context.go:127-148; x/structs/keeper/planet_cache.go:572-582
R.pow.d-gate
In the structsd v0.23.0 CLI the -D gate is inverted: computes hash from launch and submit as soon as a proof is found. -D does not save CPU. The age-to-difficulty times in the docs are correct chain math.
- Canonical page: .cursor/skills/conventions.md
- Source:
x/structs/client/cli/tx_struct_mine_compute.go:134-137 (and build, refine, raid compute)
R.grass.subjects
Planet activity (raids, structs, fleets) is published on structs.planet.{planet_id}.{owner_player_id}; subscribe with structs.planet.{planet_id}.. There are no structs.struct., structs.fleet.* or structs.global subjects; blocks arrive on consensus.
- Canonical page: .cursor/skills/structs-streaming/SKILL.md
- Source:
structs-pg/deploy/trigger-grass-planet-activity-20260707-add-owner-player-id.sql:17-33; docker-structs-pg/sync-state/internal/db/notify.go:29-38
R.grass.raid-status
raid_status events carry the chain’s RaidStatus names in detail.status: initiated, ongoing, shieldsVulnerable, attackerDefeated, attackerRetreated, raidSuccessful, demilitarized.
- Canonical page: api/streaming/event-schemas.md
- Source:
proto/structs/structs/keys.proto:85-93 (enum raidStatus); docker-structs-pg/sync-state/internal/events/raid.go:78-94
R.build.difficulty-700
Only the Ore Refinery and the Field Generator have build difficulty 700; other planet structs range from 720 to 5,000, and the Ore Extractor is 10.
- Canonical page: knowledge/entities/struct-types.md
- Source:
x/structs/types/genesis_struct_type.go:1158-1854
R.reactor.location
Reactors are not on planets. Each reactor is backed by a validator and belongs to a guild; a dying planet does not take a reactor with it.
- Canonical page: knowledge/mechanics/energy.md
- Source:
proto/structs/structs/reactor.proto (validator, guildId); proto/structs/structs/planet.proto (no reactor field)
R.tx.y-flag
-y is off by default. Examples show the interactive form; only the four compute commands (each preceded by an Approval Block) carry -y, and an agent adds it elsewhere only after commander approval.
- Canonical page: SAFETY.md
- Source:
policy (SAFETY.md)
R.perm.defense-set
Setting defenders (struct-defense-set) requires PermPlay on the struct’s owning player; there is no narrower defense-only permission. A watcher that only alerts needs no grant.
- Canonical page: .cursor/skills/structs-permissions/SKILL.md
- Source:
x/structs/keeper/msg_server_struct_defense_set.go:42; x/structs/keeper/struct_cache.go:493-494
R.reactor.commission-fixed
A reactor’s energy commission is set to 4% when the reactor is created and is not read from the validator afterwards. Changing the validator’s Cosmos commission (edit-validator –commission-rate) changes staking rewards only, not the energy split.
- Canonical page: reactor/index.md
- Source:
x/structs/keeper/reactor_hooks.go:113 (0.04 at ReactorInitialize); x/structs/keeper/reactor_hooks.go:341-345 (ReactorUpdateFromValidator is empty)
R.grid.allocation-source
An allocation’s source can be a guild, a player, a bonded reactor or a substation. A struct cannot be an allocation source.
- Canonical page: knowledge/mechanics/energy.md
- Source:
x/structs/keeper/struct_cache.go:522 (CanAllocateAsSourceBy: unacceptable_source); x/structs/keeper/msg_server_allocation_create.go:31-48
R.guild.entry-substation
Every guild join path connects the joining member to the guild’s entry substation (or to a –substation-id override where the path allows one). Changing the entry substation affects only members who join afterwards; existing members must be moved.
- Canonical page: run/guild-power.md
- Source:
x/structs/keeper/guild_membership_cache.go:198-207,251-260,319-324; x/structs/keeper/player_cache.go:464-474
R.grid.infusion-not-substation
Infusing a reactor raises only the reactor’s share and the infuser’s own capacity; it does not power any substation. Power reaches a substation only through an allocation into it. An automated allocation on the infused source resizes itself as that source’s capacity changes, which is the one way an infusion flows through on its own.
- Canonical page: run/guild-power.md
- Source:
x/structs/keeper/infusion_cache.go:132-201; x/structs/keeper/allocation_context.go:326-338
R.reactor.bonded-only
A reactor produces energy only while its validator is bonded and not jailed. Unjailing and re-entering the active set restores power automatically; reactor-restart only re-syncs stored state and cannot make an unbonded validator produce power.
- Canonical page: reactor/index.md
- Source:
x/structs/keeper/reactor_energy.go:13-23; x/structs/keeper/hooks.go:25-31; x/structs/keeper/msg_server_reactor_restart.go:11-14
R.charge.cost
Charge is the number of blocks since your last charge action, and every charge action resets it to 0. An action needs charge at least its cost: build-initiate and trash 1, activate 2, move 3, an attack its weapon’s charge (3 or more). The ante also accepts only one charge action per player per block (2021).
- Canonical page: knowledge/mechanics/building.md
- Source:
x/structs/keeper/player_cache.go:189-191,276-279; x/structs/keeper/msg_server_struct_activate.go:44; x/structs/keeper/msg_server_struct_attack.go:50; x/structs/types/genesis_struct_type.go (ActivateCharge 2, MoveCharge 3, BuildCharge 1)
Facts
| ID | Value | Meaning | Source |
|---|---|---|---|
F.chain.id |
structstestnet-111 |
Current testnet chain ID | docker-structs-guild/.env.example:3; structs-webapp/src/js/constants/ChainConstants.js:3 |
F.net.rpc |
https://public.testnet.structs.network:26657 |
Public RPC endpoint (set as node in client.toml) |
docker-structs-guild/.env.example:7-8 |
F.net.lcd |
https://public.testnet.structs.network |
Public REST (LCD) endpoint | docker-structs-guild/.env.example:63-64 |
F.chain.block_time |
6 s |
Assumed block time used for every hour figure in the docs; it is the node’s timeout_commit, not a chain parameter | x/structs/types/genesis_struct_type.go:1158 (comment); no module param |
F.pow.formula |
difficulty = 64 - max{k <= 63 : range^k <= age^63}, minimum 1 |
Required leading hex zeros for a proof, falling with age; difficulty 1 is reached when age equals the range | x/structs/types/work.go:78-108 |
F.build.extractor.difficulty |
10 |
Ore Extractor build difficulty range (ready in about a minute) | x/structs/types/genesis_struct_type.go:1158 |
F.build.refinery.difficulty |
700 |
Ore Refinery build difficulty range | x/structs/types/genesis_struct_type.go:1245 |
F.build.refinery.d3 |
56.9 min |
Ore Refinery build: age to difficulty 3 (70 min to difficulty 1) (derived) | F.pow.formula with range 700 |
F.mine.range |
14,000 |
Ore mining difficulty range | x/structs/types/genesis_struct_type.go:1220 |
F.refine.range |
28,000 |
Ore refining difficulty range | x/structs/types/genesis_struct_type.go:1308 |
F.mine.d3 |
17.2 h |
Mining: age to difficulty 3 (derived) | F.pow.formula with range 14000 (10,340 blocks) |
F.mine.d1 |
23.3 h |
Mining: age to difficulty 1 (derived) | F.pow.formula with range 14000 (14,000 blocks) |
F.refine.d3 |
33.7 h |
Refining: age to difficulty 3 (derived) | F.pow.formula with range 28000 (20,230 blocks) |
F.refine.d1 |
46.7 h |
Refining: age to difficulty 1 (derived) | F.pow.formula with range 28000 (28,000 blocks) |
F.pipeline.exposure |
17 h |
Usual window in which mined ore can be stolen when a fresh mine and refine reach difficulty 3 together (with delayed launches; an undelayed CLI compute lands both earlier, with a shorter gap) (derived) | F.refine.d3 - F.mine.d3 |
F.charge.build_initiate |
1 |
Charge cost of struct-build-initiate, for all 22 struct types | x/structs/types/genesis_struct_type.go (BuildCharge: 1 on every type) |
F.charge.per_block |
1 |
Charge-consuming messages accepted per player per block (a second one fails with 2021) | app/ante/errors.go:48-49; app/ante/throttle.go:86-113 |
F.planet.start_ore |
5 |
Ore in a newly explored planet | x/structs/types/keys.go:358 |
F.planet.slots |
4 |
Slots per ambit on a new planet | x/structs/types/keys.go:359 |
F.power.player |
25 W |
Player base draw | x/structs/types/keys.go:338 (PlayerPassiveDraw = 25000 mW) |
F.power.cmd |
50 W |
Command Ship passive draw | x/structs/types/genesis_struct_type.go (type 1, PassiveDraw 50000) |
F.power.extractor |
500 W |
Ore Extractor build and passive draw | x/structs/types/genesis_struct_type.go (type 14, 500000) |
F.power.refinery |
500 W |
Ore Refinery build and passive draw | x/structs/types/genesis_struct_type.go (type 15, 500000) |
F.power.onboarding |
1075 W |
Load with player, Command Ship, Extractor and Refinery all online (derived) | F.power.player + F.power.cmd + F.power.extractor + F.power.refinery |
F.energy.unit |
1 ualpha = 1 mW |
Infusion converts stake to power one to one, so 1 gram of Alpha is about 1 kW | x/structs/keeper/reactor_hooks.go (infusion power = stake in ualpha, in mW); x/structs/types/keys.go:338 shows the mW unit (PlayerPassiveDraw 25000 = 25 W) |
F.substation.passthrough |
90 % |
Share of a substation’s capacity it can pass on to connections | x/structs/types/substation_capacity.go:3-7 (SubstationUsableCapacity = floor(90% of incoming)) |
F.reactor.commission |
4 % |
Default reactor commission; the infuser keeps the rest | x/structs/keeper/reactor_hooks.go:113 |
F.reactor.stake_cap |
30 % |
Most of the bonded stake any one reactor may hold once 10 validators are bonded (error 1613) | x/structs/types/params.go:10-11; x/structs/keeper/reactor_stake_cap.go:43-131; x/structs/types/errors.go:237 |
F.reactor.diversity_max |
50 % |
Maximum owner diversity bonus for stake spread across reactors | x/structs/types/params.go:12-13 |
F.guild.create_cost |
2,000,000 ualpha |
Cost of guild-create, paid from the founder’s vault | x/structs/keeper/msg_server_guild_create.go:64 |
F.grass.planet_subject |
structs.planet.{planet_id}.{owner_player_id} |
NATS subject for planet activity (raids, structs, fleets); subscribe with structs.planet.{planet_id}.* | structs-pg/deploy/trigger-grass-planet-activity-20260707-add-owner-player-id.sql:17-33 |
F.grass.block_subject |
consensus |
NATS subject for new blocks | docker-structs-pg/sync-state/internal/db/notify.go:29-38 |
F.grass.raid_statuses |
initiated, ongoing, shieldsVulnerable, attackerDefeated, attackerRetreated, raidSuccessful, demilitarized |
Values of detail.status on raid_status events | proto/structs/structs/keys.proto:85-93; docker-structs-pg/sync-state/internal/events/raid.go:78-94 |