Original mission interiors
Private mission entry, exit, isolation and completion remain unimplemented. This investigation supplies the original generator and room-library contracts needed to connect the accepted missions to real interiors. It does not enable a shared public room as a private mission or establish a complete style map.
Target and proxy
The inspected original 14.9.1 binaries are:
kkr.dll, SHA256a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.llr.dll, SHA256ebb09047f6ead192388f7ddfb4795da5013a60f7c2d1c3933ec02eef58a10132.hhr.dll, SHA256782a212c2ca8b5b90eab835fae689b40ae0c2bcf1b3d0165b117d4fb1505908e.bbr.dll, SHA25628f196f650edbb1573fb874ccaf7746453d3e4a183e1d86db1d790c1c32ecc2c.
LLR's proxy reader 0x1004ac70 requires byte a, then six uint32 fields:
model type/instance, group selector, subgroup, and running playfield type/instance.
Its playfield constructor 0x10028e70 uses the running identity as the world
identity and directory key, separately from the model. This supports distinct
instances sharing geometry; runtime isolation is not yet verified.
KKR's factory 0x1001f250 dispatches on the model type. Type 51100's create path
0x10146750 loads resource 1000001 using the running instance, so changing only
that identity in today's public-map packet will not load shared geometry.
Types 51103/51105 use the generated-building factory 0x100f3ac0 / 0x100f3b20.
Type 51101 takes the separate owned-building path, not the mission-building path.
The base full-update reader LLR:0x10042fd0 reads the proxy and optional database
object. Activation 0x10042ea0 reserializes that object into a stream for the
selected factory before creating the playfield. The generated-building factory
reads an ACGBuildingGeneratorData object, loads its template playfield, and builds
rooms through KKR:0x100f5540. Earlier protocol reports contain addresses from
other builds; use the exact artifact hashes when following these symbols.
HHR DbObject_t::ReadBlob / WriteBlob (0x10005650 / 0x100055e0)
prefix subclass data with uint32 type, instance and revision. The derived
14.9.1 PlayfieldAnarchyFIIR reader/writer (KKR:0x10145f00 / 0x10145f40)
then append two uint32 world origins after the base full update. They do not
carry the display name used by the shared 11.0 serializer. Activation
0x10145de0 selects a RoomMonitor for dungeon tilemaps.
Generator and building pieces
KKR:0x100f1850 reads generator format 3 after the base database-object header:
three uint16 size fields, uint32 template playfield, three ambient-color bytes,
uint32 room count, then compact room placements. 0x100f1a60 writes that form.
Each room is six bytes: uint16 template-room index, signed floor byte, unsigned
X/Z bytes and a rotation byte representing quarter turns. The native room
validator 0x100f5e80 accepts indices 0..10000, floors -16..16, X/Z 0..32 and
rotations 0..3. The loader selects template rooms by their original vector index.
tools/data/extract_mission_rooms.py reads the original resource 1000001 room
libraries using the target LLR base reader 0x10040fe0 and room reader
0x10033d50. It emits a review catalog under local/mission-interior/, retaining
source/index hashes, exact room bytes and offsets, bounds, positions, link pairs,
names, lightmap metadata, raw water vertices/triangles and camera attractors.
Raw water heights remain source floats; the native collision reader separately
rounds their Y coordinates to hundredths.
The lightmap's second word is a vertex count, not an encoding selector.
LLR:0x10033ce0 decompresses version8 records into two bytes per vertex;
0x1001f970 expands their RGB565 colors for the room's vertices. The extractor
checks the decompressed size against that count. All298 records pass, with
byte-exact reconstruction of the original resource payloads still verified.
| Resource | Original library | Rooms |
|---|---|---|
| 331 | ACD tarm | 42 |
| 341 | ACD Grey Caves-Mines | 103 |
| 346 | ACD Omnilab | 72 |
| 351 | ACD Subway-Ventil | 81 |
All 298 room records decode. Each resource also has a 46-byte suffix beyond the
base reader, preserved as unparsed_trailer_hex; its meaning is unresolved.
The catalog is not a recovered booth-style assignment or a connected layout.
Fixtures retain one complete original room from each library, including a cave
water polygon; their test resource headers deliberately change the room count.
All 50 data-tool tests pass, including 14 room-parser tests covering the four
libraries, original water topology, opaque suffix preservation, camera layout
and malformed/truncated input. Independent reconstruction concatenates the
original header, each cataloged room and retained suffix to reproduce all four
source payloads byte for byte. All candidate room dimensions are multiples of
five, as required by the generated-building loader. The catalog and verifier
are retained under local/mission-interior/; extraction changes no live data.
Native visible-room checks
Original LLR RoomMonitor 0x10034e40 creates disabled VisualRooms and
0x10035000 enables the current room. 0x100351d0 opens the room link;
0x10035250 queues closure and 0x10035380 waits more than two seconds before
closing it. BBR 0x1009e930 enables a VisualRoom and adds it to the render root;
0x1009e960 disables and removes it. Its 0x1009eca0 renders the material groups.
The local LLR VisualRoom vtable forwards into BBR through import thunks.
Owned native fixtures270/271 load both the original capped layout and a second
layout using room37 (tarm_hartchamber2) at X1/Z1. Both retain exactly one
unmatched exterior door. Read-only probes show both rooms enabled, parented to
the same render root, with original vertex/material data and world transforms,
after the fully open door status. Both still show a black adjacent doorway.
This rules out a disabled neighbor as the sole cause; it does not prove a
renderer defect. Native n3Room floor is field0xa8 (0x10030400 / 0x10030410);
field0x78 contributes to a render/light group mask, with its meaning unresolved.
Diagnostic fixture275 uses a separately linked WASM bundle with logging in the
Direct3D adapter; published assets and the sole server are unchanged. Both rooms
reach GPU drawing with valid indices/colors/transforms and ordinary clip/depth
settings. A center-of-doorway triangle trace instead finds a16-vertex mesh in
front of the adjoining room, including after the0.6-second door animation ends.
Scene traversal identifies it as Object04 in separate static model42850,
whose original resource1010001 contains a blacktexture material. It is not
one of animated door41798's parts. Their world transforms update correctly.
The fixture connected room0's black portal at Z30 to the next room, leaving its other portal at Z10 as the exterior. Rotating only room0 by two quarter turns moves that static black portal to the unmatched Z10 exit and connects the other portal to room37 at Z30. Diagnostic fixture280 then sees the adjoining chamber through the fully open door and walks both ways; the center trace no longer hits the16-vertex blocker. No renderer, lighting or animation patch is needed. This establishes a working portal choice for this particular entrance template; it does not recover the complete original entrance/style assignment. Exactly one unmatched door and reciprocal links alone are insufficient layout checks: authored portal content also matters.
The corrected packet still uses template331, dimensions4/6/10, ambient100 each, room0 at X1/Z3/rotation2 and room37 at X1/Z1/rotation0, floor0. These fixtures establish no production entry, private isolation, authority or persistence.
Published-WASM fixtures281/282 repeat the corrected geometry with door templates 41884 and41565 respectively. Native snapshots verify open/close/reopen flags, the0.6-second animation endpoints, room-link changes and the adjoining room's disablement after the deferred close. Screenshots show the chamber through the open door. Fixture282 crosses into the chamber and back across Z30. Fixture281 also reaches the chamber's far wall; its return stops short of the doorway after collision shifts X sideways. Do not count that as a successful return walk.
Both fixtures walk through the closed door while Flags bit128 and the room link
remain closed. Those doors were unlocked: subsequent
locked-door controls
verify native blocking from both sides and unlock/open passage using real server
packet builders. This does not establish automatic-opening policy or authoritative
locked/revoked-key enforcement before private entry. The fixtures run on
public-world visitors and cannot establish how a real private server responds.
There are no page exceptions or adapter errors; browser404s are only favicon.ico.
local/mission-interior/entry-native-verification.json records passing checks
and the unresolved closed-door traversal separately, with packet/resource hashes.
Captures are in local/mission-interior/runtime-visibility/,
runtime-visibility-heart/, runtime-render-trace-first/,
runtime-render-trace/, runtime-scene-model-trace/, runtime-correct-entry/,
runtime-entry-published/ and runtime-solid-entry/. Complete static records
are retained in
llr-room-visibility-evidence.json, bbr-visibility-enable-evidence.json,
bbr-room-render-evidence.json, bbr-portal-mesh-evidence.json and
llr-room-geometry-evidence.json in the same directory. Key records are
ev_39719c3fd377d8d3fd017da67997d476c850340d02c5d904e45e973e2cfd4c37
(deferred closure),
ev_083d9e81a8c45a63e2cc40de5bd8ac871c91b69d4d2177a1de1a50aaab39624b
(visibility enable),
ev_98875a72181b1461cc1e011400be7602eed717b46ef1032fa41be1990fd1b911
(room render) and
ev_76dae975e1e40123ad08be346da4e8ed47afbdae9351bd0965423d5177d7ba98
(lightmap decompression). Ghidra's large CreateDungeonRoom pseudocode has stack
and argument recovery failures; runtime checks and lifted instructions must
corroborate interpretations of that routine.
Remaining integration
server/mission_geometry.go now serializes the recovered generator format.
The target adapter previously truncated every playfield update to the fixed
public-map length; it now preserves the complete variable generator and both
origins, removing only the legacy name. Golden packet tests cover native bytes,
negative floors, rotations, unsigned dimensions, invalid fields and room counts
1, 2 and 10000. These are serialization checks, not asset-reference, overlap or
connected-layout admission checks. There is no production entry consumer yet.
Resolve generator/style assignment, validate actual room references and complete the native door lifecycle before admitting entry. The server needs durable mission-to-world/key bindings, significant entry/return commits, and retirement that safely removes only that mission's private world. Unique running identities are the intended isolation boundary, subject to an audit of every visibility, combat, nano, loot, inspection, trade and vicinity-chat consumer. No second instance may see or interact with the first one's contents.
Native geometry verification
An owned Chromium client on the GPU receives the actual Go-produced packet through a recorded, client-side WebSocket fixture. The live server still hosts the visitor in its public world; this does not test authoritative private entry, key admission, persistence, mission rewards or instance isolation. No guest heap writes or gameplay rewards are used. The published WASM is unchanged.
The final fixture uses template331, dimensions4/6/10, ambient100/100/100 and two placements: original room0 at X1/Z3 and room12 at X1/Z2, both floor0/rotation0. Read-only native probes confirm running identity40016/9000001, proxy51105 and two original rooms. Their reciprocal door positions are approximately [15,0,29.999] and [15,0,30.001]; exactly one door remains unconnected for the exterior exit. Normal W/S controls cross the join and return; sustained forward movement against the far wall stops at Z38.639. Screenshots and floor-height samples corroborate the native geometry and collision.
LLR GetDoorPosRot (0x10033650) decodes the packed door as a tile index in the
upper14 bits and direction in the lower2 bits, adjusted by room rotation.
KKR 0x100f5e10 reverses layout Z against the building depth before adding the
transformed room origin. Its connection builder 0x100f2f30 pairs opposite
directions on the same floor within X/Z0.1 and Y0.3, and expects exactly one
unmatched exterior door. Earlier two-corridor fixtures had two unmatched doors;
their successful traversal was insufficient evidence of a complete layout.
The original fixture's black doorway initially coincided with an unregistered,
closed room link. Original IsDoorOpenBetweenRooms (LLR:0x1002bfd0) returns
false for that state, and RoomCanSeeFromTo calls it. Real door creation/status
corrects that link and its animation, but it did not remove the black doorway.
The visible-room checks above identify the separate
static blocker and verify a corrected portal choice. Preserve the distinction
between required door lifecycle and authored entrance geometry when admitting
production layouts. ChangeRoomStatus (0x1002bf30) and
RegisterDoorWithRoomLink (0x1002ba00) update the native link table.
Final captures are in local/mission-interior/runtime-capped/, with earlier
fixtures retained separately. There are no page exceptions or native adapter
errors; both browser404s identify favicon.ico. All owned test browsers close
after each run, and the sole shared HTTPS8443 preview remains available.
Final packet/world tests pass27 roots/67 results under the race detector;
the separate fixture producer also passes. Build and go vet pass. The full
server/gamedata run passes1474 roots/15161 results. That run compiled before
removing an unsupported width/depth32 cap; final focused/race runs cover the
corrected unsigned-dimension contract. Logs and source hashes remain in
local/mission-interior/.
Complete REA evidence is retained in local/mission-interior/kkr-loader-evidence.json,
llr-evidence.json and llr-room-evidence.json, including procedure addresses,
provider versions and analysis limitations. Key records are
ev_ff133752f2615f39c7800146722c4c0180dd256e595556e7b8b7f6339066d038
(factory), ev_c952fb571baa966eeaceb5f771094609dc58c46557ad90fd27d21da85819ef5e
(generator reader), ev_630e6a787acd35966b3bfc5b18dfd51b171b413f872590d7aab4e69014917e9c
(generated creation), and
ev_a7bf2942b2052a01d0c86ecb264575c434ba5420d1dcb1208b6851d60b5a7bb1
(room reader). Pseudocode is a static observation, not original source or an
observed successful mission-entry run. Owned native analysis sessions are closed.
Additional complete evidence bundles in the same directory are
hhr-blob-evidence.json, kkr-iir-evidence.json, llr-door-evidence.json,
kkr-door-evidence.json and llr-door-state-evidence.json. Key records are
ev_874d6db31f1b87de2ec24d7bc57fb7ac5bc3f142c2f6f0961bc6d3efdde23715
(database-object reader),
ev_a305b7e17a14f3a93139401da3d969cbb183cea511332c81b14da14f487130e7
(derived playfield reader),
ev_a9df50f794ee3535183564ca4f4868bf11313457b62bb3b8ee8e5ed0737287af
(door decoding),
ev_0714be8f9bdafd8ab68f97e5eac08949655d7fcbc0392fef235e4e0cfd2518ac
(connection matching), and
ev_71bd9ed49c16e7a4976985009e92caa6d47a22847fae67061f224d10b6a13600
(door-open query).
Server dungeon floor data
The server's outdoor terrain reader cannot supply dungeon floor heights or
walkable cells. dungeon_tilemap.go now decodes original resource1000009's
GNDA format for the four room libraries: playfields331/341/346/351 use
maps330/340/345/350. The source tilemaps are100x100,200x200,200x200 and250x250,
respectively, with two-unit tile spacing. This is a decoder dependency; no
private-world admission or movement consumer is enabled by this change.
BBR's reader 0x100a3dd0 and header parser 0x100a43f0 define the dimensions,
height scale and variable tileset records. Subsequent DCGA, DHGA and HCDA
chunks contain8-bit grayscale PNGs for tile types, floor samples and ceiling
samples. Their declared lengths include12-byte headers and each chunk has
relative four-byte alignment. Optional TAHA appears in the Omnilab/Subway
libraries. The final HSTA length instead counts only its uint16 height words;
those words are multiplied by the original float32 value0.1.
HCDA decoding (BBR:0x100a4870) adds32 to each stored byte with byte
wraparound. LLR:0x10039f00 subtracts32 after loading, before applying the
height scale. Retaining that intermediate byte conversion matters: adding32 as
an unrestricted integer changes the ceiling values. Tile types preserve their
high wall bit; the lower seven bits select a tileset height.
Tests compare every byte of all12 grids against independent Pillow decoding, including the optional chunks and ceiling wraparound. Malformed headers, dimensions, scales, tileset lists, chunk lengths/versions, PNG data, height records, unsupported tile indices and trailing bytes must fail without usable geometry. These checks do not establish room placement, floor triangulation, liquid handling or authoritative room-transition behavior.
A headed GPU run of the published WASM client loads the two-room protocol
fixture as owned player289. Read-only guest-memory capture matches all30000
map330 tile/floor/ceiling bytes, dimensions, spacing and scale. The three
ordinary tileset heights also match. Types0/1 load as zero despite their
archived uint16 height words65535. The live preview serves exactly the original
6032-byte map330 record (SHA256
eb749f11b9a0322b9da329b5628cc7739702d7f297ebb2244acb1d9403969e9c),
so stale asset data does not explain the discrepancy. The decoder retains the
archived values. The original generated-world factory clears heights >=6553.5
before room admission; the scene builder now applies that separate preparation
step. See the normalization evidence below.
The owned browser and analysis sessions are closed; the single shared preview
remains running.
Evidence and reproductions are in local/mission-interior/:
llr-room-surfaces-evidence.json, bbr-dungeon-ground-evidence.json,
tmp_tilemap_decode.py, runtime-dungeon-ground/,
dungeon-ground-native-verification.json and
live-tilemap-source-verification.json. The original surface lookup
(LLR:0x1003edd0) uses identity1000013/library<<16|roomOrdinal; both selected
original room meshes already decode through the server's existing KD-tree
reader. Native room queries select one containing room and transform queries
into its template coordinates (0x100364c0/0x10036780), rather than combining
all room meshes indiscriminately. These static observations still require a
server integration and native comparison of placed query results.
Placed-room physics backend
dungeon_rooms.go reads all298 original room records directly from the bundled
archive. Tests compare every retained atlas bound, source pose, orientation,
door binding, liquid-presence flag and floor baseline with independent Python
room parsing and PNG decoding. Room parsing rejects malformed headers, counts,
lightmaps, water/camera framing, bounds and nonfinite positions. The suffix
beyond the base room list remains outside this physics reader.
mission_scene.go builds immutable placed rooms over the existing shared
surface cache. The generator and physics builder share field validation.
Placement follows KKR:0x100f5540/0x100f5e10: reverse building Z, rotate the
room anchor, swap quarter-turned dimensions, and normalize signed floors against
the lowest assigned floor. Building dimensions and room-template references
must be valid; rooms with liquids are rejected until liquid physics is connected.
This builder does not yet validate complete topology or choose authored portals.
Room membership follows LLR:0x100326e0/0x10031910: rotate into the placed
tile grid, reject empty cells, and compare Y with the local floor and ceiling.
Mesh queries instead rotate by the difference between placed and original
orientations. Keeping these transformations distinct supports both the grid
and original template-world collision coordinates. Sphere queries use the
containing room; segment queries use the start room or fall back to the end
room, query that mesh, then use the start point's floor plane after a mesh miss.
Floor projection combines the tile grid's fixed diagonal with the original
KD-tree's one-unit downward probe. The native KD-tree wrapper 0x100460f0
takes this bound from the initialized upward normal, rather than the query's
height above zero. The room wrapper transforms the mesh contact point while
retaining its returned normal; grid normals rotate with the placed room.
The resulting floor height is clamped to0.001..1999.9. Go tests cover both
nonplanar tile triangles, rotated grid normals, near/distant/empty mesh floors,
mesh walls, segment fallback, stacked rooms and concurrent instances sharing
meshes while keeping separate placements. This is source-derived behavior;
the native comparisons below do not establish every sloped-contact result.
Published-WASM fixtures290..293 load the connected room0/room37 layout at all four rotations. Read-only capture matches the Go anchors within0.00005 units, original source poses, reciprocal links and exactly one exterior portal. All four characters settle at Y0.011, consistent with the sampled floor0.001 plus the native standing offset. Screenshots were visually reviewed, and the owned browser contexts close before builds. No page exceptions or adapter errors occur; these runs retain two browser console404s each without identifying their resource URLs. No WASM source or published client artifact changes.
These are owned client-only fixtures. The sole shared HTTPS preview continues to run; the backend is not yet routed through live character movement. Private assignment, immediate entry/return persistence, key admission, instance isolation, room-transition vetoes and retirement remain open. Generated-world preparation now resolves the raw-versus-runtime heights of library330 types0/1.
New evidence/reproductions in local/mission-interior/ are
llr-room-admission-evidence.json, llr-room-floor-evidence.json,
tmp_room_physics_goldens.py, tmp_rotated_scenes_test.go,
runtime-rotation-0/ through runtime-rotation-3/, and
native-rotation-verification.json. Original room-membership evidence is
ev_c10492347dc4e670a2642c1cb0f309840ea4cbd7bc4ade90a4bc041ebaeb0058;
floor-baseline recovery is
ev_668fda0e007490eea9953148c839e836e507060a7406660eaa864f46d9ebc402;
the static-floor wrapper is
ev_670b516889b145cb6bae76e2b8ffdf48e2249769bf7256a0e79d1a5bc3c22e77.
All owned REA sessions are closed.
Room physics/library/generator tests pass19 roots/396 results under the race
detector, including shared-mesh concurrent placements and the empty-primary-tree
floor fallback. The final focused suite adds a stacked-room case and passes20
roots/397 results. The broader scene/terrain/surface/generator regression run
passes56 roots/525 results under race; that binary predates the final empty-tree
fallback, which is covered by the final focused race run. Final build and vet pass.
Logs are final-mission-scene-race-tests.json, final-room-physics-race-tests.json
and final-mission-scene-tests.json in the investigation directory.
Generated-world tileset preparation
The original generated-playfield factory (KKR:0x100f3b20, evidence
ev_630e6a787acd35966b3bfc5b18dfd51b171b413f872590d7aab4e69014917e9c)
clears each scaled tileset height >=6553.5, then calculates room height bounds.
This is a preparation rule applied to every tileset index. The server now
performs it in the scene builder, while its raw archive decoder still preserves
the authored uint16 height words. Library340's ordinary heights4/4/8/16 all
survive, including its nonzero entries at indices0 and1.
An isolated diagnostic WASM build logs the original BBR decoder's writes for map330 as6553.5/6553.5/6/4/5.9000001. Read-only capture after generated-world loading finds0/0/6/4/5.9000001 in the same resource object. Its three PNG grids and final height table agree with the unmodified published client's earlier capture. Static factory code supplies the normalization rule; the diagnostic observes the decoded writes and subsequent loaded values. These observations resolve the earlier discrepancy without changing the client port.
The scene regression checks that a standing character is rejected in a wall cell whose unavailable ceiling was previously interpreted as thousands of units high. It also verifies normal room admission, preservation of raw decoder values, and preservation of ordinary low heights at all indices. The complete room/library/generator suite passes under the race detector. Build and vet pass. This corrects the physics backend; private entry and live movement routing remain unfinished.
Reproductions are tmp_build_tilemap_trace.py, tilemap-trace-client/,
runtime-tilemap-decode-trace/, tmp_verify_tilemap_normalization.py and
tilemap-normalization-verification.json in local/mission-interior/.
The diagnostic is an owned client-only fixture (player294); it does not modify
the shared preview or published WASM. All owned browsers and analysis sessions
are closed. cr-tilemap-short-evidence.json confirms the underlying short
reader copies the raw two bytes; it contains no normalization rule.
Runtime scene dispatch and room admission
Generated scenes can now be registered under a private runtime world identity. Registration rejects public or duplicate identities and publishes the scene only after its original external portals pair with opposing directions, matching positions and the same authored floor. It requires one exterior portal and a connected room graph. Removal affects that runtime identity; other instances retain their own placements and shared immutable room meshes.
The common geometry dispatcher now sends floor, sphere and segment queries to the registered scene, so the ordinary player controller also uses indoor collision, gravity and jump clearance without an outdoor terrain object. Room admission keeps the Dynel's last allowed room and pose separately from the movement controller. It applies the native integer-boundary nudge, coordinate limits, empty-cell and unlinked-room vetoes, historical-position recovery and entrance fallback. Prediction copies this history; committing predicted movement also commits its room history. Significant state persistence is unchanged, and movement tests verify that simulation ticks leave stored positions unchanged.
Portal placement and pairing follow LLR GetDoorPosRot 0x10033650 and KKR 0x100f2f30. Room-transition recovery follows LLR 0x10036870/0x10036aa0 and KKR 0x1014cf70/0x1014dad0. The fallback uses the highest floor corner at the entrance anchor; if that cell is empty it scans tiles in X-major order and transforms the first nonempty tile center. Its raw tile height differs from the interpolated floor used during normal movement. Floor interpolation is shared by portal placement and ordinary floor sampling.
Published-WASM fixture296 uses the connected room0/room37 layout on the GPU. It runs into the chamber, returns to the entrance after lining up with the portal, jumps and lands, and holds movement against the side wall. Go's matched normal Solitus female stops at the running wall within 0.002 units of the native pose [14.048968,0.011975,48.291656]. An off-center reverse walk stops at the doorway frame near [14.048965,0.011,32.186890] in both implementations. The side-wall contact X17.341246/Y0.740876 also agrees with Go's wall fixture. These settled contacts do not establish identical trajectories or every sloped query. Native screenshots were reviewed; no page exception or adapter failure occurred. Two browser console 404s remain in the capture. The owned browser was closed before the broader build/test runs, and the single shared HTTPS preview stays available.
The probe's field named cell reads an unverified actor offset and remains 1
throughout this run. It is not evidence of native room membership. Traversal is
established by observed world positions and the previously verified room poses.
Registration currently models links with empty door identities, which the original client permits. Real door bindings, their locked/keyed access policy, private assignment persistence, corrected-pose delivery, occupant evacuation before retirement and cross-system isolation are still required before player mission entry is enabled. This milestone does not make missions enterable from the shared preview, and does not change the published WASM.
Retained evidence in local/mission-interior/ includes
llr-room-recovery-evidence.json, kkr-room-admission-evidence.json,
llr-room-floor-recovery-evidence.json, runtime-movement-comparison/,
tmp_native_movement_comparison.mjs, tmp_verify_movement_comparison.py and
native-movement-verification.json. GetTileCenterGlobalPos evidence is
ev_5642f3249136cf8d5ab66e0242443da42d897586b469f63132ff9f7ed844fa95;
GetHeightAndNormalAtPos evidence is
ev_cfc123afaf0950ef057a0b920477e3cddfd2f947ab755741ca4e62fca8f7ad65.
All owned REA sessions are closed.
The focused movement/scene/terrain regression suite passes under the race
detector: 115 root tests and 683 results, including concurrent registration and
retirement. Build and vet pass. Combined comprehensive coverage completes all
1,490 server root tests and 23 data-package root tests, with 15,594 unique passing
root/subtest results and no assertion failure. The monolithic invocation reached
its 30-minute ceiling with 11 root tests unfinished; all 11 pass in the separate
completion run. The capped invocation remains a failed invocation in the logs.
These results are verified in mission-movement-regression-verification.json,
with logs mission-movement-full-server-tests.json,
mission-movement-remaining-server-tests.json and mission-movement-race-tests.json.
The final mission-fixture cleanup recheck passes 31 results in
mission-movement-final-fixture-tests.json; those fixtures close their SQLite
world handles as well as their original-resource files.
Persistent mission assignments
Acceptance now allocates a runtime world identity independently of the mission
key's item identity. The world row retains a monotonic last_playfield_id
counter, starting after the original 16-bit public-resource namespace. The
mission row stores that world ID and its exact generator blob, committing them
with the contract, key and inventory ownership. Retirement deletes the contract
and assignment while retaining the counter, so a stale world identity cannot be
reassigned to a later mission.
The native version 3 generator codec is shared by storage and playfield packets: unsigned dimensions, library ID, ambient values and the ordered six-byte room records have one encoder. The reader rejects malformed framing, invalid fields and unsupported generator versions. Version 3 is the original client protocol, not a compatibility format for earlier server schemas. Existing development databases need a fresh schema; there is no migration or legacy reader. The shared preview has not been reset or restarted for this change.
Allocation participates in the inventory transaction and is verified again before commit. Tests cover aborted/ignored/rewound allocation, a later world-row rewrite, deferred commit failure and retry, concurrent owners, cold reload, retirement/expiry, counter exhaustion and corrupt layout rejection. Existing acceptance-failure tests now also check that the world counter rolled back. The saved layout remains independent of later generator-code or catalog edits.
An owned published-WASM fixture 297 loads a packet constructed from a real accepted mission after SQLite reload. Its runtime world is 65536, the native object identity is 40016/65536, and the two generated rooms match the expected anchors within 0.00005 units. The native room link has an empty door identity. The client crosses into the chamber, returns, jumps and lands on the entrance's raised biological mesh. Go reproduces the captured settled mesh contact near [15.027545,2.160428,21.828888] within 0.002 units. Screenshots were reviewed on the GPU. No page exception or adapter failure occurred; two browser console 404s remain in the capture. The owned browser closes before builds and race tests.
This replay changes only the owned client's incoming world stream. It does not exercise a server entrance, key admission, durable character entry/return, private-world loading during ordinary reconnect, cross-system isolation, occupant evacuation or mission rewards. Those remain required before enabling mission entry. No client source or published WASM artifact changes.
Evidence in local/mission-interior/ includes
persistent-instance-entry.json/.bin, persistent-instance-packet.log,
persisted-entry-overlay.json, tmp_persisted_entry_test.go,
tmp_native_persisted_instance.mjs, runtime-persisted-instance/,
persistent-instance-native-verification.json and
persistent-raised-mesh-test.log. The saved generator is
000300040006000a0000014b64646400000002000000010302002500010100;
the native packet SHA256 is
47a032014534b636e3e1311345cff9439fed3349f609418c85594206f51aabbc.
Focused mission regressions pass 66 root tests/592 results. The broader
mission/inventory/database race run passes 82 roots/629 results against the same
production code; the final focused run additionally includes the alternate
saved-layout preservation case. Build and vet pass. Logs are
persistent-instance-final-tests.json and persistent-instance-race-tests.json;
persistent-instance-verification.json records their counts. These are fresh
SQLite fixtures. No backward-compatibility path or extra preview server is added.
Key-gated live entry and atomic return
The fixed starter assignment now uses the normal server entrance and reconnect paths. An active native session approaching its exterior must hold an actual bound key instance in main inventory. Admission queries the persisted item location and mission binding; an unrelated template28577, banked/reclaimed key, revoked binding or expired contract does not qualify. Distinct owners at the same exterior select their own runtime worlds. A copied binding can admit its holder to the same world as the owner. Duplication itself remains unimplemented. Multiple qualifying assignments at one exterior currently deny entry instead of choosing arbitrarily; the original selection policy needs evidence.
Exterior transforms come directly from the original statel record1000026, not a second generated entrance catalog. Surveillance Office56006/3221228472 in playfield3000 has position[89.302162,115.14444,151.16087] and quaternion[0,0,0,1]. Its unique unmatched generated-room portal determines the private arrival and orientation. Entry starts2.5 units inward; return starts2.5 units outward from the authored exterior. The provisional horizontal2-unit/vertical8-unit approach envelope follows existing zoning, rather than claiming a recovered native trigger volume. Stationary look updates do not trigger entry.
Zoning now commits the full replacement character record before sending teleport and redirect. Ordinary position checkpoints retain their periodic cadence. The outer city/backyard return link survives the mission journey. Private records load only after mission assignments, and reconnect sends the saved generator with the assigned runtime identity. Rejected private position reports relay the admitted position; an owner correction is sent only when the native compact position changes. The original quaternion and yaw scalar remain separate so observers apply yaw once.
Abandonment and expiry stage every player occupant's exterior return in the same inventory transaction as contract/key retirement, including offline occupants and copied-key guests. Full character edits use the existing shared transaction as a batch. Failed writes, ignored updates and failed commits retain the world, players, keys and journal for retry. Geometry is removed only after committed returns are published, and the owner's journal retirement precedes its redirect. Startup expiry loads the saved scene before evacuating occupants. Remaining floor objectives now retire in that same transaction; collected books keep ordinary inventory ownership. Mission NPCs and corpses also retire in that transaction; completion retains the occupied world until its original deadline.
The paired interior portal now has a persistent native door, replayed open and latched after the generated world update. An empty door identity admits movement but leaves native visibility closed; real full/status updates fix cross-room melee and nanos. Historical style selection, automatic opening and locked access remain open in mission doors. The current mission also supports bound floor-item collection, encounters, objective completion and cash/item rewards.
An owned GPU WASM client on the single HTTPS8443 preview accepted the mission
through the normal terminal, walked through the Surveillance Office entrance
into world65536, traversed into the second room and reconnected there. Native
room count2 and generator identity[51105,65536] agree with server state; actor
poses agree within the native compact-pose precision. The runner records the
unmodified WebSocket stream; it does not inject a
world packet or place a player directly in a private world. Public control
editing only arranges the exterior approach. Walking back through the exterior
portal returns to playfield3000 at[89.30216,115.14444,153.66087], facing outward;
native compact placement is[89.25,115.01,153.625] after floor alignment. Evidence is in
local/mission-interior/runtime-live-entry/ and tmp_native_live_entry.mjs.
Cold restarting the actual preview with the character inside reloads world65536 and its two rooms. Confirming abandonment in the native journal from inside returns the player to that exterior and clears the journal. No client exception or adapter crash occurred. The browser console reports missing-resource404s already present during ordinary page loading; captures retain them separately from page exceptions rather than claiming a completely silent console.
The final focused regression run passes131 root tests/794 results across server
and game-data packages. The race run passes26 roots/97 results, including native
reconnect, immediate persistence, rejected movement relay, separate owners,
copied-key guests, multi-occupant rollback, retirement and startup expiry. Build
and vet pass. Evidence: mission-entry-verified-regression.json,
mission-entry-verified-race.json, mission-entry-verification.json and
mission-entry-native-verification.json. The preview database was reset for the
current schema with the existing HTTPS certificate retained; subsequent cold
recovery uses that saved database. The original published WASM is unchanged.