Commit 7ac1e77
committed
docs(acp): state that opening a repository runs code from it
Creating a session imports Python from the workspace before any prompt is
sent: every `.py` under `.agents/skills`, `.cursor/skills`,
`.claude/skills` and `.claude/commands`; additional roots named by the
repository's own `.nooa/settings.yaml` or legacy `.nooa/config.toml`,
which are not confined to the workspace; and `<workspace>/.nooa/libs/`,
whose directory stays on `sys.path` for the life of the process and so can
shadow an import for later sessions on other workspaces.
Module-level code runs during import, before anything checks whether the
file defines a skill, so file contents are irrelevant. The agent runs as
the user, in a process holding model credentials, with no consent prompt
on these paths.
This is how workspace skills are meant to work, and automatic discovery is
being kept. Documenting it so the trade is visible rather than discovered:
opening a folder is equivalent to running its build. The root README
carries a short callout; the package README has the detail.
Signed-off-by: Paul Furgale <pfurgale@nvidia.com>1 parent b3b24b4 commit 7ac1e77
2 files changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
213 | 221 | | |
214 | 222 | | |
215 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
10 | 38 | | |
11 | 39 | | |
12 | 40 | | |
| |||
0 commit comments