Skip to content

Harden mdcode operations for untrusted Markdown and agent execution #7

Description

@adrianbrowning

What to build

Harden mdcode for agent processing of untrusted Markdown. File metadata and execution features must not grant unintended filesystem or shell access.

Acceptance criteria

  • File paths from block metadata cannot escape an explicit allowed base directory.
  • Absolute paths and traversal attempts fail with actionable errors.
  • Shell execution is clearly opt-in and returns structured per-block outcomes.
  • Failed source reads or transformations fail the command by default, with an explicit continue-on-error option where appropriate.
  • Security boundaries and the trusted-input model are documented and tested.

Blocked by

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