|
| 1 | +{ |
| 2 | + "task_id": "docgen-arch-002", |
| 3 | + "description": "Istio Pilot Discovery Service Architecture Documentation", |
| 4 | + "weights": { |
| 5 | + "required_topics": 0.40, |
| 6 | + "file_references": 0.25, |
| 7 | + "data_flow": 0.20, |
| 8 | + "extension_points": 0.15 |
| 9 | + }, |
| 10 | + "required_topics": [ |
| 11 | + { |
| 12 | + "id": "t1", |
| 13 | + "description": "Explains DiscoveryServer as the xDS gRPC server", |
| 14 | + "patterns": ["DiscoveryServer", "xDS.*server|gRPC.*server|xDS.*gRPC"], |
| 15 | + "weight": 0.10 |
| 16 | + }, |
| 17 | + { |
| 18 | + "id": "t2", |
| 19 | + "description": "Explains ADS (Aggregated Discovery Service)", |
| 20 | + "patterns": ["ADS|Aggregated.*Discovery.*Service|StreamAggregatedResources"], |
| 21 | + "weight": 0.10 |
| 22 | + }, |
| 23 | + { |
| 24 | + "id": "t3", |
| 25 | + "description": "Explains adsClients or connection tracking", |
| 26 | + "patterns": ["adsClients|connection.*tracking|active.*connections|proxy.*connections"], |
| 27 | + "weight": 0.07 |
| 28 | + }, |
| 29 | + { |
| 30 | + "id": "t4", |
| 31 | + "description": "Explains debouncing or push coordination", |
| 32 | + "patterns": ["debounce|debouncing|DebounceOptions|push.*coordination|batch.*updates"], |
| 33 | + "weight": 0.07 |
| 34 | + }, |
| 35 | + { |
| 36 | + "id": "t5", |
| 37 | + "description": "Explains xDS resource types (CDS, LDS, RDS, EDS)", |
| 38 | + "patterns": ["CDS|LDS|RDS|EDS|ClusterDiscoveryService|ListenerDiscoveryService|RouteDiscoveryService|EndpointDiscoveryService"], |
| 39 | + "weight": 0.08 |
| 40 | + }, |
| 41 | + { |
| 42 | + "id": "t6", |
| 43 | + "description": "Explains Connection type wrapping xDS stream", |
| 44 | + "patterns": ["Connection.*type|Connection.*struct|stream.*wrapper|proxy.*metadata"], |
| 45 | + "weight": 0.08 |
| 46 | + }, |
| 47 | + { |
| 48 | + "id": "t7", |
| 49 | + "description": "Explains PushContext as configuration snapshot", |
| 50 | + "patterns": ["PushContext", "configuration.*snapshot|config.*snapshot|immutable.*context"], |
| 51 | + "weight": 0.10 |
| 52 | + }, |
| 53 | + { |
| 54 | + "id": "t8", |
| 55 | + "description": "Explains InitContext or push context regeneration", |
| 56 | + "patterns": ["InitContext|push.*context.*regen|rebuild.*context|config.*change.*trigger"], |
| 57 | + "weight": 0.07 |
| 58 | + }, |
| 59 | + { |
| 60 | + "id": "t9", |
| 61 | + "description": "Explains config translation (VirtualService, DestinationRule to Envoy resources)", |
| 62 | + "patterns": ["VirtualService|DestinationRule|RouteConfiguration|Cluster.*resource|config.*translation|Istio.*CRD"], |
| 63 | + "weight": 0.10 |
| 64 | + }, |
| 65 | + { |
| 66 | + "id": "t10", |
| 67 | + "description": "Explains ServiceRegistry or Kubernetes service discovery", |
| 68 | + "patterns": ["ServiceRegistry|Kubernetes.*controller|K8s.*services|service.*discovery"], |
| 69 | + "weight": 0.08 |
| 70 | + }, |
| 71 | + { |
| 72 | + "id": "t11", |
| 73 | + "description": "Explains aggregate controller or multi-registry support", |
| 74 | + "patterns": ["aggregate.*controller|multi.*registry|ServiceEntry|external.*services"], |
| 75 | + "weight": 0.05 |
| 76 | + }, |
| 77 | + { |
| 78 | + "id": "t12", |
| 79 | + "description": "Explains multi-cluster support", |
| 80 | + "patterns": ["multi.*cluster|multicluster|cross.*cluster|remote.*cluster"], |
| 81 | + "weight": 0.05 |
| 82 | + }, |
| 83 | + { |
| 84 | + "id": "t13", |
| 85 | + "description": "Explains endpoint updates triggering EDS pushes", |
| 86 | + "patterns": ["endpoint.*update|EDS.*push|pod.*scale|health.*change|endpoint.*controller"], |
| 87 | + "weight": 0.05 |
| 88 | + } |
| 89 | + ], |
| 90 | + "file_references": [ |
| 91 | + { |
| 92 | + "id": "r1", |
| 93 | + "description": "References discovery.go", |
| 94 | + "patterns": ["pilot/pkg/xds/discovery\\.go|xds/discovery\\.go"], |
| 95 | + "weight": 0.25 |
| 96 | + }, |
| 97 | + { |
| 98 | + "id": "r2", |
| 99 | + "description": "References ads.go", |
| 100 | + "patterns": ["pilot/pkg/xds/ads\\.go|xds/ads\\.go"], |
| 101 | + "weight": 0.20 |
| 102 | + }, |
| 103 | + { |
| 104 | + "id": "r3", |
| 105 | + "description": "References push_context.go", |
| 106 | + "patterns": ["pilot/pkg/model/push_context\\.go|model/push_context\\.go"], |
| 107 | + "weight": 0.20 |
| 108 | + }, |
| 109 | + { |
| 110 | + "id": "r4", |
| 111 | + "description": "References service registry controller files", |
| 112 | + "patterns": ["pilot/pkg/serviceregistry/kube/controller|serviceregistry.*controller|kube/controller/controller\\.go"], |
| 113 | + "weight": 0.20 |
| 114 | + }, |
| 115 | + { |
| 116 | + "id": "r5", |
| 117 | + "description": "References multicluster files or networking/core config translation", |
| 118 | + "patterns": ["pilot/pkg/serviceregistry.*multicluster|pilot/pkg/networking/core|networking/core"], |
| 119 | + "weight": 0.15 |
| 120 | + } |
| 121 | + ], |
| 122 | + "data_flow": [ |
| 123 | + { |
| 124 | + "id": "d1", |
| 125 | + "description": "Istio config change (CRD watch) -> PushContext rebuild -> DiscoveryServer push queue", |
| 126 | + "patterns": ["config.*change|CRD.*watch|Kubernetes.*watch", "PushContext|InitContext|rebuild", "push.*queue|push.*trigger|DiscoveryServer"], |
| 127 | + "ordered": true, |
| 128 | + "weight": 0.40 |
| 129 | + }, |
| 130 | + { |
| 131 | + "id": "d2", |
| 132 | + "description": "DiscoveryServer push -> Connection.pushConnection -> xDS response to Envoy proxy", |
| 133 | + "patterns": ["DiscoveryServer|push.*coordination", "Connection|pushConnection|stream", "xDS.*response|DiscoveryResponse|Envoy"], |
| 134 | + "ordered": true, |
| 135 | + "weight": 0.35 |
| 136 | + }, |
| 137 | + { |
| 138 | + "id": "d3", |
| 139 | + "description": "Service registry update (pod scale, health) -> EDS push", |
| 140 | + "patterns": ["service.*registry|endpoint.*update|pod.*scale|health", "EDS|EndpointDiscoveryService|endpoint.*push"], |
| 141 | + "weight": 0.25 |
| 142 | + } |
| 143 | + ], |
| 144 | + "extension_points": [ |
| 145 | + { |
| 146 | + "id": "e1", |
| 147 | + "description": "Custom config translation or CRD extensions", |
| 148 | + "patterns": ["custom.*CRD|CRD.*extension|config.*translation|VirtualService|DestinationRule|Gateway"], |
| 149 | + "weight": 0.30 |
| 150 | + }, |
| 151 | + { |
| 152 | + "id": "e2", |
| 153 | + "description": "External service registries (ServiceEntry)", |
| 154 | + "patterns": ["ServiceEntry|external.*service|external.*registry|non.*Kubernetes.*service"], |
| 155 | + "weight": 0.25 |
| 156 | + }, |
| 157 | + { |
| 158 | + "id": "e3", |
| 159 | + "description": "Telemetry plugins or Wasm extensions", |
| 160 | + "patterns": ["telemetry|Wasm|WebAssembly|EnvoyFilter|extension.*plugin"], |
| 161 | + "weight": 0.25 |
| 162 | + }, |
| 163 | + { |
| 164 | + "id": "e4", |
| 165 | + "description": "Custom generators or xDS resource customization", |
| 166 | + "patterns": ["[Gg]enerator|custom.*generator|xDS.*customization|XdsResourceGenerator"], |
| 167 | + "weight": 0.20 |
| 168 | + } |
| 169 | + ] |
| 170 | +} |
0 commit comments