Robotic Surgery · 03 / 26

Architecture Decisions for the Robotic Surgery Platform

The overall decisions behind the robotic surgery platform, recorded as ADRs (Architecture Decision Records): context, decision, consequences and alternatives.

How the decisions are recorded

Each decision is an architecture decision record (ADR): a short, dated document with its status, the context that forced the choice, the decision, the consequences and the alternatives rejected. These records cover the whole platform. The first four are the safety decisions the rest depend on.

Decision log

ADRDecisionStatusDate
ADR-001Safety-critical control is deterministic and independent of AI (artificial intelligence); AI is advisoryAccepted2026-09-02
ADR-002The surgeon is always in command: every tissue-contacting action needs the surgeon's signed confirmationAccepted2026-09-04
ADR-003Fail safe: any fault holds the devices and starts a safe retractionAccepted2026-09-07
ADR-004Every nanobot is accounted for: the count in must equal the count out before closureAccepted2026-09-10
ADR-005Language models are used only for documentation and are reached through one AI gatewayAccepted2026-09-14
ADR-006Prisma AIRS scans documents, dictation and tool calls; writes fail closedAccepted2026-09-18
ADR-007Databricks holds de-identified data and models, governed by Unity CatalogAccepted2026-09-21
ADR-008Margins: AI suggests with uncertainty, the surgeon decides and pathology is the referenceAccepted2026-09-25
ADR-009Release under design controls and change control, with subgroup and fault-injection gatesAccepted2026-09-30
ADR-010Patient data is minimised, de-identified for development and used for research only with consentAccepted2026-10-04
ADR-011Consider supervised autonomy for tracing within a surgeon-set geofenceProposed2026-11-12

Status values: Proposed, Accepted, Superseded. Dates are the day the status last changed.

The records

ADR-001 Accepted

Safety-critical control is deterministic and independent of AI; AI is advisory

Context
Moving instruments and nanobots near living tissue is a safety function. Models are probabilistic, can be wrong in ways that are hard to predict and are changed more often than certified control code.
Decision
The path from console to devices is deterministic software on certified equipment, with limits, a geofence and an independent stop. No machine-learning component is inside that path or can be a dependency of it. Models advise and draft. A failure, restart or update of any AI component cannot change a safety function.
Consequences
  • Safety behaviour is reproducible, analysable and certifiable.
  • AI components can be improved without re-certifying the control path.
  • Advice cannot be in the loop at control speed, by design.
Alternatives considered
  • A learned controller for tracing margins (rejected: cannot be analysed to the standard required)
  • No AI at all (rejected: margin advice and documentation are valuable and can be made safe as advice)
ADR-002 Accepted

The surgeon is always in command: every tissue-contacting action needs the surgeon's signed confirmation

Context
The surgeon is responsible for the patient. Autonomous tissue action by software would remove that responsibility and is not acceptable.
Decision
Every action that contacts tissue is initiated and confirmed by the surgeon at the console. The approved plan and geofence define where the system may work, and the safety controller refuses anything outside them. No AI component can supply a confirmation.
Consequences
  • Responsibility stays with a person.
  • Some advice cannot speed the procedure beyond the surgeon's pace.
  • Confirmations are logged for audit.
Alternatives considered
  • Supervised autonomy for routine steps (rejected for now: needs clinical evidence; see ADR-011)
ADR-003 Accepted

Fail safe: any fault holds the devices and starts a safe retraction

Context
Faults happen: telemetry drops, links fail, sensors disagree. The safe response must be automatic and fast.
Decision
On loss of telemetry, a geofence breach, a controller fault or an independent stop, the safety controller holds all devices within the safe-state time and starts safe retraction. The surgeon is told what happened and decides next steps, including conversion to conventional surgery.
Consequences
  • The patient is protected without waiting for a person.
  • A hold interrupts the procedure, so thresholds must be tuned against false stops.
  • Every hold is recorded and reviewed.
Alternatives considered
  • Continue on a degraded sensor (rejected: unsafe)
  • Stop and wait for a person only (rejected: the hold must be automatic)
ADR-004 Accepted

Every nanobot is accounted for: the count in must equal the count out before closure

Context
A unit left behind is a serious harm. Accountability must be a hard control, not a habit.
Decision
Each batch and unit has a device identifier. Units are recorded in before release and verified out by imaging after retrieval. The closure checklist cannot complete until the counts reconcile or a documented escalation is signed by the surgeon.
Consequences
  • No case closes with an unaccounted unit.
  • Retrieval verification adds time to the procedure.
  • Batch traceability supports recalls.
Alternatives considered
  • Count by the team only (rejected: single point of human error)
  • Accept a tolerance (rejected: no tolerance is acceptable for units left in the patient)
ADR-005 Accepted

Language models are used only for documentation and are reached through one AI gateway

Context
Documentation and summaries save the team time. They carry no real-time duty and handle sensitive text.
Decision
Language models draft operative notes, checklists wording, patient summaries and follow-up text. They reach those through a single enterprise AI gateway with budgets, guardrails and logging. They never receive control commands, never see raw imaging unless needed and never write to the clinical record without a signed approval.
Consequences
  • The language-model risk surface is small and governed.
  • One place to change a model or provider.
  • Drafts always need a clinician's review.
Alternatives considered
  • Direct provider SDKs (Software Development Kits) (rejected: no shared controls)
  • Language models in the intraoperative loop (rejected: ADR-001)
ADR-006 Accepted

Prisma AIRS scans documents, dictation and tool calls; writes fail closed

Context
Records, dictated notes and referral letters are untrusted text a model will read. Hidden instructions could try to alter a note or leak patient data.
Decision
Runtime scanning sits on the gateway path and at the tool boundary for the language-model components. If scanning is unavailable, AI-drafted text is not written to any record and the team documents manually. This has no effect on the control path.
Consequences
  • Detection is consistent across components.
  • A scanning outage slows documentation, never surgery.
  • The control path is out of scope for this scanner.
Alternatives considered
  • Prompt-only defences (rejected: not enforceable)
ADR-007 Accepted

Databricks holds de-identified data and models, governed by Unity Catalog

Context
Imaging, outcomes and device telemetry are needed to train, validate and monitor models, and they are sensitive.
Decision
Identifiable data stays in the clinical record. De-identified imaging, outcomes and telemetry go to Delta tables under Unity Catalog with masks and row filters. Models are trained, validated and registered with MLflow, deployed to the edge by a gated process, and every version is traceable to its data.
Consequences
  • One lineage and access model for data and models.
  • De-identification quality becomes a controlled step.
  • Edge deployment of models needs its own verification.
Alternatives considered
  • Train on identifiable data in place (rejected: unnecessary exposure)
ADR-008 Accepted

Margins: AI suggests with uncertainty, the surgeon decides and pathology is the reference

Context
Margin quality is measured by pathology. An unvalidated model must not be mistaken for the truth.
Decision
The advisor proposes outlines with calibrated uncertainty and shows its evidence. The surgeon edits and approves. Pathology results are recorded and compared with the advice to measure the model. Performance is reported with confidence intervals and by subgroup.
Consequences
  • Models are held to a clear external reference.
  • Pathology turnaround limits the feedback loop.
  • Uncertainty must be calibrated and shown honestly.
Alternatives considered
  • Treat model output as the margin (rejected: removes the surgeon's judgement and the reference)
ADR-009 Accepted

Release under design controls and change control, with subgroup and fault-injection gates

Context
Changes to a device and its software must be controlled, and melanoma imaging models can perform differently across skin tones.
Decision
Every change follows design controls and a predetermined change plan where applicable, and runs offline evaluation, subgroup performance checks (including skin tone) and fault injection before release. Thresholds on safety, accuracy, fairness and independence must be met. Clinical evaluation is separate and follows ethics and regulatory approval.
Consequences
  • Regressions and bias are caught before clinical use.
  • Release cadence is slower than in ordinary software.
  • Evidence is traceable for regulators.
Alternatives considered
  • Continuous deployment of model changes (rejected: not appropriate for a safety-critical device)
ADR-010 Accepted

Patient data is minimised, de-identified for development and used for research only with consent

Context
Patient images and records are among the most sensitive data there are.
Decision
Send a model only what a step needs, mask by role, keep telemetry free of identity and use de-identified data for development. Research use needs consent and ethics approval, and deletion requests are honoured within the limits of record-keeping law.
Consequences
  • Lower exposure in logs, evaluations and vendor tools.
  • De-identification costs effort and may limit some analyses.
  • Some device records must be retained for the regulated period.
Alternatives considered
  • Use identifiable data for development (rejected: unnecessary risk)
ADR-011 Proposed

Consider supervised autonomy for tracing within a surgeon-set geofence

Context
Some steps, such as tracing a boundary the surgeon has already approved, are repetitive and might be done more steadily by the system.
Decision
Proposed: allow the system to perform a tracing motion automatically inside the approved geofence while the surgeon holds a continuous enabling control and can stop at once. Not accepted: this needs a hazard analysis, bench and pre-clinical evidence, ethics approval and regulatory agreement before any clinical use.
Consequences
  • Could reduce fatigue and tremor effects.
  • Moves the design closer to autonomy, so evidence must be strong.
  • Pending hazard analysis and pre-clinical results.
Alternatives considered
  • Keep every motion surgeon-driven (current position: safest, but gives up possible steadiness)

The principles behind them

Surgeon in command

A person decides and confirms every action that contacts tissue. Software enforces limits and never supplies a decision.

Safety is deterministic

Anything that moves a device is analysable code on certified equipment, with an independent stop, and no AI inside it.

Fail safe

When anything is uncertain the system holds and returns to a safe state, and the surgeon decides what comes next.

Account for everything

Every device unit is recorded in and verified out, and every plan, command and decision is traceable.

Build this for your business

This example is speculative and not an approved device, but the same pattern, deterministic safety for every hard duty, a governed gateway, runtime security, advisory-only AI and measured quality, fits any safety-critical service. We can scope a pilot on your own systems.

Book a discovery call