tradingcodex 0.3.5__tar.gz → 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (534) hide show
  1. tradingcodex-1.0.0/CHANGELOG.md +161 -0
  2. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/MANIFEST.in +3 -1
  3. tradingcodex-1.0.0/PKG-INFO +196 -0
  4. tradingcodex-1.0.0/README.md +159 -0
  5. tradingcodex-1.0.0/apps/audit/admin.py +17 -0
  6. tradingcodex-0.3.5/apps/audit/migrations/0001_initial.py → tradingcodex-1.0.0/apps/audit/migrations/0001_v1_initial.py +1 -1
  7. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/audit/models.py +9 -0
  8. tradingcodex-1.0.0/apps/harness/admin.py +25 -0
  9. tradingcodex-1.0.0/apps/harness/migrations/0001_v1_initial.py +68 -0
  10. tradingcodex-1.0.0/apps/harness/models.py +90 -0
  11. tradingcodex-1.0.0/apps/integrations/admin.py +47 -0
  12. tradingcodex-0.3.5/apps/integrations/migrations/0002_brokerconnection_brokeraccount_instrumentmap.py → tradingcodex-1.0.0/apps/integrations/migrations/0001_v1_initial.py +47 -7
  13. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/integrations/models.py +58 -5
  14. tradingcodex-1.0.0/apps/mcp/admin.py +40 -0
  15. tradingcodex-0.3.5/apps/mcp/migrations/0001_initial.py → tradingcodex-1.0.0/apps/mcp/migrations/0001_v1_initial.py +29 -1
  16. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/mcp/services.py +579 -144
  17. tradingcodex-1.0.0/apps/orders/admin.py +31 -0
  18. tradingcodex-1.0.0/apps/orders/migrations/0001_v1_initial.py +229 -0
  19. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/orders/models.py +121 -30
  20. tradingcodex-1.0.0/apps/orders/services.py +313 -0
  21. tradingcodex-0.3.5/apps/policy/migrations/0001_initial.py → tradingcodex-1.0.0/apps/policy/migrations/0001_v1_initial.py +1 -1
  22. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/policy/services.py +47 -6
  23. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/portfolio/admin.py +2 -1
  24. tradingcodex-0.3.5/apps/portfolio/migrations/0002_brokersyncrun_portfolioledgerevent_reconciliationrun.py → tradingcodex-1.0.0/apps/portfolio/migrations/0001_v1_initial.py +79 -8
  25. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/portfolio/models.py +40 -17
  26. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/docs/README.md +24 -10
  27. tradingcodex-1.0.0/docs/codex-native-orchestration.md +160 -0
  28. tradingcodex-1.0.0/docs/components.md +106 -0
  29. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/docs/core-concepts-and-rules.md +49 -24
  30. tradingcodex-1.0.0/docs/decision-memory.md +540 -0
  31. tradingcodex-1.0.0/docs/deployment.md +296 -0
  32. tradingcodex-1.0.0/docs/execution-without-subagent-plan.md +487 -0
  33. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/docs/financial-workflow-references.md +83 -49
  34. tradingcodex-1.0.0/docs/generated-workspaces.md +1356 -0
  35. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/docs/guardrails.md +5 -4
  36. tradingcodex-1.0.0/docs/harness.md +219 -0
  37. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/docs/improvement-loop.md +52 -17
  38. tradingcodex-1.0.0/docs/interfaces-and-surfaces.md +594 -0
  39. tradingcodex-1.0.0/docs/investment-brain-plugins.md +544 -0
  40. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/docs/licensing-and-commercialization.md +1 -1
  41. tradingcodex-1.0.0/docs/product-direction.md +196 -0
  42. tradingcodex-1.0.0/docs/release-readiness.md +253 -0
  43. tradingcodex-1.0.0/docs/research-memory-and-artifacts.md +673 -0
  44. tradingcodex-1.0.0/docs/roles-skills-and-workflows.md +339 -0
  45. tradingcodex-1.0.0/docs/safety-policy-and-execution.md +722 -0
  46. tradingcodex-1.0.0/docs/system-architecture.md +486 -0
  47. tradingcodex-1.0.0/docs/user-facing-skills.md +227 -0
  48. tradingcodex-1.0.0/docs/validation-and-test-plan.md +635 -0
  49. tradingcodex-1.0.0/frontend/index.html +14 -0
  50. tradingcodex-1.0.0/frontend/package-lock.json +975 -0
  51. tradingcodex-1.0.0/frontend/package.json +25 -0
  52. tradingcodex-1.0.0/frontend/src/App.tsx +123 -0
  53. tradingcodex-1.0.0/frontend/src/api.ts +67 -0
  54. tradingcodex-1.0.0/frontend/src/domain.ts +130 -0
  55. tradingcodex-1.0.0/frontend/src/features/LibraryPage.tsx +105 -0
  56. tradingcodex-1.0.0/frontend/src/features/SkillsPage.tsx +78 -0
  57. tradingcodex-1.0.0/frontend/src/features/SystemPage.tsx +34 -0
  58. tradingcodex-1.0.0/frontend/src/main.tsx +11 -0
  59. tradingcodex-1.0.0/frontend/src/navigation.js +19 -0
  60. tradingcodex-1.0.0/frontend/src/navigation.test.js +111 -0
  61. tradingcodex-1.0.0/frontend/src/styles.css +531 -0
  62. tradingcodex-1.0.0/frontend/src/ui.tsx +42 -0
  63. tradingcodex-1.0.0/frontend/src/viewer-data.js +29 -0
  64. tradingcodex-1.0.0/frontend/tsconfig.json +22 -0
  65. tradingcodex-1.0.0/frontend/vite.config.ts +11 -0
  66. tradingcodex-1.0.0/install.sh +256 -0
  67. tradingcodex-1.0.0/installation.md +384 -0
  68. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/pyproject.toml +17 -5
  69. tradingcodex-1.0.0/tests/test_artifact_authentication.py +1276 -0
  70. tradingcodex-1.0.0/tests/test_brain_skill.py +109 -0
  71. tradingcodex-1.0.0/tests/test_broker_center_prd.py +1244 -0
  72. tradingcodex-1.0.0/tests/test_build_contract_metadata.py +101 -0
  73. tradingcodex-1.0.0/tests/test_build_hook.py +1283 -0
  74. tradingcodex-1.0.0/tests/test_build_turn_grant.py +1071 -0
  75. tradingcodex-1.0.0/tests/test_clean_v1_cli_audit.py +257 -0
  76. tradingcodex-1.0.0/tests/test_codex_cli_compat.py +132 -0
  77. tradingcodex-1.0.0/tests/test_codex_cli_contract.py +65 -0
  78. tradingcodex-1.0.0/tests/test_codex_native_orchestration.py +285 -0
  79. tradingcodex-1.0.0/tests/test_dashboard_skill.py +67 -0
  80. tradingcodex-1.0.0/tests/test_decision_memory_core.py +473 -0
  81. tradingcodex-1.0.0/tests/test_dev_bootstrap.py +279 -0
  82. tradingcodex-1.0.0/tests/test_dynamic_artifact_quality.py +358 -0
  83. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tests/test_e2e_user_scenarios.py +200 -198
  84. tradingcodex-1.0.0/tests/test_evaluation_lab_hardening.py +318 -0
  85. tradingcodex-1.0.0/tests/test_evaluation_profiles.py +78 -0
  86. tradingcodex-1.0.0/tests/test_investment_analysis.py +392 -0
  87. tradingcodex-1.0.0/tests/test_investment_brain_cli.py +20 -0
  88. tradingcodex-1.0.0/tests/test_investment_brain_prompt_layers.py +91 -0
  89. tradingcodex-1.0.0/tests/test_investment_brain_provenance.py +353 -0
  90. tradingcodex-1.0.0/tests/test_investment_brain_registry.py +1056 -0
  91. tradingcodex-1.0.0/tests/test_investor_context.py +154 -0
  92. tradingcodex-1.0.0/tests/test_mcp_broker_release_health.py +567 -0
  93. tradingcodex-1.0.0/tests/test_mcp_operator_authority.py +524 -0
  94. tradingcodex-1.0.0/tests/test_native_execution_gateway.py +517 -0
  95. tradingcodex-1.0.0/tests/test_order_turn_grant.py +1232 -0
  96. tradingcodex-1.0.0/tests/test_platform_runtime.py +1555 -0
  97. tradingcodex-1.0.0/tests/test_provider_source_approval.py +413 -0
  98. tradingcodex-1.0.0/tests/test_release_contract.py +753 -0
  99. tradingcodex-1.0.0/tests/test_research_forecast_surfaces.py +393 -0
  100. tradingcodex-1.0.0/tests/test_research_spec_profiles.py +282 -0
  101. tradingcodex-1.0.0/tests/test_runtime_paths.py +181 -0
  102. tradingcodex-1.0.0/tests/test_runtime_profile.py +397 -0
  103. tradingcodex-1.0.0/tests/test_security_invariants.py +791 -0
  104. tradingcodex-1.0.0/tests/test_skill_runtime_boundaries.py +315 -0
  105. tradingcodex-1.0.0/tests/test_source_snapshot_agent_contract.py +274 -0
  106. tradingcodex-1.0.0/tests/test_v1_migrations.py +46 -0
  107. tradingcodex-1.0.0/tests/test_v1_state_integrity.py +185 -0
  108. tradingcodex-1.0.0/tests/test_viewer.py +78 -0
  109. tradingcodex-1.0.0/tests/test_workspace_git_contract.py +298 -0
  110. tradingcodex-1.0.0/tradingcodex.egg-info/PKG-INFO +196 -0
  111. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex.egg-info/SOURCES.txt +159 -107
  112. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex.egg-info/requires.txt +2 -0
  113. tradingcodex-1.0.0/tradingcodex_cli/__main__.py +172 -0
  114. tradingcodex-1.0.0/tradingcodex_cli/commands/bootstrap.py +380 -0
  115. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/commands/build.py +38 -58
  116. tradingcodex-1.0.0/tradingcodex_cli/commands/connectors.py +185 -0
  117. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/commands/db.py +12 -4
  118. tradingcodex-1.0.0/tradingcodex_cli/commands/decision.py +56 -0
  119. tradingcodex-1.0.0/tradingcodex_cli/commands/doctor.py +996 -0
  120. tradingcodex-1.0.0/tradingcodex_cli/commands/evaluation.py +45 -0
  121. tradingcodex-1.0.0/tradingcodex_cli/commands/forecast.py +68 -0
  122. tradingcodex-1.0.0/tradingcodex_cli/commands/home.py +21 -0
  123. tradingcodex-1.0.0/tradingcodex_cli/commands/investment_brains.py +165 -0
  124. tradingcodex-1.0.0/tradingcodex_cli/commands/investor_context.py +55 -0
  125. tradingcodex-1.0.0/tradingcodex_cli/commands/mcp.py +560 -0
  126. tradingcodex-1.0.0/tradingcodex_cli/commands/mode.py +33 -0
  127. tradingcodex-1.0.0/tradingcodex_cli/commands/orders.py +140 -0
  128. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/commands/policy.py +0 -1
  129. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/commands/profile.py +14 -32
  130. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/commands/research.py +100 -27
  131. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/commands/skills.py +7 -2
  132. tradingcodex-1.0.0/tradingcodex_cli/commands/subagents.py +124 -0
  133. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/commands/utils.py +95 -28
  134. tradingcodex-1.0.0/tradingcodex_cli/commands/workflow.py +33 -0
  135. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/commands/workspaces.py +6 -0
  136. tradingcodex-1.0.0/tradingcodex_cli/generator.py +1201 -0
  137. tradingcodex-1.0.0/tradingcodex_cli/package_source.py +167 -0
  138. tradingcodex-1.0.0/tradingcodex_cli/service_autostart.py +514 -0
  139. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/startup_status.py +240 -156
  140. tradingcodex-1.0.0/tradingcodex_cli/versioning.py +5 -0
  141. tradingcodex-1.0.0/tradingcodex_service/api.py +1089 -0
  142. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_service/application/agents.py +734 -220
  143. tradingcodex-1.0.0/tradingcodex_service/application/analysis_runs.py +362 -0
  144. tradingcodex-1.0.0/tradingcodex_service/application/artifact_bindings.py +718 -0
  145. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_service/application/artifact_quality.py +331 -103
  146. tradingcodex-1.0.0/tradingcodex_service/application/audit.py +127 -0
  147. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_service/application/brokers.py +1448 -262
  148. tradingcodex-1.0.0/tradingcodex_service/application/build_gateway.py +1438 -0
  149. tradingcodex-1.0.0/tradingcodex_service/application/common.py +319 -0
  150. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_service/application/components.py +183 -67
  151. tradingcodex-1.0.0/tradingcodex_service/application/context_budget.py +94 -0
  152. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_service/application/customization.py +143 -23
  153. tradingcodex-1.0.0/tradingcodex_service/application/decision_packages.py +684 -0
  154. tradingcodex-1.0.0/tradingcodex_service/application/evaluation_lab.py +910 -0
  155. tradingcodex-1.0.0/tradingcodex_service/application/execution_gateway.py +1097 -0
  156. tradingcodex-1.0.0/tradingcodex_service/application/forecasting.py +1087 -0
  157. tradingcodex-1.0.0/tradingcodex_service/application/git_subprocess.py +59 -0
  158. tradingcodex-1.0.0/tradingcodex_service/application/harness.py +55 -0
  159. tradingcodex-1.0.0/tradingcodex_service/application/health.py +80 -0
  160. tradingcodex-1.0.0/tradingcodex_service/application/investment_analysis.py +667 -0
  161. tradingcodex-1.0.0/tradingcodex_service/application/investment_brains.py +1806 -0
  162. tradingcodex-1.0.0/tradingcodex_service/application/investor_context.py +204 -0
  163. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_service/application/markdown_preview.py +14 -6
  164. tradingcodex-1.0.0/tradingcodex_service/application/operator_authority.py +365 -0
  165. tradingcodex-1.0.0/tradingcodex_service/application/orders.py +2294 -0
  166. tradingcodex-1.0.0/tradingcodex_service/application/policy.py +301 -0
  167. tradingcodex-1.0.0/tradingcodex_service/application/portfolio.py +427 -0
  168. tradingcodex-1.0.0/tradingcodex_service/application/postmortems.py +815 -0
  169. tradingcodex-1.0.0/tradingcodex_service/application/research.py +1614 -0
  170. tradingcodex-1.0.0/tradingcodex_service/application/research_specs.py +650 -0
  171. tradingcodex-1.0.0/tradingcodex_service/application/runtime.py +823 -0
  172. tradingcodex-1.0.0/tradingcodex_service/application/runtime_mode.py +87 -0
  173. tradingcodex-1.0.0/tradingcodex_service/application/source_snapshots.py +175 -0
  174. tradingcodex-1.0.0/tradingcodex_service/application/viewer.py +221 -0
  175. tradingcodex-1.0.0/tradingcodex_service/application/workspace_git.py +253 -0
  176. tradingcodex-1.0.0/tradingcodex_service/application/workspaces.py +141 -0
  177. tradingcodex-1.0.0/tradingcodex_service/log_safety.py +35 -0
  178. tradingcodex-1.0.0/tradingcodex_service/mcp_runtime.py +2589 -0
  179. tradingcodex-1.0.0/tradingcodex_service/runtime_profile.py +144 -0
  180. tradingcodex-1.0.0/tradingcodex_service/settings.py +135 -0
  181. tradingcodex-1.0.0/tradingcodex_service/static/tradingcodex_web/assets/index-CFoXYUtq.js +9 -0
  182. tradingcodex-1.0.0/tradingcodex_service/static/tradingcodex_web/assets/index-DYzj_xRR.css +1 -0
  183. tradingcodex-1.0.0/tradingcodex_service/static/tradingcodex_web/index.html +15 -0
  184. tradingcodex-1.0.0/tradingcodex_service/urls.py +18 -0
  185. tradingcodex-1.0.0/tradingcodex_service/version.py +1 -0
  186. tradingcodex-1.0.0/tradingcodex_service/viewer_api.py +68 -0
  187. tradingcodex-1.0.0/tradingcodex_service/web.py +23 -0
  188. tradingcodex-1.0.0/workspace_templates/modules/codex-base/files/.codex/config.toml +333 -0
  189. tradingcodex-1.0.0/workspace_templates/modules/codex-base/files/.codex/hooks/tradingcodex_hook.py +2208 -0
  190. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/codex-base/files/.codex/hooks.json +15 -15
  191. tradingcodex-1.0.0/workspace_templates/modules/codex-base/files/.codex/prompts/base_instructions/head-manager.md +420 -0
  192. tradingcodex-1.0.0/workspace_templates/modules/codex-base/files/.codex/rules/tradingcodex.rules +155 -0
  193. tradingcodex-1.0.0/workspace_templates/modules/codex-base/files/.tradingcodex/cli.py +224 -0
  194. tradingcodex-1.0.0/workspace_templates/modules/codex-base/files/.tradingcodex/config.yaml +22 -0
  195. tradingcodex-1.0.0/workspace_templates/modules/codex-base/files/AGENTS.md +106 -0
  196. tradingcodex-1.0.0/workspace_templates/modules/codex-base/files/tcx +39 -0
  197. tradingcodex-1.0.0/workspace_templates/modules/codex-base/files/tcx.cmd +59 -0
  198. tradingcodex-1.0.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/policies/restricted-list.yaml +2 -0
  199. tradingcodex-1.0.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/approval_receipt.schema.json +45 -0
  200. tradingcodex-1.0.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/audit_event.schema.json +21 -0
  201. tradingcodex-1.0.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/execution_result.schema.json +17 -0
  202. tradingcodex-1.0.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/order_ticket.schema.json +56 -0
  203. tradingcodex-1.0.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/postmortem_report.schema.json +135 -0
  204. tradingcodex-1.0.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/research_artifact.schema.json +284 -0
  205. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/enforcement-guardrails/module.json +1 -1
  206. tradingcodex-1.0.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/fundamental-analyst.toml +66 -0
  207. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/fixed-subagents/files/.codex/agents/instrument-analyst.toml +22 -12
  208. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/fixed-subagents/files/.codex/agents/judgment-reviewer.toml +20 -12
  209. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/fixed-subagents/files/.codex/agents/macro-analyst.toml +22 -12
  210. tradingcodex-1.0.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/news-analyst.toml +67 -0
  211. tradingcodex-1.0.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/portfolio-manager.toml +63 -0
  212. tradingcodex-1.0.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/risk-manager.toml +63 -0
  213. tradingcodex-1.0.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/technical-analyst.toml +67 -0
  214. tradingcodex-1.0.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/valuation-analyst.toml +67 -0
  215. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/fixed-subagents/module.json +1 -2
  216. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/guidance-guardrails/files/.tradingcodex/guidance/task-quality-checklist.md +1 -1
  217. tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/.tradingcodex/secrets.md +13 -0
  218. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/information-barriers/module.json +1 -1
  219. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/paper-trading/module.json +1 -2
  220. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-automate/SKILL.md +221 -0
  221. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-automate/agents/openai.yaml +6 -0
  222. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-brain/SKILL.md +148 -0
  223. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-brain/agents/openai.yaml +6 -0
  224. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-brain/references/bundle-contract.md +117 -0
  225. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-build/SKILL.md +94 -0
  226. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-build/agents/openai.yaml +6 -0
  227. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-dashboard/SKILL.md +83 -0
  228. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-dashboard/agents/openai.yaml +6 -0
  229. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-investor-context/SKILL.md +92 -0
  230. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-investor-context/agents/openai.yaml +6 -0
  231. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-memory/SKILL.md +123 -0
  232. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-memory/agents/openai.yaml +6 -0
  233. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-order-allow/SKILL.md +57 -0
  234. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-order-allow/agents/openai.yaml +6 -0
  235. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-order-cancel/SKILL.md +35 -0
  236. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-order-cancel/agents/openai.yaml +6 -0
  237. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-order-submit/SKILL.md +34 -0
  238. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-order-submit/agents/openai.yaml +6 -0
  239. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-plan/SKILL.md +86 -0
  240. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-plan/agents/openai.yaml +6 -0
  241. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-server/SKILL.md +71 -0
  242. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-server/agents/openai.yaml +1 -1
  243. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-strategy/SKILL.md +196 -0
  244. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-strategy/agents/openai.yaml +6 -0
  245. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/SKILL.md +132 -0
  246. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/agents/openai.yaml +6 -0
  247. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/references/context-and-override.md +90 -0
  248. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/references/decision-quality-spine.md +58 -0
  249. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/fundamental-analysis → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/tcx-fundamental}/SKILL.md +9 -1
  250. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/tcx-fundamental/agents/openai.yaml +6 -0
  251. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/instrument-analysis → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/tcx-instrument}/SKILL.md +1 -1
  252. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/tcx-instrument/agents/openai.yaml +6 -0
  253. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/judgment-reviewer/agent-judgment-review → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/judgment-reviewer/tcx-judgment}/SKILL.md +1 -1
  254. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/judgment-reviewer/tcx-judgment/agents/openai.yaml +6 -0
  255. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/macro-analysis → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/tcx-macro}/SKILL.md +4 -1
  256. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/tcx-macro/agents/openai.yaml +6 -0
  257. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/news-analysis → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/tcx-news}/SKILL.md +1 -1
  258. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/tcx-news/agents/openai.yaml +6 -0
  259. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/create-order-ticket → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/tcx-order-draft}/SKILL.md +3 -3
  260. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/tcx-order-draft/agents/openai.yaml +6 -0
  261. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/portfolio-review → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/tcx-portfolio}/SKILL.md +3 -2
  262. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/tcx-portfolio/agents/openai.yaml +6 -0
  263. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/approve-order → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/tcx-order-approve}/SKILL.md +1 -1
  264. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/tcx-order-approve/agents/openai.yaml +6 -0
  265. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/policy-review → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/tcx-policy}/SKILL.md +2 -2
  266. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/tcx-policy/agents/openai.yaml +6 -0
  267. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/review-risk → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/tcx-risk}/SKILL.md +3 -2
  268. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/tcx-risk/agents/openai.yaml +6 -0
  269. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-anti-overfit/SKILL.md +63 -0
  270. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-anti-overfit/agents/openai.yaml +6 -0
  271. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/numeric-data-qc → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-data-qc}/SKILL.md +1 -1
  272. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-data-qc/agents/openai.yaml +6 -0
  273. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/collect-evidence → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-evidence}/SKILL.md +17 -1
  274. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-evidence/agents/openai.yaml +6 -0
  275. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/forecasting-discipline → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-forecast}/SKILL.md +8 -4
  276. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-forecast/agents/openai.yaml +6 -0
  277. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/thesis-scenario-tree → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-scenarios}/SKILL.md +1 -1
  278. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-scenarios/agents/openai.yaml +6 -0
  279. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/external-data-source-gate → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-source-gate}/SKILL.md +38 -3
  280. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-source-gate/agents/openai.yaml +6 -0
  281. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/technical-analysis → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/tcx-technical}/SKILL.md +1 -1
  282. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/tcx-technical/agents/openai.yaml +6 -0
  283. {tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/valuation-review → tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/tcx-valuation}/SKILL.md +1 -1
  284. tradingcodex-1.0.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/tcx-valuation/agents/openai.yaml +6 -0
  285. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/repo-skills/module.json +8 -2
  286. tradingcodex-1.0.0/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/gateway/README.md +12 -0
  287. tradingcodex-1.0.0/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/server.py +22 -0
  288. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/tradingcodex-mcp/module.json +5 -3
  289. tradingcodex-0.3.5/PKG-INFO +0 -298
  290. tradingcodex-0.3.5/README.md +0 -267
  291. tradingcodex-0.3.5/apps/audit/admin.py +0 -6
  292. tradingcodex-0.3.5/apps/harness/admin.py +0 -6
  293. tradingcodex-0.3.5/apps/harness/migrations/0001_initial.py +0 -35
  294. tradingcodex-0.3.5/apps/harness/models.py +0 -22
  295. tradingcodex-0.3.5/apps/integrations/admin.py +0 -6
  296. tradingcodex-0.3.5/apps/integrations/migrations/0001_initial.py +0 -29
  297. tradingcodex-0.3.5/apps/mcp/admin.py +0 -22
  298. tradingcodex-0.3.5/apps/mcp/migrations/0002_mcpexternalpermissionrequest.py +0 -51
  299. tradingcodex-0.3.5/apps/orders/admin.py +0 -14
  300. tradingcodex-0.3.5/apps/orders/migrations/0001_initial.py +0 -79
  301. tradingcodex-0.3.5/apps/orders/migrations/0002_approvalreceipt_approved_order_type_and_more.py +0 -184
  302. tradingcodex-0.3.5/apps/orders/migrations/0003_migrate_orderintent_to_orderticket.py +0 -122
  303. tradingcodex-0.3.5/apps/orders/migrations/0004_remove_order_intent_compat_fields.py +0 -60
  304. tradingcodex-0.3.5/apps/orders/services.py +0 -107
  305. tradingcodex-0.3.5/apps/portfolio/migrations/0001_initial.py +0 -67
  306. tradingcodex-0.3.5/apps/workflows/admin.py +0 -6
  307. tradingcodex-0.3.5/apps/workflows/apps.py +0 -8
  308. tradingcodex-0.3.5/apps/workflows/migrations/0001_initial.py +0 -51
  309. tradingcodex-0.3.5/apps/workflows/migrations/__init__.py +0 -0
  310. tradingcodex-0.3.5/apps/workflows/models.py +0 -44
  311. tradingcodex-0.3.5/docs/artifact-supervisor-loop-prd.md +0 -556
  312. tradingcodex-0.3.5/docs/components.md +0 -77
  313. tradingcodex-0.3.5/docs/deployment.md +0 -275
  314. tradingcodex-0.3.5/docs/generated-workspaces.md +0 -554
  315. tradingcodex-0.3.5/docs/harness.md +0 -162
  316. tradingcodex-0.3.5/docs/interfaces-and-surfaces.md +0 -420
  317. tradingcodex-0.3.5/docs/product-direction.md +0 -132
  318. tradingcodex-0.3.5/docs/research-memory-and-artifacts.md +0 -272
  319. tradingcodex-0.3.5/docs/roles-skills-and-workflows.md +0 -485
  320. tradingcodex-0.3.5/docs/safety-policy-and-execution.md +0 -270
  321. tradingcodex-0.3.5/docs/system-architecture.md +0 -275
  322. tradingcodex-0.3.5/docs/user-facing-skills.md +0 -55
  323. tradingcodex-0.3.5/docs/validation-and-test-plan.md +0 -324
  324. tradingcodex-0.3.5/install.sh +0 -195
  325. tradingcodex-0.3.5/installation.md +0 -147
  326. tradingcodex-0.3.5/tests/test_broker_center_prd.py +0 -790
  327. tradingcodex-0.3.5/tests/test_python_migration.py +0 -5653
  328. tradingcodex-0.3.5/tradingcodex.egg-info/PKG-INFO +0 -298
  329. tradingcodex-0.3.5/tradingcodex_cli/__main__.py +0 -131
  330. tradingcodex-0.3.5/tradingcodex_cli/commands/bootstrap.py +0 -228
  331. tradingcodex-0.3.5/tradingcodex_cli/commands/connectors.py +0 -99
  332. tradingcodex-0.3.5/tradingcodex_cli/commands/decision.py +0 -31
  333. tradingcodex-0.3.5/tradingcodex_cli/commands/doctor.py +0 -310
  334. tradingcodex-0.3.5/tradingcodex_cli/commands/mcp.py +0 -325
  335. tradingcodex-0.3.5/tradingcodex_cli/commands/mode.py +0 -39
  336. tradingcodex-0.3.5/tradingcodex_cli/commands/orders.py +0 -108
  337. tradingcodex-0.3.5/tradingcodex_cli/commands/subagents.py +0 -265
  338. tradingcodex-0.3.5/tradingcodex_cli/commands/workflow.py +0 -97
  339. tradingcodex-0.3.5/tradingcodex_cli/generator.py +0 -239
  340. tradingcodex-0.3.5/tradingcodex_cli/service_autostart.py +0 -263
  341. tradingcodex-0.3.5/tradingcodex_service/api.py +0 -655
  342. tradingcodex-0.3.5/tradingcodex_service/application/audit.py +0 -71
  343. tradingcodex-0.3.5/tradingcodex_service/application/common.py +0 -148
  344. tradingcodex-0.3.5/tradingcodex_service/application/context_budget.py +0 -333
  345. tradingcodex-0.3.5/tradingcodex_service/application/decision_packages.py +0 -354
  346. tradingcodex-0.3.5/tradingcodex_service/application/harness.py +0 -1941
  347. tradingcodex-0.3.5/tradingcodex_service/application/orders.py +0 -1432
  348. tradingcodex-0.3.5/tradingcodex_service/application/policy.py +0 -251
  349. tradingcodex-0.3.5/tradingcodex_service/application/portfolio.py +0 -195
  350. tradingcodex-0.3.5/tradingcodex_service/application/research.py +0 -548
  351. tradingcodex-0.3.5/tradingcodex_service/application/runtime.py +0 -370
  352. tradingcodex-0.3.5/tradingcodex_service/application/runtime_mode.py +0 -107
  353. tradingcodex-0.3.5/tradingcodex_service/application/workflow_planner.py +0 -412
  354. tradingcodex-0.3.5/tradingcodex_service/application/workflow_routing.py +0 -1333
  355. tradingcodex-0.3.5/tradingcodex_service/mcp_runtime.py +0 -1153
  356. tradingcodex-0.3.5/tradingcodex_service/settings.py +0 -91
  357. tradingcodex-0.3.5/tradingcodex_service/static/tradingcodex_web/app.css +0 -4594
  358. tradingcodex-0.3.5/tradingcodex_service/static/tradingcodex_web/app.js +0 -190
  359. tradingcodex-0.3.5/tradingcodex_service/static/vendor/htmx/htmx.min.js +0 -1
  360. tradingcodex-0.3.5/tradingcodex_service/templates/web/activity.html +0 -24
  361. tradingcodex-0.3.5/tradingcodex_service/templates/web/agent_skills.html +0 -111
  362. tradingcodex-0.3.5/tradingcodex_service/templates/web/agents.html +0 -127
  363. tradingcodex-0.3.5/tradingcodex_service/templates/web/base.html +0 -108
  364. tradingcodex-0.3.5/tradingcodex_service/templates/web/brokers.html +0 -154
  365. tradingcodex-0.3.5/tradingcodex_service/templates/web/build_center.html +0 -196
  366. tradingcodex-0.3.5/tradingcodex_service/templates/web/dashboard.html +0 -109
  367. tradingcodex-0.3.5/tradingcodex_service/templates/web/decisions.html +0 -74
  368. tradingcodex-0.3.5/tradingcodex_service/templates/web/fragments/role_inspector.html +0 -81
  369. tradingcodex-0.3.5/tradingcodex_service/templates/web/fragments/starter_prompt.html +0 -301
  370. tradingcodex-0.3.5/tradingcodex_service/templates/web/fragments/topology_canvas.html +0 -75
  371. tradingcodex-0.3.5/tradingcodex_service/templates/web/fragments/workspace_card.html +0 -37
  372. tradingcodex-0.3.5/tradingcodex_service/templates/web/harness.html +0 -87
  373. tradingcodex-0.3.5/tradingcodex_service/templates/web/mcp_router.html +0 -266
  374. tradingcodex-0.3.5/tradingcodex_service/templates/web/orders.html +0 -124
  375. tradingcodex-0.3.5/tradingcodex_service/templates/web/policy.html +0 -81
  376. tradingcodex-0.3.5/tradingcodex_service/templates/web/portfolio.html +0 -99
  377. tradingcodex-0.3.5/tradingcodex_service/templates/web/research.html +0 -134
  378. tradingcodex-0.3.5/tradingcodex_service/templates/web/starter_prompt.html +0 -51
  379. tradingcodex-0.3.5/tradingcodex_service/templates/web/strategies.html +0 -79
  380. tradingcodex-0.3.5/tradingcodex_service/urls.py +0 -57
  381. tradingcodex-0.3.5/tradingcodex_service/version.py +0 -1
  382. tradingcodex-0.3.5/tradingcodex_service/web.py +0 -1428
  383. tradingcodex-0.3.5/workspace_templates/__init__.py +0 -1
  384. tradingcodex-0.3.5/workspace_templates/modules/codex-base/files/.codex/config.toml +0 -364
  385. tradingcodex-0.3.5/workspace_templates/modules/codex-base/files/.codex/hooks/tradingcodex_hook.py +0 -374
  386. tradingcodex-0.3.5/workspace_templates/modules/codex-base/files/.codex/prompts/base_instructions/head-manager.md +0 -191
  387. tradingcodex-0.3.5/workspace_templates/modules/codex-base/files/.codex/rules/tradingcodex.rules +0 -50
  388. tradingcodex-0.3.5/workspace_templates/modules/codex-base/files/.tradingcodex/capabilities.yaml +0 -71
  389. tradingcodex-0.3.5/workspace_templates/modules/codex-base/files/.tradingcodex/cli.py +0 -16
  390. tradingcodex-0.3.5/workspace_templates/modules/codex-base/files/.tradingcodex/config.yaml +0 -56
  391. tradingcodex-0.3.5/workspace_templates/modules/codex-base/files/.tradingcodex/policies/policy-bindings.yaml +0 -22
  392. tradingcodex-0.3.5/workspace_templates/modules/codex-base/files/.tradingcodex/policies/principals.yaml +0 -21
  393. tradingcodex-0.3.5/workspace_templates/modules/codex-base/files/.tradingcodex/policies/roles.yaml +0 -53
  394. tradingcodex-0.3.5/workspace_templates/modules/codex-base/files/AGENTS.md +0 -49
  395. tradingcodex-0.3.5/workspace_templates/modules/codex-base/files/tcx +0 -52
  396. tradingcodex-0.3.5/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/policies/access-policies.yaml +0 -40
  397. tradingcodex-0.3.5/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/policies/restricted-list.yaml +0 -6
  398. tradingcodex-0.3.5/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/approval_receipt.schema.json +0 -15
  399. tradingcodex-0.3.5/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/audit_event.schema.json +0 -11
  400. tradingcodex-0.3.5/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/execution_result.schema.json +0 -12
  401. tradingcodex-0.3.5/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/order_ticket.schema.json +0 -31
  402. tradingcodex-0.3.5/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/postmortem_report.schema.json +0 -27
  403. tradingcodex-0.3.5/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/research_artifact.schema.json +0 -147
  404. tradingcodex-0.3.5/workspace_templates/modules/fixed-subagents/files/.codex/agents/execution-operator.toml +0 -71
  405. tradingcodex-0.3.5/workspace_templates/modules/fixed-subagents/files/.codex/agents/fundamental-analyst.toml +0 -56
  406. tradingcodex-0.3.5/workspace_templates/modules/fixed-subagents/files/.codex/agents/news-analyst.toml +0 -57
  407. tradingcodex-0.3.5/workspace_templates/modules/fixed-subagents/files/.codex/agents/portfolio-manager.toml +0 -56
  408. tradingcodex-0.3.5/workspace_templates/modules/fixed-subagents/files/.codex/agents/risk-manager.toml +0 -55
  409. tradingcodex-0.3.5/workspace_templates/modules/fixed-subagents/files/.codex/agents/technical-analyst.toml +0 -57
  410. tradingcodex-0.3.5/workspace_templates/modules/fixed-subagents/files/.codex/agents/valuation-analyst.toml +0 -57
  411. tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/.tradingcodex/policies/information-barriers.yaml +0 -256
  412. tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/.tradingcodex/secrets.md +0 -9
  413. tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/reports/postmortem/.gitkeep +0 -1
  414. tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/reports/risk/.gitkeep +0 -1
  415. tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/reports/technical/.gitkeep +0 -1
  416. tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/reports/valuation/.gitkeep +0 -1
  417. tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/research/.gitkeep +0 -1
  418. tradingcodex-0.3.5/workspace_templates/modules/postmortem/files/.tradingcodex/workflows/postmortem.yaml +0 -12
  419. tradingcodex-0.3.5/workspace_templates/modules/postmortem/module.json +0 -16
  420. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/automate-workflow/SKILL.md +0 -69
  421. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/automate-workflow/agents/openai.yaml +0 -6
  422. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/plan-workflow/SKILL.md +0 -65
  423. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/plan-workflow/agents/openai.yaml +0 -6
  424. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/postmortem/SKILL.md +0 -37
  425. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/postmortem/agents/openai.yaml +0 -6
  426. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/strategy-creator/SKILL.md +0 -111
  427. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/strategy-creator/agents/openai.yaml +0 -6
  428. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-build/SKILL.md +0 -38
  429. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-build/agents/openai.yaml +0 -6
  430. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-server/SKILL.md +0 -23
  431. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/SKILL.md +0 -31
  432. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/agents/openai.yaml +0 -6
  433. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/references/decision-quality-spine.md +0 -31
  434. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/execution-operator/execute-paper-order/SKILL.md +0 -32
  435. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/execution-operator/execute-paper-order/agents/openai.yaml +0 -6
  436. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/fundamental-analysis/agents/openai.yaml +0 -6
  437. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/instrument-analysis/agents/openai.yaml +0 -6
  438. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/judgment-reviewer/agent-judgment-review/agents/openai.yaml +0 -6
  439. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/macro-analysis/agents/openai.yaml +0 -6
  440. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/news-analysis/agents/openai.yaml +0 -6
  441. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/create-order-ticket/agents/openai.yaml +0 -6
  442. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/portfolio-review/agents/openai.yaml +0 -6
  443. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/approve-order/agents/openai.yaml +0 -6
  444. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/policy-review/agents/openai.yaml +0 -6
  445. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/review-risk/agents/openai.yaml +0 -6
  446. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/anti-overfit-validation/SKILL.md +0 -32
  447. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/anti-overfit-validation/agents/openai.yaml +0 -6
  448. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/collect-evidence/agents/openai.yaml +0 -6
  449. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/external-data-source-gate/agents/openai.yaml +0 -6
  450. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/forecasting-discipline/agents/openai.yaml +0 -6
  451. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/numeric-data-qc/agents/openai.yaml +0 -6
  452. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/thesis-scenario-tree/agents/openai.yaml +0 -6
  453. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/technical-analysis/agents/openai.yaml +0 -6
  454. tradingcodex-0.3.5/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/valuation-review/agents/openai.yaml +0 -6
  455. tradingcodex-0.3.5/workspace_templates/modules/stub-execution/module.json +0 -15
  456. tradingcodex-0.3.5/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/gateway/README.md +0 -8
  457. tradingcodex-0.3.5/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/server.py +0 -27
  458. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/CONTRIBUTING.md +0 -0
  459. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/LICENSE +0 -0
  460. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/NOTICE +0 -0
  461. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/TRADEMARKS.md +0 -0
  462. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/__init__.py +0 -0
  463. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/audit/__init__.py +0 -0
  464. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/audit/apps.py +0 -0
  465. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/audit/migrations/__init__.py +0 -0
  466. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/harness/__init__.py +0 -0
  467. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/harness/apps.py +0 -0
  468. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/harness/migrations/__init__.py +0 -0
  469. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/harness/templatetags/__init__.py +0 -0
  470. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/integrations/__init__.py +0 -0
  471. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/integrations/apps.py +0 -0
  472. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/integrations/migrations/__init__.py +0 -0
  473. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/mcp/__init__.py +0 -0
  474. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/mcp/apps.py +0 -0
  475. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/mcp/migrations/__init__.py +0 -0
  476. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/mcp/models.py +0 -0
  477. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/orders/__init__.py +0 -0
  478. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/orders/apps.py +0 -0
  479. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/orders/migrations/__init__.py +0 -0
  480. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/policy/__init__.py +0 -0
  481. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/policy/admin.py +0 -0
  482. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/policy/apps.py +0 -0
  483. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/policy/migrations/__init__.py +0 -0
  484. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/policy/models.py +0 -0
  485. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/portfolio/__init__.py +0 -0
  486. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/portfolio/apps.py +0 -0
  487. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/apps/portfolio/migrations/__init__.py +0 -0
  488. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/assets/tradingcodex-banner.svg +0 -0
  489. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/setup.cfg +0 -0
  490. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex.egg-info/dependency_links.txt +0 -0
  491. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex.egg-info/entry_points.txt +0 -0
  492. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex.egg-info/top_level.txt +0 -0
  493. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/__init__.py +0 -0
  494. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/commands/__init__.py +0 -0
  495. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/commands/strategies.py +0 -0
  496. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_cli/mcp_stdio.py +0 -0
  497. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_service/__init__.py +0 -0
  498. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_service/admin.py +0 -0
  499. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_service/application/__init__.py +0 -0
  500. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_service/asgi.py +0 -0
  501. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_service/static/tradingcodex_admin/favicon.svg +0 -0
  502. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/tradingcodex_service/wsgi.py +0 -0
  503. {tradingcodex-0.3.5/apps/workflows → tradingcodex-1.0.0/workspace_templates}/__init__.py +0 -0
  504. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/audit/files/.tradingcodex/audit/README.md +0 -0
  505. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/audit/files/trading/audit/.gitkeep +0 -0
  506. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/audit/module.json +0 -0
  507. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/codex-base/files/pyproject.toml +0 -0
  508. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/codex-base/module.json +0 -0
  509. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/evidence_pack.schema.json +0 -0
  510. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/fundamental_report.schema.json +0 -0
  511. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/news_report.schema.json +0 -0
  512. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/portfolio_review.schema.json +0 -0
  513. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/risk_report.schema.json +0 -0
  514. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/technical_report.schema.json +0 -0
  515. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/thesis.schema.json +0 -0
  516. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/valuation.schema.json +0 -0
  517. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/fixed-subagents/files/.tradingcodex/mainagent/skill-change-proposals/.gitkeep +0 -0
  518. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/guidance-guardrails/files/.tradingcodex/guidance/guardrails.md +0 -0
  519. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/guidance-guardrails/module.json +0 -0
  520. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/approvals → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/forecasts}/.gitkeep +0 -0
  521. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/forecasts → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/market-data}/.gitkeep +0 -0
  522. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/market-data → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/portfolio}/.gitkeep +0 -0
  523. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/orders/approved → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/reports/fundamental}/.gitkeep +0 -0
  524. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/orders/draft → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/reports/instrument}/.gitkeep +0 -0
  525. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/orders/executed → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/reports/macro}/.gitkeep +0 -0
  526. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/orders/rejected → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/reports/news}/.gitkeep +0 -0
  527. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/portfolio → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/reports/policy}/.gitkeep +0 -0
  528. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/reports/fundamental → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/reports/portfolio}/.gitkeep +0 -0
  529. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/reports/instrument → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/reports/postmortem}/.gitkeep +0 -0
  530. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/reports/macro → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/reports/risk}/.gitkeep +0 -0
  531. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/reports/news → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/reports/technical}/.gitkeep +0 -0
  532. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/reports/policy → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/reports/valuation}/.gitkeep +0 -0
  533. {tradingcodex-0.3.5/workspace_templates/modules/information-barriers/files/trading/reports/portfolio → tradingcodex-1.0.0/workspace_templates/modules/information-barriers/files/trading/research}/.gitkeep +0 -0
  534. {tradingcodex-0.3.5 → tradingcodex-1.0.0}/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/enforcer/README.md +0 -0
@@ -0,0 +1,161 @@
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+ ## 1.0.0 - 2026-07-15
6
+
7
+ - Raise the validated Codex CLI reference to 0.144.4 while retaining the
8
+ proven 0.144.1 compatibility floor, explicitly enable
9
+ MultiAgent V2, replace the incompatible V1 `agents.max_threads` setting with
10
+ the V2 session-wide thread ceiling, add CLI version diagnostics, and add a
11
+ strict config/feature/MCP maintainer preflight. Native lifecycle acceptance
12
+ now requires persisted project-hook trust, because the one-run hook-trust
13
+ bypass is not inherited when a V2 child reloads an exact role config.
14
+ - Add explicit development bootstrap shortcuts: source checkouts can run `tcx
15
+ attach/update --dev`, while the POSIX installer supports `--dev` and
16
+ `--dev --update` with the checkout bound as both package runner and declared
17
+ executable source. Generated workspaces continue to store only
18
+ `local-explicit`, never the private checkout path. Default development
19
+ bootstrap now isolates each checkout with its own runtime home, ledger, and
20
+ deterministic loopback service port; generated service commands honor that
21
+ address, and development update refuses to convert a release workspace in
22
+ place. Development commands import the live checkout through an editable
23
+ package-runner environment, while durable local runtimes are built from a
24
+ clean runtime-source snapshot that excludes stale build, distribution,
25
+ cache, bytecode, state, and database products.
26
+ - Remove the web Work execution runner, preview/start/follow-up APIs, and
27
+ workbench-only hook mode; replace the product web with a read-only
28
+ Library/Skills/System viewer whose left rail selects only registered,
29
+ validated attached workspaces. Optimize half-width desktop windows with a
30
+ compact workspace selector and full-width list-to-detail transitions, keep
31
+ long status labels inside every supported viewport, move keyboard focus into
32
+ narrow Library/Skills details and back to their indexes, and restore
33
+ main-content focus after workspace switching.
34
+ - Harden native workspace startup by keeping hook stdin/stdout in the launcher
35
+ process, using direct proxy-free loopback readiness checks with a native-host
36
+ response allowance, rejecting macOS ephemeral-port self-connections, and
37
+ retaining redacted detached-startup diagnostics while terminating timed-out
38
+ children instead of leaving orphans. Remove reverse-DNS lookup from the local
39
+ Django bind path, and validate these paths from the same clean wheel on macOS
40
+ and Windows.
41
+
42
+ - Make `tcx doctor` concise by default: run only the selected layer plus global
43
+ service preflight, summarize layer totals, expand warnings and failures, and
44
+ retain full per-check evidence behind `--verbose`.
45
+ - Strengthen point-in-time research guidance for filing/accession identity and
46
+ first-release or vintage macro data. Record all tried variants, effective
47
+ trial counts, frozen selection rules, and single-use holdout posture, while
48
+ keeping PBO, reality-check, and deflated-Sharpe diagnostics conditional on
49
+ supported assumptions and inputs.
50
+ - Let exact fixed-role children read only their projected role-owned/shared
51
+ skill documents and Markdown references, including the read-only batched
52
+ `cat` form Codex naturally emits. Redirects, pipelines, substitutions,
53
+ executable compounds, other-role skills, configs, generated indexes, and
54
+ runtime state remain fail-closed.
55
+
56
+ - Move all 31 bundled skills into the reserved compact `tcx-` namespace, with
57
+ one suffix word preferred and two allowed only for clarity. User-owned
58
+ `strategy-*`, `investment-brain-*`, and optional role skill namespaces stay
59
+ separate, and unchanged retired generated files migrate on `tcx update`.
60
+ - Remove the `execution-operator` fixed role and retired
61
+ `execute-paper-order` skill from generated workspaces.
62
+ - Add explicit-only root-native `tcx-order-submit` and
63
+ `tcx-order-cancel` action bundles. Their exact full-prompt grammar is
64
+ parsed by `UserPromptSubmit` and dispatched in-process to the canonical
65
+ service gateway as a workspace-bound `native-user` mandate before any model
66
+ runs.
67
+ - Expand `tcx-automate` into the authoring path for all Codex app
68
+ Scheduled Tasks, including simple research, monitoring, recurring analysis,
69
+ portfolio/status review, draft orders, assisted execution, and optional
70
+ turn-authorized execution. Saved prompts run on every scheduled turn and
71
+ invoke the actual work skill rather than `tcx-automate` recursively.
72
+ - Retire persistent Build mode. Only an exact root first line `$tcx-build`
73
+ creates a current-turn, workspace/session/turn-bound Build grant; Plan mode
74
+ is rejected and the marker never elevates Codex's native permission profile.
75
+ Generated workspaces default to `trading-research`, which permits general
76
+ shell/Python, credential-free public retrieval, and user-owned file changes
77
+ outside `trading/` while denying runtime/DB, credentials, protected control
78
+ files, local/private network targets, and direct durable TradingCodex writes.
79
+ Explicit `trading-build` turns open controlled `trading/` connector work with
80
+ network and sensitive state still denied; hook-owned proofs continue to gate
81
+ trusted lifecycle and canonical connector DB changes.
82
+ - Give Strategy and Investment Brain management their own exact root markers,
83
+ `$tcx-strategy` and `$tcx-brain`, in the normal `trading-research` profile.
84
+ Their DB-canonical current-turn grants are capability-scoped and cannot cross
85
+ into Build, one another, Plan mode, subagents, orders, credentials, global
86
+ config, or publication. Codex-native source authoring and ordinary workspace
87
+ computation stay in the normal permission profile, while registry and
88
+ projection lifecycle uses the proof-protected `manage_strategy` and
89
+ `manage_investment_brain` MCP tools. Research no longer exposes the generated
90
+ CLI or attached runtime for those actions, and model-side lifecycle launcher
91
+ calls now return a precise MCP/user-terminal handoff. Reversible source and
92
+ draft creation no longer asks for redundant confirmation; activation and
93
+ destructive lifecycle actions remain explicit. General server, Investor Context, and
94
+ unsupported Decision Memory lifecycle commands now return explicit
95
+ user-terminal handoffs instead of attempting a blocked model shell.
96
+ - Replace agent-side connector `connect`/write-style scaffold MCP operations
97
+ with read-only, content-addressed scaffold rendering plus native patching.
98
+ External MCP lifecycle/consent and provider-source approval remain
99
+ interactive operator actions protected by one-use service capabilities.
100
+ - Add the explicit-only `tcx-order-allow` bundle and `OrderTurnGrant`: only a
101
+ physical first line `$tcx-order-allow --mode paper|validation|live` can admit one
102
+ later submit or cancel in that root turn. Grants bind workspace, session,
103
+ turn, full prompt hash, and mode; expire after one hour; and are revoked on
104
+ `Stop`, the next turn, or consumption.
105
+ - Add Head Manager-only `use_order_turn_grant`. `PreToolUse` reserves the grant
106
+ and injects internal proof, so Workbench, subagents, direct MCP, REST, and CLI
107
+ callers gain no execution authority. The service still enforces canonical
108
+ ticket, receipt, policy, mode, live-confirmation, idempotency, adapter, audit,
109
+ reconciliation, and uncertainty gates; free-form prompt scope is not claimed
110
+ as deterministic policy.
111
+ - Keep a consumed `authorizing` order effect immutable while its broker result
112
+ is in flight. Stop/new-turn cleanup never resets it, and the same session
113
+ blocks new Build/order-sensitive prompts until terminal while ordinary
114
+ research remains available.
115
+ - Increase the bundled core skill count from 29 to 31 without adding an
116
+ execution subagent.
117
+ - Remove final submit, cancel, and broker-status-refresh mutations from public
118
+ MCP, REST, generic CLI guidance, and Workbench while preserving the existing
119
+ policy, approval, live-confirmation, idempotency, adapter, audit,
120
+ reconciliation, and uncertain-result gates.
121
+ - Reduce the fixed subagent roster to nine and keep Workbench preview, start,
122
+ and follow-up strictly analysis-only by rejecting reserved native action
123
+ tokens before launch.
124
+ - Require the canonical TradingCodex MCP for Head Manager and every fixed role,
125
+ make Workbench apply an isolated canonical project-trust override, and fail
126
+ launch instead of silently continuing without service authority. Native
127
+ dispatch audit now records exact role/fork/task plus child-brief hash and
128
+ size, never the brief body.
129
+
130
+ - Establish the first supported TradingCodex public contract across the CLI,
131
+ Django service, MCP gateway, React workbench, and generated workspaces.
132
+ - Start from clean v1 workspace, runtime-home, database, migration, policy,
133
+ approval, audit, research, forecast, and execution boundaries.
134
+ - Make Codex Head Manager the dynamic research orchestrator, with no semantic
135
+ hook router, server-generated DAG, default analyst team, or Django workflow
136
+ state machine. MultiAgent V2 projects Sol/xhigh for Head Manager and
137
+ Terra/high for analytical roles, with Terra/low for execution.
138
+ - Add explicit, workspace-file-native Investment Brain plugins with strict
139
+ local/Git installation, immutable versions, Head Manager-only projection,
140
+ lazy sealed references, rollback, collision checks, and run provenance.
141
+ - Add the user-owned `tcx-brain` source and managed-plugin lifecycle entrypoint
142
+ while keeping Strategy, Investor Context, Decision Memory, current evidence,
143
+ and Core safety as distinct authority layers.
144
+ - Authenticate run-bound research artifacts and synthesis inputs with
145
+ service-issued receipts, external signing-key custody, source snapshots, and
146
+ exact Brain/Strategy/Context lineage.
147
+ - Validate accepted run-bound artifacts against the strict quality contract
148
+ before receipt or stable publication, expose structured follow-up and
149
+ improvement MCP schemas, and exclude non-accepted handoffs from synthesis.
150
+ - Enforce V2 spawn-field allowlists, source-snapshot knowledge cutoffs,
151
+ no-future artifact time bounds, and strict claim tagging for Head Manager
152
+ synthesis.
153
+ - Initialize generated workspaces as local Git worktrees without staging,
154
+ commits, remotes, or publication, and require the private runtime home to
155
+ remain outside the versionable workspace.
156
+ - Serve the committed React workbench through content-hashed deterministic
157
+ assets so package updates cannot leave a browser on a stale bundle.
158
+ - Ship manual, tag-bound PyPI publishing with one verified wheel and source
159
+ distribution reused across Ubuntu, macOS, Windows, and publication jobs.
160
+ - Support forward package, generated-workspace, and Django schema updates within
161
+ the v1 line while rejecting prerelease compatibility and downgrade paths.
@@ -1,13 +1,15 @@
1
1
  include LICENSE
2
2
  include NOTICE
3
3
  include CONTRIBUTING.md
4
+ include CHANGELOG.md
4
5
  include TRADEMARKS.md
5
6
  include installation.md
6
7
  include install.sh
7
8
  recursive-include assets *
8
9
  recursive-include docs *
10
+ recursive-include frontend *.css *.html *.json *.js *.ts *.tsx
9
11
  recursive-include workspace_templates *
10
12
  recursive-include workspace_templates .*
11
- recursive-include tradingcodex_service/templates *
12
13
  recursive-include tradingcodex_service/static *
14
+ recursive-exclude frontend/node_modules *
13
15
  global-exclude *.py[cod]
@@ -0,0 +1,196 @@
1
+ Metadata-Version: 2.4
2
+ Name: tradingcodex
3
+ Version: 1.0.0
4
+ Summary: Local-first investment operating system for Codex-native research and service-gated execution.
5
+ Author: TradingCodex Authors
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/monarchjuno/tradingcodex
8
+ Project-URL: Documentation, https://github.com/monarchjuno/tradingcodex/blob/main/docs/README.md
9
+ Project-URL: Repository, https://github.com/monarchjuno/tradingcodex.git
10
+ Project-URL: Issues, https://github.com/monarchjuno/tradingcodex/issues
11
+ Keywords: trading,django,codex,mcp,portfolio,research
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Framework :: Django
14
+ Classifier: Framework :: Django :: 5.2
15
+ Classifier: Intended Audience :: Financial and Insurance Industry
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Topic :: Office/Business :: Financial :: Investment
22
+ Requires-Python: <3.15,>=3.11
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ License-File: NOTICE
26
+ Requires-Dist: django<5.3,>=5.2
27
+ Requires-Dist: django-ninja<2,>=1.4
28
+ Requires-Dist: markdown-it-py<5,>=3
29
+ Requires-Dist: nh3<0.4,>=0.3
30
+ Requires-Dist: packaging>=24
31
+ Requires-Dist: pydantic>=2
32
+ Requires-Dist: PyYAML>=6
33
+ Requires-Dist: whitenoise<7,>=6.12
34
+ Provides-Extra: dev
35
+ Requires-Dist: pytest>=8; extra == "dev"
36
+ Dynamic: license-file
37
+
38
+ # TradingCodex
39
+
40
+ <div align="center">
41
+ <a href="https://pypi.org/project/tradingcodex/"><img alt="PyPI" src="https://img.shields.io/pypi/v/tradingcodex?label=PyPI"></a>
42
+ <a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-blue"></a>
43
+ <img alt="Python" src="https://img.shields.io/badge/python-3.11--3.14-3776AB?logo=python&logoColor=white">
44
+ <img alt="Django" src="https://img.shields.io/badge/Django-5.2-092E20?logo=django&logoColor=white">
45
+ </div>
46
+
47
+ ### Research in Codex, with a trail you can inspect.
48
+
49
+ TradingCodex is a local-first investment operating system for Codex. Ask a
50
+ question in natural language, let a bounded fixed-role team gather and challenge
51
+ evidence, then keep the resulting research, source posture, uncertainty, and
52
+ next steps in your own workspace.
53
+
54
+ It is not an autonomous trading bot. A research response never becomes a
55
+ broker action on its own.
56
+
57
+ [Get started](https://monarchjuno.github.io/tradingcodex/) · [All user-facing skills](docs/user-facing-skills.md) · [Provider to order](https://monarchjuno.github.io/tradingcodex/provider-to-order.html) · [Documentation](docs/README.md)
58
+
59
+ ## Start Here
60
+
61
+ 1. **Attach an empty workspace.** TradingCodex creates the local contract,
62
+ launcher, skills, hooks, and research folders without creating a commit or
63
+ remote.
64
+ 2. **Open a new native Codex task.** Start with the outcome you need, not with
65
+ a preselected analyst or agent.
66
+ 3. **Inspect the evidence.** Read saved artifacts in the read-only workspace
67
+ viewer, then continue, narrow the question, or stop.
68
+
69
+ You need Git, `uvx`, and an installed, authenticated `codex` CLI. In the empty
70
+ folder where you want research to live, run:
71
+
72
+ ```bash
73
+ cd /path/to/your/empty-workspace
74
+ uvx --refresh --from tradingcodex tcx attach . && ./tcx doctor
75
+ ./tcx service ensure
76
+ ```
77
+
78
+ On native Windows PowerShell:
79
+
80
+ ```powershell
81
+ cd C:\path\to\your\empty-workspace
82
+ uvx --refresh --from tradingcodex tcx attach .
83
+ .\tcx.cmd doctor
84
+ .\tcx.cmd service ensure
85
+ ```
86
+
87
+ Then fully restart Codex, open and trust that workspace, and start a new task.
88
+ The local viewer is available at `http://127.0.0.1:48267/`. End users do not
89
+ need Node, npm, or a separate frontend server.
90
+
91
+ > [!IMPORTANT]
92
+ > To set up a user workspace, use `tcx attach` in the target folder. Do not
93
+ > clone this source repository into that workspace.
94
+
95
+ ## Choose Your Path
96
+
97
+ | What you want to do | Start with | What happens next |
98
+ | --- | --- | --- |
99
+ | Investigate a company, thesis, event, portfolio fit, or risk question | [`$tcx-workflow`](https://monarchjuno.github.io/tradingcodex/research.html) | Head Manager chooses the smallest useful fixed-role team and returns evidence-backed artifacts or a clear waiting, revise, or blocked state. |
100
+ | Make an ambiguous request concrete | [`$tcx-plan`](https://monarchjuno.github.io/tradingcodex/skill-plan.html) | Clarify scope, allowed actions, and stop conditions; use the resulting mandate in a new workflow task. |
101
+ | Review a past decision or validate a lesson | [`$tcx-memory`](https://monarchjuno.github.io/tradingcodex/skill-memory.html) | Replay from point-in-time evidence and distinguish decision quality from outcome quality. |
102
+ | Create a reusable method or reasoning framework | [`$tcx-strategy`](https://monarchjuno.github.io/tradingcodex/skill-strategy.html) or [`$tcx-brain`](https://monarchjuno.github.io/tradingcodex/skill-brain.html) | Start directly with the matching skill in the normal Research profile; its current-turn scope cannot grant execution authority or cross into generic Build work. |
103
+ | Monitor work on a schedule | [`$tcx-automate`](https://monarchjuno.github.io/tradingcodex/skill-automate.html) | Create or update a Codex Scheduled Task that invokes the actual work skill on each run. |
104
+ | Open the dashboard or recover a workspace | [`$tcx-dashboard`](https://monarchjuno.github.io/tradingcodex/skill-dashboard.html) or [`$tcx-server`](https://monarchjuno.github.io/tradingcodex/skill-server.html) | Open the read-only viewer inside Codex by default, request an external browser when needed, or receive a readiness check and safe recovery handoff. |
105
+ | Connect a provider and prepare an order | [Provider to order](https://monarchjuno.github.io/tradingcodex/provider-to-order.html) | Keep provider setup, account sync, ticket creation, checks, approval, and final action as separate checkpoints. |
106
+
107
+ There are 13 user-facing skills. Browse their detailed behavior, examples, and
108
+ boundaries in the [User Guide](https://monarchjuno.github.io/tradingcodex/skills.html).
109
+
110
+ ## Run Your First Research Task
111
+
112
+ In a new native Codex task, use the workflow skill and state both your desired
113
+ outcome and the boundaries that must remain in force:
114
+
115
+ ```text
116
+ $tcx-workflow
117
+ Analyze MSFT as a medium-term quality compounder. Separate facts, inferences,
118
+ and assumptions. Include contrary evidence and invalidation conditions. No order.
119
+ ```
120
+
121
+ The workflow begins a lightweight, workspace-bound run. Head Manager selects
122
+ only the fixed-role specialists the question needs, reassesses from accepted
123
+ artifacts, and either synthesizes the result or states why work is waiting,
124
+ needs revision, or is blocked.
125
+
126
+ ## How TradingCodex Is Organized
127
+
128
+ | Layer | What it does | What it does not do |
129
+ | --- | --- | --- |
130
+ | **Native Codex task** | Interprets the request, runs Head Manager, and dynamically dispatches exact fixed-role specialists. | It does not turn ordinary prose into an order or use a generic agent to imitate a specialist. |
131
+ | **Workspace** | Holds readable research, reports, source snapshots, skills, prompts, and lightweight run provenance. | It is not the portfolio, order, account, approval, or secret ledger. |
132
+ | **Django service** | Enforces artifact identity, policy, approval, broker, idempotency, execution, and audit rules through shared application services. | It does not replace Codex with a semantic router, preset team, or stored workflow DAG. |
133
+ | **Read-only viewer** | Lets you browse Library artifacts, Skills, System posture, and registered workspaces. | It does not launch Codex, write workspace files, or mutate orders, brokers, skills, or policy. |
134
+
135
+ ```mermaid
136
+ flowchart LR
137
+ question[Your mandate] --> codex[Native Codex task]
138
+ codex --> team[Head Manager and fixed-role evidence]
139
+ team --> artifacts[Authenticated research artifacts]
140
+ artifacts --> viewer[Read-only Library and System viewer]
141
+ artifacts --> service[Policy, approval, broker, and audit gates]
142
+ ```
143
+
144
+ ## What You Keep
145
+
146
+ TradingCodex keeps the work inspectable after the chat ends:
147
+
148
+ - Research handoffs and evidence under `trading/research/`.
149
+ - Role reports under `trading/reports/`.
150
+ - Source snapshots, point-in-time posture, forecasts, and decision-memory
151
+ artifacts that explain what was known and when.
152
+ - A read-only viewer with **Library**, **Skills**, and **System** sections for
153
+ the attached workspace.
154
+
155
+ The workspace is yours to read, back up, diff, and version. The service keeps
156
+ execution-sensitive runtime state in its central local ledger instead of hiding
157
+ that state in prompts or workspace files.
158
+
159
+ ## Safety by Design
160
+
161
+ - Research, planning, memory, and automation do not imply broker authority.
162
+ - Provider connection, ticket drafting, checks, risk approval, and final order
163
+ action are deliberately separate steps. The built-in provider is Paper; live
164
+ adapters remain blocked until every documented gate is satisfied.
165
+ - Fixed roles have bounded tools and handoff responsibilities. A final order
166
+ path is available only from an exact root-native protocol, never from the
167
+ viewer, a subagent, public REST, generic CLI, or direct MCP call.
168
+ - Raw credentials do not belong in prompts, workspace files, reports, API/MCP
169
+ output, or audit data.
170
+
171
+ TradingCodex provides research workflow and execution guardrails. It is not
172
+ financial, investment, legal, tax, or regulatory advice, and it does not
173
+ guarantee returns.
174
+
175
+ ## Learn More
176
+
177
+ | Read this | When you need |
178
+ | --- | --- |
179
+ | [User Guide](https://monarchjuno.github.io/tradingcodex/) | Setup, examples, concepts, all user-facing skills, and provider-to-order onboarding. |
180
+ | [Installation](installation.md) | Install variants, updates, runtime homes, MCP/service startup, and recovery. |
181
+ | [User-facing skills](docs/user-facing-skills.md) | The full skill map, entry rules, and hard stops. |
182
+ | [Research memory and artifacts](docs/research-memory-and-artifacts.md) | Artifact paths, source posture, versions, quality labels, forecasts, and exports. |
183
+ | [Decision memory](docs/decision-memory.md) | Replay, postmortems, lesson validation, and reusable context. |
184
+ | [Safety policy and execution](docs/safety-policy-and-execution.md) | Permissions, approvals, brokers, secrets, and execution boundaries. |
185
+ | [Documentation index](docs/README.md) | The complete product and maintainer documentation map. |
186
+
187
+ ## Developing TradingCodex
188
+
189
+ This repository is product source, not a user workspace. Start with
190
+ [CONTRIBUTING.md](CONTRIBUTING.md), then follow the validation route for your
191
+ change in [docs/validation-and-test-plan.md](docs/validation-and-test-plan.md).
192
+
193
+ ## License
194
+
195
+ TradingCodex is an Apache-2.0 open-core project. See [LICENSE](LICENSE),
196
+ [NOTICE](NOTICE), and [TRADEMARKS.md](TRADEMARKS.md).
@@ -0,0 +1,159 @@
1
+ # TradingCodex
2
+
3
+ <div align="center">
4
+ <a href="https://pypi.org/project/tradingcodex/"><img alt="PyPI" src="https://img.shields.io/pypi/v/tradingcodex?label=PyPI"></a>
5
+ <a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-blue"></a>
6
+ <img alt="Python" src="https://img.shields.io/badge/python-3.11--3.14-3776AB?logo=python&logoColor=white">
7
+ <img alt="Django" src="https://img.shields.io/badge/Django-5.2-092E20?logo=django&logoColor=white">
8
+ </div>
9
+
10
+ ### Research in Codex, with a trail you can inspect.
11
+
12
+ TradingCodex is a local-first investment operating system for Codex. Ask a
13
+ question in natural language, let a bounded fixed-role team gather and challenge
14
+ evidence, then keep the resulting research, source posture, uncertainty, and
15
+ next steps in your own workspace.
16
+
17
+ It is not an autonomous trading bot. A research response never becomes a
18
+ broker action on its own.
19
+
20
+ [Get started](https://monarchjuno.github.io/tradingcodex/) · [All user-facing skills](docs/user-facing-skills.md) · [Provider to order](https://monarchjuno.github.io/tradingcodex/provider-to-order.html) · [Documentation](docs/README.md)
21
+
22
+ ## Start Here
23
+
24
+ 1. **Attach an empty workspace.** TradingCodex creates the local contract,
25
+ launcher, skills, hooks, and research folders without creating a commit or
26
+ remote.
27
+ 2. **Open a new native Codex task.** Start with the outcome you need, not with
28
+ a preselected analyst or agent.
29
+ 3. **Inspect the evidence.** Read saved artifacts in the read-only workspace
30
+ viewer, then continue, narrow the question, or stop.
31
+
32
+ You need Git, `uvx`, and an installed, authenticated `codex` CLI. In the empty
33
+ folder where you want research to live, run:
34
+
35
+ ```bash
36
+ cd /path/to/your/empty-workspace
37
+ uvx --refresh --from tradingcodex tcx attach . && ./tcx doctor
38
+ ./tcx service ensure
39
+ ```
40
+
41
+ On native Windows PowerShell:
42
+
43
+ ```powershell
44
+ cd C:\path\to\your\empty-workspace
45
+ uvx --refresh --from tradingcodex tcx attach .
46
+ .\tcx.cmd doctor
47
+ .\tcx.cmd service ensure
48
+ ```
49
+
50
+ Then fully restart Codex, open and trust that workspace, and start a new task.
51
+ The local viewer is available at `http://127.0.0.1:48267/`. End users do not
52
+ need Node, npm, or a separate frontend server.
53
+
54
+ > [!IMPORTANT]
55
+ > To set up a user workspace, use `tcx attach` in the target folder. Do not
56
+ > clone this source repository into that workspace.
57
+
58
+ ## Choose Your Path
59
+
60
+ | What you want to do | Start with | What happens next |
61
+ | --- | --- | --- |
62
+ | Investigate a company, thesis, event, portfolio fit, or risk question | [`$tcx-workflow`](https://monarchjuno.github.io/tradingcodex/research.html) | Head Manager chooses the smallest useful fixed-role team and returns evidence-backed artifacts or a clear waiting, revise, or blocked state. |
63
+ | Make an ambiguous request concrete | [`$tcx-plan`](https://monarchjuno.github.io/tradingcodex/skill-plan.html) | Clarify scope, allowed actions, and stop conditions; use the resulting mandate in a new workflow task. |
64
+ | Review a past decision or validate a lesson | [`$tcx-memory`](https://monarchjuno.github.io/tradingcodex/skill-memory.html) | Replay from point-in-time evidence and distinguish decision quality from outcome quality. |
65
+ | Create a reusable method or reasoning framework | [`$tcx-strategy`](https://monarchjuno.github.io/tradingcodex/skill-strategy.html) or [`$tcx-brain`](https://monarchjuno.github.io/tradingcodex/skill-brain.html) | Start directly with the matching skill in the normal Research profile; its current-turn scope cannot grant execution authority or cross into generic Build work. |
66
+ | Monitor work on a schedule | [`$tcx-automate`](https://monarchjuno.github.io/tradingcodex/skill-automate.html) | Create or update a Codex Scheduled Task that invokes the actual work skill on each run. |
67
+ | Open the dashboard or recover a workspace | [`$tcx-dashboard`](https://monarchjuno.github.io/tradingcodex/skill-dashboard.html) or [`$tcx-server`](https://monarchjuno.github.io/tradingcodex/skill-server.html) | Open the read-only viewer inside Codex by default, request an external browser when needed, or receive a readiness check and safe recovery handoff. |
68
+ | Connect a provider and prepare an order | [Provider to order](https://monarchjuno.github.io/tradingcodex/provider-to-order.html) | Keep provider setup, account sync, ticket creation, checks, approval, and final action as separate checkpoints. |
69
+
70
+ There are 13 user-facing skills. Browse their detailed behavior, examples, and
71
+ boundaries in the [User Guide](https://monarchjuno.github.io/tradingcodex/skills.html).
72
+
73
+ ## Run Your First Research Task
74
+
75
+ In a new native Codex task, use the workflow skill and state both your desired
76
+ outcome and the boundaries that must remain in force:
77
+
78
+ ```text
79
+ $tcx-workflow
80
+ Analyze MSFT as a medium-term quality compounder. Separate facts, inferences,
81
+ and assumptions. Include contrary evidence and invalidation conditions. No order.
82
+ ```
83
+
84
+ The workflow begins a lightweight, workspace-bound run. Head Manager selects
85
+ only the fixed-role specialists the question needs, reassesses from accepted
86
+ artifacts, and either synthesizes the result or states why work is waiting,
87
+ needs revision, or is blocked.
88
+
89
+ ## How TradingCodex Is Organized
90
+
91
+ | Layer | What it does | What it does not do |
92
+ | --- | --- | --- |
93
+ | **Native Codex task** | Interprets the request, runs Head Manager, and dynamically dispatches exact fixed-role specialists. | It does not turn ordinary prose into an order or use a generic agent to imitate a specialist. |
94
+ | **Workspace** | Holds readable research, reports, source snapshots, skills, prompts, and lightweight run provenance. | It is not the portfolio, order, account, approval, or secret ledger. |
95
+ | **Django service** | Enforces artifact identity, policy, approval, broker, idempotency, execution, and audit rules through shared application services. | It does not replace Codex with a semantic router, preset team, or stored workflow DAG. |
96
+ | **Read-only viewer** | Lets you browse Library artifacts, Skills, System posture, and registered workspaces. | It does not launch Codex, write workspace files, or mutate orders, brokers, skills, or policy. |
97
+
98
+ ```mermaid
99
+ flowchart LR
100
+ question[Your mandate] --> codex[Native Codex task]
101
+ codex --> team[Head Manager and fixed-role evidence]
102
+ team --> artifacts[Authenticated research artifacts]
103
+ artifacts --> viewer[Read-only Library and System viewer]
104
+ artifacts --> service[Policy, approval, broker, and audit gates]
105
+ ```
106
+
107
+ ## What You Keep
108
+
109
+ TradingCodex keeps the work inspectable after the chat ends:
110
+
111
+ - Research handoffs and evidence under `trading/research/`.
112
+ - Role reports under `trading/reports/`.
113
+ - Source snapshots, point-in-time posture, forecasts, and decision-memory
114
+ artifacts that explain what was known and when.
115
+ - A read-only viewer with **Library**, **Skills**, and **System** sections for
116
+ the attached workspace.
117
+
118
+ The workspace is yours to read, back up, diff, and version. The service keeps
119
+ execution-sensitive runtime state in its central local ledger instead of hiding
120
+ that state in prompts or workspace files.
121
+
122
+ ## Safety by Design
123
+
124
+ - Research, planning, memory, and automation do not imply broker authority.
125
+ - Provider connection, ticket drafting, checks, risk approval, and final order
126
+ action are deliberately separate steps. The built-in provider is Paper; live
127
+ adapters remain blocked until every documented gate is satisfied.
128
+ - Fixed roles have bounded tools and handoff responsibilities. A final order
129
+ path is available only from an exact root-native protocol, never from the
130
+ viewer, a subagent, public REST, generic CLI, or direct MCP call.
131
+ - Raw credentials do not belong in prompts, workspace files, reports, API/MCP
132
+ output, or audit data.
133
+
134
+ TradingCodex provides research workflow and execution guardrails. It is not
135
+ financial, investment, legal, tax, or regulatory advice, and it does not
136
+ guarantee returns.
137
+
138
+ ## Learn More
139
+
140
+ | Read this | When you need |
141
+ | --- | --- |
142
+ | [User Guide](https://monarchjuno.github.io/tradingcodex/) | Setup, examples, concepts, all user-facing skills, and provider-to-order onboarding. |
143
+ | [Installation](installation.md) | Install variants, updates, runtime homes, MCP/service startup, and recovery. |
144
+ | [User-facing skills](docs/user-facing-skills.md) | The full skill map, entry rules, and hard stops. |
145
+ | [Research memory and artifacts](docs/research-memory-and-artifacts.md) | Artifact paths, source posture, versions, quality labels, forecasts, and exports. |
146
+ | [Decision memory](docs/decision-memory.md) | Replay, postmortems, lesson validation, and reusable context. |
147
+ | [Safety policy and execution](docs/safety-policy-and-execution.md) | Permissions, approvals, brokers, secrets, and execution boundaries. |
148
+ | [Documentation index](docs/README.md) | The complete product and maintainer documentation map. |
149
+
150
+ ## Developing TradingCodex
151
+
152
+ This repository is product source, not a user workspace. Start with
153
+ [CONTRIBUTING.md](CONTRIBUTING.md), then follow the validation route for your
154
+ change in [docs/validation-and-test-plan.md](docs/validation-and-test-plan.md).
155
+
156
+ ## License
157
+
158
+ TradingCodex is an Apache-2.0 open-core project. See [LICENSE](LICENSE),
159
+ [NOTICE](NOTICE), and [TRADEMARKS.md](TRADEMARKS.md).
@@ -0,0 +1,17 @@
1
+ from django.contrib import admin
2
+
3
+ from apps.audit.models import AuditEvent
4
+
5
+
6
+ @admin.register(AuditEvent)
7
+ class AuditEventAdmin(admin.ModelAdmin):
8
+ readonly_fields = tuple(field.name for field in AuditEvent._meta.fields)
9
+
10
+ def has_add_permission(self, request) -> bool:
11
+ return False
12
+
13
+ def has_change_permission(self, request, obj=None) -> bool:
14
+ return False
15
+
16
+ def has_delete_permission(self, request, obj=None) -> bool:
17
+ return False
@@ -1,4 +1,4 @@
1
- # Generated by Django 5.2.5 on 2026-06-12 16:32
1
+ # Generated by Django 5.2.5 on 2026-07-11 10:16
2
2
 
3
3
  from django.db import migrations, models
4
4
 
@@ -1,4 +1,5 @@
1
1
  from django.db import models
2
+ from django.core.exceptions import ValidationError
2
3
 
3
4
 
4
5
  class AuditEvent(models.Model):
@@ -20,3 +21,11 @@ class AuditEvent(models.Model):
20
21
 
21
22
  def __str__(self) -> str:
22
23
  return f"{self.created_at:%Y-%m-%d %H:%M:%S} {self.action}"
24
+
25
+ def save(self, *args, **kwargs) -> None:
26
+ if self.pk and type(self).objects.filter(pk=self.pk).exists():
27
+ raise ValidationError("audit events are append-only")
28
+ super().save(*args, **kwargs)
29
+
30
+ def delete(self, *args, **kwargs) -> None:
31
+ raise ValidationError("audit events are append-only")
@@ -0,0 +1,25 @@
1
+ from django.contrib import admin
2
+
3
+ from apps.harness.models import BuildTurnGrant, WorkspaceContext
4
+
5
+
6
+ class ReadOnlyGrantAdmin(admin.ModelAdmin):
7
+ list_display = ("grant_id", "authority_scope", "status", "issued_at", "expires_at", "use_count")
8
+ list_filter = ("authority_scope", "status")
9
+ search_fields = ("grant_id", "workspace_id", "workspace_path_hash")
10
+
11
+ def get_readonly_fields(self, request, obj=None):
12
+ return tuple(field.name for field in self.model._meta.fields)
13
+
14
+ def has_add_permission(self, request) -> bool:
15
+ return False
16
+
17
+ def has_change_permission(self, request, obj=None) -> bool:
18
+ return False
19
+
20
+ def has_delete_permission(self, request, obj=None) -> bool:
21
+ return False
22
+
23
+
24
+ admin.site.register(WorkspaceContext)
25
+ admin.site.register(BuildTurnGrant, ReadOnlyGrantAdmin)