{"slug": "written-like-a-prompt-enforced-like-a-harness", "title": "Written like a prompt. Enforced like a harness", "summary": "A pre-execution checklist for AI agents, first posted five months ago as \"If unsure, ask. Never guess.\", is now enforced in code that checks conditions before an AI acts and records why, its author reported, citing over 2,000 runs across eight models since October. The author argues tool providers should declare each tool's limits — when it must not run, when the user must approve, and what the user must be told — in documents shipped with the tool, rather than leaving those conditions to an agent developer's prompt, a governance team's policy, or the model itself. The approach does not reduce hallucination, the author states, but keeps a made-up value from running unconfirmed.", "body_md": "Five months ago I posted [If unsure, ask. Never guess.](https://discuss.huggingface.co/t/if-unsure-ask-never-guess-ai-agent-pre-execution-checklist/176632) That checklist now runs.\n\nWrite conditions in your own words. Code checks them right before the AI acts, and records why.\n\nA tool’s conditions are its provider’s to declare, in documents that ship with the tool. Today they are written by whoever is nearest: an agent’s developer in a prompt, a governance team in a policy. When no one writes them, the model decides.\n\nA provider’s work does not end at “this tool does X.” The provider sets the tool’s limits: when it must not run, when the user must approve, and what the user must be told. Writing nothing is on the record too.\n\nEven when the user’s instruction or approval is wrong, the provider’s checklist stops the run and records why.\n\nThis does not make models hallucinate less. It keeps a made-up value from running unconfirmed.\n\nOver 2,000 runs on eight models since October, across versions. What any version of this must do is in **Six rules**. The model does not decide.\n\nThe discussions on my earlier posts helped this a great deal. I’d welcome more, on improving it and on testing it.\n\nEarlier posts:", "url": "https://wpnews.pro/news/written-like-a-prompt-enforced-like-a-harness", "canonical_source": "https://discuss.huggingface.co/t/written-like-a-prompt-enforced-like-a-harness/192966#post_1", "published_at": "2026-12-02 07:16:59+00:00", "updated_at": "2026-12-02 07:45:41.768555+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-tools"], "entities": ["Hugging Face"], "also_reported_by": [], "takeaway": "Encode each tool's pre-execution conditions as code that checks them before the agent acts and logs the reason, rather than leaving limits to prompts or the model; the author reports over 2,000 runs across eight models since October.", "recommendation": {"advice": "Have tool providers declare each tool's limits — when it must not run, when the user must approve, what the user must be told — and enforce them in code before execution, logging why each run was stopped.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/written-like-a-prompt-enforced-like-a-harness", "markdown": "https://wpnews.pro/news/written-like-a-prompt-enforced-like-a-harness.md", "text": "https://wpnews.pro/news/written-like-a-prompt-enforced-like-a-harness.txt", "jsonld": "https://wpnews.pro/news/written-like-a-prompt-enforced-like-a-harness.jsonld"}}