Thank you for helping improve SSD Sentinel! Before making changes—especially to storage, recovery, or Win32 I/O modules—please review docs/ARCHITECTURE.md and docs/SAFETY_SPEC.md.
- Windows 10 or Windows 11 (x64)
- Rust stable toolchain (
cargo,rustfmt,clippy) - Node.js
>= 22and npm - smartmontools 7.5 placed locally (not checked into Git; see THIRD_PARTY.md):
tools/smartmontools/bin/smartctl.exetools/smartmontools/bin/drivedb.htools/smartmontools/doc/COPYING.txttools/smartmontools/doc/checksums64.txt
Tip: You can test and develop most UI and Rust features without touching physical disks using
--snapshot-dir src-tauri/tests/fixtures.
# 1. Install frontend dependencies
npm ci
# 2. Run the i18n guard, TypeScript unit tests and verify the production bundle
npm run check:i18n # also part of `npm test`
npm test
npm run build
# 3. Run Rust formatting, linter, core tests, and desktop unit tests
cargo fmt --manifest-path src-tauri/Cargo.toml -- --check
cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -j 1 -- -D warnings
cargo test --manifest-path src-tauri/Cargo.toml --no-default-features --no-fail-fast -j 1
cargo test --manifest-path src-tauri/Cargo.toml --no-fail-fast -j 1
# 4. Run Playwright mock-IPC UI smoke tests across TR/EN views & 390px mobile layout
cargo run --manifest-path src-tauri/Cargo.toml --no-default-features -j 1 --example export_fixture -- results/rust-fixture.json
node tools/smoke_tauri.mjs results/smoke-dev
# 5. (Elevated PowerShell) Run real cross-volume NTFS VHDX integration suite
pwsh -NoProfile -File tools/vhdx_integration_test.ps1- Default Read-Only Guard & Strict Read-Only Boundaries: Keep
Core::read_only_guarddefaulting totrueand enforcerequire_write_unlockedon every mutating IPC command. Scanning, SMART telemetry, forensic parsing ($MFT,$UsnJrnl,$I30, carving), and preview must never write to target volumes. - Dry-Run Preview & Confirmation Tokens: Mutating UI flows must present an accurate
DryRunSpecmanifest inside#confirmationand pass deterministic IPC confirmation tokens validated in Rustcore.rs. - Honest Telemetry: Never fabricate a
100%score orup_to_datestatus when a required SMART read or network check fails or lacks data. Surface partial warnings cleanly viaread_incomplete/partial_warnings. - Zero Privacy Leakage in Fixtures & Tests: Never commit real disk serial numbers, WWN/EUI-64 identifiers, user paths, or machine telemetry captures. Keep fixtures synthetic (
src-tauri/tests/fixtures/). - Bilingual Parity (
TR/EN): User-facing UI strings, badges, tooltips, and dialogs must support both Turkish and English cleanly viaL(tr, en)andsrc/i18n.ts. In Rust usecore.t(tr, en)/phase_bi(core, tr, en)(never a barephase(core, "...")) for anything the user can read.npm run check:i18nenforces this in CI; after adding Turkish text to Rust, runnpm run gen:i18n(and add a pair totools/backend_i18n_manual.mjsfor text that cannot usecore.t). Never changeprocess::CANCELLED; the UI translates it. - Portable parity: anything that writes files must use
core.config.data_dir(never%LOCALAPPDATA%directly) so portable mode (portable.txt/--portable) keeps all data next to the executable. - Clean-Room & Minimal External Bloat: Implement storage logic against documented Windows APIs only, keep dependencies lean, pass
npm audit/cargo audit, respect CSP rules insrc-tauri/tauri.conf.json, and preserve upstream license headers (MIT for project code; GPLv2+ notice forsmartmontools).
- Staging Dry-Run: Trigger
.github/workflows/release.ymlviaworkflow_dispatchto validate NSIS bundling and inspect staged build artifacts without publishing a public GitHub Release. - Release Candidates (
v*-rc.*,v*-beta.*): Pushing an RC/beta tag builds, verifies, attests (attest-build-provenance), and publishes a GitHub Pre-Release for staging verification. - Production (
vX.Y.Z): Pushing a stable semver tag publishes a full GitHub Release withSHA256SUMS.txtand Build Provenance attestation.
- Fork
yuefdev/ssd-sentineland create a focused feature/fix branch frommain. - Add or update unit/integration tests (
src-tauri/tests/, crate unit tests, ortests/ui.test.ts) for behavior changes. - Verify all CI checks pass locally (
npm test,npm run build,cargo fmt --check,cargo clippy,cargo test,smoke_tauri.mjs). - Fill out the PR checklist and explain what hardware/VHDX/snapshot scenarios you verified.