The quality report says what is wrong, or worth knowing, about a dataset before you publish it, about a release before you train on it, and about a release before you export it for one format or trainer. It is a reading of checks the kernel already makes, not a second validator. Where a rule has a hard guard, the report calls the same function the guard calls, so the two cannot disagree. Everything else is labeled report-only.
The report never changes data and never fixes anything. It adds no refusal of its own: publishing refuses
exactly what its guards refuse, and the report tells you in advance.
A remedy is advice: the fix is made where the work lives (annotating, completing or promoting
batches, editing dataset membership, publishing a schema), through the CLI, REST, MCP or the browser.
from visionset.kernel.services import QualityService
quality = QualityService(workspace)
quality.assess_dataset(dataset.id) # scope "draft": what a publish would freeze right now
quality.assess_release(release.id) # scope "release": the frozen manifest and its media
quality.assess_release(release.id, exporter=exporter, target=target) # scope "target"| Scope | Judges | Reads |
|---|---|---|
draft |
A dataset's live trunk, the set a publish would freeze. | Metadata only. A blob is checked for presence, never decoded or hashed. |
release |
A published release and its frozen manifest. | The manifest and, as verify does, every blob it names. |
target |
A release plus one export format or trainer target. | Everything release reads, plus the rows check_export returns. |
An issue's own scope is where it was found. The report's scope is what was asked.
| Severity | Meaning |
|---|---|
blocking |
A publish or export is refused today, or would fail or produce output that cannot be trusted, until this is dealt with. |
warning |
A known coverage, metadata or export-loss problem. Nothing refuses on it, or refusing takes a consent flag. |
info |
A fact worth knowing, never a defect. |
| Field | Meaning |
|---|---|
code |
A stable UPPER_SNAKE name. The vocabulary is open: a client tolerates a code a later build adds. |
severity, scope |
As above. |
message, remedy |
What was found, and what a person does about it. |
count |
How many things the issue is about. The unit depends on the code: assets, annotations, classes. |
evidence, evidence_total |
At most 20 sorted ids (asset ids, class names, content hashes, class:geometry), and how many there are in all. truncated is true when the list is cut. For UNREVIEWED_WORK the ids come from the subset the publish refusal itself lists (at most 20 batches, at most 20 assets each), not from the globally first 20; count and evidence_total are the exact number of assets. |
guard |
The error code of the hard guard that refuses on this issue, or null when only the report says so. enforced is guard != null. |
consent |
The flag that lets the guarded action go ahead: allow_unreviewed or allow_lossy. Granting it is the responsible person's decision. |
The report itself carries version (currently 1), scope, subject_id (the dataset's or release's
id), format and target for a target report, assets, issues, counts per severity,
class_counts, truncated and limits. It carries no time. Issues are ordered by severity, then
code, then evidence, so equal workspace state gives equal bytes (a release report also reads current batch records, see below), and inserting members in another order gives
the same report. Adding a code does not change version; removing, renaming or re-meaning one does.
One owner per code. A hard guard refuses by itself; report-only means this report is the only place the finding is made, and nothing refuses on it.
| Code | Severity | Found in | Enforced by | Source of the verdict |
|---|---|---|---|---|
DATASET_EMPTY |
blocking | draft | EMPTY_RELEASE on publish |
the trunk is empty |
SCHEMA_MISSING |
blocking | draft | SCHEMA_NOT_FOUND on publish |
the project has no schema |
ANNOTATION_SCHEMA_VIOLATION |
blocking | draft | RELEASE_CONTENT_WOULD_VIOLATE_SCHEMA on publish |
the function publish calls to judge labels against the active schema; evidence is the class names |
MEMBER_EMPTIED_UNDER_OPEN_WORK |
blocking | draft | RELEASE_HAS_DELETED_LABELS on publish, no consent |
the function publish calls; same rule. No consent lifts it: finish the batch, label the assets again, or remove them from the dataset. Evidence is asset ids; the open batch ids are in the publish refusal's detail |
UNREVIEWED_WORK |
blocking | draft | RELEASE_HAS_UNREVIEWED_WORK on publish, consent allow_unreviewed |
the function publish calls; same rule, same cap, and it leaves out work on a member that MEMBER_EMPTIED_UNDER_OPEN_WORK reports. The remedy is to complete or correct the open batches (or re-label or remove the assets). Evidence is asset ids; the open batch ids are in the publish refusal's detail, not in the report |
CALIBRATION_MISSING, CALIBRATION_RESOLUTION_MISMATCH |
blocking | draft | the same codes on publish | building the frozen asset |
MEDIA_MISSING |
blocking | draft, release | report-only | draft: the blob is absent. Release: verify's missing |
MEDIA_CORRUPT |
blocking | release | report-only | verify's corrupt |
MANIFEST_ALTERED |
blocking | release | report-only | verify's manifest_intact; reported alone, since an altered manifest is not worth walking |
RELEASE_CACHE_MISMATCH |
warning | release | report-only | verify's cache_mismatches; a defect in the build, not damage |
UNLABELED_ASSET |
warning | draft, release | report-only | see below |
NO_ANNOTATIONS |
warning | draft, release | report-only | no asset carries an annotation |
CLASS_WITHOUT_EXAMPLES |
warning | draft, release | report-only | a schema class with no annotation, once some other class has any. A draft uses the project's active schema; a release uses the classes its manifest froze |
DUPLICATE_CONTENT |
warning | draft, release | report-only | identical bytes under more than one asset; evidence is the content hash |
ASSET_SIZE_MISSING |
warning | draft, release | report-only | an image with no recorded width or height |
EXPORT_CLASS_DROPPED |
warning | target | LOSSY_EXPORT_NOT_CONSENTED, consent allow_lossy |
the export compatibility rows with status dropped; evidence is class:geometry |
EXPORT_CLASS_DEGRADED |
warning | target | LOSSY_EXPORT_NOT_CONSENTED, consent allow_lossy |
the rows with status degraded |
EXPORT_MODALITY_DROPPED |
warning | target | LOSSY_EXPORT_NOT_CONSENTED, consent allow_lossy |
assets of a modality the format cannot write |
EXPORT_ASSETS_UNTAGGED |
warning | target | report-only | assets a single-tag format receives without a tag |
SPLIT_TOO_FEW_UNITS, SPLIT_EMPTY_FOLD, SPLIT_NO_GROUP_LABELS, SPLIT_PARTIAL_GROUP_LABELS, SPLIT_LABELS_BRIDGED, SPLIT_DUPLICATES_MERGED, SPLIT_CLASS_MISSING_FROM_FOLD, SPLIT_NO_SEQUENCES, SPLIT_UNSEQUENCED_ASSETS, SPLIT_BLOCKS_BRIDGED, SPLIT_SEQUENCE_BOUNDARIES |
warning | release | report-only | the split report's warnings, one issue per code: count is how many warnings carried it, message joins theirs, and SPLIT_EMPTY_FOLD lists the empty fold names as evidence. SPLIT_TOO_FEW_UNITS, SPLIT_PARTIAL_GROUP_LABELS, SPLIT_NO_SEQUENCES, SPLIT_UNSEQUENCED_ASSETS and SPLIT_SEQUENCE_BOUNDARIES carry their own remedy; the rest share one |
SPLIT_NOT_DEFINED |
info | release | report-only | the release was published without a split recipe |
The export rows are mapped, never recomputed: target scope calls the same check_export an export
and its consent dialog call. A dropped class with zero annotations excludes nothing and is not
reported.
A trunk asset with no annotations is not suspect in itself. An asset a person settled as annotated
or accepted with nothing drawn is a reviewed-empty negative sample, and the report never flags it.
UNLABELED_ASSET is an asset with no annotations that no job has settled that way. Assets a batch
skipped never reach the trunk, and removed members are not counted.
A frozen manifest does not record why an asset has no labels, so a release is judged by the same rule against the batch records the workspace holds now. The review state in a release report therefore reflects current batch records, not only the frozen release, and can change between two calls even though the release cannot.
Within one project, identical bytes are one asset, so DUPLICATE_CONTENT fires only on data that
bypassed that rule, such as a hand-built or imported manifest. It is exact-hash only.
| Surface | Draft | Release or target |
|---|---|---|
| SDK | QualityService.assess_dataset(dataset_id) |
QualityService.assess_release(release_id, exporter=, target=) |
| REST | GET /datasets/{id}/quality |
GET /releases/{id}/quality?format=|target= (at most one) |
| CLI | visionset dataset quality -p PROJECT [--json] |
visionset release quality TAG -p PROJECT [--format F | --target T] [--json] |
| MCP | get_quality_report(project) |
get_quality_report(project, tag, target?, format?) |
All four return the same counts, severities and codes for the same state. The CLI exits 0 whenever the report was produced, whatever it found: the counts are the answer, and a non-zero exit means the command itself failed (an unknown release or format, or a usage error).
The browser shows the draft and release reports as a Quality panel in the Dataset section's
rail (see the dataset section): the
counts, each finding's message, remedy and count, whether a guard refuses on it, and a link to the
Overview or Classes where the remedy is made. A release's report is read only when asked, because it
re-reads every blob. The browser has no target report; the Export panel's own preflight reads the
same compatibility rows. It does not list evidence ids.
flowchart LR
Trunk["dataset trunk"]
Guards["publish guards\nempty, schema, emptied members,\nunreviewed work"]
Report["QualityReport"]
Release["release\n(frozen manifest)"]
Verify["verify"]
Rows["export compatibility rows"]
Split["split report"]
Export["export\nconsent: allow_lossy"]
Trunk -->|publish| Guards
Guards -->|passes| Release
Guards -.->|same functions| Report
Verify -.->|read| Report
Rows -.->|mapped| Report
Split -.->|mapped| Report
Release -->|export| Export
Rows --> Export
Trunk -.->|scope draft| Report
Release -.->|scope release, target| Report
Solid arrows act; dotted ones are reads. The report sits beside the guards, not in front of them.
A clean report means no structural problem and none of the known coverage problems was found. It does not mean the labels are right or the dataset is fit to use.
- Whether a label is correct. A box on the wrong object, or the wrong class, is schema-valid.
- Near-duplicates and leakage nobody declared. Only identical bytes are compared, and the split report only keeps declared groups together.
- Label noise and inconsistency between annotators.
- Privacy, licensing or safety of the content.
- Whether the dataset covers the real world. Class counts show what is labeled, not what is missing.
- Bytes in a draft. Draft scope checks that a blob is present; only release scope re-hashes.
- Draft scope is best-effort under concurrent writes. It reads in one transaction but does not take the write lock, so a write landing mid-report can leave it mixing two states. Publish re-checks its own guards under the write lock, so the report can be stale but a publish is never wrongly allowed by it.
- The browser shows the
draftandreleasereports but not atargetreport, and lists no evidence ids; an asset has no address of its own in the app to link to. Evidence is available through the SDK, REST, the CLI and MCP. - Draft scope reads each member's annotations one asset at a time, as
DatasetService.statsdoes. It is metadata only, but not free on a very large trunk. - Evidence is capped at 20 ids per issue.
evidence_totalandcountare exact. - The schema violation check uses the project's active schema; a release is not re-validated against its schema, which publish already did.
- A release whose manifest blob is gone is reported as
MANIFEST_ALTEREDalone.