tradingcodex 0.2.9__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/PKG-INFO +72 -101
  2. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/README.md +70 -99
  3. tradingcodex-0.3.0/docs/README.md +97 -0
  4. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/artifact-supervisor-loop-prd.md +9 -4
  5. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/components.md +2 -2
  6. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/core-concepts-and-rules.md +1 -1
  7. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/deployment.md +17 -10
  8. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/financial-workflow-references.md +4 -4
  9. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/generated-workspaces.md +34 -19
  10. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/harness.md +13 -11
  11. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/improvement-loop.md +8 -2
  12. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/interfaces-and-surfaces.md +6 -4
  13. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/product-direction.md +1 -1
  14. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/research-memory-and-artifacts.md +9 -4
  15. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/roles-skills-and-workflows.md +47 -27
  16. tradingcodex-0.3.0/docs/user-facing-skills.md +49 -0
  17. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/validation-and-test-plan.md +13 -13
  18. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/pyproject.toml +2 -2
  19. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tests/test_e2e_user_scenarios.py +31 -45
  20. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tests/test_python_migration.py +572 -117
  21. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex.egg-info/PKG-INFO +72 -101
  22. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex.egg-info/SOURCES.txt +10 -2
  23. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/__main__.py +1 -1
  24. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/doctor.py +4 -4
  25. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/orders.py +17 -1
  26. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/subagents.py +3 -1
  27. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/utils.py +2 -0
  28. tradingcodex-0.3.0/tradingcodex_cli/commands/workflow.py +71 -0
  29. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/api.py +32 -4
  30. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/agents.py +46 -17
  31. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/artifact_quality.py +24 -10
  32. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/components.py +9 -9
  33. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/context_budget.py +39 -26
  34. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/decision_packages.py +105 -11
  35. tradingcodex-0.3.0/tradingcodex_service/application/harness.py +1634 -0
  36. tradingcodex-0.3.0/tradingcodex_service/application/workflow_planner.py +412 -0
  37. tradingcodex-0.3.0/tradingcodex_service/application/workflow_routing.py +1333 -0
  38. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/mcp_runtime.py +50 -59
  39. tradingcodex-0.3.0/tradingcodex_service/version.py +1 -0
  40. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/web.py +1 -1
  41. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/.codex/config.toml +44 -0
  42. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/.codex/hooks/tradingcodex_hook.py +48 -152
  43. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/.codex/prompts/base_instructions/head-manager.md +26 -13
  44. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/.tradingcodex/config.yaml +1 -1
  45. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/.tradingcodex/policies/roles.yaml +6 -0
  46. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/AGENTS.md +3 -3
  47. tradingcodex-0.3.0/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/postmortem_report.schema.json +27 -0
  48. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/fixed-subagents/files/.codex/agents/execution-operator.toml +0 -4
  49. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/fixed-subagents/files/.codex/agents/fundamental-analyst.toml +0 -8
  50. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/fixed-subagents/files/.codex/agents/instrument-analyst.toml +0 -8
  51. tradingcodex-0.3.0/workspace_templates/modules/fixed-subagents/files/.codex/agents/judgment-reviewer.toml +51 -0
  52. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/fixed-subagents/files/.codex/agents/macro-analyst.toml +0 -8
  53. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/fixed-subagents/files/.codex/agents/news-analyst.toml +0 -8
  54. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/fixed-subagents/files/.codex/agents/portfolio-manager.toml +0 -8
  55. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/fixed-subagents/files/.codex/agents/risk-manager.toml +0 -12
  56. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/fixed-subagents/files/.codex/agents/technical-analyst.toml +0 -8
  57. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/fixed-subagents/files/.codex/agents/valuation-analyst.toml +0 -4
  58. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/fixed-subagents/module.json +1 -0
  59. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/guidance-guardrails/files/.tradingcodex/guidance/task-quality-checklist.md +2 -2
  60. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/.tradingcodex/policies/information-barriers.yaml +53 -49
  61. tradingcodex-0.3.0/workspace_templates/modules/repo-skills/files/.agents/skills/automate-workflow/SKILL.md +69 -0
  62. tradingcodex-0.3.0/workspace_templates/modules/repo-skills/files/.agents/skills/automate-workflow/agents/openai.yaml +6 -0
  63. tradingcodex-0.3.0/workspace_templates/modules/repo-skills/files/.agents/skills/plan-workflow/SKILL.md +65 -0
  64. tradingcodex-0.3.0/workspace_templates/modules/repo-skills/files/.agents/skills/plan-workflow/agents/openai.yaml +6 -0
  65. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.agents/skills/postmortem/SKILL.md +5 -0
  66. tradingcodex-0.3.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/SKILL.md +31 -0
  67. tradingcodex-0.3.0/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/agents/openai.yaml +6 -0
  68. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/references/decision-quality-spine.md +5 -2
  69. tradingcodex-0.3.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/judgment-reviewer/agent-judgment-review/SKILL.md +62 -0
  70. tradingcodex-0.3.0/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/judgment-reviewer/agent-judgment-review/agents/openai.yaml +6 -0
  71. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/collect-evidence/SKILL.md +6 -0
  72. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/forecasting-discipline/SKILL.md +7 -0
  73. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/module.json +3 -0
  74. tradingcodex-0.2.9/docs/README.md +0 -66
  75. tradingcodex-0.2.9/tradingcodex_cli/commands/workflow.py +0 -23
  76. tradingcodex-0.2.9/tradingcodex_service/application/harness.py +0 -2596
  77. tradingcodex-0.2.9/tradingcodex_service/version.py +0 -1
  78. tradingcodex-0.2.9/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/postmortem_report.schema.json +0 -14
  79. tradingcodex-0.2.9/workspace_templates/modules/fixed-subagents/files/.tradingcodex/mainagent/head-manager.yaml +0 -66
  80. tradingcodex-0.2.9/workspace_templates/modules/fixed-subagents/files/.tradingcodex/mainagent/subagent-registry.yaml +0 -56
  81. tradingcodex-0.2.9/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/SKILL.md +0 -28
  82. tradingcodex-0.2.9/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/agents/openai.yaml +0 -6
  83. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/CONTRIBUTING.md +0 -0
  84. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/LICENSE +0 -0
  85. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/MANIFEST.in +0 -0
  86. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/NOTICE +0 -0
  87. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/TRADEMARKS.md +0 -0
  88. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/__init__.py +0 -0
  89. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/audit/__init__.py +0 -0
  90. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/audit/admin.py +0 -0
  91. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/audit/apps.py +0 -0
  92. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/audit/migrations/0001_initial.py +0 -0
  93. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/audit/migrations/__init__.py +0 -0
  94. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/audit/models.py +0 -0
  95. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/harness/__init__.py +0 -0
  96. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/harness/admin.py +0 -0
  97. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/harness/apps.py +0 -0
  98. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/harness/migrations/0001_initial.py +0 -0
  99. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/harness/migrations/__init__.py +0 -0
  100. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/harness/models.py +0 -0
  101. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/harness/templatetags/__init__.py +0 -0
  102. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/integrations/__init__.py +0 -0
  103. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/integrations/admin.py +0 -0
  104. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/integrations/apps.py +0 -0
  105. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/integrations/migrations/0001_initial.py +0 -0
  106. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/integrations/migrations/0002_brokerconnection_brokeraccount_instrumentmap.py +0 -0
  107. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/integrations/migrations/__init__.py +0 -0
  108. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/integrations/models.py +0 -0
  109. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/mcp/__init__.py +0 -0
  110. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/mcp/admin.py +0 -0
  111. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/mcp/apps.py +0 -0
  112. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/mcp/migrations/0001_initial.py +0 -0
  113. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/mcp/migrations/__init__.py +0 -0
  114. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/mcp/models.py +0 -0
  115. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/mcp/services.py +0 -0
  116. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/orders/__init__.py +0 -0
  117. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/orders/admin.py +0 -0
  118. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/orders/apps.py +0 -0
  119. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/orders/migrations/0001_initial.py +0 -0
  120. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/orders/migrations/0002_approvalreceipt_approved_order_type_and_more.py +0 -0
  121. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/orders/migrations/0003_migrate_orderintent_to_orderticket.py +0 -0
  122. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/orders/migrations/0004_remove_order_intent_compat_fields.py +0 -0
  123. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/orders/migrations/__init__.py +0 -0
  124. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/orders/models.py +0 -0
  125. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/orders/services.py +0 -0
  126. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/policy/__init__.py +0 -0
  127. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/policy/admin.py +0 -0
  128. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/policy/apps.py +0 -0
  129. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/policy/migrations/0001_initial.py +0 -0
  130. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/policy/migrations/__init__.py +0 -0
  131. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/policy/models.py +0 -0
  132. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/policy/services.py +0 -0
  133. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/portfolio/__init__.py +0 -0
  134. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/portfolio/admin.py +0 -0
  135. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/portfolio/apps.py +0 -0
  136. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/portfolio/migrations/0001_initial.py +0 -0
  137. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/portfolio/migrations/0002_brokersyncrun_portfolioledgerevent_reconciliationrun.py +0 -0
  138. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/portfolio/migrations/__init__.py +0 -0
  139. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/portfolio/models.py +0 -0
  140. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/workflows/__init__.py +0 -0
  141. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/workflows/admin.py +0 -0
  142. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/workflows/apps.py +0 -0
  143. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/workflows/migrations/0001_initial.py +0 -0
  144. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/workflows/migrations/__init__.py +0 -0
  145. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/apps/workflows/models.py +0 -0
  146. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/assets/tradingcodex-banner.svg +0 -0
  147. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/guardrails.md +0 -0
  148. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/licensing-and-commercialization.md +0 -0
  149. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/safety-policy-and-execution.md +0 -0
  150. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/docs/system-architecture.md +0 -0
  151. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/install.sh +0 -0
  152. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/installation.md +0 -0
  153. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/setup.cfg +0 -0
  154. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tests/test_broker_center_prd.py +0 -0
  155. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex.egg-info/dependency_links.txt +0 -0
  156. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex.egg-info/entry_points.txt +0 -0
  157. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex.egg-info/requires.txt +0 -0
  158. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex.egg-info/top_level.txt +0 -0
  159. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/__init__.py +0 -0
  160. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/__init__.py +0 -0
  161. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/bootstrap.py +0 -0
  162. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/connectors.py +0 -0
  163. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/db.py +0 -0
  164. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/decision.py +0 -0
  165. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/mcp.py +0 -0
  166. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/mode.py +0 -0
  167. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/policy.py +0 -0
  168. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/profile.py +0 -0
  169. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/research.py +0 -0
  170. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/skills.py +0 -0
  171. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/strategies.py +0 -0
  172. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/commands/workspaces.py +0 -0
  173. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/generator.py +0 -0
  174. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/mcp_stdio.py +0 -0
  175. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/service_autostart.py +0 -0
  176. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_cli/startup_status.py +0 -0
  177. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/__init__.py +0 -0
  178. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/admin.py +0 -0
  179. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/__init__.py +0 -0
  180. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/audit.py +0 -0
  181. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/brokers.py +0 -0
  182. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/common.py +0 -0
  183. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/markdown_preview.py +0 -0
  184. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/orders.py +0 -0
  185. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/policy.py +0 -0
  186. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/portfolio.py +0 -0
  187. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/research.py +0 -0
  188. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/runtime.py +0 -0
  189. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/application/runtime_mode.py +0 -0
  190. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/asgi.py +0 -0
  191. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/settings.py +0 -0
  192. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/static/tradingcodex_admin/favicon.svg +0 -0
  193. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/static/tradingcodex_web/app.css +0 -0
  194. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/static/tradingcodex_web/app.js +0 -0
  195. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/static/vendor/htmx/htmx.min.js +0 -0
  196. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/activity.html +0 -0
  197. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/agent_skills.html +0 -0
  198. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/agents.html +0 -0
  199. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/base.html +0 -0
  200. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/brokers.html +0 -0
  201. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/dashboard.html +0 -0
  202. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/decisions.html +0 -0
  203. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/fragments/role_inspector.html +0 -0
  204. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/fragments/starter_prompt.html +0 -0
  205. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/fragments/topology_canvas.html +0 -0
  206. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/fragments/workspace_card.html +0 -0
  207. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/harness.html +0 -0
  208. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/mcp_router.html +0 -0
  209. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/orders.html +0 -0
  210. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/policy.html +0 -0
  211. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/portfolio.html +0 -0
  212. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/research.html +0 -0
  213. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/starter_prompt.html +0 -0
  214. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/templates/web/strategies.html +0 -0
  215. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/urls.py +0 -0
  216. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/tradingcodex_service/wsgi.py +0 -0
  217. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/__init__.py +0 -0
  218. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/audit/files/.tradingcodex/audit/README.md +0 -0
  219. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/audit/files/trading/audit/.gitkeep +0 -0
  220. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/audit/module.json +0 -0
  221. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/.codex/hooks.json +0 -0
  222. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/.codex/rules/tradingcodex.rules +0 -0
  223. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/.tradingcodex/capabilities.yaml +0 -0
  224. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/.tradingcodex/cli.py +0 -0
  225. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/.tradingcodex/policies/policy-bindings.yaml +0 -0
  226. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/.tradingcodex/policies/principals.yaml +0 -0
  227. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/pyproject.toml +0 -0
  228. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/files/tcx +0 -0
  229. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/codex-base/module.json +0 -0
  230. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/policies/access-policies.yaml +0 -0
  231. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/policies/restricted-list.yaml +0 -0
  232. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/approval_receipt.schema.json +0 -0
  233. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/audit_event.schema.json +0 -0
  234. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/evidence_pack.schema.json +0 -0
  235. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/execution_result.schema.json +0 -0
  236. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/fundamental_report.schema.json +0 -0
  237. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/news_report.schema.json +0 -0
  238. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/order_ticket.schema.json +0 -0
  239. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/portfolio_review.schema.json +0 -0
  240. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/research_artifact.schema.json +0 -0
  241. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/risk_report.schema.json +0 -0
  242. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/technical_report.schema.json +0 -0
  243. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/thesis.schema.json +0 -0
  244. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/valuation.schema.json +0 -0
  245. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/enforcement-guardrails/module.json +0 -0
  246. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/fixed-subagents/files/.tradingcodex/mainagent/skill-change-proposals/.gitkeep +0 -0
  247. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/guidance-guardrails/files/.tradingcodex/guidance/guardrails.md +0 -0
  248. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/guidance-guardrails/module.json +0 -0
  249. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/.tradingcodex/secrets.md +0 -0
  250. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/approvals/.gitkeep +0 -0
  251. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/forecasts/.gitkeep +0 -0
  252. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/market-data/.gitkeep +0 -0
  253. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/orders/approved/.gitkeep +0 -0
  254. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/orders/draft/.gitkeep +0 -0
  255. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/orders/executed/.gitkeep +0 -0
  256. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/orders/rejected/.gitkeep +0 -0
  257. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/portfolio/.gitkeep +0 -0
  258. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/reports/fundamental/.gitkeep +0 -0
  259. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/reports/instrument/.gitkeep +0 -0
  260. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/reports/macro/.gitkeep +0 -0
  261. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/reports/news/.gitkeep +0 -0
  262. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/reports/policy/.gitkeep +0 -0
  263. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/reports/portfolio/.gitkeep +0 -0
  264. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/reports/postmortem/.gitkeep +0 -0
  265. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/reports/risk/.gitkeep +0 -0
  266. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/reports/technical/.gitkeep +0 -0
  267. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/reports/valuation/.gitkeep +0 -0
  268. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/files/trading/research/.gitkeep +0 -0
  269. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/information-barriers/module.json +0 -0
  270. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/paper-trading/module.json +0 -0
  271. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/postmortem/files/.tradingcodex/workflows/postmortem.yaml +0 -0
  272. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/postmortem/module.json +0 -0
  273. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.agents/skills/postmortem/agents/openai.yaml +0 -0
  274. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.agents/skills/strategy-creator/SKILL.md +0 -0
  275. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.agents/skills/strategy-creator/agents/openai.yaml +0 -0
  276. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-build/SKILL.md +0 -0
  277. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-build/agents/openai.yaml +0 -0
  278. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-server/SKILL.md +0 -0
  279. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-server/agents/openai.yaml +0 -0
  280. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/execution-operator/execute-paper-order/SKILL.md +0 -0
  281. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/execution-operator/execute-paper-order/agents/openai.yaml +0 -0
  282. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/fundamental-analysis/SKILL.md +0 -0
  283. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/fundamental-analysis/agents/openai.yaml +0 -0
  284. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/instrument-analysis/SKILL.md +0 -0
  285. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/instrument-analysis/agents/openai.yaml +0 -0
  286. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/macro-analysis/SKILL.md +0 -0
  287. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/macro-analysis/agents/openai.yaml +0 -0
  288. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/news-analysis/SKILL.md +0 -0
  289. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/news-analysis/agents/openai.yaml +0 -0
  290. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/create-order-ticket/SKILL.md +0 -0
  291. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/create-order-ticket/agents/openai.yaml +0 -0
  292. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/portfolio-review/SKILL.md +0 -0
  293. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/portfolio-review/agents/openai.yaml +0 -0
  294. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/approve-order/SKILL.md +0 -0
  295. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/approve-order/agents/openai.yaml +0 -0
  296. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/policy-review/SKILL.md +0 -0
  297. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/policy-review/agents/openai.yaml +0 -0
  298. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/review-risk/SKILL.md +0 -0
  299. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/review-risk/agents/openai.yaml +0 -0
  300. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/anti-overfit-validation/SKILL.md +0 -0
  301. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/anti-overfit-validation/agents/openai.yaml +0 -0
  302. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/collect-evidence/agents/openai.yaml +0 -0
  303. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/external-data-source-gate/SKILL.md +0 -0
  304. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/external-data-source-gate/agents/openai.yaml +0 -0
  305. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/forecasting-discipline/agents/openai.yaml +0 -0
  306. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/numeric-data-qc/SKILL.md +0 -0
  307. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/numeric-data-qc/agents/openai.yaml +0 -0
  308. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/thesis-scenario-tree/SKILL.md +0 -0
  309. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/thesis-scenario-tree/agents/openai.yaml +0 -0
  310. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/technical-analysis/SKILL.md +0 -0
  311. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/technical-analysis/agents/openai.yaml +0 -0
  312. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/valuation-review/SKILL.md +0 -0
  313. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/valuation-review/agents/openai.yaml +0 -0
  314. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/stub-execution/module.json +0 -0
  315. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/enforcer/README.md +0 -0
  316. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/gateway/README.md +0 -0
  317. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/server.py +0 -0
  318. {tradingcodex-0.2.9 → tradingcodex-0.3.0}/workspace_templates/modules/tradingcodex-mcp/module.json +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tradingcodex
3
- Version: 0.2.9
4
- Summary: Codex-native trading harness with a Django service plane and approved action boundary.
3
+ Version: 0.3.0
4
+ Summary: Agentic investment workflow harness for Codex-native research and service-gated execution checks.
5
5
  Author: TradingCodex Authors
6
6
  License-Expression: Apache-2.0
7
7
  Keywords: trading,django,codex,mcp,portfolio,research
@@ -55,14 +55,14 @@ Dynamic: license-file
55
55
  <a href="https://github.com/monarchjuno/tradingcodex/issues"><img alt="GitHub Issues" src="https://img.shields.io/github/issues/monarchjuno/tradingcodex"></a>
56
56
  </div>
57
57
 
58
- ### Codex-native investment work needs a harness, not a chat transcript.
58
+ ### Codex-native investment work needs an agentic harness, not a chat transcript.
59
59
 
60
- TradingCodex is a local-first Python/Django trading harness for rigorous
61
- Codex-assisted research, portfolio review, order-ticket checks, approvals, and
62
- service-gated execution checks. Codex coordinates the work, Django owns the
63
- durable service plane, and TradingCodex owns the executable boundary.
60
+ TradingCodex is an agentic investment workflow harness for Codex-native
61
+ research, thesis review, portfolio/risk handoffs, and service-gated execution
62
+ checks. Codex coordinates the work, specialist agents own bounded judgments,
63
+ and TradingCodex keeps execution behind explicit service gates.
64
64
 
65
- [Quick Start](#installation) | [Docs](docs/README.md) | [Safety](docs/safety-policy-and-execution.md) | [Architecture](docs/system-architecture.md) | [Contributing](CONTRIBUTING.md) | [License](LICENSE)
65
+ [Start Skills](#start-with-these-skills) | [Quick Start](#installation) | [Architecture](#architecture) | [Docs](docs/README.md) | [Safety](docs/safety-policy-and-execution.md) | [Contributing](CONTRIBUTING.md) | [License](LICENSE)
66
66
 
67
67
  <p align="center">
68
68
  <img src="assets/tradingcodex-banner.svg" alt="TradingCodex" width="100%">
@@ -72,10 +72,10 @@ durable service plane, and TradingCodex owns the executable boundary.
72
72
 
73
73
  ## About
74
74
 
75
- TradingCodex gives Codex a durable operating system for investment workflows:
76
- fixed specialist roles, file-native research memory, source-aware handoffs,
77
- policy and approval services, a central local ledger, and a local web dashboard
78
- for review.
75
+ TradingCodex gives Codex a durable operating system for agentic investment
76
+ workflows: fixed specialist roles, independent judgment review, source-aware
77
+ handoffs, thesis lifecycle memory, policy and approval services, and a local
78
+ review dashboard.
79
79
 
80
80
  It is not an autonomous trading bot. Natural-language answers do not become
81
81
  broker actions. The core ships paper execution by default; live broker support
@@ -83,28 +83,26 @@ comes only from installed, reviewed providers and explicit live gates.
83
83
 
84
84
  ---
85
85
 
86
- ## Features
86
+ ## Start With These Skills
87
87
 
88
- | Feature | Description |
89
- | --- | --- |
90
- | Codex-native harness | Generates a Codex workspace with `head-manager`, nine fixed subagents, role prompts, skills, hooks, project MCP config, and a local `./tcx` wrapper. |
91
- | Django service plane | Web, Admin, API, CLI, MCP, and generated hooks call shared application services for policy, orders, approvals, portfolio, audit, integrations, and research indexing. |
92
- | File-native research memory | Research markdown, role reports, source snapshots, versions, readiness labels, and handoff metadata stay readable in workspace files. |
93
- | Decision Workflow Alpha | Turn a natural-language investment idea into a Codex-native workflow plan and Decision Package under `trading/decisions/`. |
94
- | Fixed-role workflows | Specialist agents own bounded questions across fundamentals, technicals, news, macro, instruments, valuation, portfolio, risk, and execution. |
95
- | Approved action boundary | Actions are typed, role-scoped, policy-checked, approval-aware, duplicate-request checked, connection-gated, and audited. |
96
- | Local web dashboard | Review agents, skills, strategy skills, research markdown, Broker Center, Data Sources, order tickets, portfolio state, and activity at `127.0.0.1:48267`. |
97
- | Broker Center foundations | Connect provider-driven broker profiles, list installed providers, scaffold/register advanced connectors, inspect capability profiles, run account sync, review instrument constraints, and reconcile portfolio state. |
98
- | OrderTicket lifecycle | Draft, check, approve, submit, cancel, refresh, and inspect order tickets through central DB records and service-layer state transitions. |
99
- | Data Sources gate | Import external source discovery metadata, review available actions, scope role access, and block unsafe raw execution or secret paths by default. |
100
- | Improvement loop | Quality gates, postmortems, optional skills, strategy skills, strict artifact checks, and generated workspace smoke tests turn process gaps into durable improvements. |
88
+ TradingCodex is easiest to use by choosing the right user-facing entry skill:
89
+
90
+ | Start skill | Use when | Stops before |
91
+ | --- | --- | --- |
92
+ | `tcx-workflow` | Investment research, thesis review, Decision Packages, portfolio fit, risk review, or order-readiness workflow planning. | Substantive synthesis before accepted role artifacts; approval or execution without service gates. |
93
+ | `strategy-creator` | Turning user rules into reusable strategy skills, updating strategy criteria, activating, archiving, or inspecting strategy state. | Live ticker analysis, recommendation, order approval, execution, or policy changes. |
94
+ | `tcx-server` | Checking dashboard/service health, doctor output, update status, MCP readiness, DB path, or startup recovery. | Investment judgment, broker execution, raw secrets, or template edits. |
95
+ | `tcx-build` | Build-mode connector/provider work, broker/API scaffolding, capability profile wiring, credential-ref setup, and validation. | Raw secret handling, live order submission, or investment subagent dispatch. |
96
+
97
+ Most investment prompts enter through natural language, then the hook writes
98
+ compact intake and `head-manager` uses `tcx-workflow` to draft, validate, and
99
+ record the staged plan before dispatch. See
100
+ [User-facing skills](docs/user-facing-skills.md) for the detailed routing map.
101
101
 
102
102
  ---
103
103
 
104
104
  ## Installation
105
105
 
106
- ### Option 1 - Attach TradingCodex To The Current Workspace
107
-
108
106
  Run this from the empty workspace where you want Codex agents to work:
109
107
 
110
108
  ```bash
@@ -120,64 +118,9 @@ When TradingCodex MCP autostarts the local service, open:
120
118
  http://127.0.0.1:48267/
121
119
  ```
122
120
 
123
- ### Option 2 - Install The CLI For Repeated Use
124
-
125
- ```bash
126
- uv tool install tradingcodex
127
- uv tool update-shell
128
- cd /path/to/target-workspace
129
- tcx attach .
130
- ./tcx doctor
131
- ```
132
-
133
- ### Option 3 - Install From GitHub Main
134
-
135
- Use this when you need the current GitHub `main` source rather than the latest
136
- PyPI package:
137
-
138
- ```bash
139
- uvx --refresh --from "tradingcodex @ git+https://github.com/monarchjuno/tradingcodex.git@main" tcx attach . && ./tcx doctor
140
- ```
141
-
142
- ### Option 4 - Develop TradingCodex Source
143
-
144
- Clone this repository only for source development, inspection, or modification:
145
-
146
- ```bash
147
- git clone https://github.com/monarchjuno/tradingcodex.git
148
- cd tradingcodex
149
- python -m pytest
150
- python manage.py check
151
- ```
152
-
153
- See [installation.md](installation.md) for update flows, installer-script
154
- equivalents, MCP/service details, and smoke checks.
155
-
156
- ---
157
-
158
- ## What Sets TradingCodex Apart
159
-
160
- TradingCodex competes on workflow discipline, local durability, and execution
161
- boundaries rather than on black-box automation.
162
-
163
- - Local-first: PyPI installs the CLI, Django service plane, generated workspace
164
- templates, Admin/Web templates, static assets, and MCP gateway code.
165
- - Codex-readable by default: research artifacts, skill bundles, role prompts,
166
- policy exports, and generated indexes remain ordinary workspace files.
167
- - Service-layer canonical: Web, Admin, API, CLI, MCP, and hooks do not fork
168
- policy, order, approval, execution, portfolio, research, or audit behavior.
169
- - Strong role model: one `head-manager` coordinates nine fixed specialist
170
- subagents and consumes accepted artifacts instead of silently redoing roles.
171
- - Deterministic executable boundary: every executable path follows
172
- a fixed requester, permission, policy, payload, approval, duplicate-request,
173
- connection, and audit sequence.
174
- - Safety-first broker posture: paper is built in; live broker execution requires
175
- an installed provider plus workspace config, policy, environment opt-in,
176
- approval, confirmation, idempotency, sync, and audit gates.
177
- - Broker control plane: TradingCodex stores connector state, capability
178
- profiles, mapping review, approval, execution, reconciliation, and audit;
179
- provider adapters absorb broker-specific REST, SDK, MCP, or manual interface
180
- differences behind canonical service/MCP tools.
121
+ See [installation.md](installation.md) for persistent CLI install, GitHub-main
122
+ install, source-development setup, update flows, installer-script equivalents,
123
+ MCP/service details, and smoke checks.
181
124
 
182
125
  ---
183
126
 
@@ -209,25 +152,48 @@ workflow has earned. Weak, stale, missing, or out-of-scope upstream work returns
209
152
  | Market context | `macro-analyst` | Macro, rates, FX, commodities, liquidity, policy, and cross-asset transmission. |
210
153
  | Market context | `instrument-analyst` | ETF/index, options, crypto public market structure, credit-signal boundary, and instrument mechanics. |
211
154
  | Decision review | `valuation-analyst` | Valuation ranges, scenario assumptions, multiples, sensitivity, and decision-quality gaps. |
155
+ | Decision review | `judgment-reviewer` | Independent challenge review of accepted artifacts for contrary evidence, source trust, overconfidence, update triggers, and invalidation conditions. |
212
156
  | Portfolio | `portfolio-manager` | Portfolio fit, sizing, concentration, liquidity, opportunity cost, and draft order-ticket readiness. |
213
157
  | Risk | `risk-manager` | Downside, restricted-list checks, policy readiness, approval readiness, and approval receipts. |
214
158
  | Execution | `execution-operator` | Approved submission/cancel/status through the TradingCodex service boundary only; live requires all gates. |
215
159
 
216
160
  ---
217
161
 
218
- ## Surfaces
162
+ ## Key Features
219
163
 
220
- | Surface | Role |
164
+ | Feature | What it gives you |
221
165
  | --- | --- |
222
- | Product web | Agents-first review dashboard for roles, skills, research markdown, Broker Center, Data Sources, order tickets, portfolio state, and activity. |
223
- | Django Admin | Local/staff DB inspection for policy, orders, portfolio, MCP registry, workflows, integrations, and audit rows. |
224
- | Django Ninja API | Typed local/staff REST and control endpoints that call service-layer use cases. |
225
- | MCP | Agent/tool boundary with typed tools, role scopes, policy checks, approval checks, and audit. |
226
- | CLI | Local operator commands plus generated workspace `./tcx` wrapper behavior. |
166
+ | Agentic workflow planning | Natural-language prompts become staged plans, selected role teams, accepted artifacts, and explicit `waiting`, `revise`, or `blocked` states. |
167
+ | Independent judgment review | `judgment-reviewer` challenges accepted artifacts for contrary evidence, source trust, overconfidence, update triggers, and invalidation conditions. |
168
+ | Decision Packages | Investment theses keep forecastable claims, lifecycle assumptions, contrary evidence, owner roles, follow-up, and postmortem requirements. |
169
+ | Strategy skills | `strategy-creator` turns user rules into reusable strategy skills without granting order approval, execution, broker, or policy authority. |
170
+ | File-native research memory | Research markdown, role reports, source snapshots, readiness labels, versions, and handoff metadata remain ordinary workspace files. |
171
+ | Service-gated execution | Order tickets, approvals, policy checks, idempotency, broker connections, account sync, and audit stay behind Django service-layer gates. |
172
+ | Local review surfaces | Web, Admin, API, MCP, CLI, and generated hooks share the same service plane for review, status, research, Broker Center, orders, and portfolio state. |
227
173
 
228
- The baseline frontend uses Django templates, local static HTMX, and small plain
229
- JavaScript. There is no Node, bundler, React, or frontend build step in the core
230
- package.
174
+ ---
175
+
176
+ ## Architecture
177
+
178
+ ```mermaid
179
+ flowchart TD
180
+ U["User prompt"] --> H["Codex head-manager"]
181
+ H --> R["Fixed role agents"]
182
+ R --> A["Accepted artifacts"]
183
+ A --> J["judgment-reviewer"]
184
+ J --> D["Decision Package"]
185
+ D --> S["Django service plane"]
186
+ S --> G["Policy / approval / audit gates"]
187
+ G --> E["Paper execution or gated live provider"]
188
+ S --> W["Web / Admin / API / MCP / CLI"]
189
+ S --> M["File-native research memory"]
190
+ ```
191
+
192
+ The architecture is intentionally small: Codex owns coordination and role
193
+ handoffs; Django owns durable policy, order, approval, portfolio, integration,
194
+ research, and audit behavior. The core package uses Django templates, local
195
+ static HTMX, and small plain JavaScript. There is no Node, bundler, React, or
196
+ frontend build step.
231
197
 
232
198
  ---
233
199
 
@@ -257,20 +223,25 @@ provide investment recommendations or guarantee returns.
257
223
  | Status | Milestone |
258
224
  | --- | --- |
259
225
  | Shipped | Generated Codex workspace, fixed role roster, project MCP config, Django service plane, local web dashboard, Admin, Ninja API, file-native research memory, component registry, policy/audit primitives. |
260
- | Current `0.2.x` | Central-DB `OrderTicket` rewrite, provider-driven Broker Center foundations, Data Sources gate, role-scoped actions, live-gated execution lifecycle, and Python `>=3.11,<3.15` support. |
261
- | Next | Codex-native Decision Packages, deeper validation scenarios, richer provider capability profiles, stronger generated-workspace smoke coverage, and improved artifact quality tooling. |
226
+ | Current `0.3.0` | Codex-native Decision Packages, independent judgment-review gate, staged workflow planning, artifact-supervisor loop, provider capability profiles, and Python `>=3.11,<3.15` support. |
227
+ | Next | Deeper validation scenarios, richer provider capability profiles, stronger generated-workspace smoke coverage, and improved artifact quality tooling. |
262
228
  | Future | Separately governed verified adapters, hosted/managed services, enterprise policy/compliance packs, and broker-specific live providers only after explicit product, policy, adapter, and validation work. |
263
229
 
264
230
  ---
265
231
 
266
232
  ## Documentation
267
233
 
268
- | Document | Start here for |
234
+ `README.md` is the product overview. The `docs/` directory is the human-readable
235
+ source of truth for detailed product behavior, safety, architecture, workflow,
236
+ validation, and release policy.
237
+
238
+ | Start here | Use for |
269
239
  | --- | --- |
270
240
  | [Installation](installation.md) | Setup, update, GitHub-main install, MCP/service startup, and smoke checks. |
271
- | [Docs index](docs/README.md) | Source-of-truth reading order and document ownership. |
272
- | [Product direction](docs/product-direction.md) | Product thesis, target user posture, goals, non-goals, runtime defaults, and scope. |
241
+ | [Docs index](docs/README.md) | Human-readable reading paths, document ownership, and change-to-doc routing. |
242
+ | [User-facing skills](docs/user-facing-skills.md) | Which skill starts which user workflow and what each entrypoint must not do. |
273
243
  | [Core concepts and rules](docs/core-concepts-and-rules.md) | Fast operating reference for planes, guardrails, roles, execution lifecycle, and research memory. |
244
+ | [Product direction](docs/product-direction.md) | Product thesis, target user posture, goals, non-goals, runtime defaults, and scope. |
274
245
  | [Workspace orchestration model](docs/harness.md) | Top-level workflow model, components, guardrails, improvement, and naming rules. |
275
246
  | [Roles, skills, and workflows](docs/roles-skills-and-workflows.md) | Fixed role roster, no-overlap handoffs, dispatch gates, skills, and strategy behavior. |
276
247
  | [Safety policy and execution](docs/safety-policy-and-execution.md) | Permissions, approvals, idempotency, broker safety, secret wall, and required blocks. |
@@ -24,14 +24,14 @@
24
24
  <a href="https://github.com/monarchjuno/tradingcodex/issues"><img alt="GitHub Issues" src="https://img.shields.io/github/issues/monarchjuno/tradingcodex"></a>
25
25
  </div>
26
26
 
27
- ### Codex-native investment work needs a harness, not a chat transcript.
27
+ ### Codex-native investment work needs an agentic harness, not a chat transcript.
28
28
 
29
- TradingCodex is a local-first Python/Django trading harness for rigorous
30
- Codex-assisted research, portfolio review, order-ticket checks, approvals, and
31
- service-gated execution checks. Codex coordinates the work, Django owns the
32
- durable service plane, and TradingCodex owns the executable boundary.
29
+ TradingCodex is an agentic investment workflow harness for Codex-native
30
+ research, thesis review, portfolio/risk handoffs, and service-gated execution
31
+ checks. Codex coordinates the work, specialist agents own bounded judgments,
32
+ and TradingCodex keeps execution behind explicit service gates.
33
33
 
34
- [Quick Start](#installation) | [Docs](docs/README.md) | [Safety](docs/safety-policy-and-execution.md) | [Architecture](docs/system-architecture.md) | [Contributing](CONTRIBUTING.md) | [License](LICENSE)
34
+ [Start Skills](#start-with-these-skills) | [Quick Start](#installation) | [Architecture](#architecture) | [Docs](docs/README.md) | [Safety](docs/safety-policy-and-execution.md) | [Contributing](CONTRIBUTING.md) | [License](LICENSE)
35
35
 
36
36
  <p align="center">
37
37
  <img src="assets/tradingcodex-banner.svg" alt="TradingCodex" width="100%">
@@ -41,10 +41,10 @@ durable service plane, and TradingCodex owns the executable boundary.
41
41
 
42
42
  ## About
43
43
 
44
- TradingCodex gives Codex a durable operating system for investment workflows:
45
- fixed specialist roles, file-native research memory, source-aware handoffs,
46
- policy and approval services, a central local ledger, and a local web dashboard
47
- for review.
44
+ TradingCodex gives Codex a durable operating system for agentic investment
45
+ workflows: fixed specialist roles, independent judgment review, source-aware
46
+ handoffs, thesis lifecycle memory, policy and approval services, and a local
47
+ review dashboard.
48
48
 
49
49
  It is not an autonomous trading bot. Natural-language answers do not become
50
50
  broker actions. The core ships paper execution by default; live broker support
@@ -52,28 +52,26 @@ comes only from installed, reviewed providers and explicit live gates.
52
52
 
53
53
  ---
54
54
 
55
- ## Features
55
+ ## Start With These Skills
56
56
 
57
- | Feature | Description |
58
- | --- | --- |
59
- | Codex-native harness | Generates a Codex workspace with `head-manager`, nine fixed subagents, role prompts, skills, hooks, project MCP config, and a local `./tcx` wrapper. |
60
- | Django service plane | Web, Admin, API, CLI, MCP, and generated hooks call shared application services for policy, orders, approvals, portfolio, audit, integrations, and research indexing. |
61
- | File-native research memory | Research markdown, role reports, source snapshots, versions, readiness labels, and handoff metadata stay readable in workspace files. |
62
- | Decision Workflow Alpha | Turn a natural-language investment idea into a Codex-native workflow plan and Decision Package under `trading/decisions/`. |
63
- | Fixed-role workflows | Specialist agents own bounded questions across fundamentals, technicals, news, macro, instruments, valuation, portfolio, risk, and execution. |
64
- | Approved action boundary | Actions are typed, role-scoped, policy-checked, approval-aware, duplicate-request checked, connection-gated, and audited. |
65
- | Local web dashboard | Review agents, skills, strategy skills, research markdown, Broker Center, Data Sources, order tickets, portfolio state, and activity at `127.0.0.1:48267`. |
66
- | Broker Center foundations | Connect provider-driven broker profiles, list installed providers, scaffold/register advanced connectors, inspect capability profiles, run account sync, review instrument constraints, and reconcile portfolio state. |
67
- | OrderTicket lifecycle | Draft, check, approve, submit, cancel, refresh, and inspect order tickets through central DB records and service-layer state transitions. |
68
- | Data Sources gate | Import external source discovery metadata, review available actions, scope role access, and block unsafe raw execution or secret paths by default. |
69
- | Improvement loop | Quality gates, postmortems, optional skills, strategy skills, strict artifact checks, and generated workspace smoke tests turn process gaps into durable improvements. |
57
+ TradingCodex is easiest to use by choosing the right user-facing entry skill:
58
+
59
+ | Start skill | Use when | Stops before |
60
+ | --- | --- | --- |
61
+ | `tcx-workflow` | Investment research, thesis review, Decision Packages, portfolio fit, risk review, or order-readiness workflow planning. | Substantive synthesis before accepted role artifacts; approval or execution without service gates. |
62
+ | `strategy-creator` | Turning user rules into reusable strategy skills, updating strategy criteria, activating, archiving, or inspecting strategy state. | Live ticker analysis, recommendation, order approval, execution, or policy changes. |
63
+ | `tcx-server` | Checking dashboard/service health, doctor output, update status, MCP readiness, DB path, or startup recovery. | Investment judgment, broker execution, raw secrets, or template edits. |
64
+ | `tcx-build` | Build-mode connector/provider work, broker/API scaffolding, capability profile wiring, credential-ref setup, and validation. | Raw secret handling, live order submission, or investment subagent dispatch. |
65
+
66
+ Most investment prompts enter through natural language, then the hook writes
67
+ compact intake and `head-manager` uses `tcx-workflow` to draft, validate, and
68
+ record the staged plan before dispatch. See
69
+ [User-facing skills](docs/user-facing-skills.md) for the detailed routing map.
70
70
 
71
71
  ---
72
72
 
73
73
  ## Installation
74
74
 
75
- ### Option 1 - Attach TradingCodex To The Current Workspace
76
-
77
75
  Run this from the empty workspace where you want Codex agents to work:
78
76
 
79
77
  ```bash
@@ -89,64 +87,9 @@ When TradingCodex MCP autostarts the local service, open:
89
87
  http://127.0.0.1:48267/
90
88
  ```
91
89
 
92
- ### Option 2 - Install The CLI For Repeated Use
93
-
94
- ```bash
95
- uv tool install tradingcodex
96
- uv tool update-shell
97
- cd /path/to/target-workspace
98
- tcx attach .
99
- ./tcx doctor
100
- ```
101
-
102
- ### Option 3 - Install From GitHub Main
103
-
104
- Use this when you need the current GitHub `main` source rather than the latest
105
- PyPI package:
106
-
107
- ```bash
108
- uvx --refresh --from "tradingcodex @ git+https://github.com/monarchjuno/tradingcodex.git@main" tcx attach . && ./tcx doctor
109
- ```
110
-
111
- ### Option 4 - Develop TradingCodex Source
112
-
113
- Clone this repository only for source development, inspection, or modification:
114
-
115
- ```bash
116
- git clone https://github.com/monarchjuno/tradingcodex.git
117
- cd tradingcodex
118
- python -m pytest
119
- python manage.py check
120
- ```
121
-
122
- See [installation.md](installation.md) for update flows, installer-script
123
- equivalents, MCP/service details, and smoke checks.
124
-
125
- ---
126
-
127
- ## What Sets TradingCodex Apart
128
-
129
- TradingCodex competes on workflow discipline, local durability, and execution
130
- boundaries rather than on black-box automation.
131
-
132
- - Local-first: PyPI installs the CLI, Django service plane, generated workspace
133
- templates, Admin/Web templates, static assets, and MCP gateway code.
134
- - Codex-readable by default: research artifacts, skill bundles, role prompts,
135
- policy exports, and generated indexes remain ordinary workspace files.
136
- - Service-layer canonical: Web, Admin, API, CLI, MCP, and hooks do not fork
137
- policy, order, approval, execution, portfolio, research, or audit behavior.
138
- - Strong role model: one `head-manager` coordinates nine fixed specialist
139
- subagents and consumes accepted artifacts instead of silently redoing roles.
140
- - Deterministic executable boundary: every executable path follows
141
- a fixed requester, permission, policy, payload, approval, duplicate-request,
142
- connection, and audit sequence.
143
- - Safety-first broker posture: paper is built in; live broker execution requires
144
- an installed provider plus workspace config, policy, environment opt-in,
145
- approval, confirmation, idempotency, sync, and audit gates.
146
- - Broker control plane: TradingCodex stores connector state, capability
147
- profiles, mapping review, approval, execution, reconciliation, and audit;
148
- provider adapters absorb broker-specific REST, SDK, MCP, or manual interface
149
- differences behind canonical service/MCP tools.
90
+ See [installation.md](installation.md) for persistent CLI install, GitHub-main
91
+ install, source-development setup, update flows, installer-script equivalents,
92
+ MCP/service details, and smoke checks.
150
93
 
151
94
  ---
152
95
 
@@ -178,25 +121,48 @@ workflow has earned. Weak, stale, missing, or out-of-scope upstream work returns
178
121
  | Market context | `macro-analyst` | Macro, rates, FX, commodities, liquidity, policy, and cross-asset transmission. |
179
122
  | Market context | `instrument-analyst` | ETF/index, options, crypto public market structure, credit-signal boundary, and instrument mechanics. |
180
123
  | Decision review | `valuation-analyst` | Valuation ranges, scenario assumptions, multiples, sensitivity, and decision-quality gaps. |
124
+ | Decision review | `judgment-reviewer` | Independent challenge review of accepted artifacts for contrary evidence, source trust, overconfidence, update triggers, and invalidation conditions. |
181
125
  | Portfolio | `portfolio-manager` | Portfolio fit, sizing, concentration, liquidity, opportunity cost, and draft order-ticket readiness. |
182
126
  | Risk | `risk-manager` | Downside, restricted-list checks, policy readiness, approval readiness, and approval receipts. |
183
127
  | Execution | `execution-operator` | Approved submission/cancel/status through the TradingCodex service boundary only; live requires all gates. |
184
128
 
185
129
  ---
186
130
 
187
- ## Surfaces
131
+ ## Key Features
188
132
 
189
- | Surface | Role |
133
+ | Feature | What it gives you |
190
134
  | --- | --- |
191
- | Product web | Agents-first review dashboard for roles, skills, research markdown, Broker Center, Data Sources, order tickets, portfolio state, and activity. |
192
- | Django Admin | Local/staff DB inspection for policy, orders, portfolio, MCP registry, workflows, integrations, and audit rows. |
193
- | Django Ninja API | Typed local/staff REST and control endpoints that call service-layer use cases. |
194
- | MCP | Agent/tool boundary with typed tools, role scopes, policy checks, approval checks, and audit. |
195
- | CLI | Local operator commands plus generated workspace `./tcx` wrapper behavior. |
135
+ | Agentic workflow planning | Natural-language prompts become staged plans, selected role teams, accepted artifacts, and explicit `waiting`, `revise`, or `blocked` states. |
136
+ | Independent judgment review | `judgment-reviewer` challenges accepted artifacts for contrary evidence, source trust, overconfidence, update triggers, and invalidation conditions. |
137
+ | Decision Packages | Investment theses keep forecastable claims, lifecycle assumptions, contrary evidence, owner roles, follow-up, and postmortem requirements. |
138
+ | Strategy skills | `strategy-creator` turns user rules into reusable strategy skills without granting order approval, execution, broker, or policy authority. |
139
+ | File-native research memory | Research markdown, role reports, source snapshots, readiness labels, versions, and handoff metadata remain ordinary workspace files. |
140
+ | Service-gated execution | Order tickets, approvals, policy checks, idempotency, broker connections, account sync, and audit stay behind Django service-layer gates. |
141
+ | Local review surfaces | Web, Admin, API, MCP, CLI, and generated hooks share the same service plane for review, status, research, Broker Center, orders, and portfolio state. |
196
142
 
197
- The baseline frontend uses Django templates, local static HTMX, and small plain
198
- JavaScript. There is no Node, bundler, React, or frontend build step in the core
199
- package.
143
+ ---
144
+
145
+ ## Architecture
146
+
147
+ ```mermaid
148
+ flowchart TD
149
+ U["User prompt"] --> H["Codex head-manager"]
150
+ H --> R["Fixed role agents"]
151
+ R --> A["Accepted artifacts"]
152
+ A --> J["judgment-reviewer"]
153
+ J --> D["Decision Package"]
154
+ D --> S["Django service plane"]
155
+ S --> G["Policy / approval / audit gates"]
156
+ G --> E["Paper execution or gated live provider"]
157
+ S --> W["Web / Admin / API / MCP / CLI"]
158
+ S --> M["File-native research memory"]
159
+ ```
160
+
161
+ The architecture is intentionally small: Codex owns coordination and role
162
+ handoffs; Django owns durable policy, order, approval, portfolio, integration,
163
+ research, and audit behavior. The core package uses Django templates, local
164
+ static HTMX, and small plain JavaScript. There is no Node, bundler, React, or
165
+ frontend build step.
200
166
 
201
167
  ---
202
168
 
@@ -226,20 +192,25 @@ provide investment recommendations or guarantee returns.
226
192
  | Status | Milestone |
227
193
  | --- | --- |
228
194
  | Shipped | Generated Codex workspace, fixed role roster, project MCP config, Django service plane, local web dashboard, Admin, Ninja API, file-native research memory, component registry, policy/audit primitives. |
229
- | Current `0.2.x` | Central-DB `OrderTicket` rewrite, provider-driven Broker Center foundations, Data Sources gate, role-scoped actions, live-gated execution lifecycle, and Python `>=3.11,<3.15` support. |
230
- | Next | Codex-native Decision Packages, deeper validation scenarios, richer provider capability profiles, stronger generated-workspace smoke coverage, and improved artifact quality tooling. |
195
+ | Current `0.3.0` | Codex-native Decision Packages, independent judgment-review gate, staged workflow planning, artifact-supervisor loop, provider capability profiles, and Python `>=3.11,<3.15` support. |
196
+ | Next | Deeper validation scenarios, richer provider capability profiles, stronger generated-workspace smoke coverage, and improved artifact quality tooling. |
231
197
  | Future | Separately governed verified adapters, hosted/managed services, enterprise policy/compliance packs, and broker-specific live providers only after explicit product, policy, adapter, and validation work. |
232
198
 
233
199
  ---
234
200
 
235
201
  ## Documentation
236
202
 
237
- | Document | Start here for |
203
+ `README.md` is the product overview. The `docs/` directory is the human-readable
204
+ source of truth for detailed product behavior, safety, architecture, workflow,
205
+ validation, and release policy.
206
+
207
+ | Start here | Use for |
238
208
  | --- | --- |
239
209
  | [Installation](installation.md) | Setup, update, GitHub-main install, MCP/service startup, and smoke checks. |
240
- | [Docs index](docs/README.md) | Source-of-truth reading order and document ownership. |
241
- | [Product direction](docs/product-direction.md) | Product thesis, target user posture, goals, non-goals, runtime defaults, and scope. |
210
+ | [Docs index](docs/README.md) | Human-readable reading paths, document ownership, and change-to-doc routing. |
211
+ | [User-facing skills](docs/user-facing-skills.md) | Which skill starts which user workflow and what each entrypoint must not do. |
242
212
  | [Core concepts and rules](docs/core-concepts-and-rules.md) | Fast operating reference for planes, guardrails, roles, execution lifecycle, and research memory. |
213
+ | [Product direction](docs/product-direction.md) | Product thesis, target user posture, goals, non-goals, runtime defaults, and scope. |
243
214
  | [Workspace orchestration model](docs/harness.md) | Top-level workflow model, components, guardrails, improvement, and naming rules. |
244
215
  | [Roles, skills, and workflows](docs/roles-skills-and-workflows.md) | Fixed role roster, no-overlap handoffs, dispatch gates, skills, and strategy behavior. |
245
216
  | [Safety policy and execution](docs/safety-policy-and-execution.md) | Permissions, approvals, idempotency, broker safety, secret wall, and required blocks. |
@@ -0,0 +1,97 @@
1
+ # TradingCodex Documentation
2
+
3
+ This directory is the human-readable source of truth linked from the public `README.md`. It explains the product model, operating rules, safety boundaries, generated workspace behavior, implementation architecture, validation expectations, release policy, and licensing posture.
4
+
5
+ Use these docs when you want the deeper "why" behind TradingCodex behavior. Coding agents should use `openwiki/` for fast source navigation, then return here before changing durable product behavior.
6
+
7
+ ## How To Read These Docs
8
+
9
+ | Reader goal | Start with | Then read |
10
+ | --- | --- | --- |
11
+ | Understand TradingCodex quickly | [core-concepts-and-rules.md](./core-concepts-and-rules.md) | [product-direction.md](./product-direction.md), [harness.md](./harness.md) |
12
+ | Install or update a workspace | [../installation.md](../installation.md) | [generated-workspaces.md](./generated-workspaces.md), [deployment.md](./deployment.md) |
13
+ | Understand which user skill to start with | [user-facing-skills.md](./user-facing-skills.md) | [roles-skills-and-workflows.md](./roles-skills-and-workflows.md), [interfaces-and-surfaces.md](./interfaces-and-surfaces.md) |
14
+ | Understand the investment workflow | [harness.md](./harness.md) | [roles-skills-and-workflows.md](./roles-skills-and-workflows.md), [research-memory-and-artifacts.md](./research-memory-and-artifacts.md) |
15
+ | Understand safety and execution boundaries | [safety-policy-and-execution.md](./safety-policy-and-execution.md) | [guardrails.md](./guardrails.md), [interfaces-and-surfaces.md](./interfaces-and-surfaces.md) |
16
+ | Understand implementation architecture | [system-architecture.md](./system-architecture.md) | [interfaces-and-surfaces.md](./interfaces-and-surfaces.md), [components.md](./components.md) |
17
+ | Change prompts, skills, hooks, routing, or generated workspaces | [roles-skills-and-workflows.md](./roles-skills-and-workflows.md) | [generated-workspaces.md](./generated-workspaces.md), [validation-and-test-plan.md](./validation-and-test-plan.md) |
18
+ | Validate a change before release or handoff | [validation-and-test-plan.md](./validation-and-test-plan.md) | The topic document for the changed area |
19
+
20
+ ## Documentation Layers
21
+
22
+ | Layer | Audience | Role |
23
+ | --- | --- | --- |
24
+ | `README.md` | New users and evaluators | Product summary, installation path, feature overview, and links into these docs. |
25
+ | `installation.md` | Operators | Setup, update, installer, MCP/service startup, and smoke checks. |
26
+ | `docs/` | Humans and maintainers | Durable product source of truth and deeper design rationale. |
27
+ | `openwiki/` | Coding agents | Fast repository map and edit/validation routing. |
28
+ | `AGENTS.md` | Coding agents | Hard rules, setup guard, coding rules, and validation requirements. |
29
+
30
+ If these layers disagree, treat `docs/` as the durable product intent and fix the mismatch deliberately. Do not let hidden behavior drift live only in code, tests, prompts, skills, hooks, or generated templates.
31
+
32
+ ## Core Documents
33
+
34
+ | Document | Owns |
35
+ | --- | --- |
36
+ | [core-concepts-and-rules.md](./core-concepts-and-rules.md) | Fast operating reference for planes, guardrails, role boundaries, execution lifecycle, research memory, and documentation rules. |
37
+ | [product-direction.md](./product-direction.md) | Product thesis, target user posture, goals, non-goals, product language, default runtime, universe scope, and open-core posture. |
38
+ | [harness.md](./harness.md) | Top-level harness model: roles, skills, service-layer state, policy, MCP, research memory, approvals, execution adapters, audit, and improvement loops. |
39
+ | [components.md](./components.md) | Component-first maintenance registry, taxonomy tags, owned surfaces, dependencies, capabilities, and validation. |
40
+
41
+ ## Workflow And Agent Documents
42
+
43
+ | Document | Owns |
44
+ | --- | --- |
45
+ | [user-facing-skills.md](./user-facing-skills.md) | User-facing entry skills, routing posture, and non-entrypoint skill boundaries. |
46
+ | [roles-skills-and-workflows.md](./roles-skills-and-workflows.md) | Fixed role roster, no-overlap role contract, head-manager dispatch gate, skills, strategy skills, subagent isolation, workflow routing, and module graph. |
47
+ | [research-memory-and-artifacts.md](./research-memory-and-artifacts.md) | File-native research memory, source snapshots, artifact paths, readiness labels, report quality floor, forecast ledger posture, and handoff metadata. |
48
+ | [financial-workflow-references.md](./financial-workflow-references.md) | Research-backed finance workflow principles and non-expert UX requirements for workflow intake and handoffs. |
49
+ | [artifact-supervisor-loop-prd.md](./artifact-supervisor-loop-prd.md) | Artifact Supervisor Loop PRD, bounded follow-up routing, lane escalation, loop state, and Decision Quality Spine preservation. |
50
+
51
+ ## Safety And Improvement Documents
52
+
53
+ | Document | Owns |
54
+ | --- | --- |
55
+ | [guardrails.md](./guardrails.md) | Guardrail taxonomy: guidance, enforcement, and information barriers. |
56
+ | [safety-policy-and-execution.md](./safety-policy-and-execution.md) | Permission checks, approval rules, execution lifecycle, adapter boundary, external MCP gate, blocked actions, and secret handling. |
57
+ | [improvement-loop.md](./improvement-loop.md) | Workflow quality, research memory, skill evolution, postmortems, validation feedback, and quality-learning loops. |
58
+
59
+ ## Implementation And Operations Documents
60
+
61
+ | Document | Owns |
62
+ | --- | --- |
63
+ | [system-architecture.md](./system-architecture.md) | Django modular monolith, central DB ownership, app boundaries, runtime planes, service-layer use cases, and core models. |
64
+ | [interfaces-and-surfaces.md](./interfaces-and-surfaces.md) | Product web, Django Admin, Django Ninja API, MCP boundary, CLI, generated wrapper behavior, and external MCP surface. |
65
+ | [generated-workspaces.md](./generated-workspaces.md) | `tcx attach`, `tcx init`, `tcx update`, generated files, project-scoped MCP config, hooks, workspace provenance, profile scope, and template rules. |
66
+ | [validation-and-test-plan.md](./validation-and-test-plan.md) | Required validation commands, unit/API/generator/smoke coverage, MCP smokes, broker provider smokes, routing scenarios, and release-sensitive checks. |
67
+ | [deployment.md](./deployment.md) | PyPI/TestPyPI release process, CI/CD, Trusted Publishing, installer/update policy, versioning, and what is not deployed. |
68
+ | [licensing-and-commercialization.md](./licensing-and-commercialization.md) | Apache-2.0 open-core boundary, generated workspace ownership, contributions, trademark posture, and legal review needs. |
69
+
70
+ ## Change-To-Docs Map
71
+
72
+ | Change type | Update these docs |
73
+ | --- | --- |
74
+ | Product scope, non-goals, default runtime, product language, or release posture | `product-direction.md`, `core-concepts-and-rules.md` |
75
+ | Top-level harness model, component registry, guardrail/improvement taxonomy, or cross-cutting concept language | `harness.md`, `components.md`, `guardrails.md`, `improvement-loop.md`, `core-concepts-and-rules.md` |
76
+ | User-facing workflow intake, suitability/profile context, plain-English output, or professional finance framing | `financial-workflow-references.md`, `interfaces-and-surfaces.md`, `roles-skills-and-workflows.md` |
77
+ | Role roster, head-manager dispatch, skills, strategy behavior, routing, information barriers, or handoff quality | `roles-skills-and-workflows.md`, `artifact-supervisor-loop-prd.md`, `core-concepts-and-rules.md` |
78
+ | Research memory, source snapshots, forecast ledgers, readiness labels, artifact paths, report quality, or markdown preview | `research-memory-and-artifacts.md`, `improvement-loop.md`, `artifact-supervisor-loop-prd.md` |
79
+ | Policy, permissions, approvals, idempotency, execution, adapters, broker safety, external MCP gate, or secret handling | `safety-policy-and-execution.md`, `guardrails.md`, `core-concepts-and-rules.md` |
80
+ | Django apps, models, service-layer contracts, central DB ownership, or runtime topology | `system-architecture.md` |
81
+ | Product web, Admin, REST, MCP, CLI, or generated wrapper behavior | `interfaces-and-surfaces.md` |
82
+ | Workspace templates, bootstrap, hooks, project MCP config, generated files, or update behavior | `generated-workspaces.md` |
83
+ | Test expectations, smoke flows, validation commands, or regression scenarios | `validation-and-test-plan.md` |
84
+ | Packaging, installer, release automation, versioning, or distribution boundary | `deployment.md`, `installation.md` |
85
+ | License, contribution, trademark, generated workspace ownership, or commercialization boundary | `licensing-and-commercialization.md` |
86
+
87
+ ## Source-Of-Truth Principles
88
+
89
+ | Principle | Meaning |
90
+ | --- | --- |
91
+ | Docs first for product behavior | Durable rules for safety, roles, workflows, execution, generated workspaces, and release posture belong in these docs. |
92
+ | Update docs with behavior | Code, templates, prompts, hooks, tests, and generated artifacts that change durable behavior should update the owning doc in the same change. |
93
+ | Keep `README.md` concise | The public README should explain the product and route readers here instead of duplicating every rule. |
94
+ | Keep OpenWiki agent-focused | `openwiki/` should help agents work efficiently and link back to these docs for durable explanations. |
95
+ | Keep product language English | TradingCodex product copy, generated workspace guidance, Admin UI, CLI help, role prompts, durable docs, and examples are written in English unless a reviewed localization layer is being built. |
96
+ | Product web is review-first | The `/` web app opens on workflow planning and can preview handoffs; it does not spawn agents, approve orders, or execute orders. |
97
+ | Open-core boundary is explicit | Apache-2.0 covers the repository open core; trademarks and official commercial offerings remain separately governed. |