tradeagent 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. tradeagent-1.0.0/.gitignore +45 -0
  2. tradeagent-1.0.0/AGENTS.md +37 -0
  3. tradeagent-1.0.0/CHANGELOG.md +143 -0
  4. tradeagent-1.0.0/CONTRIBUTING.md +14 -0
  5. tradeagent-1.0.0/LICENSE +202 -0
  6. tradeagent-1.0.0/MANIFEST.in +8 -0
  7. tradeagent-1.0.0/PKG-INFO +231 -0
  8. tradeagent-1.0.0/README.md +199 -0
  9. tradeagent-1.0.0/README.zh-CN.md +177 -0
  10. tradeagent-1.0.0/SECURITY.md +13 -0
  11. tradeagent-1.0.0/THIRD_PARTY.md +12 -0
  12. tradeagent-1.0.0/config/canary-policy.template.json +47 -0
  13. tradeagent-1.0.0/config/canary.example.json +14 -0
  14. tradeagent-1.0.0/config/config.example.json +12 -0
  15. tradeagent-1.0.0/config/risk.example.json +13 -0
  16. tradeagent-1.0.0/config/small-balance-shadow.example.json +12 -0
  17. tradeagent-1.0.0/docs/MCP_CONTRACT_1_7_0_REVIEW.md +33 -0
  18. tradeagent-1.0.0/docs/UPSTREAM_PROVENANCE.json +21 -0
  19. tradeagent-1.0.0/docs/alpha-findings.md +98 -0
  20. tradeagent-1.0.0/docs/architecture.md +158 -0
  21. tradeagent-1.0.0/docs/canary-review.md +87 -0
  22. tradeagent-1.0.0/docs/commissioning.md +148 -0
  23. tradeagent-1.0.0/docs/continuous-v5.md +110 -0
  24. tradeagent-1.0.0/docs/dashboard.md +76 -0
  25. tradeagent-1.0.0/docs/deployment.md +54 -0
  26. tradeagent-1.0.0/docs/deployment_manifest.json +168 -0
  27. tradeagent-1.0.0/docs/event-driven-v6.md +184 -0
  28. tradeagent-1.0.0/docs/evidence/2026-10-16/README.md +91 -0
  29. tradeagent-1.0.0/docs/evidence/2026-10-16/records.json +700 -0
  30. tradeagent-1.0.0/docs/examples/commissioning-fixture-summary.json +869 -0
  31. tradeagent-1.0.0/docs/examples/rsi-demo-future.example.json +91 -0
  32. tradeagent-1.0.0/docs/examples/rsi-demo-snapshot.example.json +193 -0
  33. tradeagent-1.0.0/docs/examples/rsi-demo-summary.json +35 -0
  34. tradeagent-1.0.0/docs/examples/tradeplan-alpha-results.json +1458 -0
  35. tradeagent-1.0.0/docs/examples/tradeplan-protocol.json +53 -0
  36. tradeagent-1.0.0/docs/getting-started.md +101 -0
  37. tradeagent-1.0.0/docs/market-data.md +75 -0
  38. tradeagent-1.0.0/docs/one-shot.md +271 -0
  39. tradeagent-1.0.0/docs/opportunity-research-v2.md +109 -0
  40. tradeagent-1.0.0/docs/opportunity-workflow.md +347 -0
  41. tradeagent-1.0.0/docs/prospective-shadow.md +180 -0
  42. tradeagent-1.0.0/docs/releasing.md +47 -0
  43. tradeagent-1.0.0/docs/research-protocol.md +214 -0
  44. tradeagent-1.0.0/docs/safety.md +17 -0
  45. tradeagent-1.0.0/docs/tradeplan-engine.md +139 -0
  46. tradeagent-1.0.0/licenses/Oft3r-MIT.txt +21 -0
  47. tradeagent-1.0.0/licenses/abiemann-MIT.txt +21 -0
  48. tradeagent-1.0.0/licenses/cbangera2-MIT.txt +21 -0
  49. tradeagent-1.0.0/pyproject.toml +54 -0
  50. tradeagent-1.0.0/scripts/check_project.py +109 -0
  51. tradeagent-1.0.0/scripts/check_release.py +136 -0
  52. tradeagent-1.0.0/scripts/commissioning_fixture.py +67 -0
  53. tradeagent-1.0.0/scripts/install_continuous.py +96 -0
  54. tradeagent-1.0.0/scripts/install_events.py +144 -0
  55. tradeagent-1.0.0/scripts/install_shadow.py +244 -0
  56. tradeagent-1.0.0/setup.cfg +4 -0
  57. tradeagent-1.0.0/src/tradeagent/__init__.py +1 -0
  58. tradeagent-1.0.0/src/tradeagent/account_policy.py +49 -0
  59. tradeagent-1.0.0/src/tradeagent/accounting.py +127 -0
  60. tradeagent-1.0.0/src/tradeagent/broker.py +497 -0
  61. tradeagent-1.0.0/src/tradeagent/calendar.py +55 -0
  62. tradeagent-1.0.0/src/tradeagent/canary_review.py +457 -0
  63. tradeagent-1.0.0/src/tradeagent/canary_review_cli.py +95 -0
  64. tradeagent-1.0.0/src/tradeagent/cli.py +172 -0
  65. tradeagent-1.0.0/src/tradeagent/codex_bridge.py +320 -0
  66. tradeagent-1.0.0/src/tradeagent/contracts/market-data-1.7.0.json +334 -0
  67. tradeagent-1.0.0/src/tradeagent/contracts/official-1.6.2.json +3397 -0
  68. tradeagent-1.0.0/src/tradeagent/contracts/official-1.7.0.json +4704 -0
  69. tradeagent-1.0.0/src/tradeagent/contracts/official-1.7.3.json +4733 -0
  70. tradeagent-1.0.0/src/tradeagent/contracts/options-research-1.8.0.json +696 -0
  71. tradeagent-1.0.0/src/tradeagent/dashboard/__init__.py +0 -0
  72. tradeagent-1.0.0/src/tradeagent/dashboard/jobs.py +167 -0
  73. tradeagent-1.0.0/src/tradeagent/dashboard/readers.py +632 -0
  74. tradeagent-1.0.0/src/tradeagent/dashboard/server.py +501 -0
  75. tradeagent-1.0.0/src/tradeagent/dashboard/static/app.css +435 -0
  76. tradeagent-1.0.0/src/tradeagent/dashboard/static/app.js +1366 -0
  77. tradeagent-1.0.0/src/tradeagent/dashboard/static/favicon.svg +1 -0
  78. tradeagent-1.0.0/src/tradeagent/dashboard/static/index.html +35 -0
  79. tradeagent-1.0.0/src/tradeagent/demo.py +145 -0
  80. tradeagent-1.0.0/src/tradeagent/doctor.py +179 -0
  81. tradeagent-1.0.0/src/tradeagent/execution.py +123 -0
  82. tradeagent-1.0.0/src/tradeagent/execution_policy.py +685 -0
  83. tradeagent-1.0.0/src/tradeagent/friendly.py +105 -0
  84. tradeagent-1.0.0/src/tradeagent/health.py +111 -0
  85. tradeagent-1.0.0/src/tradeagent/legacy/__init__.py +1 -0
  86. tradeagent-1.0.0/src/tradeagent/legacy/autonomous.py +270 -0
  87. tradeagent-1.0.0/src/tradeagent/legacy/canary.py +292 -0
  88. tradeagent-1.0.0/src/tradeagent/legacy/cli.py +79 -0
  89. tradeagent-1.0.0/src/tradeagent/legacy/policy.py +363 -0
  90. tradeagent-1.0.0/src/tradeagent/legacy/release.py +29 -0
  91. tradeagent-1.0.0/src/tradeagent/legacy/runner.py +152 -0
  92. tradeagent-1.0.0/src/tradeagent/legacy/standalone.py +201 -0
  93. tradeagent-1.0.0/src/tradeagent/legacy/standalone_cli.py +149 -0
  94. tradeagent-1.0.0/src/tradeagent/legacy/standalone_reference.py +211 -0
  95. tradeagent-1.0.0/src/tradeagent/legacy/strategy.py +118 -0
  96. tradeagent-1.0.0/src/tradeagent/legacy/supervised_cli.py +138 -0
  97. tradeagent-1.0.0/src/tradeagent/market_mcp.py +38 -0
  98. tradeagent-1.0.0/src/tradeagent/model.py +330 -0
  99. tradeagent-1.0.0/src/tradeagent/oneshot.py +1211 -0
  100. tradeagent-1.0.0/src/tradeagent/oneshot_cli.py +404 -0
  101. tradeagent-1.0.0/src/tradeagent/opportunity_cli.py +457 -0
  102. tradeagent-1.0.0/src/tradeagent/opportunity_live.py +486 -0
  103. tradeagent-1.0.0/src/tradeagent/options.py +463 -0
  104. tradeagent-1.0.0/src/tradeagent/owner.example.toml +37 -0
  105. tradeagent-1.0.0/src/tradeagent/paths.py +24 -0
  106. tradeagent-1.0.0/src/tradeagent/prospective/__init__.py +1 -0
  107. tradeagent-1.0.0/src/tradeagent/prospective/access.py +92 -0
  108. tradeagent-1.0.0/src/tradeagent/prospective/assessor.py +339 -0
  109. tradeagent-1.0.0/src/tradeagent/prospective/collector.py +211 -0
  110. tradeagent-1.0.0/src/tradeagent/prospective/continuous.py +741 -0
  111. tradeagent-1.0.0/src/tradeagent/prospective/daily.py +722 -0
  112. tradeagent-1.0.0/src/tradeagent/prospective/daily_reporting.py +698 -0
  113. tradeagent-1.0.0/src/tradeagent/prospective/event_assessor.py +137 -0
  114. tradeagent-1.0.0/src/tradeagent/prospective/event_reporting.py +246 -0
  115. tradeagent-1.0.0/src/tradeagent/prospective/event_store.py +124 -0
  116. tradeagent-1.0.0/src/tradeagent/prospective/events.py +764 -0
  117. tradeagent-1.0.0/src/tradeagent/prospective/providers.py +252 -0
  118. tradeagent-1.0.0/src/tradeagent/prospective/sec_events.py +381 -0
  119. tradeagent-1.0.0/src/tradeagent/prospective/service.py +379 -0
  120. tradeagent-1.0.0/src/tradeagent/prospective/v5_supplement.py +197 -0
  121. tradeagent-1.0.0/src/tradeagent/research/__init__.py +1 -0
  122. tradeagent-1.0.0/src/tradeagent/research/agent_market.py +17 -0
  123. tradeagent-1.0.0/src/tradeagent/research/alpha_data.py +113 -0
  124. tradeagent-1.0.0/src/tradeagent/research/alpha_experiment.py +486 -0
  125. tradeagent-1.0.0/src/tradeagent/research/alpha_signals.py +126 -0
  126. tradeagent-1.0.0/src/tradeagent/research/attribution.py +133 -0
  127. tradeagent-1.0.0/src/tradeagent/research/bidirectional.py +454 -0
  128. tradeagent-1.0.0/src/tradeagent/research/call_put.py +603 -0
  129. tradeagent-1.0.0/src/tradeagent/research/demo.py +234 -0
  130. tradeagent-1.0.0/src/tradeagent/research/domain.py +298 -0
  131. tradeagent-1.0.0/src/tradeagent/research/evidence_cohorts.py +212 -0
  132. tradeagent-1.0.0/src/tradeagent/research/evolution.py +265 -0
  133. tradeagent-1.0.0/src/tradeagent/research/expressions.py +167 -0
  134. tradeagent-1.0.0/src/tradeagent/research/feedback.py +98 -0
  135. tradeagent-1.0.0/src/tradeagent/research/history_data.py +182 -0
  136. tradeagent-1.0.0/src/tradeagent/research/lab.py +163 -0
  137. tradeagent-1.0.0/src/tradeagent/research/learning.py +264 -0
  138. tradeagent-1.0.0/src/tradeagent/research/market.py +58 -0
  139. tradeagent-1.0.0/src/tradeagent/research/opportunities.py +492 -0
  140. tradeagent-1.0.0/src/tradeagent/research/opportunity_workflow.py +1231 -0
  141. tradeagent-1.0.0/src/tradeagent/research/option_economics.py +55 -0
  142. tradeagent-1.0.0/src/tradeagent/research/outcomes.py +148 -0
  143. tradeagent-1.0.0/src/tradeagent/research/put_shadow.py +318 -0
  144. tradeagent-1.0.0/src/tradeagent/research/replay.py +550 -0
  145. tradeagent-1.0.0/src/tradeagent/research/reporting.py +73 -0
  146. tradeagent-1.0.0/src/tradeagent/research/research_universe.py +68 -0
  147. tradeagent-1.0.0/src/tradeagent/research/selector.py +87 -0
  148. tradeagent-1.0.0/src/tradeagent/research/store.py +425 -0
  149. tradeagent-1.0.0/src/tradeagent/research/tradeplan.py +390 -0
  150. tradeagent-1.0.0/src/tradeagent/risk.py +177 -0
  151. tradeagent-1.0.0/src/tradeagent/robinhood_login.py +497 -0
  152. tradeagent-1.0.0/src/tradeagent/schema.py +234 -0
  153. tradeagent-1.0.0/src/tradeagent/simulator.py +501 -0
  154. tradeagent-1.0.0/src/tradeagent/standalone_mcp.py +578 -0
  155. tradeagent-1.0.0/src/tradeagent/state.py +310 -0
  156. tradeagent-1.0.0/src/tradeagent/strategy.py +132 -0
  157. tradeagent-1.0.0/src/tradeagent/supervised.py +759 -0
  158. tradeagent-1.0.0/src/tradeagent/vendor/__init__.py +1 -0
  159. tradeagent-1.0.0/src/tradeagent/vendor/client.py +33 -0
  160. tradeagent-1.0.0/src/tradeagent/vendor/exceptions.py +21 -0
  161. tradeagent-1.0.0/src/tradeagent/vendor/indicators.py +23 -0
  162. tradeagent-1.0.0/src/tradeagent/vendor/run_lock.py +366 -0
  163. tradeagent-1.0.0/src/tradeagent/vendor/trend.py +24 -0
  164. tradeagent-1.0.0/src/tradeagent.egg-info/PKG-INFO +231 -0
  165. tradeagent-1.0.0/src/tradeagent.egg-info/SOURCES.txt +216 -0
  166. tradeagent-1.0.0/src/tradeagent.egg-info/dependency_links.txt +1 -0
  167. tradeagent-1.0.0/src/tradeagent.egg-info/entry_points.txt +2 -0
  168. tradeagent-1.0.0/src/tradeagent.egg-info/requires.txt +8 -0
  169. tradeagent-1.0.0/src/tradeagent.egg-info/top_level.txt +1 -0
  170. tradeagent-1.0.0/tests/conftest.py +16 -0
  171. tradeagent-1.0.0/tests/dashboard_fixtures.py +258 -0
  172. tradeagent-1.0.0/tests/test_account_and_market_rules.py +227 -0
  173. tradeagent-1.0.0/tests/test_bidirectional.py +718 -0
  174. tradeagent-1.0.0/tests/test_broker_contract.py +246 -0
  175. tradeagent-1.0.0/tests/test_call_put.py +611 -0
  176. tradeagent-1.0.0/tests/test_canary_execution.py +246 -0
  177. tradeagent-1.0.0/tests/test_canary_reference.py +154 -0
  178. tradeagent-1.0.0/tests/test_canary_review.py +404 -0
  179. tradeagent-1.0.0/tests/test_commissioning.py +306 -0
  180. tradeagent-1.0.0/tests/test_continuous.py +313 -0
  181. tradeagent-1.0.0/tests/test_contract_173.py +252 -0
  182. tradeagent-1.0.0/tests/test_contract_pins.py +180 -0
  183. tradeagent-1.0.0/tests/test_daily_excess.py +81 -0
  184. tradeagent-1.0.0/tests/test_daily_news.py +594 -0
  185. tradeagent-1.0.0/tests/test_daily_reporting.py +397 -0
  186. tradeagent-1.0.0/tests/test_daily_research.py +424 -0
  187. tradeagent-1.0.0/tests/test_daily_signal_timing.py +318 -0
  188. tradeagent-1.0.0/tests/test_dashboard.py +301 -0
  189. tradeagent-1.0.0/tests/test_doctor.py +52 -0
  190. tradeagent-1.0.0/tests/test_events_v6.py +626 -0
  191. tradeagent-1.0.0/tests/test_evidence_cohorts.py +355 -0
  192. tradeagent-1.0.0/tests/test_execution_lifecycle.py +894 -0
  193. tradeagent-1.0.0/tests/test_fractional_live.py +383 -0
  194. tradeagent-1.0.0/tests/test_friendly_onboarding.py +60 -0
  195. tradeagent-1.0.0/tests/test_history_auth.py +257 -0
  196. tradeagent-1.0.0/tests/test_market_capability.py +148 -0
  197. tradeagent-1.0.0/tests/test_market_freshness.py +153 -0
  198. tradeagent-1.0.0/tests/test_market_providers.py +363 -0
  199. tradeagent-1.0.0/tests/test_onboarding.py +29 -0
  200. tradeagent-1.0.0/tests/test_oneshot.py +322 -0
  201. tradeagent-1.0.0/tests/test_opportunities.py +594 -0
  202. tradeagent-1.0.0/tests/test_opportunity_coverage.py +371 -0
  203. tradeagent-1.0.0/tests/test_opportunity_live.py +488 -0
  204. tradeagent-1.0.0/tests/test_opportunity_policies.py +535 -0
  205. tradeagent-1.0.0/tests/test_owner_recovery.py +426 -0
  206. tradeagent-1.0.0/tests/test_production_oneshot.py +501 -0
  207. tradeagent-1.0.0/tests/test_prospective.py +608 -0
  208. tradeagent-1.0.0/tests/test_release_policy.py +710 -0
  209. tradeagent-1.0.0/tests/test_research_integrity.py +84 -0
  210. tradeagent-1.0.0/tests/test_research_loop.py +450 -0
  211. tradeagent-1.0.0/tests/test_review_expiry_recovery.py +331 -0
  212. tradeagent-1.0.0/tests/test_robinhood_login.py +249 -0
  213. tradeagent-1.0.0/tests/test_safety.py +419 -0
  214. tradeagent-1.0.0/tests/test_server_version_drift.py +70 -0
  215. tradeagent-1.0.0/tests/test_standalone.py +599 -0
  216. tradeagent-1.0.0/tests/test_supervised_contract.py +105 -0
  217. tradeagent-1.0.0/tests/test_tradeplan_engine.py +376 -0
  218. tradeagent-1.0.0/tests/test_v5_supplement.py +45 -0
@@ -0,0 +1,45 @@
1
+ .venv/
2
+ work/
3
+ *.snapshot.json
4
+ __pycache__/
5
+ *.py[cod]
6
+ *.egg-info/
7
+ .pytest_cache/
8
+ .ruff_cache/
9
+ build/
10
+ dist/
11
+ .env
12
+ .env.*
13
+ !*.example.*
14
+ config/config.json
15
+ config/risk.json
16
+ config/*.local.*
17
+ data/*
18
+ !data/.gitkeep
19
+ *token*.json
20
+ *credentials*
21
+ *.sqlite*
22
+ *.db
23
+ *.log
24
+ *.jsonl
25
+
26
+
27
+ .codex/
28
+ .tokens/
29
+ *.pem
30
+ *.key
31
+ secrets.*
32
+
33
+ # Operator artifacts are never source inputs
34
+ *.lock
35
+ *.lease
36
+ *.jsonl.*
37
+ *.cookie*
38
+ *session*.json
39
+ *auth*.json
40
+ *.p12
41
+ *.pfx
42
+ config/*policy.local.*
43
+
44
+ # Internal assistant handoffs belong in ignored local work
45
+ GPT_HANDOFF.md
@@ -0,0 +1,37 @@
1
+ # Contributor instructions
2
+
3
+ TradeAgent is a prospective quantitative laboratory with a separate execution substrate.
4
+ Read README, docs/architecture.md and docs/research-protocol.md before changing the loop.
5
+
6
+ - Strategies receive market snapshots and produce immutable Predictions, never account
7
+ state, broker intents or execution authorization. Keep all enabled versions in shadow.
8
+ - Keep exact version/implementation identity, availability timestamps, append-only
9
+ evidence, independent synthetic/replay pools and frozen challenger evaluation rules.
10
+ - Preserve losing history, explicit promotion/rejection/retirement and prior-only selector state.
11
+ - Daily learning changes statistical state; it does not rewrite source or observations.
12
+ - Preserve the execution substrate's durable submission identity, capital bounds,
13
+ locks, fill persistence, recovery and reconciliation. Legacy control workflows are
14
+ optional compatibility code and must not enter the default research path.
15
+ - Use mock brokers and new synthetic local Linux state. Never read or modify operator
16
+ runtime state, credentials or signing artifacts during development. No real trading
17
+ without a separate explicit operational request.
18
+ - Preserve vendor files, licenses and docs/UPSTREAM_PROVENANCE.json. Regenerate the
19
+ optional legacy manifest after source changes with check_project.py --update-manifest;
20
+ it is not a research trading gate. Preserve unrelated user work.
21
+
22
+ Validation:
23
+
24
+ ```bash
25
+ python -m pytest -q
26
+ ruff check src tests scripts
27
+ ruff format --check src tests scripts
28
+ python -m compileall -q src
29
+ python -m build
30
+ python -m twine check dist/*
31
+ python scripts/check_project.py
32
+ tradeagent demo --demo-dir work/fresh-rsi-demo
33
+ ```
34
+
35
+ Commit only source and sanitized reproducible artifacts. Never commit runtime DBs,
36
+ private reports, authentication files or real-account data. Keep internal handoffs and validation evidence under ignored work/ only; never
37
+ commit AI handoff artifacts. Public docs describe the software and its operation.
@@ -0,0 +1,143 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0 — 2026-10-16
4
+
5
+ Python distribution version: `1.0.0`. First stable release.
6
+
7
+ - `tradeagent dashboard`: a local web dashboard. Today's session as a
8
+ timeline with the scheduled steps, every frozen AI decision with Codex's thesis,
9
+ catalyst, invalidation and sources, per-arm results against SPY and Random (verdicts
10
+ only after 20 paired sessions), the strategy lab's weights, and live/paper trades
11
+ with fills, P&L and the execution timeline. Finds installed timers and the live run
12
+ automatically; English and Simplified Chinese; light and dark. Loopback only, GET
13
+ only, Host-checked, strict CSP, SQLite opened read-only; never reads tokens.
14
+ - READMEs rewritten: a TL;DR up top, dashboard screenshots, about a third shorter;
15
+ details moved to `docs/` (new `docs/dashboard.md`). The Chinese README and dashboard
16
+ copy are written natively rather than translated.
17
+
18
+ ## 1.0.0-beta.9 — 2026-10-15
19
+
20
+ Python distribution version: `1.0.0b9`. First release published to PyPI
21
+ (`pipx install tradeagent`).
22
+
23
+ - Robinhood MCP updates are checked for compatibility instead of an exact version and
24
+ schema pin. Additive changes (new optional inputs, new response fields, new tools)
25
+ keep trading working and are reported by `live-check`; incompatible changes to equity
26
+ or account tools fail closed with the tool and reason; a broken option tool disables
27
+ only option features. Both real past upgrades replay as compatible. Legacy
28
+ Codex/canary paths keep the strict pin.
29
+ - `tradeagent doctor`: offline setup checklist with the next command to run.
30
+ - `tradeagent login` / `logout`: browser sign-in to the official Robinhood Trading MCP
31
+ (standard OAuth discovery, dynamic client registration and PKCE). The access and
32
+ refresh tokens are stored owner-only; the engine still obtains tokens only through the external
33
+ helper, which `login` installs at the existing default path.
34
+ - `login` creates `~/.config/tradeagent/tradeagent.toml`; LIVE commands use it when
35
+ `--config` is omitted. `state_dir` and `oauth_helper` now have per-user defaults.
36
+ - `tradeagent` with no arguments prints grouped help. `demo`, `run-once --paper` and
37
+ `live-check` add a short human summary on interactive terminals; JSON on stdout is
38
+ unchanged. `live-check` names the missing sign-in instead of a generic failure.
39
+ - Tests isolate HOME/XDG directories so they never see a developer's real config.
40
+ - README rewritten for new users, with a Simplified Chinese version (`README.zh-CN.md`)
41
+ linked from the top of each: comparison with existing tools, two-minute tour,
42
+ safety guarantees and honest results status.
43
+
44
+ ## 1.0.0-beta.8 — 2026-10-15
45
+
46
+ Python distribution version: `1.0.0b8`.
47
+
48
+ - Add isolated event-driven v6: official SEC submissions/original disclosures,
49
+ declared fair access, deduplicated prospective events and budgeted subscription
50
+ Codex interpretation. Historical connectivity never becomes a live opportunity.
51
+ - Independent Fast, Delayed and Quant+Codex arms share the appropriate fresh
52
+ quotes, with 1/3/5 subsequent-session close observations and corporate-action
53
+ evidence checks. Match incremental comparisons and cluster by entry session.
54
+ - Add four independent SHADOW workers/timers and a read-only v5 supplement with
55
+ pairwise delays, separate benchmark cohorts and completeness by session period.
56
+ Preserve existing protocols, installed environments, timers and v5 priority guard.
57
+
58
+ ## 1.0.0-beta.7 — 2026-10-15
59
+
60
+ Python distribution version: `1.0.0b7`.
61
+
62
+ - Add isolated continuous Quant SHADOW v5, five-minute rolling discovery and real
63
+ forward bid/ask observations at 1/3/5/10-minute delays and a common signal+60m exit.
64
+ - Freeze signal transitions, liquidity, uncalibrated forecasts, costs and the eligible
65
+ basket. Preserve missing and stale signals; compare matched delays by session clusters.
66
+ - Independent SQLite/captures and systemd units; no LLM calls or broker writes.
67
+ Existing v1/v2 captures take priority and v3/v4 activation remains unchanged.
68
+
69
+ ## 1.0.0-beta.6 — 2026-10-15
70
+
71
+ Python distribution version: `1.0.0b6`.
72
+
73
+ - Add isolated `daily-call-put-v4`: signed Quant and independent Codex Price/News
74
+ choices use long Calls/Puts, genuine entry ask/exit bid, whole-contract allocation,
75
+ idle cash and explicit modeled fees. Equity, SPY and CASH remain separate controls.
76
+ - Existing minutely SHADOW pipeline captures endpoints and generates daily reports.
77
+ The 11:00 ET capture avoids v1/v2 Codex windows and checks their service activity.
78
+ - Persist option-data HTTP 403 as an access blocker and suppress automatic retries.
79
+ Timer enablement requires successful genuine prospective Call and Put cycles;
80
+ prepare-only installs a verified disabled timer. V1/v2/v3 history remains frozen.
81
+
82
+ ## 1.0.0-beta.5 — 2026-10-14
83
+
84
+ Python distribution version: `1.0.0b5`.
85
+
86
+ - Existing daily SHADOW ticks generate `daily-report.md` with frozen P&L, quote/cost
87
+ details, candidate coverage, and separately labeled exploratory basket, ranking,
88
+ disagreement and news comparisons. Missing evidence remains explicit.
89
+ - `python -m tradeagent.prospective.daily --report-only --state-dir PATH --protocol NAME`
90
+ regenerates the derived report without collection, inference or a decision tick.
91
+ - Preserve v1/v2 selection rules, frozen observations, windows and costs; v3 remains
92
+ dependent on genuine option quotes and explicit operator enablement.
93
+
94
+ ## 1.0.0-beta.4 — 2026-10-13
95
+
96
+ Python distribution version: `1.0.0b4`. Supersedes the unpublished beta.3.
97
+
98
+ - New `daily-news-v2` SHADOW experiment: at 10:30 ET two concurrent Codex assessments of the
99
+ same three candidates share one prompt, schema, model and deadline and differ only in web
100
+ access (live search with cited, dated sources vs. search disabled). Both get the same entry,
101
+ exit and costs, alongside Quant only, Quant + news Codex and seeded Random.
102
+ Install it with `install_shadow.py --daily --protocol daily-news-v2` and its own state
103
+ directory. `daily-four-arm-v1` is unchanged.
104
+ - `daily-status.json` now reports each arm's net return in excess of the benchmark over the
105
+ same window, and paired excess differences with standard errors, so an arm that is simply
106
+ long more often in a rising market no longer looks like skill.
107
+ - Exit-only recovery and read-only reconciliation keep working when Robinhood bumps the MCP
108
+ server version without changing tool schemas. New entries still require the reviewed version.
109
+ - The Codex event parser ignores blank lines.
110
+
111
+ ## 1.0.0-beta.3 — 2026-10-12
112
+
113
+ Python distribution version: `1.0.0b3`.
114
+
115
+ - Review and pin the authenticated Robinhood MCP 1.7.3 broker contracts.
116
+ - Retain any-agent provenance without filtering account orders or changing ownership.
117
+ - Permit exact legacy-contract journal inspection through read-only reconciliation; saved reviews and write recovery remain blocked on contract mismatch.
118
+ - Preserve owner limits, execution authorization, SHADOW capability and frozen research protocols.
119
+
120
+ ## 1.0.0-beta.2 — 2026-10-12
121
+
122
+ Python distribution version: `1.0.0b2`.
123
+
124
+ - Isolate SHADOW market collection to the two existing pinned market-data contracts.
125
+ - Batch quote requests at 20 symbols to preserve previous-session close references.
126
+ - Preserve full LIVE broker contract validation and review/place/cancel authorization.
127
+ - Preserve strategy identities, daily-four-arm-v1, scheduled windows and existing evidence.
128
+
129
+ ## [1.0.0-beta.1](https://github.com/danielye0010/TradeAgent/releases/tag/v1.0.0-beta.1) — 2026-10-09
130
+
131
+ First packaged beta release. Python distribution version: `1.0.0b1`.
132
+
133
+ - Market scanning, immutable forecasts and cost-aware quantitative TradePlans.
134
+ - Scheduled SHADOW comparison of Quant Only, Codex Only, Quant + Codex and seeded Random.
135
+ - Separate, explicitly owner-authorized US equity/ETF execution through the official
136
+ Robinhood Trading MCP, with durable order identity, reconciliation and recovery.
137
+ - Synthetic research demos and simulated broker lifecycles.
138
+ - Linux support with Python 3.12–3.14; wheel, source distribution and SHA-256 checksums.
139
+ - Clarified installation, research/LIVE boundaries and release validation.
140
+
141
+ Prospective profitability and Codex uplift are not established. SHADOW results are
142
+ modeled outcomes, not actual fills. This packaging release preserves strategy
143
+ identities and persisted protocol versions.
@@ -0,0 +1,14 @@
1
+ # Contributing
2
+
3
+ Implement focused changes and validate them against real repository files.
4
+ Read [Architecture](docs/architecture.md) and [Research protocol](docs/research-protocol.md).
5
+
6
+ Install `python -m pip install -e ".[dev]"`. Run the checks in [AGENTS.md](AGENTS.md).
7
+ Tests and demos must use mocked brokers and fresh synthetic local state.
8
+
9
+ Preserve immutable evidence and execution correctness. Introduce new strategy versions
10
+ rather than changing registered parameters or implementation hashes. A successful
11
+ run verifies software; it does not establish alpha or profitability.
12
+
13
+ Never commit credentials, private keys, account identifiers or runtime state.
14
+ Retain upstream attribution and byte-identical vendored sources.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,8 @@
1
+ include .gitignore README.md README.zh-CN.md CHANGELOG.md LICENSE THIRD_PARTY.md CONTRIBUTING.md SECURITY.md AGENTS.md
2
+ recursive-include config *.example.json *.template.json
3
+ recursive-include docs *.md *.json
4
+ recursive-include scripts *.py
5
+ recursive-include tests *.py
6
+ recursive-include licenses *.txt
7
+
8
+ include src/tradeagent/owner.example.toml