A leg whose orbit lies in the hauler's zone needs no search of the region (and a galaxy whose entrance Contents a test never set
made the search find no zone, leaving the on-screen hauler idle: TheLegIsTheHold and AHaulerCarriesSiloOreToTheRefinery).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
OffScreenFlightAgreesWithOnScreen bounds off/on at 0.57 (shipped 0.403, Fly at half speed 0.807); RegionLegsFeedTheChain pins that the
served Pirates and Zhestokost rigs run more than 17% of the spans (shipped least 26.3, no legs 11) and their refineries run.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Seeding once and deterministically, the no-silo producer loading where its outputs land, off-screen hauling and jumping, cargo
conserved across legs, jumps and a save, a hauler entering the player's zone as a ship, an on-screen hauler leaving by its wormhole,
a hauler waiting for a free empty bay, and a killed hauler not replaced.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
EconomyRegion no longer parks the haulers or drives zones with its own AdvanceTo loop: each tick calls RegionClock.Advance(galaxy,
null, time). The report counts legs and haulers; an idle recipe's missing input reads as a cross-faction leg (region-cross-faction-legs)
or a lost hauler, and the 'no cargo moves' line is gone.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
HaulRun.Waypoint names the leg's orbit and the next hop toward it (FindPath); on screen HaulState flies to the zone's wormhole
(MoveToPointState) and commands the Jump verb, which dives and transfers when the dive ends. Off screen RegionClock.Advance
advances the zones of its set, then flies each hauler once (HaulRun.Fly: straight at the waypoint at Agent.TopSpeedOf, Call at a
station when CanCall, Jump at a wormhole, stopping when it waits or lands outside the advanced set; into the player's zone it plays
ExitWormhole). Step's boundary and Enter's settle both call Advance. Zone.AdvanceTo stays facilities and populations only.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
For every station and every good its installed gear could draw and it does not make, one order from the nearest producer of its
own faction (jumps, then zone index, then entity order), one order per (producer, station), Commitment generation:region-legs;
then one piloted hauler per order at its producer's orbit. RunStart.SeedLegs (its own item stream, LegStep) runs after Materialize
in Begin and in a region boot of AetherDb; Continue seeds nothing. The hauler hulls are conjured by the faction's
LoadoutGenerator: interim scaffolding (economy-is-never-faked, demo-hulls-staged), named for conjuring-site-deletions.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
StationServices.Load and HaulRun.CanCall read StationWants.OutputBays per good, not SiloData bays: a station with a silo is
unchanged, one without loads where its outputs land. CanCall also requires the bay TryDock would take to exist and hold no cargo
(TryUndock refuses one that does). StationWants gains Drawable (every draw of the installed recipe facilities, startable or not)
and Makes (the set Allocation builds); Agent.TopSpeedOf gives Fly and the pilot one speed rule.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The renderer derived wormhole positions from GameSettings.WormholeDistanceRatio and the player's exit read them back from its
instances. Zone.Wormholes (and WormholeTo) now derive them from GameplaySettings.WormholeDistanceRatio, which Settings.asset
carries under GameplaySettings (0.75, unchanged); ZoneRenderer draws what the zone says. WormholesAreTheZones pins the
positions, the exit gate included.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
leviathan.intents.json drops brokkr_mesh_polish.delight; rig.ps1 reran and the committed .springrig is its export, sha256
F9C9C720998464ABCA72567B02F606DA6D94ECCCE36791C87ED3C6E4D18D8BBA (6.6 MB: the source JPEG is kept, not a re-encoded 22 MB PNG). The
tendrils stay supple. The pinned base colour hash becomes 975E8E8458CCBA274F94B777745265291530F26F4E42EFA9F3FFDD85D3BF28C4, the same
with Direct3D11 and with -nographics. Run, VerifyGlbCases, ImportNoGfx and VerifyGlb on the asset pass; the rest-pose reading is still
6.02e-7 against the 7.8e-5 tolerance.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
import-needs-gpu: SpringRigImporter.Albedo no longer blits through a RenderTexture: decode, area-average downscale, mip chain and BC7 are
CPU work, so the texture is the same with or without a device (raw SHA-256 E204A8B6B6CD1F93185B6AACCD2D1B95A61508B498F8ABA302C57E34049498AE
with Direct3D11 and with -nographics). The importer version is 2 and the importer depends on its own script, so an edit reimports.
SpringRigVerify.ImportNoGfx (run with -nographics) reimports the committed asset and checks the hash; importer-builds checks the same hash
and that the texture is sRGB.
shadow-skin-unpinned: shadow-is-skinned renders a ShadowsOnly leviathan under a downward light and compares the floor shadow with the
projection of its skinned triangles: IoU 0.877 shipped, 0.330 with SHADOWCASTER dropped from the shader guard; bound 0.538.
edges-unpinned: root-jump-resets (a joint 1.79 from rest if a jump during the ease seeds from the drawn pose, 8e-8 shipped; bound 3.9e-4),
normals-are-skinned (light seen from a bent whale 41253 shipped, 13667 with the normals unskinned; bound 23700), the BlendSeconds default in
0.5 to 1 (kills 0.25), sRGB (kills a linear texture). Each mutant fails Run; the final Run passes.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Asset Sources/Fauna/leviathan.source.glb (Deru's source, LFS) and leviathan.intents.json (the recipe's intents alone): importGltf,
brokkr_mesh_polish.repair, .orient (length 1, flip_forward so the head lands at Blender -Y, glTF and Unity +Z), .delight (clusters 3),
brokkr_rig.body (spine_bones 8, head -y, Soul's seeds jaw, sac_a, sac_b, fin with x and y negated through the half turn: the receipt names
all four parts), .tendrils (tau .04, band .04, dilate .04, stiffness 1.5, stiffness_tip_ratio 0.3, drag 0.08), .colliders, exportGltf.
These are the recommended options of questions leviathan-delight (delit) and leviathan-tendril-feel (supple); another ruling is an edit
to the intents and a rerun.
- tools/blender/fauna/rig.ps1: makes private BLENDER_USER_* directories under -Out, writes the recipe with absolute directories,
runs Brokkr's run_intents.py, copies the export to -Dest. Rerun from the source and intents it gave a byte-identical file (sha256
23800FEEC4ADF1A2075A224FB2F8832C89BFF775D93C147A5B88E188040A8ECF).
- Assets/Content/Fauna/Leviathan/leviathan.springrig (LFS) and its .meta, whose importer fields carry the swim (amplitude 9, period 3.2 s,
0.1 phase per bone, axis x). Assets/Content is the Addressables folder entry, so the whale is addressable by GUID.
- .gitattributes: the .springrig and Asset Sources .glb files are LFS.
- SpringRigVerify: importer-builds (the main object, Rig, the mesh's streams and vertex count against glTFast's, BC7 with mips, the
Addressables entry, Awake) is the last check of Run; VerifyGlbCases adds the committed asset (exit 0, head at +Z: the spine root rests
past the mesh's centre along Z). glTFast's import is one function, Import, for the comparison and the importer check.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
SpringRigImporter ([ScriptedImporter] for .springrig, a rig GLB) derives everything from the file's bytes: SpringRigData.FromGlb decides
acceptance (a refusal is an import error and no main object); glTFast loads and instantiates the same bytes once, driven to
completion on a one-thread synchronization context (its RunSync is internal), and the one skinned mesh is repacked into SpringSkin's
streams (Float32 position and normal, uv, Float32x4 weights and UInt32x4 indices); the base colour is decoded from the image the
material names, sRGB with mips, compressed to BC7 at most MaxTextureSize (4096) a side; the material is on Aetheria/FaunaSkinned with
smoothness 1 - roughnessFactor; the rig is a TextAsset of the GLB with every image's bytes zeroed. The main object has MeshFilter,
MeshRenderer and SpringRig (Renderer, Rig, Swim from the importer's serialized field). Nothing derived is committed.
SpringRigVerify.CaptureAsset (SPRINGRIG_ASSET an Assets path, SPRINGRIG_CAPTURE_OUT absolute) loads the imported main object through
AssetDatabase and swims it along +Z with a slow yaw under one shadow-casting directional light and flat ambient; optional focus,
distance, side, frames and a floor to see the shadow. It restores the quality settings it changes. MakeMesh in the checks now calls
SpringRigImporter.Pack, the one owner of the stream layout.
Deleted: Capture (the synthetic-tube swim capture) and TubeMesh, which only it called.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Metallic workflow with _MainTex, _Color, _Glossiness, _Metallic and _Cull (the first three the names SkinMaterial and the checks use).
vertex:vert skins position and normal with SpringSkin; addshadow makes the shadow caster skin the same way, so the whale casts its
skinned silhouette. It is the look shader.
SpringSkin.cginc stays as it is. The surface shader's analysis pass cannot parse its StructuredBuffer ("Unexpected identifier
StructuredBuffer"), and defines no UNITY_PASS_*, so the shader includes the file only under UNITY_PASS_FORWARDBASE, FORWARDADD,
SHADOWCASTER or DEFERRED and gives the analysis pass a one-line stub of SpringSkin. skin-matches-cpu passes on it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Finding cut-whale-rig-glb-check.s2.exit-and-thresholds-prose.
- GlbFile(path, done): a missing or unreadable path is exit 1, a refusal or a failed comparison is 1, a pass is 0. VerifyGlb checks the
device, logs and exits with that code; nothing else chooses an exit code.
- VerifyGlbCases adds the file cases that need no asset: a text file named .springrig and a missing path are exit 1.
- A Disturbance has a phase (Imported: before the bind and rest poses are compared; Posed: before the bake). Two cases move one bone's
bind pose, and one bone's rest node, by 0.01 and expect the named refusal.
- BindTolerance and PoseTolerance 1e-4 -> 7.8e-5, the geometric mean of the shipped worst reading (rest 6.0e-7 over the Synth cases and
the leviathan; bind exactly 0, so the rest reading stands in) and the disturbed case's 1.0e-2: separation 129 and 128. The comparison
logs both readings on every run.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Findings of cut-whale-rig-s1.s3 (ease-reentry-pops, ease-moves-fast, bounds-scale-one-sided).
- Present keeps a copy of the bone positions it drew and seeds the solver from it when the level returns to Full while the ease is
part way (_restWeight < 1); a first Initialize, a fully eased return and a root jump still reset to rest.
- BlendSeconds 0.25 -> 0.75.
- SpringRig gets a serialized TextAsset Rig: Awake (and an Initialize() for editor code, where Awake does not run) builds the rig from it
and the object's mesh.
- reentry-is-continuous: leave Full for 3 and for 8 frames and return; the returning frame's tip motion beyond rigid is under 0.41 of the
chain. Margin rule: shipped worst 0.172, reset-to-rest mutant 0.970 (3 frames) and 1.207 (8), geometric mean 0.41.
- bounds-follow-the-swim runs at scale 1.5 and 0.6; a BoundsJob that ignores scale puts a vertex 1.24 outside at 0.6.
- freeze-and-reset derives its ease frame count from BlendSeconds.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
grid-lattice-jitters-with-camera-position: Grid took its step from the difference of two ViewportToWorldPoint results, so the
lattice shifted with the camera's position. The step is now 2 x orthographicSize (x aspect) / target pixels. The smoke pins vertex
deviation instead of bit-equality: the worst distance of a 0.37-step pan's vertices from the first grid's contours over 31 map and 20
minimap poses, bound 0.05 step (shipped 0.0014, the differenced step 0.934, no snap 6.6 to 29).
minimap-cost-gate-flaky: the minimap is gated on the paired interleaved ratio to the same view at CellPixels 1 (shipped 0.68 to 0.70,
the regression 1.0, bound 0.82), which cancels the GPU's load; the map is gated on the median of 7 warm runs. Distributions are logged.
IsolinePlayCheck (ported from the soul pass's probe): boots a Duel and runs IsolineView.LateUpdate: both views draw, wiring, release and
rebuild on close and reopen, the same pan bound on the live pose cameras, one overflow warning per view.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
IsolineView (execution order 100) owns one view's frame: grid from the pose camera (world-anchored), levels from
MapPresenter.ContourRange, terms from ZoneRenderer.Terms, look, cell size and capacities from the new
GameSettings.MapIsolines and MinimapIsolines (values written into Settings.asset). The map's Gravity Lines Image keeps
Map Gravity Lines.mat on UI/MaskedWorldSpaceUI with a per-view material instance; the minimap's Gravity Fields RawImage
takes the target as its texture. Overflow is logged in debug builds only, from a Stats readback that never feeds rendering.
Deleted: IsolinesUI.shader, Isolines.shader, Zone.mat, Minimap Gravity Lines.mat, MinimapGravity.renderTexture, both Map
Gravity cameras, MapRenderer's gravity camera path, ZoneRenderer.MapGravityMaterials and MapPresenter's material writes.
The layer-9 Gravity Field quad and the fog and slime cameras stay.
Smokes: capacity guard; grid is world-anchored; shipped capacities hold; overflow message; per-view captures and cost
through IsolineView.Grid and Settings.asset; the old field-camera and blit legs are gone; GravityFieldParityVerify checks
the layer-9 cameras and both views' wiring.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Deletes InventoryCell.cs, the sprite sheets Nodes8.png, Nodes8.psd, Nodes8BG.png, pipes.psd and pipes.png with their .meta (and the emptied Nodes folder's .meta), InventoryPanel.NodeBackgroundTextures, NodeTextures, ThermalTextures and NodePrototype, their serialized arrays on the five panels, and the deactivated Inventory Cell prototypes of the prefab and of the HUD and enemy panels with their children and components. The two ARPG.unity instances of Inventory.prefab overrode the prototype's RectTransform (12 modification entries); those go with it. The YAML was edited by text from a scratch script, never re-saved in Unity. The sheets sat in Resources, so they leave the build.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
One bound, GoldenBound, replaces AtlasBound, ThermalBound and ThermalHullBound: the atlas, thermal and alpha/clip sections and the overlay capture compare the grid's render with the PNGs of tests/fixtures/inventory-grid (largest RGBA channel difference over the whole crop). The sprite oracle goes: Oracle, the sheet pixels-per-unit check, the mask 33/289 and 136/392 slip exclusions, the thermal least-squares fit, the hull states' whole-panel pixel parity (the atlas golden covers records to pixels, the records golden panel to records and rects), the tie-pixel exclusion and the thermal background check. The ghost is judged against the panel's own pixels: the panel's grid drawn before the drag, then the ghost alone with the panel shrunk to nothing; rgb halves in linear light (the target is sRGB), alpha in stored value.
Bounds by lodur:ruling:deterministic-bound-margin, readings in the comments: golden 12 (shipped 0 taken as 1, least mutant pipe-width-minus 153), overlay 7 (shipped 0 as 1, least mutant 43), ghost 11 (shipped 1, ghost-full-alpha 115). cargo-thermal-kept was killed by hull pixel parity; a direct check that the grid's Thermal flag follows the state replaces it. flip-ignored moves to the switch run (records golden). The ghost check picks an item inside the panel's viewport.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
tests/fixtures/inventory-grid holds the grid renders of the atlas (4 regimes x 3 passes x 2 widths), the thermal pipes (S32, S16), the five alpha and clip cases, and the overlay capture's three crops, written by -goldenOut in runs that still passed every sprite bound: atlas worst 4, hull worst 4, thermal rms 0.0430 and hull 0.1007, alpha and clip worst 1, masked 0 (the readings of cda9474b1), overlay worst 3. The next commit judges against them.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A run dirtied twelve tracked assets: eight render textures, the two gravity-lines materials, Stardust.mat (properties and descriptors set from code on assets loaded in play, saved by the exit) and the TMP fallback font asset. Finish now clears the dirty flag of every persistent loaded object before Exit, and logs which. The font asset is written by TMP's own EditorApplication.quitting callback (TMP_EditorResourceManager.cs:23), which clears the dynamic atlas of any dynamic font asset whose atlas is populated; the committed LiberationSans SDF - Fallback.asset still held a 536 KB populated atlas, so every Editor exit rewrote it. It is committed in the state that callback leaves (the same state, so the callback no longer writes).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Interact gains what Soul's probes showed the harness did not reach (finding equip-flow-unpinned): a click on another cell after a double click counts 1, one hover handler per grid after repeated Display, the thermal right, top and bottom regions, and the bay-to-hull equip flow. The play capture clicks a second item and asserts the first is un-highlighted (kills unhighlight-dropped). tests/mutation_tests_inventory_grid.py --switch runs Soul's six mutants and a play kind that runs InventoryPanelsPlayCapture, so unhighlight-dropped and pulse-ignored are no longer run by hand. All 15 switch mutants exit 1 on the shipped code with the sheets still present.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Reverses hunks only (git apply -R of a filtered diff): the two Label lines, the ActionGameManager defaults and WormholeCamera, the m_text spelling and AfterStackBundles. Finding scene-resave-churn.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
InventoryPanelsPlayCapture.Run (-pngOut <dir>): enters play mode from Main Menu.unity, launches the Duel test arena (the player's Longinus carries a Store-All Plus bay, a hostile Longinus is in the zone) and asserts and captures hud, enemy, pulse, menu, cargo, highlight, drag, hover and thermal at 1920x1080 through a camera RenderTexture (overlay canvases switched to ScreenSpaceCamera for the frame, then restored). 300 s real-time budget, exit 0 or 1. Also: the mutation script's named-mutant filter takes effect.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
InventoryGridMigration.Run, exit 0, four scene panels logged (HUD, enemy, the two prefab instances) beside the prefab: a last child `Cells` holding an InventoryGrid (cell size, padding, orientation, IconTexel, BgTexel, raycastTarget from the prototype), GridLayoutGroup removed (a VerticalLayoutGroup beside the menu Content's ContentSizeFitter), panel.Grid and Interactive set, CargoBackgroundColor from the prototype, prototypes deactivated, an inactive Drag Ghost on the prefab. Deleted in the next commit; it stays in history.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
InventoryPanel composes each cell's record only in RefreshCells(cells, highlight) (match predicates and GetColor unchanged), reads pointer input from the grid (Interactive authored), hover from HoveredCellChanged, draws the drag ghost as a second grid from RecordAt copies and the pulse as a per-cell background override. Flip derives from Grid.Orientation, TemperatureDisplay follows CellRect(-1,-1), InventoryMenu's selection goes through SetHighlight. CargoBackgroundColor carries the cargo cells' own background (the prototype's colour, .85, which the sprite cells never overwrote), so the golden's cargo records stay exact.
The harness compares the live panels' records exactly and their cell and temperature rects by a bound against the golden (-recordsIn), judges the live grid against oracle sprite cells built from the same records, counts the RefreshCells branches each state reaches, and Interact() sends pointer events through the grids. This commit needs the next one (the migration's prefab and scene) to run.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The grid raises HoveredCellChanged(was, now) from pointer enter, move and exit (move reaches it during another object's drag), its cell size, padding and orientation are authored fields, and RecordAt is the exact inverse of SetCell for display copies (the drag ghost, the harness).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Taken from the old sprite panels before any switch code. HUD and Enemy are copied from the scene as authored (no emulated multiplier, Flip, start corner or rect), the other five states keep the prefab. The golden is a run output kept outside git. FrameTime goes: it times the sprite writer the switch deletes.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The solver draws the last two fixed steps blended by the leftover fraction, pushed out of colliders and
length-held from this frame's head, so a frame that owes no substep still moves and keeps segment length.
Renderer bounds follow every bone each frame. A level is left only past a hysteresis margin. SpringRigData
mirrors x as glTFast does (one owner). Colliders on spring joints and zero-length segments are refused.
The promise below 30 fps is the clamp, stated. Stiffness is documented as a dimensionless rate.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Presentation only: SpringRig.Present(drawnTime, pose) runs PoseJob, SpringSolveJob and SkinJob
and uploads one GraphicsBuffer of skin matrices; SpringSkin.cginc and FaunaSkinned.shader read it.
Fixed 1/120 s substeps from absolute drawn time, at most 4 a frame; LOD freeze and reset.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Skin joints no spring names are body bones; unknown collider shapes, spring joints whose
parent is not their predecessor or a body bone, cycles, and non-unit scales are refused by name.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>