Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
165799 stories
·
33 followers

Is AI Racing Toward Disaster? — With Tristan Harris

1 Share

Tristan Harris is the co-founder of the Center for Humane Technology. He joins Big Technology to discuss AI risk, what the leading labs understand about their models, and whether the industry needs to slow down. Tune in to hear why Harris believes AI’s growing ability to deceive evaluators and evade oversight should change how we approach its development. We also cover China’s AI progress, the motivations of researchers pursuing superintelligence, and whether governments can coordinate to prevent dangerous outcomes. Hit play for a probing conversation about AI’s benefits, its risks, and what it would take to keep humans in control.

Learn more about your ad choices. Visit megaphone.fm/adchoices





Download audio: https://pdst.fm/e/tracking.swap.fm/track/t7yC0rGPUqahTF4et8YD/pscrb.fm/rss/p/traffic.megaphone.fm/AMPP3608084486.mp3
Read the whole story
alvinashcraft
6 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

From inline tools to a shared Toolbox in Microsoft Foundry

1 Share

A travel agent needs weather forecasts, exchange rates, and local time. When a second agent needs those same capabilities, the team can configure each integration again—or manage them in one place.

This article compares two configurations in Microsoft Foundry: one with tools attached directly to the agent, and one with the agent connected to a Toolbox. A separate field-operations demo shows how Tool Search helps an agent discover the tools it needs at runtime.

What changes when agents use a Toolbox?

A Toolbox in Microsoft Foundry is a centrally managed, versioned collection of tools exposed through a Model Context Protocol (MCP)-compatible endpoint. Instead of wiring up each integration separately, authorized agents connect to the Toolbox. The services behind it don’t all have to speak MCP: one Toolbox can combine an OpenAPI service, a remote MCP server, and built-in Foundry tools.

Toolboxes are managed in Foundry but aren’t tied to one language or framework. Microsoft documents integrations for Microsoft Agent Framework and LangGraph and GitHub Copilot in VS Code. A custom client can also connect if it supports the endpoint’s MCP transport, can reach the endpoint, and can authenticate.

The travel demo: individual tools versus one connection

The travel-toolbox contains OpenAPI tools for weather, geocoding, forecasts, and currency, alongside the Microsoft Learn MCP server and Code Interpreter.

In the Foundry Playground, one agent lists its tools individually. The other references a single travel_toolbox connection. The integrations still need to be configured; the difference is where. Moving them into the Toolbox means another agent can reuse them without setting them up again.

Both agents received the same request for the current temperature in Paris. In this comparison, the Toolbox-backed agent used fewer input tokens than the agent with inline tools. 

 

Tool Search: find the right tool without loading every definition

Toolbox and Tool Search solve different problems. Toolbox lets agents share integrations. Tool Search is optional and changes which tool definitions the model sees up front.

With Tool Search enabled, the initial tool list contains tool_search, call_tool, and any explicitly pinned tools. The model describes the capability it needs in natural language. tool_search returns matching definitions, and call_tool invokes a discovered tool by name. Clear names and descriptions help distinguish tools that do similar things.

The Fibey Field Ops demo checks whether all the parts for a sample work order are in stock. The activity pane shows the agent loading a work-order preparation skill, using Tool Search to find two relevant tools, and then calling Get Work Order and Check Stock (Batch). The skill provides instructions; the OpenAPI work-order tool and the MCP inventory tool retrieve the data.

For a small Toolbox, exposing every tool directly may be simplest. As the collection grows, Tool Search can keep frequently used tools visible through pinning and let the agent discover the rest on demand. That can reduce the number of tool definitions sent to the model up front.

Before sharing a Toolbox across agents, configure downstream authentication on the relevant project connections. Test changes at the version-specific endpoint before promoting them. Agents using the stable consumer endpoint then pick up the new default without redeployment. Once agents are using it, the Toolbox Monitor dashboard can show usage and errors by version when Application Insights is connected.

The supported tools list also includes Web Search, Foundry IQ (Azure AI Search), File Search, agent-to-agent (A2A) integrations, Browser Automation, Fabric IQ, and Work IQ. 

Start with one shared tool

Pick a read-only tool that two agents already need. Put it in a Toolbox, connect both agents to the stable endpoint, and confirm a successful call from each. That gives the team a baseline: two agents, one integration to maintain. Add Tool Search when the collection grows and different requests start needing different tools.

Read the whole story
alvinashcraft
7 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Build a multi-model video generation workflow with fal on Microsoft Foundry

1 Share

Building a compelling video experience rarely comes down to finding one model that does everything. Early in the creative process, you may want fast text-to-video generation to explore several directions. Once a composition is established, image-to-video can preserve the starting visual while adding motion. For more directed work, reference inputs can provide additional context from images, video, or audio. 
 
Fal on Microsoft Foundry brings these workflows together through a family of video generation models available from the Foundry model catalog. In this tutorial, we build a practical product-campaign workflow that starts with a creative brief and moves through text-to-video, image-to-video, and reference-to-video modalities. Along the way, we show how to select a model for each step, submit asynchronous generation jobs, monitor their status, retrieve the completed video, and structure the code so that it can be reused across models. 

The scenario: turn one creative brief into a coordinated campaign 

Imagine that a creative team is introducing a compact premium travel speaker called Northstar. The team needs three short assets: 

  • A concept clip to test the campaign mood and visual language quickly. 
  • A polished hero clip that animates an approved product image. 
  • A campaign variation that uses reference material to reinforce the established product and audio direction. 

The creative brief is intentionally specific enough to guide generation while leaving room for model interpretation: 

Creative brief: A matte black portable speaker sits on a weathered stone ledge above a misty alpine lake at sunrise. The camera moves slowly toward the product. Soft wind moves nearby grass. The visual style is premium, cinematic, restrained, and realistic, with cool blues and warm sunrise highlights. Avoid text, logos, extra products, distorted geometry, and abrupt camera movement. 

This is a useful application pattern because model choice follows the creative task instead of forcing every task through the same endpoint. 

Choose the model and modality for the job 

At the time of writing, fal on Microsoft Foundry includes five video models in public preview. All five support text-to-video and image-to-video. MiniMax H3 Max additionally supports reference-to-video. For comprehensive model details, please review the documentation. 

Model 

Modalities 

Best fit in the scenario 

Deployment offering 

LTX 2.5 Fast 

Text-to-video; image-to-video 

Rapid concept exploration and iteration 

Global Standard PayGo 

LTX 2.5 Pro 

Text-to-video; image-to-video 

Higher-quality hero output after direction is approved 

Global Standard PayGo 

Kling v3 Pro 

Text-to-video; image-to-video 

Cinematic or multi-shot alternatives; native audio is available 

US Data Zone 

MiniMax H3 Max 

Text-to-video; image-to-video; reference-to-video 

Reference-guided campaign variation 

Global Standard PayGo 

MiniMax H3 Max Turbo 

Text-to-video; image-to-video 

Alternative fast generation path 

Global Standard PayGo 

How the asynchronous API workflow works 

Video generation is asynchronous. A production-oriented client should treat submission, status polling, result retrieval, and download as distinct operations: 

  1. Authenticate to the Foundry resource with a Microsoft Entra bearer token.
  2. Submit a generation request to the selected model and modality route.
  3. Capture the request_id returned by the service.
  4. Poll the status route until the job reaches a terminal state.
  5. Retrieve the completed result and extract the video URL.
  6. Download or securely process the generated asset before the result URL expires.

Prerequisites 

  • An Azure subscription. 
  • A Microsoft Foundry resource and project. 
  • Subscription Owner or Subscription Contributor access to enable the preview (Fal.EnableDeploy) feature. 
  • Foundry Owner access on the project to deploy models. 
  • Azure CLI installed and authenticated with az login. 
  • Python 3.10 or later with the requests package. 
  • Model deployments for the fal models used by the walkthrough. 
  • A publicly reachable HTTPS image URL for image-to-video examples, plus reference URLs for the reference-to-video example. 
Enable fal and deploy the models 

An administrator first enables the Fal.EnableDeploy preview feature for the Azure subscription. In the Azure portal, open the subscription, select Preview features, search for Fal.EnableDeploy, review the terms and data-handling disclosure, and register the feature. Registration can take up to 30 minutes. 

After registration, open the Foundry model catalog, select each required fal model, choose Deploy, configure the deployment name and supported deployment offering, and wait until the deployment status is Succeeded. 

Data handling: fal services are operated outside Microsoft facilities. Review the fal terms, data-egress implications, privacy requirements, and your organization’s compliance obligations before sending prompts or assets. 

Note: All code samples in this walkthrough use Python and are intended to run in a Jupyter Notebook.

Set up the notebook environment 

The companion notebook can be organized around a shared client so each scenario changes only the endpoint suffix and request payload. 

%pip install -q requests import json import os import subprocess import time from pathlib import Path from typing import Any, Dict import requests

Configure the resource and model deployment names. The deployment names must match the deployments in your Foundry project. 

FOUNDRY_RESOURCE_NAME = os.environ.get( "FOUNDRY_RESOURCE_NAME", "your-foundry-resource" ) FOUNDRY_HOST = ( f"https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com" ) DEPLOYMENTS = { "ltx_fast": os.environ.get("LTX_FAST_DEPLOYMENT", "ltx-2-5-fast"), "ltx_pro": os.environ.get("LTX_PRO_DEPLOYMENT", "ltx-2-5-pro"), "kling_pro": os.environ.get("KLING_PRO_DEPLOYMENT", "kling-v3-pro"), "minimax_h3": os.environ.get("MINIMAX_H3_DEPLOYMENT", "minimax-h3-max"), }
Authenticate for local development 

This Python helper invokes Azure CLI as a subprocess. It is still Python, not a Bash sample. 

def get_bearer_token() -> str: command = [ "az", "account", "get-access-token", "--scope", "https://cognitiveservices.azure.com/.default", "--query", "accessToken", "--output", "tsv", ] token = subprocess.check_output(command, text=True).strip() if not token: raise RuntimeError("Azure CLI did not return an access token.") return token def auth_headers() -> Dict[str, str]: return { "Authorization": f"Bearer {get_bearer_token()}", "Content-Type": "application/json", }
Create the asynchronous generation client 

Video generation is asynchronous. The client submits a job, polls its status, retrieves the result, and downloads the completed video. 

FAILURE_STATES = {"FAILED", "CANCELED", "CANCELLED"} def submit_generation(route: str, payload: Dict[str, Any]) -> str: response = requests.post( f"{FOUNDRY_HOST}{route}", headers=auth_headers(), json=payload, timeout=120, ) response.raise_for_status() request_id = response.json().get("request_id") if not request_id: raise RuntimeError(f"No request_id returned: {response.text}") return request_id def wait_for_completion(request_root: str, request_id: str) -> None: started = time.monotonic() while True: response = requests.get( f"{FOUNDRY_HOST}{request_root}/requests/{request_id}/status", headers=auth_headers(), timeout=60, ) response.raise_for_status() body = response.json() status = body.get("status", "UNKNOWN") print(f"{request_id}: {status}") if status == "COMPLETED": return if status in FAILURE_STATES: raise RuntimeError(f"Generation ended with {status}: {body}") if time.monotonic() - started > 1800: raise TimeoutError(f"Timed out waiting for {request_id}") time.sleep(5) def get_result(request_root: str, request_id: str) -> Dict[str, Any]: response = requests.get( f"{FOUNDRY_HOST}{request_root}/requests/{request_id}", headers=auth_headers(), timeout=60, ) response.raise_for_status() return response.json() def download_video(video_url: str, output_path: str) -> Path: output = Path(output_path) with requests.get( video_url, headers=auth_headers(), stream=True, timeout=180 ) as response: response.raise_for_status() with output.open("wb") as file: for chunk in response.iter_content(1024 * 1024): if chunk: file.write(chunk) return output def run_generation(route, request_root, payload, output_path): request_id = submit_generation(route, payload) wait_for_completion(request_root, request_id) result = get_result(request_root, request_id) video_url = result.get("video", {}).get("url") if not video_url: raise RuntimeError(f"No video URL in result: {result}") download_video(video_url, output_path) return result
Step 1: Explore the concept with LTX 2.5 Fast 
campaign_prompt = """ A premium matte black portable speaker on a weathered stone ledge above a misty alpine lake at sunrise. Slow cinematic push-in. Subtle wind moves the grass. Realistic premium advertising style. No text, logos, duplicate products, warped geometry, or abrupt motion. """.strip() ltx_root = "/providers/falai/lightricks/ltx-2.5" concept_result = run_generation( route=f"{ltx_root}/text-to-video/fast", request_root=ltx_root, payload={ "model": DEPLOYMENTS["ltx_fast"], "prompt": campaign_prompt, "duration": 6, "resolution": "720p", "aspect_ratio": "16:9", }, output_path="northstar_concept_ltx_fast.mp4", )
Step 2: Animate the approved hero image 
HERO_IMAGE_URL = "https://your-domain.example/northstar-hero.png" hero_result = run_generation( route=f"{ltx_root}/image-to-video/pro", request_root=ltx_root, payload={ "model": DEPLOYMENTS["ltx_pro"], "prompt": ( "Preserve the product design. Add a slow stable camera push, " "subtle drifting mist, and gentle grass movement. No text or cuts." ), "image_url": HERO_IMAGE_URL, "duration": 8, "resolution": "1080p", "aspect_ratio": "16:9", }, output_path="northstar_hero_ltx_pro.mp4", )
Step 3: Test a cinematic alternative with Kling v3 Pro 
kling_root = "/providers/falai/kling/v3/pro" kling_result = run_generation( route=f"{kling_root}/text-to-video", request_root=kling_root, payload={ "model": DEPLOYMENTS["kling_pro"], "prompt": campaign_prompt, "duration": 6, "aspect_ratio": "16:9", }, output_path="northstar_kling_v3_pro.mp4", )
Step 4: Add reference context with MiniMax H3 Max 
minimax_root = "/providers/falai/minimax/h3-max" reference_result = run_generation( route=f"{minimax_root}/reference-to-video", request_root=minimax_root, payload={ "model": DEPLOYMENTS["minimax_h3"], "prompt": ( "Preserve the product appearance and follow the visual pacing " "and audio mood of the supplied references. No text or logos." ), "references": [ {"type": "image", "url": "https://your-domain.example/hero.png"}, {"type": "video", "url": "https://your-domain.example/motion.mp4"}, {"type": "audio", "url": "https://your-domain.example/audio.wav"}, ], "duration": 8, "resolution": "768P", }, output_path="northstar_reference_minimax_h3.mp4", )
Display outputs in the notebook 
from IPython.display import Video, display for path in [ "northstar_concept_ltx_fast.mp4", "northstar_hero_ltx_pro.mp4", "northstar_kling_v3_pro.mp4", "northstar_reference_minimax_h3.mp4", ]: print(path) display(Video(path, embed=True, width=720))
Evaluate and operationalize the workflow 
  • Prompt adherence: subject, setting, camera direction, and exclusions. 
  • Identity and geometry: product consistency and physical plausibility. 
  • Temporal consistency: stable motion, lighting, reflections, and boundaries. 
  • Aesthetic fit: alignment with the intended campaign style. 
  • Operational fit: latency, supported resolution, duration, region, quota, and cost. 
Production considerations 
  • Use bounded retries with exponential backoff for transient failures. 
  • Persist the request ID and last-known job state so polling can resume. 
  • Do not log tokens, signed URLs, or sensitive prompts. 
  • Move completed outputs to application-controlled storage before temporary links expire. 
  • Keep payload construction in model-specific adapters because schemas differ. 
Managed identity for hosted applications 

Language: Python 

from azure.identity import DefaultAzureCredential credential = DefaultAzureCredential() token = credential.get_token( "https://cognitiveservices.azure.com/.default" ).token
Troubleshooting 
  • 401 or 403: verify token scope, project role, and preview registration. 
  • 404: verify the provider, version, model, and modality path. 
  • 400: validate every payload field against the selected model schema. 
  • Queued job: continue bounded polling and confirm quota and capacity. 
  • Unreadable input: verify that the HTTPS asset URL is reachable and unexpired. 
  • Missing video URL: inspect the sanitized result and update model-specific parsing. 
Build around the creative goal 

The application does not need to be designed around one model. Start with fast text-to-video exploration, move to image-to-video when the composition is approved, and add references when the creative direction needs more context. The companion notebook provides a practical starting point for adapting the prompts, assets, routes, and generation parameters to your own scenario. 

Conclusion

Generative video workflows don't need to be built around a single model or generation technique. With fal models on Microsoft Foundry, you can choose the model and modality that best fit each stage of your application, from quickly exploring ideas with text-to-video to bringing existing visuals to life with image-to-video and adding greater creative direction with reference inputs.

In this walkthrough, we showed how those capabilities can come together in a practical, multi-model workflow using Python and Jupyter Notebook. Use the companion notebook to try the examples yourself, experiment with different models and prompts, and adapt the workflow to your own creative scenarios.

Appendix

API routes for fal video models

Each fal model exposes a route for its supported video generation modalities. Replace {FOUNDRY_RESOURCE_NAME} with the name of your Microsoft Foundry resource.

Asynchronous request routes

After submitting a generation request, the service returns a request_id. Use that identifier to monitor and retrieve the generation job.

OperationHTTP methodRoute pattern
Submit a generation requestPOST{BASE_URL}/{MODALITY}
Check request statusGET{BASE_URL}/requests/{REQUEST_ID}/status
Retrieve the completed resultGET{BASE_URL}/requests/{REQUEST_ID}
Download the generated videoGETUse the URL returned in video.url

For example, a MiniMax H3 Max text-to-video request uses the following URLs:

  • Submit: {BASE_URL}/text-to-video
  • Check status: {BASE_URL}/requests/{REQUEST_ID}/status
  • Retrieve result: {BASE_URL}/requests/{REQUEST_ID}

Where BASE_URL is:

https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/minimax/h3-max

Video generation is asynchronous, so the initial request does not return the completed video. Retrieve the completed result, extract the generated video location from the response, and download or process the asset using the authorization requirements returned or documented for that model.

Resources 

Microsoft Learn: Fal models on Microsoft Foundry (preview)

GitHub Samples: https://aka.ms/model-releases
 

 

 

 
Read the whole story
alvinashcraft
7 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

AI-assisted Query Performance Tuning comes to SSMS GitHub Copilot Agent mode (in Preview)

1 Share

Hi there, and thanks for stopping by. 

Let me start with a question. When was the last time a single query ruined your afternoon? 

Maybe it was a high-CPU alert that popped up right after a release. Maybe a report that used to come back in two seconds suddenly took two minutes, or maybe you were simply staring at an execution plan, scrolling left and right across a sea of operators, trying to figure out which one was the real villain. 

If any of that sounds familiar, this post is for you. Let me tell you about something our team has been working on for a while, and why I'm genuinely excited that you can now try it yourself. 

So, what is it? 

GitHub Copilot in SSMS 22.12.1 Release Notes onwards can now help you understand why a query is slow or resource-intensive, and how to improve it. In Agent mode, Copilot uses query performance tuning skills to analyze your query and its execution plan, help identify likely root cause, and recommend potential fixes ordered by expected impact. 

Here are few things you can ask it to do:

  • Help improve this query
  • Suggest a rewritten version of a query that's expected to run faster
  • Recommend any missing index that can help improve the query execution time
  • Recommend query hints, and explain the trade-offs

What a conversation actually looks like

Let me walk you through how this feels in practice, and the experience that you see while this improvement is in Preview.

You open a query editor in SSMS. Connect to a dev or test copy of the database where you want to analyze the query and paste the slow or high CPU query in the query editor. You open Copilot Chat in SSMS and switch to Agent mode, pick a model, and simply ask:

  • Why is this query slow? or can you improve this query?

By default, the agent starts with a quick triage and gives you a first answer: the most likely cause and potential recommendations. If that's enough, great. If you want to go deeper, just keep talking to it:

  • Rewrite this query to make it run faster.
  • Is there an index that would further improve the rewritten query?
  • Do the plan analysis and identify the cause of slowness.

For plan analysis, you can open the estimated or actual execution plan in the query editor in SSMS and ask the agent to analyze it.

 

  • Do a full analysis of this query and its execution plan.

A full analysis comes back as a report you can actually read: baseline metrics from the plan, the root cause (an anti-pattern, an implicit conversion blocking an index seek, a bad cardinality estimate and so on), ordered recommendations with their reasoning and estimated improvement.

You stay in control. Always.

I want to be very clear about this part, because trust matters more than speed.

Copilot recommends changes, but it doesn't apply them to your database. By default, it analyzes the estimated execution plan and doesn't run the user query. If a step needs to run something, for example to collect actual runtime statistics or actual execution plan, the agent asks for your permission first.

When you get a potential recommendation, you like: review the reasoning, copy the script into a query editor, test it in a dev or test database with representative data, compare duration, CPU time and logical reads, and then roll it out through your normal change management process.

And please, always review scripts before you run them. AI can make mistakes, and you know your system better than any model does.

Let's get you started

Refer Query performance tuning in SSMS GitHub Copilot Agent mode for detailed instructions.

Here's what you need at a high-level:

  1. SSMS 22.12.1 or later Release Notes for SQL Server Management Studio (SSMS) | Microsoft Learn , with the AI Assistance workload installed
  2. A GitHub account with Copilot Agent mode access
  3. Preview features turned on for the SQL tools MCP server: go to Tools > Options > Preview Features and select Turn on Preview Features for SQL tools MCP server
  4. Restart the sql-tools MCP server from the tools list in Copilot Chat (or just close and reopen SSMS)
  5. Type #improve-query-performance in the chat to confirm the skill is loaded and if the skill is visible you are ready to test this functionality

A few tips from our preview participants that I'd pass on to you:

  • Connect to the database where the problem is potentially reproducible or, so Copilot has the right context
  • Include the full query text and describe the symptom: high CPU, long duration etc.
  • Start with a quick analysis, then go deeper when you need to
  • Test this functionality outside your production environment during the Preview phase.

What it doesn't do

In preview, the agent analyzes one query at a time, not a batch or whole workload. Estimated improvements can differ from actual results. By default, the agent analyzes the estimated execution plan, so it doesn't need to execute the user query. For more accurate results, you can prompt it to use the actual execution plan instead. Because this requires running the actual query, the agent asks for your permission first. New indexes cost storage and can slow down writes, so weigh that before creating them.

Tell us what you think and how you want us to improve it

We'd love to hear from you. Try it on a query that has been troubling you. Then tell us how it went. Use the thumbs-up and thumbs-down buttons in the chat, report a problem or submit new ideas here Developer Community for SQL Server Management Studio.

Learn more

 

Read the whole story
alvinashcraft
7 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Design, Version And Govern Your API Definitions With SwaggerHub

1 Share

If your company builds software, you probably have more APIs than anyone can list from memory, each one described in a file that lives somewhere different, in a slightly different version, owned by a team nobody can quite name. Keeping those descriptions in one place, versioned, consistent and connected to your build pipeline is the job SwaggerHub does, and it can be run through its own API, so your build tools, or an AI assistant working for you, can publish new versions and manage access without anyone working in the editor. Everything I have catalogued about it sits on its APIs.io profile.

What SwaggerHub does

SwaggerHub is SmartBear’s collaborative API design and documentation platform, built around OpenAPI, the common format for describing what an API does. It supports OpenAPI 2.0, 3.0 and 3.1 as well as AsyncAPI, with validation, team collaboration, lifecycle management, CI/CD integrations and an organization-wide registry of your APIs.

What you can get done

Public API Lifecycle Management

This is the registry itself: every API definition and every version of it, in one place. Domains are reusable pieces, like a shared “address” or “error” definition, that many APIs can point to so they stay consistent.

  • GET /apis/{owner} lists all the APIs an owner has.
  • GET /apis/{owner}/{api} lists the versions of one API.
  • POST /apis/{owner}/{api} creates or updates an API definition.
  • GET /apis/{owner}/{api}/{version} fetches the definition for a specific version.
  • POST /domains/{owner}/{domain} creates or updates a shared domain.

Continuous Integration Management

Continuous integration is the automated pipeline that builds and tests your software every time something changes. SwaggerHub integrations hook an API version into that pipeline, for example syncing it to a code repository.

  • GET /apis/{owner}/{api}/{version}/integrations lists the integrations on a version.
  • POST /apis/{owner}/{api}/{version}/integrations creates one.
  • POST /apis/{owner}/{api}/{version}/integrations/{integrationId}/execute runs it on demand.
  • DELETE /apis/{owner}/{api}/{version}/integrations/{integrationId} removes it.

Identity & Access Management

As the registry grows, so does the question of who can edit what. These operations let your IT systems add people, place them on teams and change their roles.

  • GET /orgs/{org}/members lists the members of an organization.
  • POST /orgs/{org}/members adds members.
  • PUT /orgs/{org}/members/{user} changes a member’s role.
  • DELETE /orgs/{org}/members/{user} removes a member.
  • POST /orgs/{org}/teams/{team}/members adds someone to a team.

Getting started

SwaggerHub is sold as an enterprise product and delivered as a hosted service you call. Plan details are on the SwaggerHub pricing section of its profile.

The documentation I would start with:

On APIs.io, see the SwaggerHub profile, the SwaggerHub APIs API, the SwaggerHub Standardization API, which manages the style rules your definitions are checked against, and the SwaggerHub Search API.

A good first step is to have your build pipeline push each new API version to SwaggerHub automatically, so the registry never falls behind the code.



Read the whole story
alvinashcraft
1 hour ago
reply
Pennsylvania, USA
Share this story
Delete

Prove your AI agent guardrails work

1 Share

You ask a coding agent to clean up one repository. If it has broad permissions, it may also reach your home directory, use your development credentials, and send requests to services you never approved. That gap between the task and the access you grant can turn a routine coding session into a data leak or lost work.

In Sandboxing Claude and MCP, Hrittik walked through running Claude Code and an MCP server inside Docker Sandboxes using its command-line interface, sbx. That walkthrough started with outbound access blocked, allowed the endpoints needed for the task, and inspected requests to other destinations, including telemetry. The useful part was seeing an actual request fail at the network boundary.

Now extend that workflow to a team. Models and providers will change, but the access rules still need to hold. A sandbox limits what an agent can reach on one machine. Organization governance adds shared rules, a managed way to run agents, and records of policy decisions. In this post, we’ll look at how one laptop can affect the whole organization, review two reported incidents, and connect them to four Docker controls: network policy, filesystem policy, managed credentials, and MCP access. Then we’ll test the network and filesystem controls with a simple bank administrator demo.

How one laptop can affect the whole organization

If an agent exposes a developer’s SSH key or cloud token, every system that accepts that credential may need investigation. The security team must work out what left the machine, replace or revoke exposed credentials, and check whether anyone used them. Deleted work can also halt development. Keep backups of work that has not yet reached the repository.

The compliance consequences depend on the data and the organization. A personal data breach can trigger GDPR notification duties, subject to the applicable risk thresholds. HIPAA has separate requirements for covered entities and business associates following breaches of unsecured protected health information. India’s DPDP framework also includes breach duties, but those provisions are scheduled to take effect in May 2027. For a SOC 2 examination, the question is whether the relevant controls operate as described. SOC 2 is not a breach-notification law.

Data sovereignty adds another question: where does the data go, and who controls it? Before approving a model API endpoint, establish where prompts and outputs are processed and stored, who can access them, and which contracts and laws apply. A provider’s nationality alone does not answer those questions. Network policy can restrict the destination, but it cannot prove how the provider handles data after receiving it.

This gets harder when developers choose and configure agents independently. A rule on one laptop may be missing on the next. An ignore file may stop one component from reading a file while another component includes it in an upload. Written policy needs matching controls in the software that runs the agent.

Two real incidents of agents with too much access

In July 2026, developers reported two incidents where a coding agent went far beyond its task. In one, data left the machine. In the other, files were deleted from it.

A background upload beyond the visible task

In an X post that has since been deleted, a user said Grok had uploaded their entire user directory, including SSH keys, a password manager database, and personal files. A Hacker News discussion brought wider attention to the claim. The home-directory claim remains the user’s account. The separate investigation below tested repository uploads.

Researcher Cereblab intercepted Grok Build CLI traffic and found a background upload running alongside the coding task. In a test with a 12 GB repository, about 5.1 GiB had left the machine before the capture stopped, and the upload was still running. The data went to Google Cloud Storage. Fake secrets planted in the repository also appeared in the traffic without being hidden. At the time, turning off “Improve the model” did not stop the repository uploads.

In a reproducible follow-up, the researcher rebuilt the repository from a captured Git bundle, an archive of tracked files and Git history. The bundle included files the agent had been told not to read. Telling the model not to read a file didn’t stop the CLI from packaging and uploading it in the background.

There was a subsequent change. The researcher’s updated timeline says whole-repository uploading was disabled server-side on July 13 and remained off when retested on July 22.

The fix does not change the lesson. A coding agent is more than the model. It includes the CLI and any background processes, and those can act without the model asking. Give the whole application only the access its task needs. This is the principle of least privilege.

A cleanup task that deleted a home directory

On July 10, Matt Shumer wrote: “GPT-5.6-Sol just accidentally deleted almost ALL of my Mac’s files.” He shared the agent’s acknowledgment and confirmed that Full Access was enabled. His follow-up described the loss of his home directory.

A separate experiment shows why blocking one command is a fragile response. Developer LinearUncle reported that, after a plugin blocked rm, the agent tried unlink, find -delete, and apply_patch. A later attempt to move files to Trash through the GUI failed on permissions; a call to Node’s fs.unlink succeeded. The plugin’s own documentation describes it as an additional guardrail and recommends sandboxing and backups.

The common issue is excessive access. A model can choose a different tool, and a background process can run outside the model’s visible workflow. Filesystem and network boundaries need to constrain both.

What a sandbox gives you locally

Docker Sandboxes runs each agent in a microVM, a lightweight virtual machine with its own Linux kernel and Docker Engine. A workspace mount shares a host directory with the sandbox. A proxy on the host checks outgoing connections against network policy. The isolation documentation explains these boundaries.

That gives a developer a useful starting point. Share the project needed for the task, restrict outbound access, and inspect failures before adding permissions. Unnecessary telemetry endpoints can remain blocked while the required model and package services are allowed.

Choose mounts carefully. A writable mount shares real host files, so changes and deletions inside it affect your machine. Check additional mounts too, including shared agent skills where enabled. Docker’s clone mode gives the agent a private copy of a Git repository so you can review its commits before bringing them back. Isolation limits access, but files in a writable host mount still need backups. Clone mode still exposes the host repository for reading, including ignored files. Keep secrets outside it.

Local settings leave a rollout problem. A teammate can choose different rules or run an agent directly on the host. The organization needs a managed way to run agents, a way to require its use, and visibility into which sessions it covers.

The diagram below shows how organization and team policies reach managed sandbox sessions, where access checks occur, and how policy decisions feed audit records.

Figure1

Figure 1. Organization and team policies govern access for enrolled, licensed sandbox sessions.

How Docker AI Governance extends those controls

Docker AI Governance lets administrators manage sandbox rules and MCP access centrally. MCP, short for Model Context Protocol, connects agents to tools and data sources. Administrators define policies in Docker Home. On developer machines, sandbox mount checks, the host proxy, and Docker’s MCP gateway enforce the relevant rules. This gives teams shared access rules and records they can review when something goes wrong.

Control outbound access and host mounts

Network policies allow or deny destinations such as domain names, IP addresses, and IP ranges written in CIDR notation. For a restricted workflow, start with access denied and allow only the destinations the task needs. Under organization governance, local allow rules cannot grant extra access. Deny rules win, and developers can add local network restrictions.

This can block a background upload to an unapproved destination. But an approved hostname may still handle several kinds of traffic. In the Grok investigation, model requests and storage uploads used different URL paths on the same hostname, so a hostname-only allow rule would not distinguish them. Docker AI Governance now supports more granular network policies: on an allowed host, rules can match the HTTP method, URL path, and query parameters. For example, a policy can permit an agent to open a GitHub pull request while blocking requests to merge it. These finer-grained rules complement filesystem restrictions, which limit the data an application can collect and send.

Filesystem policies control which host paths may be mounted. A writable mount needs both read and write permission; a read-only mount needs read. If a filesystem deny rule and an allow rule match the same request, the deny wins. The decision happens when the sandbox is created. Once a writable mount exists, the agent can modify or delete files within it, regardless of whether it uses rm, a patch tool, or a programming language API.

Keep managed credentials outside the agent environment

For proxy-managed credentials, the host proxy adds authentication to outbound requests. The agent can authenticate to an approved service without receiving the raw secret inside the microVM. Credentials can also be scoped to a named sandbox.

This reduces the need to paste API tokens into prompts or store them in the workspace. The protection applies to proxy-managed credentials. A real token placed in an environment variable, a mounted file, or a passthrough login response may still be visible inside the sandbox. Limit what each credential can access and how long it stays valid. Storing a token through the proxy does not change its permissions or expiry.

Govern MCP access through the gateway

MCP access policies govern server registration and subsequent requests through Docker’s MCP gateway. With MCP enforcement active, access requires an explicit permit, and a forbid rule overrides it. Administrators can control tool calls, resource reads, and prompt retrieval, rather than treating an approved server as permission to do everything it offers.

Registration and use are separate decisions. Blocking new registrations does not stop access to a server that is already registered. Rules checked on each request handle that case. Direct connections to remote MCP servers also need network controls because they bypass Docker’s gateway. Check where each server runs too: local stdio servers run on the host, outside the sandbox VM. Their host access needs separate review.

The next diagram summarizes the four controls to review together: network access, host mounts, managed credentials, and MCP tools.

Figure2

Figure 2. Network, filesystem, credentials, and MCP controls apply to the whole agent application.

Make enrollment part of the rollout

Administrators manage organization and team policies in Docker Home. Group mapping can keep Docker teams in sync with the organization’s identity provider. Policy updates take up to five minutes to reach developer machines. Network changes then apply to new requests. Filesystem changes require removing and recreating affected sandboxes because existing mounts keep their original access.

Sign-in enforcement is also part of deployment. IT distributes it through endpoint management so developers must authenticate as members of an approved organization. This prevents personal-account bypass within sbx. Your endpoint controls also need to cover agents launched outside that managed workflow.

A simple demo: protect a bank’s logs

Suppose you are a bank administrator. Developers want to use coding agents, and you need to enforce the bank’s access rules. Let’s keep the demo to two simple requirements:

  • The sandbox can reach hrittikhere.com (standing in for the bank’s website) over HTTPS. Other destinations stay blocked.
  • The sandbox can use its project workspace, but it cannot read bank logs stored in your host home directory.

We’ll use fictional logs and a shell sandbox to check both boundaries without needing a model API. The results below describe what to expect when you run the demo.

1. Prepare the workspace and bank logs

Install sbx on macOS or Linux and sign in with an AI Governance licensed test user. You’ll also need permission to manage policies and audit delivery in a test organization:

sbx version
sbx login
sbx ls

Run these commands in your host terminal to create a workspace and a separate directory containing a fictional bank log:

mkdir -p \
  "$HOME/sbx-bank-demo/workspace" \
  "$HOME/sbx-bank-demo/bank-logs"

printf 'Fictional bank audit log: demo only\n' > \
  "$HOME/sbx-bank-demo/bank-logs/demo.log"


Next, enable AI Governance for your organization. In Docker Home, open AI Platform → Manage and turn on AI Governance: 

Figure 3

Figure 3. Enable AI Governance in Docker Home before configuring organization policies.

2. Set the bank’s access rules

Next, create the bank’s network and filesystem access rules.

Network policy

First, let’s look at network access. In a bank, you don’t want employees’ coding agents connecting to just any website. For this demo, we’ll allow the sandbox to reach only hrittikhere.com (standing in for the bank’s website) over HTTPS.

Once AI Governance is enabled, open AI Platform → Network access → Create policy and enter the following values:

Field

Value

Policy name

bank-demo-network

Scope

Organization

Decision

Allow

Destinations

hrittikhere.com:443

Protocol

TCP

Rule name (optional)

bank-demo-website

With this as the only applicable network allow rule, all other destinations remain blocked by default.

Figure 4

The curl checks below request headers without following redirects, so they need only hrittikhere.com:443. If you later add -L to follow a redirect to www.hrittikhere.com, allow that exact hostname on port 443 as well.

Filesystem policy

Next, let’s protect the bank’s logs. Employees may need a coding agent to work on a project, but that agent should not be able to read or modify sensitive logs in the home directory. We’ll allow access to the demo workspace and block access to bank-logs.

Open AI Platform → Filesystem access → Create policy.

Note: Use ~ in policy paths, not $HOME; environment variables are not expanded by the policy engine.

First, allow the project workspace with the values below. A writable workspace needs both Read and Write permissions for sandbox creation to succeed:

Field

Value

Policy name

bank-demo-filesystem

Scope

Organization

Rule Action

Allow

Filesystem path

~/sbx-bank-demo/workspace
~/sbx-bank-demo/workspace/**

Permissions

Read and Write

Rule name (optional)

bank-demo-workspace

In the same bank-demo-filesystem policy, add a second rule named bank-demo-logs to deny access to the protected logs:

Field

Value

Policy name

bank-demo-filesystem

Scope

Organization

Rule Action

Deny

Filesystem path

~/sbx-bank-demo/bank-logs
~/sbx-bank-demo/bank-logs/**

Permissions

Read and Write

Rule name (optional)

bank-demo-logs

The workspace allow rule covers workspace and its descendants; it does not include the sibling bank-logs directory. The logs are protected by the explicit deny rule.

Figure 5

Save the policies. You can also check their rules and scope in the Platform UI. Allow up to five minutes for policy sync, then inspect the active rules:

sbx policy ls --wide

Figure6

Figure 6. Active organization rules allow hrittikhere.com:443 and the workspace, and deny bank-logs mounts.

3. Check website access

Create a fresh sandbox with only the approved workspace:

sbx create --name bank-demo shell "$HOME/sbx-bank-demo/workspace"

From the host terminal, run the following requests inside the sandbox. The –max-time 15 option caps each request at 15 seconds, so a stalled request times out instead of hanging:

sbx exec bank-demo curl -fI --max-time 15 https://hrittikhere.com

The first request should return HTTP headers from the approved site:

Figure7

Figure 7. The approved HTTPS request to hrittikhere.com returns HTTP 200.

sbx exec bank-demo curl -fI --max-time 15 https://example.com

The second should be blocked:

Figure8

Figure 8. The request to example.com returns HTTP 403; the network log confirms the policy decision.

You can also check the network log to confirm that the failure came from policy enforcement:

sbx policy log bank-demo

The network log distinguishes allowed traffic from requests blocked by policy:

Figure 9

Figure 9. The network log records hrittikhere.com:443 as allowed and example.com:443 as blocked.

4. Check that bank logs stay private

Run both commands below from your host terminal so $HOME expands to the same host path. First read the fictional log on the host, then request that path inside the sandbox:

cat "$HOME/sbx-bank-demo/bank-logs/demo.log"

Figure10

Figure 10. The host can read the fictional bank log.

sbx exec bank-demo cat "$HOME/sbx-bank-demo/bank-logs/demo.log"

The sandbox command should fail with “No such file or directory” because bank-logs is not mounted. This checks filesystem isolation; the next command tests mount-policy enforcement:

Figure11

Figure 11. The unmounted bank-logs path returns “No such file or directory” inside the sandbox.

Now check whether a developer could add the logs as a read-only mount:

sbx create --name bank-demo-denied shell \  "$HOME/sbx-bank-demo/workspace" \  "$HOME/sbx-bank-demo/bank-logs:ro"

Creation should fail with a mount policy denied error:

Figure12

Figure 12. The bank-demo-logs rule rejects the read-only mount with a Read policy denial.

A read-only mount still requires Read permission. The bank-demo-logs rule denies Read, so :ro does not bypass the policy.

5. Review the evidence in Docker Home

You can also review the policy decisions in the Docker Home UI under AI Platform → Audit logs → Audit events. Filter by the test user and time, then inspect the denied mount request for bank-logs. Look for filesystem_mount, the deny decision, the resource path, and the user. If Cloud delivery was disabled during the test, enable it and repeat the mount request.

Figure 13

Figure 13. Audit events record the denied bank-logs mount and allowed workspace mounts.

These audit records capture governance decisions, not every file operation or the agent’s prompts and output. sbx policy log shows network traffic; use the audit view for the mount decision. Docker also supports local JSONL audit files and Cloud delivery for hosted search, CSV export, and SIEM forwarding.

The bank now has a simple access-control check: the approved site is reachable, an unapproved site is blocked, and protected logs cannot be read or mounted. This supports the bank’s compliance work; it does not establish compliance on its own.

6. Clean up

After reviewing the results, remove the sandbox:

sbx rm bank-demo

Output:

❯ sbx rm bank-demo
Remove sandbox 'bank-demo'? This cannot be undone. (y/N): y
Deleting sandbox bank-demo...
Sandbox 'bank-demo' removed


You can then remove the fictional demo files and the test policies.

Best practices for Docker AI Governance

Putting AI governance policies in place is only the first step. The real challenge is making sure those policies are practical, consistently enforced, and easy to verify as more developers start using coding agents. A few good practices can help teams reduce unnecessary access, apply the right restrictions to different workloads, and maintain visibility into what agents are doing. Here are five recommendations to keep in mind when rolling out Docker AI Governance across your organization:

  1. Use specific hostnames, not wildcards. For example, allow api.github.com:443 rather than **.github.com. A broad wildcard lets agents reach services you never meant to approve. Also avoid the Open preset, which allows every destination.
  2. Test a rule before you roll it out. Check what a policy would do without running an agent. For example, sbx policy check network blocked.example.com shows whether that destination would be allowed or blocked.
  3. Use read-only mounts for reference data. If an agent only needs to read docs or sample data, mount that folder with :ro. The agent can use the files but can’t change or delete them.
  4. Use team policies for different risk levels. Set a policy’s scope to Teams instead of Organization. For example, the payments team can get a stricter network list than an internal tools team. Map Docker teams to your identity provider groups so access follows people as they move teams.
  5. Send audit records where your security team already looks. Turn on SIEM forwarding, which requires cloud delivery. Use CSV export when an auditor asks for proof that a rule was enforced over a given period.

Repeat the checks in other environments

The same questions apply when agents run in continuous integration (CI) jobs or other environments: which host files can they access, which services can they reach, and which credentials can they use? Check which controls each environment supports and repeat the tests there. A policy on a developer’s laptop does not automatically protect an unrelated container or production cluster.

For security teams, useful evidence connects a licensed, signed-in user to an active policy, a blocked action, and a record they can find. Check sign-in enforcement and license coverage alongside policy. An empty audit dashboard may mean some sessions were never covered.

Start with a boundary you can verify

Sandboxing limits an agent’s access on one machine. Governance applies shared rules to managed sessions across the organization. Providers will fix individual failures, but the next failure may look different. Limit which files, services, and credentials it can affect, then test those limits and check the records.

Start with the local sandboxing walkthrough, inspect your rules with sbx policy ls, and run the bank demo with your platform or security team. Use the Docker AI Governance documentation and announcement to plan a small rollout. Expand it after you have checked both the blocked actions and the audit records.

Read the whole story
alvinashcraft
1 hour ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories