Skip to content

fix(managed_agents): Fix console image, missing fixture, and summary blurb#526

Merged
gaganb-ant merged 3 commits into
mainfrom
sre-incident-response-agent-fixes
Apr 11, 2026
Merged

fix(managed_agents): Fix console image, missing fixture, and summary blurb#526
gaganb-ant merged 3 commits into
mainfrom
sre-incident-response-agent-fixes

Conversation

@gaganb-ant

@gaganb-ant gaganb-ant commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

Title is self explanatory =)

claude added 3 commits April 10, 2026 23:46
…mage

- registry.yaml: rewrite SRE incident responder description with the
  on-call-flow framing.
- sre_incident_responder.ipynb: replace the attachment: image ref with a
  self-closed <img> pointing at the raw.githubusercontent URL (matches
  data_analyst_agent / slack_data_bot). The platform's MDX renderer
  doesn't resolve attachment: URIs, so the screenshot was rendering as
  a broken image. Drops the 280KB base64 blob from the notebook.
…kbook

The SRE incident responder notebook mounts logs/checkout-svc.log as a
session resource, but the fixture didn't make it into the public repo
during the initial managed_agents import (root .gitignore has *.log).
Force-add the file so readers can run the notebook end-to-end.
@github-actions

Copy link
Copy Markdown

Notebook Changes

This PR modifies the following notebooks:

📓 managed_agents/sre_incident_responder.ipynb

View diff
nbdiff managed_agents/sre_incident_responder.ipynb (b96dc048794747788e5479079c3116a976e9cece) managed_agents/sre_incident_responder.ipynb (355d2011d91a3d37e7d9999ec275732e26dcd439)
--- managed_agents/sre_incident_responder.ipynb (b96dc048794747788e5479079c3116a976e9cece)  (no timestamp)
+++ managed_agents/sre_incident_responder.ipynb (355d2011d91a3d37e7d9999ec275732e26dcd439)  (no timestamp)
## modified /cells/17/source:
@@ -2,7 +2,7 @@
 
 Because the investigation ran as a Managed Agents session, every step above — the file reads, the `bash` diff, the manifest edit, the three custom tool calls, and the approval you sent — is persisted as an event on the session. Open it in the [Console](https://platform.claude.com/) under **Managed Agents → Sessions** for the full audit trail with no extra instrumentation:
 
-![Console session view for the incident-response run](attachment:console_session.png)
+<img src="https://raw.githubusercontent.com/anthropics/claude-cookbooks/main/managed_agents/example_data/sre/console_session.png" alt="Console session view for the incident-response run" width="700" />
 
 ### Cleanup
 

Generated by nbdime

@github-actions

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review

Recommendation: APPROVE

Summary

Three well-scoped housekeeping fixes: restores a missing fixture file, replaces a broken attachment: image URI with an external URL that actually renders (consistent with existing patterns in data_analyst_agent and slack_data_bot), and sharpens the registry description with outcome-oriented language.

Actionable Feedback (1 item)
  • .gitignore — Consider adding a negation rule to make the forced fixture exception explicit and prevent re-regression:
    *.log
    !managed_agents/example_data/**/*.log
    
    Without it, a future git add -A or pre-commit cleanup tool could silently drop this fixture again. Non-blocking, but it self-documents the intent for future contributors.
Detailed Review

Log fixture (managed_agents/example_data/sre/logs/checkout-svc.log)

Realistic and pedagogically sound. The OOM crash loop arc is coherent: startup → pricing cache warm → gradual heap pressure → GC pause → allocation failure → OOMKill (exit 137) → restart loop → CrashLoopBackOff. Internal consistency checks out — heap percentages match raw MiB values (101/128 = 79%, 118/128 = 92%), restartCount increments correctly (1→2→3→4), and exit 137 is the canonical OOMKill code. Timestamps span ~6 minutes and are internally consistent.

The .gitignore has *.log, so this was correctly force-added. The fixture is now tracked. The only concern is the lack of a gitignore negation rule (see above).

Image reference (sre_incident_responder.ipynb)

Using raw.githubusercontent.com is the correct fix and matches the exact pattern used by data_analyst_agent.ipynb and slack_data_bot.ipynb (same URL structure, same width="700" attribute). The attachment: URI approach was always broken on the platform's MDX renderer. Dropping the 280KB base64 blob also improves notebook file size. console_session.png is tracked in git at the referenced path. The dependency on the path remaining stable is a real but accepted tradeoff in this codebase.

Registry description (registry.yaml)

Clearly superior to the old version. Switches from implementation framing ("A webhook-triggered responder... with a custom Skill") to outcome framing ("Wire Claude into your on-call flow..."). Concise, action-oriented, and accurate. Date bump to 2026-04-10 reflects the actual fix date.

Security

No concerns. No API keys, no new dependencies, no user-facing input handling.

Positive Notes

  • The log fixture is genuinely realistic — timestamp consistency, correct exit codes, and matching heap percentages show careful construction.
  • The image fix correctly identifies the root cause (MDX renderer limitation) and applies the established repo pattern rather than inventing a new approach.
  • Removing the 280KB base64 blob is a meaningful file-size improvement with no downside.

@gaganb-ant gaganb-ant changed the title feat(managed_agents): Fix console image, missing fixture, and summary blurb fix(managed_agents): Fix console image, missing fixture, and summary blurb Apr 11, 2026
@gaganb-ant gaganb-ant merged commit 753ddfe into main Apr 11, 2026
9 checks passed
lorenzomacosta pushed a commit to Regius-LLC/claude-cookbooks that referenced this pull request Apr 16, 2026
lorenzomacosta pushed a commit to Regius-LLC/claude-cookbooks that referenced this pull request Apr 27, 2026
lorenzomacosta pushed a commit to Regius-LLC/claude-cookbooks that referenced this pull request May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants