✨ feat: announce an exam to sibling instances (shared-exam write surface)
b3f7395 gave `exam_audience` a read role; this gives it its writes. An exam
is owned by the instance it was created on and can now be addressed to
further instances — one sitting, one mark, standing in every addressed
section's exam list, marks report and the report card.
- `POST /exams/{id}/audience` announces the exam to another instance: the
target must teach the exam's own catalog course and sit under the same
academic year (400 otherwise), the owner itself is refused (400), an
archived target year is a 409, and a repeat announce is a no-op 200.
The write needs management rights over the exam's **owner** instance —
the target instance's teachers have no say.
- `GET /exams/{id}/audience` lists the set (owner first, then announcement
order), visible exactly as the exam is; drafts stay a 404 to everyone but
an addressed instance's manager. `DELETE /exams/{id}/audience/{instance}`
withdraws one; the owner's pair is not withdrawable (400) and a pair that
holds no row is a 404.
- Grading, statistics, results and the live monitor now accept teacher+
rights over any instance the exam is addressed to, so an announced-to
section's teacher grades its own students; the monitor's roster read is
deduped by student and ordered, so a sitter in two addressed sections
appears once.
- `sweep_instance_subtree` clears both directions of `exam_audience` before
the rows they name — an exam a sibling announced *here* referenced the
`class_course` row the caller deletes and refused the delete with a 23503.
Tests: regress_exam_delete.rs pins the announce/withdraw surface end to end
(owner-first order, the same-year and same-course 400s, the 409, the no-op)
and the sweep's answer-image blobs — the drawing row's bytes land on disk
and are gone with the row, with a mutation witness.
Gates: prepare_db, SQLX_OFFLINE=true check --all-targets (cache: 1 dropped,
7 added, all audience-shaped), doc_sync, spec_bounds, limits_completeness,
clippy -D warnings all green; cargo nextest run 1385/1385 across 47 binaries.