tradingcodex 0.3.6__tar.gz → 1.0.1__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 (536) hide show
  1. tradingcodex-1.0.1/CHANGELOG.md +178 -0
  2. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/MANIFEST.in +3 -1
  3. tradingcodex-1.0.1/PKG-INFO +196 -0
  4. tradingcodex-1.0.1/README.md +159 -0
  5. tradingcodex-1.0.1/apps/audit/admin.py +17 -0
  6. tradingcodex-0.3.6/apps/audit/migrations/0001_initial.py → tradingcodex-1.0.1/apps/audit/migrations/0001_v1_initial.py +1 -1
  7. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/audit/models.py +9 -0
  8. tradingcodex-1.0.1/apps/harness/admin.py +25 -0
  9. tradingcodex-1.0.1/apps/harness/migrations/0001_v1_initial.py +68 -0
  10. tradingcodex-1.0.1/apps/harness/models.py +90 -0
  11. tradingcodex-1.0.1/apps/integrations/admin.py +47 -0
  12. tradingcodex-0.3.6/apps/integrations/migrations/0002_brokerconnection_brokeraccount_instrumentmap.py → tradingcodex-1.0.1/apps/integrations/migrations/0001_v1_initial.py +47 -7
  13. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/integrations/models.py +58 -5
  14. tradingcodex-1.0.1/apps/mcp/admin.py +40 -0
  15. tradingcodex-0.3.6/apps/mcp/migrations/0001_initial.py → tradingcodex-1.0.1/apps/mcp/migrations/0001_v1_initial.py +29 -1
  16. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/mcp/services.py +579 -144
  17. tradingcodex-1.0.1/apps/orders/admin.py +31 -0
  18. tradingcodex-1.0.1/apps/orders/migrations/0001_v1_initial.py +229 -0
  19. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/orders/models.py +121 -30
  20. tradingcodex-1.0.1/apps/orders/services.py +313 -0
  21. tradingcodex-0.3.6/apps/policy/migrations/0001_initial.py → tradingcodex-1.0.1/apps/policy/migrations/0001_v1_initial.py +1 -1
  22. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/policy/services.py +47 -6
  23. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/portfolio/admin.py +2 -1
  24. tradingcodex-0.3.6/apps/portfolio/migrations/0002_brokersyncrun_portfolioledgerevent_reconciliationrun.py → tradingcodex-1.0.1/apps/portfolio/migrations/0001_v1_initial.py +79 -8
  25. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/portfolio/models.py +40 -17
  26. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/docs/README.md +24 -10
  27. tradingcodex-1.0.1/docs/codex-native-orchestration.md +160 -0
  28. tradingcodex-1.0.1/docs/components.md +106 -0
  29. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/docs/core-concepts-and-rules.md +49 -24
  30. tradingcodex-1.0.1/docs/decision-memory.md +540 -0
  31. tradingcodex-1.0.1/docs/deployment.md +296 -0
  32. tradingcodex-1.0.1/docs/execution-without-subagent-plan.md +487 -0
  33. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/docs/financial-workflow-references.md +83 -49
  34. tradingcodex-1.0.1/docs/generated-workspaces.md +1356 -0
  35. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/docs/guardrails.md +5 -4
  36. tradingcodex-1.0.1/docs/harness.md +219 -0
  37. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/docs/improvement-loop.md +52 -17
  38. tradingcodex-1.0.1/docs/interfaces-and-surfaces.md +594 -0
  39. tradingcodex-1.0.1/docs/investment-brain-plugins.md +544 -0
  40. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/docs/licensing-and-commercialization.md +1 -1
  41. tradingcodex-1.0.1/docs/product-direction.md +196 -0
  42. tradingcodex-1.0.1/docs/release-readiness.md +280 -0
  43. tradingcodex-1.0.1/docs/research-memory-and-artifacts.md +679 -0
  44. tradingcodex-1.0.1/docs/roles-skills-and-workflows.md +347 -0
  45. tradingcodex-1.0.1/docs/safety-policy-and-execution.md +722 -0
  46. tradingcodex-1.0.1/docs/system-architecture.md +486 -0
  47. tradingcodex-1.0.1/docs/user-facing-skills.md +231 -0
  48. tradingcodex-1.0.1/docs/validation-and-test-plan.md +635 -0
  49. tradingcodex-1.0.1/frontend/index.html +14 -0
  50. tradingcodex-1.0.1/frontend/package-lock.json +975 -0
  51. tradingcodex-1.0.1/frontend/package.json +25 -0
  52. tradingcodex-1.0.1/frontend/src/App.tsx +123 -0
  53. tradingcodex-1.0.1/frontend/src/api.ts +67 -0
  54. tradingcodex-1.0.1/frontend/src/domain.ts +130 -0
  55. tradingcodex-1.0.1/frontend/src/features/LibraryPage.tsx +105 -0
  56. tradingcodex-1.0.1/frontend/src/features/SkillsPage.tsx +78 -0
  57. tradingcodex-1.0.1/frontend/src/features/SystemPage.tsx +34 -0
  58. tradingcodex-1.0.1/frontend/src/main.tsx +11 -0
  59. tradingcodex-1.0.1/frontend/src/navigation.js +19 -0
  60. tradingcodex-1.0.1/frontend/src/navigation.test.js +111 -0
  61. tradingcodex-1.0.1/frontend/src/styles.css +531 -0
  62. tradingcodex-1.0.1/frontend/src/ui.tsx +42 -0
  63. tradingcodex-1.0.1/frontend/src/viewer-data.js +29 -0
  64. tradingcodex-1.0.1/frontend/tsconfig.json +22 -0
  65. tradingcodex-1.0.1/frontend/vite.config.ts +11 -0
  66. tradingcodex-1.0.1/install.sh +256 -0
  67. tradingcodex-1.0.1/installation.md +384 -0
  68. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/pyproject.toml +17 -5
  69. tradingcodex-1.0.1/tests/test_artifact_authentication.py +1276 -0
  70. tradingcodex-1.0.1/tests/test_brain_skill.py +109 -0
  71. tradingcodex-1.0.1/tests/test_broker_center_prd.py +1244 -0
  72. tradingcodex-1.0.1/tests/test_build_contract_metadata.py +101 -0
  73. tradingcodex-1.0.1/tests/test_build_hook.py +1283 -0
  74. tradingcodex-1.0.1/tests/test_build_turn_grant.py +1071 -0
  75. tradingcodex-1.0.1/tests/test_clean_v1_cli_audit.py +257 -0
  76. tradingcodex-1.0.1/tests/test_codex_cli_compat.py +132 -0
  77. tradingcodex-1.0.1/tests/test_codex_cli_contract.py +65 -0
  78. tradingcodex-1.0.1/tests/test_codex_native_orchestration.py +304 -0
  79. tradingcodex-1.0.1/tests/test_dashboard_skill.py +67 -0
  80. tradingcodex-1.0.1/tests/test_decision_memory_core.py +473 -0
  81. tradingcodex-1.0.1/tests/test_dev_bootstrap.py +279 -0
  82. tradingcodex-1.0.1/tests/test_dynamic_artifact_quality.py +379 -0
  83. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tests/test_e2e_user_scenarios.py +201 -198
  84. tradingcodex-1.0.1/tests/test_evaluation_lab_hardening.py +318 -0
  85. tradingcodex-1.0.1/tests/test_evaluation_profiles.py +78 -0
  86. tradingcodex-1.0.1/tests/test_investment_analysis.py +392 -0
  87. tradingcodex-1.0.1/tests/test_investment_brain_cli.py +20 -0
  88. tradingcodex-1.0.1/tests/test_investment_brain_prompt_layers.py +91 -0
  89. tradingcodex-1.0.1/tests/test_investment_brain_provenance.py +353 -0
  90. tradingcodex-1.0.1/tests/test_investment_brain_registry.py +1056 -0
  91. tradingcodex-1.0.1/tests/test_investor_context.py +154 -0
  92. tradingcodex-1.0.1/tests/test_mcp_broker_release_health.py +567 -0
  93. tradingcodex-1.0.1/tests/test_mcp_operator_authority.py +524 -0
  94. tradingcodex-1.0.1/tests/test_native_execution_gateway.py +517 -0
  95. tradingcodex-1.0.1/tests/test_order_turn_grant.py +1232 -0
  96. tradingcodex-1.0.1/tests/test_platform_runtime.py +1556 -0
  97. tradingcodex-1.0.1/tests/test_provider_source_approval.py +413 -0
  98. tradingcodex-1.0.1/tests/test_release_contract.py +753 -0
  99. tradingcodex-1.0.1/tests/test_research_forecast_surfaces.py +438 -0
  100. tradingcodex-1.0.1/tests/test_research_spec_profiles.py +282 -0
  101. tradingcodex-1.0.1/tests/test_runtime_paths.py +181 -0
  102. tradingcodex-1.0.1/tests/test_runtime_profile.py +397 -0
  103. tradingcodex-1.0.1/tests/test_security_invariants.py +807 -0
  104. tradingcodex-1.0.1/tests/test_skill_runtime_boundaries.py +318 -0
  105. tradingcodex-1.0.1/tests/test_source_snapshot_agent_contract.py +274 -0
  106. tradingcodex-1.0.1/tests/test_v1_migrations.py +46 -0
  107. tradingcodex-1.0.1/tests/test_v1_state_integrity.py +185 -0
  108. tradingcodex-1.0.1/tests/test_viewer.py +78 -0
  109. tradingcodex-1.0.1/tests/test_workspace_git_contract.py +298 -0
  110. tradingcodex-1.0.1/tradingcodex.egg-info/PKG-INFO +196 -0
  111. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex.egg-info/SOURCES.txt +161 -107
  112. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex.egg-info/requires.txt +2 -0
  113. tradingcodex-1.0.1/tradingcodex_cli/__main__.py +172 -0
  114. tradingcodex-1.0.1/tradingcodex_cli/commands/bootstrap.py +380 -0
  115. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/commands/build.py +38 -58
  116. tradingcodex-1.0.1/tradingcodex_cli/commands/connectors.py +185 -0
  117. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/commands/db.py +12 -4
  118. tradingcodex-1.0.1/tradingcodex_cli/commands/decision.py +56 -0
  119. tradingcodex-1.0.1/tradingcodex_cli/commands/doctor.py +998 -0
  120. tradingcodex-1.0.1/tradingcodex_cli/commands/evaluation.py +45 -0
  121. tradingcodex-1.0.1/tradingcodex_cli/commands/forecast.py +68 -0
  122. tradingcodex-1.0.1/tradingcodex_cli/commands/home.py +21 -0
  123. tradingcodex-1.0.1/tradingcodex_cli/commands/investment_brains.py +165 -0
  124. tradingcodex-1.0.1/tradingcodex_cli/commands/investor_context.py +55 -0
  125. tradingcodex-1.0.1/tradingcodex_cli/commands/mcp.py +560 -0
  126. tradingcodex-1.0.1/tradingcodex_cli/commands/mode.py +33 -0
  127. tradingcodex-1.0.1/tradingcodex_cli/commands/orders.py +140 -0
  128. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/commands/policy.py +0 -1
  129. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/commands/profile.py +14 -32
  130. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/commands/research.py +100 -27
  131. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/commands/skills.py +7 -2
  132. tradingcodex-1.0.1/tradingcodex_cli/commands/subagents.py +124 -0
  133. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/commands/utils.py +95 -28
  134. tradingcodex-1.0.1/tradingcodex_cli/commands/workflow.py +33 -0
  135. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/commands/workspaces.py +6 -0
  136. tradingcodex-1.0.1/tradingcodex_cli/generator.py +1201 -0
  137. tradingcodex-1.0.1/tradingcodex_cli/package_source.py +167 -0
  138. tradingcodex-1.0.1/tradingcodex_cli/service_autostart.py +514 -0
  139. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/startup_status.py +240 -156
  140. tradingcodex-1.0.1/tradingcodex_cli/versioning.py +5 -0
  141. tradingcodex-1.0.1/tradingcodex_service/api.py +1089 -0
  142. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_service/application/agents.py +740 -219
  143. tradingcodex-1.0.1/tradingcodex_service/application/analysis_runs.py +362 -0
  144. tradingcodex-1.0.1/tradingcodex_service/application/artifact_bindings.py +718 -0
  145. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_service/application/artifact_quality.py +356 -109
  146. tradingcodex-1.0.1/tradingcodex_service/application/audit.py +127 -0
  147. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_service/application/brokers.py +1448 -262
  148. tradingcodex-1.0.1/tradingcodex_service/application/build_gateway.py +1438 -0
  149. tradingcodex-1.0.1/tradingcodex_service/application/common.py +319 -0
  150. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_service/application/components.py +183 -67
  151. tradingcodex-1.0.1/tradingcodex_service/application/context_budget.py +94 -0
  152. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_service/application/customization.py +143 -22
  153. tradingcodex-1.0.1/tradingcodex_service/application/decision_packages.py +684 -0
  154. tradingcodex-1.0.1/tradingcodex_service/application/evaluation_lab.py +910 -0
  155. tradingcodex-1.0.1/tradingcodex_service/application/execution_gateway.py +1097 -0
  156. tradingcodex-1.0.1/tradingcodex_service/application/forecasting.py +1087 -0
  157. tradingcodex-1.0.1/tradingcodex_service/application/git_subprocess.py +59 -0
  158. tradingcodex-1.0.1/tradingcodex_service/application/harness.py +55 -0
  159. tradingcodex-1.0.1/tradingcodex_service/application/health.py +80 -0
  160. tradingcodex-1.0.1/tradingcodex_service/application/investment_analysis.py +667 -0
  161. tradingcodex-1.0.1/tradingcodex_service/application/investment_brains.py +1806 -0
  162. tradingcodex-1.0.1/tradingcodex_service/application/investor_context.py +204 -0
  163. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_service/application/markdown_preview.py +14 -6
  164. tradingcodex-1.0.1/tradingcodex_service/application/operator_authority.py +365 -0
  165. tradingcodex-1.0.1/tradingcodex_service/application/orders.py +2294 -0
  166. tradingcodex-1.0.1/tradingcodex_service/application/policy.py +301 -0
  167. tradingcodex-1.0.1/tradingcodex_service/application/portfolio.py +427 -0
  168. tradingcodex-1.0.1/tradingcodex_service/application/postmortems.py +815 -0
  169. tradingcodex-1.0.1/tradingcodex_service/application/research.py +1614 -0
  170. tradingcodex-1.0.1/tradingcodex_service/application/research_specs.py +650 -0
  171. tradingcodex-1.0.1/tradingcodex_service/application/runtime.py +823 -0
  172. tradingcodex-1.0.1/tradingcodex_service/application/runtime_mode.py +87 -0
  173. tradingcodex-1.0.1/tradingcodex_service/application/source_snapshots.py +175 -0
  174. tradingcodex-1.0.1/tradingcodex_service/application/viewer.py +221 -0
  175. tradingcodex-1.0.1/tradingcodex_service/application/workspace_git.py +253 -0
  176. tradingcodex-1.0.1/tradingcodex_service/application/workspaces.py +141 -0
  177. tradingcodex-1.0.1/tradingcodex_service/log_safety.py +35 -0
  178. tradingcodex-1.0.1/tradingcodex_service/mcp_runtime.py +2666 -0
  179. tradingcodex-1.0.1/tradingcodex_service/runtime_profile.py +144 -0
  180. tradingcodex-1.0.1/tradingcodex_service/settings.py +135 -0
  181. tradingcodex-1.0.1/tradingcodex_service/static/tradingcodex_web/assets/index-CFoXYUtq.js +9 -0
  182. tradingcodex-1.0.1/tradingcodex_service/static/tradingcodex_web/assets/index-DYzj_xRR.css +1 -0
  183. tradingcodex-1.0.1/tradingcodex_service/static/tradingcodex_web/index.html +15 -0
  184. tradingcodex-1.0.1/tradingcodex_service/urls.py +18 -0
  185. tradingcodex-1.0.1/tradingcodex_service/version.py +1 -0
  186. tradingcodex-1.0.1/tradingcodex_service/viewer_api.py +68 -0
  187. tradingcodex-1.0.1/tradingcodex_service/web.py +23 -0
  188. tradingcodex-1.0.1/workspace_templates/modules/codex-base/files/.codex/config.toml +333 -0
  189. tradingcodex-1.0.1/workspace_templates/modules/codex-base/files/.codex/hooks/tradingcodex_hook.py +2208 -0
  190. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/codex-base/files/.codex/hooks.json +15 -15
  191. tradingcodex-1.0.1/workspace_templates/modules/codex-base/files/.codex/prompts/base_instructions/head-manager.md +421 -0
  192. tradingcodex-1.0.1/workspace_templates/modules/codex-base/files/.codex/rules/tradingcodex.rules +155 -0
  193. tradingcodex-1.0.1/workspace_templates/modules/codex-base/files/.tradingcodex/cli.py +224 -0
  194. tradingcodex-1.0.1/workspace_templates/modules/codex-base/files/.tradingcodex/config.yaml +22 -0
  195. tradingcodex-1.0.1/workspace_templates/modules/codex-base/files/AGENTS.md +106 -0
  196. tradingcodex-1.0.1/workspace_templates/modules/codex-base/files/tcx +39 -0
  197. tradingcodex-1.0.1/workspace_templates/modules/codex-base/files/tcx.cmd +59 -0
  198. tradingcodex-1.0.1/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/policies/restricted-list.yaml +2 -0
  199. tradingcodex-1.0.1/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/approval_receipt.schema.json +45 -0
  200. tradingcodex-1.0.1/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/audit_event.schema.json +21 -0
  201. tradingcodex-1.0.1/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/execution_result.schema.json +17 -0
  202. tradingcodex-1.0.1/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/order_ticket.schema.json +56 -0
  203. tradingcodex-1.0.1/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/postmortem_report.schema.json +135 -0
  204. tradingcodex-1.0.1/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/research_artifact.schema.json +314 -0
  205. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/enforcement-guardrails/module.json +1 -1
  206. tradingcodex-1.0.1/workspace_templates/modules/fixed-subagents/files/.codex/agents/fundamental-analyst.toml +66 -0
  207. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/fixed-subagents/files/.codex/agents/instrument-analyst.toml +22 -12
  208. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/fixed-subagents/files/.codex/agents/judgment-reviewer.toml +20 -12
  209. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/fixed-subagents/files/.codex/agents/macro-analyst.toml +22 -12
  210. tradingcodex-1.0.1/workspace_templates/modules/fixed-subagents/files/.codex/agents/news-analyst.toml +67 -0
  211. tradingcodex-1.0.1/workspace_templates/modules/fixed-subagents/files/.codex/agents/portfolio-manager.toml +63 -0
  212. tradingcodex-1.0.1/workspace_templates/modules/fixed-subagents/files/.codex/agents/risk-manager.toml +63 -0
  213. tradingcodex-1.0.1/workspace_templates/modules/fixed-subagents/files/.codex/agents/technical-analyst.toml +67 -0
  214. tradingcodex-1.0.1/workspace_templates/modules/fixed-subagents/files/.codex/agents/valuation-analyst.toml +67 -0
  215. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/fixed-subagents/module.json +1 -2
  216. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/guidance-guardrails/files/.tradingcodex/guidance/task-quality-checklist.md +1 -1
  217. tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/.tradingcodex/secrets.md +13 -0
  218. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/information-barriers/module.json +1 -1
  219. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/paper-trading/module.json +1 -2
  220. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-automate/SKILL.md +221 -0
  221. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-automate/agents/openai.yaml +6 -0
  222. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-brain/SKILL.md +148 -0
  223. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-brain/agents/openai.yaml +6 -0
  224. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-brain/references/bundle-contract.md +117 -0
  225. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-build/SKILL.md +94 -0
  226. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-build/agents/openai.yaml +6 -0
  227. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-dashboard/SKILL.md +83 -0
  228. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-dashboard/agents/openai.yaml +6 -0
  229. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-investor-context/SKILL.md +92 -0
  230. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-investor-context/agents/openai.yaml +6 -0
  231. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-memory/SKILL.md +123 -0
  232. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-memory/agents/openai.yaml +6 -0
  233. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-order-allow/SKILL.md +57 -0
  234. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-order-allow/agents/openai.yaml +6 -0
  235. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-order-cancel/SKILL.md +35 -0
  236. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-order-cancel/agents/openai.yaml +6 -0
  237. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-order-submit/SKILL.md +34 -0
  238. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-order-submit/agents/openai.yaml +6 -0
  239. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-plan/SKILL.md +86 -0
  240. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-plan/agents/openai.yaml +6 -0
  241. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-server/SKILL.md +71 -0
  242. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-server/agents/openai.yaml +1 -1
  243. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-strategy/SKILL.md +196 -0
  244. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-strategy/agents/openai.yaml +6 -0
  245. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/SKILL.md +132 -0
  246. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/agents/openai.yaml +6 -0
  247. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/references/context-and-override.md +90 -0
  248. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/references/decision-quality-spine.md +58 -0
  249. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/fundamental-analysis → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/tcx-fundamental}/SKILL.md +9 -1
  250. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/tcx-fundamental/agents/openai.yaml +6 -0
  251. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/instrument-analysis → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/tcx-instrument}/SKILL.md +1 -1
  252. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/tcx-instrument/agents/openai.yaml +6 -0
  253. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/judgment-reviewer/agent-judgment-review → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/judgment-reviewer/tcx-judgment}/SKILL.md +1 -1
  254. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/judgment-reviewer/tcx-judgment/agents/openai.yaml +6 -0
  255. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/macro-analysis → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/tcx-macro}/SKILL.md +4 -1
  256. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/tcx-macro/agents/openai.yaml +6 -0
  257. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/news-analysis → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/tcx-news}/SKILL.md +1 -1
  258. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/tcx-news/agents/openai.yaml +6 -0
  259. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/create-order-ticket → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/tcx-order-draft}/SKILL.md +3 -3
  260. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/tcx-order-draft/agents/openai.yaml +6 -0
  261. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/portfolio-review → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/tcx-portfolio}/SKILL.md +3 -2
  262. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/tcx-portfolio/agents/openai.yaml +6 -0
  263. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/approve-order → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/tcx-order-approve}/SKILL.md +1 -1
  264. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/tcx-order-approve/agents/openai.yaml +6 -0
  265. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/policy-review → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/tcx-policy}/SKILL.md +2 -2
  266. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/tcx-policy/agents/openai.yaml +6 -0
  267. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/review-risk → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/tcx-risk}/SKILL.md +3 -2
  268. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/tcx-risk/agents/openai.yaml +6 -0
  269. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-anti-overfit/SKILL.md +63 -0
  270. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-anti-overfit/agents/openai.yaml +6 -0
  271. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-artifact/SKILL.md +64 -0
  272. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-artifact/agents/openai.yaml +6 -0
  273. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/numeric-data-qc → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-data-qc}/SKILL.md +1 -1
  274. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-data-qc/agents/openai.yaml +6 -0
  275. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/collect-evidence → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-evidence}/SKILL.md +17 -1
  276. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-evidence/agents/openai.yaml +6 -0
  277. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/forecasting-discipline → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-forecast}/SKILL.md +8 -4
  278. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-forecast/agents/openai.yaml +6 -0
  279. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/thesis-scenario-tree → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-scenarios}/SKILL.md +1 -1
  280. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-scenarios/agents/openai.yaml +6 -0
  281. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/external-data-source-gate → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-source-gate}/SKILL.md +38 -3
  282. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-source-gate/agents/openai.yaml +6 -0
  283. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/technical-analysis → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/tcx-technical}/SKILL.md +1 -1
  284. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/tcx-technical/agents/openai.yaml +6 -0
  285. {tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/valuation-review → tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/tcx-valuation}/SKILL.md +1 -1
  286. tradingcodex-1.0.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/tcx-valuation/agents/openai.yaml +6 -0
  287. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/repo-skills/module.json +8 -2
  288. tradingcodex-1.0.1/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/gateway/README.md +12 -0
  289. tradingcodex-1.0.1/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/server.py +22 -0
  290. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/tradingcodex-mcp/module.json +5 -3
  291. tradingcodex-0.3.6/PKG-INFO +0 -298
  292. tradingcodex-0.3.6/README.md +0 -267
  293. tradingcodex-0.3.6/apps/audit/admin.py +0 -6
  294. tradingcodex-0.3.6/apps/harness/admin.py +0 -6
  295. tradingcodex-0.3.6/apps/harness/migrations/0001_initial.py +0 -35
  296. tradingcodex-0.3.6/apps/harness/models.py +0 -22
  297. tradingcodex-0.3.6/apps/integrations/admin.py +0 -6
  298. tradingcodex-0.3.6/apps/integrations/migrations/0001_initial.py +0 -29
  299. tradingcodex-0.3.6/apps/mcp/admin.py +0 -22
  300. tradingcodex-0.3.6/apps/mcp/migrations/0002_mcpexternalpermissionrequest.py +0 -51
  301. tradingcodex-0.3.6/apps/orders/admin.py +0 -14
  302. tradingcodex-0.3.6/apps/orders/migrations/0001_initial.py +0 -79
  303. tradingcodex-0.3.6/apps/orders/migrations/0002_approvalreceipt_approved_order_type_and_more.py +0 -184
  304. tradingcodex-0.3.6/apps/orders/migrations/0003_migrate_orderintent_to_orderticket.py +0 -122
  305. tradingcodex-0.3.6/apps/orders/migrations/0004_remove_order_intent_compat_fields.py +0 -60
  306. tradingcodex-0.3.6/apps/orders/services.py +0 -107
  307. tradingcodex-0.3.6/apps/portfolio/migrations/0001_initial.py +0 -67
  308. tradingcodex-0.3.6/apps/workflows/admin.py +0 -6
  309. tradingcodex-0.3.6/apps/workflows/apps.py +0 -8
  310. tradingcodex-0.3.6/apps/workflows/migrations/0001_initial.py +0 -51
  311. tradingcodex-0.3.6/apps/workflows/migrations/__init__.py +0 -0
  312. tradingcodex-0.3.6/apps/workflows/models.py +0 -44
  313. tradingcodex-0.3.6/docs/artifact-supervisor-loop-prd.md +0 -556
  314. tradingcodex-0.3.6/docs/components.md +0 -77
  315. tradingcodex-0.3.6/docs/deployment.md +0 -277
  316. tradingcodex-0.3.6/docs/generated-workspaces.md +0 -553
  317. tradingcodex-0.3.6/docs/harness.md +0 -162
  318. tradingcodex-0.3.6/docs/interfaces-and-surfaces.md +0 -420
  319. tradingcodex-0.3.6/docs/product-direction.md +0 -132
  320. tradingcodex-0.3.6/docs/research-memory-and-artifacts.md +0 -272
  321. tradingcodex-0.3.6/docs/roles-skills-and-workflows.md +0 -485
  322. tradingcodex-0.3.6/docs/safety-policy-and-execution.md +0 -270
  323. tradingcodex-0.3.6/docs/system-architecture.md +0 -275
  324. tradingcodex-0.3.6/docs/user-facing-skills.md +0 -55
  325. tradingcodex-0.3.6/docs/validation-and-test-plan.md +0 -324
  326. tradingcodex-0.3.6/install.sh +0 -195
  327. tradingcodex-0.3.6/installation.md +0 -147
  328. tradingcodex-0.3.6/tests/test_broker_center_prd.py +0 -790
  329. tradingcodex-0.3.6/tests/test_python_migration.py +0 -5743
  330. tradingcodex-0.3.6/tradingcodex.egg-info/PKG-INFO +0 -298
  331. tradingcodex-0.3.6/tradingcodex_cli/__main__.py +0 -131
  332. tradingcodex-0.3.6/tradingcodex_cli/commands/bootstrap.py +0 -228
  333. tradingcodex-0.3.6/tradingcodex_cli/commands/connectors.py +0 -99
  334. tradingcodex-0.3.6/tradingcodex_cli/commands/decision.py +0 -31
  335. tradingcodex-0.3.6/tradingcodex_cli/commands/doctor.py +0 -309
  336. tradingcodex-0.3.6/tradingcodex_cli/commands/mcp.py +0 -324
  337. tradingcodex-0.3.6/tradingcodex_cli/commands/mode.py +0 -39
  338. tradingcodex-0.3.6/tradingcodex_cli/commands/orders.py +0 -108
  339. tradingcodex-0.3.6/tradingcodex_cli/commands/subagents.py +0 -265
  340. tradingcodex-0.3.6/tradingcodex_cli/commands/workflow.py +0 -97
  341. tradingcodex-0.3.6/tradingcodex_cli/generator.py +0 -239
  342. tradingcodex-0.3.6/tradingcodex_cli/service_autostart.py +0 -263
  343. tradingcodex-0.3.6/tradingcodex_service/api.py +0 -655
  344. tradingcodex-0.3.6/tradingcodex_service/application/audit.py +0 -71
  345. tradingcodex-0.3.6/tradingcodex_service/application/common.py +0 -148
  346. tradingcodex-0.3.6/tradingcodex_service/application/context_budget.py +0 -333
  347. tradingcodex-0.3.6/tradingcodex_service/application/decision_packages.py +0 -353
  348. tradingcodex-0.3.6/tradingcodex_service/application/harness.py +0 -1943
  349. tradingcodex-0.3.6/tradingcodex_service/application/orders.py +0 -1432
  350. tradingcodex-0.3.6/tradingcodex_service/application/policy.py +0 -251
  351. tradingcodex-0.3.6/tradingcodex_service/application/portfolio.py +0 -195
  352. tradingcodex-0.3.6/tradingcodex_service/application/research.py +0 -548
  353. tradingcodex-0.3.6/tradingcodex_service/application/runtime.py +0 -370
  354. tradingcodex-0.3.6/tradingcodex_service/application/runtime_mode.py +0 -107
  355. tradingcodex-0.3.6/tradingcodex_service/application/workflow_planner.py +0 -413
  356. tradingcodex-0.3.6/tradingcodex_service/application/workflow_routing.py +0 -1333
  357. tradingcodex-0.3.6/tradingcodex_service/mcp_runtime.py +0 -1153
  358. tradingcodex-0.3.6/tradingcodex_service/settings.py +0 -91
  359. tradingcodex-0.3.6/tradingcodex_service/static/tradingcodex_web/app.css +0 -4594
  360. tradingcodex-0.3.6/tradingcodex_service/static/tradingcodex_web/app.js +0 -190
  361. tradingcodex-0.3.6/tradingcodex_service/static/vendor/htmx/htmx.min.js +0 -1
  362. tradingcodex-0.3.6/tradingcodex_service/templates/web/activity.html +0 -24
  363. tradingcodex-0.3.6/tradingcodex_service/templates/web/agent_skills.html +0 -111
  364. tradingcodex-0.3.6/tradingcodex_service/templates/web/agents.html +0 -127
  365. tradingcodex-0.3.6/tradingcodex_service/templates/web/base.html +0 -108
  366. tradingcodex-0.3.6/tradingcodex_service/templates/web/brokers.html +0 -154
  367. tradingcodex-0.3.6/tradingcodex_service/templates/web/build_center.html +0 -196
  368. tradingcodex-0.3.6/tradingcodex_service/templates/web/dashboard.html +0 -109
  369. tradingcodex-0.3.6/tradingcodex_service/templates/web/decisions.html +0 -74
  370. tradingcodex-0.3.6/tradingcodex_service/templates/web/fragments/role_inspector.html +0 -81
  371. tradingcodex-0.3.6/tradingcodex_service/templates/web/fragments/starter_prompt.html +0 -301
  372. tradingcodex-0.3.6/tradingcodex_service/templates/web/fragments/topology_canvas.html +0 -75
  373. tradingcodex-0.3.6/tradingcodex_service/templates/web/fragments/workspace_card.html +0 -37
  374. tradingcodex-0.3.6/tradingcodex_service/templates/web/harness.html +0 -87
  375. tradingcodex-0.3.6/tradingcodex_service/templates/web/mcp_router.html +0 -266
  376. tradingcodex-0.3.6/tradingcodex_service/templates/web/orders.html +0 -124
  377. tradingcodex-0.3.6/tradingcodex_service/templates/web/policy.html +0 -81
  378. tradingcodex-0.3.6/tradingcodex_service/templates/web/portfolio.html +0 -99
  379. tradingcodex-0.3.6/tradingcodex_service/templates/web/research.html +0 -134
  380. tradingcodex-0.3.6/tradingcodex_service/templates/web/starter_prompt.html +0 -51
  381. tradingcodex-0.3.6/tradingcodex_service/templates/web/strategies.html +0 -79
  382. tradingcodex-0.3.6/tradingcodex_service/urls.py +0 -56
  383. tradingcodex-0.3.6/tradingcodex_service/version.py +0 -1
  384. tradingcodex-0.3.6/tradingcodex_service/web.py +0 -1425
  385. tradingcodex-0.3.6/workspace_templates/__init__.py +0 -1
  386. tradingcodex-0.3.6/workspace_templates/modules/codex-base/files/.codex/config.toml +0 -364
  387. tradingcodex-0.3.6/workspace_templates/modules/codex-base/files/.codex/hooks/tradingcodex_hook.py +0 -383
  388. tradingcodex-0.3.6/workspace_templates/modules/codex-base/files/.codex/prompts/base_instructions/head-manager.md +0 -191
  389. tradingcodex-0.3.6/workspace_templates/modules/codex-base/files/.codex/rules/tradingcodex.rules +0 -50
  390. tradingcodex-0.3.6/workspace_templates/modules/codex-base/files/.tradingcodex/capabilities.yaml +0 -71
  391. tradingcodex-0.3.6/workspace_templates/modules/codex-base/files/.tradingcodex/cli.py +0 -16
  392. tradingcodex-0.3.6/workspace_templates/modules/codex-base/files/.tradingcodex/config.yaml +0 -56
  393. tradingcodex-0.3.6/workspace_templates/modules/codex-base/files/.tradingcodex/policies/policy-bindings.yaml +0 -22
  394. tradingcodex-0.3.6/workspace_templates/modules/codex-base/files/.tradingcodex/policies/principals.yaml +0 -21
  395. tradingcodex-0.3.6/workspace_templates/modules/codex-base/files/.tradingcodex/policies/roles.yaml +0 -53
  396. tradingcodex-0.3.6/workspace_templates/modules/codex-base/files/AGENTS.md +0 -49
  397. tradingcodex-0.3.6/workspace_templates/modules/codex-base/files/tcx +0 -52
  398. tradingcodex-0.3.6/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/policies/access-policies.yaml +0 -40
  399. tradingcodex-0.3.6/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/policies/restricted-list.yaml +0 -6
  400. tradingcodex-0.3.6/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/approval_receipt.schema.json +0 -15
  401. tradingcodex-0.3.6/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/audit_event.schema.json +0 -11
  402. tradingcodex-0.3.6/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/execution_result.schema.json +0 -12
  403. tradingcodex-0.3.6/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/order_ticket.schema.json +0 -31
  404. tradingcodex-0.3.6/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/postmortem_report.schema.json +0 -27
  405. tradingcodex-0.3.6/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/research_artifact.schema.json +0 -147
  406. tradingcodex-0.3.6/workspace_templates/modules/fixed-subagents/files/.codex/agents/execution-operator.toml +0 -71
  407. tradingcodex-0.3.6/workspace_templates/modules/fixed-subagents/files/.codex/agents/fundamental-analyst.toml +0 -56
  408. tradingcodex-0.3.6/workspace_templates/modules/fixed-subagents/files/.codex/agents/news-analyst.toml +0 -57
  409. tradingcodex-0.3.6/workspace_templates/modules/fixed-subagents/files/.codex/agents/portfolio-manager.toml +0 -56
  410. tradingcodex-0.3.6/workspace_templates/modules/fixed-subagents/files/.codex/agents/risk-manager.toml +0 -55
  411. tradingcodex-0.3.6/workspace_templates/modules/fixed-subagents/files/.codex/agents/technical-analyst.toml +0 -57
  412. tradingcodex-0.3.6/workspace_templates/modules/fixed-subagents/files/.codex/agents/valuation-analyst.toml +0 -57
  413. tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/.tradingcodex/policies/information-barriers.yaml +0 -256
  414. tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/.tradingcodex/secrets.md +0 -9
  415. tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/reports/postmortem/.gitkeep +0 -1
  416. tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/reports/risk/.gitkeep +0 -1
  417. tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/reports/technical/.gitkeep +0 -1
  418. tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/reports/valuation/.gitkeep +0 -1
  419. tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/research/.gitkeep +0 -1
  420. tradingcodex-0.3.6/workspace_templates/modules/postmortem/files/.tradingcodex/workflows/postmortem.yaml +0 -12
  421. tradingcodex-0.3.6/workspace_templates/modules/postmortem/module.json +0 -16
  422. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/automate-workflow/SKILL.md +0 -69
  423. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/automate-workflow/agents/openai.yaml +0 -6
  424. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/plan-workflow/SKILL.md +0 -65
  425. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/plan-workflow/agents/openai.yaml +0 -6
  426. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/postmortem/SKILL.md +0 -37
  427. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/postmortem/agents/openai.yaml +0 -6
  428. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/strategy-creator/SKILL.md +0 -111
  429. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/strategy-creator/agents/openai.yaml +0 -6
  430. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-build/SKILL.md +0 -38
  431. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-build/agents/openai.yaml +0 -6
  432. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-server/SKILL.md +0 -23
  433. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/SKILL.md +0 -31
  434. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/agents/openai.yaml +0 -6
  435. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/references/decision-quality-spine.md +0 -31
  436. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/execution-operator/execute-paper-order/SKILL.md +0 -32
  437. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/execution-operator/execute-paper-order/agents/openai.yaml +0 -6
  438. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/fundamental-analysis/agents/openai.yaml +0 -6
  439. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/instrument-analysis/agents/openai.yaml +0 -6
  440. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/judgment-reviewer/agent-judgment-review/agents/openai.yaml +0 -6
  441. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/macro-analysis/agents/openai.yaml +0 -6
  442. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/news-analysis/agents/openai.yaml +0 -6
  443. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/create-order-ticket/agents/openai.yaml +0 -6
  444. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/portfolio-review/agents/openai.yaml +0 -6
  445. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/approve-order/agents/openai.yaml +0 -6
  446. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/policy-review/agents/openai.yaml +0 -6
  447. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/review-risk/agents/openai.yaml +0 -6
  448. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/anti-overfit-validation/SKILL.md +0 -32
  449. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/anti-overfit-validation/agents/openai.yaml +0 -6
  450. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/collect-evidence/agents/openai.yaml +0 -6
  451. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/external-data-source-gate/agents/openai.yaml +0 -6
  452. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/forecasting-discipline/agents/openai.yaml +0 -6
  453. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/numeric-data-qc/agents/openai.yaml +0 -6
  454. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/thesis-scenario-tree/agents/openai.yaml +0 -6
  455. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/technical-analysis/agents/openai.yaml +0 -6
  456. tradingcodex-0.3.6/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/valuation-review/agents/openai.yaml +0 -6
  457. tradingcodex-0.3.6/workspace_templates/modules/stub-execution/module.json +0 -15
  458. tradingcodex-0.3.6/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/gateway/README.md +0 -8
  459. tradingcodex-0.3.6/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/server.py +0 -27
  460. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/CONTRIBUTING.md +0 -0
  461. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/LICENSE +0 -0
  462. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/NOTICE +0 -0
  463. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/TRADEMARKS.md +0 -0
  464. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/__init__.py +0 -0
  465. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/audit/__init__.py +0 -0
  466. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/audit/apps.py +0 -0
  467. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/audit/migrations/__init__.py +0 -0
  468. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/harness/__init__.py +0 -0
  469. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/harness/apps.py +0 -0
  470. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/harness/migrations/__init__.py +0 -0
  471. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/harness/templatetags/__init__.py +0 -0
  472. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/integrations/__init__.py +0 -0
  473. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/integrations/apps.py +0 -0
  474. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/integrations/migrations/__init__.py +0 -0
  475. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/mcp/__init__.py +0 -0
  476. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/mcp/apps.py +0 -0
  477. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/mcp/migrations/__init__.py +0 -0
  478. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/mcp/models.py +0 -0
  479. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/orders/__init__.py +0 -0
  480. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/orders/apps.py +0 -0
  481. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/orders/migrations/__init__.py +0 -0
  482. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/policy/__init__.py +0 -0
  483. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/policy/admin.py +0 -0
  484. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/policy/apps.py +0 -0
  485. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/policy/migrations/__init__.py +0 -0
  486. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/policy/models.py +0 -0
  487. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/portfolio/__init__.py +0 -0
  488. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/portfolio/apps.py +0 -0
  489. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/apps/portfolio/migrations/__init__.py +0 -0
  490. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/assets/tradingcodex-banner.svg +0 -0
  491. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/setup.cfg +0 -0
  492. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex.egg-info/dependency_links.txt +0 -0
  493. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex.egg-info/entry_points.txt +0 -0
  494. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex.egg-info/top_level.txt +0 -0
  495. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/__init__.py +0 -0
  496. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/commands/__init__.py +0 -0
  497. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/commands/strategies.py +0 -0
  498. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_cli/mcp_stdio.py +0 -0
  499. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_service/__init__.py +0 -0
  500. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_service/admin.py +0 -0
  501. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_service/application/__init__.py +0 -0
  502. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_service/asgi.py +0 -0
  503. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_service/static/tradingcodex_admin/favicon.svg +0 -0
  504. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/tradingcodex_service/wsgi.py +0 -0
  505. {tradingcodex-0.3.6/apps/workflows → tradingcodex-1.0.1/workspace_templates}/__init__.py +0 -0
  506. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/audit/files/.tradingcodex/audit/README.md +0 -0
  507. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/audit/files/trading/audit/.gitkeep +0 -0
  508. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/audit/module.json +0 -0
  509. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/codex-base/files/pyproject.toml +0 -0
  510. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/codex-base/module.json +0 -0
  511. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/evidence_pack.schema.json +0 -0
  512. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/fundamental_report.schema.json +0 -0
  513. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/news_report.schema.json +0 -0
  514. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/portfolio_review.schema.json +0 -0
  515. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/risk_report.schema.json +0 -0
  516. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/technical_report.schema.json +0 -0
  517. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/thesis.schema.json +0 -0
  518. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/valuation.schema.json +0 -0
  519. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/fixed-subagents/files/.tradingcodex/mainagent/skill-change-proposals/.gitkeep +0 -0
  520. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/guidance-guardrails/files/.tradingcodex/guidance/guardrails.md +0 -0
  521. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/guidance-guardrails/module.json +0 -0
  522. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/approvals → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/forecasts}/.gitkeep +0 -0
  523. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/forecasts → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/market-data}/.gitkeep +0 -0
  524. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/market-data → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/portfolio}/.gitkeep +0 -0
  525. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/orders/approved → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/reports/fundamental}/.gitkeep +0 -0
  526. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/orders/draft → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/reports/instrument}/.gitkeep +0 -0
  527. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/orders/executed → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/reports/macro}/.gitkeep +0 -0
  528. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/orders/rejected → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/reports/news}/.gitkeep +0 -0
  529. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/portfolio → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/reports/policy}/.gitkeep +0 -0
  530. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/reports/fundamental → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/reports/portfolio}/.gitkeep +0 -0
  531. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/reports/instrument → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/reports/postmortem}/.gitkeep +0 -0
  532. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/reports/macro → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/reports/risk}/.gitkeep +0 -0
  533. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/reports/news → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/reports/technical}/.gitkeep +0 -0
  534. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/reports/policy → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/reports/valuation}/.gitkeep +0 -0
  535. {tradingcodex-0.3.6/workspace_templates/modules/information-barriers/files/trading/reports/portfolio → tradingcodex-1.0.1/workspace_templates/modules/information-barriers/files/trading/research}/.gitkeep +0 -0
  536. {tradingcodex-0.3.6 → tradingcodex-1.0.1}/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/enforcer/README.md +0 -0
@@ -0,0 +1,178 @@
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+ ## 1.0.1 - 2026-07-15
6
+
7
+ - Add the shared `tcx-artifact` skill to all nine producing fixed roles so
8
+ deferred MCP calls receive the exact research-artifact, thesis-lifecycle,
9
+ retry, and forecast persistence procedure.
10
+ - Expand `create_research_artifact` and `issue_forecast` MCP schemas to expose
11
+ state-specific lifecycle fields, one-range probability rules, RFC 3339
12
+ timestamps, and the complete base-rate contract before a call is attempted.
13
+ Artifact validation errors now name the supported alternative fields, and
14
+ MCP resource-template discovery returns an empty supported list. Omitted
15
+ forecast `issued_at` and revision `revised_at` values now reuse the same
16
+ service receipt timestamp as `recorded_at`, eliminating a microsecond race
17
+ that rejected otherwise valid agent calls.
18
+ - Require Codex CLI 0.144.4, the validated reference for generated permission
19
+ profiles, V2 fixed-role dispatch, hooks, and deferred TradingCodex MCP calls.
20
+ Older clients now fail the runtime doctor check with upgrade guidance.
21
+
22
+ ## 1.0.0 - 2026-07-15
23
+
24
+ - Raise the validated Codex CLI reference to 0.144.4 while retaining the
25
+ proven 0.144.1 compatibility floor, explicitly enable
26
+ MultiAgent V2, replace the incompatible V1 `agents.max_threads` setting with
27
+ the V2 session-wide thread ceiling, add CLI version diagnostics, and add a
28
+ strict config/feature/MCP maintainer preflight. Native lifecycle acceptance
29
+ now requires persisted project-hook trust, because the one-run hook-trust
30
+ bypass is not inherited when a V2 child reloads an exact role config.
31
+ - Add explicit development bootstrap shortcuts: source checkouts can run `tcx
32
+ attach/update --dev`, while the POSIX installer supports `--dev` and
33
+ `--dev --update` with the checkout bound as both package runner and declared
34
+ executable source. Generated workspaces continue to store only
35
+ `local-explicit`, never the private checkout path. Default development
36
+ bootstrap now isolates each checkout with its own runtime home, ledger, and
37
+ deterministic loopback service port; generated service commands honor that
38
+ address, and development update refuses to convert a release workspace in
39
+ place. Development commands import the live checkout through an editable
40
+ package-runner environment, while durable local runtimes are built from a
41
+ clean runtime-source snapshot that excludes stale build, distribution,
42
+ cache, bytecode, state, and database products.
43
+ - Remove the web Work execution runner, preview/start/follow-up APIs, and
44
+ workbench-only hook mode; replace the product web with a read-only
45
+ Library/Skills/System viewer whose left rail selects only registered,
46
+ validated attached workspaces. Optimize half-width desktop windows with a
47
+ compact workspace selector and full-width list-to-detail transitions, keep
48
+ long status labels inside every supported viewport, move keyboard focus into
49
+ narrow Library/Skills details and back to their indexes, and restore
50
+ main-content focus after workspace switching.
51
+ - Harden native workspace startup by keeping hook stdin/stdout in the launcher
52
+ process, using direct proxy-free loopback readiness checks with a native-host
53
+ response allowance, rejecting macOS ephemeral-port self-connections, and
54
+ retaining redacted detached-startup diagnostics while terminating timed-out
55
+ children instead of leaving orphans. Remove reverse-DNS lookup from the local
56
+ Django bind path, and validate these paths from the same clean wheel on macOS
57
+ and Windows.
58
+
59
+ - Make `tcx doctor` concise by default: run only the selected layer plus global
60
+ service preflight, summarize layer totals, expand warnings and failures, and
61
+ retain full per-check evidence behind `--verbose`.
62
+ - Strengthen point-in-time research guidance for filing/accession identity and
63
+ first-release or vintage macro data. Record all tried variants, effective
64
+ trial counts, frozen selection rules, and single-use holdout posture, while
65
+ keeping PBO, reality-check, and deflated-Sharpe diagnostics conditional on
66
+ supported assumptions and inputs.
67
+ - Let exact fixed-role children read only their projected role-owned/shared
68
+ skill documents and Markdown references, including the read-only batched
69
+ `cat` form Codex naturally emits. Redirects, pipelines, substitutions,
70
+ executable compounds, other-role skills, configs, generated indexes, and
71
+ runtime state remain fail-closed.
72
+
73
+ - Move all 31 bundled skills into the reserved compact `tcx-` namespace, with
74
+ one suffix word preferred and two allowed only for clarity. User-owned
75
+ `strategy-*`, `investment-brain-*`, and optional role skill namespaces stay
76
+ separate, and unchanged retired generated files migrate on `tcx update`.
77
+ - Remove the `execution-operator` fixed role and retired
78
+ `execute-paper-order` skill from generated workspaces.
79
+ - Add explicit-only root-native `tcx-order-submit` and
80
+ `tcx-order-cancel` action bundles. Their exact full-prompt grammar is
81
+ parsed by `UserPromptSubmit` and dispatched in-process to the canonical
82
+ service gateway as a workspace-bound `native-user` mandate before any model
83
+ runs.
84
+ - Expand `tcx-automate` into the authoring path for all Codex app
85
+ Scheduled Tasks, including simple research, monitoring, recurring analysis,
86
+ portfolio/status review, draft orders, assisted execution, and optional
87
+ turn-authorized execution. Saved prompts run on every scheduled turn and
88
+ invoke the actual work skill rather than `tcx-automate` recursively.
89
+ - Retire persistent Build mode. Only an exact root first line `$tcx-build`
90
+ creates a current-turn, workspace/session/turn-bound Build grant; Plan mode
91
+ is rejected and the marker never elevates Codex's native permission profile.
92
+ Generated workspaces default to `trading-research`, which permits general
93
+ shell/Python, credential-free public retrieval, and user-owned file changes
94
+ outside `trading/` while denying runtime/DB, credentials, protected control
95
+ files, local/private network targets, and direct durable TradingCodex writes.
96
+ Explicit `trading-build` turns open controlled `trading/` connector work with
97
+ network and sensitive state still denied; hook-owned proofs continue to gate
98
+ trusted lifecycle and canonical connector DB changes.
99
+ - Give Strategy and Investment Brain management their own exact root markers,
100
+ `$tcx-strategy` and `$tcx-brain`, in the normal `trading-research` profile.
101
+ Their DB-canonical current-turn grants are capability-scoped and cannot cross
102
+ into Build, one another, Plan mode, subagents, orders, credentials, global
103
+ config, or publication. Codex-native source authoring and ordinary workspace
104
+ computation stay in the normal permission profile, while registry and
105
+ projection lifecycle uses the proof-protected `manage_strategy` and
106
+ `manage_investment_brain` MCP tools. Research no longer exposes the generated
107
+ CLI or attached runtime for those actions, and model-side lifecycle launcher
108
+ calls now return a precise MCP/user-terminal handoff. Reversible source and
109
+ draft creation no longer asks for redundant confirmation; activation and
110
+ destructive lifecycle actions remain explicit. General server, Investor Context, and
111
+ unsupported Decision Memory lifecycle commands now return explicit
112
+ user-terminal handoffs instead of attempting a blocked model shell.
113
+ - Replace agent-side connector `connect`/write-style scaffold MCP operations
114
+ with read-only, content-addressed scaffold rendering plus native patching.
115
+ External MCP lifecycle/consent and provider-source approval remain
116
+ interactive operator actions protected by one-use service capabilities.
117
+ - Add the explicit-only `tcx-order-allow` bundle and `OrderTurnGrant`: only a
118
+ physical first line `$tcx-order-allow --mode paper|validation|live` can admit one
119
+ later submit or cancel in that root turn. Grants bind workspace, session,
120
+ turn, full prompt hash, and mode; expire after one hour; and are revoked on
121
+ `Stop`, the next turn, or consumption.
122
+ - Add Head Manager-only `use_order_turn_grant`. `PreToolUse` reserves the grant
123
+ and injects internal proof, so Workbench, subagents, direct MCP, REST, and CLI
124
+ callers gain no execution authority. The service still enforces canonical
125
+ ticket, receipt, policy, mode, live-confirmation, idempotency, adapter, audit,
126
+ reconciliation, and uncertainty gates; free-form prompt scope is not claimed
127
+ as deterministic policy.
128
+ - Keep a consumed `authorizing` order effect immutable while its broker result
129
+ is in flight. Stop/new-turn cleanup never resets it, and the same session
130
+ blocks new Build/order-sensitive prompts until terminal while ordinary
131
+ research remains available.
132
+ - Increase the bundled core skill count from 29 to 31 without adding an
133
+ execution subagent.
134
+ - Remove final submit, cancel, and broker-status-refresh mutations from public
135
+ MCP, REST, generic CLI guidance, and Workbench while preserving the existing
136
+ policy, approval, live-confirmation, idempotency, adapter, audit,
137
+ reconciliation, and uncertain-result gates.
138
+ - Reduce the fixed subagent roster to nine and keep Workbench preview, start,
139
+ and follow-up strictly analysis-only by rejecting reserved native action
140
+ tokens before launch.
141
+ - Require the canonical TradingCodex MCP for Head Manager and every fixed role,
142
+ make Workbench apply an isolated canonical project-trust override, and fail
143
+ launch instead of silently continuing without service authority. Native
144
+ dispatch audit now records exact role/fork/task plus child-brief hash and
145
+ size, never the brief body.
146
+
147
+ - Establish the first supported TradingCodex public contract across the CLI,
148
+ Django service, MCP gateway, React workbench, and generated workspaces.
149
+ - Start from clean v1 workspace, runtime-home, database, migration, policy,
150
+ approval, audit, research, forecast, and execution boundaries.
151
+ - Make Codex Head Manager the dynamic research orchestrator, with no semantic
152
+ hook router, server-generated DAG, default analyst team, or Django workflow
153
+ state machine. MultiAgent V2 projects Sol/xhigh for Head Manager and
154
+ Terra/high for analytical roles, with Terra/low for execution.
155
+ - Add explicit, workspace-file-native Investment Brain plugins with strict
156
+ local/Git installation, immutable versions, Head Manager-only projection,
157
+ lazy sealed references, rollback, collision checks, and run provenance.
158
+ - Add the user-owned `tcx-brain` source and managed-plugin lifecycle entrypoint
159
+ while keeping Strategy, Investor Context, Decision Memory, current evidence,
160
+ and Core safety as distinct authority layers.
161
+ - Authenticate run-bound research artifacts and synthesis inputs with
162
+ service-issued receipts, external signing-key custody, source snapshots, and
163
+ exact Brain/Strategy/Context lineage.
164
+ - Validate accepted run-bound artifacts against the strict quality contract
165
+ before receipt or stable publication, expose structured follow-up and
166
+ improvement MCP schemas, and exclude non-accepted handoffs from synthesis.
167
+ - Enforce V2 spawn-field allowlists, source-snapshot knowledge cutoffs,
168
+ no-future artifact time bounds, and strict claim tagging for Head Manager
169
+ synthesis.
170
+ - Initialize generated workspaces as local Git worktrees without staging,
171
+ commits, remotes, or publication, and require the private runtime home to
172
+ remain outside the versionable workspace.
173
+ - Serve the committed React workbench through content-hashed deterministic
174
+ assets so package updates cannot leave a browser on a stale bundle.
175
+ - Ship manual, tag-bound PyPI publishing with one verified wheel and source
176
+ distribution reused across Ubuntu, macOS, Windows, and publication jobs.
177
+ - Support forward package, generated-workspace, and Django schema updates within
178
+ 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.1
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)