You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/agentrax-context/SKILL.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@ name: agentrax-context
3
3
description: Project context and settled architecture decisions for the Agentrax Kubernetes operator (module agentrax.io/v1alpha1, repo agentrax). Always consult this before writing, reviewing, or reasoning about any code in this repository — CRD types, the reconciler, the rollout controller, the autoscaler, the quota webhook, or the MCP registry — so implementation stays consistent with the design doc instead of drifting or re-deriving decisions that are already settled. Trigger on any mention of AgentDeployment, TenantQuota, canary rollout, or this repo's controllers, even if the user doesn't name the skill directly.
4
4
---
5
5
6
+
# Agentrax Context Skill
7
+
6
8
> When uncertain about any architecture decision, defer to `docs/ARCHITECTURE.md` rather than improvising. Don't guess when the doc has the answer.
7
9
8
10
## Non-negotiable terminology
@@ -26,7 +28,7 @@ description: Project context and settled architecture decisions for the Agentrax
Copy file name to clipboardExpand all lines: README.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,12 +94,14 @@ flowchart TB
94
94
cd agentrax
95
95
```
96
96
97
-
2.**Install cluster dependencies** (cert-manager, Prometheus Operator, Gateway API CRDs):
97
+
2.**Install cluster dependencies** (cert-manager, Prometheus Operator, Gateway API CRDs, and Prometheus Adapter):
98
98
99
99
```bash
100
100
make deploy-deps
101
101
```
102
102
103
+
Note: Prometheus Adapter installation instructions are printed by `make deploy-deps`. Follow the displayed guidance to complete the metrics pipeline setup.
|[`api/v1alpha1/`](file:///home/ankit/workspace/my-projects/agentrax/api/v1alpha1)| CRD type definitions, OpenAPI markers, schema validation rules, and status condition constants. |**Zero business logic**; only struct declarations and generated deep-copy methods. |
95
-
|[`internal/controller/`](file:///home/ankit/workspace/my-projects/agentrax/internal/controller)| Controller-runtime reconcile loops (`AgentDeployment`, `TenantQuota`). | Only layer that executes write calls against the Kubernetes API. Consumes subsystems via interfaces. |
96
-
|[`internal/quota/`](file:///home/ankit/workspace/my-projects/agentrax/internal/quota)| Quota arithmetic and concurrency-safe in-flight reservation cache. | Pure arithmetic; mutex-guarded state map; zero direct API server network calls in calculation paths. |
97
-
|[`internal/webhook/`](file:///home/ankit/workspace/my-projects/agentrax/internal/webhook)| Validating and Mutating admission webhooks. | Shared with `internal/quota` to enforce admission rules before objects are persisted. |
98
-
|[`internal/scaling/`](file:///home/ankit/workspace/my-projects/agentrax/internal/scaling)| HPA synthesis, velocity rules, and dynamic quota ceiling headroom. | Calculates `QuotaHeadroom()` to cap HPA `maxReplicas` and applies stabilization windows. |
99
-
|[`internal/rollout/`](file:///home/ankit/workspace/my-projects/agentrax/internal/rollout)| Canary state machine, PromQL query construction, and threshold evaluation. | Re-entrant state machine; sample-size gating; fail-safe timeout evaluation. |
100
-
|[`internal/registry/`](file:///home/ankit/workspace/my-projects/agentrax/internal/registry)| MCP registrar, JSON-RPC 2.0 handshake, TTL sweeper, and discovery REST API. | In-memory registry with ConfigMap write-through; background health probes and TTL sweep. |
101
-
|[`internal/metrics/`](file:///home/ankit/workspace/my-projects/agentrax/internal/metrics)| Bounded HTTP Prometheus query client. | Wraps all responses with `io.LimitReader` (1 MiB ceiling) to prevent memory exhaustion. |
|`api/v1alpha1/`| CRD type definitions, OpenAPI markers, schema validation rules, and status condition constants. |**Zero business logic**; only struct declarations and generated deep-copy methods. |
95
+
|`internal/controller/`| Controller-runtime reconcile loops (`AgentDeployment`, `TenantQuota`). | Only layer that executes write calls against the Kubernetes API for core-owned resources (Deployments, Services, HPAs, HTTPRoutes). Consumes subsystems via interfaces. |
96
+
|`internal/quota/`| Quota arithmetic and concurrency-safe in-flight reservation cache. | Pure arithmetic; mutex-guarded state map; zero direct API server network calls in calculation paths. |
97
+
|`internal/webhook/`| Validating and Mutating admission webhooks. | Shared with `internal/quota` to enforce admission rules before objects are persisted. |
98
+
|`internal/scaling/`| HPA synthesis, velocity rules, and dynamic quota ceiling headroom. | Calculates `QuotaHeadroom()` to cap HPA `maxReplicas` and applies stabilization windows. |
99
+
|`internal/rollout/`| Canary state machine, PromQL query construction, and threshold evaluation. | Re-entrant state machine; sample-size gating; fail-safe timeout evaluation. |
100
+
|`internal/registry/`| MCP registrar, JSON-RPC 2.0 handshake, TTL sweeper, and discovery REST API. | In-memory registry with ConfigMap write-through for persistence; background health probes and TTL sweep. Explicitly allowed to write the `agentrax-registry` ConfigMap for state recovery.|
101
+
|`internal/metrics/`| Bounded HTTP Prometheus query client. | Wraps all responses with `io.LimitReader` (1 MiB ceiling) to prevent memory exhaustion. |
0 commit comments