Commit graph Aetheria/tests/Aetheria.Shared.Tests/EconomyChecksTests.cs
Author SHA1 Message Date
soul
40c335a200 SourceSink: a habitation module's table is a sink, and a consumer good is judged as every good is (cut habitation-gear)
The consumer-good skip of the sink half is deleted; the test that pinned the skip becomes ModuleTableIsASink.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-29 05:42:12 +01:00
soul
c3499e6b34 L-facility, the station room census, and the random fill leaves Facility rows alone
EconomyChecks gains L-facility: a recipe names a recipe facility some kind lists and its own kind
lists it; a kind's Facilities hold recipe facilities; a FacilityData sits only on Facility gear.
StationKinds.FacilityRoomFaults judges that every offered station hull has the Facility rows to take
the facilities of every kind it serves. LoadoutGenerator.EquipHardpoints skips Facility rows (a
kind's Facilities fill them, a later cut); IsHeater is internal for the room test. The economy
fixture gains the facility design MillWorks and a Facility row on each station hull.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 04:33:21 +01:00
soul
bf0d1ed249 Ore batch apply, code: OresAndProvinces replaces DemoOre; MunitionsFeed keeps references to the batch's four recipes; L-weights shape rule (aetheria-living-world, cut ore-batch-apply r3)
OresAndProvinces (from 371b4d04a) is the one writer of ores, their extraction recipes, the first smelting step, field kinds, province types and the mining station text. Ore() and Rename() set a Shape. DemoOre, DemoOreSheetTests (two tests moved to OresAndProvincesTests), Program.cs FieldKindsCatalog and MunitionsFeed's Make(CultRecordKey) and four Make calls are deleted. StationKindDescriptionTests asks Recipes.IsRaw. EconomyChecks.Weights (L-weights) refuses negative or non-finite weights and dangling yield, kind and ore refs. The catalog apply is the next commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 17:08:19 +01:00
soul
ccd9792d2f Economy tests: role inputs persist, are read by every rule as any filler, offered recipe-less designs demand their roles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 10:56:21 +01:00
soul
dc4838bd9e Economy checks: upkeep walk test gets a control case and a baseline that is actually shared
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 10:07:40 +01:00
soul
da067a34a2 Economy checks: the consumer walk follows upkeep edges; pin upkeep into a consumer good and a role filler
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 10:06:15 +01:00
soul
8e6fd43d23 Economy checks: ConsumerDemand tests recipes, not keys; pin upkeep reached through a chain
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:32:13 +01:00
soul
8d23a378d6 Economy checks: gearRoles reads roles of non-commodity recipes; pin use order and batch list
Mutation testing found IsRoleRecipe redundant in the gear-role set (RolesOf is empty for a
design without roles) and the message's use order, join and the unknown-batch count unpinned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:19:00 +01:00
soul
7df0a0943f Economy checks: consumer demand derived from shared uses; a weapon's draw is a sink
ConsumerDemand drops the two-or-three-step window (rulings consumer-demand-shared-only,
consumer-demand-skips-final-assemblies): a processed good owes a consumer use when it is
shared, derived from the recipe graph each check. A weapon's draw of a round is one use
(ruling draw-is-one-use). SourceSink counts a drawn commodity as sunk. Drawn is the one
reader of offered designs' WeaponData.AmmoType. Tests are unrun at this commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 04:38:05 +01:00
soul
6b89019c02 Economy checks: an undefined radius refuses; factor refusal says why 2026-10-23 04:24:32 +02:00
soul
c6c8b4465b Economy checks: pins from mutation testing; drop two redundant guards 2026-10-23 04:14:42 +02:00
soul
bacb56c613 Recipe schema and catalog checks: RecipeData, OutsideMarketData, role counts, EconomyChecks over fixture catalogs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 02:43:35 +02:00