Add debug st.info before st.plotly_chart to diagnose invisible chart

This commit is contained in:
2026-03-31 01:49:38 +02:00
parent 72d1c20340
commit 9f98dbae60
28 changed files with 3480 additions and 85 deletions
+9
View File
@@ -106,10 +106,19 @@ def validate_manifest(manifest_path: str, report_only: bool = True) -> dict:
files = manifest.get("files") or []
report = {"missing_files": [], "truncated_evidence": [], "potential_secrets": []}
def _strip_surrounding_quotes(s: str) -> str:
s = s.strip()
if len(s) >= 2 and s[0] == s[-1] and s[0] in ('"', "'"):
return s[1:-1]
return s
for raw in files:
entry = _normalize_entry(raw)
path = entry.get("path")
evidence = entry.get("evidence_excerpt") or entry.get("evidence") or ""
# Remove surrounding quotes if the fallback YAML parser left them in place
if isinstance(evidence, str):
evidence = _strip_surrounding_quotes(evidence)
# missing files
if path: