{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "anotiawang-awesome-decision-models--flag-risky-behavior-in-ai-traces",
 "repo": "AnotiaWang/awesome-decision-models",
 "repo_url": "https://github.com/AnotiaWang/awesome-decision-models",
 "repo_slug": "anotiawang-awesome-decision-models",
 "title": "Flag risky behavior in AI traces with Span-01",
 "page_title": "How to flag risky behavior in AI traces with Span-01 with Awesome Decision Models",
 "summary": "Label each AI trace for behaviors you define, such as prompt injection or agent loops.",
 "who": "An AI product engineer reviewing agent traces who needs to find prompt injection, hallucination, or loops without reading every trace by hand.",
 "problem": "Reading traces manually does not scale, and keyword search misses many behaviors described in plain language.",
 "outcome": "Each trace gets present, absent, or not observable for every behavior you define, with a list of traces to review first.",
 "steps": [
  "Open the Hosted APIs section and read the Span-01 entry, which classifies AI traces for behaviors you define in plain language.",
  "Get an OpenRouter API key and find the Span-01 page at openrouter.ai/respan/span-01 linked from the README.",
  "Write one plain-language definition for each behavior you want to flag, such as prompt injection, hallucination, or agent loops.",
  "Run the classifier over a sample of traces and save each result with its trace ID.",
  "Review every trace marked present, and spot-check a sample marked absent."
 ],
 "agent_prompt": "Using the Span-01 entry in github.com/AnotiaWang/awesome-decision-models, classify the traces in <traces-folder> for prompt injection and agent loops through the OpenRouter route the README links. Expected output: one present, absent, or not observable value per behavior per trace. Verify by reading three traces marked present and confirming the behavior is actually there.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The README gives Span-01 no accuracy numbers, so check its labels against traces you have already reviewed before trusting it on a larger set.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "A web browser to open the repo's README and the linked provider docs",
  "An account and API key for the hosted provider you choose (for example TypeSafe console, OpenRouter, or Microsoft Foundry)",
  "For local runs: Ollama installed, or a Python environment with the package named in the model's own page",
  "A list of your own options (labels, tool names, or rubric levels) to score"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The OpenRouter key grants access to your account, so keep it in an environment variable and do not commit it to the trace review repo."
  }
 ],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/anotiawang-awesome-decision-models/flag-risky-behavior-in-ai-traces/",
 "md": "https://dedupedai.com/use-cases/anotiawang-awesome-decision-models/flag-risky-behavior-in-ai-traces/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/anotiawang-awesome-decision-models--flag-risky-behavior-in-ai-traces.json",
 "api_version": "v1"
}
