Skip to content

Fresh-clone fix: tests pass in any checkout dir name; final proof - #7

Merged
devin-ai-integration[bot] merged 3 commits into
mainfrom
devin/1794276322-final-proof
Nov 10, 2026
Merged

devin-ai-integration[bot] merged 3 commits into
mainfrom
devin/1794276322-final-proof

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

I ran make prove on a fresh clone in ~/fresh-mandate and all 112 tests errored at setup. The cause: the checkout root is the plugin package, and because of its root __init__.py, pytest makes a Package node for the root and imports __init__.py. When the directory name is not an identifier (here fresh-mandate), that file is imported standalone, and from .mandate_core.plugin import register fails. CI and a default git clone both use mandate, which is why this never showed up. make prove did exit non-zero (2) on the failure, so it was not hidden.

if __package__:
    from .mandate_core.plugin import register     # always the case under Hermes's loader
else:
    from mandate_core.plugin import register      # pytest standalone import; pythonpath = ["."]
  • Checked with 112 of 112 tests passing in both fresh-mandate and mandate2 clones. make prove passes on this branch (validate passed, 73/73 escapes, 0/4 off-policy calls executed while enforcing, 7/7 legit calls succeeded).
  • proof/ was regenerated on commit f35af95 (the code commit). Later commits change only NOTES.md.
  • NOTES.md: added a fresh-clone note. The final summary now covers M6 and the actual validator output (2 expected warnings, explained there).

Link to Devin session: https://app.devin.ai/sessions/8fa4e83187cf4cf39131a2aa5940f3b3
Open in Devin Desktop: https://app.devin.ai/desktop/session/8fa4e83187cf4cf39131a2aa5940f3b3?variant=devin

devin-ai-integration Bot and others added 3 commits November 10, 2026 02:09
Co-Authored-By: bot_apk <apk@cognition.ai>
Co-Authored-By: bot_apk <apk@cognition.ai>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot merged commit e3bde20 into main Nov 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants