← Back to Pull requests

feat(aiops-agent): consolidated agent + agentic platform for PEEKS (validated e2e) #926

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Sep 23, 2026 17:35 UTC
Author

What

Consolidated, squashed PR landing the AIOps agent (aiops-agent) + agentic platform work for PEEKS that was validated end-to-end on the integration/peeks-e2e-unified branch. Rebuilt cleanly on top of current main and organized into logical commits.

Rename (design-review #948, point 12 → #954): the agent component was renamed peeks-agent → aiops-agent (chart dir, registry entry + RGD, gate key enable_peeks_agent → enable_aiops_agent, enabled-addons.yaml peeks_agent → aiops_agent, OAM app/namespace/SA, and the platform/aiops-agent source/build area incl. both buildspecs). The peeks instance prefix is preserved (peeks-hub, peeks-ray, peeks-amp…). Applied as a pure rename commit on top of the branch (helm template clean, 0 residual peeks-agent). The commit subjects below keep their original feat(peeks-agent): scope for history.

Why this was rebuilt

The previous feat/peeks-agent-instance branch shared no lineage with the tested integration branch and had fallen ~40 commits behind it. This branch is reconstructed on top of current main from the exact tested content, so it carries the full validated feature set without stale drift.

Scope (logical commits)

1. feat(peeks-agent): agent, MCP servers, chat UI and incident-bridge sources + build — Strands agent, skills-mcp/eks-mcp/gitlab-mcp, A2A chat UI, SQS incident-bridge (poller.py), Dockerfiles, buildspecs, deploy runbook/architecture.
2. feat(peeks-agent): GitOps chart + ApplicationSet image wiring — the agent Helm chart (per-component image overrides + global fallback) wired into gitops/addons/registry/platform.yaml.
3. feat(observability): AMP alerting rules + incident kro RGD + spoke scrapers — PodOOMKilled/PodFrequentRestarts rules and the amp-incident kro ResourceGroup (alert → SQS incident).
4. feat(platform): enable agentic addons — control-plane overlay enablement, eks-capabilities RBAC for the agent read path, crossplane-base adjustments, manage-addons skill docs.
5. feat(workshop): OAP agentic-repo config block, CloudFront origin polling, taskfile wiring — create-config.sh emits agenticRepo coordinates (default awslabs/open-agentic-platform@main), ALB-aware CloudFront attach, kind-crossplane / kind-kro-ack install wiring.
6. refactor(aiops-agent): rename peeks-agent → aiops-agent (#954) — component-identity rename across the gitops chart + the platform/ source/build area; instance prefix untouched. Also removes the legacy agent_platform enabled-addons entry (see #955), replacing it with the documented OAP umbrella gate.

Validated end-to-end

On a fresh Workshop Studio deploy of this content: 3 EKS clusters, ~110/110 ArgoCD apps Healthy/Synced, aiops-agent pods Running, Bedrock reachable, and the autonomous flow proven (OOMKilled workload → AMP → SNS → SQS → agent RCA → GitLab MR, no auto-merge). Langfuse traces land in ClickHouse (paired OAP fix).

Note: the end-to-end validation ran under the pre-rename peeks-agent identity; the rename is a pure identifier change (helm template renders byte-equivalent except names), so it does not alter the validated behaviour. A fresh deploy from this branch creates the aiops-agent namespace + aiops-agent-role.

Safety / no regressions

  • Does not revert main's sweep refactor (#936/#924/#933): the workshop/scripts/sweep/ modular package + hermetic tests are kept exactly as on main. The integration branch predated that refactor; its stale sweep state was deliberately excluded.

  • CODEOWNERS kept at main's state (retains @zjaco13).

  • create-config.sh* merged 3-way: main's platformTags normalization is preserved and the OAP agenticRepo block is added on top.

  • Integration-branch bookkeeping (TESTED-PRS.md) and local drafts are excluded.
  • Known interim — tracked

  • aiops-agent container images default to public.ecr.aws/seb-demo/ (personal ECR Public), kept as an interim registry to unblock fresh installs. Tracked in #945 for a durable, project-owned registry.
  • Diff: see Files changed (includes the aiops-agent rename, #954) vs main.

    ---

    Resolves (Elamaran PR review + security sweep)

  • Closes #954 — rename peeks-agent → aiops-agent (component identity; peeks instance prefix preserved)

  • Closes #955 — remove the legacy agent_platform enabled-addons key (inert; replaced by the OAP umbrella gate)

  • Closes #956 — enforce the human merge-gate: dedicated aiops-agent GitLab bot (Developer), and main protected on every repo (fleet-config AND app repos) so the bot cannot merge or force-push its own MR

  • Closes #965 — harden Keycloak mcp-client: disable the unused authorization-code/redirect flow and drop the wildcard redirectUris/webOrigins; keeps the direct-grant BFF login intact (validated live)
  • Related / follow-up (NOT closed by this PR)


  • #964 — pin the strands-agent/APPMOD_REF/OAP_REF build refs to a tag/SHA (gated on the OAP integration branch merging upstream)

  • #945 — move the aiops-agent images off the interim public.ecr.aws/seb-demo registry to a project-owned one

  • #963 — companion docs PR (design-doc §12 merge-gate wording, §13 enable example, §6.3 overlay-root basepath)

  • awslabs/open-agentic-platform#56 — companion OAP PR; carries the agent readiness-gate (refuse autonomous remediation on an incomplete MCP toolset) and is the branch this PR builds the agent image from

  • awslabs/open-agentic-platform#52 — agent-authored overlay provenance + lifecycle (deferred)

  • awslabs/open-agentic-platform#53 — otel⇄langfuse dependsOn + fail-loud (deferred; the empty-auth root cause is already fixed on the OAP branch)
  • Diff: 650 lines (+487 / -163) across 8 files Reviewer: shapirov103 Review duration: 25420m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.52) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #926"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.7% · Safe to merge
    27.7%