{"actions":{"bootstrapAndRun":{"effect":"installs rote if missing, inspects, prepares, and asks before running","href":"https://play.modiqo.ai/install?play=rajkaria/wrong-turns@0.1.5","method":"GET","rel":"https://rote.dev/rels/bootstrap-and-run","requiresConsent":true,"responseMediaType":"text/x-shellscript"},"inspect":{"command":"rote play inspect https://play.modiqo.ai/rajkaria/wrong-turns@0.1.5","effect":"read-only"},"installCliOnly":{"effect":"installs the rote CLI, nothing else","href":"https://play.modiqo.ai/install","method":"GET","rel":"https://rote.dev/rels/install-cli","requiresConsent":true,"responseMediaType":"text/x-shellscript"},"run":{"command":"rote play run https://play.modiqo.ai/rajkaria/wrong-turns@0.1.5","effect":"executes the play locally after consent","headless":{"approvalAssertion":"--yes","approvalRequiredBeforeInvocation":true,"commandTemplate":"rote play run https://play.modiqo.ai/rajkaria/wrong-turns@0.1.5 <name=value...> --yes","stdinPolicy":"never pipe input to automate the interactive Ready selector"},"requiresConsent":true}},"description":"Rote asks you to keep one wrong turn in every Play as proof a human was steering. Your logs already hold hundreds. This reads Claude Code and Codex transcripts and finds three kinds: tool calls that returned an error, the message where you corrected the agent, and reverts. It groups them into recurring mistake classes by tool and error signature, counts how often each recurred across sessions and days, prices what the recovery cost in tokens, and shows one redacted line of evidence per class. For every class that recurred three or more times it drafts the rule that would have prevented it, in a block you can paste into CLAUDE.md or AGENTS.md, and labels each draft with the confidence of the signal behind it: tool errors are high, phrase-detected corrections are medium, and it never upgrades a guess. It writes the draft next to the report and never edits your rules files. Read-only, no credentials, no network, python3 only. Point claude_dir at resources/fixtures/claude to see a full run on synthetic logs first","distribution":{"digest":"sha256:6530e3fb2ef8ae5364ad4802a6b5a5d8bd0b9aa7389b12b6f74a96567720fe84","mediaType":"application/vnd.modiqo.rote-flow","size":155529,"verifiedBy":"rote verifies the downloaded archive against this digest before it runs"},"effects":{"credentialsProvidedBy":"runner","credentialsRemainLocal":true,"declaredWrites":[],"publisherReceivesCredentials":false},"id":"https://play.modiqo.ai/rajkaria/wrong-turns@0.1.5","inputPolicy":{"omittedValues":"inspect_full_parameters_before_collecting_values_or_consent","optionalWithDefault":"show_default_and_accept_override","optionalWithoutDefault":"omit_unless_supplied","required":"ask","secrets":"collect_locally_outside_conversation"},"links":{"docs":"https://rote.dev","page":"https://play.modiqo.ai/rajkaria/wrong-turns@0.1.5","protocol":"https://play.modiqo.ai/.well-known/rote","self":"https://play.modiqo.ai/rajkaria/wrong-turns@0.1.5.json"},"name":"wrong-turns","owner":{"kind":"user","slug":"rajkaria"},"parameters":[{"default":14,"description":"Filter on each record's own timestamp.","example":14,"input":{"allowCustom":true,"choices":[],"label":"Days back"},"name":"days_back","required":false,"type":"integer"},{"default":"~/comped","description":"Created if missing. Everything this Play writes goes here and nowhere else.","example":"~/comped","input":{"allowCustom":true,"choices":[],"label":"Out dir"},"name":"out_dir","required":false,"type":"string"},{"default":"~/.claude/projects","description":"Set to resources/fixtures/claude for a demo run on synthetic logs.","example":"resources/fixtures/claude","input":{"allowCustom":true,"choices":[],"label":"Claude dir"},"name":"claude_dir","required":false,"type":"string"},{"default":"~/.codex/sessions","description":"Set to resources/fixtures/codex for a demo run on synthetic logs.","example":"resources/fixtures/codex","input":{"allowCustom":true,"choices":[],"label":"Codex dir"},"name":"codex_dir","required":false,"type":"string"},{"default":"true","description":"Claude Code subagent transcripts. true or false.","example":"true","input":{"allowCustom":true,"choices":[],"label":"Include subagents"},"name":"include_subagents","required":false,"type":"string"},{"default":3,"description":"How many times a mistake class must recur before it is reported; it also needs 2 sessions.","example":3,"input":{"allowCustom":true,"choices":[],"label":"Min recurrence"},"name":"min_recurrence","required":false,"type":"integer"},{"default":"true","description":"true shows one redacted evidence line per class; false replaces it with (snippets hidden).","example":"true","input":{"allowCustom":true,"choices":[],"label":"Show snippets"},"name":"show_snippets","required":false,"type":"string"},{"default":"both","description":"claude, agents or both. Drafts only; nothing is ever written to your rules files.","example":"both","input":{"allowCustom":true,"choices":[],"label":"Rules target"},"name":"rules_target","required":false,"type":"string"}],"preparation":[{"action":{"command":"rote play inspect https://play.modiqo.ai/rajkaria/wrong-turns@0.1.5 --json","effect":"read-only"},"step":1,"type":"inspect_local_readiness"},{"references":["/parameters"],"step":2,"type":"collect_parameters","whenValuesOmitted":"Run step 1 before collecting inputs or showing defaults; omittedFields are unknown values, not absent defaults or exhaustive choices."},{"references":["/parameters","/requirements","/effects"],"step":3,"type":"review"},{"consentBoundary":"the user approves the exact play and parameter values","references":["/parameters","/requirements","/effects"],"step":4,"type":"obtain_run_consent"},{"action":{"command":"rote play run https://play.modiqo.ai/rajkaria/wrong-turns@0.1.5","headlessCommandTemplate":"rote play run https://play.modiqo.ai/rajkaria/wrong-turns@0.1.5 <name=value...> --yes"},"preservesAcquisitionBoundaries":["adapter_selection","oauth_dcr","google_discovery","static_token_setup","runtime_security_checks"],"requiresConsent":true,"step":5,"type":"run"}],"producedBy":{"roteVersion":"0.79.0"},"publishedAt":"2026-09-05T08:25:13.413367+00:00","reference":"rajkaria/wrong-turns@0.1.5","requested":"rajkaria/wrong-turns","requirements":{"adapters":[],"browser":{"dependencies":[],"runtime":false,"signIn":false},"hostToolRequirements":[{"command":"python3","required":true,"versionRequirement":null}],"localTools":["python3"],"roteCli":{"minimumVersion":"0.91.0"},"sessions":false},"resolution":"latest","schema":"rote.play.v1","stats":{"downloads":0,"installs":0},"steps":{"count":5,"names":["classify_turns","draft_rules","merge_ledger","read_claude","read_codex"]},"title":"wrong-turns","type":"play","version":"0.1.5","visibility":"public"}