Skip to content

Add validation and duplicate-target protection before writes #15

Description

@adrianbrowning

What to build

Add a validation workflow that detects unsafe or ambiguous Markdown code-block mappings before mdcode writes files. Users should receive a clear report and a non-zero exit status instead of silent data loss or partial synchronization.

Acceptance criteria

  • Validation detects duplicate target files that do not have an unambiguous merge strategy.
  • Validation detects missing, mismatched, or invalid regions and missing referenced source files.
  • Validation detects unsafe file paths and reports the affected block and document.
  • Strict mode can require file metadata for every selected block.
  • The report is available in both readable and machine-readable formats and is covered by tests.

Blocked by

Activity

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

    enhancementNew feature or requestready-for-agentFully specified and ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions