Skip to main content
Suchi stores replacement history, ingestion lineage, named links, and acquisition sources as different facts: These distinctions keep immutable originals, human metadata, permissions, and retrieval behavior explicit.

Notes on an exact version

The Notes card on Document Detail keeps attributed working context beside one exact file version. A user who can change the document can add a note of up to 16 KiB. Each row shows its author and created or edited time. The author may edit or delete their own note; an administrator may moderate any note. Notes belong to one version. Uploading a replacement starts its Notes card empty, while the earlier version keeps its history. Trash makes the card read-only until restore. The API rechecks both document change permission and note ownership in the write transaction, and records create, update, and delete audit events.

Replacement versions

Open a live document and use Upload replacement to add a newer version. The new upload has its own immutable original, origin, extracted text, processing state, and direct URL. The version history remains available from every visible version. For example, suppose document 120 is Lease agreement — signed 2024. Uploading an amended PDF creates document 184 and records 120 as its predecessor:
Opening #/documents/120 still opens the 2024 file. Documents, ranked Search, Calendar, and Ask your documents normally return 184 instead because it is the newest live version visible to that user. A replacement must extend the latest version. Uploading from an earlier version returns a generic conflict, and only one of two concurrent replacements can win. A trashed newest version still reserves that position until it is restored or permanently deleted. These rules keep replacement history linear instead of silently creating branches; the conflict never identifies a newer version the caller cannot view. Use the query language when the task needs a different view:

What each person sees

If a person can view 120 but not 184, 120 is still their latest visible version. A hidden or trashed newer version never suppresses the older visible row or reveals that another version exists.

What replacement carries forward

Replacement preserves continuity metadata needed to keep the logical document filed and accessible:
  • filing system, owner, category, sensitivity, and title;
  • explicit document ACL grants;
  • tags assigned by a person or deterministic rule;
  • correspondent relationships; and
  • the archive serial number. It moves to the new head and is cleared from the predecessor. A selected folder layout follows only when it uses {{ asn }}.
Version-specific or generated state starts fresh:
  • the immutable original and how it was added;
  • extracted content, detected languages, thumbnails, and processing results;
  • model-added tags and accepted or pending document dates;
  • every custom-field value, including document links;
  • notes; and
  • folder layouts that do not depend on the ASN.
This prevents a new file from silently claiming metadata that described only the older version while preserving the physical label shared by the paper and its current digital revision. Edit exact-version metadata again when it still applies.

Retained email attachments

When Suchi retains an email and extracts its attachments as documents, the Linked documents tab starts with a built-in Email attachments group. The email lists its visible attachment children. A child lists the retained parent first and its visible siblings after it, without listing itself. This relationship comes from ingestion lineage and has no Add, Change, or Remove controls. The group is not a Document link custom field. It does not consume a named link type, create custom-field values, copy to replacement versions, or traverse recursively. Files-only mail intake does not retain a parent and therefore has no built-in family. ACL and Trash rules apply before counts and pages. A hidden attachment is absent from its siblings’ family; when the retained parent is hidden or trashed, the entire child view is empty. Restoring a row makes its unchanged lineage visible again. An administrator first creates a custom field whose type is Document link in Settings > Archive configuration > Metadata > Custom fields. On a document, open Linked documents and choose Add link to select an unused relationship type. Change link searches documents the current user may view; an exact numeric ID or canonical same-instance document URL is also accepted, including URL-encoded links and their filing-system context. Remove link removes the value. Example: an invoice uses the Payment receipt field to point to receipt 312. The receipt detail shows the invoice under Linked documents:
The value always names version 312. If receipt 350 later replaces 312, the invoice still points to 312 and labels it as an earlier version. If invoice 401 replaces 287, the new invoice starts without that link. Suchi never copies, promotes, or retargets a link during replacement. Ordinary custom fields appear in the document metadata card with their declared types. Linked documents shows assigned outgoing values under This document links to and keeps unused link types in the Add link chooser. Outgoing rows use Change link and Remove link. Documents linking to this version is an independently paged list of current values; each row says Linked here as “link type”. These rows are navigation, not a second link stored on the target. A titled document omits its raw numeric ID; Earlier version identifies an older linked file.

Deliberate relationship limits

These limits are intentional. They prevent Versions and Linked documents from becoming two overlapping ways to build an ambiguous document graph:
  • a document cannot link to itself;
  • one version cannot link to another version in its own version history; use Versions for that relationship; and
  • replacement never copies or retargets a link.
Distinct documents may still link in both directions or form a cycle when their named relationships genuinely require it. Suchi shows only the direct outgoing and incoming relationships; it does not recursively expand or treat that cycle as a version family.

Permissions and filing systems

A link write requires permission to change the source and view the live target. A cross-system link additionally requires entry to both filing systems. Reads repeat authorization at both ends:
  • a hidden or trashed target is omitted from the source’s fields;
  • a hidden or trashed source is omitted from Linked documents counts and pages;
  • no hidden ID, title, address, existence flag, or count is returned; and
  • a pasted remote URL is rejected without fetching it.
Visibility changes are therefore reflected immediately without rewriting the stored value.

Typed custom fields

Administrators define fields under Settings > Archive configuration > Metadata > Custom fields. Text, URL, number, monetary, date, yes/no, select, multi-choice, and Document link values use type-specific editors on Document Detail. Select and multi-choice definitions require a non-empty, unique choice list. Once a field has values, its type cannot change; an in-use choice cannot be removed. Adding choices and renaming the field remain safe. Filesystem sidecars may set an existing field by its exact name. The watcher uses the same server-side type validation as the API and writes metadata in the document transaction: an unknown field or invalid value rejects the intake instead of leaving a partially described document. Automations expose named field pickers and the selected field’s real value control.

Find documents by field presence or value

has-field: resolves an exact custom-field name in the selected filing system. It works in Documents, ranked Search, saved Views, Calendar, and Ask your documents:
Use field: when the value matters:
Number, monetary, and date fields support comparisons. Text, URL, select, and multi-choice fields use equality; equality on multi-choice means membership. Document links remain relationship navigation rather than raw-ID search. For ordinary fields, presence means a value is stored. For a Document link, the exact target must also be live and visible to the caller. A hidden, trashed, missing, or purged target behaves as an absent value. Renaming or deleting a field makes a saved query using its old name fail with the normal query error; it never broadens the View. In Views, use Custom field value to save either Has value or Missing value for one field. The control writes the same has-field: query, so opening the View, copying its URL, and using Back/Forward retain one canonical filter.

Trash, restore, and permanent deletion

Trashing a linked target temporarily removes it from outgoing field projection, Linked documents, and positive has-field: matching. The stored value remains, so restoring the same target makes the relationship visible again. Permanent deletion removes every incoming Document link whose exact target is the purged row. Restoring is no longer possible. CAS blobs remain governed by offline garbage collection, independently of the relationship row. Trashing one version does not merge or renumber its history. Live discovery picks the newest remaining version visible to the caller; Trash restores one exact version at a time.

API entry points