cd /news/large-language-models/samf-deterministic-moscow-guardrails… · home topics large-language-models article
[ARTICLE · art-29076] src=github.com ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

SAMF- Deterministic Moscow guardrails for LLM multi-agent loops

A new open-source project called SAMF introduces machine-readable validation contracts for LLMs, translating MoSCoW prioritization into deterministic guardrails for multi-agent loops. The tool aims to eliminate brittle multi-hop reasoning, prevent loop breaches, and optimize token costs by enforcing explicit constraints.

read1 min views1 publishedJun 16, 2026

Structural MoSCoW contracts for deterministic LLM validation.

SAMF provides machine-readable validation contracts for LLMs, translating project management MoSCoW prioritization into strict alignment guards.

Slashes Prompt Instability: Eliminates brittle multi-hop reasoning.Prevents Loop Breaches: Keeps multi-agent reasoning loops from breaking.Optimizes Token Costs: Reduces RAG token waste by enforcing explicit constraints.

from samf import SAMFContract, samf_contract

guard_contract = SAMFContract(
    must_have=["JSON", "status", "user_id"],
    should_have=["timestamp"],
    wont_have=["error", "failed"]
)

@samf_contract(contract=guard_contract)
def call_billing_agent():
    return '{"status": "success", "user_id": 4002, "format": "JSON"}'

response = call_billing_agent()
print("Output validated successfully!")
---
**Disclaimer:** This is an independent open-source hobby project developed entirely on personal time and hardware. It is not affiliated with, sponsored by, or endorsed by my employer.
── more in #large-language-models 4 stories · sorted by recency
── more on @samf 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/samf-deterministic-m…] indexed:0 read:1min 2026-06-16 ·