# phbronson999/ifs-agent-ops-toolkit architecture

> Architecture diagram of the GitHub repository phbronson999/ifs-agent-ops-toolkit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/phbronson999/ifs-agent-ops-toolkit
- Repository: https://github.com/phbronson999/ifs-agent-ops-toolkit

## Overview

IFS Agent Ops Toolkit turns observed IFS workflows into reviewed, reusable capability packages and generated agent/Power Platform artifacts, then reconciles deployment intent with target environments. The principal path is guided browser capture → sanitized package evidence and API analysis → canonical operations and curated capabilities → generation → deployment. The README documents these stages and the MCP, workspace, and readiness branches. Source-index references support several internal calls; unsampled modules are represented only at documented subsystem level, and uncertain links are omitted.

Main entry points: [`src/ifs_agent_ops/operations/store.py`](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/store.py) (Operation persistence), [`src/ifs_agent_ops/operations/service.py`](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/service.py) (Operation drafting), [`src/ifs_agent_ops/operations/capability_store.py`](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/capability_store.py) (Capability approval), [`src/ifs_agent_ops/ifs/metadata/snapshot.py`](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/ifs/metadata/snapshot.py) (Pinned API metadata)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Capture and analysis"]
  node_browser["Browser side panel<br/>[sidepanel.js]"]
  node_capture_service["Capture service<br/>[service.py]"]
  node_capture_session["Capture sessions<br/>[session.py]"]
  node_recordings["Recording evidence<br/>[har.py]"]
  node_analysis["Recording analysis"]
end

subgraph group_model["Package and operation model"]
  node_workspace["Package workspace<br/>[package.py]"]
  node_operation_model["Canonical operations<br/>[model.py]"]
  node_operation_service["Operation drafting<br/>[service.py]"]
  node_operation_store[("Operation persistence<br/>[store.py]")]
  node_operation_review["Technical review"]
  node_capability["Curated capabilities<br/>[capability.py]"]
  node_capability_store["Capability approval"]
end

subgraph group_ifs["IFS access and metadata"]
  node_ifs_client["IFS API client<br/>[client.py]"]
  node_metadata["Pinned API metadata<br/>[snapshot.py]"]
end

subgraph group_generate["Agent artifact generation"]
  node_agent_generator["Agent skill generator<br/>[agent.py]"]
  node_connector_generator["Connector generator<br/>[__init__.py]"]
  node_flow_generator["Flow dispatcher generator<br/>[build.py]"]
end

subgraph group_deploy["Deployment and interfaces"]
  node_mcp["MCP server<br/>[server.py]"]
  node_cli["CLI and guided TUI<br/>[main.py]"]
  node_deployment_intent["Deployment intent<br/>[intent.py]"]
  node_deployment_adapter["Power Platform adapter<br/>[powerplatform.py]"]
  node_targets["Deployment targets<br/>[targets.py]"]
end

node_user(("Developer"))
node_ifs_cloud{{"IFS Cloud"}}
node_power_platform{{"Power Platform"}}

node_user -->|"records tasks"| node_browser
node_browser -.->|"sends capture"| node_capture_service
node_capture_service -->|"manages sessions"| node_capture_session
node_capture_service -->|"imports evidence"| node_recordings
node_recordings -->|"analyzed as"| node_analysis
node_analysis -->|"drafts operations"| node_operation_service
node_operation_service -->|"uses snapshots"| node_metadata
node_operation_service -->|"persists drafts"| node_operation_store
node_operation_service -->|"reads recordings"| node_recordings
node_operation_store -->|"persists models"| node_operation_model
node_operation_service -->|"builds review"| node_operation_review
node_operation_review -->|"reads metadata"| node_metadata
node_operation_review -->|"reads evidence"| node_recordings
node_operation_model -->|"informs contract"| node_capability
node_user -->|"approves capability"| node_capability_store
node_capability_store -->|"checks referenced ops"| node_operation_store
node_ifs_client -->|"calls APIs"| node_ifs_cloud
node_metadata -->|"fetches snapshots"| node_ifs_client
node_mcp -->|"exposes toolkit"| node_user
node_cli -->|"guides workflow"| node_user
node_capability_store -->|"supplies approved capability"| node_agent_generator
node_capability_store -->|"supplies capabilities"| node_connector_generator
node_capability_store -->|"supplies capability actions"| node_flow_generator
node_metadata -->|"provides API definitions"| node_connector_generator
node_operation_store -->|"provides operations"| node_agent_generator
node_operation_store -->|"provides operations"| node_flow_generator
node_deployment_intent -->|"drives reconciliation"| node_deployment_adapter
node_targets -->|"selects environment"| node_deployment_adapter
node_deployment_adapter -->|"deploys artifacts"| node_power_platform
node_workspace -->|"hosts package data"| node_operation_store

click node_browser "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/browser-extension/extension/sidepanel.js"
click node_capture_service "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/capture/service.py"
click node_capture_session "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/capture/session.py"
click node_recordings "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/recordings/har.py"
click node_analysis "https://github.com/phbronson999/ifs-agent-ops-toolkit/tree/main/src/ifs_agent_ops/analysis"
click node_workspace "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/workspace/package.py"
click node_operation_model "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/model.py"
click node_operation_service "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/service.py"
click node_operation_store "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/store.py"
click node_operation_review "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/operation_review.py"
click node_capability "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/capability.py"
click node_capability_store "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/capability_store.py"
click node_ifs_client "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/ifs/client.py"
click node_metadata "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/ifs/metadata/snapshot.py"
click node_mcp "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/mcp_server/server.py"
click node_cli "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/cli/main.py"
click node_agent_generator "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/generators/agent.py"
click node_connector_generator "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/generators/connector/__init__.py"
click node_flow_generator "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/generators/flow/build.py"
click node_deployment_intent "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/deploy/intent.py"
click node_deployment_adapter "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/deploy/powerplatform.py"
click node_targets "https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/deploy/targets.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_browser,node_capture_service,node_capture_session,node_recordings,node_analysis toneBlue
class node_workspace,node_operation_model,node_operation_service,node_operation_store,node_operation_review,node_capability,node_capability_store toneAmber
class node_ifs_client,node_metadata toneMint
class node_agent_generator,node_connector_generator,node_flow_generator toneRose
class node_mcp,node_cli,node_deployment_intent,node_deployment_adapter,node_targets,node_user,node_ifs_cloud,node_power_platform toneIndigo
```

## Components

### Capture and analysis

- [Browser side panel](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/browser-extension/extension/sidepanel.js): `browser-extension/extension/sidepanel.js`
- [Capture service](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/capture/service.py): `src/ifs_agent_ops/capture/service.py`
- [Capture sessions](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/capture/session.py): `src/ifs_agent_ops/capture/session.py`
- [Recording evidence](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/recordings/har.py): `src/ifs_agent_ops/recordings/har.py`
- [Recording analysis](https://github.com/phbronson999/ifs-agent-ops-toolkit/tree/main/src/ifs_agent_ops/analysis): `src/ifs_agent_ops/analysis`

### Package and operation model

- [Package workspace](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/workspace/package.py): `src/ifs_agent_ops/workspace/package.py`
- [Canonical operations](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/model.py): `src/ifs_agent_ops/operations/model.py`
- [Operation drafting](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/service.py): `src/ifs_agent_ops/operations/service.py`
- [Operation persistence](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/store.py): `src/ifs_agent_ops/operations/store.py`
- [Technical review](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/operation_review.py): `src/ifs_agent_ops/operations/operation_review.py`
- [Curated capabilities](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/capability.py): `src/ifs_agent_ops/operations/capability.py`
- [Capability approval](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/operations/capability_store.py): `src/ifs_agent_ops/operations/capability_store.py`

### IFS access and metadata

- [IFS API client](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/ifs/client.py): `src/ifs_agent_ops/ifs/client.py`
- [Pinned API metadata](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/ifs/metadata/snapshot.py): `src/ifs_agent_ops/ifs/metadata/snapshot.py`

### Agent artifact generation

- [Agent skill generator](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/generators/agent.py): `src/ifs_agent_ops/generators/agent.py`
- [Connector generator](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/generators/connector/__init__.py): `src/ifs_agent_ops/generators/connector/__init__.py`
- [Flow dispatcher generator](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/generators/flow/build.py): `src/ifs_agent_ops/generators/flow/build.py`

### Deployment and interfaces

- [MCP server](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/mcp_server/server.py): `src/ifs_agent_ops/mcp_server/server.py`
- [CLI and guided TUI](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/cli/main.py): `src/ifs_agent_ops/cli/main.py`
- [Deployment intent](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/deploy/intent.py): `src/ifs_agent_ops/deploy/intent.py`
- [Power Platform adapter](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/deploy/powerplatform.py): `src/ifs_agent_ops/deploy/powerplatform.py`
- [Deployment targets](https://github.com/phbronson999/ifs-agent-ops-toolkit/blob/main/src/ifs_agent_ops/deploy/targets.py): `src/ifs_agent_ops/deploy/targets.py`

### Other components

- **Developer**
- **IFS Cloud**
- **Power Platform**

## Connections

- Developer → Browser side panel: records tasks (evidence: `README.md`)
- Browser side panel → Capture service: sends capture
- Capture service → Capture sessions: manages sessions (evidence: `src/ifs_agent_ops/capture/service.py`)
- Capture service → Recording evidence: imports evidence (evidence: `src/ifs_agent_ops/capture/service.py`)
- Recording evidence → Recording analysis: analyzed as (evidence: `README.md`)
- Recording analysis → Operation drafting: drafts operations (evidence: `README.md`)
- Operation drafting → Pinned API metadata: uses snapshots (evidence: `src/ifs_agent_ops/operations/service.py`)
- Operation drafting → Operation persistence: persists drafts (evidence: `src/ifs_agent_ops/operations/service.py`)
- Operation drafting → Recording evidence: reads recordings (evidence: `src/ifs_agent_ops/operations/service.py`)
- Operation persistence → Canonical operations: persists models (evidence: `src/ifs_agent_ops/operations/store.py`)
- Operation drafting → Technical review: builds review (evidence: `src/ifs_agent_ops/operations/service.py`)
- Technical review → Pinned API metadata: reads metadata (evidence: `src/ifs_agent_ops/operations/operation_review.py`)
- Technical review → Recording evidence: reads evidence (evidence: `src/ifs_agent_ops/operations/operation_review.py`)
- Canonical operations → Curated capabilities: informs contract (evidence: `README.md`)
- Developer → Capability approval: approves capability (evidence: `src/ifs_agent_ops/operations/capability_store.py`)
- Capability approval → Operation persistence: checks referenced ops (evidence: `src/ifs_agent_ops/operations/capability_store.py`)
- IFS API client → IFS Cloud: calls APIs (evidence: `README.md`)
- Pinned API metadata → IFS API client: fetches snapshots (evidence: `src/ifs_agent_ops/ifs/metadata/snapshot.py`)
- MCP server → Developer: exposes toolkit (evidence: `README.md`)
- CLI and guided TUI → Developer: guides workflow (evidence: `README.md`)
- Capability approval → Agent skill generator: supplies approved capability (evidence: `src/ifs_agent_ops/generators/agent.py`)
- Capability approval → Connector generator: supplies capabilities (evidence: `src/ifs_agent_ops/generators/connector/__init__.py`)
- Capability approval → Flow dispatcher generator: supplies capability actions (evidence: `src/ifs_agent_ops/generators/flow/__init__.py`)
- Pinned API metadata → Connector generator: provides API definitions (evidence: `src/ifs_agent_ops/generators/connector/__init__.py`)
- Operation persistence → Agent skill generator: provides operations (evidence: `src/ifs_agent_ops/generators/agent.py`)
- Operation persistence → Flow dispatcher generator: provides operations (evidence: `src/ifs_agent_ops/generators/flow/__init__.py`)
- Deployment intent → Power Platform adapter: drives reconciliation (evidence: `src/ifs_agent_ops/deploy/powerplatform.py`)
- Deployment targets → Power Platform adapter: selects environment (evidence: `src/ifs_agent_ops/deploy/powerplatform.py`)
- Power Platform adapter → Power Platform: deploys artifacts (evidence: `README.md`)
- Package workspace → Operation persistence: hosts package data (evidence: `src/ifs_agent_ops/operations/store.py`)
