SAMF- Deterministic Moscow guardrails for LLM multi-agent loops

nanoprompter1 pts0 comments

GitHub - NanoPrompt/samf-framework: Prompt Engineering framework · GitHub

/" data-turbo-transient="true" />

Skip to content

Search or jump to...

Search code, repositories, users, issues, pull requests...

-->

Search

Clear

Search syntax tips

Provide feedback

--><br>We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

-->

Name

Query

To see all available qualifiers, see our documentation.

Cancel

Create saved search

Sign in

/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

NanoPrompt

samf-framework

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>3 Commits<br>3 Commits

samf

samf

.gitignore

.gitignore

README.md

README.md

SAMF Library.docx

SAMF Library.docx

example.py

example.py

setup.py

setup.py

View all files

Repository files navigation

SAMF: SAWANT Agentic MoSCoW Framework

Structural MoSCoW contracts for deterministic LLM validation.

What is it?

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

Why do I need it?

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.

Quick Start

from samf import SAMFContract, samf_contract

# Define your strict execution contract<br>guard_contract = SAMFContract(<br>must_have=["JSON", "status", "user_id"],<br>should_have=["timestamp"],<br>wont_have=["error", "failed"]

# Enforce it seamlessly with a decorator<br>@samf_contract(contract=guard_contract)<br>def call_billing_agent():<br># Your LLM generation / LangGraph node logic here<br>return '{"status": "success", "user_id": 4002, "format": "JSON"}'

response = call_billing_agent()<br>print("Output validated successfully!")<br>**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.

About

Prompt Engineering framework

Resources

Readme

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

star

Watchers

watching

Forks

forks

Report repository

Releases

No releases published

Packages

Uh oh!

There was an error while loading. Please reload this page.

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

Python<br>100.0%

You can’t perform that action at this time.

samf reload framework search moscow error

Related Articles