[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BY47ZGT3PD3BQCH74QHPFP":3,"skill-same:01M7BY47ZGT3PD3BQCH74QHPFP":45},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7BY47ZGT3PD3BQCH74QHPFP","azure-bgp",null,"Analyze and resolve BGP oscillation and BGP route leaks in Azure Virtual WAN–style hub-and-spoke topologies (and similar cloud-managed BGP environments). Detect preference cycles, identify valley-free violations, and propose allowed policy-level mitigations while rejecting prohibited fixes.","linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillAxe-Opus47-Gold15-20260921\u002Ftasks\u002Fazure-bgp-oscillation-route-leak\u002Frepaired_skill\u002Fazure-bgp\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: azure-bgp\ndescription: \"Analyze and resolve BGP oscillation and BGP route leaks in Azure Virtual WAN–style hub-and-spoke topologies (and similar cloud-managed BGP environments). Detect preference cycles, identify valley-free violations, and propose allowed policy-level mitigations while rejecting prohibited fixes.\"\n---\n\n# Azure BGP Oscillation & Route Leak Analysis\n\nAnalyze and resolve BGP oscillation and BGP route leaks in Azure Virtual WAN–style hub-and-spoke topologies (and similar cloud-managed BGP environments).\n\nThis skill trains an agent to:\n\n- Detect preference cycles that cause BGP oscillation\n- Identify valley-free violations that constitute route leaks\n- Propose allowed, policy-level mitigations (routing intent, export policy, communities, UDR, ingress filtering)\n- Reject prohibited fixes (disabling BGP, shutting down peering, removing connectivity)\n\nThe focus is cloud-correct reasoning, not on-prem router manipulation.\n\n## When to Use This Skill\n\nUse this skill when a task involves:\n\n- Azure Virtual WAN, hub-and-spoke BGP, ExpressRoute, or VPN gateways\n- Repeated route flapping or unstable path selection\n- Unexpected transit, leaked prefixes, or valley-free violations\n- Choosing between routing intent, UDRs, or BGP policy fixes\n- Evaluating whether a proposed \"fix\" is valid in Azure\n\n## Core Invariants (Must Never Be Violated)\n\nAn agent must internalize these constraints before reasoning:\n\n- ❌ BGP sessions between hubs **cannot** be administratively disabled by customers as it's owned by azure\n- ❌ Peering connections **cannot** be shut down as a fix as it break all other traffic running on the connections\n- ❌ Removing connectivity is **not** a valid solution as it break all other traffic running\n- ✅ Problems **must** be fixed using routing policy, not topology destruction\n\n**Any solution violating these rules is invalid.**\n\n## Expected Inputs\n\nTasks using this skill typically provide small JSON files:\n\n| File | Meaning |\n|------|---------|\n| `topology.json` | Directed BGP adjacency graph |\n| `relationships.json` | Economic relationship per edge (provider, customer, peer) |\n| `preferences.json` | Per-ASN preferred next hop (may cause oscillation) |\n| `route.json` | Prefix and origin ASN |\n| `route_leaks.json` \u002F `route_events.json` | Evidence of invalid propagation |\n| `possible_solutions.json` | Candidate fixes to classify |\n\n## Reasoning Workflow (Executable Checklist)\n\n### Step 1 — Sanity-Check Inputs\n\n- Every ASN referenced must exist in `topology.json`\n- Relationship symmetry must hold:\n  - `provider(A→B)` ⇔ `customer(B→A)`\n  - `peer` must be symmetric\n- If this fails, the input is invalid.\n\n### Step 2 — Detect BGP Oscillation (Preference Cycle)\n\n**Definition**\n\nBGP oscillation exists if ASes form a preference cycle in `preferences.json`, often between peers.\n\n**Detection Rule**\n\n1. Build a directed graph strictly from `preferences.json`: `ASN → preferred next-hop ASN`\n2. If the graph contains a cycle, oscillation exists.\n3. A 2-node cycle is sufficient.\n\n**Example pseudocode:**\n\n```python\npref = {asn: prefer_via_asn, ...}\n\ndef find_cycle(start):\n    path = []\n    seen = {}\n    cur = start\n    while cur in pref:\n        if cur in seen:\n            return path[seen[cur]:]  # cycle found\n        seen[cur] = len(path)\n        path.append(cur)\n        cur = pref[cur]\n    return None\n```\n\n### Step 3 — Detect BGP Route Leak (Valley-Free Violation)\n\n**Valley-Free Rule**\n\n| Learned from | May export to |\n|--------------|---------------|\n| Customer | Anyone |\n| Peer | Customers only |\n| Provider | Customers only |\n\n**Leak Conditions**\n\nA route leak exists if either is true:\n\n1. Route learned from a **provider** is exported to a **peer or provider**\n2. Route learned from a **peer** is exported to a **peer or provider**\n\n## Solution Classification Rubric (Strict)\n\nWhen a task asks you to classify each candidate solution with two booleans\n`(oscillation_resolved, route_leak_resolved)`, apply these **strict, independent** tests.\nDo not conflate the two axes; a solution can fix one, both, or neither.\n\n### Oscillation-Resolution Test (strict)\n\nA solution resolves oscillation **iff it eliminates the preference cycle in `preferences.json`**\nfor the hubs involved. Concretely, at least one of:\n\n- Changes\u002Fremoves an entry in `preferences.json` so one hub no longer prefers via the other\n  (e.g., \"stop preferring routes via hub2\", explicit preference hierarchy that demotes the\n  peer hub below Virtual WAN \u002F customers).\n- Filters, at the announcing hub, **all** routes learned from the other hub before\n  re-advertising them back (i.e., fully removes one leg of the cycle across all prefix\n  categories, not just provider-learned prefixes).\n- Overrides BGP path selection with a deterministic forwarding decision that supersedes\n  the preference cycle for the affected traffic (Virtual WAN routing intent, UDR).\n\nA solution does **NOT** resolve oscillation if it only:\n\n- Blocks a subset of prefixes (e.g., only provider-learned routes) from being exported to\n  the peer hub. The peer-preference cycle still exists for other prefix categories.\n- Filters ingress on the receiving hub (e.g., rejecting routes with a specific AS_PATH).\n  This changes which routes are installed but does **not** change `preferences.json`; the\n  cycle logic is unchanged for any remaining path.\n- Enforces `no-export` community on a subset of routes; same reasoning as above.\n- Applies RPKI origin validation, prefix caps, timer tuning, dampening, ECMP, waiting,\n  restarts, or AS-PATH\u002FMED tie-breaking. None of these edit the preference graph.\n\n### Route-Leak-Resolution Test (strict)\n\nA solution resolves the route leak **iff it prevents hub1\u002Fhub2 from advertising the\nprovider-learned (Virtual WAN) route to the other hub, or prevents the receiving hub\nfrom accepting\u002Fpropagating it**. Concretely, any of:\n\n- Export policy at the leaker hub that blocks provider-learned routes toward the peer hub\n  (explicit export filter, `no-export` community on provider routes, valley-free export\n  policy).\n- Ingress filter at the receiving hub that rejects routes whose AS_PATH shows they came\n  via the other hub from the shared provider (e.g., AS_PATH contains Virtual WAN ASN).\n- Origin-validation mechanisms (e.g., RPKI) configured to reject the leaked announcement\n  because the announcing hub is not the authorized origin for that prefix. Use this only\n  when the task's origin data is consistent with RPKI being able to identify the leak\n  (the legitimate origin ASN is documented and differs from the leaker).\n- Virtual WAN routing intent that forces hub-to-hub traffic through Virtual WAN, making\n  leaked peer routes unusable for transit.\n- UDR that overrides the leaked next hop with a deterministic one.\n\nA solution does **NOT** resolve the leak if it only changes local preference\u002FAS-PATH\nranking, applies dampening\u002Ftimers, caps prefix count, restarts sessions, disables\npeering (prohibited), or filters an unrelated prefix range.\n\n### Worked Micro-Examples\n\n| Candidate | Osc? | Leak? | Reason |\n|-----------|------|-------|--------|\n| Enable Virtual WAN routing intent (all hub-to-hub via VWAN) | ✅ | ✅ | Overrides BGP forwarding; leaked peer routes unusable. |\n| UDR override on vhubvnet1 defaultRouteTable | ✅ | ✅ | Deterministic next-hop supersedes both cycle and leak. |\n| Update hub1 preferences to stop preferring via hub2 | ✅ | ❌ | Edits `preferences.json`; does not stop advertising provider routes. |\n| Preference hierarchy on hub1 (customer > VWAN > peer) | ✅ | ❌ | Removes the cycle; still advertises provider routes to peer. |\n| Export filter on hub1 dropping **all** routes learned from hub2 before re-advertising | ✅ | ❌ | Removes one leg of the cycle entirely; independent of leak direction. |\n| Export policy on hub1 blocking **provider-learned** routes to peer hub2 | ❌ | ✅ | Cycle unaffected for other prefixes; leak stopped. |\n| `no-export` community on provider routes to peer | ❌ | ✅ | Same as above; scoped to provider prefixes only. |\n| Ingress filter on hub2 rejecting routes with AS_PATH containing VWAN ASN from hub1 | ❌ | ✅ | Ingress-side leak block; does not edit preference graph. |\n| RPKI origin validation on hub2 for the leaked prefix | ❌ | ✅ | Rejects announcement whose origin ≠ authorized origin; does not touch preferences. |\n| Timer tuning \u002F dampening \u002F max-prefix \u002F ECMP \u002F wait \u002F restart | ❌ | ❌ | Symptomatic or unrelated; no cycle or export change. |\n| AS-PATH \u002F MED tie-breaking, narrow prefix acceptance filter | ❌ | ❌ | Does not edit preferences and does not stop the specific leak. |\n| Disable peering, disable BGP, shutdown gateways | ❌ | ❌ | Prohibited; always invalid regardless of effect. |\n\nUse this rubric verbatim when producing `solution_results`.\n\n## Fix Selection Logic (Ranked, for Recommendations)\n\nWhen recommending fixes (not just classifying), prefer this order. Note: recommendation\nranking is independent of the strict two-axis classification above.\n\n### Tier 1 — Virtual WAN Routing Intent (Preferred)\n\n**Applies to:** ✔ Oscillation ✔ Route leaks\n\n- Routing intent operates above BGP; forwarding becomes deterministic and policy-driven.\n- Even if BGP oscillates, forwarding is stable.\n- Prevents leaked peer routes from being used as transit.\n\n### Tier 2 — Export \u002F Route Policy (Protocol-Correct)\n\n**Applies to:**\n- ✔ Route leaks (when scoped to the leaked category or ingress AS_PATH)\n- Oscillation only if the filter fully removes one leg of the preference cycle\n  (i.e., filters **all** routes learned from the peer hub before re-advertising).\n  A filter scoped to provider-learned routes only does **not** resolve oscillation.\n\nMechanisms:\n\n- Export filter that drops all routes learned from the peer hub before re-advertising\n  (oscillation + optionally leak).\n- Export policy \u002F `no-export` community on provider-learned routes toward the peer hub\n  (leak only).\n- Ingress AS_PATH filtering on the receiving hub (leak only).\n- RPKI origin validation (leak only, when origin data supports it).\n\n### Tier 3 — User Defined Routes (UDR)\n\n**Applies to:** ✔ Oscillation ✔ Route leaks\n\n- Data-plane override; deterministic next hop supersedes BGP decisions and leaked routes.\n- Use when routing intent is unavailable or immediate containment is required.\n\n## Prohibited Fixes (Must Be Rejected)\n\n| Proposed Fix | Reason |\n|--------------|--------|\n| Disable BGP | Not customer-controllable |\n| Disable peering | Prohibited; breaks other traffic; does not fix root cause |\n| Shutdown gateways | Breaks SLA \u002F shared control plane |\n| Restart devices\u002Fsessions | Resets symptoms only |\n\nCloud providers separate policy control from connectivity existence. Fix BGP issues\nthrough **policy changes**, never by disabling connectivity.\n\n## Common Pitfalls\n\n- ❌ **Timer tuning or dampening fixes oscillation** — False. Reduces symptoms only.\n- ❌ **Accepting fewer prefixes prevents route leaks** — False. Ingress prefix-count caps\n  do not stop export of leaked routes.\n- ❌ **Removing peers is a valid mitigation** — False. Prohibited in Azure.\n- ❌ **Restarting gateways fixes root cause** — False.\n- ❌ **Any export\u002Fingress filter that touches the leaked prefix also resolves\n  oscillation** — False. Oscillation is defined by the preference cycle in\n  `preferences.json`. A filter scoped to a single prefix category (e.g., provider-learned)\n  does not break the cycle; other prefix categories still traverse the same preferred\n  next-hop and the cycle logic persists.\n- ❌ **RPKI resolves oscillation** — False. RPKI validates origin; it does not edit the\n  preference graph. It can resolve a leak when the leaker is not the authorized origin.\n- ❌ **AS-PATH prepend \u002F MED tuning breaks a peer-preference cycle** — False. These\n  affect ranking but do not remove the cyclic preference between the two hubs.\n\n## Output Expectations\n\nA correct solution should:\n\n1. Identify oscillation and\u002For route leak correctly.\n2. Explain the cause (preference cycle or valley-free violation).\n3. For each candidate solution, apply the **Solution Classification Rubric** above and\n   emit `oscillation_resolved` and `route_leak_resolved` **independently**.\n4. Reject prohibited fixes with reasoning.\n\n## References\n\n- RFC 4271 — Border Gateway Protocol 4 (BGP-4)\n- RFC 7908 — Problem Definition and Classification of BGP Route Leaks\n- Gao–Rexford model — Valley-free routing economics\n","# Azure BGP Oscillation & Route Leak Analysis\n\nAnalyze and resolve BGP oscillation and BGP route leaks in Azure Virtual WAN–style hub-and-spoke topologies (and similar cloud-managed BGP environments).\n\nThis skill trains an agent to:\n\n- Detect preference cycles that cause BGP oscillation\n- Identify valley-free violations that constitute route leaks\n- Propose allowed, policy-level mitigations (routing intent, export policy, communities, UDR, ingress filtering)\n- Reject prohibited fixes (disabling BGP, shutting down peering, removing connectivity)\n\nThe focus is cloud-correct reasoning, not on-prem router manipulation.\n\n## When to Use This Skill\n\nUse this skill when a task involves:\n\n- Azure Virtual WAN, hub-and-spoke BGP, ExpressRoute, or VPN gateways\n- Repeated route flapping or unstable path selection\n- Unexpected transit, leaked prefixes, or valley-free violations\n- Choosing between routing intent, UDRs, or BGP policy fixes\n- Evaluating whether a proposed \"fix\" is valid in Azure\n\n## Core Invariants (Must Never Be Violated)\n\nAn agent must internalize these constraints before reasoning:\n\n- ❌ BGP sessions between hubs **cannot** be administratively disabled by customers as it's owned by azure\n- ❌ Peering connections **cannot** be shut down as a fix as it break all other traffic running on the connections\n- ❌ Removing connectivity is **not** a valid solution as it break all other traffic running\n- ✅ Problems **must** be fixed using routing policy, not topology destruction\n\n**Any solution violating these rules is invalid.**\n\n## Expected Inputs\n\nTasks using this skill typically provide small JSON files:\n\n| File | Meaning |\n|------|---------|\n| `topology.json` | Directed BGP adjacency graph |\n| `relationships.json` | Economic relationship per edge (provider, customer, peer) |\n| `preferences.json` | Per-ASN preferred next hop (may cause oscillation) |\n| `route.json` | Prefix and origin ASN |\n| `route_leaks.json` \u002F `route_events.json` | Evidence of invalid propagation |\n| `possible_solutions.json` | Candidate fixes to classify |\n\n## Reasoning Workflow (Executable Checklist)\n\n### Step 1 — Sanity-Check Inputs\n\n- Every ASN referenced must exist in `topology.json`\n- Relationship symmetry must hold:\n  - `provider(A→B)` ⇔ `customer(B→A)`\n  - `peer` must be symmetric\n- If this fails, the input is invalid.\n\n### Step 2 — Detect BGP Oscillation (Preference Cycle)\n\n**Definition**\n\nBGP oscillation exists if ASes form a preference cycle in `preferences.json`, often between peers.\n\n**Detection Rule**\n\n1. Build a directed graph strictly from `preferences.json`: `ASN → preferred next-hop ASN`\n2. If the graph contains a cycle, oscillation exists.\n3. A 2-node cycle is sufficient.\n\n**Example pseudocode:**\n\n```python\npref = {asn: prefer_via_asn, ...}\n\ndef find_cycle(start):\n    path = []\n    seen = {}\n    cur = start\n    while cur in pref:\n        if cur in seen:\n            return path[seen[cur]:]  # cycle found\n        seen[cur] = len(path)\n        path.append(cur)\n        cur = pref[cur]\n    return None\n```\n\n### Step 3 — Detect BGP Route Leak (Valley-Free Violation)\n\n**Valley-Free Rule**\n\n| Learned from | May export to |\n|--------------|---------------|\n| Customer | Anyone |\n| Peer | Customers only |\n| Provider | Customers only |\n\n**Leak Conditions**\n\nA route leak exists if either is true:\n\n1. Route learned from a **provider** is exported to a **peer or provider**\n2. Route learned from a **peer** is exported to a **peer or provider**\n\n## Solution Classification Rubric (Strict)\n\nWhen a task asks you to classify each candidate solution with two booleans\n`(oscillation_resolved, route_leak_resolved)`, apply these **strict, independent** tests.\nDo not conflate the two axes; a solution can fix one, both, or neither.\n\n### Oscillation-Resolution Test (strict)\n\nA solution resolves oscillation **iff it eliminates the preference cycle in `preferences.json`**\nfor the hubs involved. Concretely, at least one of:\n\n- Changes\u002Fremoves an entry in `preferences.json` so one hub no longer prefers via the other\n  (e.g., \"stop preferring routes via hub2\", explicit preference hierarchy that demotes the\n  peer hub below Virtual WAN \u002F customers).\n- Filters, at the announcing hub, **all** routes learned from the other hub before\n  re-advertising them back (i.e., fully removes one leg of the cycle across all prefix\n  categories, not just provider-learned prefixes).\n- Overrides BGP path selection with a deterministic forwarding decision that supersedes\n  the preference cycle for the affected traffic (Virtual WAN routing intent, UDR).\n\nA solution does **NOT** resolve oscillation if it only:\n\n- Blocks a subset of prefixes (e.g., only provider-learned routes) from being exported to\n  the peer hub. The peer-preference cycle still exists for other prefix categories.\n- Filters ingress on the receiving hub (e.g., rejecting routes with a specific AS_PATH).\n  This changes which routes are installed but does **not** change `preferences.json`; the\n  cycle logic is unchanged for any remaining path.\n- Enforces `no-export` community on a subset of routes; same reasoning as above.\n- Applies RPKI origin validation, prefix caps, timer tuning, dampening, ECMP, waiting,\n  restarts, or AS-PATH\u002FMED tie-breaking. None of these edit the preference graph.\n\n### Route-Leak-Resolution Test (strict)\n\nA solution resolves the route leak **iff it prevents hub1\u002Fhub2 from advertising the\nprovider-learned (Virtual WAN) route to the other hub, or prevents the receiving hub\nfrom accepting\u002Fpropagating it**. Concretely, any of:\n\n- Export policy at the leaker hub that blocks provider-learned routes toward the peer hub\n  (explicit export filter, `no-export` community on provider routes, valley-free export\n  policy).\n- Ingress filter at the receiving hub that rejects routes whose AS_PATH shows they came\n  via the other hub from the shared provider (e.g., AS_PATH contains Virtual WAN ASN).\n- Origin-validation mechanisms (e.g., RPKI) configured to reject the leaked announcement\n  because the announcing hub is not the authorized origin for that prefix. Use this only\n  when the task's origin data is consistent with RPKI being able to identify the leak\n  (the legitimate origin ASN is documented and differs from the leaker).\n- Virtual WAN routing intent that forces hub-to-hub traffic through Virtual WAN, making\n  leaked peer routes unusable for transit.\n- UDR that overrides the leaked next hop with a deterministic one.\n\nA solution does **NOT** resolve the leak if it only changes local preference\u002FAS-PATH\nranking, applies dampening\u002Ftimers, caps prefix count, restarts sessions, disables\npeering (prohibited), or filters an unrelated prefix range.\n\n### Worked Micro-Examples\n\n| Candidate | Osc? | Leak? | Reason |\n|-----------|------|-------|--------|\n| Enable Virtual WAN routing intent (all hub-to-hub via VWAN) | ✅ | ✅ | Overrides BGP forwarding; leaked peer routes unusable. |\n| UDR override on vhubvnet1 defaultRouteTable | ✅ | ✅ | Deterministic next-hop supersedes both cycle and leak. |\n| Update hub1 preferences to stop preferring via hub2 | ✅ | ❌ | Edits `preferences.json`; does not stop advertising provider routes. |\n| Preference hierarchy on hub1 (customer > VWAN > peer) | ✅ | ❌ | Removes the cycle; still advertises provider routes to peer. |\n| Export filter on hub1 dropping **all** routes learned from hub2 before re-advertising | ✅ | ❌ | Removes one leg of the cycle entirely; independent of leak direction. |\n| Export policy on hub1 blocking **provider-learned** routes to peer hub2 | ❌ | ✅ | Cycle unaffected for other prefixes; leak stopped. |\n| `no-export` community on provider routes to peer | ❌ | ✅ | Same as above; scoped to provider prefixes only. |\n| Ingress filter on hub2 rejecting routes with AS_PATH containing VWAN ASN from hub1 | ❌ | ✅ | Ingress-side leak block; does not edit preference graph. |\n| RPKI origin validation on hub2 for the leaked prefix | ❌ | ✅ | Rejects announcement whose origin ≠ authorized origin; does not touch preferences. |\n| Timer tuning \u002F dampening \u002F max-prefix \u002F ECMP \u002F wait \u002F restart | ❌ | ❌ | Symptomatic or unrelated; no cycle or export change. |\n| AS-PATH \u002F MED tie-breaking, narrow prefix acceptance filter | ❌ | ❌ | Does not edit preferences and does not stop the specific leak. |\n| Disable peering, disable BGP, shutdown gateways | ❌ | ❌ | Prohibited; always invalid regardless of effect. |\n\nUse this rubric verbatim when producing `solution_results`.\n\n## Fix Selection Logic (Ranked, for Recommendations)\n\nWhen recommending fixes (not just classifying), prefer this order. Note: recommendation\nranking is independent of the strict two-axis classification above.\n\n### Tier 1 — Virtual WAN Routing Intent (Preferred)\n\n**Applies to:** ✔ Oscillation ✔ Route leaks\n\n- Routing intent operates above BGP; forwarding becomes deterministic and policy-driven.\n- Even if BGP oscillates, forwarding is stable.\n- Prevents leaked peer routes from being used as transit.\n\n### Tier 2 — Export \u002F Route Policy (Protocol-Correct)\n\n**Applies to:**\n- ✔ Route leaks (when scoped to the leaked category or ingress AS_PATH)\n- Oscillation only if the filter fully removes one leg of the preference cycle\n  (i.e., filters **all** routes learned from the peer hub before re-advertising).\n  A filter scoped to provider-learned routes only does **not** resolve oscillation.\n\nMechanisms:\n\n- Export filter that drops all routes learned from the peer hub before re-advertising\n  (oscillation + optionally leak).\n- Export policy \u002F `no-export` community on provider-learned routes toward the peer hub\n  (leak only).\n- Ingress AS_PATH filtering on the receiving hub (leak only).\n- RPKI origin validation (leak only, when origin data supports it).\n\n### Tier 3 — User Defined Routes (UDR)\n\n**Applies to:** ✔ Oscillation ✔ Route leaks\n\n- Data-plane override; deterministic next hop supersedes BGP decisions and leaked routes.\n- Use when routing intent is unavailable or immediate containment is required.\n\n## Prohibited Fixes (Must Be Rejected)\n\n| Proposed Fix | Reason |\n|--------------|--------|\n| Disable BGP | Not customer-controllable |\n| Disable peering | Prohibited; breaks other traffic; does not fix root cause |\n| Shutdown gateways | Breaks SLA \u002F shared control plane |\n| Restart devices\u002Fsessions | Resets symptoms only |\n\nCloud providers separate policy control from connectivity existence. Fix BGP issues\nthrough **policy changes**, never by disabling connectivity.\n\n## Common Pitfalls\n\n- ❌ **Timer tuning or dampening fixes oscillation** — False. Reduces symptoms only.\n- ❌ **Accepting fewer prefixes prevents route leaks** — False. Ingress prefix-count caps\n  do not stop export of leaked routes.\n- ❌ **Removing peers is a valid mitigation** — False. Prohibited in Azure.\n- ❌ **Restarting gateways fixes root cause** — False.\n- ❌ **Any export\u002Fingress filter that touches the leaked prefix also resolves\n  oscillation** — False. Oscillation is defined by the preference cycle in\n  `preferences.json`. A filter scoped to a single prefix category (e.g., provider-learned)\n  does not break the cycle; other prefix categories still traverse the same preferred\n  next-hop and the cycle logic persists.\n- ❌ **RPKI resolves oscillation** — False. RPKI validates origin; it does not edit the\n  preference graph. It can resolve a leak when the leaker is not the authorized origin.\n- ❌ **AS-PATH prepend \u002F MED tuning breaks a peer-preference cycle** — False. These\n  affect ranking but do not remove the cyclic preference between the two hubs.\n\n## Output Expectations\n\nA correct solution should:\n\n1. Identify oscillation and\u002For route leak correctly.\n2. Explain the cause (preference cycle or valley-free violation).\n3. For each candidate solution, apply the **Solution Classification Rubric** above and\n   emit `oscillation_resolved` and `route_leak_resolved` **independently**.\n4. Reject prohibited fixes with reasoning.\n\n## References\n\n- RFC 4271 — Border Gateway Protocol 4 (BGP-4)\n- RFC 7908 — Problem Definition and Classification of BGP Route Leaks\n- Gao–Rexford model — Valley-free routing economics\n",{"name":5,"description":7},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillAxe-Opus47-Gold15-20260921\u002Ftasks\u002Fazure-bgp-oscillation-route-leak\u002Frepaired_skill\u002Fazure-bgp",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill azure-bgp",{"tool":37,"command":38},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill azure-bgp",{"tool":40,"command":41},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill azure-bgp","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillAxe-Opus47-Gold15-20260921\u002Ftasks\u002Fazure-bgp-oscillation-route-leak\u002Frepaired_skill\u002Fazure-bgp\u002FSKILL.md",true,[],[46,53,60,67,72,77],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\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},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":68,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":73,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":78,"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":79,"categories":80,"keywords":81,"publishedAt":19},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]