File size: 3,727 Bytes
09c6e66 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | # Friction tutorial verifier implementation
This package implements the ten authorized task adapters and their pilot grading rubrics: **t19 and t44–t52**. **t18 is protected and rejected by the installer.**
| Component | Current behavior |
|---|---|
| Task adapters and rubrics | Executable 100-point criteria, independent subfeature scoring, grounded reference rules |
| Media inspection | Actual decoded frame count and presentation timestamps; missing/corrupt media distinguished from verifier-tool failures |
| Geometry/motion | Fitted rings, per-dot luminance, contours, progress frontiers, prefix reveal, evaluated native paths and text |
| T19 | Export checks, drop movement, looping/source-time speed analysis, source-grounded effect/animation criteria |
| Process evidence | Validates externally authenticated committed copy/paste events; equality alone earns no process credit |
| Native runtime | Built isolated audit runtime; actual t52 190-frame full render passes; task-specific coverage and acceptance calibration continue |
| Task installation | Installed alongside original grading in all ten task packages; new results are saved separately |
| Authoritative rollout | Full native/render integration and reference calibration must pass before replacing original reward generation |
## Run
```sh
python3 cli.py --task t52 \
--project /submission/project.friction \
--desktop /submission \
--out /verifier/friction-audit
```
Add `--reference <verifier-owned-reference.json>` and `--inspector <native/inspect_project.py>` for host-side native inspection. The native wrapper requires the installed Docker runtime. The task-local shadow package uses media measurements and the header fallback until a native runtime is incorporated into the release images. Extracted submission-authored JSON is not accepted as independent evidence.
A complete assessment writes `score.json` and `reward.txt`. An incomplete assessment writes score bounds and `grading-pending.json`; it does not silently convert unknown criteria into zero or normalize them away. In the installed shadow integration, the original task reward remains authoritative.
## Files
| File | Purpose |
|---|---|
| `cli.py` | Frozen artifact collection, inspection, task adapter and report orchestration |
| `media.py` | Bounded decoded media metadata/frame extraction |
| `metrics.py` | Concrete geometry, brightness, path and motion collectors |
| `tasks/engine.py` | Versioned criterion evaluation and calibrated rule validation |
| `tasks/t19.py`, `tasks/t44.py`–`t52.py` | Task-specific metric/criterion adapters |
| `rubrics/t19.json`, `rubrics/t44.json`–`t52.json` | Pilot contracts and grading weights |
| `references/` | Verifier-owned supplied-video evidence and annotation work |
| `native/` | Pinned native build, inspector wrapper and build/test evidence |
| `render_match.py` | Independent native/video correspondence measurements |
| `process_evidence.py` | Authenticated semantic action evidence validation |
| `install.py` | Idempotent installation; protects t18 and retains original entrypoint backup |
## Validation and limits
Tests cover numeric/temporal errors, unsupported capability handling, missing calibration, partial grading, alternative constructions, corrupted submissions, installation, native schema normalization and render comparison. The historical t52 export was also run in the Friction container: eight dots and travelling phases were detected.
A metric implementation is not the same as a calibrated visual verifier. Exact role mapping, tutorial-derived tolerances and complete source-time/effect/media coverage must be validated for each task. The original historical grades are not overwritten.
|