Competition/Round architecture: full platform rewrite (Phases 1-9)
All checks were successful
Build and Push Docker Image / build (push) Successful in 7m45s

Replace Pipeline/Stage system with Competition/Round architecture.
New schema: Competition, Round (7 types), JuryGroup, AssignmentPolicy,
ProjectRoundState, DeliberationSession, ResultLock, SubmissionWindow.
New services: round-engine, round-assignment, deliberation, result-lock,
submission-manager, competition-context, ai-prompt-guard.
Full admin/jury/applicant/mentor UI rewrite. AI prompt hardening with
structured prompts, retry logic, and injection detection. All legacy
pipeline/stage code removed. 4 new migrations + seed aligned.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-15 23:04:15 +01:00
parent 9ab4717f96
commit 6ca39c976b
349 changed files with 69938 additions and 28767 deletions

View File

@@ -169,27 +169,26 @@ async function runChecks(): Promise<CheckResult[]> {
// 12. Every FileRequirement has a valid stageId
const badFileReqs = await prisma.$queryRaw<{ count: bigint }[]>`
SELECT COUNT(*) as count FROM "FileRequirement" fr
WHERE NOT EXISTS (SELECT 1 FROM "Stage" s WHERE s.id = fr."stageId")
WHERE NOT EXISTS (SELECT 1 FROM "Round" r WHERE r.id = fr."roundId")
`
const badFileReqCount = Number(badFileReqs[0]?.count ?? 0)
results.push({
name: 'Every FileRequirement references valid stage',
name: 'Every FileRequirement references valid round',
passed: badFileReqCount === 0,
details: badFileReqCount === 0
? 'All file requirements reference valid stages'
: `Found ${badFileReqCount} file requirements with invalid stage references`,
? 'All file requirements reference valid rounds'
: `Found ${badFileReqCount} file requirements with invalid round references`,
})
// 13. Count validation
const projectCountResult = await prisma.project.count()
const stageCount = await prisma.stage.count()
const trackCount = await prisma.track.count()
const pipelineCount = await prisma.pipeline.count()
const pssCount = await prisma.projectStageState.count()
const roundCount = await prisma.round.count()
const competitionCount = await prisma.competition.count()
const prsCount = await prisma.projectRoundState.count()
results.push({
name: 'Count validation',
passed: projectCountResult > 0 && stageCount > 0 && trackCount > 0,
details: `Pipelines: ${pipelineCount}, Tracks: ${trackCount}, Stages: ${stageCount}, Projects: ${projectCountResult}, StageStates: ${pssCount}`,
passed: projectCountResult > 0 && roundCount > 0 && competitionCount > 0,
details: `Competitions: ${competitionCount}, Rounds: ${roundCount}, Projects: ${projectCountResult}, RoundStates: ${prsCount}`,
})
return results