# ccyydd/tactalent architecture

> Architecture diagram of the GitHub repository ccyydd/tactalent, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ccyydd/tactalent
- Repository: https://github.com/ccyydd/tactalent

## Overview

TacTalent integrates UniVTAC and OpenViTac with RoboICL for few-shot, closed-loop visuotactile manipulation. The main workflow prepares and verifies demonstrations, builds reference banks, runs benchmark episodes through a policy and robot controller, and records results for review. The README also documents multi-task suites and video review. Some benchmark and preparation implementations were not sampled, so those subsystem links are limited to documented or indexed relationships.

Main entry points: [`src/tactalent/roboicl/run.py`](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/run.py) (Episode runner), [`src/tactalent/cli.py`](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/cli.py) (Command interface), [`src/tactalent/_vendor/RoboICL/roboicl/policy/dialogue_policy.py`](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/policy/dialogue_policy.py) (Astra dialogue policy), [`src/tactalent/roboicl/policy.py`](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/policy.py) (Policy adapter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Preparation and evaluation"]
  node_cli["Command interface<br/>[cli.py]"]
  node_runtime["Runtime setup<br/>[runtime.py]"]
  node_demo["Demonstration prep<br/>[demonstrations.py]"]
  node_reference_prep["Reference preparation<br/>[prepare_bank.py]"]
  node_suite["Evaluation suite<br/>[suite.py]"]
  node_run["Episode runner<br/>[run.py]"]
end

subgraph group_policy["Policy and references"]
  node_vendor_config["RoboICL configuration<br/>[config.py]"]
  node_vendor_paths["RoboICL paths<br/>[paths.py]"]
  node_policy_adapter["Policy adapter<br/>[policy.py]"]
  node_dialogue["Astra dialogue policy<br/>[dialogue_policy.py]"]
  node_policy_core["Policy safeguards and memory"]
  node_image_input["Image encoding"]
  node_training_checks["Training verification"]
  node_reference_bundle["Training reference bundles"]
  node_reference["Reference loading<br/>[reference.py]"]
end

subgraph group_robot["Benchmark and robot"]
  node_benchmarks["Benchmark profiles<br/>[benchmarks.py]"]
  node_environment["Native environment<br/>[environment.py]"]
  node_observations["Observation assembly<br/>[observations.py]"]
  node_controller["Action controller<br/>[controller.py]"]
  node_robot_state["Robot state and IK<br/>[state.py]"]
  node_transforms["Pose transforms<br/>[transforms.py]"]
end

subgraph group_results["Results and review"]
  node_storage[("Output storage<br/>[storage.py]")]
  node_checkpoint["Episode checkpoints<br/>[checkpoint.py]"]
  node_review["Video review<br/>[video_review.py]"]
  node_review_batch["Review batch<br/>[review_batch.py]"]
end

node_user(("Engineer"))
node_provider{{"Responses API"}}

node_user -->|"invokes"| node_cli
node_cli -->|"dispatches"| node_runtime
node_cli -->|"lists tasks"| node_benchmarks
node_cli -.->|"prepares"| node_demo
node_cli -.->|"starts suite"| node_suite
node_suite -.->|"runs episodes"| node_run
node_run -->|"selects profile"| node_benchmarks
node_run -->|"uses environment"| node_environment
node_run -->|"reads observations"| node_observations
node_run -->|"requests actions"| node_policy_adapter
node_run -->|"executes actions"| node_controller
node_run -->|"records episode"| node_checkpoint
node_run -->|"writes outputs"| node_storage
node_environment -->|"loads profile"| node_benchmarks
node_environment -->|"builds inputs"| node_observations
node_controller -->|"observes state"| node_robot_state
node_controller -->|"uses transforms"| node_transforms
node_robot_state -->|"uses transforms"| node_transforms
node_policy_adapter -->|"loads references"| node_reference
node_policy_adapter -->|"configures policy"| node_dialogue
node_dialogue -->|"uses policy helpers"| node_policy_core
node_dialogue -->|"verifies sources"| node_training_checks
node_dialogue -.->|"sends requests"| node_provider
node_policy_core -->|"encodes images"| node_image_input
node_reference_prep -.->|"builds bundles"| node_reference_bundle
node_reference_bundle -->|"checks sources"| node_training_checks
node_reference_bundle -->|"validates images"| node_image_input
node_reference -->|"uses configuration"| node_vendor_config
node_vendor_config -->|"uses paths"| node_vendor_paths
node_review_batch -->|"renders reviews"| node_review
node_review_batch -->|"reads artifacts"| node_storage
node_review -->|"reads episode data"| node_storage

click node_cli "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/cli.py"
click node_runtime "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/runtime.py"
click node_demo "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/demonstrations.py"
click node_reference_prep "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/prepare_bank.py"
click node_suite "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/suite.py"
click node_run "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/run.py"
click node_benchmarks "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/benchmarks.py"
click node_environment "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/environment.py"
click node_observations "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/observations.py"
click node_controller "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/controller.py"
click node_robot_state "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/robot/state.py"
click node_transforms "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/robot/transforms.py"
click node_vendor_config "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/config.py"
click node_vendor_paths "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/paths.py"
click node_policy_adapter "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/policy.py"
click node_dialogue "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/policy/dialogue_policy.py"
click node_policy_core "https://github.com/ccyydd/tactalent/tree/main/src/tactalent/_vendor/RoboICL/roboicl/policy"
click node_image_input "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/policy/observation_images.py"
click node_training_checks "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/policy/train_reference_checks.py"
click node_reference_bundle "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/policy/train_reference_bundle.py"
click node_reference "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/reference.py"
click node_storage "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/utils/storage.py"
click node_checkpoint "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/checkpoint.py"
click node_review "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/video_review.py"
click node_review_batch "https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/review_batch.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_runtime,node_demo,node_reference_prep,node_suite,node_run toneBlue
class node_vendor_config,node_vendor_paths,node_policy_adapter,node_dialogue,node_policy_core,node_image_input,node_training_checks,node_reference_bundle,node_reference toneAmber
class node_benchmarks,node_environment,node_observations,node_controller,node_robot_state,node_transforms,node_provider toneMint
class node_storage,node_checkpoint,node_review,node_review_batch toneRose
class node_user toneIndigo
```

## Components

### Preparation and evaluation

- [Command interface](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/cli.py): `src/tactalent/cli.py`
- [Runtime setup](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/runtime.py): `src/tactalent/runtime.py`
- [Demonstration prep](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/demonstrations.py): `src/tactalent/roboicl/demonstrations.py`
- [Reference preparation](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/prepare_bank.py): `src/tactalent/roboicl/prepare_bank.py`
- [Evaluation suite](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/suite.py): `src/tactalent/roboicl/suite.py`
- [Episode runner](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/run.py): `src/tactalent/roboicl/run.py`

### Policy and references

- [RoboICL configuration](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/config.py): `src/tactalent/_vendor/RoboICL/roboicl/config.py`
- [RoboICL paths](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/paths.py): `src/tactalent/_vendor/RoboICL/roboicl/paths.py`
- [Policy adapter](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/policy.py): `src/tactalent/roboicl/policy.py`
- [Astra dialogue policy](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/policy/dialogue_policy.py): `src/tactalent/_vendor/RoboICL/roboicl/policy/dialogue_policy.py`
- [Policy safeguards and memory](https://github.com/ccyydd/tactalent/tree/main/src/tactalent/_vendor/RoboICL/roboicl/policy): `src/tactalent/_vendor/RoboICL/roboicl/policy`
- [Image encoding](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/policy/observation_images.py): `src/tactalent/_vendor/RoboICL/roboicl/policy/observation_images.py`
- [Training verification](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/policy/train_reference_checks.py): `src/tactalent/_vendor/RoboICL/roboicl/policy/train_reference_checks.py`
- [Training reference bundles](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/_vendor/RoboICL/roboicl/policy/train_reference_bundle.py): `src/tactalent/_vendor/RoboICL/roboicl/policy/train_reference_bundle.py`
- [Reference loading](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/reference.py): `src/tactalent/roboicl/reference.py`

### Benchmark and robot

- [Benchmark profiles](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/benchmarks.py): `src/tactalent/roboicl/benchmarks.py`
- [Native environment](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/environment.py): `src/tactalent/roboicl/environment.py`
- [Observation assembly](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/observations.py): `src/tactalent/roboicl/observations.py`
- [Action controller](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/controller.py): `src/tactalent/roboicl/controller.py`
- [Robot state and IK](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/robot/state.py): `src/tactalent/robot/state.py`
- [Pose transforms](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/robot/transforms.py): `src/tactalent/robot/transforms.py`

### Results and review

- [Output storage](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/utils/storage.py): `src/tactalent/utils/storage.py`
- [Episode checkpoints](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/checkpoint.py): `src/tactalent/roboicl/checkpoint.py`
- [Video review](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/video_review.py): `src/tactalent/roboicl/video_review.py`
- [Review batch](https://github.com/ccyydd/tactalent/blob/main/src/tactalent/roboicl/review_batch.py): `src/tactalent/roboicl/review_batch.py`

### Other components

- **Engineer**
- **Responses API**

## Connections

- Engineer → Command interface: invokes (evidence: `README.md`)
- Command interface → Runtime setup: dispatches (evidence: `src/tactalent/cli.py`)
- Command interface → Benchmark profiles: lists tasks (evidence: `src/tactalent/cli.py`)
- Command interface → Demonstration prep: prepares (evidence: `README.md`)
- Command interface → Evaluation suite: starts suite (evidence: `README.md`)
- Evaluation suite → Episode runner: runs episodes (evidence: `README.md`)
- Episode runner → Benchmark profiles: selects profile (evidence: `src/tactalent/roboicl/run.py`)
- Episode runner → Native environment: uses environment (evidence: `src/tactalent/roboicl/run.py`)
- Episode runner → Observation assembly: reads observations (evidence: `src/tactalent/roboicl/run.py`)
- Episode runner → Policy adapter: requests actions (evidence: `src/tactalent/roboicl/run.py`)
- Episode runner → Action controller: executes actions (evidence: `src/tactalent/roboicl/run.py`)
- Episode runner → Episode checkpoints: records episode (evidence: `src/tactalent/roboicl/run.py`)
- Episode runner → Output storage: writes outputs (evidence: `src/tactalent/roboicl/run.py`)
- Native environment → Benchmark profiles: loads profile (evidence: `src/tactalent/roboicl/environment.py`)
- Native environment → Observation assembly: builds inputs (evidence: `src/tactalent/roboicl/environment.py`)
- Action controller → Robot state and IK: observes state (evidence: `src/tactalent/roboicl/controller.py`)
- Action controller → Pose transforms: uses transforms (evidence: `src/tactalent/roboicl/controller.py`)
- Robot state and IK → Pose transforms: uses transforms (evidence: `src/tactalent/robot/state.py`)
- Policy adapter → Reference loading: loads references (evidence: `src/tactalent/roboicl/policy.py`)
- Policy adapter → Astra dialogue policy: configures policy (evidence: `src/tactalent/roboicl/policy.py`)
- Astra dialogue policy → Policy safeguards and memory: uses policy helpers (evidence: `src/tactalent/_vendor/RoboICL/roboicl/policy/dialogue_policy.py`)
- Astra dialogue policy → Training verification: verifies sources (evidence: `src/tactalent/_vendor/RoboICL/roboicl/policy/dialogue_policy.py`)
- Astra dialogue policy → Responses API: sends requests
- Policy safeguards and memory → Image encoding: encodes images (evidence: `src/tactalent/_vendor/RoboICL/roboicl/policy/bounded_policy.py`)
- Reference preparation → Training reference bundles: builds bundles (evidence: `README.md`)
- Training reference bundles → Training verification: checks sources (evidence: `src/tactalent/_vendor/RoboICL/roboicl/policy/train_reference_bundle.py`)
- Training reference bundles → Image encoding: validates images (evidence: `src/tactalent/_vendor/RoboICL/roboicl/policy/train_reference_bundle.py`)
- Reference loading → RoboICL configuration: uses configuration
- RoboICL configuration → RoboICL paths: uses paths (evidence: `src/tactalent/_vendor/RoboICL/roboicl/config.py`)
- Review batch → Video review: renders reviews (evidence: `src/tactalent/roboicl/review_batch.py`)
- Review batch → Output storage: reads artifacts (evidence: `src/tactalent/roboicl/review_batch.py`)
- Video review → Output storage: reads episode data (evidence: `src/tactalent/roboicl/video_review.py`)
