- Rust 83.8%
- TypeScript 10.2%
- CSS 3.2%
- Shell 2.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .agents/skills | ||
| .github/workflows | ||
| crates | ||
| docs | ||
| scripts | ||
| .gitignore | ||
| AGENTS.md | ||
| AGENTS.module-lifecycle.addendum.md | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CODEX_KICKOFF_PROMPT.md | ||
| README.md | ||
Offline RF Signal Analysis PoC
Last updated: 1 November 2026
signal-core generates and analyzes bounded synthetic WAV/CSV pairs; pattern-engine ranks compatible analysis records against analyst-labelled examples. This is a software workflow demonstration on uncalibrated audio, not operational RF identification. See development status for milestone evidence.
Synthetic demo (M1 import and M2 analysis)
cargo run -p signal-core -- generate data/generated/demo 1234
cargo run -p signal-core -- inspect data/generated/demo data/generated/demo/manifest.csv
cargo run -p signal-core -- analyze data/generated/demo data/generated/demo/manifest.csv data/generated/demo-analysis
bash scripts/module_gate.sh signal-core
The generator creates one second of 48 kHz mono PCM16 audio with seed-dependent noise. Generated data lives under the Git-ignored data/generated/ directory; generation refuses to overwrite an existing pair. Import accepts the provisional CSV v0.1 contract and mono/stereo PCM16 audio up to 32 MiB. IQ, real recordings, unsupported codecs and unsafe paths are rejected until their metadata and provenance are defined.
analyze accepts declared mono audio and creates analysis.json plus a local view.html with waveform, spectrum and spectrogram previews. It refuses to overwrite an output directory. Measurements are normalized audio values, and the view clearly marks its synthetic origin and review state.
M3 candidate retrieval
Create separate synthetic reference and query pairs, then analyze each with signal-core. Put a catalog CSV beside the analysis directories:
label,analysis_path
pattern_A,reference-analysis/analysis.json
Rank the held-out query locally:
cargo run -p pattern-engine -- rank data/generated/catalog.csv data/generated/query-analysis/analysis.json 3 0.2
bash scripts/module_gate.sh pattern-engine
The last two arguments are top-N and a distance threshold selected for the demo. Results contain measurement differences and an explicit needs_review, unknown or low_quality state. Scores are not probabilities or confirmed identities.
M4 analyst review
Run the multi-pair synthetic workflow with bash scripts/demo_m4.sh data/generated/m4-demo. It creates and analyzes three independent pairs, ranks a held-out query and prints the M2 viewer paths. Open the printed view.html files locally before recording a decision. The script does not decide for the analyst.
cargo run -p review-workflow -- record data/generated/m4-demo/ranked.json data/generated/m4-demo/history analyst-1 confirm synthetic-101 "Reviewed the synthetic waveform and spectrum"
cargo run -p review-workflow -- history data/generated/m4-demo/history synthetic-303
The local CLI accepts confirm, reject or unknown (- as candidate ID for unknown). Each decision adds a new evidence-linked event; a correction adds another event. The analyst name is supplied by the operator and is not authenticated. Results remain synthetic demonstrations, not operational source identifications.
M5 daily draft report
The M4 demo creates results.csv and an empty history directory. For other batches, create a CSV next to the ranked results with one rank_result_path column. Paths are relative to that CSV and must remain within its directory:
rank_result_path
ranked.json
After reviewing the M4 results, generate one local-day DRAFT (use the observation date in Asia/Kuala_Lumpur):
cargo run -p report-engine -- draft 2026-10-31 data/generated/m4-demo/results.csv data/generated/m4-demo/history data/generated/m4-demo/report-2026-10-31
bash scripts/module_gate.sh report-engine
The command creates report.json and report.html in a new directory; open the HTML locally and use the browser's Print command for a PDF copy. It verifies ranked results, analysis hashes and recorded decisions. Only an explicit M4 confirmation counts as confirmed; the report stays DRAFT, SYNTHETIC and unapproved. The report date uses source observation time, while review actions retain their own timestamps.
M6 synthetic robustness evaluation
Run cargo test -p pattern-engine --test robustness -- --nocapture to reproduce the seeded, held-out mono-audio condition table and failure seeds in the M6 evaluation record. The study includes noise, intermittent interference, clipping, frequency drift and partial overlap. It reports matcher suggestions and unknown false acceptances; it does not estimate accuracy on public or client recordings.
M7 end-to-end demo, multi-day reports and benchmarks
bash scripts/demo_m7.sh data/generated/m7-demo runs the whole workflow in one script — generate/inspect/analyze three synthetic pairs, rank a held-out query, record an analyst decision, show the audit history, and publish both a daily DRAFT report (draft) and a multi-day range DRAFT report (draft-range <from> <to> <results.csv> <history-dir> <new-output-dir>, a span of at most 366 days — up to 367 calendar days). Empty days inside a range render with zero counts. All outputs stay DRAFT · SYNTHETIC.
bash scripts/bench.sh measures per-stage release-mode timings (ingest, features, match, view, report and range rendering) and process-tree peak RSS at 1 s/60 s/300 s synthetic sizes; observed results live in the M7 benchmark record. What still blocks a real pilot is listed in pilot prerequisites.
Web analyst console
bash scripts/demo_web.sh seeds three synthetic pairs, starts the local service, drives import → process → rank → decision → reports through the API once, and leaves the console at http://127.0.0.1:8787. The service is a thin axum wrapper (crates/web) over the existing library crates: it binds loopback only, has no login and no upload — import means scanning a local directory — and every action persists the same on-disk artifacts the CLIs produce, so report-engine draft accepts web-produced evidence unchanged (pinned by a parity test). The React frontend (crates/web/frontend, TypeScript + Vite) keeps the SYNTHETIC · DRAFT · LOCAL ONLY posture on screen, shows an explicit per-recording Process step with a staged animation, explains candidate agreement per feature, and journals every decision to the audit trail. Rebuild the UI with npm install && npm run build in crates/web/frontend (Node 22); the running service stays pure Rust and serves the built files.
Quick start
Install the Rust toolchain and coverage helper as needed:
rustup component add rustfmt clippy llvm-tools-preview
cargo install cargo-llvm-cov
The module review record separates executable gate results from agent review and audit evidence.
Key files
| Path | Responsibility |
|---|---|
AGENTS.md |
Durable, mandatory project-wide engineering instructions |
CODEX_KICKOFF_PROMPT.md |
One-time copy/paste kickoff prompt |
docs/DEVELOPMENT_PLAN.md |
Milestones M0–M7; no fixed deadlines |
docs/POC_SCOPE.md |
Business pain points, in/out of scope and demo acceptance |
docs/ARCHITECTURE.md |
Proposed modular Rust architecture and data flow |
docs/DATA_CONTRACT.md |
Versioned provisional WAV/CSV schema and metadata rules |
docs/DATASET_AND_EVALUATION.md |
Synthetic vs public vs customer evidence and robustness |
docs/TEST_STRATEGY.md |
TDD, numerical tests, coverage and module gates |
docs/REPORT_SPEC.md |
Daily report data, integrity and analyst approval |
docs/SECURITY_AND_LICENSING.md |
Safe ingestion, evidence handling, third-party reuse |
docs/HARDWARE_AND_BENCHMARK.md |
CPU/storage planning and measurement protocol |
docs/OPEN_SOURCE_REUSE.md |
Candidate libraries and license checks |
docs/DECISIONS.md |
Recorded architecture decisions |
docs/STATUS.md |
Living milestone and verification status |
.agents/skills/*/SKILL.md |
Project-specific process/domain skills |
scripts/module_gate.sh |
Formatting, Clippy, tests, 80% package/workspace coverage |
scripts/demo_m4.sh |
Repeatable multi-pair synthetic import, analysis and ranking demo |
scripts/demo_m7.sh |
Full end-to-end demo: import → rank → decision → daily and range draft reports |
scripts/demo_web.sh |
Web console demo: seed, serve crates/web, drive one API flow |
crates/web |
Local analyst web service (axum) + React frontend |
scripts/bench.sh |
Release-mode per-stage benchmark with peak-RSS capture |
scripts/workspace_gate.sh |
Workspace quality gate for CI |
.github/workflows/rust-quality.yml |
Forgejo CI: format, Clippy, dependency audit, tests and coverage |
docs/reviews/TEMPLATE.md |
Review and audit evidence template |
Milestone policy
Development is milestone-driven, never tied to elapsed days. Advance immediately after gates pass and report evidence at every checkpoint. Pause only for real blockers, unlicensed sources, incompatible customer inputs or material scope changes. Automated CI validates Rust commands; AI review/audit invocation requires observed action and recorded evidence.
Skills
Superpowers and Ponytail stay in their installed plugin location. This bundle does not re-install or modify them. Local skills coordinate them and add domain rules for file handling, DSP and reporting.
Scope limits
WAV+CSV only; no SDR hardware, client data or real-world validated model accuracy. The simulated demo must be labelled as such. No collection or interception features.