AEC metadata (project, drawing, revision, currentSet)

Stamp construction-document facets — project / phase / discipline / spec section / drawing number / revision / currentSet — onto any document. Auto-supersedes prior current revisions.

Updated 2026-04-26

For construction-document workflows, Kodori carries a typed AEC metadata block on every document:

- **project** — your firm-internal project code or name. - **phase** — pre-design / schematic-design / design-development / construction-documents / permitting / bidding / construction / closeout / warranty. - **discipline** — architectural / structural / civil / mechanical / electrical / plumbing / fire-protection / landscape / interiors / general. - **specSection** — CSI MasterFormat or your firm's standard, e.g. "03 30 00". - **drawingNumber** — e.g. "A-101", "S-201". - **revision** — e.g. "0", "A", "B". - **sheet** — sheet number when distinct from drawing number. - **currentSet** — boolean. True for the live revision in active use.

Set fields via the agent ("mark this as A-101 revision B in the current set"), via the document detail page's metadata editor, or programmatically via the setAecMetadata MCP tool / public API.

The currentSet flag is load-bearing. When you mark a revision currentSet=true, every prior live revision of the same project + drawingNumber automatically gets demoted in a single atomic update — so there's exactly one current revision per drawing per project at any time. The agent can answer "what's the current A-101?" without guessing.

Stored as typed jsonb under metadata.aec, so the schema can grow without migrations. Searchable via hybrid search alongside extracted text and other metadata.