Fix workflow engine recipe loading and evidence tracking#1
Fix workflow engine recipe loading and evidence tracking#1AgentAiDrive wants to merge 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| PACKAGE_ROOT = Path(__file__).resolve().parents[2] | ||
| DEFAULT_RECIPES_DIR = PACKAGE_ROOT / "recipes" | ||
| RECIPES_DIR = DEFAULT_RECIPES_DIR | ||
|
|
||
| __all__ = [ | ||
| "ensure_recipes_dir", |
There was a problem hiding this comment.
Writing recipes into package directory causes permission errors
The new path resolution sets RECIPES_DIR to PACKAGE_ROOT / "recipes" and save_recipe_yaml now writes directly into that location. When the project is installed as a package, PACKAGE_ROOT resolves to the site‑packages directory, which is typically read‑only for the running user. Calls like save_recipe_yaml(fname, text) will attempt to create directories and files inside the installed package and will raise PermissionError, and other parts of the app (e.g. pages/4_Recipes.py) still look for user recipes under the working directory so the saved file would be invisible even if the write succeeded. Previously the default Path("recipes") pointed to a writable, working-directory folder. Consider keeping a writable user directory for output and only adding the packaged directory as a read-only search path.
Useful? React with 👍 / 👎.
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_6907136c6dbc83328ae3a8ddfc60e076