TK05: work files of packs (downloads/, served by the API, logged) #635
Loading…
Reference in a new issue
No description provided.
Delete branch "tk05-downloads"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TK05 (Plan 26, Teil AZ, D515): work files of packs. Stacked on #634 (skills pin); merge that first.
Deviation from the plan, recorded in D515 and SPEC Abschnitt 5 „Arbeitsdateien“:
GET /api/assignments/:assignmentId/steps/:stepId/downloads/:name. The log needs the step, and the route hands out only what that step names.schoolPacksnames the newest version's work files.Acceptance
downloads/anddownloadson every step kind (at most 5); names, types and limits in@aivopod/shared(downloads.ts), byte checkcheckDownloadin@aivopod/shared/zip: real.xlsxwithout macros, external links, embeddings, ActiveX; CSV UTF-8/Windows-1252 without NULinvalid-downloads; packtoolsdownload.*errors,download.unknown, warningdownloadUnused,downloads.json+assets/<hash>pack_downloads,step_events(tenant RLS),store_packwith work files; install and publish re-checkdownloads/<hash>.<ext>in the asset volume, never served by the assets hostattachment,Content-Security-Policy: sandbox,private, no-store; foreign enrollment and steps that don't hand the file out → 404step_eventswith a 10 s dedupe; export recordsdownloadandhelpin „Meine Daten“ and the teacher export; retention through the person cascaderoutes/downloads.test.ts, full suite 1132 green locally), browser test of the step🤖 Generated with Claude Code
https://claude.ai/code/session_01PVUe4i6vEUY3kHe9imoS6j