---
title: Atom classification
description: Follow a plugin match through resolution and the canonical classification envelope. Decide which fields belong in a publishable representation.
url: https://docs.intuition.systems/docs/concepts/atom-classification
markdown_url: https://docs.intuition.systems/docs/concepts/atom-classification.md
version: V2
llms_index: https://docs.intuition.systems/llms.txt
kind: concept
reader:
  - app
  - plugin
packages:
  - '@0xintuition/atom-classification@0.1.1'
depends_on:
  - https://docs.intuition.systems/docs/concepts/atom-parsing.md
  - https://docs.intuition.systems/docs/concepts/classifications.md
---

Atom classification interprets an input using plugins. A classifier recognizes a pattern, such as a tagged term or a service URL. An eligible resolver can then describe the entity and the evidence for its type. A type match may tell you how to display an input while leaving the identity of a particular recording or artist unresolved.

**Builds on:** [Atom parsing](https://docs.intuition.systems/docs/concepts/atom-parsing), [Classifications and Creation Profiles](https://docs.intuition.systems/docs/concepts/classifications).

**Implemented by:** [@0xintuition/atom-classification](https://docs.intuition.systems/docs/reference/packages/atom-classification).

## How it works

A classifier matches the input. The engine selects an eligible resolver for the match and execution mode. For a local resolver to run in `client-only` mode, declare its `executionMode` as `deterministic` and implement it with local data. Register any type the resolver emits. [Classification README](https://github.com/0xIntuition/packages/blob/ccae0f0d0277cddd8490b72c49d3771866e7ffea/packages/atom-classification/README.md), [plugin authoring](https://github.com/0xIntuition/packages/blob/ccae0f0d0277cddd8490b72c49d3771866e7ffea/packages/atom-classification/docs/plugin-authoring.md), [resolver eligibility](https://github.com/0xIntuition/packages/blob/ccae0f0d0277cddd8490b72c49d3771866e7ffea/packages/atom-classification/src/engine.ts).

When resolution succeeds, `resolved.classifications` contains canonical envelopes. Each has a `type`, its `data`, and `meta` identifying the plugin, provider, and fetch time. `resolved.publishable` projects the fields eligible for publication. Identity fields are eligible by default, richer public fields depend on their source policy, and volatile fields stay out. The application still chooses the representation and whether to publish it. [Canonical output contract](https://github.com/0xIntuition/packages/blob/ccae0f0d0277cddd8490b72c49d3771866e7ffea/packages/atom-classification/docs/canonical-output-contract.md).

## Atom classification - Example

The local plugin in [Write a classification plugin](https://docs.intuition.systems/docs/core/classification-plugin) recognizes the prefix in `idea: semantic grounding`. Its classifier recognizes an idea with a nonempty name. Its deterministic resolver trims the text after the prefix and emits a registered `DefinedTerm` whose `data.name` is `semantic grounding`. An app can now show the term using the canonical result and inspect the publishable projection before preparing atom bytes.

Compare the title `One More Time` in the [catalog example](https://docs.intuition.systems/docs/build/classify-enrich). The plain-text plugin can interpret it as a `Thing`. The title alone gives the app no basis for selecting a particular recording IID.

## Common mistakes

- Reading `resolved.atoms` as the canonical contract. That array is a compatibility projection. Read the canonical envelopes and their metadata when evaluating evidence.
- Assuming a matching classifier guarantees a usable resolver result. Check for a resolved envelope and a usable type before handing data to enrichment.
- Marking a resolver deterministic while it calls a provider. Keep network-dependent resolution in a suitable server mode.

## Next

[Enrichment](https://docs.intuition.systems/docs/concepts/enrichment) uses classification and identifier hints to gather provider evidence. [Atom runtime and pipelines](https://docs.intuition.systems/docs/concepts/atom-runtime) shows how to reuse engines and bound their work.

Applies to V2 · `@0xintuition/atom-classification` 0.1.1
