Skip to content

v7.0.0: scorched earth breaking release#243

Closed
userFRM wants to merge 14 commits into
mainfrom
release/v7.0
Closed

v7.0.0: scorched earth breaking release#243
userFRM wants to merge 14 commits into
mainfrom
release/v7.0

Conversation

@userFRM
Copy link
Copy Markdown
Owner

@userFRM userFRM commented Apr 12, 2026

Summary

52 files changed, +2,177 / -3,323 lines (net -1,146 deleted)

Complete breaking refactor eliminating all legacy code, deprecated patterns, and dead weight.

Kill list (15/15 complete)

  • L1: 1,134 commented-out Python method lines deleted
  • L2: public-api-redesign.md deleted (unimplemented aspiration)
  • L3: cargo fmt failure fixed
  • L4: Docs consistency checker fixed (pointed at wrong files)
  • L5: Python already clean (no duplicates found)
  • L6: 4 streaming endpoints generated from TOML (hand-written blocks deleted)
  • L7: Go hand-written duplicates deleted (-780 lines)
  • L8: C++ hand-written duplicates deleted (-262 lines)
  • L9: FFI sentinels (NaN/-1) replaced with explicit has_* bool flags
  • L10: Version bumped to 7.0.0 across 6 crates
  • L11: Dual generation model killed — build.rs writes SDK surfaces directly
  • L12: Already collapsed (review's earlier refactor)
  • L13: SnapshotTradeTick deleted from all layers (11 files)
  • L14: migration-from-rest-ws.md deleted
  • L15: 44 dependencies updated via cargo update

Verification (all pass)

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace (248 tests, 0 failures)
  • python3 scripts/check_docs_consistency.py
  • cargo build --release -p thetadatadx-ffi
  • go build ./... && go test ./...
  • cargo check --manifest-path sdks/python/Cargo.toml
  • cmake --build build/cpp --target thetadatadx_cpp
  • git diff --exit-code -- 'sdks/**/generated_*' 'ffi/src/generated_*' (no drift)

Spec

docs/superpowers/specs/2026-04-10-v7-scorched-earth-design.md

userFRM and others added 14 commits April 11, 2026 23:14
Captures the kill list (14 items), target architecture, 7-phase
execution plan, and verification gates for the v7.0.0 release.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…(L1)

These were hand-written #[pymethods] functions replaced by
include!("generated_historical_methods.rs"). Delete for real.

Part of v7.0.0 scorched earth refactor (Phase 0).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Unimplemented aspirational plan. Deleted to avoid confusing agents
reading it as implemented truth. README table row removed.

Part of v7.0.0 scorched earth refactor (Phase 0).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Go struct moved to generated_endpoint_options.go, C++ struct moved to
generated_endpoint_options.hpp.inc. Updated both regex targets.

Part of v7.0.0 scorched earth refactor (Phase 0).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
v7 is a clean break. Old REST/WS migration story removed from nav,
getting-started index, and the file itself.

Part of v7.0.0 scorched earth refactor (Phase 0).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Follow-up to L14 deletion — checker expected the file and nav entry.

Part of v7.0.0 scorched earth refactor (Phase 0).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… (L8)

Remove 261 lines of commented-out hand-written option/index/calendar/interest-rate
method implementations from thetadx.cpp. These were superseded by the code-generated
`generated_historical.cpp.inc` include and served no purpose as dead code.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
stock_snapshot_trade returns TdxTradeTickArray. SnapshotTradeTick
was an unused type that has been toggling in and out. Final answer:
delete from tick.rs, tick_schema.toml, decode.rs, all SDK headers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…(L7)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…(L9)

TdxEndpointRequestOptions no longer uses -1/NaN as "unset" markers
for int/float fields. Each field now has a companion has_* bool.
String fields (venue, min_time, etc.) still use null for "unset".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…itten blocks (L6)

The 4 streaming_endpoint! invocations (stock/option trade/quote stream)
are now generated from endpoint_surface.toml. direct.rs retains only
session management, gRPC setup, and collect_stream helpers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
BREAKING: Version bumped to 7.0.0 across the workspace.
- SnapshotTradeTick deleted from all layers
- FFI options use explicit has_* flags (no more NaN/-1 sentinels)
- generate_sdk_surfaces binary removed (build.rs handles it)
- Streaming endpoints generated from TOML
- 1,134 lines of commented-out Python code deleted
- public-api-redesign.md and migration guide deleted
- All hand-written SDK method duplicates removed (Python/Go/C++)
- docs consistency checker fully operational
- Python SDK streaming codegen fixed (stream builders are not futures)
- CI updated: SDK drift check via git diff replaces deleted binary
- Endpoint count updated: 61 → 65 (4 streaming endpoints)
- OpenAPI spec updated with streaming endpoint operationIds
- All dependencies updated (cargo update)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@userFRM
Copy link
Copy Markdown
Owner Author

userFRM commented Apr 12, 2026

Closed — created without following repo workflow discipline. Changes need to be broken into individual issues → branches → PRs per the CONTRIBUTING.md process.

@userFRM userFRM closed this Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant