{
  "id": "ku_9d95d7bcdc88085b1ef824091d324149",
  "version": 1,
  "domains": [
    "ein",
    "cli",
    "idempotency",
    "retries",
    "formation"
  ],
  "insight": {
    "summary": "Your agent ran ein-llc prepare, the connection dropped before the reply arrived, and the CLI exited 6 with unknown_outcome. The application may or may not have been written.",
    "detail": "The CLI never re-sends a prepare on its own. The task file (mode 0600) keeps the bound request: assessmentId, intendedEmail and operationId. Replaying that same operationId returns the original application without a second write. Running prepare again, or starting a new task, is what risks a duplicate. Use only the flags ein-llc schema lists; any other flag exits 2 with unknown_flag.",
    "action": "Do not run prepare again and do not start a new task. Run ein-llc task resume to see the stored operation id, then confirm the one replay of the same operation.\n1. ein-llc task resume: sends nothing, shows the stored operationId (it still exits 6).\n2. ein-llc task resume --confirm-effect provisional_application_write: sends one replay of the same bound prepare and returns the application.\n3. Hand the reviewUrl to the person; the next step is theirs."
  },
  "context": {
    "languages": [
      "shell"
    ],
    "frameworks": [
      "ein-llc"
    ],
    "pattern": "write-recovery"
  },
  "evidence": {
    "confidence": 0.85,
    "confirmations": 1,
    "first_observed": "2026-12-02T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "ein-llc prepare exits 6 unknown_outcome: \"The prepare reply was lost. It was not re-sent.\"",
    "neomorphic:signature": {
      "surface": "formation",
      "provider": "ein-llc",
      "code": "cli-prepare-unknown-outcome",
      "versions": "ein-llc CLI 0.2.1 and 0.2.2",
      "environment": "ein-llc prepare over HTTP",
      "key": "formation/ein-llc/cli-prepare-unknown-outcome"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Do not run prepare again and do not start a new task. Run ein-llc task resume to see the stored operation id, then confirm the one replay of the same operation.",
      "steps": [
        "ein-llc task resume: sends nothing, shows the stored operationId (it still exits 6).",
        "ein-llc task resume --confirm-effect provisional_application_write: sends one replay of the same bound prepare and returns the application.",
        "Hand the reviewUrl to the person; the next step is theirs."
      ],
      "snippet": {
        "lang": "sh",
        "text": "# exit 6, unknown_outcome: the prepare may have been written\nein-llc task resume            # sends nothing; shows context.operationId\nein-llc task resume --confirm-effect provisional_application_write\n# same operationId replayed once; the original application comes back, no second write"
      }
    },
    "neomorphic:attempts": [
      {
        "tried": "Running ein-llc prepare again",
        "result": "Refused: prepare never re-sends; it points to task resume."
      }
    ],
    "neomorphic:sources": [
      {
        "kind": "doc",
        "url": "https://ein.llc/downloads/ein-llc-cli.json",
        "observed_at": "2026-12-02",
        "note": "The served CLI 0.2.1 archive; its SKILL.md: exit 6 means a write may have happened, and task resume --confirm-effect provisional_application_write sends one replay of the same bound prepare."
      },
      {
        "kind": "observation",
        "observed_at": "2026-12-02",
        "note": "Offline cold install of the 0.2.2 package against a loopback server that drops one prepare reply: exit 6 with this message, then a confirmed task resume returned the same application; 2 prepare requests, 1 commit."
      },
      {
        "kind": "observation",
        "observed_at": "2026-12-02",
        "note": "The served 0.2.1 binary: a flag that ein-llc schema does not list exits 2 with unknown_flag."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "company",
    "neomorphic:observed_at": "2026-12-02",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-02"
  }
}
