Introducing a new way to review your PRs.

Read the announcement

ever-co / ever-gauzy

Ever® Gauzy™ - Open Business Management Platform (ERP/CRM/HRM/ATS/PM) - https://gauzy.co

View on GitHub

27 documents · Updated Nov 23, 2026

docs / collaboration-suite

Collaboration suite

The collaboration suite connects people, shared work, attention, and outside work boards through one platform. Conversations, documents, Inbox items, and live updates keep a common tenant and organization scope so clients can move between discussion, files, tasks, and notices without making separate copies of the work. Inbox attention can also reach people through email and web push when those channels are enabled.

Platform model

The suite is a set of connected platform capabilities rather than one separate store. Each capability owns its records, while shared access, notification, task, document-link, and event services connect the user experience.

Client access

Clients use the same collaboration API to read and change shared records. A document read also tells the client whether the caller may change that document, so a page can open in view-only mode before the person edits it. The web client and other clients can use live delivery when it is enabled, but normal reads and catch-up paths remain the source of truth when a live channel is off or unavailable.

The related page Collaboration plugins and realtime workflows covers plugin boundaries and detailed live-event flows.

References: packages/…/chat-access.service.ts• L18-38 packages/…/realtime-enabled.ts• L1-22 packages/…/realtime.resolver.ts• L26-37 packages/…/get-document.handler.ts• L10-24 packages/…/get-document.handler.spec.ts• L10-45

Capability relationships

The suite links conversations with tasks and files. Documents and task changes can create attention items or live hints. These links let a person open the record that caused a notice instead of working from a detached copy.

The diagram shows the main collaboration surfaces and the paths that connect durable work with attention and live delivery.

flowchart LR
    C[Conversations] --> T[Tasks and comments]
    C --> D[Documents and files]
    T --> N[Inbox and notifications]
    D --> N
    D --> L[Live page sessions]
    C --> O[Event outbox]
    T --> O
    D --> O
    N --> O
    O --> R[Realtime subscriptions]
    O --> W[Workers and webhooks]
    X[Asana, Linear, Trello] <--> T
    X --> N

References: packages/…/chat-message.service.ts• L387-421 packages/…/realtime-hints.service.ts• L143-197 packages/…/document-live.service.ts• L176-209 packages/…/asana-sync.service.ts• L81-87

Collaboration surfaces

The suite gives people several connected ways to work. Each surface serves a different need, but all use the caller's tenant, organization, membership, and access boundaries.

Conversations

Conversations support public or private channels, direct conversations, and groups. Membership controls access, while each member has personal read, mention, favorite, and notification state.

Messages support threads, mentions, reactions, pins, files, and task links. A message can create or reference a task, which turns a discussion into tracked work while keeping the discussion in place.

Direct and group conversations use the same participant set within an organization. A changed group membership breaks that participant identity, so a removed person cannot regain access through an old participant set.

Chat is an optional collaboration capability. When enabled, it also connects conversation work with search, link previews, task services, live updates, and external webhook interactions. Presence starts from employee activity and can use the realtime channel's merged tab state, so the people view can distinguish active, idle, away, and offline users without treating an old report as current.

References: packages/…/chat-conversation.service.ts• L50-62 packages/…/chat-conversation.service.ts• L320-353 packages/…/chat-conversation.service.ts• L641-701 packages/…/chat-presence.ts• L38-56 packages/…/chat-message.service.ts• L98-104 packages/…/chat-message.service.ts• L281-322 packages/…/chat.module.ts• L53-97

App webhooks

App webhooks let outside systems post messages to channels and receive signed callbacks when a person selects an action in an app message. The platform keeps the webhook's history and interaction state so retries do not create duplicate posts or apply one callback more than once.

Incoming posts are bounded by feature state, channel state, payload limits, and rate limits. A webhook secret is shown only when it is created or rotated, while a revoked webhook remains as history but no longer accepts posts or sends callbacks.

References: packages/…/chat-webhook.service.ts• L80-86 packages/…/chat-webhook.service.ts• L222-260 packages/…/chat-webhook.service.ts• L265-328 packages/…/chat-webhook.entity.ts• L5-9 packages/…/chat-webhook-interaction.entity.ts• L5-9

Documents and files

Documents provide pages and files in organization, team, or private spaces. Visibility, ownership, team membership, and shares decide who can read or change a document. A single-document read applies the tenant and organization scope first, hides an unreadable document as not found, and reports canWrite so clients can show a read-only page before a save is refused.

Chat attachments use document links. This makes a file visible from its message and from the conversation's files view while preserving the document's own access rules. Document content changes also use a revision check, so a stale editor cannot silently replace newer work.

A chat composer upload is provisional until a message carries it. The platform can discard an unused upload or sweep it after its lifetime ends, but it keeps a file when a link, share, or message has adopted it. A send that races cleanup is refused so a message cannot point to a removed file.

Documents also support content capture and knowledge use. The platform can receive inbound email and chat attachments, process content for search and AI chat, record document activity, and import or export work in common page and file formats.

Imports turn Markdown vaults or HTML exports into pages and files. Internal links become page mentions or file links when their targets exist, while unsafe or missing targets keep readable text and are counted as unresolved. Export paths preserve the caller's access and use bounded page, file, and image work so a large subtree or asset set is refused or left linked instead of producing a partial or unsafe copy.

Markdown is also a controlled editing path for pages. It preserves stored block identity when the text is unchanged or moved, applies the normal revision and write rules, and refuses an update when comments could no longer be tied to the right repeated block.

References: packages/…/document.entity.ts• L361-378 packages/…/document.entity.ts• L419-423 packages/…/document.service.ts• L224-243 packages/…/document.service.ts• L270-347 packages/…/document.service.ts• L643-731 packages/…/get-document.handler.ts• L10-24 packages/…/get-document.handler.spec.ts• L10-45 packages/…/chat-message.service.ts• L761-843 packages/…/chat-draft-upload.service.ts• L51-82 packages/…/chat-draft-upload.service.ts• L142-160 packages/…/import-content.ts• L166-239 packages/…/import-content.ts• L303-363 packages/…/document-markdown.service.ts• L68-79 packages/…/document-markdown.service.ts• L92-119 packages/…/document-markdown.service.ts• L180-210 packages/…/document-pdf.service.ts• L52-57 packages/…/document-pdf.service.ts• L181-227 packages/…/docs.module.ts• L48-57 packages/…/docs.module.ts• L118-165

Workspace import and knowledge processing

Workspace import turns an uploaded export into a scoped document tree and submits it for background work. The platform checks the archive before it creates records, applies the target space and quota, and reports progress to the initiating user or a Docs manager. A stalled run can resume, while a run that has reached its retry limit fails and cleans up its source archive.

The import and knowledge flow moves work from an archive to searchable and AI-ready document data.

flowchart LR
    A[Workspace archive] --> B[Scope and validate]
    B --> C[Background import]
    C --> D[Create pages and files]
    D --> E[Extract and classify]
    E --> F[Chunk and embed]
    F --> G[Search and AI use]

Knowledge processing uses one stage path in both queue-backed and in-process modes. Bulk import work has lower priority than interactive work, and AI-heavy stages limit each tenant's share of a worker so one large import does not block other tenants. Reprocessing an indexed document continues through the later stages so the search index can replace old content.

The Task automation page explains the task rules that can start work from collaboration events. The Jira integration page explains the Jira-specific form of external work sync.

References: packages/…/document-import.service.ts• L62-73 packages/…/document-import.service.ts• L116-169 packages/…/document-import.service.ts• L209-291 packages/…/docs-queue.service.ts• L42-67 packages/…/docs-queue.service.ts• L128-175 packages/…/docs-queue.service.ts• L178-201 packages/…/docs-processing.worker.ts• L33-52 packages/…/docs-processing.worker.ts• L90-155 packages/…/docs-processing.worker.ts• L157-215

Inbox and notifications

The Inbox is the shared attention feed for items that need notice or action. It combines employee notifications and system notices under a recipient view with read, archive, snooze, and completion state.

Chat mentions, direct messages, group messages, and followed-thread replies create notifications for eligible recipients. Reading a conversation or thread also marks its related notifications read, so chat badges and Inbox state stay aligned. Integration notices use one stable item per connection and can reopen or resolve that item as the connection changes.

Attention can leave the app through email and web push. Delivery applies each person's settings, supports immediate notices and digests, skips push for a focused session, and retries failed sends without changing the Inbox item's own state.

References: packages/…/chat-notifier.service.ts• L41-50 packages/…/chat-notifier.service.ts• L112-119 packages/…/asana-attention.ts• L19-54 packages/…/asana-tenant.service.ts• L203-257 packages/…/inbox-delivery.service.ts• L80-95 packages/…/inbox-delivery.service.ts• L113-155 packages/…/inbox-delivery.service.ts• L292-455

Realtime delivery

Realtime delivery gives connected clients a fast notice that durable work changed. A change hint names the record and action, so the client refreshes the authoritative record through the normal API instead of treating the event as a full record.

The collaboration subscription accepts only declared collaboration event names. Delivery checks the tenant, organization, recipient, and current record access when the event reaches a connection. Chat delivery also checks current membership, so a person who leaves a conversation does not receive later live or replayed events.

After a reconnect, clients use the event outbox for durable catch-up. If retention removed rows before the client's cursor, the response asks the client to resync through normal reads. Presence and typing are short-lived signals sent through pub/sub; they are not replayed. Presence is still stored as employee state so polling can see it.

References: packages/…/realtime.resolver.ts• L26-37 packages/…/realtime.resolver.ts• L52-83 packages/…/realtime-audience.ts• L118-169 packages/…/realtime-catch-up.service.ts• L249-305 packages/…/realtime-signals.service.ts• L31-41 packages/…/chat-realtime-audience.ts• L29-37

Live document editing

Live document editing extends realtime delivery from change hints to shared page sessions. Open editors exchange content edits and cursor state through a live channel, while the stored page remains the durable source. Server, API, and Markdown writes are merged into open sessions so editors do not lose changes that do not overlap.

The page saves edits after a short quiet period and retries a failed save. Access is checked when a session opens and again when page access changes. A session can become read-only or close when the page is locked, too large, over its session limit, or no longer readable.

References: packages/…/document-live.service.ts• L176-209 packages/…/document-live.service.ts• L266-349 packages/…/document-live.service.ts• L352-385 packages/…/document-live.service.ts• L406-485 packages/…/document-live.service.ts• L812-930 packages/…/document-live.service.ts• L943-1065 packages/…/document-live.service.ts• L1178-1225

Work-management integrations

Asana, Linear, and Trello connect external projects, teams, or boards to platform projects and tasks. Each external item maps to one platform task, so repeated imports and webhooks update existing work instead of creating copies.

Imports and webhooks bring external tasks, issues, cards, comments, and attachments into the platform. Platform task changes can go back to the external system when the mapping allows it. A shared baseline detects changes made on both sides and records a conflict for a person to resolve rather than silently losing one side.

The integrations also use the Inbox to report refused credentials. A refused connection pauses its sync paths until someone reconnects, and a later successful connection resolves the same notice.

The Jira integration follows this collaboration model for Jira work. Task creation and follow-up automation are described in Task automation.

The Ever platform integration page explains how collaboration work crosses the Ever platform boundary.

References: packages/…/asana-sync.service.ts• L81-87 packages/…/asana-sync.service.ts• L156-212 packages/…/asana-sync-conflict.service.ts• L74-83 packages/…/linear-sync.service.ts• L86-92 packages/…/trello-sync.service.ts• L81-87 packages/…/linear-attention.ts• L19-54

Shared collaboration flow

Most collaboration actions follow a common path. A scoped write changes the owning record, the platform records an attention or live hint, and other clients refresh the record they can read.

Durable change path

Chat writes append their facts with the main transaction. Task, document, comment, mention, and employee-notification changes produce content-light hints after their source write. This keeps the primary write independent from a fast refresh signal while the event outbox gives durable changes a path to live subscribers and workers.

When a client receives a hint, it reads the named record again. This matters because access can change after the event is written, and because the hint does not carry the record's full content. For documents, that read also returns the current write capability, so the client does not infer edit access from read access.

References: packages/…/chat-realtime.ts• L23-32 packages/…/chat-realtime.ts• L56-89 packages/…/realtime-hints.service.ts• L175-197 packages/…/realtime-catch-up.service.ts• L249-263 packages/…/get-document.handler.ts• L10-24

Webhook interaction path

An app interaction turns a member's button click into a signed callback to the app that posted the message. The platform records one interaction identity, retries temporary delivery failures with that same identity, and applies a returned message update at most once.

The sequence protects both sides of the contract:

  1. The platform checks that the caller can read the app message and that the action still exists.
  2. It records or reuses the click's idempotency key for that caller and message.
  3. It sends a signed callback and keeps retry state when the target is unavailable.
  4. It applies one valid reply and reports the interaction's current state to a repeat request.

References: packages/…/chat-interaction.service.spec.ts• L212-235 packages/…/chat-interaction.service.spec.ts• L265-315 packages/…/chat-interaction.service.spec.ts• L357-466 packages/…/chat-webhook-interaction.entity.ts• L5-9 packages/…/chat-webhook-interaction.entity.ts• L36-59

Attention path

The source creates an Inbox item for each intended recipient. The recipient owns the item's attention state, while the source can mirror only the state it understands. This separates the business record from the person's choice about when to act.

Integration attention follows the same pattern. A token refusal creates or updates one connection notice, retries filing when the Inbox is unavailable, and resolves the notice after a valid connection returns.

After an Inbox item exists, the delivery lane can send it through configured external channels. Its delivery record preserves the decision and retry state, while the in-app item remains the source for read and action state.

References: packages/…/asana-attention.ts• L19-54 packages/…/asana-tenant.service.ts• L245-333 packages/…/chat-notifier.service.ts• L41-50 packages/…/inbox-delivery.service.ts• L113-155 packages/…/inbox-delivery.service.ts• L540-557

External synchronization path

An integration maps an external item to a platform task, applies inbound changes, and records the new shared baseline. A platform task change then follows the reverse mapping when outbound sync is enabled.

The high-level sequence is:

  1. A scheduled import or webhook identifies an external item.
  2. The integration finds or creates its platform task through the stable identity map.
  3. The integration compares the external item with the last shared baseline.
  4. A two-sided change keeps the external value and opens a conflict for review.
  5. A platform task change is sent back through the same mapping when allowed.

References: packages/…/asana-sync.service.ts• L546-610 packages/…/asana-sync-conflict.service.ts• L94-180 packages/…/linear-sync.service.ts• L507-565 packages/…/trello-sync.service.ts• L502-560

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep collaboration event declarations, subscription selection, recipient addressing, and audience checks aligned across the owning plugin and packages/plugins/realtime.
  • Preserve the link contract between chat attachment ids, DocumentLink, and the conversation files view when changing message files.
  • Keep chat draft adoption, discard, expiry cleanup, and document storage ownership aligned so cleanup cannot remove a file that a message carries.
  • Keep document organization scope, visibility, shares, and realtime document audience checks consistent.
  • Keep document read responses, canWrite, and write enforcement aligned so clients do not show an editable page that the next save must reject.
  • Keep notification creation and chat read behavior aligned so the Inbox and chat badges do not drift.
  • Keep chat and document module gates aligned with the capabilities advertised to clients, including webhook, capture, knowledge, and background-processing paths.
  • Keep webhook receive and interaction idempotency aligned with message nonce rules, unique keys, signed callback identity, retry state, and one-time reply application.
  • Keep Inbox channel settings, delivery-row uniqueness, focused-session suppression, read checks, and retry state aligned when changing notification delivery.
  • Keep document import archive checks, target-space rules, quota and knowledge defaults, progress reports, stale recovery, and source-archive cleanup aligned.
  • Keep the document pipeline's queue and inline dispatchers on the same stage path, with stable job identity and a safe fallback when queueing is unavailable.
  • Keep bulk-import priority and per-tenant AI capacity aligned so background work cannot starve interactive document work.
  • Keep document live session access checks, server-write merging, stored revision state, and save recovery aligned across API processes.
  • Keep each integration's identity map, baseline, conflict state, import position, webhook path, and outbound task listener aligned.
  • Keep token attention notices idempotent and tied to the same connection when changing integration error handling.
  • Keep realtime fallback reads and resync behavior available when changing live delivery or retention.
  • Keep import link resolution, document mentions, file links, schema fallback, and export path rules aligned when changing document formats.
  • Keep Markdown and PDF subtree limits, access checks, and bounded asset reads aligned so exports do not leak unreadable content or return partial trees.

Important failure modes

TriggerConsequenceGuard
A client treats document read access as write accessThe person can edit a page before the save is refusedReturn canWrite with the scoped read and open the page in the correct mode
A client receives a live hint but does not refetch the named recordIts view can show stale or unauthorized dataTreat hints as refresh prompts and apply the normal read scope
Chat membership changes after an event is writtenA former member could receive later live or replayed chat dataRecheck current membership at delivery and catch-up
Realtime retention removes rows before a client's cursorThe client cannot rebuild its state from replay aloneAdvance a replay watermark and return resync so the client refetches
A chat draft is purged while a send still names itThe message could point to missing file dataHold the file for the send and refuse the send if cleanup wins
An import archive is unsafe, too large, or has no pageThe import creates no useful workspace and the uploaded archive can remain in storageInspect and bound the archive before creating the import row, then delete refused input
An import stops making progress after its allowed runsThe workspace stays in a false running state and its source archive can remainResume stale work with one conditional claim, then fail and delete the archive when retries end
Queue service is unavailable while a document stage is acceptedThe stage could be lost or leave the document unprocessedDispatch the same pipeline inline and keep the document row as the source of truth
One tenant submits a large importInteractive work from other tenants can wait behind bulk AI workLower import priority and defer AI-heavy stages at the per-tenant cap
A live page loses access or becomes lockedAn open editor could keep reading or writing after its rights changeRecheck access and change the session to read-only or close it
A live save fails during a retry or shutdownRecent edits can remain only in process memoryRetry the save and keep the live state for the next editor when possible
An external item and its platform task both changeOne side could silently overwrite the otherCompare with the shared baseline and record a resolvable conflict
An attachment link is changed without the message attachment listThe conversation files view can show a file that the message does not carryMaintain the message-to-document link contract in one write path
A webhook nonce or interaction key uses the wrong equality rulesA retry can replace a distinct post or a double click can create two callbacksKeep message nonces byte-sensitive where required and keep the interaction unique identity stable across retries
A webhook callback is retried without the original interaction identityThe app can apply one user action more than onceReuse the recorded interaction id and claim the reply before applying it
An Inbox delivery channel is enabled without its sender or device configurationThe in-app item exists but external delivery is skipped or repeatedly failsEnable a channel only when its required sender or subscription service is available
A document queue worker is started without a matching queue hostThe process can fail during startup or document processing can stopKeep document queue and worker gates aligned with the deployment role
An imported link points to a skipped or unsafe targetThe page can contain a dead or unsafe link, or fail to load as a pageResolve only created targets and allowed schemes, keep readable text, and count unresolved links
A document export reads all assets before applying its limitA large export can use excess memory or return a misleading partial copyCheck stored sizes first and bound each read by the remaining page or asset budget

Key files

FileWhy to read it
packages/…/chat-conversation.service.tsConversation types, membership, direct and group identity, and member state
packages/…/chat-message.service.tsMessage, thread, file, task-link, and read-state flows
packages/…/chat-draft-upload.service.tsProvisional chat uploads, adoption, safe cleanup, and storage ownership
packages/…/chat-presence.tsPresence meaning across employee reports and merged realtime state
packages/…/chat.module.tsOptional chat capability and its connections to tasks, search, realtime, previews, and webhooks
packages/…/chat-webhook.service.tsChannel webhook management, receive limits, feature gates, and revocation
packages/…/chat-interaction.service.spec.tsSigned app callbacks, retries, idempotency, and one-time replies
packages/…/chat-message.entity.tsMessage identity and send or webhook nonce contract
packages/…/chat-realtime.tsChat facts and their relation to durable event delivery
packages/…/chat-notifier.service.tsChat-to-notification behavior and read-state alignment
packages/…/document.entity.tsDocument scope, visibility, content revision, and client write capability
packages/…/document.service.tsDocument visibility, sharing boundaries, content changes, and document events
packages/…/get-document.handler.tsSingle-document reads and the read-versus-write capability returned to clients
packages/…/get-document.handler.spec.tsGuarantees for scoped reads and the canWrite response contract
packages/…/docs.module.tsDocument capture, knowledge, import, export, activity, and background-processing capabilities
packages/…/document-import.service.tsWorkspace import scope, archive checks, progress, recovery, and cleanup
packages/…/import-content.tsPage metadata, safe HTML conversion, internal link resolution, and import fallback
packages/…/docs-queue.service.tsQueue and inline dispatch, job identity, retry behavior, and import priority
packages/…/docs-processing.worker.tsKnowledge stages, queue dispatch, and per-tenant AI capacity
packages/…/document-markdown.service.tsAccess-aware Markdown export and update behavior, including subtree limits
packages/…/document-pdf.service.tsAccess-aware PDF export, page limits, cancellation, and image budgets
packages/…/document-live.service.tsShared page sessions, live edits, access changes, persistence, and process relay
packages/…/inbox-delivery.service.tsEmail and web-push delivery decisions, batching, retries, and focused-session behavior
packages/…/realtime.resolver.tsCollaboration subscription boundary and event selection
packages/…/realtime-audience.tsAccess checks for task, document, comment, and plugin events
packages/…/realtime-catch-up.service.tsReconnect replay and resync behavior
packages/…/realtime-hints.service.tsConversion of platform changes into durable refresh hints
packages/…/realtime-signals.service.tsPresence and typing signal behavior
packages/…/asana-sync.service.tsTwo-way external task sync and stable task mapping
packages/…/asana-sync-conflict.service.tsExternal and platform conflict handling
packages/…/linear-sync.service.tsExternal issue and task synchronization model
packages/…/trello-sync.service.tsExternal card and task synchronization model
packages/…/asana-tenant.service.tsConnection health and Inbox attention behavior