Skip to content

Deploy main to deploy - #115

Merged
dev-yunseong merged 3 commits into
deployfrom
main
Aug 25, 2026
Merged

Deploy main to deploy#115
dev-yunseong merged 3 commits into
deployfrom
main

Conversation

@dev-yunseong

Copy link
Copy Markdown
Collaborator

Promotes the current main branch to deploy.

dev-yunseong and others added 3 commits August 24, 2026 13:57
* feat: route a novice's practice match to the hospitality bot

matchPractice drew from every enabled persona, so there was no way to give a
player finishing the tutorial the opponent built to lose to them.

The random pool now excludes the hospitality persona: it is enabled and plays
real sessions, so without the clause an ordinary player would occasionally draw
an opponent that is not trying. A novice whose hospitality lookup fails falls
back to the pool and keeps the mark - a missing tutorial opponent must not be
the reason a new player cannot start a match.

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

* fix: read the novice mark through the entity, not a scalar query

The @query returning Mono<Boolean> failed at runtime against a real database:

  MappingException: Expected to read Document RowDocument{is_novice=false}
  into type class java.lang.Boolean but didn't find a PersistentEntity

Spring Data R2DBC maps a repository query through the repository's domain type,
so a single-column projection into Boolean has no entity to map to. Only running
the lobby against Postgres surfaced it; nothing in the test suite covers this
path.

The column now lives on User, where the mapping already works. A failed lookup
is logged rather than swallowed: it fails closed, and a novice who quietly never
meets the tutorial opponent would otherwise look like a routing bug.

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

* feat: read novice status from tutorial progress rather than a flag

The mark became a value from 0.5 to 1.0, where 1.0 means the tutorial opponent
holds nothing back - the same thing as having finished. Routing asks whether the
player is short of that rather than whether a boolean is set.

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

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Version bumps in feature pull requests kept conflicting on the same version
line. The monorepo deploy skill now makes one bump commit on main per
promotion, then tags and releases it on the deploy merge commit.

Closes #111
@dev-yunseong
dev-yunseong merged commit ee4ff57 into deploy Aug 25, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant