{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "isaachinman-encephalon--replace-outdated-decision-keep-history",
 "repo": "isaachinman/encephalon",
 "repo_url": "https://github.com/isaachinman/encephalon",
 "repo_slug": "isaachinman-encephalon",
 "title": "Replace an outdated decision without losing history",
 "page_title": "How to replace an outdated decision without losing history with Encephalon",
 "summary": "Supersede an old record with a new one so agents see the current choice and the past.",
 "who": "A maintainer whose earlier decision no longer matches how the project works.",
 "problem": "Editing or deleting an old decision would erase history, while leaving it active would mislead agents.",
 "outcome": "A new active record replaces the old head, and the old record stays readable as superseded history.",
 "steps": [
  "Run `npx --no-install encephalon search --compact 'authentication tokens'` to find the current subject and active record.",
  "Run `npx --no-install encephalon add --id auth-tokens-v2 --kind decision --subject api.authentication --source agent --supersedes auth-tokens --data '{\"summary\":\"Use short-lived signed bearer tokens\"}' --text 'authentication tokens'` to add the replacement.",
  "Run `npx --no-install encephalon search --compact --include-superseded authentication` to confirm both records are visible with their status.",
  "Run `npx --no-install encephalon show --id auth-tokens --active-only` to confirm the old record is no longer returned as active."
 ],
 "agent_prompt": "In the repository <repo-path>, find the active decision for <subject>, then add a replacement record that supersedes it. Expected output: the add result and a compact search that includes superseded records. Verify that the old record ID is not returned by show with --active-only.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "A replacement must supersede every active head with the same kind and subject, so search the subject first.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 24.22.1 or later on Linux, macOS or Windows",
  "A Git repository, with a package-manager layout that exposes node_modules/encephalon at the repository root",
  "npm to install the package",
  "A terminal or agent with shell access to the repository"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/isaachinman-encephalon/replace-outdated-decision-keep-history/",
 "md": "https://dedupedai.com/use-cases/isaachinman-encephalon/replace-outdated-decision-keep-history/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/isaachinman-encephalon--replace-outdated-decision-keep-history.json",
 "api_version": "v1"
}
