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

Aperta
#274 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #327 di @vibgrate-team — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
node.js, typescript
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
4
Fork
3
Merge medio
1g 22h
PR unite (30g)
76

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vibgrate/cli

Tutte le issue di vibgrate/cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.