Context engine

How UNACI picks the right entries for a task, resolves conflicts and shares reference images.

One task, only what it needs

When an assistant calls get_task_context, UNACI doesn’t send your whole Space. It works in this order:

  1. Authorize. Only the Identity and Spaces in the connection, at its visibility limit, are considered. This happens before anything is decrypted.
  2. Find the project. If the task names one of the connection’s Spaces (or one of its other names), that Space is used for this call. If the name could mean more than one, the assistant is told to ask you. Otherwise the active Space is used.
  3. Read the task. “Draft an email…” is an email task; “image prompt for a banner” is a visual one. Each task type has categories that matter most: communication style for email, brand and visual guidelines for images, technical requirements for code.
  4. Rank. Entries are scored by category and by meaning: how close the entry is to the wording of the task. Meaning works across languages, so an Indonesian task finds English entries.
  5. Resolve. If a Space and your Identity cover the same topic, the Space wins inside that project (resolution).
  6. Send the relevant entries, most important layer first, with a short reason for each, and a receipt for you.

You can see exactly what an assistant would get from Try a task in the app. It records nothing unless you copy the result as a prompt for an app that doesn’t support UNACI.

Visual guidelines and reference images

Each Space has a Visual tab with structured guidance: colour palette, typography, visual style, composition, logo usage and things to avoid. These are normal entries with history.

Logos and reference images (PNG, JPEG, WebP, GIF) are stored encrypted with the Space’s key. For visual tasks, the assistant receives a link to each one that:

  • expires after 15 minutes,
  • works only while the connection is live and still includes that Space,
  • follows the image’s visibility (Shared, Restricted or Private),
  • stops working the moment you delete the image.

Each image fetch leaves a receipt. Whether the image is then used depends on the assistant and the image model it calls.

Measured quality

Measured on testnet on 30 November 2026 with worker/test/engine-eval.mjs: 37 entries across one Identity and three Spaces, 16 tasks in English and Indonesian, each labelled with entries it must include and must not include.

Measure Target Result
Must-have entries returned 95% or more 100%
Tasks that leaked a must-not entry 0 0
Size sent vs. reading everything 40% or less 25%
Server time per task, median / 95th percentile under 1 s at p95 175 ms / 454 ms

Four of the tasks were written after the first calibration to check it on unseen wording. They first scored 87.5%; the miss (“rewrite this paragraph for my thesis”) led to one general fix to how writing and research tasks are read, and they have scored 100% since. Results on your own context will vary; explain: true shows how every entry was scored.

When meaning-based matching isn’t available

If the processing service is busy, or your plan’s daily allowance of meaning-based retrievals is used, assistants still get context ranked by category and wording. The response says "retrieval": "structured" and why.