feat: add diagnostic interview loop

This commit is contained in:
user
2026-04-26 16:24:35 +09:00
parent 0e232ff405
commit 4a4240fea2
21 changed files with 926 additions and 23 deletions

View File

@@ -0,0 +1,29 @@
package interview
import "tutor/internal/workflows"
func BackendDeveloperQuestions() []Question {
return []Question{
{
ID: "backend-http-idempotency",
Prompt: "What makes an HTTP method idempotent, and why does that matter for retries?",
Concepts: []workflows.ConceptRef{
{ID: "http-idempotency", Label: "HTTP idempotency", Track: BackendDeveloperTrack},
},
},
{
ID: "backend-db-index-tradeoff",
Prompt: "When would adding a database index improve an API, and what tradeoffs can it introduce?",
Concepts: []workflows.ConceptRef{
{ID: "database-indexes", Label: "Database indexes", Track: BackendDeveloperTrack},
},
},
{
ID: "backend-cache-invalidation",
Prompt: "How would you decide whether to cache an API response, and how would you handle stale data?",
Concepts: []workflows.ConceptRef{
{ID: "cache-invalidation", Label: "Cache invalidation", Track: BackendDeveloperTrack},
},
},
}
}