{"_about":"Canonical rule atoms: every 'never', 'always' and 'only' the docs depend on, stated once with its source. scripts/ci/check-claims.py fails the build when a page uses a phrasing listed in a rule's `forbid` (case-insensitive regex), unless the same line matches `allow` (a line that explains the old claim is false). Add a forbid pattern whenever you fix a contradiction, so it cannot come back. Source paths without a repository prefix are in structsd; others name their repository, pinned in `repos`.","schema":1,"verified_against":"structsd v0.23.0 (f6dc0047fa896aaa4fdc4be21eb22c12f7ae3e1e)","verified_at":"2026-11-27","repos":{"structsd":{"url":"https://github.com/playstructs/structsd","commit":"f6dc0047fa896aaa4fdc4be21eb22c12f7ae3e1e","tag":"v0.23.0","default":true},"structs-pg":{"url":"https://github.com/playstructs/structs-pg","commit":"e4f58f61a9c6169238e76f3e4797e9e24dd7c898"},"docker-structs-pg":{"url":"https://github.com/playstructs/docker-structs-pg","commit":"9a7a89dce20422daa16706852b37faf19563691a"},"docker-structs-guild":{"url":"https://github.com/playstructs/docker-structs-guild","commit":"86104df74e99ab554895f9f86e9426158aecb91f"},"structs-webapp":{"url":"https://github.com/playstructs/structs-webapp","commit":"1c2b8857b7e137641bd25660efaf2a09e3b08376"}},"rules":[{"id":"R.reactor.is-validator","modality":"fact","statement":"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.","home":"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","forbid":[],"allow":"","related":["R.reactor.bonded-only","R.reactor.commission-fixed","R.grid.infusion-not-substation"]},{"id":"R.raid.gate","modality":"only","statement":"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.","home":"knowledge/mechanics/defense.md","source":"x/structs/keeper/planet_cache.go:186-215 (IsDefenderCommandStructVulnerable)","forbid":["shield health[^.|]{0,20}raid resistance"],"allow":"","related":["R.raid.loot","R.refine.under-raid","R.power.offline"]},{"id":"R.power.offline","modality":"fact","statement":"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.","home":"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","forbid":["brownout takes the command ship","command ship is offline too"],"allow":"","related":["R.raid.gate"]},{"id":"R.raid.loot","modality":"only","statement":"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.","home":"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","forbid":["raided generator takes","irreversible and raidable","generator[^.]{0,40}\\braidable\\b","if it falls in a raid","generator falls in a raid"],"allow":"not raidable|a raid (itself|alone) cannot|raids? cannot take","related":["R.raid.gate","R.refine.under-raid","R.refine.parallel"]},{"id":"R.refine.parallel","modality":"always","statement":"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.","home":".cursor/skills/structs-production/SKILL.md","source":"x/structs/keeper/struct_cache.go:568-588 (CanOreRefine: HasStoredOre at completion)","forbid":["refine (ore )?immediately","refine (ore )?as soon as (it|ore) (lands|is extracted)","the \\*instant\\* mining lands","refine ore as it lands"],"allow":"used to|old doctrine","related":["R.refine.under-raid","R.compute.same-key","R.pow.d-gate"]},{"id":"R.refine.under-raid","modality":"never","statement":"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.","home":"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","forbid":["refine-if-ready","deny prize only if completable","finish it if (it is )?already completable"],"allow":"there is no","related":["R.raid.gate","R.refine.parallel","R.raid.loot"]},{"id":"R.compute.same-key","modality":"must_not","statement":"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.","home":"SAFETY.md","source":"x/structs/client/cli/tx_struct_mine_compute.go:168 (the account sequence is read when the completion is broadcast)","forbid":["never (launch|run) two `?\\*?-?compute`? jobs (with|on) (the same|one)"],"allow":"","related":["R.refine.parallel","R.pow.d-gate"]},{"id":"R.player.create","modality":"only","statement":"A new key becomes a player through guild signup or a native staking delegate. reactor-infuse from an unregistered address is rejected (2010).","home":".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","forbid":["reactor-infuse path \\(have \\$alpha\\)"],"allow":"","related":["R.cmd.granted"]},{"id":"R.cmd.granted","modality":"always","statement":"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.","home":"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","forbid":["gifted at creation","command ship[^.]{0,30}\\bat creation","receive a command ship at creation"],"allow":"","related":["R.raid.gate"]},{"id":"R.pow.d-gate","modality":"known_issue","statement":"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.","home":".cursor/skills/conventions.md","source":"x/structs/client/cli/tx_struct_mine_compute.go:134-137 (and build, refine, raid compute)","forbid":["zero (cpu|cpu cycles) (is |are )?wasted","zero wasted cpu","waste effectively zero cpu","zero-waste hashing","sleeps until the target is reached"],"allow":"claim is not|is false|not true","related":["R.refine.parallel","R.compute.same-key"]},{"id":"R.grass.subjects","modality":"only","statement":"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.","home":".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","forbid":["structs\\.global","structs\\.struct\\.[\\*\\{0-9]","structs\\.fleet\\.[\\*\\{0-9]","structs\\.planet\\.(\\{[A-Za-z_-]+\\}|[0-9]+-[0-9]+)(?=[`\"' )\\],])"],"allow":"there are no|there is no|no struct subject|no fleet subject|not `structs\\.global`|does not exist|do not exist|matches nothing|no longer match|bare|invented"},{"id":"R.grass.raid-status","modality":"only","statement":"raid_status events carry the chain's RaidStatus names in detail.status: initiated, ongoing, shieldsVulnerable, attackerDefeated, attackerRetreated, raidSuccessful, demilitarized.","home":"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","forbid":["`victory` \\(attacker won\\)","`defeat` \\(attacker lost\\)"],"allow":""},{"id":"R.build.difficulty-700","modality":"fact","statement":"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.","home":"knowledge/entities/struct-types.md","source":"x/structs/types/genesis_struct_type.go:1158-1854","forbid":["700 \\(refinery and most planet structs\\)","most planet structs[^.]{0,20}\\b700\\b"],"allow":""},{"id":"R.reactor.location","modality":"fact","statement":"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.","home":"knowledge/mechanics/energy.md","source":"proto/structs/structs/reactor.proto (validator, guildId); proto/structs/structs/planet.proto (no reactor field)","forbid":["contains → reactor","every struct, reactor, and installation"],"allow":""},{"id":"R.tx.y-flag","modality":"only","statement":"-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.","home":"SAFETY.md","source":"policy (SAFETY.md)","check":"y-flag","forbid":[],"allow":""},{"id":"R.perm.defense-set","modality":"fact","statement":"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.","home":".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","forbid":["needs only defense-set permission"],"allow":"","related":["R.raid.gate"]},{"id":"R.reactor.commission-fixed","modality":"fact","statement":"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.","home":"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)","forbid":["setting a commission"],"allow":""},{"id":"R.grid.allocation-source","modality":"only","statement":"An allocation's source can be a guild, a player, a bonded reactor or a substation. A struct cannot be an allocation source.","home":"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","forbid":["source\\*\\* can be a player, reactor, struct"],"allow":""},{"id":"R.guild.entry-substation","modality":"fact","statement":"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.","home":"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","forbid":["only reroutes \\*\\*new\\*\\* members joining via join-proxy"],"allow":"","related":["R.grid.infusion-not-substation"]},{"id":"R.grid.infusion-not-substation","modality":"fact","statement":"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.","home":"run/guild-power.md","source":"x/structs/keeper/infusion_cache.go:132-201; x/structs/keeper/allocation_context.go:326-338","forbid":[],"allow":"","related":["R.grid.allocation-source","R.guild.entry-substation"]},{"id":"R.reactor.bonded-only","modality":"only","statement":"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.","home":"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","forbid":["`reactor-restart` resyncs after unjail","then `reactor-restart` if power does not return","unjail / `reactor-restart`"],"allow":"","related":["R.reactor.is-validator"]},{"id":"R.charge.cost","modality":"fact","statement":"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).","home":"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)","forbid":["activate and attacks one block apart"],"allow":"","related":["R.compute.same-key"]}]}
