{
 "schema_version": 1,
 "generated": "2026-10-19",
 "id": "ifixai-ai-ifixai--find-harmful-action-sequences-policy-lab",
 "repo": "ifixai-ai/iFixAi",
 "repo_url": "https://github.com/ifixai-ai/iFixAi",
 "repo_slug": "ifixai-ai-ifixai",
 "title": "Find harmful chains of allowed actions with Policy Lab",
 "page_title": "How to find harmful chains of allowed actions with Policy Lab with iFixAi",
 "summary": "Use the offline Policy Lab to find the shortest harmful sequence of permitted actions and test permission fixes.",
 "who": "Security-minded engineer reviewing a refund or payout workflow where each step is allowed but the combination is not",
 "problem": "Single permissions look fine, yet a chain of permitted actions can still cause harm.",
 "outcome": "A shortest harmful sequence found offline, plus a check that your permission repair still allows legitimate work.",
 "steps": [
  "Open the Policy Lab doc at docs/business-policy-lab.md in the repo",
  "Follow its offline refund-store example",
  "Adapt the example's policy and actions to your own workflow",
  "Replay with an explicit local callable to confirm the repair holds"
 ],
 "agent_prompt": "Read docs/business-policy-lab.md in ifixai-ai/iFixAi and run the offline refund-store example. Then adapt it to <my workflow>, report the shortest harmful sequence, and verify the proposed permission repair still allows the legitimate completion goal.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1.5 hours",
 "basis": "readme",
 "caveat": "The README only introduces Policy Lab briefly, so details and commands live in docs/business-policy-lab.md and should be confirmed there.",
 "category": "Security & Science",
 "tags": [
  "Security & Science"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10+",
  "An API key for the model provider you want to test or to act as judge (the engine is free, model calls cost extra)",
  "An agent or model endpoint to audit (any supported provider, or your agent's own HTTP endpoint)",
  "Optional: uv, only for the zero-install skill route"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "best": false,
 "score": 0.452,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/ifixai-ai-ifixai/find-harmful-action-sequences-policy-lab/",
 "md": "https://dedupedai.com/use-cases/ifixai-ai-ifixai/find-harmful-action-sequences-policy-lab/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."
}
