graphify icon indicating copy to clipboard operation
graphify copied to clipboard

Extraction warning: "concept" file_type not in VALID_FILE_TYPES

Open sacrtap opened this issue 7 months ago • 1 comments

Description

When running `graphify update`, the extractor produces nodes with `file_type: "concept"` (e.g., from Markdown documentation parsing containing architecture/tech stack descriptions). However, `validate.py` only allows: `{"code", "document", "paper", "image", "rationale"}`.

This causes 161+ warning messages per build:

``` [graphify] Extraction warning (161 issues): Node 2635 (id='tech_stack_backend') has invalid file_type 'concept' - must be one of ['code', 'document', 'image', 'paper', 'rationale'] ```

Steps to Reproduce

  1. Have a project with Markdown files containing architecture/tech stack descriptions (e.g., `README.md` with backend tech stack info)
  2. Run `graphify update .`
  3. Observe the validation warnings

Example Node

```json { "id": "tech_stack_backend", "label": "Backend Tech Stack: Python 3.12 + Sanic 22.12 + SQLAlchemy 2.0", "file_type": "concept", "source_file": "README.md" } ```

Suggested Fix

Add `"concept"` to `VALID_FILE_TYPES` in `graphify/validate.py` (line 4):

```python VALID_FILE_TYPES = {"code", "document", "paper", "image", "rationale", "concept"} ```

Environment

  • graphifyy version: 0.5.4
  • Python: 3.10.19
  • OS: macOS

sacrtap avatar Apr 29 '26 01:04 sacrtap

Fixed in v0.5.5: added 'concept' to VALID_FILE_TYPES.

safishamsi avatar Apr 29 '26 08:04 safishamsi