Skip to content

Preserve structured resolver error context when metadata adds fetch guidance #169

Closed

Description

@LunaStev

Audited against merged master 13289d7a74ad45561554bbb6673a189dbb192a27 (PR #161).

Problem and reproduction

resolver::inspect() adds vex fetch guidance by formatting the original error into a new Error. The displayed text survives, but the structured causes and context fields are lost.

Reproduce with a root project containing a path dependency whose manifest has an unknown field, then run each command with a distinct new --message-file:

vex --message-file fetch.jsonl fetch
vex --message-file metadata.jsonl metadata

Observed for the same dependency failure: fetch's diagnostic contains package/manifest/operation context and a cause chain; metadata's diagnostic has context: [] and causes: []. Both return resolution exit code 3.

Scope and acceptance

  • Add local-graph guidance while preserving the original typed error, category, context and causes.
  • Add a JSONL regression test asserting useful structured fields survive the metadata path.
  • Keep metadata read-only and offline; do not fetch automatically to make the test pass.
  • Preserve the human-readable guidance and existing failure category.

This is a focused diagnostic fix, not a JSONL schema redesign.

Starting points

This is a bounded follow-up suitable for a first contribution; no broader feature redesign is requested.

Activity

  1. added
    bug
    good first issue
    tooling
    on Oct 18, 2026
  2. self-assigned this
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggood first issuetooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions