Bug: actionable error when graph.json is corrupt or schema-mismatched

Đang mở
#274 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #327 của @vibgrate-team — đã đóng, không merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
cli

Hướng nghiên cứu

Start by tracing how vg show, vg impact, and vg ask load .vibgrate/graph.json or equivalent graph artifacts. Check how corrupt JSON and older schemas currently fail, then add focused coverage for both cases. Done means each produces an actionable error with a rebuild hint and a non-zero exit, without exposing secrets.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Context

Commands that consume .vibgrate/graph.json (or equivalent graph artifacts) can fail opaquely when the file is truncated, JSON-invalid, or from an older schema. Operators re-running vg show / vg impact / vg ask after a bad write or partial checkout need an actionable CLI error (what failed + rebuild hint) with a non-zero exit — not a cryptic stack as the primary UX.

Local-first tools fail closed; CI and assistants deserve a stable message they can search and fix.

What to do

  1. Identify graph load/parse paths that currently dump stacks or silent-fail on corrupt/mismatched input.
  2. Map them to deterministic, user-facing errors (suggest vg build; never echo secrets).
  3. Add a focused test for at least one corrupt and one schema-mismatch case.

Acceptance

  • Corrupt/mismatched graph yields actionable error + non-zero exit
  • No secret material in the message
  • Test coverage; DCO
Ngôn ngữ chính
TypeScript
Star
4
Fork
3
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
76

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của vibgrate/cli

Tất cả issue của vibgrate/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.