{"slug": "samf-deterministic-moscow-guardrails-for-llm-multi-agent-loops", "title": "SAMF- Deterministic Moscow guardrails for LLM multi-agent loops", "summary": "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.", "body_md": "Structural MoSCoW contracts for deterministic LLM validation.\n\nSAMF provides machine-readable validation contracts for LLMs, translating project management MoSCoW prioritization into strict alignment guards.\n\n**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.\n\n``` python\nfrom samf import SAMFContract, samf_contract\n\n# Define your strict execution contract\nguard_contract = SAMFContract(\n    must_have=[\"JSON\", \"status\", \"user_id\"],\n    should_have=[\"timestamp\"],\n    wont_have=[\"error\", \"failed\"]\n)\n\n# Enforce it seamlessly with a decorator\n@samf_contract(contract=guard_contract)\ndef call_billing_agent():\n    # Your LLM generation / LangGraph node logic here\n    return '{\"status\": \"success\", \"user_id\": 4002, \"format\": \"JSON\"}'\n\nresponse = call_billing_agent()\nprint(\"Output validated successfully!\")\n---\n**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.\n```\n\n", "url": "https://wpnews.pro/news/samf-deterministic-moscow-guardrails-for-llm-multi-agent-loops", "canonical_source": "https://github.com/NanoPrompt/samf-framework", "published_at": "2026-06-16 06:00:55+00:00", "updated_at": "2026-06-16 06:18:48.889065+00:00", "lang": "en", "topics": ["large-language-models", "ai-safety", "ai-tools", "ai-agents", "developer-tools"], "entities": ["SAMF", "MoSCoW", "LangGraph"], "alternates": {"html": "https://wpnews.pro/news/samf-deterministic-moscow-guardrails-for-llm-multi-agent-loops", "markdown": "https://wpnews.pro/news/samf-deterministic-moscow-guardrails-for-llm-multi-agent-loops.md", "text": "https://wpnews.pro/news/samf-deterministic-moscow-guardrails-for-llm-multi-agent-loops.txt", "jsonld": "https://wpnews.pro/news/samf-deterministic-moscow-guardrails-for-llm-multi-agent-loops.jsonld"}}