Skip to content

[Bug]: valid JSON with the wrong global-manifest shape bypasses recovery #5020

Closed

Description

@azizur100389

Reproduction

Confirmed on v8 at 59b5ab11 (0.9.102), Python 3.12 on Windows. No LLM or API credentials are needed.

In a disposable home directory, create ~/.graphify/global-manifest.json with null and run graphify global list. Repeat with {"repos":[]} or {"repos":{"example":"invalid"}}.

Actual behavior

The JSON decoder succeeds, but consumers receive the wrong shape. Depending on the value, a command crashes or reports an empty graph without preserving the malformed manifest as a recovery backup.

Expected behavior

Use the same backup and warning path as for invalid JSON syntax. A well-formed manifest should continue to load unchanged.

This extends the recovery added in #1207 to JSON that parses successfully but has the wrong shape.

Activity

  1. github-actions commented on Nov 5, 2026

    @github-actions

    Thanks for opening this issue, @azizur100389. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

  2. safishamsi commented on Nov 8, 2026

    @safishamsi
    Member

    Fixed in 0.9.104 (now on PyPI) via #5025: a malformed repo entry in the global manifest is now dropped on its own, keeping the valid repos; only a non-object root/repos map is backed up.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions