All notable changes to polar-bear-biochip are documented here.
This project adheres to Semantic Versioning.
rustfmt.toml- code-style rules (100 cols, Rust 2024 edition, crate-level imports).clippy.toml- Clippy config with MSRV 1.85.0 and complexity thresholds.env.example- template forANTHROPIC_API_KEY, model, cycle, and output tuningCHANGELOG.md- this fileCONTRIBUTING.md- contribution guide with full dev workflowFILE_STRUCTURE.md- annotated repository mapBUG-FIXES.md- root-cause analysis of resolved issuesdocs/architecture.md- full system architecture with ASCII layer diagram and data flowdocs/bci_math.md- EEG signal processing math: band taxonomy, derived indices, sensor fusion formulas, activity classification, random walk model, ICA notesexamples/sensors_demo.rs- standalone sensor fusion table demo (no API key)examples/provenance_demo.rs- ECDSA sign/verify/tamper demo (no API key)examples/agent_demo.rs- Rig AI agent demo (--features ai-agentor demo fallback)tests/sensor_tests.rs- 12 integration tests covering BCI, accelerometer, fusiontests/provenance_tests.rs- 14 integration tests covering ECDSA sign/verify/tampersrc/lib.rs- crate root with architecture diagram and public module re-exportssrc/error.rs- typedBiochipErrorhierarchy usingthiserrorsrc/provenance/ecdsa_signer.rs-EcdsaVerifierstandalone verifier struct;from_bytes()andfrom_hex()constructors;private_key_bytes()/verifying_key_hex().zed/tasks.json/debug.json- Zed IDE task and debug launch config
Cargo.toml- upgraded to Rust 2024 edition; addedrust-version = "1.85.0"(MSRV);[package.metadata.docs.rs],[lints.rust], and[lints.clippy]tables;[features]withai-agentoptional flag gatingrig-core ^0.37+dotenvy; relaxed=exact pins to^semver-compatible; addedthiserror ^2anddotenvy ^0.15; added[dev-dependencies](pretty_assertions,tokio-test); release profile:panic = "abort",strip = "debuginfo"src/main.rs- restructured torun/verifysubcommands (clapSubcommand);&PathBufparameters replaced with&Path;AlertLevel::Displayused instead of inline match; inline verification now uses standaloneEcdsaVerifiersrc/types.rs- addedfmt::DisplayforBciReading,AccelerometerReading,FusedReading, andAlertLevel; addedEqderive onActivityStateandAlertLevelsrc/sensors/bci.rs- addedDefaultimpl; 3 inline unit testssrc/sensors/accelerometer.rs- addedDefaultimpl; 4 inline unit testssrc/sensors/fusion.rs- addedDefaultimpl; 3 inline unit tests with boundary and monotonicity assertionssrc/agent/biochip_agent.rs- restructured withai-agentfeature flag;rig-coreused when feature is enabled;curlsubprocess as fallback; addedDefaultimpl (demo = true); 3 inline unit testssrc/provenance/ecdsa_signer.rs- 7 inline unit tests; consistent withpolar-bear-hft-cryptoECDSA module style.github/workflows/ci.yml- added: MSRV check (1.85.0),cargo docvalidation,ai-agentfeature build and test steps, smoke-test job withverifycommand
- Fix 1 -
src/main.rs:run_cycleparameter changed from&PathBufto&Path.&PathBufis a double-indirection anti-pattern;&Pathis the idiomatic Rust type for borrowed path references (clippyptr_arglint). - Fix 2 -
src/agent/biochip_agent.rs: removed#[cfg(not(feature = "demo_only"))]dead feature flag attribute that referenced a non-existent feature. - Fix 3 -
src/main.rs: replaced inlineAlertLevelmatch arms withresult.alert_level.Displayimpl, eliminating the duplicated match pattern.
Initial release:
- Multi-sensor BCI + accelerometer fusion pipeline
- EEG band simulation (δ θ α β γ) with derived attention and meditation indices
- Sensor fusion:
cognitive_load,emotional_valence,arousal_level - rig-core–compatible
BioChipAgentwith demo mode (no API key required) - ECDSA secp256k1 signing of every
InferenceResult→ tamper-evidentSignedOutputJSON --verifyCLI flag for offline signature verification- GitHub Actions CI: build + smoke test