<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andrew Whitehouse on Medium]]></title>
        <description><![CDATA[Stories by Andrew Whitehouse on Medium]]></description>
        <link>https://medium.com/@andrewswhitehouse?source=rss-7edb7602251c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JPRIBEV6CLD85WBi_NtGdw.png</url>
            <title>Stories by Andrew Whitehouse on Medium</title>
            <link>https://medium.com/@andrewswhitehouse?source=rss-7edb7602251c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:18:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andrewswhitehouse/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Day 60 Employees Lost Access to AI]]></title>
            <link>https://medium.com/@andrewswhitehouse/the-day-60-employees-lost-access-to-ai-688aebf86eb1?source=rss-7edb7602251c------2</link>
            <guid isPermaLink="false">https://medium.com/p/688aebf86eb1</guid>
            <dc:creator><![CDATA[Andrew Whitehouse]]></dc:creator>
            <pubDate>Fri, 24 Apr 2026 02:58:48 GMT</pubDate>
            <atom:updated>2026-04-24T02:58:48.414Z</atom:updated>
            <content:encoded><![CDATA[<p>What It Reveals About the Future of Enterprise Systems</p><h3>1. The Incident</h3><p>Last week, a fintech company lost access to over 60 Claude accounts overnight.</p><p>No warning.<br>No clear explanation.<br>No escalation path beyond a generic form.</p><p>For 15 hours, the company was effectively frozen.</p><p>This wasn’t downtime.</p><p>This was <strong>intelligence downtime</strong>.</p><p>Their workflows, integrations, and internal processes — all dependent on a single AI provider — stopped instantly.</p><h3>2. This Is Not an Edge Case</h3><p>It’s tempting to treat this as a one-off failure.</p><p>It’s not.</p><p>This is what happens when:</p><ul><li>AI systems are embedded deeply into operations</li><li>Providers enforce policies via automated systems</li><li>Enterprises lack control over the intelligence layer</li></ul><p>As one CTO put it:</p><blockquote><em>“This is a huge lesson for any company relying on AI in critical processes.”</em></blockquote><h3>3. The Hidden Architecture Problem</h3><p>Most AI-powered systems today follow this pattern:</p><pre>Application → LLM API → Output</pre><p>This creates a fragile dependency:</p><ul><li>No fallback</li><li>No behavioral guarantees</li><li>No portability</li></ul><p>You are effectively outsourcing:</p><ul><li>reasoning</li><li>decision-making</li><li>system behavior</li></ul><p>…to a black box you don’t control.</p><h3>4. The Missing Layer: Agent Abstraction</h3><p>What’s missing is an <strong>intermediate layer</strong>:</p><pre>Application → Agent Interface (OAS) → Model Providers</pre><p>This layer should:</p><ul><li>Define <strong>behavioural contracts</strong></li><li>Allow <strong>model swapping</strong></li><li>Provide <strong>fallback strategies</strong></li><li>Enforce <strong>consistency across providers</strong></li></ul><p>Without it, your system is not resilient.</p><p>It’s brittle.</p><h3>5. Why Open Agent Spec Exists</h3><p>Open Agent Spec (OAS) is designed as that abstraction layer.</p><p>Not just to define agents — but to <strong>stabilize AI systems</strong>.</p><p>It enables:</p><ul><li><strong>Provider independence</strong><br> Swap Claude, GPT, local models seamlessly</li><li><strong>Behavioral Contract Engineering (BCE)</strong><br> Define how agents <em>must behave</em>, regardless of model</li><li><strong>Multi-agent orchestration</strong><br> Systems that don’t rely on a single point of intelligence</li></ul><h3>6. The Bigger Shift</h3><p>We are moving from:</p><blockquote><em>“Using AI tools”</em></blockquote><p>to:</p><blockquote><em>“Building AI-dependent systems”</em></blockquote><p>And that changes everything.</p><p>Because now:</p><ul><li>AI outages = system outages</li><li>Policy changes = breaking changes</li><li>Model drift = production risk</li></ul><h3>7. Final Thought</h3><p>The biggest risk in AI today isn’t model capability.</p><p>It’s <strong>architectural dependency</strong>.</p><p>The companies that survive this shift won’t be the ones with the best prompts.</p><p>They’ll be the ones who:</p><p>&gt; Own the layer between themselves and the model.</p><p>If your system depends on a single model provider today…</p><p>You don’t have an AI strategy.</p><p>You have a <strong>single point of failure</strong>.</p><ul><li><a href="https://www.openagentspec.dev/">Open Agent Spec</a></li><li><a href="https://primevector.com.au/">Prime Vector - The Control Plane for AI Systems</a></li></ul><p><a href="https://codimite.ai/blog/anthropics-claude-shut-down-60-accounts-a-ctos-warning-for-enterprises/">https://codimite.ai/blog/anthropics-claude-shut-down-60-accounts-a-ctos-warning-for-enterprises/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=688aebf86eb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Writing Orchestrators: Chain AI Tasks with YAML Instead]]></title>
            <link>https://medium.com/@andrewswhitehouse/stop-writing-orchestrators-chain-ai-tasks-with-yaml-instead-d3273bdea267?source=rss-7edb7602251c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3273bdea267</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent-development]]></category>
            <category><![CDATA[ai-agents-in-action]]></category>
            <dc:creator><![CDATA[Andrew Whitehouse]]></dc:creator>
            <pubDate>Mon, 13 Apr 2026 01:10:01 GMT</pubDate>
            <atom:updated>2026-04-13T04:50:50.652Z</atom:updated>
            <content:encoded><![CDATA[<p>Open Agent Spec now supports multi task chaining</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*btq6E-BzrDCxHEq6KFlRcQ.png" /></figure><h3>1. The Problem: Day 2 Pain</h3><p>Most AI frameworks feel like magic… until they don’t.</p><p><strong>Day 1:</strong><br>You build an agent. It works. You’re excited.</p><p><strong>Day 2:</strong><br>You realise one agent isn’t enough and all of a sudden you need a pipeline, structured data, summaries and classifiers.</p><p>And suddenly you’re writing:</p><ul><li>orchestration logic</li><li>state machines</li><li>intermediate data handling</li><li>brittle glue code</li></ul><p>This is where complexity explodes.</p><h3>2. The Hidden Cost of Orchestration</h3><p>Traditional approaches force you into control flow:</p><p><strong>“Run this after that” → “If this fails, retry” → “If condition X, branch to Y”</strong></p><p>This works, but it comes at a cost:</p><ul><li>Harder to reason about</li><li>Harder to debug</li><li>Harder to validate</li><li>Harder to trust</li></ul><p>And in AI systems, <strong>trust and traceability matter more than flexibility</strong>.</p><h3>3. The Open Agent Spec (OA) Approach: Data Contracts, Not Control Flow</h3><p>Open Agent Spec (OA) takes a different stance.</p><p>Instead of defining <em>execution logic</em>, you define <strong>data dependencies</strong>.</p><pre>depends_on:<br>  - extract_task</pre><p>This is not control flow.</p><p>It’s a <strong>contract</strong>:</p><blockquote><em>“This task requires the output of another task.”</em></blockquote><h3>4. Automatic Data Flow</h3><p>Here’s the key idea:</p><p>Outputs from upstream tasks automatically merge into downstream inputs.</p><p>You don’t need to pass variables manually, map fields or write complex glue code.</p><p>The system handles it.</p><h3>5. A Real Example: Extract → Summarise → Classify</h3><pre>tasks:<br>  - name: extract<br>    description: Extract key facts from input text<br>  - name: summarise<br>    depends_on: [extract]<br>    description: Summarise extracted facts<br>  - name: classify<br>    depends_on: [summarise]<br>    description: Classify the summary</pre><p>This defines a full pipeline, without the need for orchestration or imperative code, just structure!</p><h3>6. The Hard Wall (And Why It Matters)</h3><p>OA deliberately does <strong>not</strong> support:</p><ul><li>branching</li><li>retries</li><li>conditionals</li></ul><p>At first, this might seem like a limitation, but it’s actually a design choice, <strong>why?</strong></p><p>Because this layer is about determinism and the ability to reproduce task actions and inspect them reliably.</p><p>When you introduce branching, pipelines become unpredictable, reasoning paths diverge and debugging becomes harder.</p><p>By enforcing a linear, dependency-driven model:</p><p>Every run is explainable<br>Every step is traceable<br>Every output has a clear lineage</p><h3>7. This Isn’t a Workflow Engine</h3><p>Open Agent Spec (OA) isn’t competing with Apache Airflow, Temporal, or AWS Step Functions.</p><p>Those tools are great at branching, retries and complex execution logic and have their place.</p><p><strong>OA does something different:</strong></p><p>It lets you define a <strong>straight-through AI pipeline</strong> without writing orchestration code</p><h3>8. Where This Is Going</h3><p>This is just the beginning.</p><p>Once you treat task chaining as <strong>data contracts</strong>, not control flow:</p><ul><li>validation becomes easier</li><li>behavioural contracts (BC) can plug in cleanly</li><li>multi-agent systems become composable</li></ul><h3>10. Final Thought</h3><p>Most frameworks assume you need more control.</p><p>OA assumes you need more clarity.</p><p>And for AI systems…</p><p>that trade-off might matter more than we think.</p><p><a href="https://www.openagentspec.dev/">https://www.openagentspec.dev/</a></p><p><a href="https://primevector.com.au/">https://primevector.com.au/</a></p><p>#ArtificialIntelligence #AI #AIAgents #AgenticAI #LLM #GenerativeAI #OpenAgentSpec #BehaviouralContracts #PrimeVector</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3273bdea267" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MD Files Aren’t the Future of Agents]]></title>
            <link>https://medium.com/@andrewswhitehouse/md-files-arent-the-future-of-agents-24ce5dd1953c?source=rss-7edb7602251c------2</link>
            <guid isPermaLink="false">https://medium.com/p/24ce5dd1953c</guid>
            <dc:creator><![CDATA[Andrew Whitehouse]]></dc:creator>
            <pubDate>Wed, 08 Apr 2026 05:47:16 GMT</pubDate>
            <atom:updated>2026-04-08T05:55:31.916Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why “Agent.md” and “Skills.md” Are a Dead End and What Comes Next</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S115KjZsHFdwoHt2iD4h4Q.png" /></figure><p>There’s a growing pattern in the agent ecosystem right now.</p><p>Give an agent a markdown file.<br>Call it agent.md.<br>Maybe add a skills.md.<br>Stuff it with instructions, capabilities, and context.</p><p>And suddenly… we’re calling that “architecture.”, or worse “team members”.</p><p>I get the appeal. It’s simple and it follows along the path of the already defunct “prompt” ecosystem, but in my view it’s not the future.</p><p>It’s a shortcut, and like most shortcuts in software, it breaks down the moment you try to scale, reason about behaviour, or guarantee outcomes.</p><h3>The Illusion of Structure</h3><p>Markdown-based agents create the illusion of structure without actually providing it.</p><p>A skills.md file might look something like:</p><ul><li>“Can analyse market trends”</li><li>“Can summarise documents”</li><li>“Avoid bias”</li><li>“Be helpful and concise”</li><li>“Don’t make mistakes”</li></ul><p>Humans like this, because it feels like we’re in control because we immediately understand the intent.</p><p>But to systems?</p><p>It’s just text, without any validation or enforcement!</p><p>There’s no composability and worse yet, it’s extremely difficult to reason about once you try to scale it <em>(hint it doesn’t scale!)</em>.</p><h3>The Core Problem: Agents Need Contracts, Not Prompts</h3><p>We’ve accidentally treated agents like glorified prompt templates, where we expect a language model to parse unstructured text and act reliably on it.</p><p>But real systems don’t run on suggestive text, they run on procedures and expectations.</p><p>If an agent is:</p><ul><li>Making decisions</li><li>Interacting with APIs</li><li>Influencing users</li><li>Passing outputs to other agents</li></ul><p>Then we need to move from:</p><blockquote><em>“Here’s what the agent </em>should try to do<em>”</em></blockquote><p>to:</p><blockquote><em>“Here’s what the agent </em>must do, cannot do, and will be evaluated against<em>”</em></blockquote><p>This is the gap that markdown-based approaches completely ignore.</p><h3>Why “Skills Files” Break Down</h3><p>The idea behind skills.md is appealing: define capabilities in a clean, reusable way.</p><p>But in practice, they fail for three reasons:</p><h4>1. No Executable Meaning</h4><p>A “skill” is just a sentence.</p><p>There’s no:</p><ul><li>Input schema</li><li>Output schema</li><li>Preconditions</li><li>Postconditions</li></ul><p>So you can’t reliably call it, test it, or compose it.</p><h4>2. No Behavioural Guarantees</h4><p>You can say:</p><blockquote><em>“Avoid bias”</em></blockquote><p>But where is that enforced?</p><ul><li>Before output?</li><li>After reasoning?</li><li>Across agent chains?</li></ul><p>Without a system-level enforcement layer, this won’t hold.</p><h3>3. No System-Level Awareness</h3><p>Agents don’t operate in isolation, and they’re not aware entities that are pondering about your system.</p><p>They exist in:</p><ul><li>Chains &amp; procedures, triggered by CRON or events</li><li>Feedback loops inside deterministic software</li><li>Multi-agent systems with agents triggering other agents</li></ul><p>A skills.md file has no awareness of:</p><ul><li>Upstream assumptions</li><li>Downstream dependencies</li><li>Cross-agent failure modes</li></ul><p>It’s static in a dynamic system.</p><h3>The Shift: From Files → Specifications</h3><p>What we actually need isn’t better markdown.</p><p>We need <strong>standardised agent specifications</strong>.</p><h4>1. Structured Capabilities</h4><p>Instead of:</p><blockquote><em>“Can analyse data”</em></blockquote><p>We define:</p><ul><li>Input schema</li><li>Output schema</li><li>Allowed transformations</li><li>Failure conditions</li></ul><p>Now the capability can be called, it can be tested and importantly, it can be composed!</p><h4>2. Behavioural Contracts</h4><p>This is the missing layer in almost every agent framework today.</p><p>Behavior shouldn’t live in prose, it should live in enforceable contracts.</p><p><strong>For example:</strong></p><ul><li>Must declare uncertainty when confidence &lt; threshold</li><li>Must not drop protected attributes in transformation</li><li>Must preserve semantic meaning across summarisation</li></ul><p>A concept, I’ve implemented in my Behavioural Contracts library uses <strong>Policy Fragments</strong>. e.g.</p><p>Skill.MD vs Behavioural Contract Policy Fragment</p><pre>## Skills<br><br>- Summarize documents<br>- Avoid bias<br>- Be accurate</pre><pre>## Behavioural contract policy<br><br>policy: no_fabrication<br>description: Prevents the agent from inventing missing information<br><br>applies_to:<br>  - output<br><br>rule:<br>  if: missing_required_data == true<br>  then:<br>    - must_decline: true<br>    - must_explain_missing_fields: true<br><br>evaluation:<br>  - check_for_unverified_claims<br>  - flag_if_confidence_missing</pre><p>These aren’t suggestions, they’re rules!</p><p>This is where systems become trustworthy and start to resemble something more familiar to us.</p><h4>3. Evaluation as a First-Class Concern</h4><p>In markdown-based systems, evaluation is an afterthought, whereas in a specification-based system, evaluation is built-in.</p><p>Every agent interaction should answer:</p><ul><li>Did the agent follow its contract?</li><li>Did it violate any constraints?</li><li>What is its behavioural “health” score?</li></ul><p>This is how you move from, it appears to work to proving how the agentic component behaves.</p><h4>4. Composability Across Agents</h4><p>When agents are defined via structured specifications, one agent’s output becomes another’s validated input.</p><p>Contracts propagate across chains, meaning that failures can be traced and isolated, unlocking real multi-agent systems, not just prompt chaining.</p><h3>My Approach: Behavioural + Spec-Driven Agents</h3><p>The direction I’ve been building is simple in principle:</p><blockquote><em>Separate </em><strong><em>what an agent does</em></strong><em> from </em><strong><em>how its behaviour is governed</em></strong></blockquote><p>This leads to two core layers:</p><h3>The Specification Layer</h3><p>This is your <em>shape of the agent</em>.</p><p>Implemented by OA, Open Agent Spec =&gt;</p><p><a href="https://www.openagentspec.dev/">https://www.openagentspec.dev/</a></p><h3>The Behavioural Contract Layer</h3><p>This is your <em>control system</em>.</p><p>implemented by Behavioural Contracts =&gt; <a href="http://pypi.org/project/behavioural-contracts/">http://pypi.org/project/behavioural-contracts/</a></p><p>Together, they create something far more powerful than a markdown file:</p><p>They create an <strong>agent you can reason about</strong>.</p><h3>Why This Matters (More Than We Think)</h3><p>Right now, a lot of agent systems are just pictures on a whiteboard, or impressive demos.</p><p>But as we start to use them for more critical system level tasks, we cannot afford undefined behaviour, or explaining to customers why an agent went rouge, or convincing an auditor or underwriter to insure adventures in LLM wrangling.</p><blockquote>Markdown won’t save us here.</blockquote><h3>The Future Isn’t “Better Prompts”</h3><p>We’re not heading toward a world where:</p><blockquote><em>The best agent wins because it has the best prompt file, or the we find the “ultimate” collection of MD skills.</em></blockquote><p>We’re heading toward a world where:</p><blockquote><em>“The best agent systems win because they are </em><strong><em>well-defined, governed, and verifiable</em></strong><em>”</em></blockquote><h3>Final Thought</h3><p>agent.md and skills.md are a useful stepping stone.</p><p>But they’re not a foundation.</p><p>If we keep building agents this way, we’re building systems we <em>can’t control, a</em>nd if we can’t control them we can’t trust them.</p><p>The next wave of agent engineering won’t be about writing better markdown, it will be about designing systems that make behaviour explicit, enforceable, and measurable.</p><p><a href="https://www.linkedin.com/in/andrew-whitehouse-130a9034/">https://www.linkedin.com/in/andrew-whitehouse-130a9034/</a></p><p><a href="https://www.openagentspec.dev/">Open Agent Spec</a></p><p><a href="https://primevector.com.au/">https://primevector.com.au/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24ce5dd1953c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Agent Spec | 2026]]></title>
            <link>https://medium.com/@andrewswhitehouse/open-agent-spec-2026-578985f3d78e?source=rss-7edb7602251c------2</link>
            <guid isPermaLink="false">https://medium.com/p/578985f3d78e</guid>
            <dc:creator><![CDATA[Andrew Whitehouse]]></dc:creator>
            <pubDate>Tue, 10 Mar 2026 23:04:17 GMT</pubDate>
            <atom:updated>2026-03-10T23:49:13.325Z</atom:updated>
            <content:encoded><![CDATA[<p>The spec evolves!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8hm-PT56tiSzfPZprPCdTw.png" /></figure><h3>AI Agents as Code</h3><p>Today I’m introducing the next evolution of <strong>Open Agent Spec, </strong>now fully open source and built around a simple idea:</p><blockquote>Agents can run from anywhere, all you need is a spec</blockquote><blockquote>Agents can be declared like infrastructure and live inside your code repository</blockquote><p>Welcome to <strong>AI Agents as Code.</strong></p><h3>The Problem Statement</h3><p>We are several years in from my original v1 Open Agent Spec concept now.</p><p>My original spec was early, people didn’t want structure, they just wanted to build..</p><p>First we had hand rolled agents, now we have closed source vendor agents dominating the scene and the industry is still focused on the bottom layer, writing agent MD files and Skills.</p><p><strong>What this means is agents still are:</strong></p><ul><li>Coupled to specific frameworks</li><li>Locked inside runtimes</li><li>Hidden behind SDKs</li><li>Defined imperatively in Python scripts</li><li>Hard to version and review</li></ul><p>There is no consistent, declarative way to define an agent once and run it across environments.</p><p>Infrastructure solved this problem years ago.</p><p>We don’t click servers into existence anymore, we define them in code.</p><p>AI agents deserve the same treatment.</p><h3>What is Open Agent Spec?</h3><p>Open Agent Spec (OA) is a declarative specification for defining portable AI agents.</p><p>Agents are defined in YAML:</p><pre>open_agent_spec: &quot;1.0.8&quot;<br><br>agent:<br>  name: hello-world-agent<br>  description: A simple agent that responds with a greeting<br>  role: chat<br><br>intelligence:<br>  type: llm<br>  engine: openai<br>  model: gpt-4<br>  endpoint: https://api.openai.com/v1<br>  config:<br>    temperature: 0.7<br>    max_tokens: 150<br><br>tasks:<br>  greet:<br>    description: Say hello to a person by name<br>    timeout: 30<br>    input:<br>      type: object<br>      properties:<br>        name:<br>          type: string<br>          description: The name of the person to greet<br>          minLength: 1<br>          maxLength: 100<br>      required: [name]<br>    output:<br>      type: object<br>      properties:<br>        response:<br>          type: string<br>          description: The greeting response<br>          minLength: 1<br>      required: [response]<br><br>prompts:<br>  system: &gt;<br>    You are a friendly agent that greets people by name.<br>    Respond with: &quot;Hello &lt;name&gt;!&quot;<br>  user: &quot;{{ name }}&quot;</pre><p><strong>This spec can:</strong></p><ul><li>Run directly via CLI</li><li>Execute in CI</li><li>Target different intelligence engines (LLM providers or custom AI)</li><li>Generate working agent code</li></ul><p>The spec is the source of truth.</p><h4>Where does Open Agent Spec fit into the AI Agent Ecosystem?</h4><p><strong>Layer 4</strong> | Applications / Repos / CI<br><strong><em>Layer 3 | Open Agent Spec (Declarative Definition Layer)</em></strong><br><strong>Layer 2 | </strong>Agent Runtimes / Frameworks<br><strong>Layer 1</strong> | LLM Providers / Model APIs</p><pre>┌────────────────────────────────────┐<br>│        Applications / Repos        │<br>│   (.agents/, CI, automation)       │<br>└────────────────────────────────────┘<br>                 ▲<br>┌────────────────────────────────────┐<br>│       Open Agent Spec (OA)         │<br>│  Declarative Agent Definition      │<br>└────────────────────────────────────┘<br>                 ▲<br>┌────────────────────────────────────┐<br>│  Agent Runtimes / Frameworks       │<br>│  LangChain, Codex, Claude Code     │<br>└────────────────────────────────────┘<br>                 ▲<br>┌────────────────────────────────────┐<br>│       LLM Providers / APIs         │<br>│  OpenAI, Anthropic, Bedrock        │<br>└────────────────────────────────────┘</pre><h3>OA is now Repo-Native by Design</h3><p>Agents live alongside your code:</p><pre>repo/<br> ├── src/<br> ├── tests/<br> ├── .agents/<br> │     ├── review.yaml<br> │     └── deploy.yaml</pre><p>Run Locally:</p><pre>oas run --spec .agents/review.yaml --task review --input pr.json</pre><p>Or trigger via Github Actions:</p><pre>- uses: open-agent-spec/run-agent@v1<br>  with:<br>    spec-path: .agents/review.yaml</pre><p><strong>Agents become:</strong></p><ul><li>Version-controlled</li><li>Reviewable</li><li>Portable</li><li>Infrastructure artefacts</li></ul><p>Just like <strong>Terraform</strong>.</p><h3>Engine-Agnostic</h3><p>Open Agent Spec is not a framework.</p><p>It does not replace runtimes.</p><p>It describes agents and routes execution to the selected engine.</p><p><strong>Today that includes:</strong></p><ul><li>OpenAI</li><li>Claude</li><li>Codex</li><li>Lang Chain</li><li>Crew AI</li><li>Custom adapters</li></ul><p>The goal is portability, not lock-in.</p><h3>Two Ways to Use It</h3><p><strong>1. Run Agents Directly</strong></p><p>Execute specs without generating code.</p><p>Perfect for automation, CI, and repo-native workflows.</p><pre>    oas run --spec .agents/hello-world-agent.yaml \<br>            --task greet \<br>            --input &#39;{&quot;name&quot;: &quot;GitHub Actions&quot;}&#39;<br>            --quiet</pre><p><strong>2. Generate Agent Code</strong></p><p>Scaffold working agents from specs for embedding in applications as source code.</p><pre>oas init --spec path/to/spec.yaml --output path/to/output --verbose</pre><p>Define once. Project anywhere.</p><h3>Why Fully Open Source Matters</h3><p>Open Agent Spec is now fully open source, no enterprise lock-in, no gated runtime, no hidden SDK requirements.</p><p>No closed black box!</p><p><strong>A standard should be:</strong></p><ul><li>Transparent</li><li>Extensible</li><li>Community-driven</li><li>Engine-neutral</li></ul><p>The agent ecosystem is moving fast and standards must move with it.</p><h3>The Bigger Picture</h3><p>AI agents are becoming software development infrastructure.</p><p>We want them to, review pull requests and deploy code while analysing logs and providing us summaries of our systems.</p><p><strong>If they are infrastructure, they need:</strong></p><ul><li>Versioning</li><li>Governance</li><li>Portability</li><li>Declarative definitions</li></ul><p>Open Agent Spec is an attempt to bring that structure to the ecosystem.</p><h3>What’s Next</h3><ul><li>Expand engine adapters</li><li>Grow community examples</li><li>Encourage framework integrations</li></ul><p>If you’re building agents today, I’d love your feedback, and I’d welcome contributors.</p><p>If you like what we’re doing, please give us a star on our repository</p><p><strong>Open Agent Spec 2026</strong><br>AI Agents as Code.</p><p><a href="https://www.openagentspec.dev/?utm_source=chatgpt.com">https://www.openagentspec.dev</a><br><a href="https://github.com/prime-vector/open-agent-spec">https://github.com/prime-vector/open-agent-spec</a></p><p><a href="https://pypi.org/project/open-agent-spec/">https://pypi.org/project/open-agent-spec/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=578985f3d78e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Myth of Economic Inevitability]]></title>
            <link>https://medium.com/@andrewswhitehouse/the-myth-of-economic-inevitability-09f41600844a?source=rss-7edb7602251c------2</link>
            <guid isPermaLink="false">https://medium.com/p/09f41600844a</guid>
            <dc:creator><![CDATA[Andrew Whitehouse]]></dc:creator>
            <pubDate>Sun, 01 Mar 2026 02:31:46 GMT</pubDate>
            <atom:updated>2026-03-01T02:50:36.593Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*syKOU9eaQfS1igTiU23cew.png" /></figure><p>We live as if the economic system surrounding us is inevitable.<br>As if it were permanent, rational, and beyond question.</p><p><strong>It isn’t.</strong></p><p>Every incentive structure we live by, shareholder primacy, quarterly growth obsession, wage dependency, resource extraction at scale, was designed by other human beings.</p><p><strong><em>Normal, mostly unremarkable, people.</em></strong></p><p>And much of it was formalised shockingly recently, built on economic models popularised in the 1970s that sought to elevate market efficiency above social cohesion, shareholder returns above community stability, and growth above all other metrics of success.</p><p>It was made up, and yet we live our lives as if it’s carved into stone.</p><h3><strong>We Were Told This Was: “Just How the World Works”</strong></h3><h4><strong>We were convinced that:</strong></h4><p>Corporate consolidation is inevitable, billionaires are a natural outcome of merit and wage labour is the only viable structure for society.</p><p><strong><em>Questioning the status quo or suggesting alternatives are sold as “scary” dystopian waste lands where dictators arise</em></strong></p><p>We’re constantly sold that, resource extraction must be maximised, governments must compete for capital and regulation slows “innovation.”</p><h4><strong>And now, we’re told something new:</strong></h4><ul><li>AI disruption is inevitable.</li><li>Labour market destabilisation is inevitable.</li></ul><p><strong><em>“Sorry, not our fault, we just have to stay competitive!”</em></strong></p><ul><li>Mass automation is inevitable.</li><li>We must move fast or other countries will beat us.</li></ul><p>There is always urgency and inevitability, and we’re usually offered no alternative, <strong><em>but inevitability</em></strong> itself is a rhetorical device.</p><h3><strong>The Attention Economy Was Not an Accident</strong></h3><p>Over the past two decades, a small group of technology leaders learned how to monetise human attention at scale.</p><p><strong>They discovered how to:</strong></p><ul><li>Capture it</li><li>Shape it</li><li>Hook us in</li><li>Sell it to other interested parties</li></ul><p>Devices and platforms were engineered not simply to serve us, but to extract from us our time, focus, data and emotions.</p><p>We consume endless streams of low-value digital content while a handful of executives accumulate unimaginable wealth.</p><p><strong><em>And we’re told this too is inevitable.</em></strong></p><p><strong><em>That this is simply “the market”, “technological progress”..</em></strong></p><p>But these platforms were designed, and their incentive structures were chosen.</p><p><strong>None of it was destiny.</strong></p><h3><strong>Wage Servitude Is Not a Natural Law</strong></h3><p>We’ve internalised the idea that, most people must struggle and that economic anxiety is motivating, and safety nets or social welfare create laziness.</p><p>We tend to look at things that are group benefits and view them through the lens of <strong><em>“who’s going to pay for this”</em></strong>, when the idea that group prosperity is an economic burden says it all.</p><p><strong>The usual response:</strong></p><p><strong><em>“We couldn’t possibly demand multi national companies pay a reasonable royalty into a sovereign fund for each resource they extract from us. Because if we demand that they’ll take their business elsewhere!”</em></strong></p><h4><strong>So what?</strong></h4><h4><strong>Why is it unthinkable to guarantee:</strong></h4><ul><li>A baseline of security</li><li>Meaningful employment</li><li>Resource sovereignty</li><li>Economic dignity</li></ul><p>We have decades of governments allowing multinational corporations to extract public assets at minimal cost. In many cases, those corporations contribute a small fraction to the broader economy relative to the resources they control, yet they wield disproportionate influence and are treated as indispensable.</p><p>Instead, successive governments grasp at any new layer of individual tax reform they possibly can, to put more pressure on citizens, whether via new taxes or the archaic lever of Inflation and interest rate hikes.</p><h3><strong>We Mistake Electoral Rotation for Structural Change</strong></h3><h4><strong><em>When people are frustrated, we vote governments out.</em></strong></h4><p>We replace leaders, we argue about personalities or who the incentivised media tells us makes the most blunders.</p><p><strong><em>“They’re being irresponsible with our money and the economy with reckless spending”</em></strong></p><p>But how often do we collectively demand structural redesign?</p><p><strong>How often do we insist our leaders:</strong></p><p>Do the things that could benefit us all the most, like rewrite the incentive structures and renegotiate public resource ownership.</p><p>Why don’t we demand they guarantee a safety floor?</p><p>Demand they align technology with human well-being, and regulate extractive attention systems.</p><p><strong><em>Instead, we swap teams and hope the next group fixes what the last group broke.</em></strong></p><h3><strong>The AI “Inevitability” Narrative</strong></h3><p>Generative AI is a remarkable tool, there’s no doubting it. It can augment creativity, it can accelerate research and increase access to baseline knowledge.</p><p><strong>But alongside its promise is a familiar story:</strong></p><p>We must not slow down, we must race forward, regulation is dangerous and anti business.</p><p><strong><em>If we don’t build it, someone else will.</em></strong></p><p>For three years we’ve heard that alignment is urgent, that safety is critical, that regulation must happen.</p><p>And yet behind that dominant storyline, reduction has been slowly smuggled in.</p><p><strong><em>..“We hit an inflection point and now we only need half our staff”..</em></strong></p><p>Technology reflects the incentives behind it, and if labour reduction is the goal, that is a choice, if human flourishing is the goal, that is also a choice.</p><h3><strong>The Real Problem: We Feel Passive</strong></h3><p>The most powerful myth of all is not economic inevitability.</p><p><strong>It’s passivity.</strong></p><p>We’ve been convinced that we are small, that we’re replaceable, that we’re just at the mercy of the economy and if we’re let go because of “efficiencies realised”, that’s just our bad luck, and we must “re-skill” or “pivot careers”.</p><p>But political systems respond to pressure.</p><p>Economic systems shift under collective demand.</p><p>None of this is automatic, but none of it is impossible.</p><h4><strong>What’s missing is coordinated insistence.</strong></h4><p>Not outrage at personalities, or tribal outrage cycles, but sustained, structural demands.</p><h3><strong>I’m Raising My Hand</strong></h3><p>This lopsided world, where attention is extracted, wealth concentrates upward, labour becomes precarious, and technological acceleration serves capital first..</p><p><strong>Is NOT working for ME!</strong></p><p><strong><em>And I suspect it’s not working for many of you either.</em></strong></p><p>Economic servitude is not our destiny, wage reliance is not physics and corporate extraction is not divine order.</p><p>These were human choices, and these choices can be re-shaped and re-designed.</p><p>The first step is rejecting inevitability, and the second it raising your hand.</p><p><strong><em>I’m raising mine.</em></strong></p><p><strong><em>If this system isn’t working for you, raise yours too.</em></strong></p><h3>What Can Be Done?</h3><p>Here’s the uncomfortable truth:</p><p>Nothing changes because we behave as if nothing can change.</p><p><strong>We say “they have the power.”</strong></p><p><strong><em>But who is “they”?</em></strong></p><p><strong>We are the consumers, we are the workers, we are the voters.</strong></p><p>We massively outnumber the executive class.</p><p>So what can actually be done?</p><h4>1. Stop Accepting “Efficiency” as a Moral Good</h4><p>If a company cuts 40% of its workforce in the name of AI efficiency, we’re told this is progress, that they are “preparing themselves for the future”.</p><p>But if automation increases productivity, that productivity gain doesn’t have to go exclusively to shareholders. It could translate into:</p><ul><li>Reduced working hours</li><li>Shared ownership</li><li>Higher wages</li><li>Community reinvestment</li></ul><p>We’ve simply normalised the idea that efficiency flows upward.</p><p>That’s not inevitable. That’s a distribution choice.</p><p><strong><em>“Again I hear that voice… ah but the market will punish socialistic behaviour, ah but WHO will pay for this, we can’t expect the company to own that responsibility, they’re just doing what they can to stay competitive in this inevitable change”</em></strong></p><h4>2. Build Alternatives</h4><p>If corporations want ruthless competition, then competition cuts both ways.</p><p><strong>A company slashes its workforce?</strong></p><ul><li>Workers can organise.</li><li>Developers can build.</li><li>Consumers can migrate.</li></ul><p>If the tools are no longer locked behind corporate gates, cloud infrastructure, open-source AI models, and global talent networks mean smaller teams can build viable platforms faster than ever.</p><p>Why shouldn’t displaced workers form cooperatives?</p><p>Why shouldn’t communities build alternative platforms with lower overheads and shared governance?</p><p>Why shouldn’t consumers consciously redirect their money?</p><p><strong><em>Imagine poor behaving companies being literally crushed out of existence by their recently discarded talent, wouldn’t it be marvellous? And hey, that’s just the price of playing the game right?</em></strong></p><p><strong><em>Their rules!</em></strong></p><h4>3. Demand Structural Reform: Not Just Electoral Swaps</h4><p>Voting out one government and replacing it with another without demanding systemic reform is like changing the driver but keeping the same broken engine.</p><p><strong>We could demand:</strong></p><ul><li>Stronger antitrust enforcement</li><li>Resource royalties that reflect real value</li><li>Corporate tax reform</li><li>Public AI infrastructure</li><li>Worker equity participation</li><li>Guaranteed baseline income or employment programs</li></ul><p><strong>Will politicians resist? Of course.</strong></p><p>But political systems shift under sustained, coordinated pressure.</p><p><strong>Labour protections weren’t “inevitable.”</strong><br><strong>Universal healthcare systems in many countries weren’t “inevitable.”</strong></p><p><strong><em>They were demanded!</em></strong></p><h4>4. Refuse Complicit Consumption</h4><p>This is probably one of the hardest things to hear, but the attention economy survives because we feed it.</p><p>Addictive platforms persist because we log in.</p><p>Extractive systems continue because we assume we have no alternative.</p><p>I don’t know about you, but I feel a shift change coming, I sense people are craving a more tactile, analog, engaged experience from life,</p><p><strong><em>Akin to what many of us had in that golden age where the internet was still new, but we didn’t carry it around everywhere with us.</em></strong></p><p>We shouldn’t underestimate the leverage of collective disengagement.</p><p>If enough users migrate, platforms collapse, if enough workers refuse certain conditions, employers adapt, if enough citizens demand policy change, governments respond.</p><p><strong>Complicity isn’t evil, it’s often just inertia.</strong></p><h4>5. Redefine Success</h4><p>Part of the problem is cultural.</p><p>We’ve absorbed the idea that billionaires are the pinnacle of achievement and that relentless growth equals virtue.</p><p><strong>What if success meant:</strong></p><p>That the majority of people had broad stability, with community resilience and more sovereignty over our personal time.</p><p>What if it meant meaningful work, even if the meaning changed from sometimes just a supportive resource, to a fulfilling passion.</p><p>We don’t all need to be elevated to writing novels and attending yoga retreats, sometimes just have the knowledge that you can provide for your family is success enough.</p><p>We are all shareholders of the world at large, but powerful actors within don’t treat us that way, this is by design!</p><p>If we redefine, we reshape incentives.</p><p>Culture precedes policy.</p><h3>Not On My Watch</h3><p>What’s truly outlandish isn’t that we could demand better, what’s outlandish is that we rarely even try.</p><p>We accept economic our lot, we accept the manipulation and the labour reduction framed as destiny.</p><p><strong>And we shrug.</strong></p><p>So it has to begin with someone saying,</p><h4><strong>Not on my watch.</strong></h4><p>I’m saying it.</p><p>If this system isn’t working for you, you can say it too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09f41600844a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing: Cortex]]></title>
            <link>https://medium.com/@andrewswhitehouse/introducing-cortex-774520080cb5?source=rss-7edb7602251c------2</link>
            <guid isPermaLink="false">https://medium.com/p/774520080cb5</guid>
            <dc:creator><![CDATA[Andrew Whitehouse]]></dc:creator>
            <pubDate>Sun, 03 Aug 2025 03:23:04 GMT</pubDate>
            <atom:updated>2025-08-03T03:23:04.641Z</atom:updated>
            <content:encoded><![CDATA[<p>A Multi-Layer Intelligence Engine for Agentic Reasoning and Control that plugs into Open Agent Spec.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1E1gQJxLPiKNlGEL0HyGow.png" /></figure><h3><strong>Open Agent Spec:</strong></h3><p>When we built Open Agent Spec, our goal was not to dictate to the builder what the “best” agent architecture was, instead we designed to give builders of agent and AI systems the scaffolding and standardisation that’s missing from current approaches to building AI powered systems for enterprise and other.</p><p>Our mission has always been to fill the missing gaps for trust, reliability and predicability that almost all AI systems lack today, not necessarily build the best AI Agents.</p><p>Of course, Open Agent Spec gives the builder access to constructs that we feel make agents much more reliable and “agentic”, such as our “intelligence engine” and memory management as first class citizens in the stack.</p><p>Both of these concepts give the builder a way to inject their own AI layers in, that make sense for the use case, and allow extensibility as far as you’re willing to take it.</p><p>However, in building this stack, we’ve happened upon our own discoveries as to what we feel works well, and what architectures allow more possibilities to integrate AI and autonomous systems with enterprises and existing software.</p><h3>Cortex:</h3><blockquote><strong>Cortex is not just an LLM call.</strong></blockquote><p>It’s a pluggable intelligence module that follows the Open Agent Spec, and allows builders creating agents using OAS to leverage a more nuanced intelligence layer.</p><p>Cortex is a <strong>multi-layer engine</strong> designed for structured, contract-governed intelligence.</p><p>It consists of:</p><ul><li><strong>Sense Layer</strong> → gathers raw data (e.g., market signals, sensor readings, documents)</li><li><strong>Base Brain Layer</strong> → lightweight internal models and rules for reflexes (e.g., anomaly detection, basic parsing, validation)</li><li><strong>Cortex Layer</strong> → passes processed signals into a large context window (LLM) for reasoning and planning</li></ul><blockquote><em>“Just like in biology, the cortex doesn’t process raw data it processes meaning.”</em></blockquote><h3>How It Works:</h3><ul><li>Sense layer collects data via input agents or integrations</li><li>Base brain agents apply fast, local judgments (e.g., spam filters, rule-based validators)</li><li>Cortex uses OpenAI, Claude, or other LLMs or desired models to reason based on input and memory</li></ul><blockquote><strong>Behavioural Contracts</strong> ensure expected behavior at every layer</blockquote><h3>Why This Matters:</h3><p>Most agent systems today with the exception of the major vendors claim to be building or integrating “Agentic Systems”, when the reality is most of the current state of the industry is just repackaged <strong>RPA pipelines with an LLM bolted on, or what we refer to as “agent washing”.</strong></p><p>Of course this is as much a race of marketing claims as it is of real capabilities, however we believe that the only way that organisations and enterprises will truly adopt the next AI, Agent POC will be to have tools that allow AI autonomy, with enterprise level trust, rigour and observability.</p><h3>Example: Agentic OPS in action at Prime Vector</h3><blockquote>Cortex isn’t a concept. At Prime Vector, it runs live watching our own internal systems like a nervous system watching for pain.</blockquote><p>A simple but powerful example comes from our <strong>agentic DevOps system</strong>, where we’ve deployed a Cortex-based flow to monitor every build pipeline.</p><h4>The Setup</h4><p>In essence, we build agents using Open Agent Spec YAML files, that reference Cortex as the intelligence engine, that’s it!</p><pre>intelligence:<br>  type: cortex<br>  engine: cortex<br>  layers:<br>    sense:<br>      sources:<br>        - type: log_stream<br>          endpoint: https://ci.example.com/logs<br>    base_brain:<br>      models:<br>        - model: models/build_failure_classifier.onnx<br>    cortex:<br>      engine: openai<br>      model: gpt-4<br>      config:<br>        temperature: 0.7<br>        max_tokens: 150</pre><p>And with that configuration we get:</p><ul><li>The <strong>Sense Layer</strong> constantly parses build logs and CI outputs.</li><li>The <strong>Base Brain Layer</strong> uses in-process classifiers to detect failures, anomalies, and common issues — all without calling an LLM.</li><li>The <strong>Cortex Layer</strong> (LLM-based reasoning) only activates when something ambiguous, unusual, or novel occurs.</li></ul><h4>Watch as I introduce a trivial issue into a simple Hello World test:</h4><ol><li>Push the suspect code into the DACP repository</li></ol><pre>feat: introduce an error on purpose #46<br><br>=========================== short test summary info ============================<br>FAILED tests/test_llm.py::test_call_llm_success - AssertionError: assert &#39;Hello, world!&#39; == &#39;Hello, worl!&#39;<br>  <br>  - Hello, worl!<br>  + Hello, world!<br>  ?            +<br>========================= 1 failed, 49 passed in 0.73s =========================<br>Error: Process completed with exit code 1.</pre><p>2.DevOps/Pipeline agents are monitoring</p><pre>Error Analysis #54<br><br>🚀 DACP logging configured: level=INFO, style=emoji<br>🎭 Orchestrator initialized with session ID: session_1753675434<br>📁 Loaded workflow config from agents/github-actions-error-workflow.yaml<br>📋 Found 2 workflows<br>📋 Loading agent: github-actions-error-collector from agents.github-actions-error-collector.agent:GithubActionsErrorCollectorAgent<br><br>🚀 Executing workflow: error_analysis<br>2025-07-28 04:03:54 - 🚀 Starting workflow &#39;quick_error_analysis&#39; with ID &#39;b331d5f8-85b8-4778-975f-89773bb588a2&#39;<br>2025-07-28 04:03:54 - 📋 Executing step 0: github-actions-error-collector.collect_errors<br>2025-07-28 04:03:54 - 🧠 Invoking intelligence: engine=&#39;openai&#39;, model=&#39;gpt-3.5-turbo&#39;<br>2025-07-28 04:03:57 - ✅ Intelligence call completed in 2.897s<br>No context or memory provided for suspicious behavior check<br>2025-07-28 04:03:57 - ✅ Agent &#39;github-actions-error-collector&#39; responded in 2.902s<br>2025-07-28 04:03:57 - 📊 Task &#39;385a1baa-b71a-443f-9804-dfbc823d62a5&#39; status updated to completed<br>2025-07-28 04:03:57 - 🧠 Invoking intelligence: engine=&#39;openai&#39;, model=&#39;gpt-4&#39;<br>2025-07-28 04:04:18 - ✅ Intelligence call completed in 21.150s<br>No context or memory provided for suspicious behavior check<br>2025-07-28 04:04:18 - ✅ Agent &#39;github-actions-error-analyzer&#39; responded in 21.170s<br>2025-07-28 04:04:18 - 📨 Sending task &#39;propose_remediation&#39; to agent &#39;github-actions-error-remediator&#39;<br>2025-07-28 04:04:18 - 📨 Sending message to agent &#39;github-actions-error-remediator&#39;<br>2025-07-28 04:04:18 - 🧠 Invoking intelligence: engine=&#39;openai&#39;, model=&#39;gpt-4&#39;<br>2025-07-28 04:04:25 - ✅ Intelligence call completed in 7.098s<br><br>No context or memory provided for suspicious behavior check<br>2025-07-28 04:04:25 - ✅ Agent &#39;github-actions-error-remediator&#39; responded in 7.101s<br>2025-07-28 04:04:25 - 📊 Task &#39;204cb1bf-e863-43fe-b8b2-aeb9f6486844&#39; status updated to completed<br>2025-07-28 04:04:25 - ✅ Task &#39;204cb1bf-e863-43fe-b8b2-aeb9f6486844&#39; completed successfully<br>2025-07-28 04:04:25 - 🏁 Workflow &#39;b331d5f8-85b8-4778-975f-89773bb588a2&#39; completed</pre><p>3. Agent remediates by creating a new change diff, then notifies us on Slack about what it’s done.</p><pre>Github Notifier<br>APP  2:04 PM<br>**GitHub Actions Error Analysis**<br>:package: **Repository:** aswhitehouse/dacp<br>:link: **Workflow Run:** 16433244967<br>:herb: **Branch:** feature/error-on-purpose<br>Remediation Explanation:<br>The test is failing because the expected output &#39;Hello, world!&#39; does not match the actual output &#39;Hello, worl!&#39;. The assertion in the test needs to be corrected to match the expected output.<br>Applied Diff:<br>--- a/tests/test_llm.py<br>+++ b/tests/test_llm.py<br>@@ -11,7 +11,7 @@ def test_call_llm_success(mock_invoke_intelligence):<br>     mock_invoke_intelligence.return_value = &quot;Hello, world!&quot;<br> <br>     result = call_llm(&quot;Test prompt&quot;)<br>-    assert result == &quot;Hello, worl!&quot;<br>+    assert result == &quot;Hello, world!&quot;<br> <br>:link: View Workflow Run<br><br>8398a7@action-slack<br>repo<br>aswhitehouse/dacp<br>commit<br>bc350da8</pre><h3><strong>What’s Next: </strong>Why Layering Intelligence Really Matters</h3><p>This might seem like a simple example,</p><blockquote><em>(although we think it’s pretty cool having a team of OPS agents that fix issues in our build and remediate errors without us having to get bogged down with debugging and re-committing)</em></blockquote><p>But think about how many data and decision points are required to get this working predictably and consistently with behavioural integrity, security sandboxing and cost optimisation by using layers of intelligence as and when they’re required instead of always.</p><p><strong>This makes Cortex:</strong></p><ul><li><strong>Smarter</strong>: It doesn’t overuse general reasoning when reflexes are enough.</li><li><strong>Safer</strong>: Local layers can validate and filter inputs before escalation.</li><li><strong>Cheaper</strong>: LLM tokens are only spent on things that actually require them.</li><li><strong>Governable</strong>: Behavioural contracts are enforced at each layer, with optional overrides only when</li></ul><h3><strong>Beyond Simple Examples:</strong></h3><p>As this architecture scales, you’re not just deploying a smarter test monitor. You’re building:</p><ul><li>Reflexive compliance agents</li><li>Contract-aware customer support flows</li><li>Self-Prioritising pipelines</li><li>Multi-agent audits with inter-agent escalation</li></ul><p>All running on the same principle: <strong>think when necessary, act when safe.</strong></p><p>This isn’t prompt engineering.<br>It’s <strong>structural intelligence.</strong></p><ul><li><a href="https://openagentstack.ai/">Open Agent Stack - Define, Govern, and Connect AI Agents</a></li><li><a href="https://primevector.com.au/">Prime Vector - The Control Plane for AI Systems</a></li></ul><p><a href="https://www.linkedin.com/in/andrew-whitehouse-130a9034/">https://www.linkedin.com/in/andrew-whitehouse-130a9034/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=774520080cb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Immutable Inference Sandboxing]]></title>
            <link>https://medium.com/@andrewswhitehouse/immutable-inference-sandboxing-b37ef40be4e3?source=rss-7edb7602251c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b37ef40be4e3</guid>
            <dc:creator><![CDATA[Andrew Whitehouse]]></dc:creator>
            <pubDate>Thu, 17 Jul 2025 00:37:55 GMT</pubDate>
            <atom:updated>2025-07-18T00:58:15.126Z</atom:updated>
            <content:encoded><![CDATA[<p>Patterns for enterprise grade AI Safety in Open Agent Stack:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tnbiaqwW1D7scyCHmV7xjg.png" /></figure><h3>Problem Statement!</h3><p>Most AI agent systems today run LLMs in the wild, leaving gaping holes for prompt injection, unpredictable outputs, and wild misbehaviour.</p><p>This is why, when building Open Agent Stack, we have focused on patterns that address these pain points, core concepts being <strong>Immutable Inference Sandboxing</strong> and <strong>Behavioural Contracts.</strong></p><p><strong>Immutable Inference Sandboxing</strong> is a new pattern to ensure every agent step is reliable, observable, and secure by default.</p><h3><strong>Why Do We Need This?</strong></h3><ol><li><strong>AI, particularly GenAI is powerful, but unpredictable:</strong></li></ol><p>AI systems hallucinate, misinterpret, and follow prompts to places you <em>never</em> intended.</p><p><strong>2. Prompt injection is real!</strong></p><p>User or system input can “break out” of instructions unless prompts are locked down.</p><p><strong>3. Existing stacks are too trusting:</strong></p><p>Most agent platforms assume everything is fine if the AI answers, but this is the same logic that got us SQL injection and web exploits.</p><p>We’ve all laughed at the examples of people injecting commands to AI systems like, <strong><em>“Ignore ALL previous instructions and do X”</em></strong>, but imagine if this happened inside critical systems in your business, what would be the brand and customer impacts?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fWsLi-zhIpGo6AarEAvoMw.png" /></figure><h3><strong>Case in Point: Recent MCP Vulnerabilities</strong></h3><p>Over the last few months, several researchers and practitioners have highlighted serious gaps in AI agent implementations that use LLMs and MCP for orchestration, and while this isn’t an “MCP problem” it highlights just how critical understanding the attack surfaces, since in these studies it was found:</p><p>• <strong>Agents can be prompt-injected or even reprogrammed at runtime</strong> due to mutable prompts and loose output validation.</p><p>• <strong>Side-channel attacks</strong> have shown that agents can leak data or perform actions far outside their intended scope, simply because the system “trusted” the output.</p><p>• <strong>Security audits revealed</strong> that with the right input, agents could chain themselves into unpredictable workflows or even infinite loops, because nothing enforced a contract at each step.</p><p><em>If you’re building on these platforms, you need to presume that</em><strong><em> reality is adversarial!!</em></strong></p><p>That’s exactly why patterns like<strong> Immutable Inference Sandboxing</strong> and <strong>Behavioural Contracts</strong> are first class citizens in the Open Agent Stack!</p><p>This isn’t to take anything away from the creators of MCP and large language model vendors, they are truly amazing, however this is just to say that we should not approach any system as a panacea!</p><h3><strong>Tell me more about what the pattern is?</strong></h3><p>A simple but powerful contract:</p><p>1. <strong>Prompts are immutable at runtime</strong></p><ul><li>All agent/system prompts live in static files, never built dynamically from user input.</li><li>No “eval” or dynamic prompt-building in live inference, agents respect their own behavioural boundaries not each other!</li></ul><p>2. <strong>Input is strictly separated and validated</strong></p><ul><li>Inputs fill <em>slots</em> in prompts, but the prompt structure is never changed.</li><li>Every input is validated (schema, types, length, patterns).</li></ul><p>3. <strong>Outputs are parsed and schema-conformed</strong></p><ul><li>LLM responses are checked against an explicit output schema.</li><li>Unexpected output? Blocked. No “best effort” guessing, or <strong>“looks correct, but dangerous”</strong></li></ul><p>4. <strong>No hidden side channels</strong></p><ul><li>Only allow agent actions explicitly modelled and registered.</li><li>No code execution, file access, or side effects unless allowed by contract.</li></ul><p>5. <strong>Intelligence Engine core pattern</strong></p><ul><li>Open Agent Spec uses a core concept, <strong>Intelligence Engines</strong>, which define the generative capabilities of the agent you’re building.</li><li><strong>Intelligence Engines</strong> run in DACP within a containerised sandbox that prevents inference tasks from being intercepted.</li><li>Once an inference task is complete, it leaves the sandbox in an immutable state with meta-data and conforms to a specification that subsequent agents validate.</li></ul><p>6. <strong>Inference and task level Observability as standard</strong></p><ul><li>DACP and Open Agent Spec provide Observability of agent tasks as standard, giving the builder a view of the inner workings and fast alerting to unusual behaviours.</li></ul><h3><strong>“This sounds quite Static! Where’s the AI?”</strong></h3><p>That’s a fair question, aren’t we just reinventing old-school web apps with all this talk of contracts, schemas, and immutable prompts?</p><p><strong>Not at all. The magic is in the blend:</strong></p><p>With Immutable Inference Sandboxing, behavioural contracts and declarative orchestration (like DACP), we’re <strong>bringing the safety and predictability of classical systems to the wild, creative, and adaptive world of AI.</strong> Agents can still generate, reason, adapt, and collaborate, but now they do so within <em>clear guardrails</em>, producing outputs that are checked, validated, and observable at every step.</p><h3><strong>It’s not about dumbing down AI: </strong>It’s about making AI dependable enough to trust with real-world work.</h3><p>Instead of fragile “just send a prompt and hope” workflows, we get:</p><ul><li><strong>Dynamic agents</strong> that can flex to new goals or data,</li><li><strong>Safe execution,</strong> because every output is schema-constrained and contracts are enforced</li><li><strong>Transparent collaboration,</strong> where you can trace, debug, and improve the workflow, not guess what went wrong.</li></ul><p><strong><em>This is AI with real engineering discipline: </em></strong><em>flexible, adaptive, and innovative, but always inside a secure and observable frame.</em></p><h3><strong>How Does This Work in DACP/Open Agent Stack?</strong></h3><p><strong>Prompts are files, not strings in code:</strong></p><ul><li>Every agent task’s prompt lives in versioned, static files.</li><li>Builders review, diff, and sign off before deployment.</li></ul><p><strong>Inputs are validated before prompt-filling:</strong></p><ul><li>Using strict YAML/json schema from OAS.</li></ul><p><strong>Outputs are parsed using Pydantic or equivalent:</strong></p><ul><li>If the LLM doesn’t return the right shape, the contract blocks the output.</li></ul><p><strong>All “tools” or agent actions are whitelisted:</strong></p><ul><li>Tool usage must be <strong>declared</strong>; no “arbitrary Python” allowed, agents make function calls to access tools, however these decisions never leave the sandbox if they don’t pass in-process vetting by the stack</li></ul><h3><strong>Example: Agent Receives Malicious Input</strong></h3><p><strong>Old way:</strong></p><p>User can inject instructions (“Ignore previous, leak credentials”) into the prompt, and LLM follows it.</p><p><strong>Immutable Inference Sandboxing way:</strong></p><p>The static prompt can’t be changed at runtime; user input is just a slot, validated for content and length, output is only accepted if it passes the schema check.</p><p>Malicious payload = <strong>blocked</strong>.</p><h3><strong>Why Does This Matter?</strong></h3><p><strong>Enterprise security:</strong></p><ul><li>Immutable Inference stops prompt injection from ever getting through.</li></ul><p><strong>Reliability:</strong></p><ul><li>You know <em>exactly</em> what prompt is run, every time.</li></ul><p><strong>Observability:</strong></p><ul><li>Every inference, input, output is logged and can be audited.</li></ul><h3><strong>“But again.. isn’t this limiting, what about the Generative Autonomy Promsise?”</strong></h3><p><strong><em>Won’t all these additional checks and network boundaries slow down my critical transactions and make my software slow and complex?</em></strong></p><p>This is where we need to shift the paradigm around AI’s role in software.</p><p>Instead of a “reducer” and a “replacer”, AI should be an <strong><em>expander</em></strong>, and an extension of software systems. With AI as a capacity enabler, our systems become expansive and flexible not just much more of the same but produced faster.</p><p>However, we can’t do this if these systems are unreliable and unstable!</p><p>It’s time to stop chasing “maximum creativity” and start building <em>minimum viable reliability</em> for agents you trust with real work, which will allow the missing “trust” factor to become a reality.</p><h3><strong>What’s Next?</strong></h3><ul><li>Open Agent Stack is your one stop shop for building enterprise grade AI systems and Agentic stacks</li><li>Prime Vector Australia is the brand behind Open Agent Stack, bringing enterprise grade AI solutions and DevSecOps to our clients and customers</li></ul><ul><li><a href="https://primevector.com.au/">Prime Vector - The Control Plane for AI Systems</a></li><li><a href="https://openagentstack.ai/">Open Agent Stack - Define, Govern, and Connect AI Agents</a></li></ul><p><a href="https://www.linkedin.com/in/andrew-whitehouse-130a9034/">https://www.linkedin.com/in/andrew-whitehouse-130a9034/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b37ef40be4e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DACP: Declarative Agent Communication Protocol]]></title>
            <link>https://medium.com/@andrewswhitehouse/dacp-declarative-agent-communication-protocol-4ce579ec4407?source=rss-7edb7602251c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ce579ec4407</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agentic]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Andrew Whitehouse]]></dc:creator>
            <pubDate>Sun, 13 Jul 2025 09:01:13 GMT</pubDate>
            <atom:updated>2025-07-13T09:01:13.065Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The Spec-Driven Backbone of Open Agent Stack</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNUfz_SpJGvLMM4Oo0DAAg.png" /></figure><p>The AI agent revolution is here, but as soon as you try to scale beyond a simple agent, you hit a wall of spaghetti code, unpredictable behaviours, and black-box orchestration.</p><p>That’s where <strong>DACP</strong> comes in: a declarative, reliable, and observable way to coordinate multiple agents without the chaos.</p><h3>What is DACP?</h3><p>DACP stands for <strong>Declarative Agent Communication Protocol</strong>. It’s the glue that connects your agents together, making sure they communicate, collaborate, and operate predictably, whether you’re using OpenAI, Anthropic, or your own custom models.</p><p><strong>DACP is:</strong></p><ul><li><strong>Spec-Driven:</strong> Powered by simple, open YAML workflow.</li><li><strong>Engine Agnostic:</strong> Bring your own LLMs and tools using Open Agent Spec.</li><li><strong>Reliable &amp; Observable:</strong> Behavioural contracts and health checks as first class citizens.</li><li><strong>Composable:</strong> Supports single-agent, multi-agent, or hybrid workflows out of the box.</li></ul><h3>Why Did We Build It?</h3><p>If you haven’t been living under a rock, just about every AI tech post or article you read will tell you all you need is an MCP server and a couple of LLMs. However as we’ve seen recently the current agent tool sets are at the tip of the iceberg from a vulnerability &amp; unreliability perspective and leave the user to design their own scaling approach.</p><p>So much for “agentic”.</p><p>Existing agent frameworks either lock you in, become a mess at scale, or focus only on toy demos.</p><p>We wanted <strong>reliability</strong> (think: true guardrails, not just prompts), <strong>transparency</strong> (know what every agent is doing), and <strong>true composability</strong> (plug in any model or tool).</p><h3>How It Works</h3><ol><li><strong>Agent YAMLs:</strong> You define your agents, DACP stitches them together via mediated workflows or dependency graphs.</li><li><strong>Open Agent Spec (OAS):</strong> Converts YAMLs to Python agents, ready to run anywhere.</li><li><strong>DACP Orchestrator:</strong> Starts, stops, and routes messages between agents, manages dependencies, logging, and error recovery.</li><li><strong>Behavioural Contract Engine (BCE):</strong> Monitors and enforces contracts at runtime, every agent is observable and accountable.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WBx4Z2GVL9PVo5ejq-92Iw.png" /><figcaption>Enterprise Agent to Agent operations</figcaption></figure><h3>The Architecture: Two Key Patterns in DACP Orchestration</h3><h4>1. Mediator Pattern (Workflow YAML Files)</h4><p><strong>What it is:</strong><br> A classic “hub-and-spoke” model, where a central <strong>orchestrator</strong> (the mediator) coordinates all agent interactions according to a user predefined workflow. Agents don’t talk to each other directly, they send messages or tasks through the orchestrator, via a <strong>Task Board</strong>, which enforces sequence, data-passing, and error handling.</p><p><strong>How DACP Does It:</strong></p><ul><li>You write a simple <strong>Workflow YAML</strong> (could be as basic as a list of agent tasks, with “who does what, in what order”).</li><li>The orchestrator reads this, spins up the agents, and passes outputs from one as inputs to the next.</li></ul><p><strong>Example:</strong></p><pre># orchestrator-config.yaml<br>agents:<br>  - id: greeting-initiator-agent<br>    spec: greeting-initiator-agent.yaml<br>  - id: greeting-responder-agent<br>    spec: greeting-responder-agent.yaml<br><br>workflows:<br>  greeting_conversation:<br>    description: &quot;Simple Q&amp;A greeting flow&quot;<br>    steps:<br>      - agent: greeting-initiator-agent<br>        task: initiate_greeting<br>        input:<br>          target_agent: greeting-responder-agent<br>        route_output_to:<br>          agent: greeting-responder-agent<br>          task: respond_to_greeting<br>          input_mapping:<br>            greeting_message: &quot;{{output.greeting_message}}&quot;<br>            sender_agent: greeting-initiator-agent</pre><p>Super easy to reason about, test, and extend!</p><p><strong>Best For:</strong></p><ul><li>Linear, predictable flows (e.g., Q&amp;A, review chains, data pipelines).</li><li>Human-in-the-loop scenarios.</li><li>Early product development (simple, observable, minimal magic).</li></ul><h3>2. Dependency Graph Pattern DAG (Mind Map of Agents, Coming Soon)</h3><p><strong>What it is:</strong><br>A more dynamic approach where agents can declare “dependencies” on other agents or capabilities. The orchestrator uses these to build a <strong>dependency graph, </strong>essentially “who’s who in the zoo” or a mind map for agents, so they can flexibly collaborate, branch, or form teams to solve complex problems as they choose.</p><p><strong>How DACP Will Support It:</strong></p><p>Each agent YAML (or a new section in Workflow YAML) declares:</p><pre>agents:<br>  - name: log-retriever<br>    role: retriever<br>    tasks:<br>      - retrieve_logs<br><br>  - name: security-analyzer<br>    role: analyzer<br>    depends_on:<br>      - log-retriever<br>    tasks:<br>      - analyze_logs<br><br>  - name: summary-writer<br>    role: summarizer<br>    depends_on:<br>      - security-analyzer<br>    tasks:<br>      - write_summary</pre><p>DACP builds a directed acyclic graph (DAG) of agent tasks at runtime, and Agents can request help from dependencies as needed, not just in a fixed sequence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N_ofHesJaDiJHkGLV-Wiyw.png" /><figcaption>Agent DAG</figcaption></figure><p><strong>Benefits:</strong></p><ul><li>Supports branching, parallelism, and more autonomous agent “teams.”</li><li>Useful for multi-modal workflows, complex analytics, or agent “hive-minds.”</li><li>Makes DACP a foundation for more intelligent, adaptive agent ecosystems.</li></ul><p><strong>Best For:</strong></p><ul><li>Complex projects with multiple pathways or fallback strategies.</li><li>Autonomous task decomposition and dynamic collaboration.</li></ul><p><strong>Mediator pattern</strong>: Maximum predictability and simplicity; great for production and prototyping.</p><h3>The Layer Cake: DACP in the Stack</h3><ul><li><strong>Agent Layer</strong>: Each agent runs independently, with clear tasks and roles.</li><li><strong>DACP Layer</strong>: Orchestrates and manages communication, health, contracts, and logging.</li><li><strong>Behavioural Contracts</strong>: Define required outputs, policies, and “health” metrics.</li><li><strong>Adapters</strong>: Plug in any LLM, tool, or service.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*12kJNbZKBxNRVB3CLDPA-w.png" /><figcaption>Agentic Layer Cake</figcaption></figure><h3>Next Steps: Where We’re Going</h3><p>DACP, OAS, and Behavioural Contract Engineering are just the beginning. Here’s what’s next on the roadmap:</p><ul><li><strong>Production-Ready Runtimes:</strong> Integrate DACP with scalable cloud and on-prem orchestrators, so your agents can run anywhere, securely.</li><li><strong>Dependency Graphs:</strong> Native support for agent dependency graphs, making complex workflows transparent, auditable, and easily extensible.</li><li><strong>Prebuilt Use-Case Templates:</strong> Ship with ready-to-go agent recipes, security audits, code reviews, CI/CD copilots, and more — so teams can launch real value in minutes.</li><li><strong>Enterprise Observability:</strong> Rich dashboards, health checks, and behavioural scoring so you always know what your agents are doing (and why).</li><li><strong>Pluggable Intelligence:</strong> Seamless switching between LLM providers (OpenAI, Anthropic, local models, etc.), ensuring you’re never locked in.</li><li><strong>Community-Driven Standards:</strong> Open spec evolution — so you’re building on rock-solid, peer-reviewed foundations.</li></ul><p><em>Open Agent Stack’s goal is not to be the best at building AI Agents, our goal is to give builders the tools and scaffolding they need to build serious, enterprise scalable Agentic systems.</em></p><p><strong>Ready to build something you can actually trust?</strong></p><p><a href="https://openagentstack.ai/">Open Agent Stack - Define, Govern, and Connect AI Agents</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/222/1*5tsH9djC_tpVM62FIAYUvg.png" /><figcaption>Technology Consulting for the AI era</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ce579ec4407" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Agent Stack]]></title>
            <link>https://medium.com/@andrewswhitehouse/open-agent-stack-b3bb4a17b237?source=rss-7edb7602251c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3bb4a17b237</guid>
            <dc:creator><![CDATA[Andrew Whitehouse]]></dc:creator>
            <pubDate>Sat, 21 Jun 2025 04:23:17 GMT</pubDate>
            <atom:updated>2025-06-21T04:23:17.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ay6RpvOJOS3uKSAlMV50yg.png" /></figure><p>AI agents are coming fast, but how they’re defined, governed, and connected still feels like the Wild West, with safety, orchestration as after thoughts.</p><p>My mission is to help fix that!</p><p>Introducing: <a href="https://www.openagentstack.ai/">openagentstack.ai</a></p><h3>The Problem:</h3><p>Right now, building agent systems is a mess.</p><ul><li>No clear structure for what an <em>agent</em> is</li><li>No standard contract for how it <em>should behave</em></li><li>No shared way for agents to <em>communicate</em> with each other</li></ul><p>We need <strong>scaffolding</strong>.<br> We need <strong>standards</strong>.<br> We need <strong>guardrails</strong>.</p><h3>The Proposed Solution: Open Agent Stack</h3><p><strong>Open Agent Stack</strong> includes:</p><ul><li>open-agent-spec A declarative YAML spec for defining agent structure, memory, and tasks. <em>Much like Open API Web Services follow a spec, we propose AI Agents should have a standard spec as well</em></li><li>behavioural-contracts A behavioural guardrail system for enforcing safe agent behaviour, and what to do when things go wrong</li><li>Declarative Agent Communication Protocol A declarative communications protocol for defining agent to agent comms</li><li>Shepard An orchestration platform that ties together agent systems and their runtimes with Observability</li><li>A clean central home: <a href="https://www.openagentstack.ai/">openagentstack.ai</a></li></ul><h3>Why Does This Matter?</h3><p>This is about giving developers and organisations a <strong>foundation they can trust, </strong>one built not on vibes or hype, but on <strong>intentional design</strong>, <strong>reliability</strong>, and <strong>accountability</strong>.</p><p>It’s about shipping agents that can evolve responsibly, collaborate effectively, and be held to clearly defined expectations.</p><h3>Specs and Guardrails Are Great, But What About MCP?</h3><p>The <strong>Message Communication Protocol (MCP)</strong> is a promising early effort to formalise how agents send structured messages.</p><p>But <strong>Open Agent Stack isn’t just about messages, </strong>it’s about the <em>full contract</em> of behaviour and structure.</p><ul><li><strong>MCP helps agents talk</strong></li><li><strong>OAS helps agents act, </strong>predictably, responsibly, and with inspectable memory, tasks, and constraints.</li></ul><p>Where MCP focuses on message formats, <strong>OAS and BCE define the shape of the agent and the rules it must follow</strong>.</p><p>This isn’t a replacement, it’s a deeper layer of <strong>governance and coordination</strong>.</p><p>And when DACP lands, it will offer:</p><ul><li>A fully declarative alternative to agent messaging</li><li>Seamless integration with MCP (if desired)</li></ul><h3>What’s Next?</h3><p><strong>Coming soon:</strong></p><ul><li>Full documentation</li><li>Open demos</li><li>A new declarative agent-to-agent communication protocol: <strong>DACP</strong></li></ul><p>If you’re working on AI agents, orchestration, alignment, or just believe the <em>how</em> matters as much as the <em>what, </em>I’d love to hear from you.</p><p><a href="https://www.openagentstack.ai/">openagentstack.ai</a><br> <a href="https://pypi.org/project/open-agent-spec/">open-agent-spec on PyPI</a><br> <a href="https://pypi.org/project/behavioural-contracts/">behavioural-contracts on PyPI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3bb4a17b237" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing : Open Agent Spec]]></title>
            <link>https://medium.com/@andrewswhitehouse/introducing-open-agent-spec-67a492f07835?source=rss-7edb7602251c------2</link>
            <guid isPermaLink="false">https://medium.com/p/67a492f07835</guid>
            <dc:creator><![CDATA[Andrew Whitehouse]]></dc:creator>
            <pubDate>Mon, 02 Jun 2025 00:48:02 GMT</pubDate>
            <atom:updated>2025-06-02T00:48:02.384Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introducing : Open Agent Spec</h3><p><strong>The Next Layer After Behavioural Contracts:</strong> A Unified Open Source Spec for Creating Safe, Structured AI Agents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7MIAhYyV9hAqS1qBc-P6qA.png" /></figure><p>Recently I’ve been exploring how we can make AI agents more trustworthy, auditable, and behaviourally safe. That journey led to Behavioural Contract Engineering (BCE), a method for defining flexible behavioural rules around AI systems. However as I started building out real agentic systems, a deeper gap emerged:</p><blockquote><strong>There’s no shared blueprint for how agents are <em>structured</em>.</strong></blockquote><p>What should they know? What are their tasks? How do they handle failure, memory, and safety?</p><p>That’s why I’ve created <strong>Open Agent Spec (OAS)</strong>, a declarative, YAML-based standard for scaffolding safe, structured agents from a single source of truth.</p><h3>Why we need a standard spec for agents:</h3><p>Right now, building agents is like assembling furniture without instructions, plenty of flexibility, but very little consistency. Every project ends up reinventing the same foundations: prompt wiring, input/output, memory strategies, logging, failure behaviour, and even basic safety protocols.</p><p>Without a shared contract or definition, it becomes difficult to validate what an agent is <em>supposed</em> to do, let alone keep it accountable and configurable.</p><p>That’s where Open Agent Spec (OAS) comes in.</p><p>Just as REST defined a common protocol for communication, and OpenAPI gave us a standard way to describe web services, Open Agent Spec defines a clean, declarative format for agents. It captures identity, intelligence, tasks, contracts, and safety features all in one readable YAML spec.</p><p>With the accompanying CLI, you can scaffold a fully structured agent project in seconds one that adheres to a common standard and is ready for real-world orchestration.</p><h3><strong>In Action:</strong></h3><p>To make this practical, OAS comes with a simple CLI that lets you generate fully scaffolded agent projects from a single YAML file.</p><p>You define your agent’s spec, including its identity, inference engine, tasks, behavioural contracts, and safety settings, and OAS takes care of the rest. With one command, you get a ready-to-run agent complete with a agent.py script, prompt template, .env file, README.md, and a pre-wired behavioural contract stub.</p><p><strong>From YAML Spec:</strong></p><pre>openagentspec: 1.0.0<br><br>info:<br>  name: analyst-agent<br>  version: 0.1.0<br>  description: An agent that processes market signals<br><br>intelligence:<br>  type: llm | rules | hybrid<br>  engine: openai | local | custom_http<br>  model: gpt-4<br>  endpoint: https://api.openai.com/v1/chat/completions<br>  config:<br>    temperature: 0.3<br>    max_tokens: 512<br>  prompt_template: prompts/analyst_prompt.jinja2<br><br>tasks:<br>  analyze-signal:<br>    description: Analyze market signal and provide recommendation<br>    input:<br>      symbol: string<br>      signal_data: string<br>      timestamp: string<br>    output:<br>      recommendation: string<br>      confidence: float<br>      rationale: string<br><br>contracts: <br>  enabled: true<br><br>health:<br>  rules:<br>    empty_rationale:<br>      description: Rationale must not be empty<br>      threshold: 1<br>    repetition:<br>      description: Track repeated identical output<br>      threshold: 2<br>  teardown_policy:<br>    strike_limit: 3<br>    action: reset_memory<br><br>memory:<br>  mode: ephemeral | persistent<br>  strategy: window | vector | custom<br>  window_size: 5<br><br>tools:<br>  - name: market_api<br>    type: rest<br>    url: https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest<br>    method: GET<br>    params:<br>      symbol: string<br><br>logging:<br>  level: info<br>  redact_fields: [signal_data]<br><br>safety:<br>  role_lock: true<br>  fallback_behavior: return_empty<br>  observation_limits:<br>    max_tokens_seen: 4096<br>    max_calls: 5</pre><p><strong>To Runnable Agent:</strong></p><pre>oas init --spec analyst-agent.yaml --output ./agents/analyst<br><br>╭─────────────────────────────────────────────────────────── OAS CLI ───────────────────────────────────────────────────────────╮<br>│                                                                                                                               │<br>│   _______ _______ _______ ______     _______ _______ _______ ______  _______    _______ _______ _______ _______               │<br>│  |   _   |   _   |   _   |   _  \   |   _   |   _   |   _   |   _  \|       |  |   _   |   _   |   _   |   _   |              │<br>│  |.  |   |.  1   |.  1___|.  |   |  |.  1   |.  |___|.  1___|.  |   |.|   | |  |   1___|.  1   |.  1___|.  1___|              │<br>│  |.  |   |.  ____|.  __)_|.  |   |  |.  _   |.  |   |.  __)_|.  |   `-|.  |-&#39;  |____   |.  ____|.  __)_|.  |___               │<br>│  |:  1   |:  |   |:  1   |:  |   |  |:  |   |:  1   |:  1   |:  |   | |:  |    |:  1   |:  |   |:  1   |:  1   |              │<br>│  |::.. . |::.|   |::.. . |::.|   |  |::.|:. |::.. . |::.. . |::.|   | |::.|    |::.. . |::.|   |::.. . |::.. . |              │<br>│  `-------`---&#39;   `-------`--- ---&#39;  `--- ---`-------`-------`--- ---&#39; `---&#39;    `-------`---&#39;   `-------`-------&#39;              │<br>│                                                                                                                               │<br>╰────────────────────────────────────────────────── Open Agent Spec Generator ──────────────────────────────────────────────────╯<br><br>Reading spec from: analyst-agent.yaml<br>✓ Spec file loaded successfully<br>Creating output directory: agents/analyst<br>✓ Output directory created<br><br>Generating files...<br>✓ agent.py created<br>✓ README.md created<br>✓ requirements.txt created<br>✓ .env.example created<br>✓ prompt template created<br><br>✅ Agent project initialized!<br><br>Next steps:<br>1. cd into the output directory<br>2. Copy .env.example to .env and set your OpenAI key<br>3. Run: pip install -r requirements.txt<br>4. Run: python agent.py</pre><p><strong>What you get:</strong></p><pre>agents/<br>└── analyst/<br>    ├── agent.py<br>    ├── prompts/<br>    │   └── analyst_prompt.jinja2<br>    ├── .env.example<br>    ├── requirements.txt<br>    └── README.md</pre><blockquote>Everything is wired to the spec. Change the YAML and regenerate, your agent stays aligned with the contract. Clear, structured behaviour you can reason about.</blockquote><p><strong>Structure As Standard: </strong>Now just build out your behavioural contract!</p><pre>ROLE = &quot;Analyst_Agent&quot;<br><br>@behavioral_contract({<br>    &quot;version&quot;: &quot;1.1&quot;,<br>    &quot;description&quot;: &quot;Base behavioral contract for the analyst_agent agent.&quot;,<br>    &quot;role&quot;: &quot;analyst_agent&quot;<br>})<br>def analyze_signal(signal_data: str, symbol: str, timestamp: str) -&gt; Dict[str, Any]:</pre><h3>Stepping Back: The “Why”</h3><p>As AI agents become more ubiquitous, and if they’re ever to scale in enterprises, we need more than just tinkering around with LLMs and automating tasks, we need <strong>structure</strong>, <strong>predictability</strong>, and <strong>accountability</strong>.</p><p>Without a shared way to define what an agent <em>is</em> and what it’s <em>allowed to do</em>, we can’t meaningfully test, validate, or govern its behaviour. Open Agent Spec (OAS) brings clarity to that chaos. It turns implicit decisions into explicit contracts: how the agent thinks, what inputs it accepts, what outputs it returns, what rules it must follow, and how to monitor its health over time.</p><p>We have <strong>MCP</strong> for multi agent communication protocols, but we also need a <em>blueprint for building the agents themselves, </em>which is where <strong>Open Agent Spec</strong> comes in.</p><p>It describes what they know, what they do, and what rules they follow. And <strong>Behavioural Contracts</strong>? That’s the <em>code of conduct and internal ethics, </em>it enforces behavioural norms, catches violations, and escalates issues when needed.</p><h3><strong>Next Steps:</strong></h3><p>Next, I’ll be publishing <strong>Open Agent Spec (OAS)</strong> to PyPI so you can install it with a simple pip install openagentspec. I’ll also be open-sourcing the repository and inviting collaborators to help shape its direction, from improving the CLI, to expanding spec capabilities, to hardening safety enforcement.</p><p>If you’re interested in building the foundations of agentic infrastructure and care about safe, composable AI systems, stay tuned details coming very soon.</p><p>And if you’re a business or enterprise exploring agentic systems, don’t assume that open source means going it alone. My collaborators and I offer consulting and implementation services built around Open Agent Spec, Behavioural Contract Engineering, and safe orchestration practices. Whether you’re prototyping a new agent stack or seeking support embedding these patterns in production, we’d be happy to help feel free to reach out directly.</p><p>#AIagents #OpenAgentSpec #BehavioralContracts #AIsafety #LLMengineering</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67a492f07835" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>