Skip to content

feat(cli): wayful repair — reconcile a record from its backend state #85

Open

Description

@FreshlyBrewedCode

What to build

A command that repairs a wayful record whose stored data has drifted from, or been damaged relative to, the state the backend natively holds — so an agent can recover without leaving the CLI and without hand-editing an issue body in a browser.

Under the GitHub backend a record's structured data lives inside its issue body, which humans can and do edit, and whose type and status live on labels and native state that humans can and do change. Tolerant decoding (#80) stops that from blocking work, but there is still no way to fix it. Repair rewrites a record's stored data from what the backend natively holds — state, close reason, labels, dependency edges — leaving its prose alone.

Deliberately outside the GitHub UX epic (#78): it is a general recovery affordance, not a GitHub-specific rough edge.

Acceptance criteria

  • A step repair command restores a step whose stored data was damaged, and wayful step show then reports it consistently with the state the backend holds.
  • A map-level repair repairs every damaged record on a map and reports what it changed.
  • Repair never discards a record's prose body.
  • Repair on a healthy map reports that nothing needed changing and makes no writes.
  • A record repair cannot reconstruct is named, along with what is missing.
  • Repair is available under both backends, or refuses clearly where it cannot apply.

Blocked by

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

    pkg:clitype:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions