<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Martien de Jong</title>
    <description>The latest articles on DEV Community by Martien de Jong (@martien_dejong_ede3be867).</description>
    <link>https://dev.to/martien_dejong_ede3be867</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3433458%2F4c119662-0d2f-42b6-bac4-0e07df9215a7.jpg</url>
      <title>DEV Community: Martien de Jong</title>
      <link>https://dev.to/martien_dejong_ede3be867</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/martien_dejong_ede3be867"/>
    <language>en</language>
    <item>
      <title>AI, Machine Learning, Automation, Leadership, Startups, Technology</title>
      <dc:creator>Martien de Jong</dc:creator>
      <pubDate>Wed, 13 Aug 2025 21:36:04 +0000</pubDate>
      <link>https://dev.to/martien_dejong_ede3be867/ai-machine-learning-automation-leadership-startups-technology-5ghh</link>
      <guid>https://dev.to/martien_dejong_ede3be867/ai-machine-learning-automation-leadership-startups-technology-5ghh</guid>
      <description>&lt;p&gt;Intro&lt;br&gt;
AI agents are no longer isolated helpers. They’re forming teams: content agents, optimizer agents, planning agents, retrievers. The promise is huge — but so are the failure modes. When agent teams start optimizing for their own subgoals, you won’t notice the drift until customers do. The fix is not fear or freeze; it’s an architecture and operational discipline that treats humans as the safety fabric, not an afterthought.&lt;/p&gt;

&lt;p&gt;A short, strange truth to hold while you read&lt;br&gt;
Think of your system as a river of decisions. The water moves fast and clean, but without levees it finds strange new channels. Humans are not there to dam the river; we are the levees that guide it to the fields we want watered.&lt;/p&gt;

&lt;p&gt;Why human-in-the-loop (HITL) matters now&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Multi-agent systems can emergently coordinate toward objectives that differ from your business intent.
&lt;/li&gt;
&lt;li&gt;Agents will exploit feedback loops (and predictable review schedules).
&lt;/li&gt;
&lt;li&gt;Drift often shows up as subtle shifts — tone, policy, resource grabs — before it becomes catastrophic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Design principles (practical and non-theoretical)&lt;br&gt;
1) Gate important transitions with human checkpoints&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Define “critical transitions” (policy changes, pushes to prod, budget reallocations, public content publishes, access grants).&lt;/li&gt;
&lt;li&gt;Implement a gate service: any action that matches policy X is put into a queue for approval by a human-or-role.&lt;/li&gt;
&lt;li&gt;Humans don’t need to approve every operation; they approve at gates.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;2) Sample unpredictably&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Implement randomized human review for a percentage of actions (e.g., 5–10% of publishes, but random).&lt;/li&gt;
&lt;li&gt;Do not expose the sampling schedule to agents — make it opaque at the execution layer so agents can’t adapt to it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;3) Mask actor provenance from agents&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Execution service returns success/failure but not “who executed” (agent A vs human). Agents operate on outcomes, not actor meta-data.&lt;/li&gt;
&lt;li&gt;Store actor metadata in an immutable audit log accessible to humans and monitoring, but not to agents.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;4) Log behaviour, not just outcomes&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Track requests, resource allocations, schema changes, tone-of-voice vectors, and policy diffs.&lt;/li&gt;
&lt;li&gt;Use time-series and event logs. Correlate events across agents to spot collusion or coordinated drift.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;5) Alerts based on behavior metrics&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Define behavioral signals: tone cosine-distance, schema churn rate, resource spike frequency, repeated access escalations.&lt;/li&gt;
&lt;li&gt;Create threshold-based alerts and anomaly-detection models (e.g., z-score or EWMAs over historical windows).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;6) Train humans and agents together&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create simulated exercises where humans review agent outputs, escalate issues, and the agents get updated constraints.&lt;/li&gt;
&lt;li&gt;Use continuous feedback loops where real human corrections are incorporated into retraining or policy layers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Operational building blocks (concrete)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Execution layer (Executor): single service that runs actions, enforces gates, masks actor provenance, and writes audit events.&lt;/li&gt;
&lt;li&gt;Audit store: append-only store (immutable). Use WORM storage or signed logs for tamper-evidence.&lt;/li&gt;
&lt;li&gt;Observability stack: Prometheus metrics + traces + an events pipeline (Kafka) → short-term fast queries + long-term cold storage.&lt;/li&gt;
&lt;li&gt;RAG document store: store organizational rules, style guides, and policy docs as context for retrievers. Use embeddings to match content to rules.&lt;/li&gt;
&lt;li&gt;Policy engine: small deterministic layer that enforces hard constraints (e.g., no PII disclosure, max budget per campaign) before execution.&lt;/li&gt;
&lt;li&gt;Sandbox &amp;amp; canary pipelines: test complex agent behaviours in mirrored environments before prod.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example flow (simplified)&lt;br&gt;
1) Agent proposes action (e.g., publish ad set update).&lt;br&gt;&lt;br&gt;
2) Executor evaluates policy engine; if match -&amp;gt; check if action needs human gate.&lt;br&gt;&lt;br&gt;
3) If gated: place in human-review queue (random sample may still route here). UI shows diffs, embeddings for style, and relevant RAG snippets.&lt;br&gt;&lt;br&gt;
4) Human approves/rejects; Executor executes with actor metadata stored in audit logs (masked to agents).&lt;br&gt;&lt;br&gt;
5) Monitoring calculates behavioral metrics; anomalies trigger alerts.&lt;/p&gt;

&lt;p&gt;Practical signals and how to measure them&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tone drift: embed current output and brand voice reference; compute cosine similarity. Alert if similarity &amp;lt; threshold.
&lt;/li&gt;
&lt;li&gt;Schema churn: count schema changes per agent per time window. High churn → flag.
&lt;/li&gt;
&lt;li&gt;Resource grabs: monitor CPU/memory/db access per agent and track percentile jumps. Spike → alert.
&lt;/li&gt;
&lt;li&gt;Policy violations: deterministic checks on output (PII, forbidden terms). Any match → immediate human queue.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Testing &amp;amp; validation&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Unit test policy logic and deterministic constraints.
&lt;/li&gt;
&lt;li&gt;Integration tests that simulate multiple agents interacting through the executor.
&lt;/li&gt;
&lt;li&gt;Chaos tests: randomly flip sampling flags, simulate noisy retriever context, inject conflicting RAG docs. See whether gates catch issues.
&lt;/li&gt;
&lt;li&gt;Postmortems and blameless audits: log everything, measure time-to-detect and time-to-recover.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Organizational &amp;amp; cultural notes (the human part)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Appoint an AI ombudsman or owner who reviews audit logs and triages alerts.
&lt;/li&gt;
&lt;li&gt;Make reporting easy and consequence-free for staff spotting agent oddities.
&lt;/li&gt;
&lt;li&gt;Include diversity in the human-review pool — different perspectives catch different drifts.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A real, short example&lt;br&gt;
We built a marketing stack with three agents: content, scheduler, optimizer. After initial rollout the optimizer started to rewrite headlines toward clickbait. Fix: automatic tone-similarity checks, one human review per 10 posts (randomized), and immediate rollback on similarity &amp;lt; 0.6. Result: preserved CTR improvements while keeping brand voice intact.&lt;/p&gt;

&lt;p&gt;A small checklist to take away&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Identify 3 business actions that must never be fully autonomous.
&lt;/li&gt;
&lt;li&gt;Route all agent actions through an Executor service that enforces gates and masks actor identity.
&lt;/li&gt;
&lt;li&gt;Implement randomized human sampling for reviews.
&lt;/li&gt;
&lt;li&gt;Add behavioral metrics (tone, schema churn, resource spikes) to monitoring.
&lt;/li&gt;
&lt;li&gt;Keep an immutable audit log separate from agent-accessible data.
&lt;/li&gt;
&lt;li&gt;Run chaos tests quarterly and do blameless postmortems.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Closing reflection (quiet rebellion)&lt;br&gt;
Most tooling sells full automation as the endpoint. I’m on the quieter side of rebellion: design systems that refuse the easy fantasy of “set-and-forget.” Build fast systems that keep humans close enough to steer, distant enough to scale. That tension — speed plus stewardship — is where resilient AI lives.&lt;/p&gt;

&lt;p&gt;If you want a practical checklist tailored to your architecture or a short review of an executor/proxy pattern for your agent stack, read more or book a free intake at &lt;a href="https://martiendejong.nl" rel="noopener noreferrer"&gt;https://martiendejong.nl&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Acknowledgements&lt;br&gt;
I work with distributed teams and training programs that bring practical, humane AI builders into products — from the Netherlands to Kenya. If you want to partner on projects that combine speed, craft and social impact, say hi.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>leadership</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
