Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
95a73ea
Activate the canonical run-owned World fixture through its owner
benhook1013 Nov 20, 2026
db4db45
Let the canonical run-owned World fixture take an initial-admission hold
benhook1013 Nov 20, 2026
c767086
WIP: fixture hold release, descriptor-digest lifecycle convention, GS…
benhook1013 Nov 20, 2026
e9d7f39
Drive the canonical run-owned fixture to its first OPEN in Game Session
benhook1013 Nov 20, 2026
28d7dcc
Admit the fixture hold RPCs past World's bearer gate and mount the Co…
benhook1013 Nov 20, 2026
faa7497
Wire Account REALMS/JOIN onto the canonical admission chain
benhook1013 Nov 20, 2026
90eb5c9
Repair the Validation failures on the canonical admission branch
benhook1013 Nov 20, 2026
45ba4b1
Register Account's PLAY admission receivers
benhook1013 Nov 20, 2026
8112a3f
Record the registered REALMS/JOIN and PLAY receivers in the access tr…
benhook1013 Nov 20, 2026
39c6ab0
Make the run-owned fixture realm PRESEEDED_ONLY and clear remaining C…
benhook1013 Nov 20, 2026
93353d1
Refresh the Smoke PLAY classifier fingerprint for the fixture capability
benhook1013 Nov 20, 2026
ac12b0e
Keep Game Session integration proofs current with the fixture runtime…
benhook1013 Nov 20, 2026
c94b1e3
Expect fail-closed WebSocket PLAY until PLAY moves onto the canonical…
benhook1013 Nov 21, 2026
8ba1590
Refresh the Smoke PLAY classifier fingerprints for the fail-closed We…
benhook1013 Nov 21, 2026
78fdc5a
Carry the current canonical PLAY parent into the Telnet admission slice
benhook1013 Nov 22, 2026
479fc67
Prepare Account storage for the run-owned fixture capacity baseline
benhook1013 Nov 22, 2026
2bcac52
Check retained capacity rows against their pre-upgrade columns
benhook1013 Nov 22, 2026
fdf5a22
Separate physical dispatch and bounded region-transfer verification
benhook1013 Nov 22, 2026
4c0b07a
Prepare the run-owned World and Entity room view owners
benhook1013 Nov 22, 2026
941c588
Issue an exact Game Logic workload leaf in owned smoke
benhook1013 Nov 22, 2026
be912b8
Carry the prepared run-owned WebSocket transport from #3461
benhook1013 Nov 22, 2026
38924b3
Validate exact fixture workload leaves and bind mounts
benhook1013 Nov 22, 2026
8ae8cd4
Refresh reviewed smoke fingerprints for the REALMS carrier
benhook1013 Nov 22, 2026
b5daa57
Compile the REALMS and LOOK services with the shared fixture codec
benhook1013 Nov 22, 2026
bcf22f4
Carry the shared fixture read authorization guard
benhook1013 Nov 23, 2026
13a8d10
Apply the workload-only guard and verify the exact Entity method allo…
benhook1013 Nov 23, 2026
892256e
Carry the historical issuer cohort fixture comparison
benhook1013 Nov 23, 2026
86dfa80
Document the fixture Entity receiver’s shared jOOQ dependency
benhook1013 Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -616,19 +616,19 @@ jobs:
// Include held-admission proof, authenticated cleanup, and their executed inputs.
const canonicalPlayClassifierSha256 = {
"dev-tools/verify-smoke-images.sh": "6597800feb9604921a55be989e70247ec4610f81ac8c203f038429c1be7d0bc7",
"dev-tools/smoke/smoke_common.py": "b986110c875c2ed49e8239d09946b2c40fe7081fc3daa7cb8d5d6ce201330907",
"services/game-session-service/websocket-login-look-smoke.sh": "48c4969a4e29e2ea974d43405741de79f582b6131576f2ca2b5ddbbc818bf0ca",
"dev-tools/smoke/smoke_common.py": "74c37f2641b457eb6dda266f30222c5cc7448ab0ba14f374d413a7d6d54514e1",
"services/game-session-service/websocket-login-look-smoke.sh": "60bc796c04364706235816b02b1b495f1e1e2d260b6d36b093dd0ed2eb845d44",
"dev-tools/smoke/demo-smoke-defaults.sh": "8c9aae1abf005b47af3f313e0d635a666c74776733bcf5278a2e11ac9c8a18fb",
"dev-tools/smoke/held-admission-qualification.sh": "b548a773f1786b72d40a3728052a336cb249257a3f40735f005b060812184ed3",
"dev-tools/smoke/held_admission_qualification.py": "2d118d7ba6a19dac7d8c717dbbbe25df6f04a3c186a3185135d1bdc5fc75b557",
"dev-tools/smoke/run-owned-compose.sh": "fc127524510c02cc0fd5a1a588868be48e5a42783529e14b2b823eaf85dce5e5",
"dev-tools/smoke/run-owned-compose.sh": "7b96cb02d5414283264c4d5e9a1b85ae063ada35dc834696f9016e520583a960",
"dev-tools/certs/ensure-dev-certs.sh": "b94f8b1a18d53c818528d1fe31caa5d4270ad324dad6408aeaf896cdbf5f2e2b",
".env.sample": "d19cecadde844c77b8e1d366b5a2ff8fae1a5c181fad450f3fc1c407be70752d",
"docker/docker-compose.yml": "0e8ea0fc42a6388a267d6f80baaf1259f38a73c460aa3db77a09be0fa9436a19",
"docker/docker-compose.override.yml": "2e720be03f942fd4456d46cea5a127f16106a1056aec6ddaaf52b2bb31b51d75",
"docker/docker-compose.smoke-images.override.yml": "7717be8b49a1dc548a47fba852c181feeb4dbe9a21fc201a7f8e74b992801fd6",
"docker/docker-compose.pr-local-minio.override.yml": "d975ce211afcb73079a21c70fda358e3a8f3366b83fe0302907c9d7149ce965e",
"docker/docker-compose.grpc-mtls.override.yml": "b8378f7e41849b63f95fa2f233c897d65b6ac1b0d3ccf4777aa924b3b35bceb4"
"docker/docker-compose.grpc-mtls.override.yml": "e6ee1a005a28aa7018a2f5f053deb47bd72a76ee62fb312d9c0e67c33a83aec6"
};
const canonicalSmokeJobName = "PR Full-Stack Smoke (runtime-required=true)";
const workflowPath = ".github/workflows/runtime-images.yml";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ The target `ListRoomEntities` request carries the same `CausalReadFence` as Worl

After that protocol exists, Entity Management serves the same region/scope/epoch and returns that proof, a scoped `servedThroughTickId`, and an opaque Entity component version. That returned version follows the [Identifier Glossary causal-read contract](../../system-architecture-identifier-glossary.md#cross-service-causal-read-fence-identity): Entity advances it atomically with relevant durable containment-owner commits and returns the stored version on matching replay/no-op. Game Logic accepts the participant when the returned region/scope/epoch matches and `servedThroughTickId >=` the requested `committedTickId`; a behind-floor or mixed tenant, game instance, region, room, or epoch response is rejected or retried. Opaque component versions are not directly compared. Game Logic validates the served-through proof, then composes only the requested floor plus the World and Entity component versions in the room-view identity and returns that identity with `LookResult` so Game Session can retain its transcript rendering/cache behavior; it does not claim an exact cross-database historical snapshot.

The protected `RunOwnedFixtureLookEntityService/ReadRunOwnedFixtureGround` read is restricted to the pre-v1 run-owned Compose fixture and the authenticated Game Logic workload. Entity correlates the exact active World proof with the mounted fixture receipt and verifies that the canonical game instance has no persisted ground-holder data in the current owner snapshot. Populated or unqualified scopes are held. Entity qualifies fixture room contents using the canonical game instance UUID.

Room-entity data is derived from runtime entity state plus authoritative world location. Ground items are discovered by querying items contained by the synthetic room-ground container for the target `RoomInstanceRef`. Characters and NPCs are included when their current location (owned by World Management) matches the target `RoomInstanceRef`:

- Game Session obtains the complete causal floor, including `regionId`, from durable region commit authority before invoking `ResolveLook`; Game Logic propagates that floor unchanged to `ListRoomEntities`. The target request/response evolution must carry enough information for Entity Management to prove service of that region/scope/epoch floor; the current proto/request path does not yet carry the floor or served-through proof and does not claim this behavior complete.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ grpcurl -plaintext -d '{"tenant_id":"demo","session_id":"demo","command":"look"}

## LOOK Aggregation and Formatting

The protected `RunOwnedFixtureLookService/ResolveRunOwnedFixtureLook` read serves the run-owned starter-room view for an already admitted Game Session caller. It combines the exact current World snapshot with Entity's qualified empty-ground read, checks the World response again, and returns the ordinary structured `LookResult`. The scope markers identify the fixture data. The target causal-floor contract below governs durable runtime reads.

- `ResolveLook` orchestrates World Management and Entity Management: World provides room topology, ambient state, and the authoritative occupant set for the target room or instance, while Entity enriches those caller-supplied occupant references with live entity and ground-item display data to build a deterministic `LookResult` that Game Session renders for clients.
- In the target causal-read path, Game Session allocates the complete `CausalReadFence` from durable region commit authority before invoking `ResolveLook`. Its runtime fence identity is at least `{tenantId, gameInstanceId, regionId, roomInstanceId, regionEpoch, committedTickId}`. `playableStateNamespaceId` and `playableStateScope` may remain broader validated request/admission context, but they are not part of the runtime fence identity. Game Logic propagates the fence unchanged to World and Entity and forwards the validated preferred locale unchanged to World Management for localized room snapshot resolution. World Management owns stored-variant selection; fallback and provider rules remain owned by [Input, Output, and Presentation](../../system-architecture-input-output-and-presentation.md#localization-and-translation) and [ADR 0136](../../decisions/adr-0136-future-compatible-localization-boundary.md), not this service. Game Logic accepts only participant proofs matching the requested fence scope and epoch, with `servedThroughTickId >= requestedFloor` (the committed-tick floor), and requires each participant's own opaque component version. It rejects or retries behind-floor, missing-version, or mixed-region/scope/epoch responses. Component versions are not globally comparable numeric values: equality is not required, numeric skew is not evaluated, and the floor/epoch proof is the correctness fence. The floor and composite-identity details remain owned by the [Identifier Glossary](../../system-architecture-identifier-glossary.md#cross-service-causal-read-fence-identity) and [ADR 0059](../../decisions/adr-0059-causal-floor-cross-service-presentation-reads.md). The current `ResolveLook` request/proto path remains floor-free, so this propagation and proof are target behavior rather than current implementation.
- The target-state `LookResult` should stay explicitly sectioned rather than collapsing everything into one mixed list. At minimum it should preserve distinct sections for room/world snapshot data, exits, visible occupants, visible room-ground items from the room-attached container, and later optional overlays such as combat, hazards, or ambient scripted notices.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Canonical source intake and Version association revalidate the fixed Game Sessio

- `GetRoom` – retrieves room data including exits and environmental effects through `RoomInstanceRef`.
- `GetRoomSnapshot` – returns a minimal, LOOK-focused view scoped by `RoomInstanceRef`.
- `WorldCanonicalInstanceLifecycleReadService.ReadRunOwnedFixtureStartRoom` reads the World-allocated starter room for the exact ACTIVE run-owned fixture. The same-namespace Game Session workload presents the complete lifecycle selector over mTLS. World validates the retained fixture association and reads the room mapping and lifecycle in one owner snapshot. The reply carries the fixture lifecycle evidence and World room key. Actor placement and player admission remain separate owner operations.
- `ListRoomOccupants` – **target state:** returns the authoritative typed occupant list for actors in a room, scoped by `RoomInstanceRef`. The current LOOK path is fixture-backed and has no World-owned location/occupancy persistence or authoritative read/write surface; it must not be treated as gameplay occupancy truth.
- `ApplyRoomAmbientStatePatch` – applies a typed ambient fact patch to the target runtime scope under expected epoch/version preconditions and an operation/aggregate/request-digest-bound guard derived from the root `EffectId`; matching replay returns the durable prior result and a conflicting identity or payload fails closed.
- `GetDraftDesignDigest` – returns the publish-gating digest for Draft world templates using the typed scope request `GetDraftDesignDigestRequest { tenantId, scope: oneof { versionId, scriptPatchVersion } }`. World Management supports `versionId` scope only and must return `UNSUPPORTED_SCOPE` for `scriptPatchVersion`.
Expand Down Expand Up @@ -219,6 +220,8 @@ This is **as-of World-owner catalog evidence only**. It selects ADR 0137's permi

## LOOK Snapshot Contract

The run-owned Compose fixture can use the protected `RunOwnedFixtureLookWorldService/ReadRunOwnedFixtureLookRoom` read. World requires the authenticated same-namespace Game Logic workload and the exact ACTIVE fixture lifecycle selector. In one owner snapshot it resolves the retained physical starter-room mapping, checks the requested room key, verifies that no World-owned character location is present there, and reads the existing scoped room snapshot. The returned tenant and game instance are canonical UUIDs. The returned scope marker identifies the fixture snapshot. The target causal-floor contract below governs durable runtime reads. This fixture read is held for populated rooms and requires the pre-v1 waiver.

`GetRoomSnapshot` is the canonical endpoint feeding Game Logic's `ResolveLook`. The current and target fence contracts are intentionally separate.

### Current room-snapshot contract
Expand Down
Loading
Loading