role-isolation
Enforces FIG.02 / T2.03 backend role isolation with a curl matrix. Use when touching auth, sessions, scores, assignments, exports, votes, or any list/get endpoint.
- License 许可
- MIT
- 最近更新
- 2026-10-07
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- role-isolation
- description
- Enforces FIG.02 / T2.03 backend role isolation with a curl matrix. Use when touching auth, sessions, scores, assignments, exports, votes, or any list/get endpoint.
03 SKILL.md 正文
Role isolation
Read context/role-isolation.md. Filter in the service layer.
Matrix
Visitor/participant: no scores, no aggregates, no audit. Judge: own scores only; never peer, never other track, never aggregate, never audit. Organizer/admin: all columns permitted.
Per-endpoint checklist
For each new or changed endpoint:
- Who is allowed?
- What 404 vs 403?
- Write tests or a curl script for: visitor, participant, judge A, judge B, other-track judge, organizer.
- Exports obey the same rules.
Fail
A hidden button with a working URL is a failed T2.03.
04 同仓库更多 Skills
writeup-capture
Writes session journal entries for the Write Up Quest. Use at session end, after large decisions, isolation bugs, or when the user mentions writeup, journal, or postmortem.
schema-defense
Keeps the schema explainable and round-trippable. Use when writing migrations, models, import/export, or DATA-MODEL.md.
judging-maths
Weighted rubric, robust z-score normalization, and Bradley-Terry pairwise ranking. Use when implementing scores, ranking, assignment maths, JUDGING.md, or bonus proofs.
dogfood-spec
Maps work to Dogfood T1-T4 bullets, FIG.01 stages, and out-of-scope list. Use when implementing features, choosing scope, or when the user mentions tiers, the brief, or dogfoodhack.
docs-sync
Updates architecture, data-model, judging, and journal docs in the same change as code. Use after mergeable schema, API, or judging changes, or when writing README/ARCHITECTURE/DATA-MODEL/JUDGING.
docker-offline
Keeps the portal one-command and offline. Use when editing docker-compose, adding dependencies, object storage, auth, email, or any third-party SDK.