Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
b07e206
Consolidate Social report UUID receiver groundwork
benhook1013 Nov 13, 2026
31dd563
Prove exact-self Social presence policy across caller roles
benhook1013 Nov 13, 2026
0edef93
Prove canonical JOIN terminalization preserves exact audit authority
benhook1013 Nov 13, 2026
d18c671
Consolidate original authority, hosted terms and publication fence proof
benhook1013 Nov 13, 2026
df584fc
Align social consolidation draft behind verified Gameplay tail and pr…
benhook1013 Nov 13, 2026
fa5516b
Carry final Gameplay ancestry and verified unchanged-Lua descriptor c…
benhook1013 Nov 13, 2026
4616126
Consolidate social donor safeguards and current-owner proof
benhook1013 Nov 13, 2026
f4c03e7
Qualify moderation UUID refusal and nil report target
benhook1013 Nov 13, 2026
7d4748f
Consolidate social receiving fixes and carry qualified stack changes
benhook1013 Nov 13, 2026
d90067b
Carry reconciled Gameplay parent through social consolidation
benhook1013 Nov 13, 2026
ee24a80
Carry exact receiving fixes through #3439
benhook1013 Nov 13, 2026
3072ea3
test(gateway): supply native peer in account receiving fixture
benhook1013 Nov 14, 2026
2148415
Integrate qualified Account receiving into Social donor stack
benhook1013 Nov 15, 2026
fa2a1ef
Restore executed UUID migration proof guards
benhook1013 Nov 17, 2026
004d37c
Reconcile Social receiving with current Account base
benhook1013 Nov 17, 2026
e9c1637
Carry qualified Account successor into Social receiving stack
benhook1013 Nov 17, 2026
b2edeff
Carry qualified Account proof and CI guard into Social stack
benhook1013 Nov 17, 2026
c3a1a4f
Carry qualified Account publication proof
benhook1013 Nov 17, 2026
d30e717
Carry qualified Account creation proof
benhook1013 Nov 17, 2026
f1fb74d
Adapt recovery fixture to strict proof and retain Redis recurrence
benhook1013 Nov 17, 2026
a544324
Carry current Account proof and lint correction into Social stack
benhook1013 Nov 17, 2026
c3a7166
Close Game Design test contexts at container class boundaries
benhook1013 Nov 17, 2026
a900ac4
Enforce final ONLINE and RECENT friend disclosure
benhook1013 Nov 17, 2026
82eb126
Correlate profile updates with verified Account owner echoes
benhook1013 Nov 17, 2026
c563644
Align cross-service friend fixture with disclosure contract
benhook1013 Nov 17, 2026
78a26e2
Carry exact Account comparison and preserve Social migration proof
benhook1013 Nov 20, 2026
444e561
Carry the Social donor draft onto the aligned Account draft
benhook1013 Nov 27, 2026
22616e7
Validate Social friend roster selectors before owner reads
benhook1013 Nov 27, 2026
f973efe
Point report receiver status at physical migration proof
benhook1013 Nov 27, 2026
f391ae4
Align local Social proof with the Account proof checkpoint
benhook1013 Nov 27, 2026
8be9581
Prove retained Logging audit row images survive forward migrations
benhook1013 Nov 27, 2026
b20c20d
Merge commit '6dfbb127dc16f17140c3f385ab98455b96ae91df' into codex/do…
benhook1013 Nov 27, 2026
53b2f63
Merge commit '42fc875c0b3a0334119c76fcdaa1e52cefae93f0' into codex/do…
benhook1013 Nov 27, 2026
f4d4d0c
Merge commit '7efd8728f78fda47184d6196fbd25ef5048da86d' into codex/do…
benhook1013 Nov 28, 2026
37212a1
Preserve Social UUID fixture and filtered roster evidence
benhook1013 Nov 28, 2026
9da58cf
Apply canonical formatting to received Social UUID proof
benhook1013 Nov 28, 2026
7315f10
Merge commit 'd46aedebb80c8d74f9d814ae24e6f1f1453b71d4' into codex/do…
benhook1013 Nov 28, 2026
c96ae12
Merge commit 'bc711ae19fb7c8f09d2f4b7149e53f05b0ba1b75' into HEAD
benhook1013 Nov 28, 2026
c7c96a9
Merge commit 'b529a0610a2084f5826353d99cc3e442e7afa96e' into HEAD
benhook1013 Nov 28, 2026
46efa24
Merge commit '46b33c2f1cfbf907a248f1e7d02bba663ea8af79' into HEAD
benhook1013 Nov 28, 2026
6ccfc9d
Merge commit 'bc5538d5987a700d2d14c69bf8633a523dbbc649' into HEAD
benhook1013 Nov 28, 2026
be42372
Merge commit 'f4a06314593c323e86f419a7a90ea6b6e050ef41' into HEAD
benhook1013 Nov 28, 2026
cd5eb17
Merge commit '4c13856f999d503bc5c399f48aa717c1f661d04b' into HEAD
benhook1013 Nov 28, 2026
63f071c
Merge commit '44733b1f4bf1b753430db9b75004faea0f0b8fa6' into HEAD
benhook1013 Nov 28, 2026
06638f3
Merge commit '44a0e2934abc85b6b5f1282cdc58cd3ab3bb997c' into HEAD
benhook1013 Nov 28, 2026
ab2c94a
Merge commit 'e4f37e33ace767c5acd85d5118fe7ac218f3f96c' into HEAD
benhook1013 Nov 28, 2026
dc20e20
Prove exact retained Logging report history through V1008
benhook1013 Nov 28, 2026
8ff3187
Merge commit '13d4b6242d46366975e0089188b14a35d5b9cec7' into HEAD
benhook1013 Nov 28, 2026
50e9381
Merge commit 'c428e8154267cd5e6c2850edaea654c5b2cb4233' into HEAD
benhook1013 Nov 30, 2026
fee1cbc
fix(grpc): admit platform keepalive pings on every gRPC server
benhook1013 Nov 30, 2026
6e3ab74
Merge commit 'c813531a8a' into HEAD
benhook1013 Nov 30, 2026
cfd6d6c
Merge commit 'cfd7b665769072121c36f91f29ce3ad93e8fe732' into HEAD
benhook1013 Nov 30, 2026
efa9a1c
Merge commit '58bc242ab9695e32feb9e9dbe65914b267cb32d1' into HEAD
benhook1013 Nov 30, 2026
2f8448c
Merge commit '6008b16e2c0c44364726af2c3be1ef3ed975ad2f' into HEAD
benhook1013 Nov 30, 2026
9957051
Merge commit '5c40680925e050d9b502e786021d8e3ba66274e2' into HEAD
benhook1013 Nov 30, 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
76 changes: 74 additions & 2 deletions .github/scripts/run-gradle-module-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,62 @@ if [[ $# -lt 1 || $# -gt 2 || ! "$MODULE" =~ ^[a-z0-9]+(-[a-z0-9]+)*$ || \
fi

declare -a CHECK_ARGS=(-PfullCheck)
# These required physical suites must execute, not restore cached JUnit results.
if [[ "$MODULE" == "logging-admin-service" || "$MODULE" == "social-groups-service" ]]; then
CHECK_ARGS+=(--no-build-cache --no-configuration-cache ":${MODULE}:integrationTest" --rerun)
# A skipped/no-source task must not satisfy this invocation from old XML.
# Invalidate only generated JUnit reports for this module before Gradle runs.
test_results="$ROOT_DIR/services/$MODULE/build/test-results"
for proof_dir in "$ROOT_DIR/services" "$ROOT_DIR/services/$MODULE" \
"$ROOT_DIR/services/$MODULE/build" "$test_results"; do
if [[ -L "$proof_dir" ]]; then
echo "Required database proof refuses a symlinked result path" >&2
exit 1
fi
done
if [[ -d "$test_results" ]]; then
if [[ -n "$(find "$test_results" -type l -print -quit)" ]]; then
echo "Required database proof refuses symlinked generated results" >&2
exit 1
fi
find "$test_results" -type f -name 'TEST-*.xml' -delete
fi
fi

verify_required_database_proof() {
case "$MODULE" in
logging-admin-service)
local moderation="net.firedevops.firemud.loggingadmin.ModerationAccountUuidMigrationPostgresIntegrationTest"
local report="net.firedevops.firemud.loggingadmin.ReportAccountUuidMigrationPostgresIntegrationTest"
bash "$ROOT_DIR/dev-tools/validation/inspect-test-results.sh" --strict \
--require-suite "$moderation" \
--require-suite "$report" \
--require-case "$moderation#emptySchemaMigratesAndKeepsExactUuidWithoutChangingPolicyFields()" \
--require-case "$moderation#populatedLegacyRowsBlockMigrationWithoutChangingRowsOrMigrationHistory()" \
--require-case "$moderation#concurrentModerationWriterBlocksMigrationThenItsCommittedRowForcesRefusal()" \
--require-case "$report#freshSchemaMigratesWithCanonicalAccountUuidsAndNumericLocalIdentifiers()" \
--require-case "$report#emptyAffectedTablesUpgradeFromV1007AndGenericLogAccountIdRemainsNumeric()" \
--require-case "$report#existingCanonicalModerationRowsAreUntouchedByReportOnlyMigration()" \
--require-case "$report#retainedPlayerReportRefusesWithoutChangingRowsOrMigrationHistory()" \
--require-case "$report#migrationWaitsForConcurrentWriterAndRefusesAfterItsRowCommits()" \
"$MODULE"
;;
social-groups-service)
local suite="integration.net.firedevops.firemud.socialgroups.repository.SocialAccountUuidMigrationPostgresIntegrationTest"
bash "$ROOT_DIR/dev-tools/validation/inspect-test-results.sh" --strict \
--require-suite "$suite" \
--require-case "$suite#emptyLegacyFrontierConvergesAndTypedRepositoriesRoundTripCanonicalAccountUuids()" \
--require-case "$suite#[1] table = \"guilds\"" \
--require-case "$suite#[2] table = \"guild_members\"" \
--require-case "$suite#[3] table = \"chat_messages\"" \
--require-case "$suite#[4] table = \"friend_links\"" \
--require-case "$suite#[5] table = \"mail_messages\"" \
--require-case "$suite#[6] table = \"account_friend_links\"" \
--require-case "$suite#concurrentWriterCommitsBeforeEmptyCheckAndItsEvidenceIsPreserved()" \
"$MODULE"
;;
esac
}
if [[ ( "$MODULE" == "account-service" || "$MODULE" == "game-session-service" || "$MODULE" == "world-management-service" ) && "$PARTITION" != "full" ]]; then
SERVICE_DIR="$ROOT_DIR/services/$MODULE"
PARTITION_DIR="$SERVICE_DIR/build/slow-service-ci-partition"
Expand Down Expand Up @@ -64,11 +120,24 @@ trap 'rm -f -- "$CHECK_LOG"' EXIT
if [[ -z "$CHECK_LOG" ]]; then
printf 'FIREMUD_STALL_ACTIVATION status=disabled-capture-unavailable\n' >&2
echo "Compile-failure log unavailable; running the original check without capture" >&2
exec bash "$ROOT_DIR/dev-tools/validation/run-gradle-with-dependency-recovery.sh" \
if [[ "$MODULE" != "logging-admin-service" && "$MODULE" != "social-groups-service" ]]; then
# Preserve the existing exec/process boundary for every unaffected module.
exec bash "$ROOT_DIR/dev-tools/validation/run-gradle-with-dependency-recovery.sh" \
--runner "$ROOT_DIR/gradlew" -- \
--max-workers=2 \
'-Dorg.gradle.jvmargs=-Xmx2500m -Dfile.encoding=UTF-8' \
":${MODULE}:check" "${CHECK_ARGS[@]}" --profile
fi
if bash "$ROOT_DIR/dev-tools/validation/run-gradle-with-dependency-recovery.sh" \
--runner "$ROOT_DIR/gradlew" -- \
--max-workers=2 \
'-Dorg.gradle.jvmargs=-Xmx2500m -Dfile.encoding=UTF-8' \
":${MODULE}:check" "${CHECK_ARGS[@]}" --profile
":${MODULE}:check" "${CHECK_ARGS[@]}" --profile; then
verify_required_database_proof
exit 0
else
exit "$?"
fi
fi
declare -a CAPTURE_ARGS=()
stall_activation=disabled-scope
Expand Down Expand Up @@ -109,4 +178,7 @@ if (( check_status > 0 && check_status < 128 )); then
--output "$ROOT_DIR/build/reports/compile-failure/$MODULE" || \
echo "Compile-failure evidence collection unavailable; preserving check exit $check_status" >&2
fi
if (( check_status == 0 )); then
verify_required_database_proof
fi
exit "$check_status"
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ Ordinary Account gRPC methods use canonical Account UUID text for Account-valued
- `GetProfile` – retrieves the caller's profile relationship through canonical `GET /tenants/{tenantId}/profiles/{accountId}`, classified `tenant_regular`. Caller subject, scoped-role, and membership-generation validation follow [Account Runtime and Data](./runtime-and-data.md#membership-and-entitlement-authority); the legacy `/profiles/{accountId}` route is implementation drift and `platformAdmin` is not an override.
- `UpdateProfile` – modifies the caller's profile relationship through canonical `PUT /tenants/{tenantId}/profiles/{accountId}` under the same `tenant_regular` authorization and caller-subject binding. Membership authority follows [Account Runtime and Data](./runtime-and-data.md#membership-and-entitlement-authority); the local API triggers notification emails. The response projection returns `PRIVATE` for a retained legacy `HIDDEN_STAFF` value without rewriting the stored row; normative policy remains in [ADR 0046](../../decisions/adr-0046-bounded-friend-presence-with-private-by-failure-redaction.md). The legacy `/profiles/{accountId}` route is implementation drift and `platformAdmin` is not an override.

Successful gRPC `UpdateProfile` responses echo `account_id` and `tenant_id` from the verified persisted profile. Social accepts success only when both echoes exactly match the requested canonical Account UUID and tenant selector; missing or mismatched echoes fail closed. Error responses do not echo an identity. Deploy the echo-producing Account version to every replica before deploying the enforcing Social consumer, or deploy them together with traffic held until both are ready. For rollback, roll back Social first. A new Social consumer paired with an old Account producer rejects the old success-only response even though the write may already have persisted; do not treat that combination as supported rolling compatibility.

- `ListPresenceVisibilityPolicies` – bounded internal bulk read of current tenant-scoped profile visibility policy for up to 100 canonical Account UUIDs. Account resolves known subjects through one local UUID batch query with the same persisted provenance and source-row checks as scalar identity reads, then returns policies keyed by UUID. Unknown or unproven entries are intentionally omitted so Social applies complete `PRIVATE` redaction.
- `ExportAccount` – **target-state RPC** equivalent of `POST /accounts/{accountId}/exports`; starts or reads the persisted export operation for the caller's `requestId` and matching versioned `requestDigest`, returning the same stable `exportId` on replay and an idempotency conflict on digest mismatch. It gathers every required owning-service contribution and exposes a versioned portable-data manifest with explicit complete, partial, omitted, redacted, unavailable, retryable, failed, and separately retained owner outcomes; this is not a promise of every account-related record or secret. The current gRPC adapter returns `FAILED_PRECONDITION` before selector parsing or owner reads; this does not implement the target export operation.
- `CommitTenantCapacityAdmission` – **internal RPC with an unregistered receiving implementation** called only by Game Session or World Management after a fresh entitlement evaluation, through exactly one complete caller-policy alternative: Game Session presents the exact **Game Session caller mTLS identity** with typed `PlayerExecutionContext` and its live player-binding checks, or World Management presents the exact **World Management caller mTLS identity** with tenant/operation-bound instance-lifecycle context and its live lifecycle checks. The request carries stable outer `(tenantId, requestId, admissionId)`, a fresh per-attempt `admissionAttemptId`, the current `capacityRearmFence`, the target contract's exact complete Account-authenticated entitlement bundle from `GetTenantEntitlementsForRuntime`, including `bundleVersion`, `snapshotIdentity`, `evaluationIdentity`, all entitlement fields, the complete applicable `authorityTuple`, exact applicable `tenantBillingCutoff`, and complete `outboxCheckpoints[]`; it also carries bounded `capacityDelta`. The current numeric runtime endpoint returns `ENTITLEMENT_UNAVAILABLE` and is not qualified player evidence; the separately prepared `PLAYER_ADMISSION` evidence comes from Account's manually composed caller-bound `AccountPlayerAdmissionEntitlementOwner`/receiver and Game Session client. A versioned `mutationDigest` is required over the attempt identity, fence, and complete payload. Account compares the outer identity and complete attempt payload in one transaction before creating or replaying the reservation; an exact retry replays, while any changed bundle field, cutoff/checkpoint, delta, attempt ID, fence, or digest is an idempotency conflict before usage mutation. After transport validation, Account resolves exact replay/conflict first, then checks retained/current evidence, supported shape, and quota. Fresh authoritative billing or non-creating entitlement refusal returns the typed `TENANT_BILLING_BLOCKED` response. Fresh creation-eligible evidence with checked insufficient capacity returns the typed `CAPACITY_QUOTA_EXCEEDED` response. Each refusal is bound to the exact original attempt, mutation digest, snapshot and evaluation. A quota refusal includes the immutable Account decision UUID only after an exact durable `NO_ACCEPT` commits. A matching exact retry returns the retained receipt. A quota refusal without that receipt grants no evidence settlement authority. The response contains exactly one commitment or one typed refusal. An authenticated exact retained evaluation outside its qualified time window or superseded by a qualified newer billing cutoff returns `CAPACITY_ADMISSION_STALE` with `UNAVAILABLE`. Missing or unqualified current entitlement owner evidence or its dependency returns `ENTITLEMENT_UNAVAILABLE`. The receiver preserves `AUTH_UNAVAILABLE` for authentication authority unavailability, `PERMISSION_DENIED` for an authenticated caller mismatch, `INVALID_ARGUMENT` for malformed requests, and `IDEMPOTENCY_CONFLICT` with `ALREADY_EXISTS` for a changed exact retry. The Game Session client validates the bounded details and preserves the gRPC outcome. These errors grant no release or rearm authority. Rearm, recovery, and execution still require creation-committable evidence. The shared proto/codec, bounded private mTLS receiver, Game Session adapter and Account durable owner are locally prepared but unqualified and unregistered. The current owner accepts only exact new player-binding shape; World lifecycle activation and zero-delta recovery remain held without genuine current producers. Current source and proof limits are recorded in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#strict-tenant-capacity-owner-preparation). See the canonical [capacity-attempt proof obligations](../../system-architecture-versioning-runtime.md#focused-capacity-attempt-proof-obligations).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The selected-full `GetDraftDesignDigest` adapter reads the exact retained source

- `Ping(PingRequest) returns (PingResponse)` is the basic connectivity check defined in [`game_logic_service.proto`](../../../../protos/game-logic/v1/game_logic_service.proto).
- `ExecuteCommand(ExecuteCommandRequest) returns (ExecuteCommandResponse)` evaluates a parsed gameplay command and returns the outcome.
- `SendCommunication` is the target gameplay communication contract: it inherits the complete validated `PlayerExecutionContext` from Game Session, classifies a world/gameplay communication type, resolves topology/perception/capability/effect facts, and forwards one bounded plan with stable identity, authorized candidate views, and owner handoffs. The current Game Logic adapter first requires `account_id` to be present, positive, and numeric; malformed, missing, or non-positive account identity returns `INVALID_ARGUMENT` before Entity Management or Social calls. It then projects the flat request to Social & Groups as `tenant_id`, that validated account identity as `sender_id`, mapped communication `type`, normalized text as `content`, the resolved recipient when applicable, and `effect_id`; it never falls back to `character_id` for sender authority. It does not forward `session_id`, room context, target kind/name, or legacy `session_attestation` unchanged. Game Logic owns validating the incoming request fields against the target context, but focused tenant/session/character/target mismatch and projection proof remains an implementation gap. Until that target context is propagated, the live request remains the flat field set documented under [Player execution context](#player-execution-context), including legacy `session_attestation`; those request fields are data to validate against the target context, never caller authority. Account messaging, ordinary group/channel communication, browser social actions, and ordinary account/social mail are Social-owned classes and may use an authenticated in-game adapter without becoming Game Logic actions or exposing private content to tenant-authored scripts. Deliberately world-specific mail is a gameplay communication class under [ADR 0147](../../decisions/adr-0147-explicit-communication-classes-and-owner-delivery.md); [ADR 0148](../../decisions/adr-0148-social-relationship-authority-and-entity-owned-value.md) remains the value and attachment authority. See active ADR 0147, mapped from reviewed archive record `archive-ADR-0134`.
- `SendCommunication` is the target gameplay communication contract: it inherits the complete validated `PlayerExecutionContext` from Game Session, classifies a world/gameplay communication type, resolves topology/perception/capability/effect facts, and forwards one bounded plan with stable identity, authorized candidate views, and owner handoffs. The current Game Logic adapter first requires a canonical lowercase non-nil Account UUID in `account_id`. Malformed, missing or noncanonical identity returns `INVALID_ARGUMENT` before Entity Management or Social calls. It then projects the flat request to Social & Groups as `tenant_id`, that validated account identity as `sender_id`, mapped communication `type`, normalized text as `content`, the resolved recipient when applicable, and `effect_id`; it never falls back to `character_id` for sender authority. It does not forward `session_id`, room context, target kind/name, or legacy `session_attestation` unchanged. Game Logic owns validating the incoming request fields against the target context, but focused tenant/session/character/target mismatch and projection proof remains an implementation gap. Until that target context is propagated, the live request remains the flat field set documented under [Player execution context](#player-execution-context), including legacy `session_attestation`; those request fields are data to validate against the target context, never caller authority. Account messaging, ordinary group/channel communication, browser social actions, and ordinary account/social mail are Social-owned classes and may use an authenticated in-game adapter without becoming Game Logic actions or exposing private content to tenant-authored scripts. Deliberately world-specific mail is a gameplay communication class under [ADR 0147](../../decisions/adr-0147-explicit-communication-classes-and-owner-delivery.md); [ADR 0148](../../decisions/adr-0148-social-relationship-authority-and-entity-owned-value.md) remains the value and attachment authority. See active ADR 0147, mapped from reviewed archive record `archive-ADR-0134`.
- `PickupVisibleRoomItem` and `DropCarriedItem` are the player-facing item selector RPCs for the current `GET` and `DROP` command path. Game Session sends the current session/game/room context, raw item reference, and quantity; Game Logic resolves names, visible refs, container identities, and stack-family refs against the appropriate visible holder before delegating the concrete mutation to Entity Management.
- `ApplyActorCondition` is the current self-scoped gameplay orchestration path for the first actor-state mutation. It is not the target-state generic cross-actor effect API.
- gRPC outcome selection follows the [canonical outcome and transport classification](../../system-architecture-grpc.md#outcome-and-transport-classification): successfully produced gameplay/domain outcomes use the typed response contract, while a failure that prevents producing that result uses canonical non-OK status with bounded details. Exact RPC mappings remain implementation work.
Expand Down
Loading
Loading