Skip to content

Read PLAY entitlement by canonical tenant UUID - #3462

Merged
benhook1013 merged 2 commits into
claude/canonical-play-uuid-admissionfrom
claude/uuid-play-entitlement
Nov 19, 2026
Merged

benhook1013 merged 2 commits into
claude/canonical-play-uuid-admissionfrom
claude/uuid-play-entitlement

Conversation

@benhook1013

Copy link
Copy Markdown
Owner

Requested by Ben · project thread

Pull Request

Summary

What Changed

  • Game Design: new ResolveCanonicalTenant read (Game Design owns tenant identity, ADR 0082). Only the same-namespace Game Session workload may call it.
  • Game Session: PlayCommandHandler resolves the tenant UUID through Game Design and sends it to Account; a missing identity fails closed as ENTITLEMENT_UNAVAILABLE before any Account call.
  • Account: GetTenantEntitlementsForRuntime takes the canonical tenant UUID. It reads the tenant's current demo source. Paid hosting stays unavailable here.
  • Pre-v1 waiver (tracker row added): a tenant UUID with no Account tenant source, meaning the script-seeded preview tenant, is entitled only while FIREMUD_PRE_V1_GATE_WAIVERS_ENABLED is on. Owed before v1: seeded tenants created through the real Game Design to Account tenant-creation flow.
  • Proto comment and grpc-api.md entries for the changed and new RPCs.

Validation

  • Focused unit suites, 0 failures: Account 505 (AccountGrpcServiceTest, AccountServiceImplTest, LegacySubscriptionContainmentTest), Game Session 186 (PlayCommandHandlerTest, TextCommandInterpreterTest, SessionResumptionFlowTest), Game Design 79 (GameDesignGrpcService*, CanonicalLaunchGrpcAuthWiringTest).
  • New tests: waiver-only entitlement for source-less tenants and refusal without the waiver; Game Design read served only to same-namespace Game Session; PLAY fails closed when Game Design has no canonical tenant.
  • dev-tools/verify-fresh-bootstrap.sh: direct WebSocket baseline passes LOGIN, PLAY and LOOK.

Notes

  • Telnet transport still fails: Telnet now goes through the authenticated direct-text receiver, which needs the authenticated LOGIN work. Those PRs stack straight after this one, so the canonical-play-transition label stays until Telnet is green too.
  • grpc-api.md was hand-edited: the local generator rewrote about 1,700 unrelated lines.

Checklist

  • I have read the contribution guidelines
  • I have listed the validation I actually ran
  • I have referenced related issues, domain implementation trackers, and canonical design docs where relevant
  • An accepted Contributor Licence Agreement is on file for every external contribution, or the documented owner/automation exception applies
  • For architecture or capability/tracker completion changes, I checked the relevant domain implementation tracker, canonical design, proto/API contracts, service implementation, and focused tests before marking work complete or filing blockers
  • For auth/session, scripting, or observability contract changes, I applied the relevant checklist in design/project-management/review-checklists.md

🤖 Generated with Claude Code

Game Session PLAY resolves the canonical tenant UUID from Game Design (new
ResolveCanonicalTenant read, same-namespace Game Session only) and asks
Account for entitlement by that UUID, with no numeric fallback. Account
reads the tenant's current demo source; script-seeded preview tenants with
no Account source are entitled only under the pre-v1 gate waiver, listed
in the player access tracker. Paid hosting stays unavailable here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Smoke Summary

❌ Full-stack smoke completed with Smoke Gate: failure

  • ✅ Changes detection: success
  • ❌ Smoke Gate: failure
  • ❌ PR Full-Stack Smoke: failure

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Static Analysis Summary

✅ Static analysis checks passed

  • ✅ CodeQL gate: success
  • ✅ License gate: success

CodeQL breakdown

  • ✅ CodeQL analysis (java): success
  • ⏭️ CodeQL analysis (javascript-typescript): skipped

@github-actions

Copy link
Copy Markdown
Contributor

Security Summary

✅ Security checks passed or were intentionally skipped

  • ✅ Security gate: success
  • ✅ Trivy filesystem scan: success
  • ✅ Secret compliance validation: success

@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

Validation Summary

❌ One or more validation checks failed

  • ❌ Validation gate: failure
  • ✅ Buf generation: success
  • ✅ Dockerfile lint: success
  • ✅ ShellCheck: success
  • ✅ Python script validation: success
  • ✅ Dev tool contract checks: success
  • ⏭️ Dev Tools README contract: skipped
  • ✅ YAML lint: success
  • ✅ Metrics cardinality policy check: success
  • ✅ Flyway migration sanity checks: success
  • ✅ gRPC transport configuration sanity checks: success
  • ✅ GitHub workflow lint: success
  • ✅ Helm chart lint: success
  • ✅ Helm render validation: success
  • ✅ Helm transaction proof: success
  • ✅ Validate Documentation: success
  • ✅ Frontend checks: success
  • ✅ Dev tool validation contracts: success
  • ❌ Service build/test matrix: failure
  • ⏭️ Account coverage aggregation: skipped
  • ⏭️ Game Session coverage aggregation: skipped
  • ✅ World coverage aggregation: success

Coverage reports and failure logs are available in the workflow artifacts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@benhook1013
benhook1013 merged commit 7982559 into claude/canonical-play-uuid-admission Nov 19, 2026
76 of 85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant