tradingcodex 0.2.10__tar.gz → 0.3.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 (314) hide show
  1. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/PKG-INFO +71 -98
  2. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/README.md +69 -96
  3. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/README.md +3 -1
  4. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/artifact-supervisor-loop-prd.md +15 -4
  5. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/components.md +4 -4
  6. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/core-concepts-and-rules.md +1 -1
  7. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/deployment.md +29 -16
  8. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/financial-workflow-references.md +10 -4
  9. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/generated-workspaces.md +27 -6
  10. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/harness.md +10 -6
  11. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/improvement-loop.md +54 -5
  12. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/interfaces-and-surfaces.md +3 -3
  13. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/product-direction.md +2 -2
  14. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/research-memory-and-artifacts.md +52 -4
  15. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/roles-skills-and-workflows.md +27 -13
  16. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/system-architecture.md +4 -1
  17. tradingcodex-0.3.1/docs/user-facing-skills.md +55 -0
  18. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/validation-and-test-plan.md +21 -3
  19. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/pyproject.toml +2 -2
  20. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tests/test_e2e_user_scenarios.py +18 -23
  21. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tests/test_python_migration.py +603 -57
  22. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex.egg-info/PKG-INFO +71 -98
  23. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex.egg-info/SOURCES.txt +5 -2
  24. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/__main__.py +2 -2
  25. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/doctor.py +11 -0
  26. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/orders.py +29 -2
  27. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/research.py +37 -0
  28. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/subagents.py +2 -0
  29. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/utils.py +8 -0
  30. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/workflow.py +28 -2
  31. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/api.py +5 -4
  32. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/agents.py +41 -16
  33. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/artifact_quality.py +419 -14
  34. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/components.py +10 -9
  35. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/context_budget.py +5 -5
  36. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/decision_packages.py +104 -12
  37. tradingcodex-0.3.1/tradingcodex_service/application/harness.py +1935 -0
  38. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/research.py +131 -2
  39. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/workflow_planner.py +35 -7
  40. tradingcodex-0.3.1/tradingcodex_service/application/workflow_routing.py +1333 -0
  41. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/mcp_runtime.py +51 -59
  42. tradingcodex-0.3.1/tradingcodex_service/version.py +1 -0
  43. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/web.py +1 -1
  44. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/.codex/config.toml +36 -0
  45. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/.codex/hooks/tradingcodex_hook.py +12 -53
  46. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/.codex/prompts/base_instructions/head-manager.md +9 -3
  47. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/.tradingcodex/config.yaml +1 -1
  48. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/.tradingcodex/policies/roles.yaml +6 -0
  49. tradingcodex-0.3.1/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/postmortem_report.schema.json +27 -0
  50. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/research_artifact.schema.json +45 -0
  51. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/fixed-subagents/files/.codex/agents/execution-operator.toml +0 -4
  52. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/fixed-subagents/files/.codex/agents/fundamental-analyst.toml +0 -8
  53. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/fixed-subagents/files/.codex/agents/instrument-analyst.toml +0 -8
  54. tradingcodex-0.3.1/workspace_templates/modules/fixed-subagents/files/.codex/agents/judgment-reviewer.toml +51 -0
  55. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/fixed-subagents/files/.codex/agents/macro-analyst.toml +0 -8
  56. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/fixed-subagents/files/.codex/agents/news-analyst.toml +0 -8
  57. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/fixed-subagents/files/.codex/agents/portfolio-manager.toml +0 -8
  58. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/fixed-subagents/files/.codex/agents/risk-manager.toml +0 -12
  59. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/fixed-subagents/files/.codex/agents/technical-analyst.toml +0 -8
  60. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/fixed-subagents/files/.codex/agents/valuation-analyst.toml +0 -4
  61. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/fixed-subagents/module.json +1 -0
  62. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/guidance-guardrails/files/.tradingcodex/guidance/task-quality-checklist.md +2 -2
  63. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/.tradingcodex/policies/information-barriers.yaml +53 -49
  64. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/postmortem/SKILL.md +9 -3
  65. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/references/decision-quality-spine.md +5 -2
  66. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/fundamental-analysis/SKILL.md +2 -1
  67. tradingcodex-0.3.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/judgment-reviewer/agent-judgment-review/SKILL.md +62 -0
  68. tradingcodex-0.3.1/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/judgment-reviewer/agent-judgment-review/agents/openai.yaml +6 -0
  69. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/portfolio-review/SKILL.md +3 -1
  70. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/review-risk/SKILL.md +3 -1
  71. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/collect-evidence/SKILL.md +6 -0
  72. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/forecasting-discipline/SKILL.md +7 -0
  73. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/valuation-review/SKILL.md +2 -0
  74. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/module.json +1 -0
  75. tradingcodex-0.2.10/tradingcodex_service/application/harness.py +0 -2598
  76. tradingcodex-0.2.10/tradingcodex_service/version.py +0 -1
  77. tradingcodex-0.2.10/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/postmortem_report.schema.json +0 -14
  78. tradingcodex-0.2.10/workspace_templates/modules/fixed-subagents/files/.tradingcodex/mainagent/head-manager.yaml +0 -66
  79. tradingcodex-0.2.10/workspace_templates/modules/fixed-subagents/files/.tradingcodex/mainagent/subagent-registry.yaml +0 -56
  80. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/CONTRIBUTING.md +0 -0
  81. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/LICENSE +0 -0
  82. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/MANIFEST.in +0 -0
  83. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/NOTICE +0 -0
  84. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/TRADEMARKS.md +0 -0
  85. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/__init__.py +0 -0
  86. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/audit/__init__.py +0 -0
  87. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/audit/admin.py +0 -0
  88. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/audit/apps.py +0 -0
  89. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/audit/migrations/0001_initial.py +0 -0
  90. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/audit/migrations/__init__.py +0 -0
  91. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/audit/models.py +0 -0
  92. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/harness/__init__.py +0 -0
  93. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/harness/admin.py +0 -0
  94. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/harness/apps.py +0 -0
  95. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/harness/migrations/0001_initial.py +0 -0
  96. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/harness/migrations/__init__.py +0 -0
  97. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/harness/models.py +0 -0
  98. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/harness/templatetags/__init__.py +0 -0
  99. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/integrations/__init__.py +0 -0
  100. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/integrations/admin.py +0 -0
  101. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/integrations/apps.py +0 -0
  102. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/integrations/migrations/0001_initial.py +0 -0
  103. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/integrations/migrations/0002_brokerconnection_brokeraccount_instrumentmap.py +0 -0
  104. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/integrations/migrations/__init__.py +0 -0
  105. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/integrations/models.py +0 -0
  106. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/mcp/__init__.py +0 -0
  107. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/mcp/admin.py +0 -0
  108. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/mcp/apps.py +0 -0
  109. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/mcp/migrations/0001_initial.py +0 -0
  110. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/mcp/migrations/__init__.py +0 -0
  111. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/mcp/models.py +0 -0
  112. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/mcp/services.py +0 -0
  113. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/orders/__init__.py +0 -0
  114. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/orders/admin.py +0 -0
  115. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/orders/apps.py +0 -0
  116. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/orders/migrations/0001_initial.py +0 -0
  117. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/orders/migrations/0002_approvalreceipt_approved_order_type_and_more.py +0 -0
  118. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/orders/migrations/0003_migrate_orderintent_to_orderticket.py +0 -0
  119. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/orders/migrations/0004_remove_order_intent_compat_fields.py +0 -0
  120. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/orders/migrations/__init__.py +0 -0
  121. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/orders/models.py +0 -0
  122. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/orders/services.py +0 -0
  123. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/policy/__init__.py +0 -0
  124. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/policy/admin.py +0 -0
  125. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/policy/apps.py +0 -0
  126. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/policy/migrations/0001_initial.py +0 -0
  127. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/policy/migrations/__init__.py +0 -0
  128. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/policy/models.py +0 -0
  129. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/policy/services.py +0 -0
  130. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/portfolio/__init__.py +0 -0
  131. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/portfolio/admin.py +0 -0
  132. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/portfolio/apps.py +0 -0
  133. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/portfolio/migrations/0001_initial.py +0 -0
  134. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/portfolio/migrations/0002_brokersyncrun_portfolioledgerevent_reconciliationrun.py +0 -0
  135. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/portfolio/migrations/__init__.py +0 -0
  136. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/portfolio/models.py +0 -0
  137. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/workflows/__init__.py +0 -0
  138. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/workflows/admin.py +0 -0
  139. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/workflows/apps.py +0 -0
  140. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/workflows/migrations/0001_initial.py +0 -0
  141. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/workflows/migrations/__init__.py +0 -0
  142. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/apps/workflows/models.py +0 -0
  143. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/assets/tradingcodex-banner.svg +0 -0
  144. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/guardrails.md +0 -0
  145. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/licensing-and-commercialization.md +0 -0
  146. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/docs/safety-policy-and-execution.md +0 -0
  147. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/install.sh +0 -0
  148. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/installation.md +0 -0
  149. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/setup.cfg +0 -0
  150. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tests/test_broker_center_prd.py +0 -0
  151. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex.egg-info/dependency_links.txt +0 -0
  152. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex.egg-info/entry_points.txt +0 -0
  153. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex.egg-info/requires.txt +0 -0
  154. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex.egg-info/top_level.txt +0 -0
  155. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/__init__.py +0 -0
  156. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/__init__.py +0 -0
  157. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/bootstrap.py +0 -0
  158. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/connectors.py +0 -0
  159. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/db.py +0 -0
  160. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/decision.py +0 -0
  161. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/mcp.py +0 -0
  162. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/mode.py +0 -0
  163. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/policy.py +0 -0
  164. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/profile.py +0 -0
  165. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/skills.py +0 -0
  166. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/strategies.py +0 -0
  167. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/commands/workspaces.py +0 -0
  168. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/generator.py +0 -0
  169. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/mcp_stdio.py +0 -0
  170. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/service_autostart.py +0 -0
  171. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_cli/startup_status.py +0 -0
  172. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/__init__.py +0 -0
  173. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/admin.py +0 -0
  174. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/__init__.py +0 -0
  175. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/audit.py +0 -0
  176. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/brokers.py +0 -0
  177. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/common.py +0 -0
  178. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/markdown_preview.py +0 -0
  179. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/orders.py +0 -0
  180. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/policy.py +0 -0
  181. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/portfolio.py +0 -0
  182. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/runtime.py +0 -0
  183. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/application/runtime_mode.py +0 -0
  184. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/asgi.py +0 -0
  185. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/settings.py +0 -0
  186. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/static/tradingcodex_admin/favicon.svg +0 -0
  187. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/static/tradingcodex_web/app.css +0 -0
  188. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/static/tradingcodex_web/app.js +0 -0
  189. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/static/vendor/htmx/htmx.min.js +0 -0
  190. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/activity.html +0 -0
  191. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/agent_skills.html +0 -0
  192. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/agents.html +0 -0
  193. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/base.html +0 -0
  194. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/brokers.html +0 -0
  195. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/dashboard.html +0 -0
  196. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/decisions.html +0 -0
  197. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/fragments/role_inspector.html +0 -0
  198. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/fragments/starter_prompt.html +0 -0
  199. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/fragments/topology_canvas.html +0 -0
  200. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/fragments/workspace_card.html +0 -0
  201. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/harness.html +0 -0
  202. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/mcp_router.html +0 -0
  203. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/orders.html +0 -0
  204. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/policy.html +0 -0
  205. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/portfolio.html +0 -0
  206. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/research.html +0 -0
  207. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/starter_prompt.html +0 -0
  208. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/templates/web/strategies.html +0 -0
  209. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/urls.py +0 -0
  210. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/tradingcodex_service/wsgi.py +0 -0
  211. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/__init__.py +0 -0
  212. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/audit/files/.tradingcodex/audit/README.md +0 -0
  213. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/audit/files/trading/audit/.gitkeep +0 -0
  214. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/audit/module.json +0 -0
  215. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/.codex/hooks.json +0 -0
  216. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/.codex/rules/tradingcodex.rules +0 -0
  217. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/.tradingcodex/capabilities.yaml +0 -0
  218. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/.tradingcodex/cli.py +0 -0
  219. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/.tradingcodex/policies/policy-bindings.yaml +0 -0
  220. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/.tradingcodex/policies/principals.yaml +0 -0
  221. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/AGENTS.md +0 -0
  222. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/pyproject.toml +0 -0
  223. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/files/tcx +0 -0
  224. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/codex-base/module.json +0 -0
  225. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/policies/access-policies.yaml +0 -0
  226. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/policies/restricted-list.yaml +0 -0
  227. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/approval_receipt.schema.json +0 -0
  228. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/audit_event.schema.json +0 -0
  229. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/evidence_pack.schema.json +0 -0
  230. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/execution_result.schema.json +0 -0
  231. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/fundamental_report.schema.json +0 -0
  232. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/news_report.schema.json +0 -0
  233. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/order_ticket.schema.json +0 -0
  234. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/portfolio_review.schema.json +0 -0
  235. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/risk_report.schema.json +0 -0
  236. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/technical_report.schema.json +0 -0
  237. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/thesis.schema.json +0 -0
  238. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/files/.tradingcodex/schemas/valuation.schema.json +0 -0
  239. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/enforcement-guardrails/module.json +0 -0
  240. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/fixed-subagents/files/.tradingcodex/mainagent/skill-change-proposals/.gitkeep +0 -0
  241. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/guidance-guardrails/files/.tradingcodex/guidance/guardrails.md +0 -0
  242. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/guidance-guardrails/module.json +0 -0
  243. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/.tradingcodex/secrets.md +0 -0
  244. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/approvals/.gitkeep +0 -0
  245. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/forecasts/.gitkeep +0 -0
  246. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/market-data/.gitkeep +0 -0
  247. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/orders/approved/.gitkeep +0 -0
  248. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/orders/draft/.gitkeep +0 -0
  249. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/orders/executed/.gitkeep +0 -0
  250. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/orders/rejected/.gitkeep +0 -0
  251. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/portfolio/.gitkeep +0 -0
  252. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/reports/fundamental/.gitkeep +0 -0
  253. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/reports/instrument/.gitkeep +0 -0
  254. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/reports/macro/.gitkeep +0 -0
  255. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/reports/news/.gitkeep +0 -0
  256. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/reports/policy/.gitkeep +0 -0
  257. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/reports/portfolio/.gitkeep +0 -0
  258. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/reports/postmortem/.gitkeep +0 -0
  259. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/reports/risk/.gitkeep +0 -0
  260. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/reports/technical/.gitkeep +0 -0
  261. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/reports/valuation/.gitkeep +0 -0
  262. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/files/trading/research/.gitkeep +0 -0
  263. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/information-barriers/module.json +0 -0
  264. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/paper-trading/module.json +0 -0
  265. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/postmortem/files/.tradingcodex/workflows/postmortem.yaml +0 -0
  266. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/postmortem/module.json +0 -0
  267. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/automate-workflow/SKILL.md +0 -0
  268. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/automate-workflow/agents/openai.yaml +0 -0
  269. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/plan-workflow/SKILL.md +0 -0
  270. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/plan-workflow/agents/openai.yaml +0 -0
  271. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/postmortem/agents/openai.yaml +0 -0
  272. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/strategy-creator/SKILL.md +0 -0
  273. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/strategy-creator/agents/openai.yaml +0 -0
  274. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-build/SKILL.md +0 -0
  275. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-build/agents/openai.yaml +0 -0
  276. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-server/SKILL.md +0 -0
  277. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-server/agents/openai.yaml +0 -0
  278. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/SKILL.md +0 -0
  279. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.agents/skills/tcx-workflow/agents/openai.yaml +0 -0
  280. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/execution-operator/execute-paper-order/SKILL.md +0 -0
  281. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/execution-operator/execute-paper-order/agents/openai.yaml +0 -0
  282. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/fundamental-analyst/fundamental-analysis/agents/openai.yaml +0 -0
  283. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/instrument-analysis/SKILL.md +0 -0
  284. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/instrument-analyst/instrument-analysis/agents/openai.yaml +0 -0
  285. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/macro-analysis/SKILL.md +0 -0
  286. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/macro-analyst/macro-analysis/agents/openai.yaml +0 -0
  287. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/news-analysis/SKILL.md +0 -0
  288. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/news-analyst/news-analysis/agents/openai.yaml +0 -0
  289. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/create-order-ticket/SKILL.md +0 -0
  290. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/create-order-ticket/agents/openai.yaml +0 -0
  291. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/portfolio-manager/portfolio-review/agents/openai.yaml +0 -0
  292. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/approve-order/SKILL.md +0 -0
  293. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/approve-order/agents/openai.yaml +0 -0
  294. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/policy-review/SKILL.md +0 -0
  295. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/policy-review/agents/openai.yaml +0 -0
  296. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/risk-manager/review-risk/agents/openai.yaml +0 -0
  297. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/anti-overfit-validation/SKILL.md +0 -0
  298. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/anti-overfit-validation/agents/openai.yaml +0 -0
  299. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/collect-evidence/agents/openai.yaml +0 -0
  300. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/external-data-source-gate/SKILL.md +0 -0
  301. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/external-data-source-gate/agents/openai.yaml +0 -0
  302. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/forecasting-discipline/agents/openai.yaml +0 -0
  303. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/numeric-data-qc/SKILL.md +0 -0
  304. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/numeric-data-qc/agents/openai.yaml +0 -0
  305. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/thesis-scenario-tree/SKILL.md +0 -0
  306. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/thesis-scenario-tree/agents/openai.yaml +0 -0
  307. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/technical-analysis/SKILL.md +0 -0
  308. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/technical-analyst/technical-analysis/agents/openai.yaml +0 -0
  309. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/valuation-analyst/valuation-review/agents/openai.yaml +0 -0
  310. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/stub-execution/module.json +0 -0
  311. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/enforcer/README.md +0 -0
  312. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/gateway/README.md +0 -0
  313. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/workspace_templates/modules/tradingcodex-mcp/files/.tradingcodex/mcp/server.py +0 -0
  314. {tradingcodex-0.2.10 → tradingcodex-0.3.1}/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.10
4
- Summary: Codex-native trading harness with a Django service plane and approved action boundary.
3
+ Version: 0.3.1
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
+ [User-Facing Skills](#user-facing-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,32 @@ comes only from installed, reviewed providers and explicit live gates.
83
83
 
84
84
  ---
85
85
 
86
- ## Features
86
+ ## User-Facing 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 skill:
89
+
90
+ | Primary 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
+ | Supporting skill | Use when | Main output |
98
+ | --- | --- | --- |
99
+ | `plan-workflow` | You want an explicit workflow plan before role dispatch or implementation. | Bounded plan with selected stages, roles, gates, and waiting/revise/blocked posture. |
100
+ | `automate-workflow` | You want to define a repeatable workflow automation without executing trades. | Automation recipe, trigger scope, guardrails, and review requirements. |
101
+ | `postmortem` | A workflow, decision, artifact, or execution/process step needs review after the fact. | Failure analysis, missed assumptions, source-quality lessons, and future warning patterns. |
102
+
103
+ Most investment prompts enter through natural language, then the hook writes
104
+ compact intake and `head-manager` uses `tcx-workflow` to draft, validate, and
105
+ record the staged plan before dispatch. See
106
+ [User-facing skills](docs/user-facing-skills.md) for the detailed routing map.
101
107
 
102
108
  ---
103
109
 
104
110
  ## Installation
105
111
 
106
- ### Option 1 - Attach TradingCodex To The Current Workspace
107
-
108
112
  Run this from the empty workspace where you want Codex agents to work:
109
113
 
110
114
  ```bash
@@ -120,64 +124,9 @@ When TradingCodex MCP autostarts the local service, open:
120
124
  http://127.0.0.1:48267/
121
125
  ```
122
126
 
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.
127
+ See [installation.md](installation.md) for persistent CLI install, GitHub-main
128
+ install, source-development setup, update flows, installer-script equivalents,
129
+ MCP/service details, and smoke checks.
181
130
 
182
131
  ---
183
132
 
@@ -209,25 +158,48 @@ workflow has earned. Weak, stale, missing, or out-of-scope upstream work returns
209
158
  | Market context | `macro-analyst` | Macro, rates, FX, commodities, liquidity, policy, and cross-asset transmission. |
210
159
  | Market context | `instrument-analyst` | ETF/index, options, crypto public market structure, credit-signal boundary, and instrument mechanics. |
211
160
  | Decision review | `valuation-analyst` | Valuation ranges, scenario assumptions, multiples, sensitivity, and decision-quality gaps. |
161
+ | Decision review | `judgment-reviewer` | Independent challenge review of accepted artifacts for contrary evidence, source trust, overconfidence, update triggers, and invalidation conditions. |
212
162
  | Portfolio | `portfolio-manager` | Portfolio fit, sizing, concentration, liquidity, opportunity cost, and draft order-ticket readiness. |
213
163
  | Risk | `risk-manager` | Downside, restricted-list checks, policy readiness, approval readiness, and approval receipts. |
214
164
  | Execution | `execution-operator` | Approved submission/cancel/status through the TradingCodex service boundary only; live requires all gates. |
215
165
 
216
166
  ---
217
167
 
218
- ## Surfaces
168
+ ## Key Features
219
169
 
220
- | Surface | Role |
170
+ | Feature | What it gives you |
221
171
  | --- | --- |
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. |
172
+ | Agentic workflow planning | Natural-language prompts become staged plans, selected role teams, accepted artifacts, and explicit `waiting`, `revise`, or `blocked` states. |
173
+ | Independent judgment review | `judgment-reviewer` challenges accepted artifacts for contrary evidence, source trust, overconfidence, update triggers, and invalidation conditions. |
174
+ | Decision Packages | Investment theses keep forecastable claims, lifecycle assumptions, contrary evidence, owner roles, follow-up, and postmortem requirements. |
175
+ | Strategy skills | `strategy-creator` turns user rules into reusable strategy skills without granting order approval, execution, broker, or policy authority. |
176
+ | File-native research memory | Research markdown, role reports, source snapshots, readiness labels, versions, and handoff metadata remain ordinary workspace files. |
177
+ | Service-gated execution | Order tickets, approvals, policy checks, idempotency, broker connections, account sync, and audit stay behind Django service-layer gates. |
178
+ | 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. |
179
+
180
+ ---
181
+
182
+ ## Architecture
183
+
184
+ ```mermaid
185
+ flowchart LR
186
+ user([User prompt]) --> manager[Head manager]
187
+ manager --> agents[Fixed role agents]
188
+ agents --> artifacts[Accepted artifacts]
189
+ artifacts --> reviewer[Judgment reviewer]
190
+ reviewer --> decision[Decision Package]
191
+ decision --> service[Django service plane]
192
+ service --> gates[Policy approval audit gates]
193
+ gates --> execution[Paper execution or gated live provider]
194
+ service --> surfaces[Web Admin API MCP CLI]
195
+ service --> memory[File native research memory]
196
+ ```
227
197
 
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.
198
+ The architecture is intentionally small: Codex owns coordination and role
199
+ handoffs; Django owns durable policy, order, approval, portfolio, integration,
200
+ research, and audit behavior. The core package uses Django templates, local
201
+ static HTMX, and small plain JavaScript. There is no Node, bundler, React, or
202
+ frontend build step.
231
203
 
232
204
  ---
233
205
 
@@ -257,8 +229,8 @@ provide investment recommendations or guarantee returns.
257
229
  | Status | Milestone |
258
230
  | --- | --- |
259
231
  | 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. |
232
+ | Current `0.3.1` | Codex-native Decision Packages, independent judgment-review gate, staged workflow planning, artifact-supervisor loop closure state, Evidence Run/Validation Cards, provider capability profiles, and Python `>=3.11,<3.15` support. |
233
+ | Next | Deeper validation scenarios, richer provider capability profiles, stronger generated-workspace smoke coverage, and improved artifact quality tooling. |
262
234
  | 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
235
 
264
236
  ---
@@ -273,6 +245,7 @@ validation, and release policy.
273
245
  | --- | --- |
274
246
  | [Installation](installation.md) | Setup, update, GitHub-main install, MCP/service startup, and smoke checks. |
275
247
  | [Docs index](docs/README.md) | Human-readable reading paths, document ownership, and change-to-doc routing. |
248
+ | [User-facing skills](docs/user-facing-skills.md) | Which primary or supporting skill fits each user workflow and what each must not do. |
276
249
  | [Core concepts and rules](docs/core-concepts-and-rules.md) | Fast operating reference for planes, guardrails, roles, execution lifecycle, and research memory. |
277
250
  | [Product direction](docs/product-direction.md) | Product thesis, target user posture, goals, non-goals, runtime defaults, and scope. |
278
251
  | [Workspace orchestration model](docs/harness.md) | Top-level workflow model, components, guardrails, improvement, and naming rules. |
@@ -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
+ [User-Facing Skills](#user-facing-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,32 @@ comes only from installed, reviewed providers and explicit live gates.
52
52
 
53
53
  ---
54
54
 
55
- ## Features
55
+ ## User-Facing 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 skill:
58
+
59
+ | Primary 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
+ | Supporting skill | Use when | Main output |
67
+ | --- | --- | --- |
68
+ | `plan-workflow` | You want an explicit workflow plan before role dispatch or implementation. | Bounded plan with selected stages, roles, gates, and waiting/revise/blocked posture. |
69
+ | `automate-workflow` | You want to define a repeatable workflow automation without executing trades. | Automation recipe, trigger scope, guardrails, and review requirements. |
70
+ | `postmortem` | A workflow, decision, artifact, or execution/process step needs review after the fact. | Failure analysis, missed assumptions, source-quality lessons, and future warning patterns. |
71
+
72
+ Most investment prompts enter through natural language, then the hook writes
73
+ compact intake and `head-manager` uses `tcx-workflow` to draft, validate, and
74
+ record the staged plan before dispatch. See
75
+ [User-facing skills](docs/user-facing-skills.md) for the detailed routing map.
70
76
 
71
77
  ---
72
78
 
73
79
  ## Installation
74
80
 
75
- ### Option 1 - Attach TradingCodex To The Current Workspace
76
-
77
81
  Run this from the empty workspace where you want Codex agents to work:
78
82
 
79
83
  ```bash
@@ -89,64 +93,9 @@ When TradingCodex MCP autostarts the local service, open:
89
93
  http://127.0.0.1:48267/
90
94
  ```
91
95
 
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.
96
+ See [installation.md](installation.md) for persistent CLI install, GitHub-main
97
+ install, source-development setup, update flows, installer-script equivalents,
98
+ MCP/service details, and smoke checks.
150
99
 
151
100
  ---
152
101
 
@@ -178,25 +127,48 @@ workflow has earned. Weak, stale, missing, or out-of-scope upstream work returns
178
127
  | Market context | `macro-analyst` | Macro, rates, FX, commodities, liquidity, policy, and cross-asset transmission. |
179
128
  | Market context | `instrument-analyst` | ETF/index, options, crypto public market structure, credit-signal boundary, and instrument mechanics. |
180
129
  | Decision review | `valuation-analyst` | Valuation ranges, scenario assumptions, multiples, sensitivity, and decision-quality gaps. |
130
+ | Decision review | `judgment-reviewer` | Independent challenge review of accepted artifacts for contrary evidence, source trust, overconfidence, update triggers, and invalidation conditions. |
181
131
  | Portfolio | `portfolio-manager` | Portfolio fit, sizing, concentration, liquidity, opportunity cost, and draft order-ticket readiness. |
182
132
  | Risk | `risk-manager` | Downside, restricted-list checks, policy readiness, approval readiness, and approval receipts. |
183
133
  | Execution | `execution-operator` | Approved submission/cancel/status through the TradingCodex service boundary only; live requires all gates. |
184
134
 
185
135
  ---
186
136
 
187
- ## Surfaces
137
+ ## Key Features
188
138
 
189
- | Surface | Role |
139
+ | Feature | What it gives you |
190
140
  | --- | --- |
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. |
141
+ | Agentic workflow planning | Natural-language prompts become staged plans, selected role teams, accepted artifacts, and explicit `waiting`, `revise`, or `blocked` states. |
142
+ | Independent judgment review | `judgment-reviewer` challenges accepted artifacts for contrary evidence, source trust, overconfidence, update triggers, and invalidation conditions. |
143
+ | Decision Packages | Investment theses keep forecastable claims, lifecycle assumptions, contrary evidence, owner roles, follow-up, and postmortem requirements. |
144
+ | Strategy skills | `strategy-creator` turns user rules into reusable strategy skills without granting order approval, execution, broker, or policy authority. |
145
+ | File-native research memory | Research markdown, role reports, source snapshots, readiness labels, versions, and handoff metadata remain ordinary workspace files. |
146
+ | Service-gated execution | Order tickets, approvals, policy checks, idempotency, broker connections, account sync, and audit stay behind Django service-layer gates. |
147
+ | 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. |
148
+
149
+ ---
150
+
151
+ ## Architecture
152
+
153
+ ```mermaid
154
+ flowchart LR
155
+ user([User prompt]) --> manager[Head manager]
156
+ manager --> agents[Fixed role agents]
157
+ agents --> artifacts[Accepted artifacts]
158
+ artifacts --> reviewer[Judgment reviewer]
159
+ reviewer --> decision[Decision Package]
160
+ decision --> service[Django service plane]
161
+ service --> gates[Policy approval audit gates]
162
+ gates --> execution[Paper execution or gated live provider]
163
+ service --> surfaces[Web Admin API MCP CLI]
164
+ service --> memory[File native research memory]
165
+ ```
196
166
 
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.
167
+ The architecture is intentionally small: Codex owns coordination and role
168
+ handoffs; Django owns durable policy, order, approval, portfolio, integration,
169
+ research, and audit behavior. The core package uses Django templates, local
170
+ static HTMX, and small plain JavaScript. There is no Node, bundler, React, or
171
+ frontend build step.
200
172
 
201
173
  ---
202
174
 
@@ -226,8 +198,8 @@ provide investment recommendations or guarantee returns.
226
198
  | Status | Milestone |
227
199
  | --- | --- |
228
200
  | 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. |
201
+ | Current `0.3.1` | Codex-native Decision Packages, independent judgment-review gate, staged workflow planning, artifact-supervisor loop closure state, Evidence Run/Validation Cards, provider capability profiles, and Python `>=3.11,<3.15` support. |
202
+ | Next | Deeper validation scenarios, richer provider capability profiles, stronger generated-workspace smoke coverage, and improved artifact quality tooling. |
231
203
  | 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
204
 
233
205
  ---
@@ -242,6 +214,7 @@ validation, and release policy.
242
214
  | --- | --- |
243
215
  | [Installation](installation.md) | Setup, update, GitHub-main install, MCP/service startup, and smoke checks. |
244
216
  | [Docs index](docs/README.md) | Human-readable reading paths, document ownership, and change-to-doc routing. |
217
+ | [User-facing skills](docs/user-facing-skills.md) | Which primary or supporting skill fits each user workflow and what each must not do. |
245
218
  | [Core concepts and rules](docs/core-concepts-and-rules.md) | Fast operating reference for planes, guardrails, roles, execution lifecycle, and research memory. |
246
219
  | [Product direction](docs/product-direction.md) | Product thesis, target user posture, goals, non-goals, runtime defaults, and scope. |
247
220
  | [Workspace orchestration model](docs/harness.md) | Top-level workflow model, components, guardrails, improvement, and naming rules. |
@@ -10,6 +10,7 @@ Use these docs when you want the deeper "why" behind TradingCodex behavior. Codi
10
10
  | --- | --- | --- |
11
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
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) |
13
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) |
14
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) |
15
16
  | Understand implementation architecture | [system-architecture.md](./system-architecture.md) | [interfaces-and-surfaces.md](./interfaces-and-surfaces.md), [components.md](./components.md) |
@@ -41,6 +42,7 @@ If these layers disagree, treat `docs/` as the durable product intent and fix th
41
42
 
42
43
  | Document | Owns |
43
44
  | --- | --- |
45
+ | [user-facing-skills.md](./user-facing-skills.md) | User-facing primary and supporting skills, routing posture, and role-owned skill boundaries. |
44
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. |
45
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. |
46
48
  | [financial-workflow-references.md](./financial-workflow-references.md) | Research-backed finance workflow principles and non-expert UX requirements for workflow intake and handoffs. |
@@ -52,7 +54,7 @@ If these layers disagree, treat `docs/` as the durable product intent and fix th
52
54
  | --- | --- |
53
55
  | [guardrails.md](./guardrails.md) | Guardrail taxonomy: guidance, enforcement, and information barriers. |
54
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. |
55
- | [improvement-loop.md](./improvement-loop.md) | Workflow quality, research memory, skill evolution, postmortems, validation feedback, and quality-learning loops. |
57
+ | [improvement-loop.md](./improvement-loop.md) | Workflow quality, research memory, improve records, skill evolution, postmortem review, validation feedback, and quality-learning loops. |
56
58
 
57
59
  ## Implementation And Operations Documents
58
60
 
@@ -40,13 +40,17 @@ context discipline, approval gates, execution boundaries, and user scope.
40
40
  escalation-only sets.
41
41
  - Extend research artifact metadata with explicit follow-up requests, trigger
42
42
  types, materiality, suggested consent posture, and loop provenance.
43
+ - Let artifacts preserve `improvements` so repeated investment judgment
44
+ findings can feed `improve` review and later workflows instead of hidden
45
+ prompt drift.
43
46
  - Store loop state as file-native workspace state for Codex inspection,
44
47
  context-budget audit, product web preview, concurrent Codex app threads, and
45
48
  postmortems.
46
49
  - Keep all follow-up briefs compact: artifact path, context summary,
47
50
  trigger, delta question, constraints, and blocked actions.
48
- - Preserve Decision Quality Spine expectations inside the loop rather than
49
- keeping them as a separate monolithic PRD.
51
+ - Preserve Decision Quality Spine expectations, including source trust and
52
+ agent judgment review, inside the loop rather than keeping them as a separate
53
+ monolithic PRD.
50
54
  - Add tests and smoke checks that prove loops improve quality without widening
51
55
  authority.
52
56
 
@@ -337,8 +341,11 @@ Add file-native loop state records:
337
341
 
338
342
  ```text
339
343
  .tradingcodex/mainagent/workflow-loop-state.json # latest compact summary / pointer
344
+ .tradingcodex/mainagent/latest-workflow-intake.json # latest compact intake hint
345
+ .tradingcodex/mainagent/latest-workflow-plan.json # latest validated staged plan
346
+ .tradingcodex/mainagent/workflows/<workflow_run_id>/intake.json
347
+ .tradingcodex/mainagent/workflows/<workflow_run_id>/workflow-plan.json
340
348
  .tradingcodex/mainagent/workflows/<workflow_run_id>/loop-state.json # canonical run state
341
- .tradingcodex/mainagent/workflows/<workflow_run_id>/prompt-gate.json
342
349
  .tradingcodex/mainagent/session-workflow-runs.json # Codex session/thread -> workflow_run_id map
343
350
  ```
344
351
 
@@ -366,6 +373,7 @@ Canonical run-state shape:
366
373
  "completed_artifacts": [],
367
374
  "loop_decisions": [],
368
375
  "escalation_proposals": [],
376
+ "improvements": [],
369
377
  "blocked_actions": [],
370
378
  "stop_reason": ""
371
379
  }
@@ -409,6 +417,8 @@ Update these surfaces together:
409
417
  - Product web
410
418
  - preview loop state, follow-up requests, escalation proposals, and blocked
411
419
  actions without spawning agents, approving orders, or executing orders.
420
+ - show improve records as analysis-memory review items without applying
421
+ skill, policy, prompt, validation, approval, broker, or execution changes.
412
422
  - first release escalation proposals are read-only; escalation approval stays
413
423
  Codex-prompt or CLI driven with explicit user wording captured in audit.
414
424
 
@@ -530,7 +540,8 @@ follow-up is needed.
530
540
  synthesize using a closed action set.
531
541
  - Loop state is visible in workspace files and audit trails.
532
542
  - Context stays compact across iterations.
533
- - Decision Quality Spine fields still apply inside selected lanes.
543
+ - Decision Quality Spine fields, source trust notes, and judgment-review fields
544
+ still apply inside selected lanes.
534
545
  - Approval, execution, broker, secret, and policy boundaries are unchanged.
535
546
  - Generated workspace validation catches loop drift, unauthorized expansion,
536
547
  malformed follow-up requests, and unsupported synthesis.
@@ -37,10 +37,10 @@ paths clear.
37
37
  | --- | --- | --- |
38
38
  | `investment-request-routing` | Classifies user intent and activates fixed-role workflows. | `guardrail.guidance`, `improvement.workflow_quality` |
39
39
  | `fixed-role-dispatch` | Maintains head-manager, fixed subagent routing, and no-overlap handoff boundaries. | `guardrail.guidance`, `guardrail.information_barrier`, `improvement.workflow_quality` |
40
- | `research-memory` | Stores source-aware research artifacts, versions, snapshots, and exports. | `improvement.research_memory` |
41
- | `workflow-quality-gates` | Defines lane selection, Artifact Supervisor Loop policy, Decision Quality Spine, handoff acceptance, artifact readiness, claim discipline, and synthesis gates. | `guardrail.guidance`, `improvement.workflow_quality` |
40
+ | `research-memory` | Stores source-aware research artifacts, versions, snapshots, Evidence Run Cards, Validation Cards, and exports. | `improvement.research_memory` |
41
+ | `workflow-quality-gates` | Defines lane selection, Artifact Supervisor Loop policy, Decision Quality Spine, agent judgment review, handoff acceptance, artifact readiness, claim discipline, and synthesis gates. | `guardrail.guidance`, `improvement.workflow_quality` |
42
42
  | `decision-package` | Wraps workflow plans, artifact paths, profile gaps, blocked actions, and next steps in Codex-readable workspace markdown. | `guardrail.guidance`, `improvement.workflow_quality`, `improvement.research_memory` |
43
- | `artifact-quality-contract` | Evaluates workspace artifacts and forecast ledgers for source/as-of posture, claim tags, handoff state, confidence, missing evidence, and next-recipient routing metadata. | `guardrail.guidance`, `improvement.workflow_quality`, `improvement.research_memory` |
43
+ | `artifact-quality-contract` | Evaluates workspace artifacts, Evidence Run Cards, Validation Cards, source snapshots, and forecast ledgers for source/as-of posture, source trust, data-boundary warnings, claim tags, handoff state, confidence, missing evidence, judgment-review fields, and next-recipient routing metadata. | `guardrail.guidance`, `improvement.workflow_quality`, `improvement.research_memory` |
44
44
  | `context-efficiency-contract` | Keeps workflows bounded through compact briefs, artifact references, context summaries, source snapshot IDs, targeted full-artifact reads, and `subagents context-audit` validation. | `guardrail.guidance`, `guardrail.information_barrier`, `improvement.workflow_quality`, `improvement.context_efficiency` |
45
45
  | `responsibility-boundary-contract` | Separates durable role identity, tool permissions, skill procedures, artifact contracts, and projection ownership so changes stay local. | `guardrail.guidance`, `guardrail.information_barrier`, `improvement.workflow_quality`, `improvement.skill_evolution` |
46
46
  | `external-data-source-gate` | Keeps external evidence read-only and source-aware. | `guardrail.guidance`, `improvement.workflow_quality` |
@@ -52,7 +52,7 @@ paths clear.
52
52
  | `execution-boundary` | Keeps execution behind role action allowlists, approval, duplicate-request, connection, and audit checks. | `guardrail.enforcement`, `guardrail.information_barrier` |
53
53
  | `audit-ledger` | Records policy, MCP, order, approval, execution, and hook events. | `guardrail.enforcement`, `improvement.validation_feedback` |
54
54
  | `skill-improvement-loop` | Keeps core skills, strategy skills, and role-local optional skill files visible through validation, generated manifests, and read-only status. | `improvement.skill_evolution`, `guardrail.guidance` |
55
- | `postmortem-loop` | Turns rejected orders, process failures, thesis changes, artifact-loop blocks/escalations, and executions into improvements. | `improvement.postmortems`, `improvement.validation_feedback` |
55
+ | `postmortem-loop` | Turns rejected orders, process failures, thesis changes, artifact-loop blocks/escalations, and executions into improve records for later judgment review. | `improvement.postmortems`, `improvement.validation_feedback` |
56
56
  | `paper-execution` | Provides experimental local paper and validation-only execution paths behind the approved action boundary. | `guardrail.enforcement` |
57
57
 
58
58
  ## Runtime Surfaces
@@ -81,7 +81,7 @@ portfolio state or execution policy.
81
81
 
82
82
  ## Role Boundary Snapshot
83
83
 
84
- TradingCodex always uses `head-manager` as the main coordinator with nine fixed
84
+ TradingCodex always uses `head-manager` as the main coordinator with ten fixed
85
85
  subagents. Detailed responsibilities live in
86
86
  [roles-skills-and-workflows.md](./roles-skills-and-workflows.md).
87
87