Commit graph

51 commits

Author SHA1 Message Date
Meta Vens
cec6d0d464 docs: SoA world grab anchors, motor joint, impulses and ray, ABI 5
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:02:14 +01:00
Meta Vens
7efcefc8a0 SoA world: kinematic anchors, motor joint spring, point impulses, closest-hit ray (ABI 5)
Anchor body kind (kinematic, no shape) with set_anchor_target; Motor joint kind
with position springs bounded by max force and torque, taking the slot of the
joint desc's reserved float; apply_impulse at a world point; cast_ray_closest.
Ymir executes the commands and decides nothing about grabbing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 02:02:14 +01:00
Meta Vens
e4cf4cd444 SoA hit impulse estimate: honest limits, two-body and threshold tests, fact element-size guard
ImpulseEstimate is documented as exact for a centre-to-centre hit between
free bodies, over-counting when one collision yields several hit facts and
undercounting for jointed bodies; never a bound. Tests: two free spheres at
mass ratios 1:1, 1:10, 10:1 with restitution 0 and 0.5, and a hit below the
restitution threshold that must not bounce. The ABI handshake now checks the
touch and hit fact element sizes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:52:47 +01:00
Meta Vens
5c35a40ccf SoA: contact force lane renamed LastSubstepForce; hit facts carry an impulse estimate
Box3D exposes no whole-step normal impulse: normalImpulse is the last
sub-step and totalNormalImpulse is a solve plus relax mixture, so no lane
built from them is true on an impact step. The per-body lane is renamed
LastSubstepForce and documented as a resting load only. Impact severity is
the hit fact's ImpulseEstimate, v (1 + e) / (1/mA + 1/mB), checked against
the ball's momentum change at 60 and 240 Hz, 1 and 4 sub-steps, restitution
0 and 0.5. Also pins that dropped counters reset each step.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:37:21 +01:00
Meta Vens
a614477d68 docs: SoA world contact facts, contact lanes and ABI 4
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:09:55 +01:00
Meta Vens
5a4cde33ae SoA contact force reads the final sub-step impulse; contact fact tests
totalNormalImpulse accumulates the accumulated impulse once per solve and
once per relax pass, so a resting body read twice its weight. ContactForce
is now normalImpulse * sub_steps / dt, which reads the weight at rest.
Tests cover drop begin/hit, lift end, resting force, materials, one-step
lifetime, overflow counting, per-step determinism and zero allocation.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:09:44 +01:00
Meta Vens
d54e14cc50 SoA world reports per-step contact facts and per-body contact lanes (ABI 4)
Every shape is created with contact and hit events on; the body's user data
is lane + 1. After each step the world rewrites begin, end and hit fact
buffers (lanes and stable ids resolved, fixed capacity, per-kind dropped
counters) and the ContactForce (totalNormalImpulse / dt), ContactCount and
MaterialId lanes. Body desc gains material_id; create takes fact_capacity
and hit_threshold. No allocation inside the step.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 01:07:20 +01:00
Meta Vens
8be057a4b1 SoA add_body publishes only the size components its kind uses
Soul low finding on cut-ymir-shape-lanes.s1: a direct native caller could
publish nonzero unused components, contradicting the docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 01:03:03 +01:00
Meta Vens
617beec1dc SoA world publishes each body's shape size as read-only lanes (ABI 3)
Size0/1/2 sit beside Kind, written once in add_body, never touched by step,
so a renderer draws every body from one source.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:51:05 +01:00
Meta Vens
0b0321aa00 SoA docs: concurrency line matches the lock; concurrent stepping is not known to race, not promised; 128-world limit
Soul low findings on db09805.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:20:07 +01:00
Meta Vens
db09805aba Serialize Box3D world create and destroy behind one process-wide lock
b3CreateWorld/b3DestroyWorld scan and rewrite Box3D's global world pool with
no synchronization; concurrent creation crashed the host (0xC000001D). All
five call sites (SoA world, retained session, pair step, torque lifetime) now
go through one lock owned by ymir_box3d.c (SRWLOCK on Windows, pthread mutex
elsewhere). Adds a multi-thread create/step/dispose test, which aborts the
test host without the lock; drops the serial-test assembly attribute.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:11:08 +01:00
Meta Vens
fbc1530fa5 Uniform native output path across generators; default view refuses with a clear error; span-lifetime docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:55:25 +01:00
Meta Vens
e6a1e4ad02 Scope PREFIX to MinGW; views refuse lane access after dispose; document lifetime limits
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:51:04 +01:00
Meta Vens
eb30cac65b Box3D SoA world is public; drop Lodur friend grants; MinGW emits ymir_box3d.dll
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:43:55 +01:00
7ba31c30fc Merge pull request 'SoA world: joints, force/torque lanes, capsules and boxes' (#2) from nibu/soa-joints into main 2026-11-10 17:14:35 +00:00
78786670eb Merge pull request 'Headless 3D SoA world over Box3D, state read in place' (#1) from nibu/soa-world into main 2026-11-10 17:13:58 +00:00
Nibu
ea7b3f3d7f soa-world doc: rolling resistance in the descriptor
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 04:08:18 +00:00
Nibu
b96ad34b0b SoA world: rolling resistance on the body descriptor
A bare sphere or capsule rolls on without it, so a fallen head never settles.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 04:07:38 +00:00
Nibu
02276363fc Ymir.Box3D: let Lodur.Body.Ymir see the SoA world until Ymir.Core has a public surface
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 03:56:51 +00:00
Nibu
8bb0d0b1de SoA world: joints, force/torque write lanes, capsules and boxes, parent/limb lanes
ABI 2. One body descriptor replaces add_sphere/add_static_box (kinds: sphere, capsule, box, static box).
Revolute, spherical and weld joints created from a world anchor and axis, with joint state lanes (angle,
frame A orientation, relative rotation, relative angular velocity). Per-body force and torque write lanes,
applied before the step then cleared; non-finite values refuse the step. Parent and limb index lanes.
Tests run serially: concurrent b3CreateWorld aborts the host.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 03:55:49 +00:00
7d9f1b57a1 Headless 3D SoA world over Box3D, read in place
New native object ymir_box3d_soa (ABI 1): gravity, free rotation, spheres and static boxes,
one worker, state copied once per step into contiguous lanes that a caller reads in place.
Managed Box3DSoaWorld/Box3DSoaView expose the lanes as spans. The planar retained session is
unchanged. Tests: fall and rest, in-place reads, bit-for-bit repeat runs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 18:54:20 +00:00
Meta Vens
8d02b1ecbb Merge readme-front-door: README opens with value, problem, entry points, live versus planned 2026-10-22 20:08:33 +02:00
Meta Vens
07dd0fc446 README: front door with entry points, live versus planned
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:08:14 +02:00
Meta Vens
21e7c43777 Remove the Eve surface from Ymir.Core (parked at parked/ymir-eve-surface)
Eve is deprecated; per thing2:ruling:eve-dashboards-quarantined the surface builders, EveSurfaceDocument publication, GameCult.Eve.Surface reference and EveRoot are gone. YmirOperatorStateDocument and its publication stay.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 20:02:38 +02:00
Meta Vens
4945968e96 Pin CultLib 2.0.0 for builds parked/ymir-eve-surface
Directory.Build.props names CultLibRoot (CULTLIB_ROOT, else the sibling checkout) and pins CultLibRevision to cultlib-unity-v2.0.0 (42dce361). Directory.Build.targets fails the build unless that checkout is at the pin and clean, as Aetheria's guard does. Project references use CultLibRoot.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 19:46:27 +02:00
Meta Vens
f8c0e39a03 Wire AGENTS.md into Claude Code memory
Claude Code reads CLAUDE.md, not AGENTS.md, so this repo's doctrine was
invisible to it. This one-line import makes the existing AGENTS.md load
without duplicating or renaming it. Codex is unaffected.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-29 12:19:59 +02:00
Meta Vens
7566e099b9 Consume CultMath from CultLib 2026-08-26 17:56:08 +02:00
Meta Vens
14d3a0a075 Consume the Eve-owned surface contract 2026-08-17 22:42:36 +02:00
Meta Vens
ebd74df319 Compact sessions within Box3D world capacity 2026-07-22 00:01:47 +01:00
Meta Vens
6e8760a9b6 Add quiescent Ymir persistence rollover 2026-07-20 01:56:59 +01:00
Meta Vens
e32f3c5187 Add incremental retained-session persistence 2026-07-15 08:27:19 +01:00
Meta Vens
949f98af52 Add replay-backed retained session checkpoints 2026-07-15 08:08:02 +01:00
Meta Vens
796908ed75 Merge branch 'codex/directed-attractor' into codex/aetheria-box3d-integration
# Conflicts:
#	README.md
#	docs/architecture.md
#	docs/box3d-parity.md
#	src/Ymir.Core/Ymir.Core.csproj
#	src/Ymir.Core/YmirServicePublicationDocument.cs
#	tests/Ymir.Tests/YmirServicePublicationTests.cs
2026-07-15 01:29:41 +01:00
Meta Vens
03991c383a Clarify Ymir Box3D authority boundary 2026-07-15 00:51:54 +01:00
Meta Vens
d854d9376f Add revisioned retained Box3D queries 2026-07-14 22:04:22 +01:00
Meta Vens
014c95c454 Remember Box3D collision profile boundary 2026-07-14 22:01:38 +01:00
Meta Vens
e49fe42ef9 Expose Box3D collision profiles through Ymir 2026-07-14 22:01:19 +01:00
Meta Vens
dedbc4e429 Remember retained Box3D authority boundary 2026-07-14 21:18:15 +01:00
Meta Vens
82ddfc98a6 Add retained Box3D session contract 2026-07-14 21:17:41 +01:00
Meta Vens
d0ddd7b7a3 Remember the Box3D authority cut 2026-07-14 20:33:48 +01:00
Meta Vens
721eee0656 Replace managed physics with Box3D runtime boundary 2026-07-14 20:33:05 +01:00
Meta Vens
658db6c986 Advertise the Box3D ownership boundary 2026-07-14 19:39:16 +01:00
Meta Vens
30a391ba31 Define Ymir as the Box3D service boundary 2026-07-14 19:37:55 +01:00
Meta Vens
0ffad2a4f0 Cover Box3D world-step semantics 2026-07-14 19:25:02 +01:00
Meta Vens
34366604be Align Box3D shim runtime linkage 2026-07-14 19:22:20 +01:00
Meta Vens
6d13a2cb97 Add pinned Box3D parity oracle 2026-07-14 19:20:15 +01:00
Meta Vens
f191767471 Use canonical Eve surface publication 2026-07-13 19:27:11 +01:00
Meta Vens
229070ff48 Make Ymir CultLib root configurable 2026-07-13 19:11:48 +01:00
Meta Vens
c0589c8379 Add Aetheria Ymir cutover verifier 2026-07-06 22:13:10 +01:00
Meta Vens
0fec5ad37a Move Ymir simulation to SoA CultCache state 2026-06-17 03:52:13 +01:00