Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
9f581f9
Implement genuine Game Design realm policy source and publication proof
benhook1013 Oct 8, 2026
af42ea5
Merge commit '7760c0f6ec8eb5a13606d1f22b55acfcd573896f' into codex/ga…
benhook1013 Oct 8, 2026
77e982d
Preserve prepared Game Design source and complete launch contract bef…
benhook1013 Oct 8, 2026
b434a43
refactor: separate canonical launch consumer from source foundation
benhook1013 Oct 8, 2026
144f726
Merge commit '7e7830e1a' into codex/gameplay-game-design-policy-sourc…
benhook1013 Oct 8, 2026
cba57c4
Complete durable asset staging and source-foundation caller proof
benhook1013 Oct 8, 2026
5bf6c56
Reconcile published Account evidence foundation
benhook1013 Oct 8, 2026
2bd3164
Gate selected publication on genuine owners and preserve conditional …
benhook1013 Oct 8, 2026
010cbd7
Merge publication foundation preserving selected-owner mechanics
benhook1013 Oct 8, 2026
c620701
Fix publication tracker table after foundation merge
benhook1013 Oct 8, 2026
db7a854
Align launch denial fixture with the private owner read
benhook1013 Oct 8, 2026
07d0f30
Merge commit 'ce251923d5db37a8e2e8a7aa657e23e37a6dc10f' into codex/ga…
benhook1013 Oct 8, 2026
d7b0417
Merge publication foundation containment into policy-source boundary
benhook1013 Oct 8, 2026
6fd9b42
Reconcile Account and publication foundation preserving selected owne…
benhook1013 Oct 9, 2026
ff5ddcd
Reconcile complete nonempty publication candidate fixtures
benhook1013 Oct 9, 2026
fa54369
test(game-design): clear selected fixture static-analysis failures
benhook1013 Oct 9, 2026
24e291c
Merge commit 'd5349c4ab81dc16ebb735344a0549e7fa435c3f7' into codex/ga…
benhook1013 Oct 9, 2026
32b87f2
test(game-design): bind source fixtures to transaction and migration …
benhook1013 Oct 9, 2026
a639a3a
Merge commit '0d3ef721c' into codex/gameplay-game-design-policy-sourc…
benhook1013 Oct 9, 2026
dc2e3d2
Merge commit 'c79480e46cce2bebc59613d45851fa32703e598b' into codex/ga…
benhook1013 Oct 9, 2026
04e403d
Merge commit 'd0a5d725ca67ea7ab77fd7d1663271a1728ae823' into codex/ga…
benhook1013 Oct 9, 2026
3d88652
Merge commit 'a43d6293c5c5a91be790ba5987aa6fa8926fa703' into codex/ga…
benhook1013 Oct 9, 2026
5fe03e2
docs: clarify authorized read bindings and fail-closed version CAS
benhook1013 Oct 9, 2026
58643bc
Merge commit '41dbec2fb5e3989e4608e5629df5c1ede05cc057' into codex/ga…
benhook1013 Oct 9, 2026
e764f85
test(game-design): bind publish transaction fixtures to complete owne…
benhook1013 Oct 9, 2026
887f572
feat(common): define bounded StartSession operator action digest cont…
benhook1013 Oct 9, 2026
dcccbaf
test(game-design): expose publication mechanics failure diagnostics
benhook1013 Oct 9, 2026
7174140
Merge commit 'af9bd2230b25895b95b534990d8b9a1b5d9b11a0' into codex/ga…
benhook1013 Oct 9, 2026
74b4390
Merge commit '2996014bd5786631bb1ff557011bf1ea6e8274be' into codex/ga…
benhook1013 Oct 9, 2026
919501c
fix: bind publication seal to explicit read committed transaction
benhook1013 Oct 9, 2026
33f45e9
Merge commit '08dec16fa' into codex/gameplay-game-design-policy-sourc…
benhook1013 Oct 9, 2026
7af572b
style: format explicit publication seal isolation
benhook1013 Oct 9, 2026
ef22087
feat: preserve committed Account actor proof and StartSession reserva…
benhook1013 Oct 9, 2026
6d125b3
Merge commit '08dec16fa7b45bf440a4d57375b09ed0cc908c3b' into codex/ga…
benhook1013 Oct 9, 2026
1149fda
Merge commit '6d125b3fecd8cb3be65286f762f9b28c1ad31f80' into codex/ga…
benhook1013 Oct 9, 2026
3c86d21
Merge current World source foundation and reconcile publication proofs
benhook1013 Oct 11, 2026
47c67a8
Merge current retained World parent into selected publication source
benhook1013 Oct 11, 2026
dc0230c
Use schema-2 participant proof in immutable release publication tests
benhook1013 Oct 11, 2026
4b26d50
Carry Account PostgreSQL fixture repair through policy source stage
benhook1013 Oct 11, 2026
fe6472f
Carry final Account operator authorization fixture corrections throug…
benhook1013 Oct 11, 2026
b447db9
Preserve local peer guard preparation before source convergence
benhook1013 Oct 11, 2026
4a77aff
Merge current launch-source and selected-v2 repairs into policy stage
benhook1013 Oct 11, 2026
902ba9c
Merge commit 'b71119973c4933905e251167f05dc1e18455d16e' into codex/ga…
benhook1013 Oct 11, 2026
785d084
Merge commit '4e639e879822ded1bfaec68e503f3cd7d1875c68' into codex/ga…
benhook1013 Oct 11, 2026
8f3be45
test(game-design): use selector v2 participant fixture evidence
benhook1013 Oct 11, 2026
e60415b
Prove selector migration before enforcing publication owner guard
benhook1013 Oct 11, 2026
82416d5
Merge commit '52ce1681717b1a524e6cb6eeb7aef185fdd47a0e' into codex/ga…
benhook1013 Oct 11, 2026
a4515e6
Merge commit '6cdfcf6afd5d1ef647d82e8491101558f223832c' into codex/ga…
benhook1013 Oct 11, 2026
90678b8
Merge commit '5d8f8ac45d28a5c383eb79d12eca6e33c033e462' into codex/ga…
benhook1013 Oct 11, 2026
1d36405
Merge commit '068b3da2963ee173f6588d69e2e8a235668f8c0f' into codex/ga…
benhook1013 Oct 11, 2026
0081ff6
Merge commit '279b1954891e39dd1fac949c6b9cf90043adacd9' into codex/ga…
benhook1013 Oct 11, 2026
8b61c83
Merge commit '6ebbba8d4d5d0851dd2449c4e3c8a358aed3f09e' into codex/ga…
benhook1013 Oct 11, 2026
252df26
Merge commit 'e826498324eddffd70650bb28ce418380a051d1f' into codex/ga…
benhook1013 Oct 11, 2026
2d3d65a
Reconcile selected publication sources and preserve candidate recover…
benhook1013 Oct 12, 2026
e426c03
Carry combined prerequisite proof into selected policy stage
benhook1013 Oct 12, 2026
432318f
Restore coherent conditional publication and retained fixture proof
benhook1013 Oct 12, 2026
8f0ab6b
Carry current receiving parent into publication source
benhook1013 Oct 12, 2026
d0362dd
Repair isolated publication recovery fixtures on current parent
benhook1013 Oct 12, 2026
42c524c
Carry final World source parent and disposable database fixtures
benhook1013 Oct 12, 2026
936fc21
Carry current Account repairs into Game Design source stage
benhook1013 Oct 12, 2026
c9329a1
Carry retained Account replay into Game Design stage
benhook1013 Oct 12, 2026
e540c55
Carry LOGIN and replay source fixes into Game Design stage
benhook1013 Oct 12, 2026
e187af4
Carry current LOGIN review fixes into Game Design source
benhook1013 Oct 12, 2026
b730a22
Merge corrected gameplay currentness and Account proof into Game Desi…
benhook1013 Oct 12, 2026
06d5194
Merge current Account and World proof into Game Design source
benhook1013 Oct 12, 2026
103db4a
Record unassigned production read-authority readiness obligations
benhook1013 Oct 12, 2026
f6e3559
Merge commit '2c791cd885ed42f6031d568f0f815406ebd46c03' into codex/ga…
benhook1013 Oct 12, 2026
0b21d52
Merge commit 'c72d375f18b604daf9cfc25bd4c3a29fcef5943d' into codex/ga…
benhook1013 Oct 12, 2026
188362e
Merge commit 'd5271f4e0d09a3bf5186e5e62b4d24b352442799' into codex/ga…
benhook1013 Oct 12, 2026
500c677
Merge commit '8cd4fba0710727fc59f714a47fc02a8eb3d654d5' into codex/ga…
benhook1013 Oct 12, 2026
2d35117
Merge commit '409ba530a215c9995abf919df4f10ae41218a6f5' into codex/ga…
benhook1013 Oct 12, 2026
64d0bcc
Merge commit '45cc36eaa009f2d23fd61b1a59254af2f740fe5d' into codex/ga…
benhook1013 Oct 12, 2026
b46bd3d
Merge commit 'cb7f32ec10e21c073843c4670afb6b6178f0b572' into codex/ga…
benhook1013 Oct 12, 2026
d143d93
Carry authored source review corrections and verified registry fixes
benhook1013 Oct 13, 2026
0c903ee
Carry final published authored source proof and canonical formatting
benhook1013 Oct 13, 2026
b4f13c7
Reconcile inherited develop ancestry after owner tuple merge
benhook1013 Oct 13, 2026
de90b1d
Merge commit '42296c26c91459c229a6822c5a6fc81c8b0da4d1' into codex/ga…
benhook1013 Oct 13, 2026
c0b8074
Merge commit '9d9b19f6445fcf167858d4cdf38303bde9677de6' into codex/ga…
benhook1013 Oct 13, 2026
4499a7f
Merge commit 'e96a0695a1747f8215598b12479654f194bb31e5' into codex/ga…
benhook1013 Oct 13, 2026
c6a4c17
Merge remote-tracking branch 'origin/codex/gameplay-world-authored-so…
benhook1013 Oct 13, 2026
3a28f8f
Merge commit '20c7bd50b464e6f12c4119cc68443232bcec5945' into codex/ga…
benhook1013 Oct 13, 2026
6aaea5a
fix(game-design): protect policy source transitions and publication p…
benhook1013 Oct 13, 2026
00830b1
docs(game-design): retain failed-selection recovery obligation
benhook1013 Oct 13, 2026
053fddf
Merge remote-tracking branch 'origin/develop' into codex/gameplay-gam…
benhook1013 Oct 13, 2026
8a85adf
fix(game-design): preserve publication reconciliation and qualify gua…
benhook1013 Oct 13, 2026
62af4ca
docs(game-design): keep integration qualification in one tracker cell
benhook1013 Oct 13, 2026
9bf78e2
Preserve publication receipts and guard Draft visibility advances
benhook1013 Oct 13, 2026
3e81262
Guard reviewed source applications and complete realm-policy mutations
benhook1013 Oct 13, 2026
9152277
Fix selected terminal replay and qualify current-schema publication p…
benhook1013 Oct 13, 2026
a8cd099
Reject absent command deletions and prove valid source fixture mutations
benhook1013 Oct 13, 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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ V26's participant-scope and V27's effective-identity migrations are deliberately

Current cross-seam security status is also blocked: Account's runtime membership and entitlement gRPC methods are configured as public-method bypasses and their handlers accept caller-supplied account/tenant identifiers without the target exact Game Session or World Management workload policy. Participant digest authorization and tenant-identity gaps are recorded below and remain unproved.

The current passive authored-publication prerequisite retains the first exact selection and does not release its reservation after definitive `FAILED`/`NO_PUBLICATION`. Fresh/PENDING registered ingress is denied before reservation; this containment does not establish failed-selection recovery. The authorized Game Design fresh-attempt or source-bound successor contract and proof remain an OPEN [production-readiness follow-up](../../../project-management/implementation-tracking/game-authoring-publishing-and-activation.md#current-status) before selected-publication enablement or genuine protected proof requiring recovery. Preserve immutable original evidence and fresh reviewed bindings; World’s ABORTED reopening after reconciled No Publication is a separate owner boundary.

## Approach

- Each asset revision already stores author and timestamp metadata.
Expand Down Expand Up @@ -64,6 +66,10 @@ Game Design owns the durable, creator-visible coordination record for every shar
- Game Design advances the synchronized fence only after every required owner durably reports the same exact commit and digest. Partial application remains diagnostic workflow state and cannot satisfy `IN_SYNC` or become a publish target.
- Conflict assistance may construct a new proposed diff, but it must produce a new digest and exact base/epoch binding for creator review. Reconciliation never silently merges a stale proposal.

The [authored-source genesis and replay contract](./api-contracts.md#authored-source-genesis-and-deterministic-replay) requires explicit new-Draft genesis or an audited retained baseline before synchronized effective source can be captured. Its closed first-proposal base reference names the independently persisted genesis receipt, not a fabricated authored commit; subsequent authored bases name exact retained commit UUIDs. Proposal acceptance and frozen selection preserve the complete owner-resolved base evidence and digest rather than an opaque caller label. History and release assembly retain its stable-key replay and original source provenance; absent or unknown lineage cannot be normalized into empty content.

Game Design's [realm-entry policy owner contract](./api-contracts.md#published-realm-entry-policy-owner-read) separately freezes the complete effective policy source at that selected synchronized fence. A latest mutable revision query or the selected commit's diff alone cannot supply unchanged inherited policy state. Policy capture and immutable published-policy association preserve the original operation and genuine terminal bundle without adding policy fields to the existing closed release or terminal representation; they do not establish runtime catalog or admission authority.

#### Publication freeze and owner handoff (Target State)

The synchronized Draft fence is also the lifecycle handoff into publication. Before collecting the World Management participant digest, reading the final release state, or committing `published_release_bundle` and `PUBLISHED` metadata, Game Design must obtain and retain the exact WMS owner-freeze acknowledgement, then complete or abort that same owner operation after reconciling its publication outcome. The canonical WMS operations, fields, phase transitions, exact replay/conflict behavior, and current implementation/proof boundary are defined in [World Management API Contracts](../world-management-service/api-contracts.md#publication-freeze-and-terminal-handoff-target-state). This is one owner-local freeze protocol, not a distributed transaction: the freeze serializes WMS Draft writes, while Game Design remains the lifecycle and final-attestation authority. Focused proof must interleave a WMS mutation with freeze acquisition, publication, retry, abort, and lost-response reconciliation and prove that no post-freeze Draft row or digest can become part of a Published release.
Expand Down Expand Up @@ -138,6 +144,8 @@ Game Logic's owner-local full-version manifest and provenance remain unproved. I

Launch and release-attestation reads are owner-to-owner control-plane APIs, not a generic internal-service read class. Each RPC must have an explicit authenticated workload allowlist and bind the caller's authorized tenant/scope to the request before reading data; a bearer that merely declares `isInternalService` is insufficient. The target launch/read allowlist is: `ResolveLaunchDescriptor` — Game Session only; `GetTemplateReferencePhase` — Game Session for launch preflight and the explicitly named Game Design/retirement-control-plane workload for cutover tooling; `GetPublishedReleaseBundle` — Game Session, World Management, and Automation & Scripting; `GetVersionState` and `GetVersionAssetArtifactState` — Game Session and World Management for launch/activation reads. `GetVersionAssetArtifactState` also has a separate operator-diagnostic use: Logging & Admin may broker an authenticated read for operators, and CI/runbook automation may use only a dedicated named operator-read workload identity (or the Logging & Admin operator surface), never a generic internal-service bearer. That operator path is diagnostic evidence and does not grant launch or mutation authority. Each request must exact-bind its tenant and version/template/request scope (including source/target versions where present), and the owner must reject a wrong workload, cross-tenant scope, omitted scope, or changed replay identity before returning a descriptor, attestation, lifecycle state, or artifact state. Focused proof must exercise every allowlisted caller and a denied internal workload plus cross-tenant requests for each RPC, including the separate operator-read path where it is implemented.

For launch, attestation, and source-operation reads, workload authentication and request scope are necessary but not sufficient authorization. The read must also be bound to an authenticated, immutable receipt issued by the independently authorized owning operation: the receipt identifies the certificate-derived caller workload and namespace, canonical tenant, exact version and selected commit/digest, read purpose and scope, and the governing authorized operation/lifecycle. Caller-supplied tenant, correlation, or workload fields alone confer no authority. A valid receipt for an exact terminal read does not require that the version still have an active Draft. The binding preserves existing Account authorization and owner-source checks required by their contracts; exact terminal reads remain subject to the documented terminal-read policy and do not derive perpetual authority from a retained receipt. Operator diagnostics remain separately Account-authorized and do not gain launch or mutation authority through this binding. The receipt is evidence of the owning operation's existing authority, not a new revocation authority; this contract does not define a new receipt expiry or lifetime.

Current production behavior is narrower than this target: `GetPublishedReleaseBundle` authenticates only its exact candidate Game Session, World Management, or Automation & Scripting peer, while `GetVersionState` and `GetVersionAssetArtifactState` authenticate only their exact candidate Game Session or World Management peer; each then denies by default before owner reads pending genuine operation-specific authority. There is no current admin, generic internal-service, or bearer fallback, and the separate operator-diagnostic path above remains target-only and unimplemented. The isolated run-owned fixture's owner-local projection handoff does not change these production RPC permissions. Focused proof must cover each candidate peer and denied admin/internal/anonymous/wrong-namespace/wrong-peer calls, including that denied requests perform no owner read.

In addition to domain-service digests, publish safety requires a Game Design control-plane digest:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The failed-candidate purge exception is target-only as well: Game Design must du

The destructive asset lifecycle also remains target-only for operation durability: `TombstoneVersionAssets`, `BeginPurgeVersionAssets`, `FinalizePurgeVersionAssets`, and `RepairPublishedVersionAssets` must share the ADR 0048 owner-local operation envelope and result ledger (caller-stable operation/workflow identity, canonical `mutationDigest/v1`, exact replay, and `IDEMPOTENCY_CONFLICT` for changed input). The current first slice has no such shared ledger/digest contract, and `BeginPurgeVersionAssets` still mints a random workflow identity server-side. Artifact lifecycle saves now use a database epoch predicate and require one affected row, but Version lifecycle saves still lack that database compare-and-swap boundary and physical artifact CAS proof remains unavailable. An `expectedVersionStateEpoch` therefore cannot establish durable abandonment/retirement invalidation.

The live `CompareAndSetVersionState` path checks tenant/version scope and the expected epoch, preserves an exact same-state no-op, and refuses every state-changing request with `VERSION_STATE_MUTATION_UNAVAILABLE` before updating the Version. This deny-only boundary does not implement legal transitions, committed release bundle/artifact validation for `DRAFT -> PUBLISHED`, or retirement predicates for active instances, templates, and in-flight activation; the target transition authority and focused proof remain unavailable.
The live `CompareAndSetVersionState` path checks tenant/version scope and the expected epoch, preserves an exact same-state no-op, and refuses every state-changing request with `VERSION_STATE_MUTATION_UNAVAILABLE` before updating the Version. This deny-only boundary does not implement the [Game Design owner transition contract](./microservices/game-design-service/api-contracts.md#grpc-apis), legal transitions, committed release bundle/artifact validation for `DRAFT -> PUBLISHED`, database epoch-CAS proof, or retirement predicates for active instances, templates, and in-flight activation; state-changing transitions and focused activation/retirement proof remain unavailable.

The private full-version publish failure path reads back release evidence and retains the Version rather than deleting it as compensation. Committed or partial bundle evidence and ambiguous failure-marking outcomes require reconciliation; only an exact absent-publication result can record definitive failure. This local implementation does not establish production full-version publication, and physical proof must still cover committed-bundle, absent-bundle, and ambiguous readback outcomes.

Expand Down
6 changes: 6 additions & 0 deletions design/project-management/ai-observations.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,9 @@ Entry format:
- Context: the shared Gameplay observer monitored a large Validation matrix through `gh run view --json jobs`.
- Observation: the returned jobs view omitted failed Buf and Game Logic rows. Their completion timestamps were 01:04:25 and 01:08:08 UTC, but the observer first discovered them around 01:16 UTC through the fully paginated Jobs API; the exact time the API exposed each failure was not recorded. This delayed front-PR failure reporting by roughly 12 and 8 minutes; no GitHub API or FireController failure was established.
- Expected pattern: inspect the complete paginated source-run jobs inventory before metadata callbacks and report failed jobs while other jobs remain active. Do not wait for the whole workflow to finish or treat a partial jobs view as exhaustive.

- `2026-10-13`: Focused validation must use declared test packages and enabled task flags
- Context: Gameplay’s #3120 review-fix prompts assumed that the `unit/` directory prefix was part of every Java package and omitted `-PfullCheck` from static-check tasks.
- Observation: the wrong class filter executed no tests and failed explicitly; the static tasks were reported `SKIPPED` despite a successful focused unit build. Neither result qualified the missing proof.
- Expected pattern: read the class’s declared package before specifying a test filter, and verify task execution rather than equating build success with every requested check passing. Enable the repository’s canonical full-check property when selecting static tasks.
- Current status: corrected package selection passed 50 focused unit cases; the subsequent runtime fix passed 58 selected unit cases. A separate canonical `-PfullCheck` run executed the required static checks successfully. No validation requirement was waived.
Loading
Loading