FireMUD Delivery Status

PR data refreshed

PR #3196 review history

Converge Game Design publication owners and StartSession receiving

Unit 1A · identity, Account and public JOIN

Review rounds

Three-number pills mean: found (raw) / accepted here (useful) / routed

Hosted CodeRabbit3 completed
4/3/00/0/00/0/0
CLI CodeRabbit6 completed
7/7/02/2/03/3/02/2/01/1/0

Recorded review history

Reviews and findings

  1. CLI Review 1 CompletedRuntime 3m 02s
    Found: 2 Accepted: 2/0/0 Routed: 0
    1. Compare the template insert witness without casting xid8 text to xid.Major

      guard_template_config_insert_witness compares t.xmin::TEXT with (pg_current_xact_id()::TEXT::XID)::TEXT. pg_current_xact_id() returns a 64-bit xid8 value that includes the epoch. After the cluster passes 2^32 transactions, the text form of that value is larger than 4294967295. On PostgreSQL versions whose xid input rejects out-of-range values, the cast then raises an error.

      template_config_row_insert_witness fires on every game_templates INSERT, including unqualified and retained rows. If the cast fails, every template creation fails.

      Use the 32-bit projection function instead. Because this file is a byte-identical predecessor artifact, put the fix in a new forward migration:

      🐛 Proposed fix (new migration that replaces the function)

      -        OR NOT EXISTS (SELECT 1 FROM game_templates t WHERE t.id = NEW.template_id
      -            AND t.xmin::TEXT = (pg_current_xact_id()::TEXT::XID)::TEXT) THEN
      +        OR NOT EXISTS (SELECT 1 FROM game_templates t WHERE t.id = NEW.template_id
      +            AND t.xmin = xid(pg_current_xact_id())) THEN
      
      • Accepted xid8 includes epoch; decimal text-to-xid input can overflow after wraparound. Use direct xid8->xid projection in a new forward migration, preserving V1008 bytes and all insert-witness guards; prove rollover conversion plus real normal/forged writes.
    2. Allow for clock skew in the maximum reference-lifetime check.Major

      The upper bound expiresAt.isAfter(now.plus(MAX_REFERENCE_LIFETIME)) compares an expiry set by Account with the local Logging clock. It allows no skew between the two hosts. The fixtures issue references at exactly NOW + 300s, and a reference at NOW + 301s is rejected. Assume Account issues references with the full 5-minute lifetime. Then a Logging clock that is behind Account's clock by any amount rejects a valid response as malformed. The coordinator catches that IllegalStateException and returns AUTHORIZATION_OUTCOME_UNKNOWN. Account has already issued the reference at that point. Recovery calls the same validation and fails in the same way. As a result, StartSession authorization fails for every request while the skew lasts.

      Confirm the lifetime that Account issues for human operator authorization references. If that lifetime equals MAX_REFERENCE_LIFETIME, add a small explicit skew allowance to the upper bound only. Keep the strict lower bound (!expiresAt.isAfter(now)).

      Proposed fix

      +  private static final Duration MAX_ISSUER_CLOCK_SKEW = Duration.ofSeconds(30);
      ...
      -      if (expiresAt.isAfter(now.plus(MAX_REFERENCE_LIFETIME))) {
      +      if (expiresAt.isAfter(now.plus(MAX_REFERENCE_LIFETIME).plus(MAX_ISSUER_CLOCK_SKEW))) {
               throw malformedResponse();
             }
      
      • Accepted Account owns and enforces <=5min issuance lifetime. Logging compares expiry to another clock, rejecting valid full-lifetime responses under skew. Remove that unsound local upper bound; retain strict expiry and exact Account bundle/tuple binding.
  2. CLI Review 2 CompletedRuntime 3m 26s
    Found: 7 Accepted: 0/3/4 Routed: 0
    1. Remove the stale associateDraftAsset producer guidance from the rest of this document.Minor

      The new section says direct mapping association is not an authority path. VersionAssetPublicationRepository.associateDraftAsset now throws in every case. version_asset rows are written only by the ordinary_asset_snapshot_projection trigger. Several unchanged paragraphs still describe the old model:

      • Line 258 says the repository "provides an owner-local associateDraftAsset operation, but no production caller currently creates mappings".
      • Line 311 says export "freezes the currently mapped set (which may be empty because a production Draft mapping producer is absent)". The export freeze now requires an exact synchronized ordinary source snapshot (requireExportSelection).
      • Lines 368, 421, 427 and 429 say a production Draft mapping producer must create mappings "through the owner-local operation".

      These statements conflict with the canonical current state in line 9 and lines 30–35. Rewrite them to say that the mappings are a projection of the synchronized ordinary source snapshot. Also state that a Version without asset genesis cannot freeze an export snapshot.

      As per path instructions: "Review docs for canonical-current-state consistency. Flag obsolete transitional guidance".

      • Accepted Owner asset document still describes disabled direct mapping producer and empty export instead of synchronized source projection/genesis prerequisite.
    2. Derive and verify schema from the evidence bytes inside ReviewedBaseReadback.Trivial

      Only read() checks that the stored evidence_schema matches the framed schema in the bytes. The two-argument constructor always labels the readback as GameDesignReviewedBaseEvidence.SCHEMA (v2). It does not inspect the bytes. A caller that builds a readback from v1 bytes with this constructor gets a value that requireCurrentRetained would accept as current. Move the frame check into the canonical constructor. Then the schema label always matches the bytes.

      Proposed change

         public record ReviewedBaseReadback(byte[] canonicalBytes, String digest, String schema) {
           public ReviewedBaseReadback {
             canonicalBytes = Objects.requireNonNull(canonicalBytes, "canonicalBytes").clone();
             schema = Objects.requireNonNull(schema, "schema");
             if (!isSupportedSchema(schema))
               throw new IllegalArgumentException("Unsupported reviewed-base evidence schema");
      +      if (!schema.equals(new DraftAuthorizationFenceBinding.FrameReader(canonicalBytes).text()))
      +        throw new IllegalArgumentException("REVIEWED_BASE_STORED_SCHEMA_CONFLICT");
             if (!DraftAuthorizationFenceBinding.digest(canonicalBytes).equals(digest)) {
      
      • Accepted Public ReviewedBaseReadback constructor can label retained v1 bytes as current v2; enforce framed-schema equality in canonical constructor.
    3. Make the oversize case reach the 4 MiB bound.Trivial

      The input new byte[MAX_OPERATION_BYTES + 1] starts with a zero-length frame. fromStored reads an empty schema and rejects it at the schema check. The test therefore passes without reaching bytes.length > MAX_OPERATION_BYTES. If someone removes the size bound, the test still passes. Frame the v2 schema first, then pad the input past the limit.

      Proposed test change

      -    assertThatThrownBy(
      -            () ->
      -                GameDesignPublicationOperationBinding.fromStored(
      -                    new byte[GameDesignPublicationOperationBinding.MAX_OPERATION_BYTES + 1]))
      -        .isInstanceOf(IllegalArgumentException.class);
      +    var oversize = prefix(operation, GameDesignPublicationOperationBinding.SCHEMA);
      +    oversize.write(
      +        new byte[GameDesignPublicationOperationBinding.MAX_OPERATION_BYTES + 1 - oversize.size()]);
      +    assertThatThrownBy(() -> GameDesignPublicationOperationBinding.fromStored(oversize.toByteArray()))
      +        .isInstanceOf(IllegalArgumentException.class)
      +        .hasMessageContaining("Complete bounded v2");
      
      • Accepted Current oversize input fails schema first and cannot prove size bound; use valid v2 framing then exceed bound.
    4. Align the recorded receiver status with the tracker.Minor

      This entry reports "the complete 63-path Game Design receiver" and "all 127 physical PostgreSQL cases". The tracker (game-authoring-publishing-and-activation.md, lines 9 and 15) now reports 64 owned paths and 128 PostgreSQL cases after V1025. As written, a reader can take the older numbers as the current gate. Qualify the status with its parent commit, or update it to the current result.

      • Accepted Historical observation calls its 63-path/127-case result current; append dated qualification tied to parent, preserving prior observation per AGENTS.
    5. Add parentheses to the mixed ||/&& condition.Trivial

      The behavior is correct. The && binds before the ||, so the condition is command.isEmpty() || policy.isEmpty() || (asset.isEmpty() && !historical). Explicit parentheses make the historical-asset exception visible and protect it from a reordering mistake.

      Proposed change

      -    if (command.isEmpty() || policy.isEmpty() || asset.isEmpty() && !historical) {
      +    if (command.isEmpty() || policy.isEmpty() || (asset.isEmpty() && !historical)) {
      
      • Accepted Parentheses clarify the historical-asset exception with no semantic change.
    6. Confirm whether the applied epoch must advance by exactly one.Minor

      This check accepts any resultingEpoch greater than expectedEpoch. Other consumers of the same tuple require exactly expectedEpoch + 1:

      • WorldSelectedPublicationArtifactInventoryEvidence.appliedEpochsMatch.
      • The SQL guards in V1003, V1005, V1007, V1008 and V1016.

      If World or another owner can legitimately advance by more than one, the stricter consumers will reject valid evidence. If owners always advance by exactly one, this class accepts evidence that the other consumers deny. Confirm the owner contract, then make this check match it.

      Proposed fix if the contract is +1

      -          || new BigInteger(epoch.resultingEpoch()).compareTo(new BigInteger(epoch.expectedEpoch()))
      -              <= 0) {
      +          || !new BigInteger(epoch.expectedEpoch())
      +              .add(BigInteger.ONE)
      +              .toString()
      +              .equals(epoch.resultingEpoch())) {
      
      • Accepted World public inventory and owner SQL require exact next epoch; shared visibility validator currently accepts jumps and must match exact +1.
    7. Derive the expected migration count and maximum version from the migration resources.Trivial

      Four tests hard-code 85L for the successful-migration count and 1025 for the maximum version: Line 153-162, Line 203-209, Line 232-238, and Line 331-344. The next migration after V1025 breaks all four tests, although retention and guard behavior do not change. The fixed parent boundary (62 scripts, installed_rank <= 59) is a deliberate historical pin. The tail size is not a deliberate pin.

      Compute the expected values once from the Flyway configuration the tests use. For example, use flyway(source, schema, null).info().all(), filter versioned migrations, and take the count and maximum version. Assert against those values.

      ♻️ Sketch

      private static long expectedMigrationCount(Flyway flyway) {
        return java.util.Arrays.stream(flyway.info().all())
            .filter(info -> info.getVersion() != null)
            .count();
      }
      
      • Accepted Current migration tail should derive counts/max from actual configured resources; retain deliberate historical parent manifest pins.
  3. CLI Review 3 CompletedRuntime 3m 43s
    Found: 2 Accepted: 0/1/1 Routed: 0
    1. Compute readback digests in SQL instead of loading every asset's bytes into the JVM.Trivial

      verifyItems calls qualify(item.reference(), false) for every item. qualify fetches the complete game_assets.data column, which holds up to 25 MiB per asset (VersionAssetPublicationRepository.MAX_SOURCE_ASSET_BYTES). It then hashes the bytes in Java. readSnapshot runs verifyItems on every call, and these paths call readSnapshot repeatedly:

      • apply (inherited snapshot);
      • captureSynchronized;
      • freeze and readCapture;
      • requireExportSelection;
      • GameDesignSourceRepository.readSynchronized, which reviewed-base resolution uses.

      Each readback therefore transfers and hashes the full payload of every asset in the Version. The cost scales with total asset bytes on Draft writes and reviews, not only on export. VersionAssetPublicationRepository already verifies the same facts with encode(sha256(ga.data), 'hex') and octet_length(ga.data). Use that approach for the read-only path. Keep the row-locking qualify(..., true) for the write path.

      ♻️ Proposed metadata-only verification

         private void verifyItems(AssetSnapshot snapshot) {
           for (var item : snapshot.items()) {
      -      if (!item.equals(qualify(item.reference(), false)))
      +      if (!item.equals(qualifyMetadata(item.reference())))
               throw new IllegalStateException("ASSET_SOURCE_BYTE_READBACK_CONFLICT");
      
        private net.firedevops.firemud.common.gamedesign.AssetSnapshot.Item qualifyMetadata(
            AssetSource.Reference reference) {
          var target = reference.sourceBinding().target();
          var row =
              dsl.fetchOne(
                  "SELECT file_name, content_type, 'sha256:' || encode(sha256(data), 'hex') AS digest, "
                      + "octet_length(data)::BIGINT AS byte_size FROM game_assets "
                      + "WHERE tenant_id = ? AND id = ? AND data IS NOT NULL",
                  target.gameDesignVersionTenantKey(),
                  Long.parseLong(reference.assetRowId()));
          if (row == null || !reference.usageKey().equals(row.get("file_name", String.class)))
            throw new IllegalStateException("ASSET_SOURCE_EXACT_BYTES_UNAVAILABLE");
          return new net.firedevops.firemud.common.gamedesign.AssetSnapshot.Item(
              reference,
              row.get("content_type", String.class),
              row.get("digest", String.class),
              row.get("byte_size", Long.class));
        }
      
      • Accepted Read-only source verification repeatedly transfers full asset payloads; use existing SQL digest/size projection pattern while retaining locked write qualification and exact readback checks.
    2. Move this PR-specific count qualification to the tracker instead of logging it as an observation.Minor

      This entry records receiver commit SHAs, parent SHAs, and path, unit and PostgreSQL case counts for one PR. It contains no reusable lesson that "suggest[s] a better repo rule, CI guard, design refinement, or shared implementation pattern". The tracker already holds the same CLI1/CLI2 attribution (tracker lines 15–19). The reusable point is "tie each proof count to its exact postimage and parent". Merge that point into the 2026-10-14 receiving-boundary entry above as one sentence, and keep the SHAs and counts only in the tracker.

      As per coding guidelines: "Only keep entries whose lesson still matters after the immediate task is done. Do not use this file as a bug log for ordinary fixes that were completed in the same piece of work. Prefer logging reusable observations that suggest a better repo rule, CI guard, design refinement, or shared implementation pattern."

      • Accepted Overseer808aa774 explicitly approves inspected bounded stewardship: consume only new PR-specific count note and retain reusable attribution rule/historical qualifier; prior unrelated entries remain.
  4. Hosted Review 1 CompletedRuntime 9m 30s
    Found: 4 Accepted: 0/3/0 Routed: 0
    1. Move this PR-specific count attribution into the tracker and keep only the reusable lesson.Minor

      This entry mostly records receiver path, unit, and PostgreSQL counts for the CLI1 and CLI2 postimages of this PR (64/502/128 and 65/503/128). The tracker already records the same figures at Lines 9–19. The only reusable rule is "tie each count to its exact postimage and parent". The entry at Lines 250–254 already states that pattern. The counts stop mattering once this PR merges, so they are status bookkeeping and not a lasting observation.

      Remove the count details from this entry, or merge its single rule into the Lines 250–254 entry. Both entries are new in this PR, so this edit does not rewrite prior history.

      As per coding guidelines: "Only keep entries whose lesson still matters after the immediate task is done. Do not use this file as a bug log for ordinary fixes that were completed in the same piece of work."

      • Rejected Duplicate of accepted CLI3 finding2 on identical371 source; explicit Overseer808aa774 bounded stewardship owns that same correction, tracked to publication/proof there.
    2. CodeRabbit summary-only outside-diff finding 1 of 1 (aggregate; no individual detail)Minor

      summary-only aggregate; provider supplied no individual detail

      • Accepted Fully read outside-diff AR1.4/1.5 comment: capability rows lack ordinary asset/synchronized-projection anchors and focused proofs and retain obsolete gap wording; align without false closure.
    3. Use the same "reject" wording as ADR 0047 for ambient SQL transactions.Minor

      Line 15 says ISSUE, RECOVER, and owner forwarding "require no ambient SQL transaction or synchronization". A reader can take that to mean the paths do not need a transaction, not that they refuse one. ADR 0047 Line 11 states the actual contract: "the coordinator and clients reject ambient SQL transactions or synchronization." The two canonical documents should use the same fail-closed wording. Otherwise the receiving contract and the ADR read as two different rules.

      Proposed wording

      -ISSUE, RECOVER, and owner forwarding require no ambient SQL transaction or synchronization.
      +ISSUE, RECOVER, and owner forwarding reject an ambient SQL transaction or transaction synchronization before any remote call.
      

      As per path instructions: "Review docs for canonical-current-state consistency. Flag ... conflicts between architecture docs."

      • Accepted Secondary Logging API should explicitly reject ambient transaction/synchronization before remote calls, matching authoritative ADR0047; documentation-only alignment.
    4. Use template-config error text in verify_template_config_application_commit.Minor

      The template-config deferred verifier was copied from verify_branding_asset_application_commit and still raises "branding …" messages. When a template-config commit is rejected, the error names the branding source owner instead of the template-config owner.

      • services/game-design-service/src/main/resources/db/migration/V1016__entity_template_config_owner_source_inventory.sql#L182-L186: in this effective definition, replace the "branding" prefix with "template config" in every exception (Lines 186, 204, 212, 215 and 234).
      • services/game-design-service/src/main/resources/db/migration/V1008__template_config_source_history.sql#L530-L533: while this unapplied artifact is editable, make the same replacement at Lines 533, 551, 559, 562 and 581 so the superseded body matches.

      These verifier bodies are duplicated across V1007, V1008 and V1016. Consider moving the shared sibling-component framing into one SQL helper so the copies cannot drift further.

      📍 Affects 2 files

      • services/game-design-service/src/main/resources/db/migration/V1016__entity_template_config_owner_source_inventory.sql#L182-L186 (this comment)
      • services/game-design-service/src/main/resources/db/migration/V1008__template_config_source_history.sql#L530-L533
      • Accepted Effective template verifier wrongly diagnoses branding. Correct via forward V1026 while preserving existing V1008/V1016 bytes; no shared-validator family or schema/guard semantics change.
  5. CLI Review 4 CompletedRuntime 4m 19s
    Found: 3 Accepted: 0/3/0 Routed: 0
    1. Restore a valid status token in the AR-1.4 Verification cell.Minor

      The Verification cell now begins with "Partial at the current receiving boundary". "Partial" is an implementation status, not a verification status. Every other row starts its Verification cell with a backticked token such as proven or audited. The cell also names no focused executable proof, and it has no No focused executable proof: marker. The capability-tracking check can reject this row, and readers lose the scan-first status.

      Proposed fix

      -| `AR-1.4` Game-authored assets, branding, and release manifests | `partial` | Partial at the current receiving boundary: ordinary asset-source creation ...
      +| `AR-1.4` Game-authored assets, branding, and release manifests | `partial` | `proven` only for the controlled-input ordinary asset-source creation and synchronized projection seams at the current receiving boundary; direct Draft association fails closed. ...
      

      As per coding guidelines: "A proven row must also name focused executable proof. An audited, unverified, or not-applicable row may omit executable proof only when its proof cell uses the explicit No focused executable proof: marker."

      • Accepted AR1.4 Verification starts invalid Partial implementation token. Use proven only for controlled ordinarysource/projection seams with named existing focused executable tests; keep implementationpartial and all production/runtime gaps.
    2. Correct the "Current status" so it does not contradict the owning tracker.Minor

      The entry says the 63-path receiver "passes its canonical gate, including all 127 physical PostgreSQL cases". The owning tracker says this result "is historical for that parent and is not the current 66-path/503-unit/129-PostgreSQL receiver proof". Line 253 already defers current totals to the tracker. Mark line 254 as a historical parent result, or remove the counts and link to the tracker section.

      Proposed wording

      -  - Current status: the complete 63-path Game Design receiver on the preparation parent passes its canonical gate, including all 127 physical PostgreSQL cases without skips. This does not establish genuine cross-service producer authority or packaged runtime proof.
      +  - Current status: the historical 63-path receiver on its earlier parent passed its canonical gate; current receiver totals are recorded only in the owning tracker. This does not establish genuine cross-service producer authority or packaged runtime proof.
      

      As per path instructions: "Review docs for canonical-current-state consistency." As per coding guidelines: "Only keep entries whose lesson still matters after the immediate task is done."

      • Accepted Prior entry status is present-tense while totals are historical. Valid narrow historical qualifier; Root808 permits only two existing stewardship hunks, so explicit extension requested da769c2d before altering original status line254. Preserve history/counts.
    3. Qualify effective snapshot items with the database-side digest, not the full source bytes.Minor

      apply builds every item in the effective snapshot with qualify(r, false). This includes all inherited, unchanged references. qualify selects the complete data column into Java and hashes it there. Each ASSET_REFERENCE commit therefore transfers the whole selected asset set (up to the 2 GiB tenant quota at 25 MiB per row) from PostgreSQL to the service, inside the locked owner transaction. qualifyMetadata already computes digest and size in PostgreSQL. The tracker says normal readback uses that path, but this write path does not.

      Use qualifyMetadata for the snapshot items. Upserted rows are already locked by the FOR UPDATE loop on lines 143-155. For the revision rows on lines 157-167, add FOR UPDATE to a metadata query instead of fetching data.

      Proposed change

      -            references.stream().map(r -> qualify(r, false)).toList());
      +            references.stream().map(this::qualifyMetadata).toList());
      
      • Accepted Valid residual write-path cost: apply snapshot and locked UPSERT qualification still SELECT full data into JVM. Converge existing lock-aware qualifier to DB digest/size, preserve row locks/exact identity and all guard predicates.
  6. Hosted Review 2 CompletedRuntime 8m 31s
    Found: 0 Accepted: 0/0/0 Routed: 0
    1. No findings recorded for this run
  7. CLI Review 5 CompletedRuntime 3m 55s
    Found: 2 Accepted: 0/1/1 Routed: 0
    1. Do not rebind the selected candidate to lastworkflowid on every artifact update.Minor

      Do not rebind the selected candidate to `last_workflow_id` on every artifact update.

      The NOT EXISTS check runs on every INSERT and every UPDATE where NEW.selected_candidate_version_id IS NOT NULL. It requires c.workflow_id = NEW.last_workflow_id. The candidate workflow_id is the original publication workflow. Later lifecycle writes (TombstoneVersionAssets, BeginPurgeVersionAssets, FinalizePurgeVersionAssets, RepairPublishedVersionAssets) record their own workflow identity in last_workflow_id. The asset-storage contract describes this column as the "publish/repair workflow identity". If any of these writes changes last_workflow_id, the guard raises ASSET_EXPORT_SELECTED_CANDIDATE_CONFLICT. A selected-candidate artifact then cannot be tombstoned, purged or repaired.

      The immutability block below already freezes the candidate binding after the first evidence write. Run the full candidate equivalence check only when the candidate binding is first set. Make the change in a new forward migration, because V1023 must stay byte-identical.

      🐛 Proposed fix (forward migration body)

      -    IF NEW.selected_candidate_version_id IS NOT NULL AND NOT EXISTS (
      +    IF NEW.selected_candidate_version_id IS NOT NULL
      +       AND (TG_OP = 'INSERT' OR OLD.selected_candidate_version_id IS NULL)
      +       AND NOT EXISTS (
      

      Verify this: do the artifact repository's tombstone, purge and repair transitions write a new last_workflow_id? Add a PostgreSQL case that moves a selected-candidate artifact through one of these transitions.

      • Accepted Verified original candidate workflow is checked against mutable last_workflow_id on every update; lifecycle writes change it. Forward migration will check initial binding only, retain immutability, and add physical PostgreSQL lifecycle regression.
    2. Index the assetid columns that the gameassets byte guards query. Two BEFORE UPDATE OR DELETE triggers on gameassets run EXISTS (... WHERE r.assetid = OLD.id) against revision history tables. Neither table has an index that leads with assetid. Each asset update or delete therefore scans bTrivial

      Index the `asset_id` columns that the `game_assets` byte guards query. Two BEFORE UPDATE OR DELETE triggers on game_assets run EXISTS (... WHERE r.asset_id = OLD.id) against revision history tables. Neither table has an index that leads with asset_id. Each asset update or delete therefore scans both histories, and the FK checks on delete do the same. The original migrations must stay byte-identical, so add both indexes in one new forward migration.

      • services/game-design-service/src/main/resources/db/migration/V1003__ordinary_asset_source.sql#L370-L371: add CREATE INDEX ... ON game_design_asset_source_revision (asset_id) WHERE asset_id IS NOT NULL in the new forward migration.
      • services/game-design-service/src/main/resources/db/migration/V1007__branding_asset_source_history.sql#L478-L479: add CREATE INDEX ... ON game_design_branding_source_revision (asset_id) WHERE asset_id IS NOT NULL in the same forward migration.
      • Accepted Confirmed both immutable source history tables lack asset-leading indexes while game_assets triggers and foreign-key checks look up asset_id; add partial indexes in a new forward migration without changing recorded migrations.
  8. CLI Review 6 CompletedRuntime 10m 16s
    Found: 1 Accepted: 1/0/0 Routed: 0
    1. Fence first asset references against stale byte writers.Major

      Both paths lock the asset without creating an MVCC row version. A byte writer with an earlier REPEATABLE READ snapshot can miss the newly committed history and change retained bytes or metadata. PostgreSQL requires an actual row update, or an equivalent isolation restriction, to close this ordering gap. (postgresql.org)

      • services/game-design-service/src/main/resources/db/migration/V1003__ordinary_asset_source.sql#L183-L183: add a first-reference MVCC fence or enforce safe byte-writer isolation through a forward migration.
      • services/game-design-service/src/main/resources/db/migration/V1007__branding_asset_source_history.sql#L184-L184: apply the same protection to first branding references.

      Verify both paths on the pinned PostgreSQL image. Connection A must establish an old snapshot on an unreferenced asset. Connection B must commit the first source reference. Then A must attempt a data or content_type update. Confirm that the installed guards reject the update and preserve the retained bytes. This interleaving was not executed here.

      • Accepted Verified first ordinary/branding reference takes FOR UPDATE without a new row version; stale REPEATABLE READ byte writers can miss committed history. Add forward MVCC row-version fencing and physical two-connection regressions, preserving existing migration bytes.
  9. Hosted Review 3 CompletedRuntime 10m 22s
    Found: 0 Accepted: 0/0/0 Routed: 0
    1. No findings recorded for this run

Routed Findings

0 Open0 Accepted/Fixed0 Rejected

No routes recorded

Unlinked items

no items unlinked