Skip to content

fix: trios-doctor + workspace healing — Closes #113 #114 #115 #116 #117 - #120

Merged
gHashTag merged 9 commits into
mainfrom
feat/trios-fpga
Apr 20, 2026
Merged

gHashTag merged 9 commits into
mainfrom
feat/trios-fpga

Conversation

@gHashTag

Copy link
Copy Markdown
Owner

Summary

  • trios-doctor: new leukocyte diagnostics crate (workspace-level check/test/clippy, 3 commands)
  • trios-tri: fixed 6 clippy violations (renamed inherent add/sub/mul/neg/default methods)
  • trios-llm: added missing serde_json dependency (was blocking cargo test --workspace)
  • trios-training-ffi: fixed unused imports, added ffi feature gate
  • trios-hdc/trios-sacred/trios-golden-float/trios-physics: gated all Zig FFI under has_zig_lib cfg — stubs when Zig vendor absent
  • trios-fpga: new crate — FPGA build/flash pipeline + QMTECH XC7A100T board support
  • Workspace clippy: fixed all warnings across trios-hybrid, trios-vm, trios-vsa, trios-sdk, trios-server, trios-training

Verification

cargo check --workspace    → GREEN (33 crates)
cargo test --workspace     → 383 passed, 0 failed (74 suites)
cargo clippy --workspace   → 0 warnings

Closes #113 #114 #115 #116 #117

- Board profiles: QMTECH XC7A100T, Arty A7-100T, Arty A7-35T
- BuildPipeline: Verilog gen, Yosys synth, nextpnr P&R, bitstream
- FlashPipeline: JTAG loading via openFPGALoader (ft2232/xvc-client)
- XdcConstraints: parse, preprocess for nextpnr, minimal pin sets
- SynthReadiness: scan specs for synthesis readiness
- 33 FPGA module catalog (mac, uart, spi, bridge, top_level, hir, ...)
- 7/7 unit tests passing
- Extracted from t27 bootstrap/src/main.rs FPGA functions
- board: 20 tests — profiles, accessors, parse, display, serialize, edge cases
- build: 24 tests — config, paths, top wrapper gen, XDC prep, part YAML, prjxray mapping
- flash: 13 tests — cable detect, bitstream detect, config defaults, file IO
- xdc: 24 tests — parse pins/comments/clocks, preprocess, serialize, minimal XDC
- synth_readiness: 21 tests — scan dirs, parse/typecheck checks, TDD gate, mixed specs
- integration: 6 tests — module catalog integrity, no duplicates, core/EDA/accel presence
… 0 failures — Closes #114

- trios-hdc, trios-sacred: gate extern C under #[cfg(has_zig_lib)], provide stubs
- trios-golden-float, trios-physics: same pattern, build.rs emits has_zig_lib
- trios-doctor: rewritten to 3 workspace-level commands (was 96)
- cargo test --workspace: 383 passed, 0 failed, 74 suites
- cargo check --workspace: GREEN
- trios-fpga: String::from instead of format!, collapsed if, char patterns
- trios-hybrid: removed unused Ternary import, added Safety docs
- trios-training: pub fields, derive Default for FineWebBatch
- trios-vm: added Safety docs, prefixed unused params
- trios-vsa: added Safety docs, removed unused c_char
- trios-sdk: added Safety docs, prefixed unused params
- trios-server: allow dead_code for stub main
- trios-hdc/trios-sacred: cfg-gate libc imports
- trios-golden-float/trios-physics: cfg-gate libc imports, unused vars
- has_zig_lib: added check-cfg lint allowance in all 4 FFI crates
…bench mut

- Remove test_3seeds.sh (L1/L7 violation)
- trios-kg: remove unused imports in e2e/integration tests
- trios-tri: remove unused ops imports, fix RangeInclusive pattern
- trios-crypto: cfg-gate test imports for ffi feature
- trios-train-cpu: fix bench variable shadowing, remove unnecessary mut
- trios-ca-mask: allow erasing_op for test assertions
- trios-golden-float: fix excessive precision in PHI constant
- trios-train-cpu: use LOG2_E const instead of magic number
- trios-crypto: cfg-gate all test imports under ffi feature
- trios-training-ffi: cfg-gate test under not(ffi)
- trios-zig-agents: allow dead_code for stubs
- cargo clippy --all-targets --all-features -- -D warnings: 0 errors
@gHashTag
gHashTag merged commit ce0a0cc into main Apr 20, 2026
2 checks passed
@gHashTag
gHashTag deleted the feat/trios-fpga branch April 20, 2026 17:49
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.

feat: trios-doctor — leukocyte diagnostics crate for workspace self-healing

1 participant