Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f4bf487
Prepare Account logout cutoff source receipts and mixed event history…
benhook1013 Oct 2, 2026
2eb6322
Merge corrected retained UUID proof parent into Account cutoff stage
benhook1013 Oct 2, 2026
bfa4ca4
Validate Account cutoff source and require exact PostgreSQL proof
benhook1013 Oct 2, 2026
8f0d1fa
Add closed tenant authority source and exact fenced readback proof
benhook1013 Oct 2, 2026
78a7030
Preserve exact corrected source and WebSocket parent before boundary …
benhook1013 Oct 2, 2026
bb6009c
Preserve complete Redis projection and source proof in coherent Accou…
benhook1013 Oct 2, 2026
5eabe9f
Record composed source projection proof and activation limits
benhook1013 Oct 2, 2026
1b681b6
Preserve final source parent with cumulative child status
benhook1013 Oct 2, 2026
8627c8a
Bind current recipient sources without rewriting membership history
benhook1013 Oct 2, 2026
b33c81b
Bind membership recipient to session and repair exact-head proof fixt…
benhook1013 Oct 2, 2026
2c3cd70
Prove unwired Account membership readback over authenticated mTLS
benhook1013 Oct 2, 2026
902591a
test: prove membership LEFT and reactivation over authenticated readback
benhook1013 Oct 2, 2026
4a2dd38
fix(account): bind logout receipts to canonical request tuple
benhook1013 Oct 2, 2026
6bb37c4
test(account): prove immutable outbox history guards
benhook1013 Oct 2, 2026
a54f8da
feat(account): read fenced current and retained source evidence
benhook1013 Oct 2, 2026
4c61e89
feat(account): reproject fenced source snapshots through registered R…
benhook1013 Oct 2, 2026
cf30354
merge: reconcile source UUID authority into logout cutoff boundary
benhook1013 Oct 4, 2026
b783803
merge: retain corrected source fixture proof in Account cutoff
benhook1013 Oct 4, 2026
d25fa3a
Carry corrected Game Design required proof selection into Account cut…
benhook1013 Oct 4, 2026
07c9450
Allow Validation for stacked pull requests
benhook1013 Oct 4, 2026
6abc8b2
Carry forward reviewed CI safety corrections
benhook1013 Oct 5, 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
2 changes: 2 additions & 0 deletions .github/scripts/classify-change-scope.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const ALL_SERVICES = [
const ALL_MODULES = [
"common-data-runtime",
"common-platform-core",
"common-redis-contracts",
"common-saga",
"common-temporal",
"common-security",
Expand Down Expand Up @@ -50,6 +51,7 @@ const SHARED_PREFIXES = [
"services/common-library/",
"services/common-data-runtime/",
"services/common-platform-core/",
"services/common-redis-contracts/",
"services/common-saga/",
"services/common-temporal/",
"services/common-security/",
Expand Down
21 changes: 21 additions & 0 deletions .github/scripts/classify-change-scope.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,27 @@ test("shared modules force every Gradle module, including common-temporal", () =
assert.deepEqual(result.bootableModules, ALL_SERVICES.concat("hosted-environment-identity-controller"));
});

test("common Redis contracts use shared-library validation without becoming bootable", () => {
const result = classifyChangeScope([
"services/common-redis-contracts/src/main/java/example/RedisContract.java",
]);

assert.equal(result.runAll, true);
assert.deepEqual(result.affectedModules, ALL_MODULES);
assert.equal(result.affectedModules.includes("common-redis-contracts"), true);
assert.equal(result.bootableModules.includes("common-redis-contracts"), false);
});

test("root Gradle build and settings changes include common Redis contract validation", () => {
for (const path of ["build.gradle.kts", "settings.gradle.kts"]) {
const result = classifyChangeScope([path]);

assert.equal(result.runAll, true, path);
assert.equal(result.affectedModules.includes("common-redis-contracts"), true, path);
assert.equal(result.bootableModules.includes("common-redis-contracts"), false, path);
}
});

test("controller and load-testing changes receive their own module checks", () => {
const controllerResult = classifyChangeScope([
"services/hosted-environment-identity-controller/src/main/java/example/Controller.java",
Expand Down
194 changes: 192 additions & 2 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/workflows/publish-pr-runtime-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ jobs:
fail("source workflow run API id does not match the event")
if source_run.get("workflow_id") != int(workflow_id_text):
fail("source workflow identity changed between event and API")
if source_run.get("name") != source_title:
fail("source workflow API name differs from its exact run title")
if source_run.get("name") not in {"Build Runtime Images", source_title}:
fail("source workflow API name is neither its owning name nor exact run title")
if source_run.get("path") != SOURCE_WORKFLOW_PATH:
fail("source workflow API path is not the trusted runtime-images workflow")
if source_run.get("event") != source_event:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
uses: ./.github/actions/setup-trivy

- name: 🔍 Run Trivy and Save Report
shell: bash
run: |
echo "::group::Run Trivy"
trivy fs --config config/security/trivy.yaml . | tee trivy-report.txt
Expand Down Expand Up @@ -207,7 +208,7 @@ jobs:
contents: read
pull-requests: write # Publishes the consolidated security result on the PR.
needs: [changes, trivy-scan, secret-compliance, security-gate]
if: ${{ always() && github.event_name == 'pull_request' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
if: ${{ !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
steps:
- name: Harden runner
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5
Expand Down
51 changes: 48 additions & 3 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
".github/actions/load-workflow-tool-versions/",
".github/actions/setup-python/",
"dev-tools/smoke/",
"dev-tools/minio/",
];
const fullRelevantFiles = new Set([
"build.gradle.kts",
Expand Down Expand Up @@ -145,7 +146,7 @@ jobs:
contents: read
pull-requests: write
needs: [changes]
if: ${{ always() && github.event_name == 'pull_request' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
if: ${{ !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
steps:
- name: Harden runner
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5
Expand Down Expand Up @@ -198,6 +199,26 @@ jobs:
`- ${statusIcon(fullResult)} PR Full-Stack Smoke: \`${fullResult}\``,
].join("\n");

const expectedHeadSha = context.payload.pull_request.head.sha;
const expectedBaseRef = context.payload.pull_request.base.ref;
const expectedBaseSha = context.payload.pull_request.base.sha;
const { data: currentPullRequest } = await github.rest.pulls.get({
...context.repo,
pull_number: context.issue.number,
});
if (
currentPullRequest.state !== "open" ||
currentPullRequest.head.sha !== expectedHeadSha ||
currentPullRequest.base.ref !== expectedBaseRef ||
currentPullRequest.base.sha !== expectedBaseSha
) {
core.info(
`Skipping stale smoke summary for ${expectedBaseRef}@${expectedBaseSha}...${expectedHeadSha}; ` +
`current PR state/base/head is ${currentPullRequest.state}/${currentPullRequest.base.ref}@${currentPullRequest.base.sha}/${currentPullRequest.head.sha}`
);
return;
}

const comments = await github.paginate(
github.rest.issues.listComments,
{
Expand Down Expand Up @@ -277,7 +298,7 @@ jobs:
contents: read
pull-requests: write
needs: [changes, smoke-gate, smoke-summary-pending]
if: ${{ always() && github.event_name == 'pull_request' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
if: ${{ !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
steps:
- name: Harden runner
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5
Expand Down Expand Up @@ -334,6 +355,26 @@ jobs:
`- ${statusIcon(fullResult)} PR Full-Stack Smoke: \`${fullResult}\``,
].join("\n");

const expectedHeadSha = context.payload.pull_request.head.sha;
const expectedBaseRef = context.payload.pull_request.base.ref;
const expectedBaseSha = context.payload.pull_request.base.sha;
const { data: currentPullRequest } = await github.rest.pulls.get({
...context.repo,
pull_number: context.issue.number,
});
if (
currentPullRequest.state !== "open" ||
currentPullRequest.head.sha !== expectedHeadSha ||
currentPullRequest.base.ref !== expectedBaseRef ||
currentPullRequest.base.sha !== expectedBaseSha
) {
core.info(
`Skipping stale smoke summary for ${expectedBaseRef}@${expectedBaseSha}...${expectedHeadSha}; ` +
`current PR state/base/head is ${currentPullRequest.state}/${currentPullRequest.base.ref}@${currentPullRequest.base.sha}/${currentPullRequest.head.sha}`
);
return;
}

const comments = await github.paginate(
github.rest.issues.listComments,
{
Expand Down Expand Up @@ -476,7 +517,11 @@ jobs:
const eventMergeSha = context.sha;
const prNumber = String(context.payload.pull_request.number);
const started = Date.now();
const timeoutMs = 25 * 60 * 1000;
// Contract-checked against pr-local-smoke; bounded overhead covers metadata,
// runner scheduling and API convergence, not unbounded queue delays.
const producerTimeoutMinutes = 45;
const prerequisiteAndQueueAllowanceMinutes = 45;
const timeoutMs = (producerTimeoutMinutes + prerequisiteAndQueueAllowanceMinutes) * 60 * 1000;
const cancelledReplacementTimeoutMs = 5 * 60 * 1000;
const sleepMs = 15000;
const pullRequestCheckInterval = 4;
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/static-analysis-summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ jobs:
if (
currentPullRequest.state !== "open" ||
!sourceWorkflowName ||
context.payload.workflow_run.name !== expectedSourceTitle ||
(context.payload.workflow_run.name !== sourceWorkflowName &&
context.payload.workflow_run.name !== expectedSourceTitle) ||
context.payload.workflow_run.display_title !== expectedSourceTitle
) {
core.info("The source run is not bound to the current open pull-request base and head.");
Expand Down
20 changes: 11 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,17 @@ subprojects {
dependencies {
implementation(platform(libs.findLibrary("spring-boot-dependencies").get()))
testImplementation(platform(libs.findLibrary("spring-boot-dependencies").get()))
implementation(libs.findLibrary("protobuf-java").get())
implementation(libs.findLibrary("grpc-netty-shaded").get())
implementation(libs.findLibrary("grpc-protobuf").get())
implementation(libs.findLibrary("grpc-stub").get())
implementation("javax.annotation:javax.annotation-api:1.3.2")
testImplementation(libs.findLibrary("spring-boot-starter-test").get())
testImplementation(libs.findLibrary("spring-boot-starter-restclient-test").get())
testImplementation(libs.findLibrary("spring-boot-resttestclient").get())
testImplementation(libs.findLibrary("spring-boot-starter-webmvc-test").get())
if (name != "common-redis-contracts") {
implementation(libs.findLibrary("protobuf-java").get())
implementation(libs.findLibrary("grpc-netty-shaded").get())
implementation(libs.findLibrary("grpc-protobuf").get())
implementation(libs.findLibrary("grpc-stub").get())
implementation("javax.annotation:javax.annotation-api:1.3.2")
testImplementation(libs.findLibrary("spring-boot-starter-test").get())
testImplementation(libs.findLibrary("spring-boot-starter-restclient-test").get())
testImplementation(libs.findLibrary("spring-boot-resttestclient").get())
testImplementation(libs.findLibrary("spring-boot-starter-webmvc-test").get())
}
testRuntimeOnly(libs.findLibrary("junit-platform-launcher").get())
if (projectDir.parentFile.name == "services" && !name.startsWith("common-")) {
testImplementation(testFixtures(project(":common-test-support")))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Accepted

## Implementation Status

Basic JWT/JWKS and account/tenant token-state foundations exist, but the accepted single-record contract is not implemented end to end. Current issuance still writes scope-duplicated account/tenant keys, downstream validators do not consistently enforce `session:auth:token:<tokenHash>`, and complete authority-generation checks, token-profile count/encoded-byte/total-size bounds with pre-signing and pre-registration rejection proof, per-token `/auth/logout`, `/auth/logout-all`, durable operation evidence, retry classification, cleanup, and revocation proof remain incomplete.
The single-record registry, complete immutable authorization bundle and ordinary-token issuance/revocation contract are not implemented end to end. Unwired source receipts and focused component proof do not authorize credentials or enable logout routes; current runtime still uses legacy session keys. Current capability, executed proof and activation limits are owned by [Player Access and Session](../../project-management/implementation-tracking/player-access-and-session.md#current-status).

## Decision Record

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Accepted

## Implementation Status

The monotonic generation contract is target state and is not fully implemented or proved. The current Unit 1B draft adds durable generation-storage primitives, initializes the Account UUID scope for newly registered global accounts, idempotently enrolls the exact Account JWT issuer at startup, and enrolls retained Account and approved tenant UUID scopes without resetting advanced state. Account V33 adds separately sequenced, immutable authority-outbox storage, and the current explicit first-JOIN candidate emits one canonical membership event with its committed membership, role snapshot, audit, receipt, and operation in an Account transaction. That candidate still needs executed PostgreSQL proof; retained inactive reactivation denies without a canonical current INACTIVE event. Event delivery and Redis projections, the fenced runtime membership snapshot and Game Session consumer, complete authority-mutation composition, transactional token issuance/revocation ordering, and cross-scope validation proof remain outstanding. Account runtime still uses legacy session keys and incomplete issued-token/auth-generation enforcement; the runtime membership RPC remains denied.
The complete monotonic-generation and revocation contract remains unimplemented end to end. Durable source, membership and unwired authenticated-consumer components have focused proof, but they do not supply a complete ordinary-token authorization bundle, delivered revocation or production admission. The live membership RPC and unproved credential paths remain denied. [Player Access and Session](../../project-management/implementation-tracking/player-access-and-session.md#current-status) owns current implementation, executed proof and remaining activation gates.

## Decision Record

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Accepted

## Implementation Status

This decision is not implemented. The shared Redis-contract foundation, owner-local descriptor contributions, repository aggregation, ownership enforcement, and descriptor-driven proof remain gaps.
This decision is partially implemented. The narrow `common-redis-contracts` module provides immutable descriptors, explicit prefix ownership and invocation validation for role, principal, script identity/digest, key/argument arity and cluster slots. It has no executable owner scripts or automatic runtime wiring. Complete repository aggregation, existing-script/prefix coverage, ownership enforcement, descriptor-driven generic CI, rollout/coexistence evidence and deployed role/ACL proof remain gaps; a selected registered invocation does not establish those global guarantees. Current proof status remains in the [Shared Runtime tracker](../../project-management/implementation-tracking/shared-runtime-contracts-and-persistence.md#capability-status).

## Decision Record

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Manages user accounts and authentication for the platform. It stores profile dat
- **Internal:**
- Logging & Admin Service for audit logging.
- Game Session Service consumes tokens to create gameplay sessions.
- **External:** PostgreSQL for account data, Redis for transient session data.
- **External:** PostgreSQL for account data, Redis for transient session data. Account is the sole writer of its canonical generation projections; the owner-local [Account generation snapshot projection](./runtime-and-data.md#account-generation-snapshot-projection) defines its exact storage, reprojection and readback consequences. This boundary does not grant Game Session write authority or establish production authorization, reset recovery or deployed Redis readiness.

> See [**Gateway Architecture**](../../system-architecture-gateway.md),
[**Deployment Environments**](../../infrastructure/deployment-environments.md),
Expand Down
Loading
Loading