ReadingResearchRadarInvestment frameworkAI Company Primary Sources
Sign in / Sign up
← Back to reading
NewsTopic · Circle KMaterial3 min readDisconfirmAI Editorial

Circle K Cloud DevOps Engineer Marek Klatowicz: Pre-querying Logs Before Passing to Agents Is More Effective Than Letting Agents Call APIs Directly

Circle K’s DevOps team built an Agentic AI incident triage system using Amazon Bedrock, reducing mean triage time from 45–60 minutes to under 15 minutes. Cloud DevOps Engineer Marek Klatowicz documented four key engineering lessons from the AWS blog during the build process: having Lambda pre-query logs and pass them directly to agents rather than letting agents query via action groups; executing searches in order of information dependency; decoupling analysis logic from the orchestration layer to support architectural migration; and adjusting knowledge retrieval configurations based on actual data.

2026-11-03 01:00 GMT+8

Circle K operates more than 17,200 convenience stores and fuel retail locations across 27 countries, with cloud-native infrastructure supporting point-of-sale systems, loyalty applications, and electric vehicle (EV) charging services. When alerts fire for these digital services, on-call engineers previously spent 45 to 60 minutes toggling between CloudWatch logs, OpenSearch distributed traces, ECS task statuses, and GitHub runbooks to determine what had happened. Cloud DevOps Engineer Marek Klatowicz co-authored a piece with AWS detailing how they used Agentic AI to eliminate this repetitive labor.

The first version of the system was orchestrated by Amazon Bedrock Flows, coordinating three specialized agents working in parallel and sequence: the AWSResourceExplorerAgent checked infrastructure status, the OpenSearchExplorerAgent pulled application logs and distributed traces, and only after both completed did the GitHubExplorerAgent search code repositories to pinpoint the root cause. A final AnalysisPrompt node aggregated the three outputs into a structured summary containing the root cause, evidence, responsible team, and remediation recommendations, which was pushed to Slack. The entire process took 5 to 15 minutes. However, Klatowicz explicitly noted in the lessons learned section that the first version allowed agents to query CloudWatch logs themselves via action groups, which increased latency and often returned data volumes exceeding processing capacity. The truly effective approach was to have Lambda functions pre-query the logs and place relevant error lines directly into the agent's prompt—agents reason faster when reading actual error messages.

Sign in / Sign up
ReadingResearchRadarInvestment frameworkAI Company Primary Sources

As data volume and knowledge scale grew, the Flows architecture hit hard constraints: some complex events required analysis times exceeding what a single Flow node could complete. The team first attempted optimization within the existing design—more aggressive log filtering, shortened context windows, and splitting services into independent Flows—which helped but was insufficient. Upon migrating to AgentCore Runtime, full investigations ran in a single session, supporting sessions up to 8 hours long, allowing each step to allocate time as needed by the data. The three specialized agents were consolidated into a single agent running on AgentCore Runtime, with AgentCore Gateway centrally managing tool access to OpenSearch, Knowledge Bases, and GitHub.

Klatowicz believes the key driver behind this migration was not AgentCore itself, but an earlier architectural decision: the team consistently kept prompts, tool definitions, and analysis steps separate from the Flow structure. This meant switching from Flows to AgentCore required no rewriting of the triage logic, only changing the runtime method. He also emphasized the importance of search order design: GitHub searches must run after AWS resource and log analysis because the agent already knows which error, component, or recent change to look for at that point; searching the repository blindly at the start returns too many results to be usable.

It should be noted that all performance data cited in the article—including the reduction in mean triage time from 45–60 minutes to under 15 minutes, and summaries for simple events generated in 5–8 minutes—are self-reported results from Circle K’s internal incident response metrics and have not been independently verified. This article is co-written by the AWS Machine Learning Blog and Circle K engineers; AWS, as the platform provider, has a commercial interest in showcasing success stories. The article does not disclose the denominator (changes in total event volume over the same period), does not explain whether selection effects exist (whether complex events still rely on manual intervention), and provides no comparative experimental design before and after migration.

The system currently remains at the stage of 'identifying the root cause and recommending fixes, with engineers executing the fixes.' The team plans next steps to integrate AWS DevOps Agent to enable simple automatic remediations (restarting tasks, scaling out, rolling back deployments), with each operation approved by an engineer in Slack before execution. They also plan to integrate Jira for ticket association, Confluence to supplement internal documentation, and incorporate runbooks into the knowledge base to match known failure modes.

Sources

  • aws.amazon.comAmazon Web Services↗
Topic

Circle K

全球便利零售巨头 Circle K(隶属 Alimentation Couche-Tard)正在其云基础设施与安全运营中深度部署 Agentic AI 系统,以解决大规模分布式环境下的运维效率瓶颈。该公司利用 Amazon Bedrock …

3 steps1 piecesUpdated 2026-11-03 06:04

How it got here

  1. 2026-11-03AWS 博客发布 Circle K 案例,披露其利用 Amazon Bedrock 构建 Agentic AI 事件分诊系统,使平均分诊时间降至 15 分钟以下。aws.amazon.com ↗
  2. 2026-11-03Circle K 高级 AI/ML 工程师职位在招聘平台上线,要求候选人具备 Azure/Google/Anthropic 等多平台 Agent 构建经验及 RAG 架构能力。simplify.jobs ↗
  3. 2026-11-03ReliaQuest 客户故事显示,Circle K 通过 GreyMatter Transit 将防火墙数据检测时间缩短至 4 秒,并利用 20 个 Agentic Memories 降低 99% 警报噪音。reliaquest.com ↗

What is still unsettled

  • Circle K 在 DevOps 分诊中采用的‘Lambda 预查询’模式是否已标准化为其他业务线(如 POS 或 EV 充电服务)的通用架构?
  • 随着 AI Council 推动自主编码代理试点,Circle K 如何平衡代码生成速度与现有安全合规边界?
  • 在跨账户 MCP 协议集成中,Circle K 如何解决不同 AWS 区域间的数据隐私与 IAM 权限冲突?
Read the full topic →
Continue researching →