Repository navigation
Implement scoped direct-text JOIN delivery with fail-closed actor authority - #2898
benhook1013 wants to merge 169 commits into
Conversation
…it-1a-join-player-stage-prep # Conflicts: # services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/service/impl/GameSessionGrpcService.java # services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/command/text/GameplayWorldCatalogTest.java
…oin-player-stage-prep # Conflicts: # services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/command/text/GameplayWorldCatalog.java # services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/service/impl/GameSessionGrpcServiceTest.java
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 SummarySummary
Contract and deployment notes
Validation and gaps
WalkthroughThe pull request adds direct-text realm browsing and Account-backed public-production membership joining. It adds snapshot-bound discovery and fresh PLAY authority checks. Authenticated LOGOUT now fails closed, reconnect omits retained transcript replay, and the Gateway validates trusted TCP Proxy connection identity. ChangesPlayer access and session behavior
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant TextClient
participant WorldsTextCommandDispatchHandler
participant WorldsCommandHandler
participant DirectTextConnectScopeSessionStore
participant AccountClient
participant Account
TextClient->>WorldsTextCommandDispatchHandler: REALMS world selector
WorldsTextCommandDispatchHandler->>WorldsCommandHandler: Browse realms for transport session
WorldsCommandHandler->>AccountClient: Issue scope for selected realm
AccountClient->>Account: IssueDirectTextConnectScope
WorldsCommandHandler->>DirectTextConnectScopeSessionStore: Store realm snapshot and scope
TextClient->>WorldsTextCommandDispatchHandler: JOIN world selector
WorldsTextCommandDispatchHandler->>WorldsCommandHandler: Join public-production membership
WorldsCommandHandler->>DirectTextConnectScopeSessionStore: Resolve scope and request ID
WorldsCommandHandler->>AccountClient: Submit JOIN with retained scope
AccountClient->>Account: JoinPublicProductionMembership
Account-->>WorldsTextCommandDispatchHandler: JOIN outcome
WorldsTextCommandDispatchHandler-->>TextClient: Membership result
Merge Risk: 🟡 Moderate · up to Direct-text JOIN and fresh PLAY authority checks are substantial access-control changes. Remaining concerns include rejection of valid authority evidence under small clock skew, transport error codes shown to players on JOIN failures, and unverified integration and CI results. Resolve or explicitly accept these before merging. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to The change strengthens admission checks and prevents retained private output from being replayed without sufficient authority. However, concurrent state replacement, session cleanup, and compatibility during deployment remain incompletely established. No introduced authorization bypass was established in the inspected paths. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❓ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 3.32% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 572 functions across 50 files. (26 skipped: 22 unsupported, 4 over the file limit.) ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
…it-1a-join-player-stage-prep
…nto codex/gameplay-owner-qualified-entry # Conflicts: # design/project-management/implementation-tracking/player-access-and-session.md
…nto codex/gameplay-owner-qualified-entry # Conflicts: # design/project-management/implementation-tracking/player-access-and-session.md
…meplay-runtime-identity-association
…meplay-runtime-identity-association
…it-1a-join-player-stage-prep # Conflicts: # design/project-management/implementation-tracking/player-access-and-session.md
96d25fe to
c1c54a4
Compare
|
Consolidated into the existing Account and Player drafts. Audited
The old branch remains because open #2848 targets it. The exact source is also available via |
Scope
Direct-text WORLDS, REALMS, JOIN, CHARS and PLAY delivery with caller-bound ordinal snapshots, exact JOIN retry identity, privacy-safe denials and localized typed output. Account authentication/membership, Entity namespace-qualified ownership, Game Design tenant identity and Game Session runtime association remain owned by prerequisites.
The published candidate is
d8f5e7e491e05381fdeab9b1e1b4447e877d9792, with 79 unique paths. It is a true child of #2973 at31a631a4c8d4d2efd529ec107553392902a6b585, behind #3010 → #2967 → #3028 → #2972 → #2973. The previous child and complete published parent remain ancestors; no history was rewritten. Two documentation conflicts were reconciled without dropping owned behavior, followed by a whitespace-only table correction.Implemented boundary
No legacy roster fallback, synthetic owner mapping, raw pointer seed, credential activation or weaker full-stack Smoke is introduced.
Retained review evidence
Earlier Hosted 1/1/0 on
e42eca1bb(checkpoint) and CLI 4/2/1 (checkpoint) remain recorded. Owned corrections at53db3bf21andd68d34d1aare preserved. Existing results, routes and audited decisions remain in the controller; reconciliation is not new CodeRabbit coverage or a history reset.Validation and remaining delivery proof
The reconciled parent/child candidate passed 384 focused Game Session unit cases across 11 suites, zero failures/errors/skips, plus integration-source compilation. Links, Markdown hygiene and Flyway version checks passed after the table-spacing correction. These are focused local checks, not PostgreSQL/Redis execution or a live player flow.
Earlier broader check evidence remains historical: 2,244 executed cases and 216 skipped on its prior head. Current required CI must be consumed after publication. Historical red Smoke demonstrates the unresolved PLAY authority path; reconciliation alone does not repair it.
Gameplay is completing the protected Account finalization, actual tenant binding commit, current region intake and canonical PLAY/LOOK consumer. Document's exact World lifecycle/placement and publication-settlement handoff remains separate. Fresh LOGIN → REALMS → explicit JOIN → PLAY → LOOK has not been proved. This PR is not merge-ready while required Smoke or the complete runtime proof remains unresolved. Workers do not merge or enable auto-merge.
FireMUD LOC impact
Compared
31a631a4c8d4→d8f5e7e491e0(PR merge-base → head).PR scope: 79 changed files · 12,826 added textual lines / 1,218 deleted textual lines.
Rows are hierarchical and overlapping views; do not add them together.
LOC means cloc code lines; blank and comment-only lines are excluded.