Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
fb0781d
Prepare exact-source hosted playable diagnostics and TLS rotation
benhook1013 Sep 24, 2026
cc96153
Close Gate 2 playable proof and TLS readiness gaps
benhook1013 Sep 24, 2026
cb494b6
Pin one trusted account and world for transport parity
benhook1013 Sep 24, 2026
45b2992
Constrain dev-demo summary validation to fail-closed forms
benhook1013 Sep 24, 2026
decfe45
Match the shell heredoc terminator exactly
benhook1013 Sep 24, 2026
93c2cd1
Constrain gameplay presence roles and redact legacy friend visibility
benhook1013 Sep 24, 2026
bc99547
Merge published Phase 1 summary parent
benhook1013 Sep 24, 2026
5d31ebf
Fold fail-closed dev-demo summary parser into Gate 2
benhook1013 Sep 25, 2026
535d563
Join Document Phase 1 tail before Gate 2
benhook1013 Sep 25, 2026
0a9bacb
Join Phase 1 gameplay presence after Gate 2
benhook1013 Sep 25, 2026
7423278
Correct presence tracker proof link after join
benhook1013 Sep 25, 2026
1439441
Prove friend privacy in cross-service gameplay flows
benhook1013 Sep 26, 2026
c5b34ae
Keep hosted playable proof and Telnet readiness fail closed
benhook1013 Sep 27, 2026
c738276
Reconcile Gate 2 with email-link and frontend parent
benhook1013 Sep 27, 2026
7db2344
Reconcile Gate 2 with email-link parent validator fix
benhook1013 Sep 27, 2026
b3ab43f
Reconcile Gate 2 child with email-link parent
benhook1013 Sep 27, 2026
36457f9
Reject new Telnet sessions after TLS reload failure
benhook1013 Sep 28, 2026
1a552e2
Align player presence tracker with Friends redaction proof
benhook1013 Sep 28, 2026
6f3a408
Fix hosted playable Python lint and closure bindings
benhook1013 Sep 28, 2026
d1beb6a
Constrain player-facing friend summary and filters to disclosed data
benhook1013 Sep 29, 2026
6ce4540
Preserve canonical dev-demo warnings and Friends summary proof
benhook1013 Sep 29, 2026
12c8b57
Reconcile playable proof with current grant containment
benhook1013 Oct 1, 2026
1ef97e0
Account for all controller certificate projections in retry proof
benhook1013 Oct 1, 2026
60ef7a0
Require converged paused controller evidence before CA handoff
benhook1013 Oct 1, 2026
9f191df
Keep hosted WSS baseline independent of unavailable logout
benhook1013 Oct 1, 2026
adb1441
Reject orphaned controller Pods in pre-CA absence proof
benhook1013 Oct 1, 2026
f4c62b7
Require each controller gRPC egress path in live proof matrix
benhook1013 Oct 1, 2026
e944546
Prove effective bootstrap admission and contain Friends policy filters
benhook1013 Oct 1, 2026
5dc60a0
Carry verified email-link boundary into playable-delivery child
benhook1013 Oct 2, 2026
bf90b42
Remove aggregate online counts from player friend views
benhook1013 Oct 2, 2026
ee7903c
Pin trusted hosted smoke credential destinations
benhook1013 Oct 2, 2026
724912d
Propagate fresh response-local admission and authority fixtures
benhook1013 Oct 2, 2026
f1a8de6
Withhold unverified friend locations and hidden-scope filters
benhook1013 Oct 2, 2026
e0f48d3
Merge commit '155dff187f1972200d1c242f6904918b74fac6c1' into codex/fi…
benhook1013 Oct 2, 2026
a086c35
Carry proven admission parent into hosted player delivery
benhook1013 Oct 2, 2026
e7156a4
Bound authenticated hosted smoke HTTP responses and reject redirects
benhook1013 Oct 2, 2026
39584f8
Bound hosted WebSocket receives and require boolean acceptance
benhook1013 Oct 2, 2026
32471f6
Fence character admission and stale hosted proof reporting
benhook1013 Oct 2, 2026
b41b4b4
Preserve hosted proof fixes with current admission containment
benhook1013 Oct 2, 2026
c9196ea
Preserve Gate 2 proof on corrected Account parent
benhook1013 Oct 2, 2026
cb77b14
Carry final entitlement authority corrections into playable-delivery …
benhook1013 Oct 2, 2026
ee55b3f
Reject redirects in exact readiness probes
benhook1013 Oct 3, 2026
655fa7d
Verify protected connect cookies in the hosted WSS diagnostic
benhook1013 Oct 3, 2026
1e7ffa1
Merge commit '4b56014e5d16318bbaf3cc04665a0322b74e9b34' into codex/fi…
benhook1013 Oct 3, 2026
2245310
Parse the resolved Gateway bootstrap target port
benhook1013 Oct 3, 2026
cf13cf2
Merge commit 'e1a31726f98baf27831168bb54a1ec07967eae38' into codex/fi…
benhook1013 Oct 3, 2026
e8aa016
Keep dev-demo summary writer inline-only
benhook1013 Oct 3, 2026
101897a
Allow Validation for stacked pull requests
benhook1013 Oct 4, 2026
5e39939
Repair hosted WebSocket test isolation and locked CI dependencies
benhook1013 Oct 4, 2026
25b22b7
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
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
types: [opened, synchronize, reopened, edited]
workflow_dispatch:

Expand Down Expand Up @@ -321,6 +320,10 @@ jobs:
with:
requirements: ${{ (needs.changes.outputs.lightweight_only == 'true' && needs.changes.outputs.design_docs_changed == 'true' && needs.changes.outputs.validation_python_changed != 'true') && 'yaml' || 'ci' }}

- name: 📦 Install bounded wire test dependencies
if: ${{ needs.changes.outputs.lightweight_only != 'true' }}
run: python3 -m pip install --disable-pip-version-check --require-hashes -r config/python/smoke-requirements.txt

- name: 📦 Install cloc
if: ${{ needs.changes.outputs.lightweight_only != 'true' }}
env:
Expand Down Expand Up @@ -1012,7 +1015,7 @@ jobs:
contents: read
pull-requests: write
needs: [buf-check, docker-lint, shellcheck, python-script-validation, dev-tool-contract-checks, dev-tools-readme-contract, yaml-lint, metrics-cardinality-check, flyway-migration-sanity-checks, grpc-transport-config-sanity-checks, workflow-lint, helm-lint, helm-render-validation, helm-transaction-proof, docs-check, frontend-checks, build-and-test, validation-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
17 changes: 13 additions & 4 deletions .github/workflows/dev-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,18 @@ jobs:
trap cleanup_bootstrap_resources EXIT
trap 'exit 130' INT
trap 'exit 143' TERM
# BEGIN gateway port parser
parse_bootstrap_gateway_port() {
local port
port="$(sed -nE 's/^Forwarding from 127[.]0[.]0[.]1:([0-9]{1,5}) -> 8080$/\1/p' "$1" | head -n1)"
if [[ "$port" =~ ^[0-9]{1,5}$ ]] \
&& (( 10#$port >= 1 && 10#$port <= 65535 )); then
printf '%s\n' "$((10#$port))"
return 0
fi
return 1
}
# END gateway port parser
for credential in DEMO_SMOKE_EMAIL DEMO_SMOKE_PASSWORD DEMO_SMOKE_USERNAME; do
if [[ -z "${!credential:-}" ]]; then
echo "::error::${credential} is empty; refusing to create dev-demo bootstrap credentials" >&2
Expand All @@ -824,10 +836,7 @@ jobs:
cat "${BOOTSTRAP_PORT_FORWARD_LOG}" || true
exit 1
fi
BOOTSTRAP_GATEWAY_PORT="$({
sed -nE 's/^Forwarding from 127[.]0[.]0[.]1:([0-9]+) -> 80$/\1/p' \
"${BOOTSTRAP_PORT_FORWARD_LOG}" || true
} | head -n1)"
BOOTSTRAP_GATEWAY_PORT="$(parse_bootstrap_gateway_port "${BOOTSTRAP_PORT_FORWARD_LOG}" || true)"
if [[ "${BOOTSTRAP_GATEWAY_PORT}" =~ ^[0-9]+$ ]] \
&& (( BOOTSTRAP_GATEWAY_PORT > 0 && BOOTSTRAP_GATEWAY_PORT <= 65535 )); then
break
Expand Down
368 changes: 318 additions & 50 deletions .github/workflows/hosted-identity-request.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
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ The hosted identity controller's egress boundary is exact-destination and operat
- Preview deploys currently reset the namespace before each Helm apply, then reseed the minimum bootstrap state needed for reviewer proof. Within one deployed preview instance, PostgreSQL, MinIO/object storage, and other stateful components persist across normal pod restarts and VM reboot, but preview state does not currently persist across preview redeploys.
- Preview state is not backed up and is not durable beyond the single preview node. If the node or its attached storage is lost, preview state is lost.
- The initial Hetzner/k3s sizing target is one reliably usable full-stack preview on an 8 GB shared-CPU x86 VM. A second concurrent preview is best-effort only and may fail to deploy if capacity is exhausted.
- Open, mergeable, non-dependency-bot same-repository pull requests targeting `main` or `develop` request preview allocation automatically. A stacked pull request whose base is another current branch in the same repository is eligible only while it carries the maintainer-controlled `preview:priority` label; forks and dependency-bot updates remain ineligible. Ordinary allocation in the bounded two-slot pool is first-come at the serialized allocation boundary while capacity remains available; GitHub's raw job-scheduling order is not itself an allocation guarantee. The priority label lets a later priority request claim a free slot or reclaim the oldest ordinary preview, but never another currently priority-labelled preview. Allocation, deployment, hosted proof, reclaim, and cleanup share one durable bounded non-cancelling lifecycle queue so a running proof is not deleted underneath itself and normal waiting lifecycle work uses GitHub's expanded queue instead of its replaceable single pending slot. Both target and victim label state are re-read immediately before reclaim. Removing the label from an ordinary `main`/`develop` pull request returns its environment to ordinary status; removing it from a stacked pull request makes that preview ineligible and permits trusted cleanup. A displaced pull request keeps its ordinary CI and historical preview result, while its current hosted status reports that no environment is allocated.
- Open, mergeable, non-dependency-bot same-repository pull requests targeting `main` or `develop` request preview allocation automatically. A stacked pull request whose base is another current branch in the same repository is eligible only while it carries the maintainer-controlled `preview:priority` label; forks and dependency-bot updates remain ineligible. Ordinary allocation in the bounded two-slot pool is first-come at the serialized allocation boundary while capacity remains available; GitHub's raw job-scheduling order is not itself an allocation guarantee. The priority label lets a later priority request claim a free slot or reclaim the oldest ordinary preview, but never another currently priority-labelled preview. Allocation, deployment, final proof publication, reclaim, and cleanup share one durable bounded non-cancelling lifecycle queue so the protected final proof mutation is not deleted underneath itself. Post-apply verification and diagnostics run outside that queue and may interleave with lifecycle work under the exact source and Namespace UID fences described in [Hosted identity lifecycle](#hosted-identity-lifecycle). Normal waiting lifecycle work uses GitHub's expanded queue instead of its replaceable single pending slot. Both target and victim label state are re-read immediately before reclaim. Removing the label from an ordinary `main`/`develop` pull request returns its environment to ordinary status; removing it from a stacked pull request makes that preview ineligible and permits trusted cleanup. A displaced pull request keeps its ordinary CI and historical preview result, while its current hosted status reports that no environment is allocated.
- Each successfully allocated eligible preview receives its own namespace and holds a bounded renewable visible lease. An ordinary active lease is protected except for the explicit priority rule above; a priority-labelled active lease is not silently evicted, while an expired lease may be reclaimed even if the pull request remains open. A request that is eligible but not allocated, including because capacity is exhausted or every slot is priority-protected, reports `preview_unavailable`, not passed.
- Any review claiming hosted proof requires successful evidence for its current base SHA, head SHA, two-parent merge SHA, and selected immutable image tag. A parent advance invalidates the prior proof even when the child head is unchanged.
- Preview runtime namespaces are removed when the pull request closes or merges, is explicitly released, or its lease expires; the retained identity namespace remains until the trusted lifecycle explicitly retires it under the exact runtime-`NotFound` rule.
Expand Down
Loading
Loading