Robotic Surgery · 01 / 26

Robotic Surgery: A Nanobot-Assisted Melanoma Excision Platform

A complete, speculative AI (artificial intelligence) platform for nanobot-assisted melanoma removal in which the surgeon is always in command: planning, deterministic safety control, advisory AI, accountability and documentation, with architecture, AI gateway, Databricks, Prisma AIRS, Microsoft Foundry and LangSmith, end to end.

The scenario

Example Surgical (fictional) is a hospital network exploring a future operating room in which microscale surgical assistants, nanobots, help a surgeon trace and remove a melanoma with precise margins, working beside a conventional surgical robot. Melanoma excision depends on clear margins: removing too little risks leaving cancer and a second operation, and removing too much costs healthy tissue. Nothing like this is approved today. The scenario exists to show how such a system could be architected so that AI helps without ever taking control.

The platform plans the excision, keeps every nanobot and arm inside limits the surgeon approved, advises on margins with stated uncertainty, accounts for every nanobot and documents the procedure. Safety-critical control is deterministic and independent of AI. The surgeon decides and confirms every tissue-contacting step. One design rule runs through every page: the surgeon is always in command, and if anything is uncertain the system holds and returns to a safe state.

This is a speculative architecture exercise. Nanobot-assisted surgery is not an approved clinical method, and nothing here is medical advice or describes a real device. The hospital, patients, thresholds, targets and figures are invented. Vendor product names are real; code and configuration are sketches that show the shape of an integration. Check endpoints, parameter names and feature availability against each vendor's current documentation before you build.

Architecture

Architecture of the nanobot-assisted surgery platform Imaging and records feed planning, where an AI margin advisor proposes an outline with uncertainty and the surgeon edits and approves a plan with its geofence. At the surgeon console every command passes a deterministic safety controller that enforces limits, the geofence and an independent stop before anything reaches the robot arms and the nanobots. Localisation and nanobot telemetry feed the advisor and the safety controller. An operating-room copilot, a pathology link and the clinical record support the team. Language-model assistance reaches only documentation through an AI gateway, and clinical systems through a gateway with scopes and audit. PLAN Imaging and records dermoscopy · confocal · EHR Planning margin outline + uncertainty Surgeon approval margins · geofence · signed OPERATE Surgeon console command · confirm Safety controller limits · geofence · stop Robot and nanobots arms · release · retrieval SENSE AND ADVISE Localisation optical · ultrasound Nanobot telemetry position · status · count Margin advisor AI, advisory only ASSIST AND RECORD OR copilot checklists · notes Pathology link margin status Clinical record EHR · device ids · audit PLATFORM AI gateway documentation assist only Clinical systems gateway scopes · audit Lakehouse de-identified · evals propose limits command bounded advise stop deterministic service safety or gateway advisory AI surgeon decision
Five layers: plan, operate, sense and advise, assist and record, and the shared platform. The safety controller sits between every command and the devices, with no AI inside it.

The real-time path from console to devices is deterministic code on certified equipment, with its own stop. AI sits beside it, advising on margins and drafting documents. If every AI component were switched off, the surgeon could still operate with the safety controller enforcing the limits, or convert to conventional surgery.

One procedure, with what happens behind it

A melanoma excision from plan to record. The right-hand column is what the platform does.

StepWhat happensBehind the scenes
PlanA surgeon plans the excision of a melanoma on a patient's back. Imaging is reviewed and the margin advisor proposes an outline with uncertainty bands. The surgeon edits it and approves.The advisor is a validated model running on the hospital's own equipment. Its output is a suggestion with an uncertainty, never an instruction.
PrepareThe nurse loads a sealed batch of 200 nanobots. Their device identifiers are recorded and the safety controller runs its self-test.The count in is recorded against the batch. The stop control and the geofence are tested before the case can proceed.
MapThe surgeon starts mapping. The nanobots work only inside the approved geofence, marking the tumour boundary while localisation shows where each one is.The safety controller checks every command against the geofence and limits in real time, independently of any AI.
AdviseLive imaging disagrees with the plan in one region. The advisor highlights it with its uncertainty and does not act.Advice appears on the surgeon's display. It cannot move a nanobot or an arm.
DecideThe surgeon extends the margin there and confirms the excision. Each tissue-contacting step needs the surgeon's confirmation.Confirmation is a signed, logged act at the console. No AI component can supply it.
RetrieveAfter excision the nanobots are retrieved. The count out is checked by imaging and must equal the count in before the closure checklist unlocks.A mismatch is a hard stop. Closure does not proceed until every unit is accounted for.
RecordThe copilot drafts the operative note. The surgeon corrects and signs it. The specimen goes to pathology with its orientation, and the margin result is later compared with the plan.Language-model assistance is limited to documentation. The pathologist's result is the truth the models are measured against.

The parts, and where each is covered

Planning and margins

An advisory model proposes a margin outline with uncertainty. The surgeon edits, approves and signs the plan and its geofence.

Safety control

A deterministic controller enforces limits, the geofence and an independent stop between every command and the devices.

Nanobot accountability

Every unit is recorded in and must be reconciled out, by imaging, before the case can close.

Documentation and follow-up

A copilot drafts the operative note and checklists, and the pathology link compares margin results with the plan.

Platform

The AI gateway for language-model assistance, a clinical systems gateway, the lakehouse for de-identified data, security scanning and telemetry.

Assurance

Threat model, evaluation plan, governance and runbooks that make it safe to run in a clinical setting.

Design and delivery documents

The documents a clinical safety review, a regulatory review, a security review and a hospital operations team would ask for, each written for this platform.

Requirements and targets

These are the requirements the design was built against. The targets are planning figures for this demo, not measured results and not clinical claims.

AreaRequirementIllustrative target
Surgeon in commandEvery tissue-contacting action needs the surgeon's signed confirmation100% of such actions carry a confirmation; none is supplied by AI
Safe stateAny fault, loss of telemetry or geofence breach holds the devicesHold within 50 ms; safe retraction started immediately
AccountabilityEvery nanobot is recorded in and reconciled out before closure100% of units reconciled; a mismatch is a hard stop
IndependenceA failure of any AI component cannot affect a safety functionVerified by fault injection in every release
Margin qualityAdvisory margins measured against pathologyPositive-margin rate reduced in studies; uncertainty calibrated
FairnessPerformance holds across skin tones, ages and sexesNo unexplained gap beyond the agreed tolerance
DocumentationOperative notes drafted, reviewed and signed by the surgeonDrafting time cut by half; 100% signed by the surgeon
SecurityControl link, telemetry and data protected against tamperingAuthenticated, signed commands; no unscanned model traffic
PrivacyPatient data minimised, masked and de-identified for developmentNo identifiable data in analytics or telemetry tables
AuditEvery plan, command, advice and decision traceableComplete record for 100% of procedures, kept per regulation

Suggested reading order

  1. Business user stories

    Start with who the platform serves and what each of them needs.

  2. ADRs (Architecture Decision Records)

    Read the decisions that set the shape of the platform, starting with the safety ones.

  3. Sequence diagrams

    Follow the key flows step by step across the components.

  4. Diagram gallery

    See the most pertinent diagrams from every page in one place.

  5. Design documents

    Data model, tool contracts, integration map and non-functional requirements.

  6. AI gateway

    See how developers reach language models, for documentation only, through one governed front door.

  7. Databricks

    See where de-identified data, models, serving and evaluation live.

  8. Prisma AIRS

    See how documents, dictation and tool calls are scanned.

  9. Foundry

    See the documentation assistant on Microsoft's agent platform.

  10. LangSmith

    See the documentation workflow on LangGraph with tracing and evaluation.

  11. Telemetry

    See how software and device behaviour is traced and measured, without patient data.

  12. Assurance

    Threat model, evaluation plan and governance: how it is shown to be safe and fair.

  13. Delivery

    Cost model, rollout, agile plan and runbooks for building and running it.

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