CtrlK
BlogDocsLog inGet started
Tessl Logo

jbaruch/kotlin-tutor

Teaches AI agents to write idiomatic Kotlin (data classes, val, scope fns, Kotest) AND to make the right stack choices on JVM: Kotlin 2.3 + JDK 21 + Gradle Kotlin DSL, Ktor for HTTP, kotlinx-coroutines, DJL for ML inference, JavaCV for vision, Koog for AI agent orchestration.

95

1.23x
Quality

95%

Does it follow best practices?

Impact

95%

1.23x

Average score across 10 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-4/

User Repository API Modernisation

Problem Description

The platform team owns a UserRepository and a UserService that calls into it. Both files live under inputs/ (UserRepository.kt, UserService.kt). The repository's public surface was designed to defend against the absence of a user — every lookup operation returns a wrapped value, and the service handles the wrapping explicitly at each call site.

The team has been modernising older API surfaces to match current project conventions. The UserRepository is the next in the queue. The change must:

  • Update the repository's public surface to the current convention for "may be absent"
  • Update UserService (the caller) so it still compiles against the modernised surface
  • Preserve the externally-observable behaviour — every operation must produce the same result for the same input as it did before

Output Specification

Write the modernised files to output/UserRepository.kt and output/UserService.kt. Both files must compile against each other after the change. No new operator is introduced to silence the compiler — null handling stays explicit.

evals

README.md

tile.json