{"record":{"id":"77888dea66b8bbcd","repo":"Graphify-Labs/graphify","slug":"graphify-output-not-found-paths-graph-run-g","errorCode":null,"errorMessage":"graphify output not found: {paths['graph']}. Run graphify first or pass --graph /path/to/graph.json.","messagePattern":"graphify output not found: (.+?)\\. Run graphify first or pass --graph /path/to/graph\\.json\\.","errorType":"exception","errorClass":"FileNotFoundError","httpStatus":null,"severity":"error","filePath":"graphify/callflow_html.py","lineNumber":1642,"sourceCode":"    \"\"\"Generate call-flow architecture HTML from graphify output files.\"\"\"\n    args = CallflowOptions(\n        project,\n        graphify_out=graphify_out,\n        graph=graph,\n        report=report,\n        labels=labels,\n        sections=sections,\n        output=output,\n        lang=lang,\n        max_sections=max_sections,\n        diagram_scale=diagram_scale,\n        max_diagram_nodes=max_diagram_nodes,\n        max_diagram_edges=max_diagram_edges,\n    )\n\n    paths = resolve_graphify_paths(args)\n    if not paths[\"graph\"].exists():\n        raise FileNotFoundError(\n            f\"graphify output not found: {paths['graph']}. \"\n            \"Run graphify first or pass --graph /path/to/graph.json.\"\n        )\n\n    # Load data\n    nodes, edges, hyperedges, meta = load_graph(paths[\"graph\"])\n    labels = load_labels(paths[\"labels\"])\n    lang = detect_lang(args.lang, nodes, labels)\n    if paths[\"sections\"]:\n        sections = load_sections(paths[\"sections\"])\n    else:\n        sections = derive_sections_from_communities(nodes, labels, lang, args.max_sections)\n    sections = normalize_sections(sections, lang)\n    report_text = load_report(paths[\"report\"])\n\n    if not nodes:\n        raise ValueError(\"graph.json contains 0 nodes\")\n    if len(sections) <= 1:","sourceCodeStart":1624,"sourceCodeEnd":1660,"githubUrl":"https://github.com/Graphify-Labs/graphify/blob/7fe58b0b0f3873be9a21c30106b8b8527c353aa6/graphify/callflow_html.py#L1624-L1660","documentation":"Graph-existence preflight in the aider fragment's /graphify ask flow (tools/skillgen/fragments/core/aider.md:940). Before loading the graph for BFS/DFS traversal, a helper script checks Path('graphify-out/graph.json').exists() and raises SystemExit(1) with this message when the knowledge graph has never been built in the current working tree.","triggerScenarios":"Running /graphify ask (free-form Q&A over the graph) when graphify-out/graph.json is absent: never built, built elsewhere, deleted, or a prior build aborted before the export step (empty-extraction or shrink-guard exit).","commonSituations":"Fresh clone without running /graphify first; agent operating in a subdirectory while the graph lives at the repo root; CI cleaned graphify-out/; previous build failed so graph.json was never written.","solutions":["Run /graphify <path> to build the graph, then retry the question.","Verify the working directory contains graphify-out/graph.json (the check uses a relative path).","If a previous build failed (empty graph / shrink refusal), fix that root cause first — no graph.json was produced.","Rebuild if the graph was removed by cleanup: /graphify <path> from the correct root."],"exampleFix":"# before\n/graphify ask \"what connects to AuthService?\"\n# ERROR: No graph found ...\n\n# after\n/graphify .\n/graphify ask \"what connects to AuthService?\"","handlingStrategy":"validation","validationCode":"from pathlib import Path\n\nif not Path('graphify-out/graph.json').is_file():\n    print('graph missing - run /graphify <path> before ask')\nelse:\n    print('graph present - proceed with traversal')","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run the existence preflight before every ask query.","Build the graph as part of workspace setup, before Q&A sessions.","Run queries from the directory containing graphify-out/.","If a build ever failed, rebuild before querying."],"tags":["graphify","aider","preflight","missing-file","ask"],"backgroundTag":null,"analyzedSha":"7fe58b0b0f3873be9a21c30106b8b8527c353aa6","analyzedAt":"2026-08-14T19:23:21.323Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}