FabConnect Assist: integration copilot

Draft a tool type’s setup from its interface manual, and explain a failed Verify check, for an engineer to review.

FabConnect Assist: drafted by an AI model from the documents and records you provide; review every item before saving. Tested with Qwen3-8B against FabConnect’s simulated tools and sample manuals. It is off until it is enabled on the gateway.

The integration copilot drafts two things in the operator console, and a person reviews and saves:

  • Draft from manual, on the Command Library: an engineer uploads a tool’s SECS/GEM interface manual (PDF or text) for a tool type or one tool. The model drafts the setup: status variables (id, name, units, format), events (CEID, name, the variables its reports carry), alarms (ALID, text, severity where stated), equipment constants (id, name, units, limits) and remote commands (name, parameters, their types and ranges). The engineer accepts, edits or rejects each item, then chooses Save accepted
  • Explain this check, on a failed check in a Verify run: what the check expected, what the frames show the tool did (citing the frames), the likely gap in the tool’s GEM interface, and a question to send the tool’s vendor. It uses the run’s stored evidence only and changes no result

Nothing is saved without a person accepting it. Nothing is ever sent to a tool. FabConnect ships no model: it uses the same model server as the alarm assistant, inside your network.

Turning it on

yaml
assist:
  copilot:
    enabled: true              # default false
    max_upload_bytes: 20971520 # 20 MiB; 64 KiB to 200 MiB
    max_text_bytes: 2097152    # 2 MiB; 64 KiB to 16 MiB
    chunk_tokens: 1000         # 500 to 12000
    max_chunks: 200            # 1 to 500
    max_tokens: 600000         # 10000 to 5000000
    job_timeout: 2h            # 1m to 12h
    max_jobs: 1                # 1 to assist.assistant.max_concurrent - 1
    max_open_drafts: 20        # 1 to 500
  model:
    endpoint: http://127.0.0.1:8081/v1
    name: qwen3-8b

Or set FABCONNECT_ASSIST_COPILOT_ENABLED=true (each key has its FABCONNECT_ASSIST_COPILOT_* variable, for example FABCONNECT_ASSIST_COPILOT_MAX_UPLOAD_BYTES), and restart the gateway. assist.copilot.enabled is independent of assist.assistant.enabled and assist.mcp.enabled, but it needs assist.model.endpoint and assist.model.name: the gateway does not start without them when it is enabled. It needs the database.

The settings

  • assist.copilot.max_upload_bytes: the largest manual accepted; a larger one gets 413 ASSIST_UPLOAD_TOO_LARGE
  • assist.copilot.max_text_bytes: the most extracted text kept for one draft; longer text is cut, and the draft says so
  • assist.copilot.chunk_tokens: the size of one chunk sent to the model, estimated at 4 bytes a token. Keep chunk_tokens plus 5000 below the model server’s context size. About a page (the default) is what was tested: with Qwen3-8B, larger chunks left rows of the manual’s tables out
  • assist.copilot.max_chunks, assist.copilot.max_tokens and assist.copilot.job_timeout: the limits of one job. A job that reaches one stops with the items drafted so far, and the draft says which limit it reached
  • assist.copilot.max_jobs: manual jobs running at once; the others wait as queued. At most assist.assistant.max_concurrent minus 1, so a slot to the model is left for questions; with max_concurrent at 1 a question may wait behind a chunk (the gateway warns), so set it to 2 or more
  • assist.copilot.max_open_drafts: drafts an organisation may have queued, running or not yet reviewed; another upload gets 429 ASSIST_TOO_MANY_DRAFTS before its file is read
  • The gateway reads at most eight upload bodies at once (two per organisation) and parses at most two files at once (one per organisation); past that an upload gets 429 ASSIST_UPLOAD_BUSY: upload again in a moment
  • In an HA group a draft’s state is kept in the database: any gateway takes an upload, the leader runs the jobs, and a cancel, discard or save on any gateway is seen by the job. A job whose gateway stops is marked interrupted by the leader once its heartbeat is about two minutes old, and keeps the items drafted so far, which are stored with each chunk

Where data may go

The model client, assist.model.timeout per request and the endpoint rule are the alarm assistant’s: in release mode assist.model.endpoint must be a loopback or private-network address unless assist.model.allow_external is set. The manual’s text is extracted on the gateway, with no outside service. Extraction offers the model no tools: text in, structured items out.

Sharing the model

A manual job and the assistant’s questions share assist.assistant.max_concurrent. A job takes one slot per chunk, gives it back between chunks, and does not take one while a question is waiting, so people asking questions are not held up by a long manual.

How a draft is checked

  • The gateway checks every drafted item against a schema, drops anything malformed (the draft shows how many, and why), and merges and de-duplicates the rest. Each item keeps the page or section it came from
  • Where a SEDD is bound to the tool type, each item is marked as agreeing with it, differing from it, or not in it (the SEDD import is built from SEMI’s published E172 schema files; not yet checked against the standard text)
  • Where the tool has reported over GEM (a Verify run’s stored discovery), each item is marked as seen or not seen; a kind of item the stored discovery did not read is marked not discovered, which says nothing about the tool. Both checks use stored data only
  • Manual text is untrusted: it can only shape drafted items, which a person reviews, and nothing it produces is acted on automatically

Saving

Save accepted saves the accepted items not yet saved, for the tool type, or for the tool when the draft was for one tool. Each remote command becomes a command in the command library, marked for a second look, with a check-before-sending note. The other items are merged into one Interface dictionary library item, as a new version when it already exists. Saving needs library:write as well as assist:draft. A command the library already holds under that name in the scope is never replaced by default: the review shows it (with its version to a user who may read the library) and the save reports it, to compare in the library. Replace, ticked for that command in the review, saves it as a new version, and the library keeps the earlier ones. A save holds the draft: another save or a review on any gateway waits (409 ASSIST_SAVE_IN_PROGRESS).

The manual text

The extracted text and the drafted items are stored per organisation, capped at max_text_bytes, and deleted when the draft is discarded. Discarding a draft also cancels its job if it is still running. What was saved into the library stays.

Who may draft

Drafting needs the new assist:draft permission. Migration 218 gives it to the built-in engineer role, admin through *; operators and viewers do not have it. Explain this check needs assist:ask and messages:read, and uses the read-only tool get_verify_check. GET /api/v1/assist/copilot answers any signed-in user: whether it is enabled and running and what that user may do, with the label when it is enabled, and the model and limits only to someone who may draft.

Audit

Recorded: assist.copilot.upload, assist.copilot.job_start, assist.copilot.job_end (with counts), assist.copilot.review (each accept or reject batch), assist.copilot.save (with the library’s own library.create and library.update, which keep the saved content’s digest and summary, not the content), assist.copilot.cancel and assist.copilot.discard. Explain this check is one assist.ask record with the feature verify_explain. The manual text and the model’s output are never put in the audit log.

The routes

Under /api/v1/assist/copilot/drafts, all needing assist:draft: upload a manual (POST, multipart, with tool_type or equipment_id), list drafts, read and poll one, its items, cancel, review, save (also library:write) and DELETE to discard. POST /api/v1/assist/verify/runs/{id}/checks/{check}/explain needs assist:ask, and answers 409 ASSIST_CHECK_NOT_FAILED for a check that passed, 429 ASSIST_BUSY when the model is busy, and 503 ASSIST_MODEL_UNAVAILABLE or 504 ASSIST_MODEL_TIMEOUT when the model server is down or slow.

Something missing or wrong on this page? Tell us.