supermemory/apps/docs/concepts
MaheshtheDev 2e0043dbe4 docs: add Container Tags concept page (#1098)
## What & why

The Mintlify docs app didn't have a dedicated page explaining **container tags** — the core concept used everywhere in the Supermemory API. Container tags were only mentioned in passing inside `concepts/filtering.mdx`, so there was no single place a developer could go to understand what they are and how they behave.

This PR adds a `Container Tags` concept page, derived from how the `mono` API actually implements them.

## What the page covers

- **The isolation/namespacing model** — each container tag maps to its own vector namespace (`memoryNamespace` / `chunkNamespace` in `apps/api/src/services/vectordb/namespace.ts`), so retrieval never leaks across tags.
- **Auto-creation** — adding a memory with a new tag auto-creates the backing `space` (upsert on `(container_tag, org_id)`).
- **Naming rules** — `≤ 100` chars, pattern `^[a-zA-Z0-9_:-]+$`, taken straight from `containerTagValidator` in `packages/validation/api.ts`. Notes the colon for hierarchical tags.
- **`containerTag` (current) vs `containerTags` (deprecated array)** — matches the deprecation in the validation schemas and the `/v4` API.
- **Lifecycle usage** — add / search / list / update / delete.
- **Access control** — API key scopes + member container-tag restrictions, and the `403` behavior enforced by `containerTagGate` / `containerTagGuard` (`apps/api/src/lib/auth/container-tag-guard.ts`).
- **Per-container settings** — `name` and `entityContext`, plus merge, from `ContainerTagSettingsSchema`.
- **Recommended naming conventions** — user / project / agent / hierarchical patterns.

## Changes

- Add `apps/docs/concepts/container-tags.mdx`
- Register the page in `apps/docs/docs.json` under the **Concepts** group (before `concepts/filtering`)

## Notes

- Opened as a **draft** for review.
- Validated `docs.json` remains well-formed JSON.
- The existing `concepts/filtering.mdx` is cross-linked rather than duplicated — it keeps the filter-combination examples; this page focuses on the concept itself.

https://claude.ai/code/session_01Xwp8sDZrsQr5mmuRu5TYvX

---
_Generated by [Claude Code](https://claude.ai/code/session_01Xwp8sDZrsQr5mmuRu5TYvX)_
2026-06-11 23:10:52 +00:00
..
container-tags.mdx docs: add Container Tags concept page (#1098) 2026-06-11 23:10:52 +00:00
content-types.mdx docs changes (#678) 2026-01-18 16:55:32 -08:00
customization.mdx docs: add entity context documentation and fix MDX parsing (#723) 2026-02-03 22:53:21 +00:00
filtering.mdx docs changes (#678) 2026-01-18 16:55:32 -08:00
graph-memory.mdx docs changes (#678) 2026-01-18 16:55:32 -08:00
how-it-works.mdx docs changes (#678) 2026-01-18 16:55:32 -08:00
memory-vs-rag.mdx docs changes (#678) 2026-01-18 16:55:32 -08:00
super-rag.mdx docs changes (#678) 2026-01-18 16:55:32 -08:00
user-profiles.mdx docs changes (#678) 2026-01-18 16:55:32 -08:00