Skip to main content

assessment-lens

Part of the lens family.

Python 3.11+ License: MIT

Signals-based assessment. Analysers generate signals about student submissions; this lens maps those signals to a rubric as observations, not grades. A lecturer reads the observations, weighs them, and assigns the mark. The AI narrates and cites; it never scores. A human stays in the loop.

assessment-lens is a lens (an assessment-aware product), not an -analyser. Analysers are assessment-agnostic signal generators; lenses sit above them. It consumes analysers (via bundle-analyser); it never generates signals. See ADR-0001.

Why trust this design? The position paper sets out the reasoning — automate the observation, keep the judgment human — and the research it rests on (Evidence-Centered Design and sixty years of feature-based assessment research), plus what the tool will never do.

Why "observations, not grades"

LLMs are inconsistent at the precise act of marking. So the lens keeps them off it. The deterministic signals (from analysers) are the anchor; an Observation maps a signal or two to a rubric Criterion with cited evidence, a short narration bound to that evidence, and a coverage (present / partial / absent) — which is "is the evidence there?", derived from thresholds, not a mark. There is deliberately no score/mark/weight field anywhere in the model.

Pipeline

Specification ──draft-rubric (LLM, reviewed)──▶ Rubric (criteria + mapping) + deliverables  [YAML]
Submissions root ──discover──▶ one Submission per subfolder
each Submission folder ──bundle-analyser──▶ Signals
Signals + Criteria + Deliverables ──alignment-check──▶ Observations
                                                         └─▶ cohort triage sheet + per-student reports
lecturer reads observations → assigns marks → writes feedback

assess is folder-dumb: one rubric + one folder of submission subfolders. Group/individual splits and mark-combining are handled outside (pre/post) or by running assess per folder.

Three commands

  • assess — structured rubric + a submissions folder → observations (cohort sheet + per-student reports). Add --llm for evidence-bound narration on each observation (opt-in; needs the [llm] extra + a provider — ANTHROPIC_API_KEY by default, or a local Ollama via ASSESSMENT_LENS_PROVIDER=ollama).
  • draft-rubric — free-form specification → a proposed structured rubric for the lecturer to review/edit before use. LLM-assisted; reads text/markdown directly and .pdf/.docx/.pptx via the [documents] extra.
  • serve — opt-in HTTP API ([serve] extra) so a desktop shell / UI can drive the lens: same /health + /manifest contract as the analysers, role: lens. Binds to 127.0.0.1; set ASSESSMENT_LENS_AUTH_TOKEN to require a bearer token on the assessment routes.

Install

# from PyPI
pip install assessment-lens

# from source (family layout)
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"

# pull the whole analyser stack into the same env (for `assess` to run for real):
uv pip install -e ".[dev,analysers]"

# opt-in LLM features (narration + draft-rubric):
uv pip install -e ".[llm]"     # + export ANTHROPIC_API_KEY=...

assess shells out to the bundle-analyser CLI (it must be on PATH). The [analysers] extra installs it; or point assessment-lens at an environment where it is already installed.

Routing config (one-time, for local CLI use)

assess → bundle-analyser → auto-analyser routes each submission file by extension. auto-analyser's built-in defaults point at HTTP services on localhost:800x — without a config, a local run routes nothing and every file errors with "Cannot connect to localhost:8000". Tell it to call the installed specialists as CLIs instead: write ~/.config/auto-analyser/config.yaml (or a ./auto-analyser.yaml beside where you run from):

analysers:
  document-analyser: { type: cli, command: document-analyser }
  code-analyser: { type: cli, command: code-analyser }
  speech-analyser: { type: cli, command: speech-analyser }
  video-analyser: { type: cli, command: video-analyser }
  image-analyser: { type: cli, command: image-analyser }
  records-analyser: { type: cli, command: records-analyser }
  diagram-analyser: { type: cli, command: diagram-analyser }

List only the members you have installed (each must expose the family contract: a manifest subcommand and <command> <file> --json → JSON on stdout). conversation- and reflection-analyser are explicit-only — they are never auto-routed, so they need no entry. The desktop app writes this config automatically; the CLI is the only surface where it's manual.

Quick start

# 1. author a structured rubric (or start from the example)
cp examples/data-viz-rubric.yaml my-rubric.yaml

# 2. lay out submissions: one subfolder per student/group
#    submissions/alice/{report.pdf,demo.mp4}  submissions/bob/...

# 3. assess (add --llm for narrated observations)
assessment-lens assess my-rubric.yaml submissions/ -o out/
#    -> out/cohort-sheet.csv         (row per submission × criterion, sortable)
#    -> out/reports/<id>.md          (per-student observation sheet, no marks)

# or draft a rubric from a free-form spec, then review/edit it
assessment-lens draft-rubric assignment-brief.md -o my-rubric.yaml

Submissions are analysed sequentially (one bundle-analyser run each), so budget accordingly for large cohorts — e.g. 300 submissions × 30 s ≈ 2.5 h. A submission that fails to analyse is recorded as an error row in the cohort sheet and never aborts the run; re-run just that one with --only <id> once fixed.

Rubric schema (the central contract)

assignment: "Data-Viz Project"
component: individual                 # plain label; assess ignores it
expected_deliverables:
  - id: report
    description: "Written report (~2000 words)"
    accepts: [document]               # content kinds that satisfy it
  - id: demo
    description: "≤5-min recorded demo"
    accepts: [video]
rubric:
  - id: critical-thinking
    description: "Evidence of critical engagement / analysis"
    signals_of_interest: [conversation.critical_thinking, reflection.depth]  # OPTIONAL mapping

signals_of_interest is the signal→criterion mapping, and it's optional. Pinned → deterministic coverage. Blank → alignment-check selects signals at runtime and shows its choice (near-term).

Status

v0.5. Working today:

  • ✅ Rubric load/validate; deliverable reconciliation; submission discovery
  • ✅ assess orchestration + evidence-bound observations + threshold coverage; per-submission fault isolation (one failure never aborts the cohort)
  • ✅ cohort sheet (CSV, spreadsheet-injection-safe) + per-student reports (Markdown)
  • ✅ bundle-analyser integration — verified against the real CLI output schema
  • ✅ LLM narration (assess --llm) — narrate-and-cite, bound to evidence; degrades to empty notes when the [llm] extra/key is missing
  • ✅ multi-provider LLM — Anthropic by default; local Ollama or any OpenAI-compatible endpoint via ASSESSMENT_LENS_PROVIDER
  • ✅ draft-rubric — proposes a rubric from a free-form spec (always review before use)
  • ✅ cohort-relative distinctiveness ([distinctiveness] extra) — three comparison spaces; neutral, never a verdict
  • ✅ serve ([serve] extra) — HTTP face for the desktop shell, optional bearer-token auth via ASSESSMENT_LENS_AUTH_TOKEN
  • 📋 Runtime signal selection when signals_of_interest is blank — deferred

Development

ruff format . && ruff check . && pytest -v

License

MIT — see LICENSE.

Metadata

Release files for assessment-lens 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for assessment-lens 0.5.3
File Size Uploaded Provenance Actions
assessment_lens-0.5.3.tar.gz 203.2 kB Without provenance Details for assessment_lens-0.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for assessment-lens 0.5.3
File Interpreter ABI Platform Actions
assessment_lens-0.5.3-py3-none-any.whl Python 3 none any Details for assessment_lens-0.5.3-py3-none-any.whl

Total release size: 239.2 kB

Release files / assessment_lens-0.5.3.tar.gz

Download URL assessment_lens-0.5.3.tar.gz
Size 203.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6696e3b12231a0e6639339bff517b79d6d249faa1dfde3d684a1f50ef495508a
BLAKE2b-256 checksum
How to use checksums
0937683d9c672b0687b0aaf4be06f4e5d0fa7792a0dc083c6a0d09f516e4eddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Release files / assessment_lens-0.5.3-py3-none-any.whl

Download URL assessment_lens-0.5.3-py3-none-any.whl
Size 36.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f98da45deb5a0582d3841d10b7b022961df6d747c700f00e4fb58b417c6fe60
BLAKE2b-256 checksum
How to use checksums
902ac25070ba7d49aedbf0d15fc6d5e7f445ee9364d1a4e3051096645a7583f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Security for assessment-lens 0.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page