Skip to content

XT-Forge v0.4.2-Damascus

Choose a tag to compare

@XtrComSu XtrComSu released this 18 Nov 12:36
· 12 commits to main since this release

XT-Forge v0.4.2-Damascus

Added

  • Context-Miss Diagnostics & Unseen Generalization (route context --diagnose):
    • --diagnose, --expected-file, and --expected-line across Rust (xtforge-native) and Python (xtforge.core.route.pack) report indexed, rank, score, drop_reason, and token cutoffs (20/20 hit rate on context_tasks.json vs 3/20 map baseline; 8/8 on held-out context_tasks_unseen.json).
  • Live Evidence Freshness (digest + incremental cache invalidation):
    • Packed context slices include SHA-256 digest and start_line..end_line provenance; live rename/move/delete edits invalidate affected code_graph.db edges and cached slices without manual rebuilds (tests/test_context_freshness.py).
  • Crash-Safe Tool Call Recovery & MCP Cancellation:
    • xtforge.core.call_journal and Go internal/mcp/journal.go track pending / completed / unknown states with request-scoped notifications/cancelled propagation and dead-upstream session respawn (tests/test_call_recovery.py).
  • Measured Discovery Cost & 3-Tier Live Harness Benchmarks:
    • scripts/bench_discovery_cost.py: Go --meta startup schema is 1,384 B (346 tok) and Python fallback is 1,007 B (252 tok) — direct MCP exposure wins 1-turn calls on tiny 4-tool catalogs, while --meta saves 93.1% at 50 tools and 98.5% at 229 tools.
    • scripts/bench_three_tier.py (Find, Fix, Recover) + tests/test_shipped_packages.py covering Python wheel (xtforge), npm (xt-forge, xtf), and install.sh.

Fixed

  • Full RELRO Detection (re checksec): Inspects DT_FLAGS (BIND_NOW) and DT_FLAGS_1 (NOW) alongside DT_BIND_NOW in both Go and Python (Full on /bin/ls).
  • Bundled SQLite in Rust (native/xtforge-rs/Cargo.toml): Enabled rusqlite bundled feature so Rust builds cleanly without system libsqlite3-dev headers.
  • codec CLI & Entropy Scanner: Fixed argparse intermixed option handling in codec CLI and eliminated false-positive high_entropy alerts on snake/kebab identifiers and expected.json fixtures.
  • Version, Packaging & Proxy Accuracy: Aligned 0.4.2-Damascus version metadata (serverInfo and clientInfo), fixed doctor native_dir and engine reporting (caps.py), moved the MCP stdio implementation into wheel-included xtforge/adapters/mcp_server.py, and forwarded custom env blocks from mcp_upstreams.json.

Verification

  • cargo test: 6 passed, 0 failed (xtforge-native release built)
  • go test -count=1 -race ./...: 4 packages ok (guard, intel, mcp, rehub; 4 packages have no tests) (xtforge-hub built)
  • python3 -m unittest discover -s tests -v: 509 tests OK
  • node --test plugins/xt-native/test/*.test.mjs: 17 passed, 0 failed