.gitignore 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. # ==============================
  2. # Python bytecode
  3. # ==============================
  4. __pycache__/
  5. *.py[cod]
  6. *$py.class
  7. # ==============================
  8. # C extensions
  9. # ==============================
  10. *.so
  11. # ==============================
  12. # Distribution / packaging
  13. # ==============================
  14. .Python
  15. build/
  16. develop-eggs/
  17. dist/
  18. downloads/
  19. eggs/
  20. .eggs/
  21. /lib/
  22. /lib64/
  23. # Do NOT ignore webui/src/lib/ — that's frontend source code
  24. !webui/src/lib/
  25. parts/
  26. sdist/
  27. var/
  28. *.egg-info/
  29. *.egg
  30. MANIFEST
  31. # ==============================
  32. # Virtual environments
  33. # ==============================
  34. venv/
  35. .env/
  36. .venv/
  37. ENV/
  38. env/
  39. env.bak/
  40. venv.bak/
  41. # ==============================
  42. # Installer logs
  43. # ==============================
  44. pip-log.txt
  45. pip-delete-this-directory.txt
  46. # ==============================
  47. # Unit test / coverage
  48. # ==============================
  49. htmlcov/
  50. .tox/
  51. .nox/
  52. .coverage
  53. .coverage.*
  54. .cache
  55. pytest_cache/
  56. nosetests.xml
  57. coverage.xml
  58. *.cover
  59. *.py,cover
  60. # ==============================
  61. # Jupyter Notebook
  62. # ==============================
  63. .ipynb_checkpoints
  64. # ==============================
  65. # PyInstaller
  66. # ==============================
  67. *.manifest
  68. *.spec
  69. # ==============================
  70. # Logs
  71. # ==============================
  72. *.log
  73. # ==============================
  74. # OS files
  75. # ==============================
  76. .DS_Store
  77. Thumbs.db
  78. # ==============================
  79. # Database files
  80. # ==============================
  81. *.db
  82. *.sqlite
  83. *.sqlite3
  84. # ==============================
  85. # IDE
  86. # ==============================
  87. .vscode/
  88. .idea/
  89. *.swp
  90. *.swo
  91. .claude/
  92. # ==============================
  93. # mypy
  94. # ==============================
  95. .mypy_cache/
  96. .dmypy.json
  97. dmypy.json
  98. # ==============================
  99. # Pyre
  100. # ==============================
  101. .pyre/
  102. # ==============================
  103. # Ruff / lint
  104. # ==============================
  105. .ruff_cache/
  106. # ==============================
  107. # Pylint
  108. # ==============================
  109. .pylint.d/
  110. # ==============================
  111. # pytype
  112. # ==============================
  113. .pytype/
  114. # ==============================
  115. # dotenv
  116. # ==============================
  117. .env
  118. .env.*
  119. !.env.template
  120. # ==============================
  121. # Local data / experiment output
  122. # ==============================
  123. data/
  124. outputs/
  125. checkpoints/
  126. models/
  127. # ==============================
  128. # LaTeX build artifacts
  129. # ==============================
  130. paper/*.aux
  131. paper/*.bbl
  132. paper/*.blg
  133. paper/*.log
  134. paper/*.out
  135. paper/*.fls
  136. paper/*.fdb_latexmk
  137. paper/*.synctex.gz
  138. papers/**/*.aux
  139. papers/**/*.bbl
  140. papers/**/*.blg
  141. papers/**/*.log
  142. papers/**/*.out
  143. papers/**/*.fls
  144. papers/**/*.fdb_latexmk
  145. papers/**/*.synctex.gz
  146. papers/**/*.pdf
  147. papers/**/*.bak
  148. papers/**/*.bak2
  149. # ==============================
  150. # Large feature / experiment cache (keep local only)
  151. # ==============================
  152. results/p0_features/
  153. results/*.npz
  154. __pycache__/
  155. patents/patent-01-lint/node_modules/
  156. # ==============================
  157. # Web UI — build artifacts and dependencies
  158. # ==============================
  159. webui/node_modules/
  160. webui-dist/
  161. webui/.vite/
  162. # ==============================
  163. # Agent workspace — run data, not tracked
  164. # Each run creates workspace/run_YYYYMMDD_HHMMSS/ with intermediate
  165. # and final artifacts. These are local execution data, never committed.
  166. # ==============================
  167. **/workspace/
  168. !**/workspace/.gitkeep
  169. # ==============================
  170. # Agent instance data — accumulated knowledge, not tracked
  171. # Instance dirs contain wiki/knowledge data that grows at runtime.
  172. # Only instance.yml is tracked (config); data dirs are ignored.
  173. # ==============================
  174. **/instances/*/wiki/
  175. **/instances/*/knowledge/
  176. !**/instances/*/instance.yml
  177. # agentexample runtime wiki / workspace (generated, never committed)
  178. agentexample/**/wiki/
  179. agentexample/**/workspace/
  180. # ==============================
  181. # physics67 escape defense — agent-written dirs that leaked to repo root.
  182. # Historical bug (see docs/AUDIT_2026-06-05.md "项目外目录非法写入" 一节):
  183. # if `{workspace}` substitution failed inside sub-agent prompts,
  184. # `cd {workspace} && python3 03_analysis/x.py` became `cd && python3
  185. # 03_analysis/x.py`, writing 03_analysis/ to cwd (= repo root). Prompts
  186. # now require absolute paths; these rules are belt-and-suspenders so an
  187. # LLM regression won't silently pollute main.
  188. # ==============================
  189. # orchestrator.yml default fallback dir:
  190. /physics_runs/
  191. # `{base_workspace}/cycle_N` accidentally rooted at /:
  192. /cycle_[0-9]*/
  193. # artifact-gate dir:
  194. /_gates/
  195. # Per-stage agent output dirs (analyst writes 03_analysis/, writer writes
  196. # 04_paper/, etc. — only catch when they leak to root, not inside workspace):
  197. /0[0-9]_plan/
  198. /0[0-9]_lit/
  199. /0[0-9]_sim/
  200. /0[0-9]_analysis/
  201. /0[0-9]_paper/
  202. /0[0-9]_review/
  203. # ==============================
  204. # Knowledge base index files (generated, can be large)
  205. # BM25 index, vector embeddings (numpy), metadata pickles
  206. # ==============================
  207. **/rag_index.json
  208. **/rag_index.keywords.json
  209. **/rag_vectors_v2.npy
  210. **/rag_vectors_meta_v2.pkl
  211. # ==============================
  212. # Job logs (stored in data dir, not repo)
  213. # ==============================
  214. **/jobs/*.log
  215. # ==============================
  216. # User data directory (never in repo)
  217. # ==============================
  218. .agentpaas/
  219. # ==============================
  220. # Docker Compose env override (host-specific)
  221. # ==============================
  222. .env
  223. .gstack/
  224. # ==============================
  225. # 机密/个人产物 — 永不入库 (AUDIT_2026-06-11)
  226. # 审稿 agent 的论文评审输出(保密评审内容)+ 商业文档
  227. # ==============================
  228. review_report*.md
  229. review_report*.pdf
  230. review_comments*.md
  231. review_comments*.pdf
  232. review_result*.json
  233. *商业计划书*
  234. # 发行包组装产物(setup.sh --package 生成,含 wheel,勿入库)
  235. /release/
  236. /dist-secure/
  237. /build_nuitka/
  238. /.nuitka-venv/
  239. /dist-binary/
  240. /build_binary_out/