All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Version tags shaped <distribution>-vX.Y.Z (e.g. spikeforge-v0.3.1) mark
what was actually published to PyPI; the bare [X.Y.Z] headers below predate
that and describe the local source tree only.
- Refresh container CA certificates, bootstrap pip 26.2.2 from its verified wheel, and use Node 22.23.4 for the client build after the eMudhra certificate incident.
embeddingstages export to NIR as a one-hot ingest plus anAffinenode carrying the transposed lookup table, bit-exact against the stage module; graph inputs are one-hot float, never token ids (#169).- 2D eval-mode
batch_normstages export to NIR as oneAffinenode folding the frozen running statistics, within float32 fold rounding of the stage module. Training-mode,BatchNorm2d, and running-stat-less stages stay simulation-only with a typed refusal (#170). - The model hub accepts community uploads. Entries with
"source": "community"validate, with@handle/slugids rendering alongside the curated catalog; the hosted index (GET /v1/index.json, ETag-cached under the hub cache dir) loads through the existing catalog validator, and community downloads verify like direct-URL ones. New WebSocket pairshub_pull/hub_pull_stateandbundle_build/bundle_builtpull a community version and build a saved model into a.spkf(protocol 1.1). spikeforge-hub pushpublishes reference checkpoints and records accuracy claims. Areference/*catalog id pushes its packaged weights with the catalog's licence, dataset declarations, and measured scores;--checkpointpushes an outside.ptfile;--test-accuracy/--test-samples/--test-datasetrecord an uploader-claimed score into the bundle manifest (validated like the catalog,{}when unstated); and--description/--description-filesets the model-card body.pullsurfaces the recorded metrics labeled uploader-claimed. The reference release runbook isplans/hub_accounts_plan.md§8.4.- The verification report now carries the runner-measured model identity:
top-level
framework,kind,topology, andinput_shape, pinned inplans/hub_accounts_plan.md§7.3. The hub side already renders these keys, so machine-checked uploads show their real topology and kind. spikeforge-hubmanages community accounts and transfers.login/whoami/quotahandle the hub token and account position,pushbuilds a saved model and publishes it through the two-phase upload, andpulldownloads a community id (optionally pinned) through the existing inspect/compat/promote funnel, which now reads.spkfbundles exactly as it reads the checkpoints they were built from.- Encoding golden vectors pin the spike codings for a future C port.
tests/fixtures/encoding_goldens/freezes the exact input/output tensors of the rate, latency, delta, and random codings (pinned seeds) plusdelta_over_windowand oneWindowSpec.normalizecase, generated byscripts/generate_encoding_goldens.py;tests/test_encoding_goldens.pyre-encodes each fixture input and compares bit-for-bit, anddocumentation/encoding-goldens.mdspecifies each coding's math and RNG procedure. No encoder behavior changed. - Serving runs through a torch/C backend seam.
InferenceSession,ServingService,create_app, andspikeforge-serve run/servetake an inference backend:torch(the default) steps the bundle's module as before, whilenir-c(--backend nir-c,--c-liborNIR_C_RUNTIME_LIB) exports the bundle once throughexport_c_packageand steps its graph in-process inlibnir_c_runtime.sovia ctypes, carrying LI/Delay state across steps. Unsupported topologies fail with the typedCExportErrornaming their node kinds; C readouts match the torch path bit-exactly on the committed conv-net fixture (acceptance bar: 1e-3 max-abs). The C path steps one sample at a time on CPU and reports no per-stage spikes. See "Serving through the C runtime" indocumentation/model-deployment.md. - Bundles export a C-loadable package.
DeploymentBundle.export_c_packagewrites the NIR graph ingraph_summaryshape with the bundle's real weights as plain JSON plus a manifest recording the source bundle's identity; graphs using node kinds the C runtime rejects are refused with a typed error naming them. The.spkfformat itself is unchanged. - Quantized summaries feed the C loader's weight envelope.
export_quantized_summaryemitsgraph_summaryshape with every float weight replaced by the{data, dtype, scale, zero_point}envelope, using the same grids as the drift simulation. Thenonescheme returns the float summary unchanged. The JSON contract both producers satisfy is documented inplans/c_package_contract.md. - One shared 8-bit grid module.
spikeforge.compression.gridowns the(scale, zero_point)math the bundle codec and the drift simulation both derive from, including loadable degenerate grids (a positive scale that reproduces constant values instead of erasing them) and an unclamped uint8 zero-point so single-sign tensors keep their accuracy. - Exports validate against the C runtime profile.
validate_for_c_runtimereports every node, edge, and structural assumption thenir-c-runtimeloader would reject by node name and kind, andcheck_for_c_runtimeraises the typedCRuntimeUnsupportedErroron the same violations. The 11-kind supported set is single-sourced inspikeforge_targets/c_runtime.py, documented inplans/nir-c-runtime-profile.md. - NIR-unmappable stages carry per-kind verdicts.
plans/nir-unmappable-decisions.mdrecords whether each unmappable stage kind awaits an upstream primitive or decomposes into existing NIR (with the exact construction and follow-up issues), andUnsupportedStageErrorfor these kinds points at the record.
export_c_packagegates against the single-sourcednir-c-runtimeprofile instead of its local kind table, so shape violations (missing Affine bias, scalar grids, partial Flatten, unbroken cycles) refuse early with per-node names inCExportError.violations(#173).- The dashboard client's pipeline input helper now uses
isPlainObjectfrom@capsizellc/commonsinstead of its local object guard; behavior is unchanged. The client-fork provenance and diff classification are recorded inplans/snn_interpreter_provenance.mdandplans/client_diff_classification.md.
hub_import(andspikeforge-hub import) now verifies fetched bytes before anything is loaded: a checksum mismatch raises a typed integrity error and writes nothing, and checksum-less bytes are refused unless--allow-unverified(orSPIKEFORGE_HUB_ALLOW_UNVERIFIED=1) opts in. The verification outcome is recorded in the promoted checkpointmetaand the import report, andsource: urlcatalog entries must pin asha256like reference entries already do.- Dashboard deployments build the CPU image on the GitHub-hosted runner, transfer it over the pinned private connection, and verify the loaded revision before starting it without builds or pulls on the shared host.
- Documentation edge updates hold the shared Caddyfile lock while reading, validating and reloading, preserving routes added by a concurrent deploy.
- Target wheels and source distributions include all six energy cost tables, so installed artifacts report the same declared estimates as a checkout.
- Hub inspection resolves Hugging Face entries to their complete cached snapshot directory, including nested files, instead of selecting the first top-level file or rejecting a snapshot with only nested weights.
- Unsigned weight quantization preserves constant and near-constant tensors and their reported ranges instead of replacing nonzero layers with zeros.
- Raw-sample inference now advances every encoded timestep before returning
its final prediction.
InferenceSession.step_sample()andrun_samples()preserve batch shape and recurrent state for FC and spatial topologies; theirstepsfield counts encoded timesteps rather than raw samples. - CIFAR10-DVS's upstream licence is verified as CC-BY-4.0, read from the dataset's own figshare record (doi:10.6084/m9.figshare.4724671.v2) rather than asserted from secondary sources. MNIST stays unverified: its publisher page now serves an empty index with the data files gone.
- A
topology_paramsnum_classesoverride now wins everywhere. The resolved width is mirrored onto the engine, soengine.num_classes, the checkpoint meta card, and the built network agree with each other. Restoring a checkpoint adopts the stored resolved width, which also heals pre-fix cards whose top-level value was stale. - Hub calls identify with a
User-Agentthe edge accepts. The API client, the community-index refresh, artifact downloads, and the verification runner's fetch and signed callback previously sent the defaultPython-urllib/*agent, which the edge answers with 403 — sopullcould never refresh a fresh cache and authenticated calls never reached the API. All five call sites now sendspikeforge-hub(the runner sendsspikeforge-hub-verify).
- The Hetzner docs deploy reloads its validated Caddyfile. The shared
Caddyfile can be replaced while the running container still has its old
bind-mounted inode. The deploy now reloads the current host file from a
container-visible candidate and guards
docs.spikeforge.netat the origin. - The landing page no longer reads as a Capsize portfolio piece. The hero
carried an eyebrow link reading "CAPSIZE / NEURAL SYSTEMS" above the
spikeforgewordmark — styled like an agency's project-credit tag, which made a single open-source project's own homepage look like one entry in a larger portfolio. It's removed; thespikeforge · BSD-3-Clause · Capsize LLCfooter line still carries the attribution. The wordmark itself now colors its "spike" half in the site's accent color (landing/index.html,landing/assets/capsize-landing.css). - The model-hub catalog page now matches the landing page's design. It
was a plain light-background page with no relation to spikeforge.net's
look; it now shares the same dark palette, accent color, and typography
(linking
assets/capsize-landing.cssfor the color tokens, so the two cannot silently drift apart again) and carries the same wordmark and a small header nav back to the site. It does not carry the landing page's animated shader background (scripts/build_hub_page.py). - The README no longer opens with a dashboard screenshot. The dashboard
is one interface among several — library, CLI, dashboard, desktop app —
and leading with a screenshot of it read as though it were the product.
The screenshot stays in
documentation/dashboard.md, where it describes the dashboard specifically. The opening paragraph is shorter and states plainly what spikeforge is and the four ways to use it; the Quickstart section now also links the desktop app as a no-Docker way to try the dashboard. - The hub entry module is split along its seams.
spikeforge_hub/entry.py(411 lines) now holds theHubEntrydataclass and re-exports, with the schema constants inspikeforge_hub/entry_schema.pyand the validators inspikeforge_hub/entry_checks.py. Every resulting file is within the 250-line limit; import paths and behavior are unchanged.
Patch. Inference can now run through the nir-c-runtime C backend:
InferenceSession selects between torch and nir-c backends, with a
ctypes ABI layer (graph, runtime, tensor) loading libnir_c_runtime
(#155). Bundles export to C-loadable float packages and
{data, dtype, scale, zero_point} quantized envelopes (#156, #157).
embedding renders as one-hot ingest plus Affine and 2D eval-mode
batch_norm as an Affine fold; the C-package gate consumes the
single-sourced runtime profile (#169, #170, #173). Committed encoding
golden vectors pin RNG semantics as the oracle for the C port (#160).
Patch. Core-pin alignment with the 0.6.3 matrix row only; no code change.
Patch. New --backend torch|nir-c and --c-lib flags thread the C
inference path through the serve CLI and service (#155).
Patch. New nir-c-runtime capability profile with
validate_for_c_runtime / check_for_c_runtime, refusing unsupported
ops and structural violations with per-node names (#158); quantized-summary
export (#157); per-kind decision record for NIR-unmappable stages (#159).
Patch. All hub HTTP call sites send a spikeforge-hub User-Agent, which
the edge requires — the default urllib agent was answered 403, so pull
could never refresh a fresh cache and every authenticated call failed
before reaching the API (#174, contributes to #163).
Patch. New numpy / torch-optional ingest path: streaming no longer requires torch tensors (#161).
Patch. Over-long modules are split along their seams with import paths and
behavior unchanged: the training engine gains session and event-geometry
mixins (#144), the serving bundle becomes six focused modules (#145), the
streaming recipe becomes seven, and the benchmark serving helper becomes
four. Dataset downloaders accept download=False and thread it through
build_loader, the training engine, and SampleSource, so an offline run
raises the dataset's own not-found error instead of touching the network;
transient mirror failures are retried with backoff (#87).
Patch. Core-pin alignment with the 0.6.2 matrix row only; no code change.
Patch. The WebSocket /v1/stream path validates its frame up front: a new
frame_from helper rejects a missing or oversized frame before any tensor
is allocated from it.
Patch. The in-process ASGI harness is refactored into small helpers (collector, queue fill, scope base); behavior is unchanged.
Patch. activation_quant and backends/api become packages split along
their seams (calibration/quantizer/scheme; lava/norse/probes/vendors), and
weight quantization moves to its own module; import paths and behavior are
unchanged.
Patch. The registry becomes seven focused modules (checks, entry, governance, promotion, schema, signing, store) with shared validation factored out; import paths and behavior are unchanged.
Patch. The adapters module becomes a package split along its seams (base, csv, dataset, json, memory, npy); import paths and behavior are unchanged.
Security-hardening patch. Checkpoint loads are fail-closed:
torch.load runs with weights_only=True everywhere, and a file that
is not plain tensors and containers raises CheckpointError instead of
unpickling (#99). build_topology validates every size-bearing
parameter after defaults merge and before any allocation (#103). The
Docker image installs from hashed lockfiles (requirements/server.*.lock,
CI-replayed) with --no-deps local distributions and a pip check
gate, so an image can never mix the checkout with PyPI (#106).
hub_importrefusesFAILEDbytes unconditionally andUNVERIFIEDbytes without an explicit operator opt-in;source: urlcatalog entries must pinsha256, and promotion records the verification outcome in checkpointmeta(#101).- The
hub_verifyreport carries the runner-measured model identity (framework,kind,topology,input_shape), so machine-checked uploads render their real topology and kind (#107). pushpublishes reference checkpoints and records uploader-claimed accuracy plus the model-card body;pullsurfaces recorded metrics labeled uploader-claimed (#108, #111).- Hub fetches are guarded: https-only, 30s timeout,
Content-Lengthplus streaming size caps (#104).
- Download managers are scoped per session, so one client's cancel can
never terminate another session's download; the socket
hub_cancelfast path shares its logic with the dispatched handler (#96, #105). - Hub and pipeline writes are gated on read-only demo mode (#102).
- Client-controlled training/encoding sizes are bounded and the socket inbox has backpressure (#103).
- Auth fails closed on non-loopback binds without a token; browser auth moved off the query string onto a login cookie plus header, with a WebSocket origin allowlist; token rotation and entropy are documented (#100).
Patch-release serve 0.2.5, targets 0.2.2, and io 0.1.5 with no code
changes: their spikeforge~=0.5.x pins excluded core 0.6.0, so the
combination the 0.6.0 row first recorded could not be installed
together (caught by the dashboard e2e backend install). The row now
records the installable set; core, hub, and server versions are
unchanged.
Community hub namespace and account CLI. spikeforge-hub 0.4.0 accepts
source: "community" entries with @handle/slug ids, consumes the hosted
index.json with ETag caching, and ships login/whoami/push/pull/
quota; spikeforge-server 0.4.0 adds the hub_pull/hub_pull_state and
bundle_build/bundle_built WebSocket pairs (protocol 1.1; negotiation is
major-only so 1.0 clients keep working). Core 0.6.0 carries the hub API base
setting, the topology_params num_classes override fix, and the client
fork provenance record with a first @capsizellc/commons adoption.
Serve, clients, targets, and io keep their versions and move their core
pins to the same tested combination. CI automation (issue worker and PR
review workflows, inert until their secrets are set) lands alongside.
Changes: #45, #81, #82, #88, #89, #90.
This patch records spikeforge 0.5.2 in the compatibility matrix; the
satellites keep their versions and move their core pins to the same tested
combination. The core wheel carries no code changes since 0.5.1 — this
release covers the day's repository changes:
- Upstream dataset notes: the tonic HSD float16-timestamp report and the N-MNIST download-URL re-verification, plus CIFAR10-DVS's CC-BY-4.0 verification from its own figshare record.
- The dashboard ships without the CI queue via
scripts/deploy_dashboard_local.sh, and the Hetzner deploy stops syncing generatedbuild/output. - The client lockfile takes the
source-map-js1.2.2 security update.
This patch combination records spikeforge 0.5.1, spikeforge-targets 0.2.1,
spikeforge-hub 0.3.2, spikeforge-server 0.3.4, spikeforge-serve 0.2.4,
and spikeforge-io 0.1.4 in the compatibility matrix. The core-free client
remains at 0.1.1 and the WebSocket protocol remains at 1.0.
- Raw-sample inference runs every encoded timestep, preserves batch and recurrent state shapes, and reports timestep counts.
- Unsigned weight quantization retains constant and near-constant layers.
- Hub inspection resolves complete Hugging Face snapshot directories.
- Target artifacts include all six energy cost tables.
- Server, serve and I/O patch versions update their core dependency pins to
the same tested combination; core's
allextra and the server's satellite requirements select the updated targets, hub and serve distributions.
Released together as one combination, recorded in
compatibility.json: spikeforge 0.5.0,
spikeforge-targets 0.2.0, spikeforge-hub 0.3.1, spikeforge-server
0.3.3, spikeforge-serve 0.2.3, spikeforge-io 0.1.3, spikeforge-clients
0.1.1.
Only spikeforge and spikeforge_targets have source changes in this
release. spikeforge takes a minor because it gains a public module and
symbol (nir_bridge.post_node.PostNode, exported from spikeforge.nir_bridge)
and because the synthetic deployment fixtures now seed their weights, which
changes the numbers four CLI commands print — they were previously different
on every invocation, so nothing that reproduced before stops reproducing, but
the output is not byte-identical to 0.4.0.
spikeforge-targets takes a minor because it gains five public modules,
because TargetSpec.constraints now carries activation_quantization on
every target, and because deploy_report/deploy_exit moved from
spikeforge_targets.cli.target_cli to spikeforge_targets.cli.deploy_cli.
Anything importing those two names from the old module must update the
import; the spikeforge-verify deploy command itself is unchanged apart from
its new flag.
A core minor invalidates the spikeforge~=0.4.0 pin in four distributions,
so spikeforge-hub, spikeforge-server, spikeforge-serve and
spikeforge-io take patches for their widened pins alone.
spikeforge-clients neither changed nor pins core, so it stays at 0.1.1.
This release closes the third of the six documented boundaries. Quantization is no longer weight-level only: the drift check can simulate what a fixed-point device does to activations and membranes. It remains a simulation, and Implications and boundaries §3 states exactly what is and is not modelled.
-
The quantization drift check can simulate activation and membrane rounding. Until now
spikeforge_targets.quantizerestricted weights only, so its drift figure understated what a fixed-point device does to the values flowing through a network.quantize(..., activation=<scheme>)(andspikeforge-verify deploy --activation-quantization <scheme>) now runs the quantized graph through the reference interpreter under a hook that snaps every computed node output and every carried membrane and synaptic current onto the same symmetric fixed-point grid the serving-sideActivationQuantizeruses. The grid is calibrated on the drift fixture itself unless aCalibrationis supplied, so it is fixed across steps; the report gains anactivationsection (the scheme, per-tensor ranges and error, the calibration and itssource) and the drift gainsincludes, naming which roundings the figure covers (weights,activation,membrane). A scheme requested without a spike fixture is reported unapplied, and an unknown scheme is refused by name and never runs.The core
NirInterpretergains an optionalpost_nodehook (spikeforge.nir_bridge.PostNode) that transforms each evaluated node's(output, state, membrane)before any of the three is stored;Nonekeeps every step byte-identical, andrewrite_driftapplies it to the rewritten run only. The membrane travels through the hook so the recorded trace is the snapped value rather than the one the node computed, which is what makes the membrane drift below measure the current step and not only what earlier steps carried in.TargetSpec.constraintsgainsactivation_quantization, declarednoneon every shipped target: the fixed-point widths a vendor's neuron state actually uses are not verified in this repository, so no target asserts one and a caller opts in explicitly.Calibrationrecords asource. -
Drift blocks report membrane movement.
rewrite_drift, and so everydriftsection underquantizationandrewrite, gains amembranessummary (shared integrator nodes, max and mean absolute error). It is reported, not gated: a membrane can move without any spike moving, so it is where a rounding or a lossy substitution shows first, andwithin_tolerancestill folds only the readout and spike checks. Only the carried membrane propagates, so snapping the recorded one moves this figure and no dynamics; both are the same register, so both are reported under the one<node>.membranekey rather than counted twice.
-
The boundaries page said there was no activation or membrane quantization and no calibration dataset. Both had shipped on the serving path with
spikeforge-targets0.1.0 on 2026-09-11, the day the page was written. Section 3 now states what is simulated, what remains unmodelled (integer accumulation, saturation of the update itself, per-channel schemes, device kernels), and that no shipped target declares an activation scheme; the cookbook, targets, and interop pages no longer describe the check as weight-level only. -
The synthetic deployment fixtures did not seed their weights.
spikeforge/cli/fixture.pycalledbuild_topologybeforetorch.manual_seed, so a fixture's spikes reproduced while its module was initialised from whatever ambient RNG state the process happened to be in — and the sequence path never seeded the build at all. Theseedargument therefore had no effect on the weights of any fixture, contradicting the module's own "every fixture is reproducible offline" docstring. Every figure the deployment commands (deploy,rewrite,run,roundtrip) derive from those weights — per-layer ranges, quantization error, drift magnitudes — consequently differed on each invocation. Three consecutivedeployruns reportedconv1lower bounds of -0.327312, -0.319907 and -0.328470.Both paths now build under the seed. The input volume is re-seeded afterwards so it stays a function of the seed and its shape alone, which keeps every fixture's spikes byte-identical to before: the only behavioural change is that the weights, and so the reports, now reproduce.
tests/test_cli_fixture.pycovers both directions — that one seed gives one result from differing ambient RNG state, and that differing seeds give differing weights from identical ambient state. -
The cookbook published quantization figures that never reproduced. Its target-quantization section printed per-layer weight ranges (for example
"before": [ -0.3238, 0.3272 ]) as the expected output ofspikeforge-verify run, which could not reproduce for the reason above. With the fixture seeded the figures are real again and are republished from a captured run, with a note that they follow torch's RNG stream and so hold for a given torch build rather than universally.
Released together as one combination, recorded in
compatibility.json: spikeforge 0.4.0,
spikeforge-hub 0.3.0, spikeforge-server 0.3.2, spikeforge-serve 0.2.2,
spikeforge-targets 0.1.3, spikeforge-io 0.1.2, spikeforge-clients 0.1.1.
Only spikeforge and spikeforge_hub have source changes in this release.
spikeforge takes a minor because it gains public modules
(data.dataset_provenance, events.hsd_reader), two typed errors, and new
DatasetSpec fields — and because cifar10_dvs can no longer be trained,
which is a removal rather than an addition. spikeforge-hub takes a minor
because dataset_license and dataset_attribution are now required on
every source: "reference" entry: a third-party catalog that predates this
release will fail validation until both are added, and
scripts/train_reference_models.py --sync-provenance fills them in without
retraining. spikeforge-server, spikeforge-serve, spikeforge-io and
spikeforge-targets take patches for their widened dependency pins only;
spikeforge-clients is unchanged and keeps 0.1.1.
No event reference checkpoint ships in this release. Every event dataset is blocked — three cannot be downloaded at all and the two that can had their timestamps destroyed upstream — so the DVS128 Gesture and SSC configurations are registered and correct but publish no number. That is the intended outcome, not a shortfall.
-
Compatibility builds its comparison preset with the artifact's own class count.
expected_statebuilt every candidate preset with the default 10 classes, so any checkpoint trained on a dataset with a different class count was reportedincompatibleon a readout shape mismatch that said nothing about the artifact — only that the comparison had been built against the wrong output size. Inspection now readsnum_classesfrom the checkpoint's metadata card andclassify/import_modelbuild with it. A 26-class checkpoint maps cleanly where it previously did not; the 10-class path is byte-identical.The class count is deliberately the only dimension adopted. A cochlea checkpoint declaring 35 classes and 700 inputs still reports its input width as a mismatch, because a comparison that adopted both dimensions of the first layer could no longer disagree with any artifact about its shape. It is read from the metadata card and never from the tensor shapes, which would agree with themselves by construction.
-
Heidelberg audio splits are read directly, bypassing tonic's decode.
spikeforge/events/hsd_reader.pyreads the SHD/SSC HDF5 itself and scales seconds to microseconds infloat64, which recovers every timestamp tonic loses (see Fixed). It replaces exactly one thing — the per-sample decode. Tonic still downloads the dataset, extracts it, owns the cache layout, and supplies the sensor geometry; the reader is handed the constructed tonic dataset and consults it for all of that. The emitted stream keeps tonic's own(t, x, p)structured layout, so nothing downstream can tell the two paths apart.Routing is declared on the dataset, not hard-coded in the loader:
DatasetSpec.native_readernames the reader, and onlysscsets it — the DVS datasets keep tonic's decode, which is correct for them.h5pyarrives with tonic itself and is imported defensively, so this module is toh5pywhattonic_apiis totonic: the only one that imports it.Pinning
numpy<2would also have worked and was rejected: a published number whose reproduce command silently yields single-bin garbage on numpy 2 is not reproducible. This fix is correct on any numpy, andtests/test_hsd_reader.pyasserts the broken promotion is still broken, so the workaround cannot quietly outlive its reason.It also opens the HDF5 once rather than per
__getitem__as tonic does, which is what lets the source's open-once caching actually pay off here: 0.50 ms/sample against 2.29 ms through tonic. -
Auditory event sensors load. A cochlea has channels, not pixel rows: tonic's SHD and SSC declare
sensor_size = (700, 1, 1)and their streams carry(t, x, p)with noyfield at all, soevents_to_sampleraised "event stream has no 'y' field" and no audio dataset could be read. A sensor whose declared height is 1 now places every event on row 0. A missingyon a taller sensor is still an error — there the field is absent data rather than an axis the recording does not have, and defaulting it would silently flatten a 2-D recording onto one row. -
Impossible timestamps are refused by name.
EventTimestampErrorrejects a stream whose timestamps are negative, which recording times cannot be. This is what a non-finite float cast to an integer looks like, and it is not hypothetical: see Fixed below. The check sits before binning, because binning is deliberately forgiving of a zero-width time span — a real sample can have every event at one instant — and so cannot tell a genuine instant from timing that arrived destroyed. -
An SSC reference configuration,
ssc-fc-legacy:fc_legacyatinput_size=700(the flat cochlea area),num_classesleft to the registry's 35. Registered so the target and its geometry are recorded, and so running it reports the upstream blocker at the point of use. No checkpoint or catalog entry is published, because no honest number can be produced from it yet. -
The reference-training script can train and score an event dataset. Three things blocked it, all now closed.
_trainhard-codedTrainingEngine, so it now picks the engine from the registry'smodalityand a new event dataset needs no change there._full_test_accuracywent throughbuild_loader, which refuses an event dataset by design, so events get their own walk over the test source's full length — every sample, not the four batchesEvalMixincaches for the dashboard, so an event row means what the image rows mean._shrink_progress_evaluationlikewise no longer needs an image loader to size its in-training probe. -
epoch_samplesonEventTrainingEngine, so an epoch can be a real pass.event_batchescaps an epoch atEPOCH_BATCHES(10) batches, which is right for the live dashboard and is a cap, not a fraction: even atsubset=1— documented everywhere else as "the whole training split" — an event epoch visited only10 * batch_sizesamples however large the split was. Every reference entry's notes claim training "on the full training split", so publishing an event row on the old default would have shipped a false claim. Naming the split's own size makes it true, and the extent is recorded in the reproducibility manifest because it changes what an epoch means. The default is unchanged, so the dashboard is unaffected, and no such row was ever published. -
A DVS128 Gesture reference configuration,
dvs128-gesture-conv-net, is registered in the script's table:conv_netatin_channels=2,input_size=128, batch 16 (one bridged sample is ~3.3 MB, so the image rows' batch of 128 would be hundreds of megabytes of input tensor alone).num_classesis deliberately absent — the engine injects the registry's 11. No checkpoint or catalog entry is published yet: the dataset could not be downloaded (see below), so there is no number, and inventing one is the thing this project exists not to do. -
Every trained hub entry now records what its training data permits, and who to credit. An entry's
licensedescribes the weights — this project's own artifact, BSD-3-Clause — and nothing recorded the terms of the data they encode. That gap was already live:reference/kmnist-fc-legacyshipped markedBSD-3-Clausewhile KMNIST is CC BY-SA 4.0 with a specific attribution CODH asks for, which appeared nowhere in the artifact.HubEntrygainsdataset_licenseanddataset_attribution, both required forsource: "reference"alongsideweights/sha256/dataset/test_accuracy, anddataset_licenseis held to exactly the rulelicenseis held to — a concrete SPDX-style id or theunverified-candidatemarker, never free text. Values come from one table beside the dataset registry (spikeforge/data/dataset_provenance.py) so the catalog and the registry cannot disagree; a test fails if a registry dataset is missing from it. The public page at https://spikeforge.net/hub/ gains a Training data column, andNOTICE.mdcarries the attributions.Whether trained weights are "adapted material" under a ShareAlike licence is unsettled — the prevailing ML norm says they are not, and Creative Commons state their licences are not designed to govern model weights. This project takes no position. It records the provenance and lets a reader judge, which is the same move it makes everywhere else.
Licences were read from each publisher's own page: Fashion-MNIST MIT, KMNIST CC BY-SA 4.0 (CODH's requested wording, verbatim), N-MNIST CC BY-SA 4.0, DVS128 Gesture CC BY 4.0, Spiking Speech Commands CC BY 4.0. MNIST and CIFAR10-DVS are recorded as
unverified-candidate: their primary sources were unreachable, and the widely cited licences for both are secondary, so they are not asserted. Four shipped MNIST checkpoints therefore disclose an unverified data licence rather than a guessed one. Unlikelicense,dataset_licensedoes not gate availability: what the data permits is disclosure for a reader, not a claim about whether the weights load. -
--sync-provenanceonscripts/train_reference_models.pyrefreshes those two fields from the provenance table without retraining. A licence gets verified, or changes upstream, long after the bytes were published, and republishing a checkpoint to correct a citation would replace the artifact its numbers were measured on. The four fields that describe the bytes are never touched by it.
-
Four more dataset licences read from their publishers. QMNIST is confirmed BSD-3-Clause (Copyright (c) Facebook, Inc.), replacing its marker. USPS, EMNIST and CIFAR-10 were each read at their own distribution point and none declares a licence — they ask only to be cited — so they keep the
unverified-candidatemarker, which represents a verified absence honestly where a guessed SPDX id would not. The provenance table'ssourcefield now distinguishes the two cases:CHECKED, none statedagainstUNCHECKED. Only MNIST and CIFAR10-DVS remain genuinely unchecked, both because their sources refuse to serve. -
cifar10_dvscan no longer be trained throughEventTrainingEngine. It ships upstream as one undivided pool, so it now declares only a train split, and asking it for held-out data raises the typedEventSplitMissingErrornaming the dataset and the split. Because evaluation runs from the first training step, refusing to score it also refuses to train it — the engine fails at construction rather than part-way through. That is deliberate: the alternative is a partition this project invented, which no published number elsewhere would be comparable to. One line in the registry reverses it if that trade stops being the right one. The other three event datasets are unaffected.
-
The boundaries page said this repository redistributes no weights.
documentation/implications-and-boundaries.md§5 still described the hub as metadata-plus-downloads and claimed "the repository does not redistribute weights" without qualification. That stopped being true whenspikeforge-hub0.2.0 began shipping six trained checkpoints inside the wheel;NOTICE.mdand the curation policy were updated then and this page was not, so the document whose entire purpose is stating honest boundaries carried a false one for a release. It now describes all three entry sources, separates the weights' licence from the training data's, and records what it previously got wrong. -
Event training never shuffled, so a class-ordered dataset trained one class per batch. The image path builds its loader with
shuffle=train; the event path readrange(start, stop)strictly in order and had no shuffle anywhere. Real event datasets ship grouped by class — SSC's training split is exactly 35 contiguous runs over 75,466 samples — so every batch contained a single class in class order, and the network learned only to name whichever class it was currently being shown. Measured on SSC: 3.84% unshuffled against a 2.86% chance baseline on 35 classes, rising to 11.88% once the training split is visited in a seeded random order.The synthetic fixture hid this completely. Its labels are
index % num_classes, so consecutive indices cycle through every class — accidentally perfect interleaving, which is why no existing test caught it and why it only surfaced against a real recording.event_batchesnow takesshuffleandseed; the engine passesshuffle=train, mirroring the image loader exactly, and the order is seeded so a published row stays reproducible. The default is sequential, so the dashboard and every existing caller are unchanged. -
Tonic destroys every SHD and SSC timestamp, and the pipeline would have trained on it silently. The Heidelberg files store
spikes/timesasfloat16, whose maximum is 65504. Tonic's reader converts seconds to microseconds withtimes * 1e6; under NumPy 2's NEP 50 promotion that stays infloat16, where1e6itself does not fit — so the scale factor becomesinf, every product isinf(orNaNwhere the timestamp is 0), and the cast toint64yieldsINT64_MINfor every timestamp in every sample, in both SHD and SSC, on tonic 1.4.3. Our binning then saw a zero-width span and collapsed all events into the first time step: a spiking network trained on that has had all of its timing removed, and would still report a plausible-looking accuracy. This is upstream's bug, not ours, but publishing a number through it would have been ours. The newEventTimestampErrorrefuses the stream instead; the audio row stays unpublished until upstream is fixed. -
The loader's named field error never fired for real tonic data.
_fieldcaughtKeyError/IndexError/TypeError, which is what a mapping raises for a missing key — but a numpy structured array raisesValueError, so every actual tonic stream reported numpy's wording instead of this project's message naming the absent field. Both container shapes now get the named error. The existing test passed because it used a dict. -
Reading an event dataset re-opened it once per sample.
EventSampleSource.loadcalledload_event_pair, which constructed the tonic dataset on every call — and constructing one indexes the split's files. A 1000-sample epoch therefore indexed the split 1000 times, which would have dominated any event training run and any timing measured from one. The source now opens its split at most once and holds it; opening stays lazy, so constructing a source still touches neither disk nor network, and the download still happens in the isolated child.open_event_datasetandsample_fromare the two halves, split so a caller reading many samples pays the indexing cost once.load_event_pairkeeps its behaviour for one-off reads and its docstring now says which is which. -
The catalog's license validation let one-word free text through.
CURATION.mdhas always said that"unknown"and"TBD"are rejected; they were not. The shape rule refused"see upstream"only because it contains a space, so any single id-shaped token passed —unknown,TBD,NOASSERTION,none,proprietaryall validated as concrete licences, which is the exact escape the rule exists to close. Those words are now refused by name, case-insensitively and whole-string, so real ids that merely resemble one (Unlicense) are unaffected. No shipped entry used one; the documented guarantee simply was not true. -
Event-dataset "test accuracy" was training accuracy wearing a test label. The event training path had no train/test split anywhere in it.
EventTrainingEngine._epoch_batchesaccepted atrainflag and never read it, so_load_test_batches— whose docstring promised "held-out scoring" — returned the first batches of the training stream, and the registry hardcoded{"train": True}forn_mnistanddvs128_gesture,{"split": "train"}forssc, and no split at all forcifar10_dvs. Every accuracy the event path could report was measured on data it had just trained on.A split is now threaded through all five layers.
DatasetSpeccarries explicit per-split constructor arguments rather than a boolean, because tonic disagrees per dataset —NMNISTandDVSGesturetaketrain=True/FalsewhileSSCtakessplit="train"/"test". The engine holds oneEventSampleSourceper split, mirroring the image path's two loaders, soevent_batchesneeds no split argument and the split is settled by the object that opened the dataset. The download worker warms every declared split, so the held-out fetch happens in the cancellable child rather than inside the training process.A dataset that declares no test split now raises the new typed
EventSplitMissingErrornaming the dataset and the split, rather than quietly returning training data; see Changed for what that means forcifar10_dvs. The synthetic offline backend gained a genuinely disjoint held-out pool — its own index window and its own column band, because the generator ignores its seed when jitter is off, so index 64 would otherwise have produced a sample pixel-identical to training index 16 under a mere relabelling. The training stream's own samples are left byte-identical, and the stream still refuses to call itself a recording.Blast radius: no published number is affected.
tonicis absent from bothrequirements.txtand theDockerfile, so on the deployed dashboard the event path raisedEventsExtraMissingErrorrather than reporting a wrong accuracy, and the public demo is read-only besides. No model hub entry, benchmark row, or README figure was ever produced from an event dataset. Affected: anyone who installed theeventsextra locally and trained on an event dataset, whose reported held-out score was meaningless.tests/test_event_split.pynow fails if the split is removed: it asserts the two splits return different tensors, not merely that a flag is accepted.
Released together as one combination, recorded in
compatibility.json: spikeforge 0.3.5,
spikeforge-hub 0.2.0, spikeforge-targets 0.1.2, spikeforge-server 0.3.1,
spikeforge-serve 0.2.1, spikeforge-io 0.1.1, spikeforge-clients 0.1.1.
Every distribution changed in this release, so every one is bumped.
spikeforge-hub takes a minor bump rather than a patch because its wheel now
carries trained weights and a new catalog source; spikeforge takes one
because TrainingEngine joins the public API. The remaining five gained
__version__ and a py.typed marker.
- Trained weights in the model hub. A new catalog source,
"source": "reference", carries checkpoints this project trained itself: they ship inside thespikeforge-hubwheel underweights/, are loaded rather than rebuilt (spikeforge_hub.inspect.reference_path), and are verified against the checksum the catalog pins. Each entry records the dataset it trained on and what it scores on that dataset's complete held-out split; validation rejects an entry that claims trained weights without naming its file, checksum, dataset, and accuracy.spikeforge-hub list --trainedfilters to them, and every entry card gains atrainedflag.scripts/train_reference_models.py --publishregenerates the checkpoints and their catalog entries together so the pinned checksum, size, and accuracy cannot drift from the bytes that shipped. - Published benchmark numbers.
documentation/benchmarks.mdcarries one row per reference configuration — test accuracy on the complete held-out split, epochs, time steps, wall-clock, hardware, and the exact command that reproduces it — generated byscripts/train_reference_models.py. They are explicitly reference configurations with stock hyperparameters, not tuned attempts at state of the art. __version__on all seven distributions, read from installed metadata so it cannot drift from the wheel, and a--versionflag on every console script. The flag prints the core version, every installed satellite, and whether the combination is onecompatibility.jsonrecords — which makes the compatibility matrix visible at runtime instead of a file you had to know to go and read.compatibility.jsonnow ships inside the core wheel.- An API reference.
scripts/build_docs.shgeneratesdocs/api-reference.mdfrom the shipped docstrings and type hints viamkdocstrings, so constructor signatures, parameter types, and return types are looked up rather than read out of the source. Added to thedocsextra. TrainingEngineis exported from the package root. The README's flagship snippet reached four modules deep into a path that reads like internals whilespikeforge.__all__advertised a different entry point;from spikeforge import TrainingEnginenow works and is what the README, the quickstart, the cookbook, andexamples/01use.- Two CI gates for the surfaces nothing was watching
(
published-surfacesjob, torch-free):scripts/check_readme_links.pyrenders the packaged README throughreadme_renderer— the library PyPI itself uses — and fails on any relativehref/srcor any repository link naming a path that does not exist;scripts/check_wiki_links.pybuilds the GitHub wiki and fails on any dead link. The landing page's i18n suite now runs in CI too. py.typedon the remaining five distributions (spikeforge-hub,spikeforge-targets,spikeforge-serve,spikeforge-clients,spikeforge-server), declared in their package data, plus theTyping :: Typedclassifier on all seven — and a mypy gate in thelintjob so that marker is a promise something checks.mypy.inidocuments the gate as a deliberate ratchet: green today over 398 files, withattr-defineddisabled (the mixin composition defeats it, 59 false positives) and 26 modules carrying the remaining 28 "Optional not narrowed" errors listed individually so the list can be shrunk one line at a time.- A Model hub submission issue template (
.github/ISSUE_TEMPLATE/), asking for exactly whatCURATION.mdrequires: a resolvable locator, a concrete SPDX license, a checksum where one is published, and a confirmation that the submitter read the upstream license themselves. plans/ecosystem_listings.md— the two directories this field searches (NIR's framework support table, Open Neuromorphic's software guide), what each currently lists, and drafted submissions for both.
- The PyPI project pages rendered 30 dead links and a broken hero image, on
all seven distributions. Every distribution's
long_descriptionis the repository-root README by symlink, and PyPI does not resolve relative links. The README's links are now absolute; verified by rendering it throughreadme_renderer, which now reports zero relative references. - The published documentation site had 896 dead links across 50 of its 61
pages.
docs.spikeforge.netserves the GitHub wiki, andscripts/build_wiki.pyrewrote only.mdlinks that landed on another wiki page — every source reference (spikeforge/topology/spec.py:16), directory, image, and non-page document shipped verbatim, and GitHub silently serves the wiki Home page for an unknown wiki path rather than a 404. The generator now rewrites every non-page relative link to an absolute repository URL, turning afile.py:16reference into a workingblob/main/file.py#L16deep link. Twenty-four genuinely stale references inplans/were fixed at the source:setup.py(retired by the packaging migration) and two unbuilt client components are now unlinked prose, andtarget_cli.pywas repointed to its current home inspikeforge_targets. scripts/check_docs_links.pywas gating an artifact nobody publishes. It validates the MkDocs tree indocs/, which is built, strict-validated, and published nowhere; the site readers actually land on had no gate at all. Both are now checked, and each checker's docstring says which is which.- The core distribution's PyPI metadata still described an MNIST
experiment. The
descriptionshown in PyPI search results and bypip shownow describes the shipped toolkit,keywordsdropsmnistfor the neuromorphic set the GitHub topics already carried, and all seven distributions gainedDocumentation,Changelog, andIssuesURLs withHomepagepointing at spikeforge.net. - The landing page told visitors to
git clonea package it advertised as released on PyPI. The hero now leads withpip install spikeforgeand the same five-line snippet the README leads with, with the clone path demoted to a footnote; the copy is translated into all 17 locales rather than falling back to English. - The hub page shipped but nothing linked to it.
/hub/is now in the landing page's navigation and footer, andsitemap.xmllists four URLs instead of one. CITATION.cffemitted a citation with no version. It now carriesversionanddate-released.- The CPU-only install path was documented only for Docker. The README and
quickstart now give it for
piptoo: measured, a default install is 5.5 GB against 1.1 GB for the CPU wheels, and the order matters —--extra-index-urlon a single command still lets pip prefer the CUDA build.
- The
spikeforgeconsole script crashed on a clean, minimal install (ModuleNotFoundError: No module named 'pandas') becausespikeforge.exporters.presentation_exporterand seven sibling exporters importedsnntorch.spikeplot(which itself importspandas, undeclared by either snnTorch or spikeforge) at module level. Those imports are now lazy, scoped to the function that needs them. spikeforgeandspikeforge-encodingsignored--helpand instead silently downloaded MNIST and started training. Both now have a realargparseparser;--helpprints help and exits without touching the network.spikeforge-verifyandspikeforge-benchmarkalso crashed on a plainpip install spikeforge(no extras): both unconditionally importedspikeforge_targetsat module load, even though it is not a core dependency.spikeforge-verifynow degrades honestly (the deployment subcommands are simply absent, named in--help's description) and the benchmark's energy accounting importsspikeforge_targetslazily, only when--energyis actually requested, via the newspikeforge.targets_extramodule.- Added
scripts/check_console_scripts.pyand wired it into the CIheadlessjob so every declared console script is smoke-tested with--helpagainst a minimal (non-[all], non-[dev]) install going forward. - Fixed a broken anchor link (
documentation/dashboard.md→usage.md#access-control--rate-limiting, which mkdocs renders as#access-control-rate-limiting) that madescripts/build_docs.sh --checkfail under strict mode. OPEN_SOURCE_CHECKLIST.mdstated the repository was unpublished, local only, with no PyPI release; all of that is now false. The banner, the publish-decision item, the dashboard-screenshot item, and several stale packaging facts (setup.pyreferences, version, test counts) are corrected.documentation/dashboard.md's screenshot section claimed no image was committed;images/dashboard.pnghas existed for a while and is the README hero image. The section now reflects that one of five planned captures is done.
- Breaking: renamed the
SSNTrainerclass (a typo) toSNNTraineracross the public API (spikeforge.SNNTrainer),LatencyTrainer's base class, andSNNTrainerLogger's base class. No compatibility alias, per this project's no-back-compat-shim policy. - README: added a Docker-free "five lines of Python" quickstart ahead of the
Docker path, a positioning section comparing spikeforge to snnTorch/Norse/
Lava/SpikingJelly, a capability matrix (shipped/experimental/spec-only per
headline feature), and the compatibility-matrix/version-skew explanation
in the Packages table (now listing all seven distributions, not four).
documentation/quickstart.mdmirrors the pip-first path. spikeforge_hub/CURATION.mdnow documents that every shipped entry is"source": "bundled"(a NIR graph rendered fresh from a topology preset, never trained weights) and that a trained-checkpoint artifact kind is a deliberate follow-up, not something to fake.- Added
scripts/build_hub_page.py, a stdlib-only static-site generator for the model-hub catalog, deployed alongside the landing page (spikeforge.net/hub/) so it is browsable and indexable without installing anything.CONTRIBUTING.mddocuments the PR-based path for proposing a new catalog entry.
- SNN-native
AffectiveRegulatorwith slow-decay broadcast state and spike output for downstream module modulation.
- Few-shot teaching for the held-out-digit memory protocol.
OneShotAssociativeMemory.teach_many()averages several hidden-layer spike-count traces into one Hebbian write, and the evaluation protocol now acceptsteach_examplesso representation capacity and exemplar count can be measured independently.
SPIKEFORGE_DASHBOARD_TOKEN: optional bearer/query-param gate on/wsandGET /api/bundle/<name>. Newserver/auth.py, mirroringspikeforge-serve's existing/metricsbearer-token pattern. A WebSocket connection is rejected beforeaccept()(close code 1008) when the token is missing or wrong; the bundle route 401s the same way. Both accept the token as a query param (?token=...) as well as anAuthorization: Bearerheader, since a browser can attach neither a custom header to a WebSocket handshake nor one to a plain<a download>link. Unset (the default) leaves both routes exactly as open as before — no change fordocker compose upon localhost.SPIKEFORGE_DASHBOARD_MAX_CONCURRENT_JOBS: a server-wide cap on concurrent training/pipeline jobs. Newserver/concurrency.py.TrainingService/PipelineServicealready refused a second run within one session; this caps it across sessions too (default 2), so many WebSocket connections can't each start their own run and hang the shared server. A request past the cap gets a clearserver busyerrormessage instead of queuing silently.- Dashboard: confirm-before-destroy. A themed
ConfirmDialognow guards every one-click action that discarded state without asking — the Pipeline tab's New/Delete, unloading the current model, and cancelling a dataset or hub download.
spikeforge-serveCLI restructured into subcommands.serveis the original HTTP/WebSocket service, now explicit rather than the bare--bundleflag. New:run <name-or-path>(one-shot inference — a JSON request on stdin or--file, a JSON response on stdout, no server, so a module behaves identically served or run standalone);install <bundle.spkf> --name <name>(registers a bundle under~/.local/share/spikeforge/modules/<name>/and writes an executable<name>wrapper to~/.local/bin/, so a trained model becomes its own command);uninstall/list. Installed modules chain over Unix pipes —digit-classifier | jq ... | risk-scorer— since each reads one JSON object on stdin and writes one on stdout. Newspikeforge_serve.modulesandmodule_runnermodules.- Pipeline execution: chain checkpoints into a DAG and run it as one
program. New
spikeforge_serve.pipeline(the DAG data model —PipelineGraph/Node/Edge, topological order via Kahn's algorithm, raising on a cycle, an unknown node reference, or fan-in),pipeline_runner(executes a graph throughServingService, one node at a time, shaping each edge's source output into the target's next input via a fixedextractmode:mean_logits,predicted_class, orone_hot), andpipeline_store(save/load/list/delete, mirroringspikeforge.network.model_store). Deliberately a DAG, not a state machine — no cycles, no conditional branching, no fan-in — seedocumentation/model-deployment.md.
GET /api/bundle/<name>. Downloads a saved checkpoint as a.spkfdeployment bundle, built on demand viaspikeforge.serving.bundle.buildinto a temp file that's cleaned up after the response. 404s an unknown checkpoint name. The dashboard's Model panel gained a matching "Bundle" tab.- Six new WebSocket actions for the dashboard's Pipeline tab:
list_pipelines,save_pipeline,load_pipeline,delete_pipeline,run_pipeline,stop_pipeline. A run spawns a background worker (server/pipeline_service.py, structurally identical toTrainingService) that streamspipeline_node_result/pipeline_run_statemessages without blocking the WebSocket read loop.spikeforge-servergainsspikeforge-serveas a dependency to reuseServingServicedirectly — a pipeline node's bundle is built in memory from its checkpoint at run time, never written to disk. - New
protocol/payloads/pipeline_graph.schema.jsonand matchingclient_message/server_messageschema and Pydantic additions, kept in lockstep bytests/test_protocol_schema_parity.py.
weight_decayonTrainingEngine. A new constructor parameter (default0.0, matching prior behaviour) is forwarded straight into the Adam optimizer and recorded in checkpoint metadata and the reproducibility manifest's hyperparameter block, alongsidelr. Every subclass (EventTrainingEngineincluded) already forwards unrecognised keyword arguments, so no subclass changes were needed.dropouton theconv_nettopology preset. A newdropoutparameter (default0.0, the identity) adds adropout-kind stage between the flattened features and the readout, using the stage system's existing genericdropoutkind (already NIR-export-safe as a passthrough at inference). Reaches training the same way every otherconv_netparam does, viatopology_params.spikeforge.memory.stdp_synapse.STDPSynapse. A feedforward synapse written by pair-based spike-timing-dependent plasticity: exponentially-decaying pre/post eligibility traces update every weight from genuine spike order (causal pairs potentiate, anti-causal depress, effect decays with|delta_t|), unlikeHebbianSynapse's single-shot rate-coded write. Verified against the textbook STDP learning-window shape intests/test_stdp_synapse.py;examples/14_stdp_learning_window.pyreproduces the curve.
- Copyright holder corrected to
Capsize LLC.LICENSE,AUTHORS,NOTICE.md,CITATION.cff, and every distribution'spyproject.tomlnamedCapsize Gamesas the copyright holder/author, which is not the actual legal entity. Corrected across all of them; the entry below (2f6e3ec) documented the wrong entity name at the time and is left as the historical record rather than rewritten. sequence_mlpCUDA warmup crashed with a shape mismatch.TopologyMixin._input_features()only ever checkedinput_size(the image-shaped presets' param name);sequence_mlphas noinput_sizeat all and names the same conceptfeatures, so it silently fell through to the historical28 * 28MNIST-shaped default. Invisible on CPU (device.warmup()no-ops there), but a real CUDA run's warmup pass forwarded a wrongly-shaped dummy tensor and crashed. Now checksfeaturesbefore that fallback.- Training with a stale checkpoint reference crashed with a raw
FileNotFoundError. A checkpoint name set by loading a model persists in the dashboard's local storage across sessions; if the server's model directory was since cleared or rebuilt, a plain "Train" click resent that now-missing name andmodel_store.load()let the bare OS path leak to the client.load()now raises a named "checkpoint not found" error, and the dashboard drops a checkpoint reference once the server's own model list shows it no longer exists.
- Prediction moved to the Viewer tab. "Prediction (displayed sample)" lived in Training & Analysis, away from the sample it scores; it's now in the Viewer tab's right column.
- Loaded-model summary moved under the tab strip. The chip naming the active checkpoint only showed in the Viewer tab's side column; it's now in the fixed header under the tabs, visible regardless of which tab is open.
spikeforge-targets-v0.1.1 - 2026-09-11
A spikeforge-targets-only follow-up release. Core stays 0.3.0 and every
other distribution stays 0.1.0; the wire protocol stays at 1.0.
- Vendor simulator backends (Speck, Xylo, SpiNNaker2). The
simulator-backed test-deploy matrix gains an executable backend for every
registered target: Speck runs through Sinabs, Xylo through Rockpool, and
SpiNNaker2 through its host simulator. Each follows the existing backend
protocol — availability comes from the isolated SDK probe plus a minimal
capability check, the graph is lowered with the shared linear lowering, and
a missing SDK yields
available: falsewith a named reason rather than a failure. - A shared
VendorBackendadapter (spikeforge_targets.backends.vendor_backend) and thelinear_programdense/neuron lowering inspikeforge_targets.backends.lowering, reused by the Norse, Lava, and vendor backends so one code path recovers the execution order and sizes each layer. - A
test-deployCI job that runs the matrix forfc_legacy, asserts exactly one cell per registered target, and checks the command exits zero when every SDK-backed cell honestly reportsavailable: false.
BackendResultand the matrixDeployCellnow carryestimate: true: every simulator or emulator run is labelled an estimate and only a real device result can set itfalse, so a simulated trajectory is never read as a measurement. A cell now reports availability from its wired backend (backend.available()) instead of the registry probe.
0.3.0 - 2026-09-11
The hardware-free production toolkit (workstreams PT-W1…PT-W8) and the
streaming time-series use case UC-1, on top of the ARCH-0001
repository-topology work recorded below. Every capability below is additive:
the wire protocol stays at 1.0, the core import root stays spikeforge,
and the existing WebSocket payload keys are preserved.
-
Serving runtime and the
.spkfdeployment bundle (PT-W1). A stateful inference runtime with aStateTreethat carries per-layer neuron state across steps, and the.spkfDeploymentBundlethat packages a trained model with its frozen encode configuration and target plan. -
Frozen encode-at-inference contract (PT-W2). The window → normalize → encode pipeline is serialized into the bundle and replayed byte-for-byte at inference, so a served model encodes inputs exactly as it did in training.
-
Headless
spikeforge-serve(PT-W3). A REST/WebSocket inference service that loads a.spkfbundle and exposes/v1/encode,/v1/predict, and/v1/stream, packaged as thespikeforge-servedistribution. -
Client SDKs (PT-W4). Python, TypeScript, and CLI clients for
spikeforge-servein the dependency-lightspikeforge-clientsdistribution, validated against theprotocol/serve/schemas so an install never pulls the torch-based core. -
Compression and quantization (PT-W5). Delta/spike codecs plus activation and membrane quantization of a deployed model, with reports that record the scheme and the achieved size/accuracy trade-off.
-
Observability and serving benchmarks (PT-W6). Prometheus and JSON exporters for the serving metrics and a benchmark harness that measures encode, inference, and end-to-end latency for a bundle.
-
Registry governance and I/O adapters (PT-W7). Stage/approver/signature/ lineage governance for model promotion in
spikeforge-hub, and thespikeforge-iorecorded-stream adapters (CSV/JSON/NPY/in-memory and the dataset hook) that feed the frozen windowing contract and replay into/v1/stream. -
Simulator-backed test-deploy matrix (PT-W8). A matrix that lowers each target through the reference/norse/lava simulators and records the per-target deploy outcome before a bundle is promoted.
-
Streaming time-series use case (UC-1). An end-to-end classification/anomaly-detection MVP that trains, bundles, serves, and replays a sliding-window time-series signal.
-
Project rename to
spikeforge. The project, its core distribution, its import root, and its console scripts all readspikeforge; the earlier bring-up name is gone from every package, repo, and document. -
Move to the
capsize-gamesorganization (four repositories). The project now lives undercapsize-games:capsize-games/spikeforge(core; ARCH-0001 issue #1),capsize-games/spikeforge-dashboard,capsize-games/spikeforge-targets, andcapsize-games/spikeforge-hub. Thespikeforge-serverrepository is a deliberate no-go (trigger T4 did not fire); the server ships as a distribution in the core repository. -
One-command install.
install.shinstalls all four distributions editable from a clone; once the distributions are published,pip install "spikeforge[all]"installs the library bundle (core + targets + hub) andpip install spikeforge-serveradds the server. -
Open-source readiness scaffolding:
CONTRIBUTING.md,CODE_OF_CONDUCT.md,SECURITY.md,NOTICE.md, issue and pull-request templates, and apy.typedmarker. -
A hub catalog curation policy,
spikeforge_hub/CURATION.md: remote entries must name a real repository/reference plus a verified license (and a checksum where available), and unverified candidates must be markedunverified-candidateand reportedavailable: false. -
A versioned protocol contract under
protocol/: the JSON Schema envelope and the pydantic models carryprotocol_version, currently"1.0", with a TypeScript codegen/validation step (client/src/protocol/generated.ts) andtests/test_protocol_schema_parity.pykeeping both sides in agreement. -
A
packages/workspace defining two PEP 621 distributions without moving a source file:spikeforge0.3.0(core, import rootspikeforge) andspikeforge-server0.1.0(import rootserver, which depends on core).packages/*/pyproject.tomlis now the packaging authority. -
compatibility.jsonat the repository root, recording theprotocol_version("1.0"), the released distribution versions, and the pinned dashboard bundle version (dashboard: "0.1.0", now built incapsize-games/spikeforge-dashboard). -
The dashboard extraction (ARCH-0001 Phase 2): the browser UI now lives in its own repository,
capsize-games/spikeforge-dashboard, created from this repository's history withgit subtree split --prefix=client.client/remains here for one release as a read-only mirror. -
SPIKEFORGE_DASHBOARD_DIST(seespikeforge/config.py) lets the server serve a pinned prebuilt dashboard bundle instead of the in-repoclient/dist;server/web.pyprefers it when present and otherwise keeps today's resolution, covered bytests/test_dashboard_bundle.py. -
The
spikeforge-targetsdistribution (ARCH-0001 Phase 3): the deploy layer —targets/(plusbackends/),energy/,event_runtime/, and thetarget_clientry point — moved out of core into the top-levelspikeforge_targetsimport root, packaged aspackages/spikeforge-targets(spikeforge-targets0.1.0, depending onspikeforge~=0.3.0). Thenorseandlavaextras moved with the code they gate, and the server pinsspikeforge-targets~=0.1.0. The oldspikeforge.{targets,energy,event_runtime}import paths were deleted outright — the project is pre-1.0 and unpublished, so no back-compat shim was added. -
The standalone
capsize-games/spikeforge-targetssatellite repository (ARCH-0001 Phase 3): created (private) and populated from this repository's history withgit subtree split --prefix=spikeforge_targets, it lays out thespikeforge_targets/package at its root alongsidepyproject.toml(spikeforge-targets0.1.0, core pinspikeforge~=0.3.0),README.md,LICENSE,.gitignore, a Python 3.10–3.13 CI workflow, and the 19 test modules that exercisespikeforge_targets. Core has not been pushed and no distribution is on PyPI yet, so the satellite CI installs core from its git remote as a temporary stopgap untilspikeforge0.3.0is published. -
The
spikeforge-hubdistribution (ARCH-0001 Phase 4): the model hub — the curated catalog, cache, isolated download worker, and the inspect → compat → promote import funnel — moved out of core into the top-levelspikeforge_hubimport root, packaged aspackages/spikeforge-hub(spikeforge-hub0.1.0, depending onspikeforge~=0.3.0).huggingface_hubis now a base dependency of this distribution rather than a corehubextra, and the server pinsspikeforge-hub~=0.1.0. The old core-relative hub import path was deleted outright rather than kept as a deprecated re-export shim. -
The standalone
capsize-games/spikeforge-hubsatellite repository (ARCH-0001 Phase 4): created (private) and populated from this repository's history withgit subtree split --prefix=spikeforge_hub, it lays out thespikeforge_hub/package at its root alongsidepyproject.toml(spikeforge-hub0.1.0, core pinspikeforge~=0.3.0, adevextra),README.md,LICENSE,.gitignore, a Python 3.10–3.13 CI workflow, and the hub test modules that exercisespikeforge_hub. Its CI uses the same PyPI-or-git core-install stopgap ascapsize-games/spikeforge-targetsuntilspikeforge0.3.0is published. -
Removed the stray, unreferenced
packages/spikeforge/duplicate (263 tracked files) that shadowed the realspikeforge/package; nopyproject.toml, CI job, test, or build script referenced it (the builds use thepackages/spikeforge/spikeforgesymlink to the real package).
- License holder is
Capsize Games. The BSD 3-ClauseLICENSEandAUTHORSname Capsize Games, and every distribution'spyproject.tomllistsCapsize Games <[email protected]>as author and maintainer. - Documentation finalized to the delivered state (R4). The plan documents now
describe the landed
spikeforgerename and thecapsize-gamesmove, the four distributions and their import roots, and the shim-free extraction. Stale core-relative module paths were rewritten to the realspikeforge_targets/andspikeforge_hub/trees. - No back-compat aliases. The legacy
spikeforge.{targets,energy,event_runtime,hub}import paths were deleted, not kept as deprecated re-export shims: the project is pre-1.0 and was never published, so no compatibility window is needed. - Console-script ownership of
spikeforge-energyandspikeforge-targetsmoved to thespikeforge-targetsdistribution andspikeforge-hubmoved to thespikeforge-hubdistribution, resolving tospikeforge_targets.energy.cli:main,spikeforge_targets.cli.target_cli:main, andspikeforge_hub.cli:main; core keeps the five remaining scripts (spikeforge,spikeforge-encodings,spikeforge-verify,spikeforge-records,spikeforge-benchmark). Thespikeforge_targetsandspikeforge_hubimport roots are the only paths; the oldspikeforge.{targets,energy,event_runtime,hub}paths were deleted. - The maintainer contact address is now
[email protected]inCODE_OF_CONDUCT.md,SECURITY.md, and thepackages/packaging metadata; the<[email protected]>placeholder is gone. - The catalog schema rejects free-text licenses: an entry's
licensemust be a concrete SPDX-style id or the explicitunverified-candidatemarker. - Core is now version
0.3.0and no longer packagesserver/: a headlesspip install spikeforgeships onlyspikeforge/,main.py, andmain_encodings.py. The core distribution excludes the server root in its package discovery, and the server's FastAPI stack is no longer a core extra. - The core
webextra is removed; itsfastapi,uvicorn[standard],websockets, andpydanticdependencies become the base dependencies ofspikeforge-server. Dockerfileanddocker-compose.ymlinstall thepackages/spikeforge-serverdistribution instead of the removedwebextra, keeping theTORCH_INDEX_URLbuild arg and the:8877port mapping.requirements.txtno longer lists the FastAPI server stack, so a core dev install stays headless.- Strict protocol-version enforcement (ARCH-0001 Phase 2). An inbound
message that omits
protocol_versionis now rejected with atype: "error"frame carryingpayload.code = "protocol_version_mismatch", closing the Phase 1 legacy-acceptance window (server/app.py,protocol/README.md), covered bytests/test_protocol_negotiation.py. - The core CI
clientjob is reduced to the protocol-codegen guard (npm ci;npm run gen:protocol;git diff --exit-code -- client/src/protocol/generated.ts); the full dashboard build is now owned bycapsize-games/spikeforge-dashboard.
setup.py: retired in favour of the per-distributionpackages/*/pyproject.tomlfiles (the design-doc Phase 1b packaging split).- Four invented hub catalog entries under a fictional
snn-community/*namespace (hf/snn-fc-mnist,hf/snn-conv-mnist,hf/snn-recurrent-mnist,snntorch/fc_mnist_weights). They declared"license": "see upstream"and had no real upstream, so they were removed rather than shipped. The Hugging Face ingestion path and thehubextra are unchanged.
-
spikeforge-hubextraction shipped. ARCH-0001 Phase 4 moved the model hub to thespikeforge_hubimport root and thepackages/spikeforge-hubdistribution, and published the private satellite repositorycapsize-games/spikeforge-hub(see Added/Changed above). The hub extraction was executed per the Phase 4 directive; the T3 catalog-stability clause still reads unavailable because no release baseline exists yet (scripts/topology_metrics.py). -
spikeforge-serverextraction: no-go —capsize-games/spikeforge-serverwas not created. Perplans/arch-0001-decision-metrics.mdthe server is extracted only when trigger T4 fires, which requires all of: (a) server-only release demand ≥ 3 in the trailing 90 days, (b) ≥ 2 core pin conflicts in the window, and (c) isolatedserver/change sets ≥ 20% of core commits over a quarter. On 2026-09-11 only clause (b) held;scripts/topology_metrics.pyreported verbatim:T4 spikeforge-server (Phase 4 conditional): not fired [ no] server-only release demand >= 3 [ yes] core pin conflicts >= 2 in window [ no] isolated server change sets >= 20% of core commitsWith T4 not fired, the no-go stands and the server stays in the monorepo as the
spikeforge-serverdistribution. The trigger is re-measured each release cycle.
0.2.0 - 2026-09-10
The professionalization program (workstreams WS-A…WS-F) plus the first
open-source-readiness pass. Every capability below is additive; the
TopologySpec single source of truth, the legacy _fc1/_lif1/_fc2/_lif2
checkpoint keys, and the existing WebSocket payload keys are preserved.
- Model hub (WS-A). A bundled, offline-first curated catalog
(
spikeforge_hub/models.json, 10 verified entries across five frameworks), optional live Hugging Face access behind thehubextra, an isolated download worker with progress/cancel and checksum verification, and an inspect → compat → promote import funnel. Surfaces: thespikeforge-hubCLI, six additive WebSocket actions, and theHubPanelclient browser. - Backend execution (WS-B). A substitution executor that applies a
target's declared rewrites with a rewrite report and a drift check, and
executable
reference,norse, andlava_loihi2backends behind onecompile_runentry point. Surfaces:deploy/rewrite/runand theBackendRunPanel. - Sequence primitives (WS-C). Per-stage heterogeneous neurons, ten new
stage kinds with explicit NIR contracts (or an explicit unexportable
outcome), a sequence/token data path, and the
sequence_mlp/sequence_attnpresets. - Event runtime and energy (WS-D). A sparse/event-driven runner with a
dense-parity acceptance test, SOP/MAC/AC counting, and an
spikeforge-energyreport that maps op counts to a declared, per-target cost table (all tables are"measured": falsewith a source). - Operational maturity (WS-E). Opt-in persisted metrics under
SPIKEFORGE_METRICS_DIR, optional TensorBoard/W&B tracking sinks behind extras, determinism tooling, and a MkDocs Material docs site generated fromplans/byscripts/build_docs.sh. - Interop fold-ins (WS-F). Event-dataset training, an ONNX export/import
bridge,
nirtorchextraction of third-party PyTorch modules, weight-level quantization, non-square sensor geometry, and per-step hidden-layer animation. CHANGELOG.md, the community files, and.github/issue/PR templates.- A PEP 561
py.typedmarker, shipped as package data.
- Bumped the version from
0.1.0to0.2.0. Development Statusclassifier from3 - Alphato4 - Beta: the planned capabilities are delivered, but hardware and energy results remain unmeasured and are reported as estimates.python_requiresraised from>=3.8to>=3.10, with classifiers for Python 3.10–3.13 to match what is tested.- Reconciled
setup.pydependency floors withrequirements.txt(torch>=2.5,torchvision>=0.20,snntorch>=1.0,matplotlib>=3.8,Pillow>=10.0,numpy>=1.26) and declaredpsutil. - CI now runs the docs check, an optional-extras matrix, a blocked-optional- dependency degradation run, a Python 3.10–3.13 matrix, and the client build on every push and pull request.
python -m spikeforge.cli.records_cliandpython -m spikeforge.cli.target_clinow execute under module invocation, matching the other console-script modules.- Splitting
server/messages.pykeeps it within the project's 250-line style contract; the hub message helpers moved toserver/hub_messages.py.
0.1.0 - 2026-09-09
- The initial spike-encoding playground: MNIST-subset loading, rate/latency/
delta/random spike encoders, matplotlib/MP4 exports, and a fully-connected
LIF
SpikingNettrained with a surrogate-gradient loss. - The FastAPI + React dashboard: a dark-themed WebSocket UI with a training panel, live charts, model management, and a CPU/GPU device picker with a live resource monitor.
- Interpreter spine (Phase 1):
TopologySpecpresets, a neuron registry, NIR export, an independent NIR interpreter, and numerical drift validation. - Dual-mode introspection (Phase 2) and the unified dashboard (Phase 3).
- Event datasets (Phase 4) through Tonic, behind the
eventsextra. - Deployment targets and interop (Phase 5): a capability matrix, per-target reports, external NIR import/export, and a round-trip fidelity guarantee.
- Production workflows (Phase 6): a reproducibility manifest and config hash, a searchable checkpoint registry, opt-in scale-ups, a stored benchmark suite, JSON logging, packaged console scripts, and Docker CPU/GPU profiles.