HKUDS/Vibe-Trading · error · FileNotFoundError
Shadow profile not found: {shadow_id}
Error message
Shadow profile not found: {shadow_id} What it means
Error "Shadow profile not found: {shadow_id}" thrown in HKUDS/Vibe-Trading.
Source
Thrown at agent/src/shadow_account/storage.py:85
def save_profile(profile: ShadowProfile) -> Path:
"""Persist a ShadowProfile to disk as JSON."""
path = profiles_dir() / f"{profile.shadow_id}.json"
path.write_text(
json.dumps(profile.to_dict(), ensure_ascii=False, indent=2, default=str),
encoding="utf-8",
)
return path
def load_profile(shadow_id: str) -> ShadowProfile:
"""Load a ShadowProfile back from disk.
Raises:
FileNotFoundError: No profile with that id.
"""
path = profiles_dir() / f"{shadow_id}.json"
if not path.exists():
raise FileNotFoundError(f"Shadow profile not found: {shadow_id}")
data: dict[str, Any] = json.loads(path.read_text(encoding="utf-8"))
rules = tuple(
ShadowRule(
rule_id=r["rule_id"],
human_text=r["human_text"],
entry_condition=r["entry_condition"],
exit_condition=r["exit_condition"],
holding_days_range=tuple(r["holding_days_range"]),
support_count=r["support_count"],
coverage_rate=r["coverage_rate"],
sample_trades=tuple(r["sample_trades"]),
weight=r.get("weight", 1.0),
)
for r in data["rules"]
)
return ShadowProfile(
shadow_id=data["shadow_id"],
created_at=data["created_at"],View on GitHub (pinned to 80ffdda44c)
When it happens
Trigger: Thrown at agent/src/shadow_account/storage.py:85 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of HKUDS/Vibe-Trading@80ffdda44c (2026-08-28).
Data as JSON: /api/errors/b1d0b260a2251eee.
Report an issue: GitHub.