Expand description
Sense path — the input twin (Phase 4): microphone PCM → forward DSP → the ∫Ψ > τ → Fact
bridge, every capture under the deontic/standpoint consent gate (surveillance-refusal default).
Gated like place_time (needs crate::modalities).
Phase 4 — the sense path (the input twin of the renderer; STELLAR §D).
The renderer projects the manifold → percept (output). The sense path is its twin: a physical
signal → the manifold → a discrete Fact the values/epistemic layer can reason over. It is
the same ∫Ψ > τ → Fact bridge (crate::modalities::manifold_logic) the legal-logic layer
already uses, with a microphone front-end.
§What this is (honest scope)
- Acoustic (microphone) is the live band — real forward DSP: a Hann-windowed DFT of PCM
samples → magnitude bins → dominant tonal bin. (There is no forward STFT elsewhere in the
crate; the
audio::stft_bakepath synthesises spectra for the sidecar raster, it does not analyse a captured signal. So this is the analysis primitive.) - RF / Wi-Fi CSI is DEFERRED ([
band_available]) — it needs an SDR / radio plus explicit hardware permission, and may never be available in-browser. Documented, not stubbed-as-done.
§The rails (RENDERER_DEFINITION §8; the memories) — load-bearing here
- Every sense runs under the deontic/standpoint gate. [
sense_permitted] fails closed: no ActivePERMITconsent for this agent + this environment ⇒ refused. That is surveillance-refusal by construction — the default is to not capture. An ActiveFORBIDalways wins. - Own-environment + consent. The consent norm binds
(agent) PERMIT capture(environment); sensing is authorised per environment the agent holds consent for. - Biometrics never leave the device. The pipeline emits only a discrete symbolic Fact (an acoustic-tone-detected quin + the dominant frequency / energy scalars). The raw samples are never stored, returned, or embedded — there is no voiceprint, no audio, in the output.
- Delegates, does not reinvent the logic. The continuous→discrete decision is
manifold_logic::continuous_to_fact; the consent decision islogic::deontic. Only the forward DSP and the field-packing live here.
Enums§
- Sense
Band - The physical bands the sense path can ingest.
- Sense
Outcome - The outcome of a gated sense attempt.
Constants§
- FACT_
ACOUSTIC_ TONE - The discrete fact emitted when acoustic energy crosses the bridge threshold.
- MAX_
SENSE_ NORMS - Max consent norms evaluated in one
sense_permittedpass (stack-bounded, zero-heap). - P_
PERCEIVED - Predicate stamp for a percept→fact quin.
- P_
SENSE_ CAPTURE - Property-path for a capture/sense action governed by a consent norm.
- SENSE_
BINS - Number of DFT magnitude bins computed for a captured frame (analysis resolution).
Functions§
- band_
available - Whether a band is available for live sensing. Only
SenseBand::Acousticis; RF is deferred. - bin_
to_ hz - Centre frequency (Hz) of DFT bin
binfor anfft_size-point transform atsample_rate. - dft_
magnitudes - Forward windowed DFT magnitudes: for each bin
kin0..out.len(), write|X_k|of the Hann-windowed realsamples. Zero-heap — results go in the caller’soutslice. - dominant_
bin - The dominant tonal bin (skipping DC bin 0):
(bin, magnitude), orNoneif there is no non-DC bin. - hann
- Hann window coefficient for sample
nof alen-sample frame (reduces spectral leakage). - pack_
percept - Pack the percept scalars (dominant Hz, integrated energy) into one
metadataword — the only quantitative residue that leaves the sense path.hzin the high 32 bits,energyin the low. - perceived_
fact_ quin - Build the discrete percept→fact NQuin: where sensed (
subject = environment), the percept stamp (P_PERCEIVED), what (object = fact_id), the consenting standpoint (context), and the dominant-Hz / energy scalars inmetadata. No raw audio — only this discrete fact. - sense_
acoustic_ to_ fact - The Phase-4 pipeline. Microphone PCM
samples→ (consent gate) → forward DSP → the∫Ψ > τ → Factbridge → a discrete Fact NQuin, or a refusal. - sense_
norm - Build a consent norm for sensing:
(agent) OPCODE capture(environment)in aframe, optionally expiring. Consent isOP_PERMIT; a prohibition isOP_FORBID. - sense_
permitted - The sense gate.
trueiffagenthas Active consent to captureenvironment: there is an ActivePERMITbound to(agent, environment)and no ActiveFORBIDbound to it. - unpack_
percept - Inverse of
pack_percept.