Skip to content

margin 0.1.1

Choose a tag to compare

@Waddah0-0 Waddah0-0 released this 21 Oct 00:51
· 44 commits to main since this release

A security fix release. If you installed 0.1.0, please upgrade:

pip install -U margin-core margin-ai-code-detector

What changed:

  • A repository's own git config could make git run a program while margin read its history, for example through core.fsmonitor. Every git command now overrides the repository's config, turns hooks off and skips Git LFS downloads. This mattered most in Docker, where git's ownership check is off for the shared folder.
  • Cancelling a run while a repository was being cloned could leave a half-written clone in the temp folder. git is now stopped before the folder is deleted.
  • The AI Code Detector put the name of the file being judged into the prompt outside the protective markers. It's now quoted and escaped, so a file can't be named to look like an instruction.

Versions: margin-core 0.1.1 and margin-ai-code-detector 0.2.1. margin-cli and margin-api are unchanged at 0.1.0.

There's a new page on what margin protects against and where the limits are: docs/security.md.