Context
The showcase courses need a project to submit and materials to download. A project is a SUBMISSION quiz with one CODE question answered by a ZIP. The grading job for a ZIP carries spec.testCases: []: the worker scores each rubric criterion with its engine and never runs test cases for a ZIP. Uploaded documents live in Cloudinary or on the API's local disk, and the seed runs at boot inside packages/database, with no Cloudinary client.
Decision
- One project per course (all six teach code, the cryptography course included), keyed by course slug + project key, inserted published and approved like the wizard's output.
- Rubric types that tell the truth for a ZIP:
STATIC_CHECKon the deterministic engines (BUILD_ARTIFACT_PROBE,UNIVERSAL_STATICwith the project's static patterns),AI_REVIEWfor correctness and code quality (the ADR-0054 button proposes these),MANUAL_INSTRUCTORfor the written part. NoAUTOMATED_TEST: it would read "điểm theo tỉ lệ test" with no test behind it. - Superseded by ADR-0062 for correctness: each project's correctness criterion is now
AUTOMATED_TEST, scored by the pass ratio of its public and hidden cases run on the single-file entry point (codeSpec.entryPoint,timeoutMs5000);AI_REVIEWkeeps code quality, and re-saving the rubric keepsAUTOMATED_TESTandSTATIC_CHECKinstead of demoting them toHYBRID. - Test cases are stdin/stdout, public and hidden, in
testCasesandcodeSpec; the student paper shows the public ones, the AI review prompt redacts hidden ones and the reference solution. Each reference solution passes its suite on the worker's own multi-language runner (checked when the pack changes). - Materials are self-built PDFs (
tools/showcase-materials/), shipped as base64 in the pack. The seed inserts a LOCALDocumentrow once;ShowcaseMaterialsServicewrites the bytes into the local document store on every boot (same switch), because a container disk does not survive a redeploy. Status stays UPLOADED: not ingested for retrieval.
Consequences
- Hidden tests are a contract for the reviewer, not an executed suite, until ZIP grading runs test cases; that is a grader change, not a pack change.
- When the AI provider is configured, the worker's
UNIVERSAL_STATICscore is the model's judgment informed by the static scan; without it, the scan ratio. - An AI review on a showcase submission is charged to the passwordless owner's free monthly instructor uses (200 by default); none left and no points means a FAILED proposal with BUDGET_EXHAUSTED, nothing charged.