Skip to content

Bug: actionable error when vg evidence verify reads a truncated or corrupt bundle #287

Closed

Description

@vibgrate-team

Context

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

  1. Identify verify/load paths that crash or silent-fail on truncated/corrupt bundles.
  2. Map them to deterministic user-facing errors; never echo secrets from the bundle or env.
  3. Add a focused test for at least one truncated and one invalid-JSON/schema case.

Acceptance

  • Truncated/corrupt bundle → actionable error + non-zero exit
  • No secret material in the message
  • Test coverage; DCO

Activity

  1. added
    bug
    on Sep 28, 2026
  2. vibgrate-team commented on Oct 9, 2026

    @vibgrate-team
    ContributorAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions