sage-trace-analysis
Repo-local Sage trace, Phoenix, Mythic task-output, and run-log analysis workflow.
Skill by MythicAgents
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mythicagents-sage-trace-analysis
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security, productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/sage-trace-analysis
What's inside
- Skill name
sage-trace-analysis- Description
- Repo-local Sage trace, Phoenix, Mythic task-output, and run-log analysis workflow. Use when Codex, Claude Code, or an operator needs to mine historical failures, inspect Phoenix spans, backfill task IDs, audit solve steps, or diagnose ingestion/file/output behavior without creating new Plans tools.
- License
- GPL-3.0
- Instructions
- 103 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (13)
- SKILL.md
- openai.yaml · agents/
- sitecustomize.py · scripts/callback_probe/
- mine_failures.py · scripts/
- observe_windows_process_exit.py · scripts/
- phoenix_verdict.py · scripts/
- step_audit.py · scripts/
- supervised_cost.py · scripts/
- trace_audit.py · scripts/
- test_callback_probe.py · tests/
- test_observe_windows_process_exit.py · tests/
- test_supervised_cost.py · tests/
- test_trace_audit.py · tests/
SKILL.md (first lines)
# Sage Trace Analysis Treat `sage.db`, `.phoenix/phoenix.db`, run logs, and engagement ledgers as sensitive read-only data unless the operator explicitly says otherwise. Do not delete, compact, or mutate retained historical DBs. Export the request first with `sage-live-runner`, then run the parameterized read-only audit: ```bash TRANSCRIPT_PATH=$(.venv/bin/python skills/sage-live-runner/scripts/native_chat.py transcript --request-id <id> | jq -r .export_path) .venv/bin/python skills/sage-trace-analysis/scripts/trace_audit.py --transcript "$TRANSCRIPT_PATH" ``` The audit reports finished sub-agents missing summaries, duplicate assistant finals, payload-task counts, input-request pauses, and post-sub-agent activity gaps. It binds the redundant request/channel/status tuple and reconciles exact task IDs from runtime telemetry with completed Mythic task-card evidence before certifying a zero-task or bounded-task expectation. Add explicit canary expectations when appropriate: ```bash .venv/bin/python skills/sage-trace-analysis/scripts/trace_audit.py --transcript "$TRANSCRIPT_PATH" --require-zero-payload-tasks --expect-halt-reason operator_input_requested ``` Optional `--phoenix-db` plus repeatable `--trace-rowid` arguments correlate the transcript with Phoenix through the repository's read-only SQLite reader. ## Common Uses Mine failure classes: ```bash .venv/bin/python skills/sage-trace-analysis/scripts/mine_failures.py ``` Audit solve steps or task IDs: ```bash .venv/bin/python skills/sage-trace-analysis/scripts/step_audit.py --help ``` Use `$sage-trajectory-learning` when the output should become normalized transition records or replay data. ## Phoenix Tracing Verdict Answers "is the autonomous path actually traced, and is the trace structured?" in one command. A span count cannot answer it: the untraced-kernel signature was 13 spans that each looked fine, every one a root with nothing above it. ```bash python3 skills/sage-trace-analysis/scripts/phoenix_verdict.py --latest-episode ``` Reads WAL-inclusively, because reading the bare `.db` misses everything not yet checkpointed. Scope with `--since 'YYYY-MM-DD HH:MM:SS'` (UTC), `--latest-episode`, or `--db <path>` for an archive. `--json` for machine use. Exit status is 0 only on `TRACED`, so it can gate a check. | Verdict | Meaning | |---|---| | `TRACED` | kernel spans present and every tool span has a parent | | `PARTIAL` | kernel spans present but some tool spans are parentless | | `UNTRACED` | no `sage.kernel.*` spans; the autonomous path emitted nothing of its own | | `EMPTY` | no spans in scope — check `--since`, or whether the run wrote to this database | Worked contrast: a database from before the kernel emitted first-party spans reports `UNTRACED`, 101 spans / 101 roots / 0 kernel spans; a current autonomous run reports `TRACED`, 32 spans / 1 root / 17 kernel spans / 0 parentless tool spans. ## Callback Dispatch Probe Use when CHAIN spans are missing from `phoenix.db` while LLM or TOOL spans survive as parentless roots — the signature of trace loss that a span-count query alone cannot explain. The probe is log-only and loads through `PYTHONPATH`, so it changes no product code and needs no architecture-governor gate. It wraps `LangChainInstrumentor._instrument`, then hooks the manager-level dispatch methods so each `on_chain_start` / `on_llm_start` / `on_tool_start` records whether the OpenInference tracer is still among that manager's handlers. ```bash /bin/bash skills/sage-goad-reset/scripts/sage_restart.sh PYTHONPATH="$(git rev-parse --show-toplevel)/skills/sage-trace-analysis/scripts/callback_probe" SAGE_CALLBACK_PROBE=1 ``` Then run the workload and read the JSONL, which lands at `.sage_history/diagnostics/callback-probe/<pid>.jsonl` unless `SAGE_CALLBACK_PROBE_LOG` overrides it. Three outcomes are distinguishable, and they point at different defects: | Observed | Meaning | |---|---| | `chain_start` records with `tracer_present: false` | the tracer is not reaching that manager — handler-attachment defect | | no `chain_start` records at all | the graph is not emitting chain events; the tracer never had a chance | | `chain_start` with `tracer_present: true`, still no CHAIN span in `phoenix.db` | loss is inside the tracer or the export path, not the callback wiring | With `SAGE_CALLBACK_PROBE` unset the module imports and does nothing, so the `PYTHONPATH` entry is safe to leave in place. Every hook returns the original dispatch result and swallows its own exceptions; `tests/test_callback_probe.py` holds the green→red→green control, including a planted tracer-stripped manager the probe must flag and a floor assertion on records actually examined. ## Bundled Scripts - `trace_audit.py` (parameterized and read-only) - `mine_failures.py` - `step_audit.py` - `callback_probe/sitecustomize.py` (log-only, `PYTHONPATH`-loaded, off unless `SAGE_CALLBACK_PROBE=1`)
From MythicAgents/sage, GPL-3.0.
More from MythicAgents/sage
- 0.655score
sage-focused-capability-tests
MythicAgents
Repo-local focused Sage capability, adapter, and notification validation workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-foothold-launch
MythicAgents
Build a live Apollo foothold on the GOAD range as NORTH\samwell.tarly through a pure WinRM scheduled-task batch logon.
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-canary-attestation
MythicAgents
Independently attest a bounded native Mythic canary by reconstructing the run from Mythic's own records with a read-only Spectator credential, then diffing…
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-eval-gauge
MythicAgents
Repo-local Sage eval-gauge / hill-climbing Phase-0 toolkit.
SkillAFreshness: A★ 29Claude Code +9 - 0.652score
sage-architecture-governor
MythicAgents
Use for Sage prompt, topology, tool, planner, runtime authority, and other consequential architecture changes; keep ordinary development measurement plumbing…
SkillAFreshness: A★ 29Claude Code +9 - 0.652score
sage-callback-bootstrap
MythicAgents
Repo-local post-Mythic-reset Sage chat and foothold bootstrap workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.652score
sage-live-runner
MythicAgents
Repo-local Sage native Mythic v4 chat execution and inspection workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.651score
sage-mythic-payload-deploy
MythicAgents
Download an existing Mythic payload, stage it onto a Ludus Windows host over WinRM, and launch it as the current user or a supplied run-as user.
SkillAFreshness: A★ 29Claude Code +9 - 0.651score
sage-goad-reset
MythicAgents
Repo-local Sage GOAD/Trust Walker full lab reset and readiness workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.650score
sage-forge-ops
MythicAgents
Repo-local Sage Forge/Codex helper workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.650score
phoenix-traces
MythicAgents
Analyze Sage's Phoenix/OpenInference trace database (phoenix.db) for the Sage LangGraph multi-agent system.
SkillAFreshness: A★ 29Claude Code +9 - 0.612score
sage-conversation-control
MythicAgents
Run repeated real-model perturbation trials against Sage's frozen conversation-control constitution and report pass^k, forbidden events, duplicate events…
SkillBFreshness: B★ 29Claude Code +9
Signals
- Stars
- 29
- Forks
- 5
- Open issues
- 1
- Last commit (this folder)
- Oct 20, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Repository
- github.com/MythicAgents/sage
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from MythicAgents
- 0.655score
sage-foothold-launch
MythicAgents
Build a live Apollo foothold on the GOAD range as NORTH\samwell.tarly through a pure WinRM scheduled-task batch logon.
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-canary-attestation
MythicAgents
Independently attest a bounded native Mythic canary by reconstructing the run from Mythic's own records with a read-only Spectator credential, then diffing…
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-eval-gauge
MythicAgents
Repo-local Sage eval-gauge / hill-climbing Phase-0 toolkit.
SkillAFreshness: A★ 29Claude Code +9 - 0.655score
sage-focused-capability-tests
MythicAgents
Repo-local focused Sage capability, adapter, and notification validation workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.652score
sage-callback-bootstrap
MythicAgents
Repo-local post-Mythic-reset Sage chat and foothold bootstrap workflow.
SkillAFreshness: A★ 29Claude Code +9 - 0.652score
sage-live-runner
MythicAgents
Repo-local Sage native Mythic v4 chat execution and inspection workflow.
SkillAFreshness: A★ 29Claude Code +9
Cite this page
sage-trace-analysis skill. Agent Mart. https://agentmart.dev/skills/mythicagents-sage-trace-analysis (last updated 2026-10-24)