Commit graph

1,956 commits

Author SHA1 Message Date
Meta Vens
9bdf6ef23f Replace the Database Tools with the Studio and cut Unity over
Cut 8b. The Unity project compiles with 0 errors in 6000.3.24f1 batchmode.

Packages: manifest.json pins org.gamecult.cultlib at cultlib-unity-v1.0.57
and org.gamecult.caching.unity at caching-unity-v1.2.0, next to the 8a
CultMath tag. Aetheria.Shared.Unity references GameCult.CultLib and keeps
noEngineReferences.

The Database Tools (Assets/Scripts/CultCache/Editor) are deleted in this
commit, alongside their five ported drawers in
Assets/Scripts/Editor/CultCacheDrawers.cs, each an
[CultInspectorDrawer] ICultInspectorDrawer:
- InspectableType: popup of the attribute type's [Union] member names,
  writing the string.
- InspectableColor: float3 and float4 through ColorField.
- InspectableAnimationCurve: float4[] and BezierCurve through CurveField.
- InspectableTemperature: Kelvin, Celsius and Fahrenheit fields over one
  value.
- InspectableSchematicShape: size and cell toggles. The old drawer also
  drew the item's schematic texture and tinted hull hardpoints, which need
  the parent document. The tagged Studio hands a drawer only the value, so
  those wait on the Studio exposing the open record.

Unity call sites:
- ActionGameManager opens the catalog through AetheriaStores; Cut 10 adds
  the run and player stores.
- Refs resolve through ItemManager.GetData or Get(ref); orbit, planet and
  belt maps key by CultRecordKey; identity is compared by reference or key.
- The PlayerSettings.msgpack reader and writer, which Cut 10 deletes, pass
  CultDocumentMessagePackSerialization.OptionsFor, since the embedded run
  reaches CultMath values and refs. Keyboard layouts need no resolver and
  keep MessagePack's defaults until Cut 10.
- The input map uses the nested action to binding shape.
- PropertiesPanel reads CultInspectorRangeAttribute.
- NameTools loses its legacy name-file writer.
- Slime compares serialized settings instead of the deleted SHA1 helper.
- FieldDriver drops InspectorHeader.
- .gitignore covers the test project's build output.

Builds: Aetheria.Shared, AetherDb, Aetheria.Shared.Tests (6/6), Unity
batchmode (0 errors).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 19:15:20 +02:00
Meta Vens
c2026142be Pin AetheriaStores routing with tests; make PlayerSettings readable
Cut 8b. tests/Aetheria.Shared.Tests (xunit, net10.0) builds a temp-directory
catalog through AetheriaStores.Open(catalogWritable: true) per test:
- OpenThenFlushLeavesEveryFileByteIdentical: the catalog, plus run and
  player stores seeded with their globals, a SavedZone and an InputLayout.
- WeaponWrittenThroughGearHandleReloadsAsWeapon
- CatalogRefusesWrites: bytes unchanged too.
- SavedZoneNeverLandsInCatalog: no home without a run store; the snapshot
  schemas show where it landed.
- FactionIsASingletonInstance: through a ref, a ref-keyed map key, and the
  name index.
- MissingCatalogGlobalIsLoud: uses a test-only [CultGlobal] routed to the
  catalog. The game has no catalog globals yet.

The first test found a real defect. PlayerInputSettings.InputActionMap was
keyed by (string, int), and CultLib's untrusted-data MessagePack security
has no hash-resistant comparer for a tuple, so a player store could never
be read back. It is now action name to binding index to path; its two
Unity readers change in the Unity commit.

Each test was checked to fail with the rule it pins removed; see the
report.

Builds: Aetheria.Shared, AetherDb, Aetheria.Shared.Tests (6/6 pass).
Unity does not build yet.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 19:12:54 +02:00
Meta Vens
1d15c6780d Rewrite AetherDb over AetheriaStores and CultRecordRef
Cut 8b. AetherDb.Open composes GameData/Aetheria.cc through
AetheriaStores.Open, read-only unless clear-boss-hulls runs with apply;
save attaches GameData/run.cc when present and reads the SavedGame global.

- census, factions, station-fit, hardpoint-fit, loadout, settings,
  settings-dump and clear-boss-hulls read references through the null-safe
  Get(ref) and compare identity by record key (RefOf, from TryGetHandle).
  Their output formats are unchanged so Cut 9 can compare them with the
  Cut 0 captures.
- clear-boss-hulls lands every cleared faction in one Commit.
- The help line lists every command.
- Deleted: doctor, migrate-products, AetherDb.Save(), and
  OpenWithNameFiles. The last was Cut 9's delete, but it needs the removed
  multi-file store, and NameFile now routes to the catalog.
- FindRoot looks for Aetheria.Shared.csproj; AetherDB.msgpack leaves in
  Cut 9.

It compiles. It cannot run until Cut 9 writes Aetheria.cc, so the pre-cut
captures do not apply to this cut.

Builds: Aetheria.Shared, AetherDb.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 19:05:14 +02:00
Meta Vens
a2b54889b4 Move the ServerShared data model onto CultLib's CultCache
Cut 8b. Aetheria.Shared builds headless against GameCult.Caching and
GameCult.Caching.MessagePack at the pinned CultLib; the pin guard also
checks the Caching project exists.

Documents: [CultDocument("aetheria.<type>", "1")] with [MessagePackObject]
and integer [Key]s on the Q7 concrete types (the eight ItemData leaves,
Faction, FactionProductData, PersonalityAttribute, NameFile, OrbitData, the
four BodyData leaves, SavedZone, SavedGame, PlayerSettings, InputLayout).
SavedGame and PlayerSettings are [CultGlobal]; Name members are [CultName].
ItemData, CraftedItemData, EquippableItemData, BodyData and AgentTask lose
[MessagePackObject]; BodyData and AgentTask lose their [Union]s. InputLayout
moves into ServerShared so AetheriaStores can route it.

References: Guid and DatabaseLink<T> members become CultRecordRef<T>;
Guid-keyed maps become ref-keyed with [CultReference(..., many: true)];
ZonePack holds refs to orbit and body records. Runtime maps (Zone orbits,
bodies and belts, cargo ItemsOfType, agent targets) key by CultRecordKey.
Identity is the record key: ID comparisons become reference or key
comparisons. StatModifierData.RequireBehavior is a simple type name.

AetheriaStores.Open composes the catalog (read-only unless writable), run
and player stores, one home per type. CultRecordRefs carries IsSet, a
null-safe Get(ref), RefOf (key from TryGetHandle) and Upsert.
ItemManager.GetData is the one item resolution path. MathResolver is
declared by [assembly: CultCacheFormatterResolver].

Inspector attributes: text, range and asset path map onto CultLib's
CultInspector attributes (asset path only on string members); every
replaced Aetheria attribute keeps [Inspectable] for the runtime panel.

Builds: Aetheria.Shared. Does not build: AetherDb and the Unity project,
which follow.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 19:00:42 +02:00
Meta Vens
b4c06b50cb Delete the in-tree cache, JsonKnownTypes and vendored MessagePack
Cut 8b, deletes first. The old authorities are removed, not demoted:
- ServerShared/CultCache: CultCache.cs, DatabaseEntry.cs (root [Union],
  DatabaseLink, INamedEntry), RegisterResolver.cs, TypeFormatterResolver.cs,
  JsonConverters.cs, JsonKnownTypes/**.
- Assets/Plugins/MessagePack/** and System.Runtime.CompilerServices.Unsafe.dll
  (org.gamecult.cultlib ships both).
- GalaxyMapLayerData, PlayerData, GlobalSettingsAttribute.
- The inspector attributes CultLib already carries or nothing reads.

Kept and moved: MathFormatters.cs and MathResolver.cs to
ServerShared/Serialization; GetAllChildClasses, SplitCamelCase,
FormatTypeName, MaxBy and MinBy to Extensions.cs; Inspectable,
PreferredInspectorAttribute and the five Aetheria drawer attributes to
ServerShared/Attributes.cs. Aetheria.Shared.csproj drops the vendored
MessagePack include and the Unsafe package; the asmdef drops MessagePack.

Does not build: the data model moves onto CultLib in the next commit.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 18:42:09 +02:00
Meta Vens
d3db1730ad Record the second Cut 8a Soul pass and its follow-ups
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 18:29:58 +02:00
Meta Vens
9a546a52c1 Record Cut 8a landed with CultMath 0.2.2 and 0.2.3
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 18:25:27 +02:00
Meta Vens
2b38d2dcdd Seed zones from CultMath's PCG hash and pin CultMath 0.2.3
Cut 8a seeded ZoneGenerator's Random from the float bits of CultMath's
hash(float2), the frac(sin) shader hash. On a 100x100 position grid that
gives 1625 distinct values, where Unity.Mathematics' uint hash separated
them. CultMath 0.2.3 adds the PCG integer hashes from Jarzynski and
Olano (JCGT 2020), so the seed now uses pcg3d(Position).x, the IEEE bits
of the float2 position with z held at 0, xored with the zone-name term
as before.

- Packages/manifest.json and packages-lock.json pin
  cultmath-unity-v0.2.3 (CultLib 0f2c1f04).
- Directory.Build.props sets CultLibRevision to the same commit.

This pin also brings in 0.2.2's normalize: a zero vector now gives NaN,
as dxc does and as Unity.Mathematics did before the swap. None of Cut
8a's normalize or LookRotation edits relied on a zero-safe normalize.
They are one-to-one type conversions, and 8a removed no guard. So no
guard is added.

Verified: headless Aetheria.Shared and AetherDb builds with 0 errors.
AetherDb census, factions and hardpoint-fit are byte-identical to the
captures. Unity 6000.3.24f1 batchmode compile gives 0 errors.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 18:23:55 +02:00
Meta Vens
c6786da2b3 Keep Fluid's int2 alias, pointed at CultMath
With using static CultMath.math, int2.zero binds to the int2() factory
method (CS0119). The alias existed for exactly that; it now names
CultMath.int2, as SectorMap does for float2.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 18:03:32 +02:00
Meta Vens
55c3fc6a49 Delete AetheriaMath in favour of CultMath
AetheriaMath predates the CultMath swap and re-implemented helpers CultMath
now owns. Callers use CultMath directly: decay (Ship, AetherDrive, Entity),
damp (VelocityConversion, FieldTester, FieldDriver), first_order_intercept
(TurretController, Combat, GuidedProjectile), quadratic_bezier (FieldDriver)
and smootherstep (Ship). Parameter order matches in every case, and those
formulas have the same float evaluation order, so behaviour is unchanged.
Galaxy's commented-out segment check names distance_to_segment.

The other overloads had no callers and are dropped without a CultMath
counterpart being needed: the double Damp overloads, FindDistanceToSegment,
GetCatmullRomPosition, GetCubicSplinePosition, Smoothstep(x), and the
Deg2Rad/Rad2Deg constants.

AetherDb census, factions and hardpoint-fit are byte-identical to the
pre-cut captures.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 18:02:41 +02:00
Meta Vens
e308c19e4c Move the remaining Assets scripts off Unity.Mathematics
Fluid, Slime, SlimeTestSpawner, LightningCompute and MouseRotate still
imported Unity.Mathematics and compiled only because Burst and Collections
pull the package in. Fluid, Slime and LightningCompute now use CultMath
(LightningCompute's snoise included, which CultMath carries as the same
Ashima simplex noise); SlimeTestSpawner and MouseRotate imported it without
using it, so the usings are gone. LightningCompute converts its float3
offsets with ToUnity() instead of the Unity.Mathematics implicit cast.

None of these are Burst-compiled or jobs. Their ComputeBuffer structs are
built from UnityEngine Vector2/Vector3 and floats, not math types, so no
buffer layout changes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 18:01:54 +02:00
Meta Vens
ee32cd4571 Scope the CultLib pin guard to projects that reference CultMath
Directory.Build.targets is imported by Unity's generated root csprojs too,
which take CultMath from the UPM DLL, so IDE builds of Assembly-CSharp broke
whenever the sibling CultLib was dirty, elsewhere, or missing. The guard now
runs only when a ProjectReference names the CultMath project under
CultLibRoot: Aetheria.Shared directly, AetherDb through the SDK's
transitive project references.

Checked: Assembly-CSharp skips the target; Aetheria.Shared still fails on a
wrong CultLibRevision, on CULTLIB_ROOT pointing at a scratch clone on another
commit, and AetherDb fails on that clone made dirty.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 18:00:11 +02:00
Meta Vens
4d89c6d932 Fix the sector map label pivot after the CultMath sign swap
CultMath's sign(float) returns int, as HLSL does, so sign(x)/2+.5f became
integer division and pinned the pivot at 0.5. Scale by .5f instead so the
pivot is 0 or 1 again. The other sign( uses in Assets combine the int with
a float by multiplication or compare it against a float threshold, so their
values are unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 17:58:53 +02:00
Meta Vens
422b6474ff Fix the float4 colour inspector for CultMath
UnityExtensions no longer has Color.ToFloat4, so MathematicsInspector's
float4 colour field converts back with the bridge's ToCultMath. This is
the only Assembly-CSharp-Editor break; Unity 6000.3.24f1 batchmode now
compiles with no error CS.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 17:47:34 +02:00
Meta Vens
2281793154 Convert engine types through CultMath.UnityBridge
CultMath has no implicit conversions to or from Vector*, Quaternion or
Color, so Assembly-CSharp converts explicitly with ToCultMath/ToUnity at
each engine boundary: FieldDriver, GuidedProjectile(Manager),
EntityInstance, ActionGameManager, HullCollider, GridObject, ShipInstance,
ShieldManager, ItemPickup, FieldTester, PlaceUIElementWorldspace,
MapMenuInput, MapRenderer, SectorRenderer and ZoneRenderer. CultMath math
calls that were handed Unity vectors now take converted values;
Vector3.Scale in FieldDriver becomes a float3 product, and ItemPickup's
Vector3.Dot on float3s becomes dot. packages-lock.json records the
cultmath git package at f0605367 and demotes com.unity.mathematics to a
transitive dependency.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 17:47:33 +02:00
Meta Vens
3dc00e1225 Fix ServerShared for CultMath
CultMath's hash(float2) returns float, not uint, so ZoneGenerator folds its
bits into the zone seed with BitConverter.SingleToInt32Bits. MathResolver's
int2?[] entry used ArrayFormatter<float2?>; it now uses ArrayFormatter<int2?>.

Aetheria.Shared and AetherDb build headless with 0 errors, and AetherDb's
census, factions and hardpoint-fit output is byte-identical to the captures
taken before the swap.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 17:40:31 +02:00
Meta Vens
6140a06a0a Swap Unity.Mathematics usings for CultMath
Every Unity.Mathematics using, alias and qualified name under Assets\Scripts
and tools now names CultMath. The nine `using static ...noise;` lines are
gone: snoise lives on CultMath's math. UnityExtensions loses float4.ToColor
and Color.ToFloat4, which duplicate the bridge's ToColor and ToCultMath; the
float3 colour pair stays because the bridge has none.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 17:39:12 +02:00
Meta Vens
1bad87fc35 Reference CultMath instead of Unity.Mathematics
Aetheria.Shared.csproj drops the Library\PackageCache math sources and
references CultMath.csproj under the pinned CultLibRoot. The asmdefs drop
Unity.Mathematics; Tests overrides references, so it names CultMath.dll in
precompiledReferences. The manifest drops com.unity.mathematics (Burst and
Collections still resolve it) and adds org.gamecult.cultmath at
cultmath-unity-v0.2.1.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 17:38:54 +02:00
Meta Vens
4f4beb0fe4 Pin CultLib for headless builds
Directory.Build.props names CultLibRoot (CULTLIB_ROOT, else the sibling
checkout) and pins CultLibRevision to f0605367 (CultMath 0.2.1 on main).
Directory.Build.targets carries Delvehold's VerifyCultLibRevision guard,
checking for CultMath.csproj: HEAD must equal the pin and the worktree must
be clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 17:38:20 +02:00
Meta Vens
549adb7912 Split Cut 8 into CultMath swap and data model cutover
Imagination refreshed Cut 8 against Aetheria 59bc5753 and CultLib main, with
probe builds: 8a swaps Unity.Mathematics for CultMath on the legacy cache
(76 Unity conversion errors listed per file, MathFormatters kept), 8b cuts the
data model over. Operator rulings: CultMath gaps filled in CultMath 0.2.1
(f060536), which 8a pins; double overloads keep double precision; the
Temperature and SchematicShape drawers are ported into Aetheria's Studio
drawers.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 17:36:08 +02:00
Meta Vens
59bc575301 Record Cut 7 release state and the held npm publish
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 15:35:35 +02:00
Meta Vens
fcecdd0537 Mark Cuts 6 and 6b landed at CultLib merge 1b95dd6
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 15:12:58 +02:00
Meta Vens
5b80215150 Record the decision to skip CultMath Studio drawers for now
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 14:57:07 +02:00
Meta Vens
9c9c004d3e Record Cut 6b closed: DXIL NaN rules and commit-independent DLL
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 14:47:43 +02:00
Meta Vens
bb964ca2d4 Record the second Cut 6b Soul pass and the row-indexer ruling
Soul compiled step with dxc and found NaN gives 1, so the docs-based
change is reverted to the compiler's behaviour. The shader mirror test
only proved compilation and grows numeric comparison of every mirrored
function. The operator keeps the ref row indexer without an analyzer and
documents that writes through readonly, in, and property receivers land on
a copy.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 14:15:31 +02:00
Meta Vens
3a8a37be6d Record the operator ruling deleting the composite heuristic
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 14:02:16 +02:00
Meta Vens
04ef8d3093 Record the second Cut 6 Soul pass and its operator decisions
Soul verified the Studio model rewrite and found a saveable partial edit
after a throwing drawer, edit decisions left in IMGUI, a comparer mismatch
on dictionary keys, and three model tests that do not pin their rules. The
operator chose: delete FlushAsync(soft) and edit Mimir's call, and retry a
lockless directory read on manifest mismatch. By-name reflection in CultNet
and CultMesh becomes a follow-up. The composite heuristic waits on the
operator.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 14:00:10 +02:00
Meta Vens
c8771eba45 Record Cut 6b Soul findings and CultMath scope decisions
HLSL source did not yet compile as C#. Operator chose A throughout: generate the
full swizzle set and mixed constructors with a test over CultMath's own shader
bodies, fix cheap intrinsic semantics now and defer larger matrix features, add
Studio drawers for the new types after merge, and compile-check the shader
mirror with dxc.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 13:41:54 +02:00
Meta Vens
136a2209d3 Keep the Studio inspection model reusable by CultUI
Operator goal: CultUI, descended from Aetheria's PropertiesPanel, should be able
to recreate the CultCache Studio at runtime. The inspection logic moves into an
engine-free model in CultLib core and the editor Studio lowers it; the runtime
lowering is a follow-up.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 13:19:48 +02:00
Meta Vens
17b848e087 Record Cut 6 Studio findings and decisions
Soul found foldouts dirtying records, fragile drawers, and type-only drawer
claims that cannot express Aetheria's inspector attributes. Operator decisions:
inspector attributes move into CultLib core, drawers claim by attribute or type
with a default fallback, opening a directory store creates no files, and game
data stores never live under a Unity Assets folder. Cut 8 lists CultMath in the
Unity manifest directly.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 13:16:35 +02:00
Meta Vens
6fa5cfe8ff Move the Studio click-through into Aetheria
Operator decision: the manual Studio check runs in Aetheria against the tagged
package once Cuts 7 and 8 land. CultLib's demo Unity project, which has no
committed manifest and a UI assembly that does not compile, is recorded as a
follow-up outside the migration.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 13:11:18 +02:00
Meta Vens
47094d8900 Add Cut 6b: CultMath grows what Aetheria needs, HLSL as parity target
The parity audit showed CultMath is not a drop-in for Aetheria's
Unity.Mathematics use. Operator decisions: CultMath targets HLSL source
compatibility, so components and swizzles become writable; CultMath keeps its
own behavior where it differs from Unity.Mathematics; only what Aetheria uses is
added; the Unity bridge lives in CultMath's Unity package. Cut 8 swaps Aetheria.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 13:09:23 +02:00
Meta Vens
fc06a3fabd Adopt CultMath in Aetheria and drop Unity.Mathematics from Studio drawers
Operator decision: Aetheria moves onto CultMath as the best workout GameCult's
math library can get, with gaps filled in CultMath itself. The map no longer
rejects the switch, and Cut 6's Studio drawers target CultMath types only.
Unity.Mathematics stays permitted for tooling supporting a Unity game; CultLib
uses CultMath.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 13:02:52 +02:00
Meta Vens
3e1d51d8db Mark Cut 5 landed with its re-pin follow-ups
The sibling runtimes now hold one home store per type, refuse moves and
non-home loads, validate before writing, and serialize mutations. TS
registration and attach methods became promise-returning and Rust attach
returns a Result, which consumers adopt when they re-pin. Cut 6 is in progress.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 12:45:59 +02:00
Meta Vens
65a88e2a10 Drop the TS re-entry guard in favor of the precise waiting rule
The AsyncLocalStorage guard refused ordinary write-backs from store change
handlers and still missed the real deadlock. The contract instead says a store
call must not wait for a write to its own cache to finish. Legacy global
retirement stays two-step and a crash leaving both records stays loud.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 12:41:15 +02:00
Meta Vens
eae25a0aa8 Record the legacy global shim, re-entry rule, and Rust push_all shape
Operator decisions after Soul's check of the sibling locks: a legacy-key global
loads as a read-only compatibility shim that the first write replaces under
__global__ and removes; re-entrant mutation is forbidden in TS and Python; a
Rust store keeps receiving its full view and the default push_all fails closed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 12:16:01 +02:00
Meta Vens
4fba9f6c35 Record sibling write-atomicity decisions for Cut 5
Soul found the TS and Python caches writing stores before validating, TS open
to async interleaving, Python accepting globals under any key, and Rust's
load_soa clearing before it could fail. Operator chose A throughout: a per-cache
TS queue for mutations, globals only under __global__, delete Rust's uncalled
load_envelope and make load_soa atomic, and leave error wording alone.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 11:42:19 +02:00
Meta Vens
bd2ebfe7d2 Correct Cut 5's branch and Python command; record sibling parity gaps
Cut 5 landed on the routing branch and the Python suite runs under unittest.
Soul found the sibling runtimes let a record's home move and loaded records from
the wrong store, and TS and Rust refused in-memory writes; those are being
brought to the C# reference.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 00:45:34 +02:00
Meta Vens
ff858823cd Mark Cut 4 landed and Cut 5 in progress
Cut 4 ended at CultLib 5bd4e4e with the generator deleted and the registry
persisting exactly what MessagePack round-trips. The five Eve.Surface documents
change schema ids because constructor-filled get-only members now enter the
catalog; no store on disk holds them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 00:23:16 +02:00
Meta Vens
7e093605a8 Stop citing the deleted generator as live code in the cut map
Soul's check of the generator deletion found the map's Q2 and Q4 evidence still
describing generated metadata and serializers as current. Those lines now say
the registry owns type names and all payloads go through MessagePackSerializer,
and Delvehold's re-pin follow-up names its generator references and its
preference for a stale CultLib worktree.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 23:54:04 +02:00
Meta Vens
31620653e4 Require MessagePackObject on documents and keep reflection type names
Deleting the generator exposed that its codec was the only writer for documents
without [MessagePackObject], and that it named nested member types with a dot
where reflection uses a plus. Operator decisions: the registry requires
[MessagePackObject] on every [CultDocument], and nested type names keep the
reflection form once a store scan shows no persisted record uses the dot form.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 23:22:58 +02:00
Meta Vens
73b0f69d70 Delete the CultCache generator from the plan
Operator decision: with .cc canonically MessagePack, the source generator only
duplicated the reflective registry. Nothing reads its output without a
reflection fallback, no consumer builds AOT, and nothing measured a benefit,
while the duplication caused every Cut 4 defect. The registry stays the single
descriptor authority with all rejection rules. Delvehold and EveUnity re-pin
follow-ups are recorded.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 22:55:00 +02:00
Meta Vens
14bd2fd5a2 Record the override rule Cut 4 landed and two generator follow-ups
MessagePack reads the base declaration's attributes, so the generator and
registry reject overrides whose Key or IgnoreMember differ from the base
instead of using the most-derived declaration. The typed serialize helpers are
deleted. Global-namespace type naming and generic document types in generator
assemblies are recorded as follow-ups.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 22:07:30 +02:00
Meta Vens
5d89447be0 Update the cut map's status to Cuts 0-3 landed, Cut 4 in progress
The header still said nothing past Cut 0 was cut. Each cut's landing commit now
updates it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 22:00:50 +02:00
Meta Vens
a20ee76aa7 Record Cut 4's slot authority, generic resolver rule, and generator findings
Operator decisions: MessagePack's integer [Key] is the only slot authority and
the cache core references MessagePack.Annotations directly, since .cc is
canonically MessagePack; a generic document's resolvers come from its own
assembly. Also records the generator and registry disagreements Soul found with
old-versus-new consumer probes and the shape of the fixes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 21:58:37 +02:00
Meta Vens
ed6c2bc498 Record the sequenced read rule for latest-value consumers
Operator chose option A on all three: a public cache read returns a document
with the current sequence, and consumers subscribe before reading; OnUpdate and
CultNet's derived streams stay unprotected and documented as such; schema-alias
handles and removals are documented as not stale-protected.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 20:52:57 +02:00
Meta Vens
17b8a95cb0 Record sequence follow-ups the cache change exposed in CultNet and Mesh
The CultNet subscription server and database watches keep latest values from
changes that carry no sequence, and the Mesh mirrors' refresh and observe paths
race with applied changes. None came from the sequence change; each is named so
it is not mistaken for covered.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 20:44:22 +02:00
Meta Vens
550964be81 Make change order data instead of cache scheduling
Operator decision: the cache stamps each admitted change with a per-cache,
in-memory sequence and publishes on the caller's thread without scheduling
delivery. Latest-value consumers compare sequence numbers. Save-order delivery
with tickets is rejected: it turned the cache into a delivery scheduler,
deadlocked against the CultNet subscription server's lifecycle lock, and could
stall a cache on an interrupted wait.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 20:29:25 +02:00
Meta Vens
9a27814c3b Guarantee observer delivery in save order
Operator decision: changes reach observers in the order they were saved, across
threads, so latest-value consumers such as CultMesh's WatchRecord never apply a
stale record. Also records per-call publication on the caller's thread and that
only OnUpdate handler exceptions are rethrown to the caller.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 19:59:28 +02:00
Meta Vens
c145370e0f State that observers run outside the cache gate
Cut 3's second Soul pass found Watch observers and OnUpdate running while the
gate was held on re-pull and commit, which deadlocks a subscriber that waits on
a thread reading the cache, and a throwing handler that could leave a store
holding records the cache dropped. Observers now publish after the outermost
gate exit, and stores adopt their loaded view first. Also corrects the flush
wording, which described only single-file stores.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 19:01:47 +02:00