Skip to content

About

INTERSECT-style multi-experiment workflow planning (DNA-Lang / OSIRIS)

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

INTERSECT Multi-Experiment Workflow Reference Architecture

Production reference implementation of the ORNL INTERSECT (Interconnected Science Ecosystem) strategic and architectural design patterns:

Sprint 1 — Core Strategic Patterns & ACL Use Case

  1. Multi-Experiment Workflow (MultiExperimentWorkflowController, WorkflowDAG, MultiExperimentWorkflowPlan)
  2. Experiment Control (ExperimentController, ExperimentPlan, SafetyCondition)
  3. Experiment Steering (ExperimentSteeringController, SteeringRule)
  4. Design of Experiments (DoE) (DesignOfExperimentsRunner, DesignOfExperimentsPolicy)
  5. ACL Science Use Case (build_acl_hardware_registry, build_acl_workflow_plan)

Sprint 2 — Microservices, Persistence, Scientific Intelligence & REST/SSE API

  1. INTERSECT Microservices & Event Bus (IntersectEventBus, IntersectMessage, CapabilityServiceAdapter, DistributedHardwareRegistry)
  2. Declarative Blueprint Serialization & Checkpointing (WorkflowBlueprintSerializer, WorkflowCheckpointStore, resume_workflow)
  3. Surrogate Response-Surface DoE, Continuous Safety Watchdog & HITL (ResponseSurfaceDoEOptimizer, ContinuousSafetyWatchdog, HumanInTheLoopGate)
  4. Async HTTP/REST & SSE Telemetry Server (IntersectWorkflowAPIServer)

Sprint 3 — System-of-Systems Federation, Resilience, PROV-O Lineage & Web Dashboard

  1. System-of-Systems (SoS) Federation & Contention Scheduler (FacilityNode, FederatedSystemOfSystemsRouter, ResourceContentionScheduler, SampleChainOfCustodyLedger)
  2. Fault Tolerance, Retry Policies, Circuit Breakers & Digital Twin (ResilientHardwareRegistry, RetryPolicy, InstrumentCircuitBreaker, DeadLetterQueue, DigitalTwinSimulator)
  3. Scientific Data Lineage (W3C PROV-O) & Prometheus Observability (ProvenanceGraphBuilder, ObservabilityCollector, TraceSpan)
  4. Interactive Operational Web Console (render_dashboard_html served at GET /dashboard)

Sprint 4 — Zero-Trust Security, Pareto/MPC Intelligence, IRI HPC Co-Scheduling & Campaigns

  1. Zero-Trust Security, RBAC & Tamper-Evident Cryptographic Ledger (RBACAuthorizer, Principal, Role, Permission, MessageSigner, TamperEvidentAuditChain)
  2. Multi-Objective Pareto DoE & Model Predictive Steering (MPC) (MultiObjectiveParetoDoEOptimizer, ObjectiveSpec, ModelPredictiveSteeringEngine)
  3. IRI Data Plane & HPC Compute Co-Scheduling (DataStagingManager, DataArtifactBlob, HPCComputeFacility, HPCJobSpec, HPCJobResult)
  4. Workflow Static Analyzer & Priority Campaign Scheduler (WorkflowStaticAnalyzer, StaticAnalysisReport, CampaignQueueScheduler, CampaignItem)

Sprint 5 — Hierarchical Sub-Workflows, Online Diagnostics, Contracts/Specs & FAIR RO-Crate

  1. Hierarchical Sub-Workflows & Dynamic Conditional Branching (SubWorkflowCompositeRunner, ConditionalBranchSpec, DynamicBranchingWorkflowController)
  2. Online Digital Twin Assimilation, CUSUM Drift & Root-Cause Diagnostics (OnlineDigitalTwinCalibrator, CUSUMDriftDetector, RootCauseDiagnosticsEngine)
  3. INTERSECT Capability Contracts & OpenAPI 3.1 / AsyncAPI 2.6 Generator (CapabilityContractRegistry, CapabilityContract, ParameterSchema, SpecGenerator)
  4. FAIR Research Object Crate (RO-Crate 1.1) & Reproducibility Verifier (ROCrateExporter, ReproducibilityVerifier, ReproducibilityReport)

Sprint 6 — Multi-Agent Swarm, Green Chemistry Sustainability, Protocol Bridges & Time-Travel

  1. Multi-Agent Autonomous Scientific Swarm & Blackboard (SwarmCoordinator, ScientificBlackboard, SynthesisChemistAgent, AnalyticalSpectroscopistAgent, SafetyComplianceAgent)
  2. Consumables Inventory Ledger & Green Chemistry Accountant (LaboratoryInventoryLedger, GreenChemistryAccountant, GreenChemistryReport)
  3. National Lab Hardware Protocol Bridges (EPICS, OPC-UA & SiLA 2) (EPICSChannelAccessBridge, OPCUAIndustrialBridge, SiLA2LaboratoryBridge, ProtocolBridgedHardwareRegistry)
  4. Time-Travel Debugger, Counterfactual Simulator & Blueprint Versioning (WorkflowVersionRepository, ExecutionTimeTravelDebugger, CounterfactualWhatIfSimulator)

Sprint 7 — Intent Compiler, Bayesian GP Active Learning, Edge Stream QoS & Manuscript Generator

  1. Scientific Intent-to-Workflow Compiler & Declarative DSL (IntentWorkflowCompiler, CompiledIntentReport, IntentStageNode)
  2. Bayesian Gaussian Process (GP) Active Learning & Phase-Space Discovery (GaussianProcessActiveLearner, AcquisitionStrategy, GPPosteriorPrediction)
  3. Edge-to-Cloud Streaming Telemetry Compression & QoS Backpressure (AdaptiveTelemetryStreamProcessor, QoSPriority, WindowAggregateStats)
  4. Automated Scientific Manuscript (Markdown/LaTeX) & Compliance Dossier Generator (ScientificPublicationGenerator, ScientificDossier)

Sprint 8 — Formal LTL/Petri-Net Verification, 3D Robotics, Co-Kriging & Cloud-Native Benchmarks

  1. Formal Verification, LTL Safety Model Checker & Petri-Net Deadlock Analyzer (TemporalLogicModelChecker, PetriNetWorkflowAnalyzer, LTLPropertyResult, PetriNetAnalysisReport)
  2. 3D Spatial Robotics Path Planner & 6-DOF Inverse Kinematics (LabSpatialPathPlanner, Point3D, ObstacleBox3D, RoboticTrajectoryReport)
  3. Multi-Fidelity Simulation-to-Experiment Co-Kriging Transfer Learning (MultiFidelityCoKrigingOptimizer, FidelitySample)
  4. Cloud-Native K8s CRD/Docker-Compose Manifests & SoS Benchmark Suite (DeploymentManifestGenerator, SystemOfSystemsBenchmarkSuite, BenchmarkMetricsReport)

REST, SSE, Provenance, Security, Campaign, FAIR & Swarm Endpoints (IntersectWorkflowAPIServer)

Method & Path Description
GET /dashboard Interactive HTML5/SVG Operational Console with DAG topology, Digital Twin controls, and live telemetry
GET /health Service status, registered capability IDs, event bus message count, DLQ count, audit blocks, and wire frames
GET /openapi.json & /asyncapi.json Live OpenAPI 3.1.0 REST specification and AsyncAPI 2.6.0 EventBus channel specification
GET /contracts Registered JSON-Schema capability contracts across Instruments, Robots, Actuators, and Sensors
GET /metrics Prometheus text exposition metrics (intersect_workflows_total, intersect_protocol_wire_frames_total, etc.)
POST /analyze Run static pre-flight verification & critical-path duration estimation on a workflow blueprint
POST /swarm/negotiate Run Multi-Agent Scientific Swarm negotiation & safety vetting on workflow parameters
POST /workflows Execute the ACL template ({"use_acl_template": true}) or a declarative JSON blueprint
GET /workflows/{run_id} Retrieve full provenance and telemetry audit record for run_id
POST /workflows/{run_id}/resume Resume a checkpointed workflow run, skipping already completed upstream vertices
POST /workflows/emergency-stop Trigger immediate emergency stop interlock across all actuators
POST /campaigns & GET /campaigns/{id} Submit and inspect priority-ordered multi-workflow screening campaigns
GET /sustainability/{run_id} & /inventory Compute Green Chemistry E-Factor, PMI, RME %, $\text{CO}_2\text{e}$, cost & inspect reagent inventory
GET /protocols/frames Inspect translated EPICS PV (caput/camonitor), OPC-UA NodeId, and SiLA 2 wire frames
POST /versions/commit, GET /versions, POST /versions/diff Git-style workflow blueprint version control and semantic diffing
GET /debugger/{run_id} Step-by-step time-travel execution timeline & state seek (?step=N)
POST /what-if/simulate Execute side-by-side counterfactual scenario simulations and rank by composite utility
GET /diagnostics/{run_id} Retrieve Kalman Digital Twin calibration, CUSUM drift alerts, and causal fault-tree root-cause diagnosis
GET /rocrate/{run_id} Export FAIR RO-Crate 1.1 JSON-LD package with W3C PROV-O, custody ledger, and SHA-256 outcome digest
POST /reproducibility/verify Replay a workflow run on a fresh hardware registry and certify deterministic reproducibility
GET /ledger/verify Verify SHA-256 tamper-evident cryptographic audit chain integrity
POST /iri/stage & POST /iri/hpc-job Stage content-addressable datasets (intersect://staging/.../sha256/...) and submit co-scheduled HPC jobs
GET /provenance/{run_id} Retrieve W3C PROV-O JSON-LD lineage document and Mermaid diagram
GET /custody/{sample_id} Retrieve physical sample chain-of-custody ledger (creation, aliquot splits, archival)
GET /resources/leases Inspect active and historical mutex resource contention leases
GET /dlq & POST /dlq/replay Inspect and replay failed Dead-Letter Queue actions
POST /digital-twin/inject & /reset Inject or clear transient hardware faults and sensor drift anomalies
POST /approvals/{action_id} Submit Human-in-the-Loop operator approval/rejection and parameter overrides
GET /events & GET /events/stream Query or stream real-time Server-Sent Events (text/event-stream) from IntersectEventBus

Signing Key Configuration

All HMAC signing and verification requires a key supplied either per call or through the INTERSECT_SIGNING_KEY environment variable. There is deliberately no built-in default. Every entry point previously defaulted to a literal key that shipped in this source tree, which meant anyone able to read the repository could re-sign a tampered receipt or capsule and have it verify — a valid signature proved nothing. A missing key now raises SigningKeyNotConfiguredError instead of silently substituting a constant.

export INTERSECT_SIGNING_KEY='<operator-held key>'     # bash
$env:INTERSECT_SIGNING_KEY = '<operator-held key>'     # PowerShell

Verifying the committed reproducibility package

The artifacts under reproducibility/ were signed before this change, using the former built-in key. To verify them as published, set that value explicitly:

INTERSECT_SIGNING_KEY='intersect-sos-default-hmac-key' \
  python -c "import json; from intersect_workflow.workflow_capsule import WorkflowCapsule; \
  from intersect_workflow.security import verify_capsule_integrity; \
  print(verify_capsule_integrity(WorkflowCapsule.from_dict(json.load(open('reproducibility/capsule.json')))))"

Note what that signature does and does not establish. An HMAC is symmetric, so a signature over a publicly distributed artifact, made with a key that is also public, demonstrates only that the bytes have not been corrupted — it cannot demonstrate who produced them, because any reader can recompute it. For the committed package the meaningful integrity evidence is the SHA-256 chain (capsule_sha256, the Tierkreis graph digest, the artifact manifest and the audit chain), which is what verify_capsule_integrity checks alongside the signature. Treat INTERSECT_SIGNING_KEY as a real secret only for capsules you generate and do not publish; publishing the key alongside the capsule reduces the signature to a checksum.

Quick Start

Run the Complete Test Suite (Sprints 1–6)

$env:PYTHONPATH = "src"
python -m unittest discover -s tests -v

Run the Automated Chemical Lab (ACL) Workflow Demo

$env:PYTHONPATH = "src"
python -m intersect_workflow.cli

About

INTERSECT-style multi-experiment workflow planning (DNA-Lang / OSIRIS)

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages