[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73184RQASGVPH04ZGGS9C7X":3,"skill-same:01M73184RQASGVPH04ZGGS9C7X":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M73184RQASGVPH04ZGGS9C7X","circuit-breaker-rollback",null,"Implement circuit breaker patterns, canary deployment gates, hallucination telemetry checkers, and automated rollback for agent skill deployments. Stop cascading failures before they propagate across the swarm.","Horonomos-laps\u002FYana-AI","Horonomos-laps","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F355299122?v=4","01M76B3QPXE88ET2SQPDPVATZT"," Horonomos-laps","01M72ZQRJPCYPSSWT4D00VJR2A",13,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcircuit-breaker-rollback\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: circuit-breaker-rollback\ndescription: Implement circuit breaker patterns, canary deployment gates, hallucination telemetry checkers, and automated rollback for agent skill deployments. Stop cascading failures before they propagate across the swarm.\norigin: Netflix Hystrix concept, Martin Fowler Circuit Breaker pattern, YAMTAM rules 56–57\nlicense: Apache-2.0\nversion: 1.0.0\ncompatibility: claude-sonnet-4-6, claude-opus-4-7\n---\n\n# Circuit Breaker & Automated Rollback\n\nIsolate failing agents\u002Ftools automatically before errors cascade. Deploy new skills to 1% canary traffic, roll back if quality drops.\n\n## When to Use\n\n- Agent or tool returning repeated errors that are slowing the entire swarm\n- Deploying a new skill and wanting automatic rollback if it degrades quality\n- Protecting downstream agents from an upstream agent stuck in an error loop\n- Implementing the YAMTAM circuit-breaker-law (rule 56) and canary-deployment-law (rule 57)\n\n## Do NOT use for\n\n- Single requests where retrying once is fine\n- Tools that must always be called regardless of prior failures (e.g., audit logging)\n\n## Circuit Breaker\n\n```js\nclass CircuitBreaker {\n  constructor(opts = {}) {\n    this.threshold   = opts.threshold ?? 5;\n    this.cooldown    = opts.cooldown  ?? 60000;  \u002F\u002F 60s\n    this.state       = 'CLOSED';\n    this.failures    = 0;\n    this.lastFailure = 0;\n    this.openCount   = 0;\n  }\n\n  async call(fn) {\n    if (this.state === 'OPEN') {\n      const elapsed = Date.now() - this.lastFailure;\n      if (elapsed \u003C this._cooldownMs()) throw new Error('CIRCUIT_OPEN');\n      this.state = 'HALF_OPEN';\n    }\n\n    try {\n      const result = await fn();\n      this._onSuccess();\n      return result;\n    } catch (e) {\n      this._onFailure(e);\n      throw e;\n    }\n  }\n\n  _onSuccess() {\n    this.failures = 0;\n    this.state = 'CLOSED';\n  }\n\n  _onFailure(e) {\n    this.failures++;\n    this.lastFailure = Date.now();\n    \u002F\u002F Security blocks open immediately\n    const immediate = e.exitCode === 3 || e.exitCode === 7;\n    if (immediate || this.failures >= this.threshold) {\n      this.state = 'OPEN';\n      this.openCount++;\n    }\n  }\n\n  _cooldownMs() {\n    \u002F\u002F Exponential backoff: 60s, 300s, 1800s\n    return [60000, 300000, 1800000][Math.min(this.openCount - 1, 2)];\n  }\n}\n\n\u002F\u002F Usage\nconst breaker = new CircuitBreaker({ threshold: 5 });\nawait breaker.call(() => runAgentTool(agentId, command));\n```\n\n## Canary Deployment\n\n```js\nclass CanaryGate {\n  constructor(opts = {}) {\n    this.rate      = opts.rate     ?? 0.01;  \u002F\u002F 1%\n    this.windowMs  = opts.windowMs ?? 30 * 60 * 1000;  \u002F\u002F 30 min\n    this.baseline  = opts.baseline ?? { errorRate: 0.02, latencyP95: 500 };\n    this.canaryStats = { calls: 0, errors: 0, latencies: [] };\n  }\n\n  shouldUseCanary() {\n    return Math.random() \u003C this.rate;\n  }\n\n  record(isError, latencyMs) {\n    this.canaryStats.calls++;\n    if (isError) this.canaryStats.errors++;\n    this.canaryStats.latencies.push(latencyMs);\n  }\n\n  shouldRollback() {\n    const { calls, errors, latencies } = this.canaryStats;\n    if (calls \u003C 10) return false;  \u002F\u002F not enough data\n\n    const errorRate = errors \u002F calls;\n    const p95 = latencies.sort((a,b) => a-b)[Math.floor(latencies.length * 0.95)];\n\n    return errorRate > this.baseline.errorRate + 0.02 ||\n           p95 > this.baseline.latencyP95 * 1.2;\n  }\n}\n```\n\n## Hallucination Telemetry Checker\n\n```js\nasync function checkHallucination(skillOutput, referenceOutput) {\n  \u002F\u002F Cosine similarity of embeddings (simplified)\n  const similarity = cosineSimilarity(\n    await embed(skillOutput),\n    await embed(referenceOutput)\n  );\n  \u002F\u002F \u003C 0.85 similarity = potential hallucination\n  return { score: similarity, hallucinated: similarity \u003C 0.85 };\n}\n\n\u002F\u002F In canary pipeline:\nconst { hallucinated, score } = await checkHallucination(canaryResult, baselineResult);\nif (hallucinated) {\n  canaryGate.rollback();\n  secureLogger.logAction('canary', 'hallucination-detected', 'BLOCK', { score });\n}\n```\n\n## Sovereign State Reconstruction (Lớp 96)\n\n```js\n\u002F\u002F Restore swarm to last verified Merkle snapshot\nasync function emergencyRollback() {\n  const lastGoodRoot = readFileSync('releases\u002Flogs\u002Faudit.jsonl.root', 'utf8').trim();\n  const snapshotPath = `releases\u002Fsnapshots\u002F${lastGoodRoot.slice(0,16)}.tar.gz`;\n\n  \u002F\u002F Verify snapshot integrity before restoring\n  const actual = sha256(readFileSync(snapshotPath));\n  if (actual !== lastGoodRoot) throw new Error('SNAPSHOT_TAMPERED');\n\n  execSync(`tar -xzf ${snapshotPath} -C \u002Fworkspaces\u002Fyana-ai\u002F`);\n  secureLogger.logAction('system', 'emergency-rollback', 'PASS', { root: lastGoodRoot });\n}\n```\n\n## Anti-Fake-Pass Checklist\n\n- [ ] Circuit opens after exactly `threshold` failures — test with mock that always throws\n- [ ] HALF_OPEN probe: single success closes circuit, single failure reopens\n- [ ] Canary rate = 0.01 — verify `shouldUseCanary()` returns true ~1% of calls\n- [ ] Rollback triggered before promoting canary to 100% if error rate rises\n- [ ] Snapshot hash verified before restoring (tampered snapshot = abort)\n","# Circuit Breaker & Automated Rollback\n\nIsolate failing agents\u002Ftools automatically before errors cascade. Deploy new skills to 1% canary traffic, roll back if quality drops.\n\n## When to Use\n\n- Agent or tool returning repeated errors that are slowing the entire swarm\n- Deploying a new skill and wanting automatic rollback if it degrades quality\n- Protecting downstream agents from an upstream agent stuck in an error loop\n- Implementing the YAMTAM circuit-breaker-law (rule 56) and canary-deployment-law (rule 57)\n\n## Do NOT use for\n\n- Single requests where retrying once is fine\n- Tools that must always be called regardless of prior failures (e.g., audit logging)\n\n## Circuit Breaker\n\n```js\nclass CircuitBreaker {\n  constructor(opts = {}) {\n    this.threshold   = opts.threshold ?? 5;\n    this.cooldown    = opts.cooldown  ?? 60000;  \u002F\u002F 60s\n    this.state       = 'CLOSED';\n    this.failures    = 0;\n    this.lastFailure = 0;\n    this.openCount   = 0;\n  }\n\n  async call(fn) {\n    if (this.state === 'OPEN') {\n      const elapsed = Date.now() - this.lastFailure;\n      if (elapsed \u003C this._cooldownMs()) throw new Error('CIRCUIT_OPEN');\n      this.state = 'HALF_OPEN';\n    }\n\n    try {\n      const result = await fn();\n      this._onSuccess();\n      return result;\n    } catch (e) {\n      this._onFailure(e);\n      throw e;\n    }\n  }\n\n  _onSuccess() {\n    this.failures = 0;\n    this.state = 'CLOSED';\n  }\n\n  _onFailure(e) {\n    this.failures++;\n    this.lastFailure = Date.now();\n    \u002F\u002F Security blocks open immediately\n    const immediate = e.exitCode === 3 || e.exitCode === 7;\n    if (immediate || this.failures >= this.threshold) {\n      this.state = 'OPEN';\n      this.openCount++;\n    }\n  }\n\n  _cooldownMs() {\n    \u002F\u002F Exponential backoff: 60s, 300s, 1800s\n    return [60000, 300000, 1800000][Math.min(this.openCount - 1, 2)];\n  }\n}\n\n\u002F\u002F Usage\nconst breaker = new CircuitBreaker({ threshold: 5 });\nawait breaker.call(() => runAgentTool(agentId, command));\n```\n\n## Canary Deployment\n\n```js\nclass CanaryGate {\n  constructor(opts = {}) {\n    this.rate      = opts.rate     ?? 0.01;  \u002F\u002F 1%\n    this.windowMs  = opts.windowMs ?? 30 * 60 * 1000;  \u002F\u002F 30 min\n    this.baseline  = opts.baseline ?? { errorRate: 0.02, latencyP95: 500 };\n    this.canaryStats = { calls: 0, errors: 0, latencies: [] };\n  }\n\n  shouldUseCanary() {\n    return Math.random() \u003C this.rate;\n  }\n\n  record(isError, latencyMs) {\n    this.canaryStats.calls++;\n    if (isError) this.canaryStats.errors++;\n    this.canaryStats.latencies.push(latencyMs);\n  }\n\n  shouldRollback() {\n    const { calls, errors, latencies } = this.canaryStats;\n    if (calls \u003C 10) return false;  \u002F\u002F not enough data\n\n    const errorRate = errors \u002F calls;\n    const p95 = latencies.sort((a,b) => a-b)[Math.floor(latencies.length * 0.95)];\n\n    return errorRate > this.baseline.errorRate + 0.02 ||\n           p95 > this.baseline.latencyP95 * 1.2;\n  }\n}\n```\n\n## Hallucination Telemetry Checker\n\n```js\nasync function checkHallucination(skillOutput, referenceOutput) {\n  \u002F\u002F Cosine similarity of embeddings (simplified)\n  const similarity = cosineSimilarity(\n    await embed(skillOutput),\n    await embed(referenceOutput)\n  );\n  \u002F\u002F \u003C 0.85 similarity = potential hallucination\n  return { score: similarity, hallucinated: similarity \u003C 0.85 };\n}\n\n\u002F\u002F In canary pipeline:\nconst { hallucinated, score } = await checkHallucination(canaryResult, baselineResult);\nif (hallucinated) {\n  canaryGate.rollback();\n  secureLogger.logAction('canary', 'hallucination-detected', 'BLOCK', { score });\n}\n```\n\n## Sovereign State Reconstruction (Lớp 96)\n\n```js\n\u002F\u002F Restore swarm to last verified Merkle snapshot\nasync function emergencyRollback() {\n  const lastGoodRoot = readFileSync('releases\u002Flogs\u002Faudit.jsonl.root', 'utf8').trim();\n  const snapshotPath = `releases\u002Fsnapshots\u002F${lastGoodRoot.slice(0,16)}.tar.gz`;\n\n  \u002F\u002F Verify snapshot integrity before restoring\n  const actual = sha256(readFileSync(snapshotPath));\n  if (actual !== lastGoodRoot) throw new Error('SNAPSHOT_TAMPERED');\n\n  execSync(`tar -xzf ${snapshotPath} -C \u002Fworkspaces\u002Fyana-ai\u002F`);\n  secureLogger.logAction('system', 'emergency-rollback', 'PASS', { root: lastGoodRoot });\n}\n```\n\n## Anti-Fake-Pass Checklist\n\n- [ ] Circuit opens after exactly `threshold` failures — test with mock that always throws\n- [ ] HALF_OPEN probe: single success closes circuit, single failure reopens\n- [ ] Canary rate = 0.01 — verify `shouldUseCanary()` returns true ~1% of calls\n- [ ] Rollback triggered before promoting canary to 100% if error rate rises\n- [ ] Snapshot hash verified before restoring (tampered snapshot = abort)\n",{"name":5,"origin":24,"license":15,"version":25,"description":7,"compatibility":26},"Netflix Hystrix concept, Martin Fowler Circuit Breaker pattern, YAMTAM rules 56–57","1.0.0","claude-sonnet-4-6, claude-opus-4-7","main","481dcd7dd2e288b9d627a2bd017db70e64e6c6fa",".claude\u002Fskills\u002Fcircuit-breaker-rollback",2,"https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI","https:\u002F\u002Fyana.vutam.link\u002F","https:\u002F\u002Fgithub.com\u002FHoronomos-laps","https:\u002F\u002Fyana.vutam.link","An open-source governed runtime & execution environment for multi-agent AI systems.","2026-11-14 13:24:09",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Horonomos-laps\u002FYana-AI --skill circuit-breaker-rollback",{"tool":43,"command":44},"bunx","bunx skills add Horonomos-laps\u002FYana-AI --skill circuit-breaker-rollback",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Horonomos-laps\u002FYana-AI --skill circuit-breaker-rollback","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcircuit-breaker-rollback\u002FSKILL.md",true,[],[52,60,67,75,83,91],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M735GKET5YVYKAY62W2P5YXB","openai--sentry--sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","MIT","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fopenai--sentry--sentry\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M73DCAP83T17HY7SMGK7MGFE","ito-basket-compare","Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fito-basket-compare\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M734CYEMZFDR3KH6SW0JP8TD","implementing-network-traffic-baselining","Build network traffic baselines from NetFlow\u002FIPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly\u002Fdaily traffic pattern profiling","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M73ASZ6NJRJM44Z2P84NGQ3Q","detecting-evasion-techniques-in-endpoint-logs","Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M734AFNXD06Z78QRK0VKGT7Q","implementing-microsegmentation-with-guardicore","Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M736TK27QMCXK0DVCH25SJN5","ramdisk-tmpfs-patterns","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Framdisk-tmpfs-patterns\u002FSKILL.md",[],[]]