# FRUITFLY browser assay

Two different verifications:
1. `habitat-assay.json` matches the byte checksum of the original 2026-09-11 visual-interface archive. This checks file integrity, not recomputation.
2. `browser-assay.mjs` computes a newly frozen 170-cell / 840-edge LIF cut in the browser and compares all 42 integer result windows with Python results in `browser-assay-reference.json`.

The cut is NOT the original 165,122-neuron assay. It omits external edges and replaces the full visual encoder with artificial 100 Hz input to selected L1/L2 cells. It cannot validate whole-brain behavior. Exact equality applies to integer window summaries, not every floating-point state.

## Files
- `browser-assay-fixture.json`: cells, body IDs, weights, source graph hash, parameters and selection rule.
- `browser-assay-reference.json`: frozen independent Python results and SHA-256 digests.
- `browser-assay.mjs`: standalone JavaScript engine, usable in browser or Node.
- `browser-assay-worker.js`: runs local computation without blocking the page. No wallet or write API.
- `build_browser_assay.py`: extraction rule and independent Python reference implementation.

To verify in Python, download the fixture and builder into one directory, install numpy and scipy, import `run` from the builder, and execute it for connected, no-input and blocked. Only rebuilding the extracted graph requires the full source graph under work/science and its manifest. Never substitute a differently hashed graph and claim the same reference.

Full-network source data: https://male-cns.janelia.org/ . The website Research page links original methods and reference simulator. Matching this project's own frozen reference is a reproducibility check, not independent third-party endorsement.

## Media
The two visual-controls MP4 files each last 15 seconds. They display 14 recorded 20 ms windows (280 ms model time), with all three conditions sharing the same window. Seed is explicit. Chart lines guide the eye; there is no interpolation of neural samples, synthetic body locomotion or per-neuron geometry. The poster shows the connected condition's peak window.

Data attribution and code license: BROWSER-ASSAY-NOTICE.txt.
