feat(sight): agent crash full-stack observability#661
Open
jfeng18 wants to merge 1 commit into
Open
Conversation
6ccd232 to
e4c79a5
Compare
0f14dfc to
f50ad4d
Compare
This was referenced May 29, 2026
f50ad4d to
3c04313
Compare
This was referenced Jun 2, 2026
6e3f294 to
4556654
Compare
f051d52 to
9123d4c
Compare
2 tasks
d41952f to
3653d22
Compare
6d992b1 to
3bf059d
Compare
c94e018 to
e1649de
Compare
BPF exit_code capture + classify_exit replaces pending-calls heuristic. Lineage tree, enriched crash detail, CLI crash report, pid cache fix.
e1649de to
b54578c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Agent 进程层级全栈可观测:血缘树 + 精准 crash 检测 + blast radius 量化 + token 按层级归因 + CLI crash report +
token --by-type聚合查询。agent 崩了,系统知道崩没崩、为什么崩、影响多大、崩的时候在干什么、哪个子进程在烧钱。
Strategic positioning
This PR is the AgentSight foundation for the OS-middle-layer recoverability and task-level observability substrate: process supervision, exit-reason capture, Agent/SubAgent/Tool lineage, crash blast-radius reporting, and token attribution by process type.
It deliberately does not implement the scheduling/control-plane pieces from the broader Agent Infra roadmap: no cgroup QoS control, no LSM enforcement, no transparent MaaS cache proxy, and no closed-loop task recovery orchestration. Those can build on this observability substrate later.
Problem
Solution
exit_code,BPF_CORE_READ task_structagentsight token --by-typeCrash detection truth table
CLI examples
Verification
What is NOT changed
cpu.weight,cpu.max, burst control, or dynamic resource enforcement