You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: actionable error when vg evidence verify reads a truncated or corrupt bundle #287
vg evidence verify reports honest verified / partial / failed states for local bundles (offline-friendly). A truncated, truncated-JSON, or schema-broken bundle should yield an actionable CLI error (what failed + non-zero exit), not a primary UX of stack traces. Distinct from #267 (serialize/write failures on attest paths).
What to do
Identify verify/load paths that crash or silent-fail on truncated/corrupt bundles.
Map them to deterministic user-facing errors; never echo secrets from the bundle or env.
Add a focused test for at least one truncated and one invalid-JSON/schema case.
Load path to audit: src/reporting/commands/evidence/bundle.ts (and any verify entry that calls it). Truncated bytes, truncated JSON, and schema-broken bundles should map to a deterministic operator error (what failed + non-zero exit), not a stack as primary UX — same pattern as graph load (GraphLoadError / rebuild hint elsewhere).
Acceptance to lock:
Truncated file and invalid JSON/schema each fail closed with an actionable message.
Message never echoes bundle contents, env, or tokens.
Focused tests for at least one truncated and one invalid-JSON/schema case.
Activity
vibgrate-team commentedon Oct 9, 2026
Spec / approach
Load path to audit:
src/reporting/commands/evidence/bundle.ts(and any verify entry that calls it). Truncated bytes, truncated JSON, and schema-broken bundles should map to a deterministic operator error (what failed + non-zero exit), not a stack as primary UX — same pattern as graph load (GraphLoadError/ rebuild hint elsewhere).Acceptance to lock:
Prefer a stable error class/code so CI can assert on it. DCO on the fix PR (
git commit -s).