Dicklesworthstone/franken_surveillance_system
Über uns
Local-first Rust sensor system for owner-authorized cameras and capture drones, with evidence tracking built into the data model.
KI und maschinelles LernenGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- +6
- in 15 days
- +22
- in 1 month
- +23
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalFranken Surveillance System (fss)
A pure-Rust, evidence-native, local-first sensor fabric for owner-authorized cameras and manually piloted capture drones.
Cheap consumer hardware. One version universe. Certified graph intelligence. Pure-Rust media and models. Crash-safe evidence. No ambient authority.
[!IMPORTANT] FSS is an unqualified reference implementation. It can import recorded media with custody, capture RTSP (interleaved TCP) and HTTP MJPEG streams into local archives, decode baseline JPEG/MJPEG, H.264 (Baseline, Main and High; progressive 4:2:0) and H.265 (Main, 8-bit 4:2:0), run small models on a scalar executor, detect, track and publish event candidates (including a model-free
fss-event watchpipeline), and keep a crash-safe local ledger. It ships one trained detector package (YOLOX-Nano, COCO-80, conformance-checked against its upstream ONNX graph;fss-infer package-detect). The CLI and local stdio MCP server expose all 14 registeredfss/1agent operations in the reference deployment. Open gaps include 10-bit and interlaced decoding, detection quality measurement on real footage, cloud archiving, and release qualification. SeeIMPLEMENTATION_STATUS.mdandfss capabilities --json.
The native local S3 archive path supports
journaled multipart upload, uncertain-completion observation, and independent
verification of completed object bytes with fss-archive upload-s3-verify.
Verification uses fresh read authority and a separate immutable receipt, and can
run after the original local source file is gone. This bounded local-endpoint
profile remains distinct from qualified encrypted cloud archiving.
The Franken Surveillance demo places virtual cameras around a fictional home. Follow an after-hours report, an evening delivery or a wildlife encounter through synchronized recordings and the native Rust analysis of their sampled frames. The property viewer uses the same house, camera rig and animated subjects as the films. Compare camera measurements, verify source bytes, and inspect the local event and agent-session records for each case. Explore the demo · Review the after-hours incident
The thesis
Consumer security hardware is cheap and increasingly capable, but each product is an island. A battery camera may expose only a proprietary app. A USB gimbal camera may be standards-compliant but physically tethered. A drone may provide a superb moving view while lacking a supported control SDK. Conventional NVRs can record streams, but they do not usually create a calibrated, provenance-carrying world model that an autonomous agent can query and operate safely.
FSS is intended to turn heterogeneous owner-authorized sensors into one coherent system:
cameras / microphones / manually piloted drone captures
│
first-party UVC · RTSP/RTP · ONVIF · focused adapters
│
packet truth + source bytes + time intervals + health receipts
│
EvidenceDeltaBatch universe
│
┌─────────────────┼──────────────────┐
│ │ │
source custody live operator cognition
ATP object graphs Rust proxy/UI Rust models + graphs
│ │ │
└─────────────────┴─────────┬────────┘
│
calibrated tracks + 3D twin + coverage
│
quality → detect → track → associate → temporal verify
│
event transaction with evidence and uncertainty
│
versioned policy → abstain / request view / alert plan
│
idempotent effect + observed/verified receipt
The radical part is not “run a VLM on camera footage.” It is the substrate beneath every model:
- Four operational planes. Packet, authority, cognition, and effect states are type-distinct. A decoded frame is not source continuity; a model score is not physical fact; a provider ACK is not a verified alert.
- One version universe. Canonical history is an ordered immutable
EvidenceDeltaBatchstream. Graphs, search, subscriptions, replicas, model caches, checkpoints, and branches publish exact high-water marks instead of each inventing “current.” - Agent cognitive operating system. The agent receives an anchor-pinned
SituationCapsule, not a pile of subsystem replies. Its innerSituationFramestates what matters now; meaningful deltas, epistemic state, provenance, contradictions, obligations, resource pressure, and a nondominated affordance frontier make the next safe move legible without hidden conversational state. - Semantic MVCC. Event and effect decisions carry positive and negative witnesses, model/ calibration/policy epochs, and revalidate before consequential publication.
- Pure-Rust production. FSS owns packet protocols, codecs, containers, model execution, graph algorithms, archive protocols, and orchestration in first-party safe Rust. FFmpeg, PyTorch/ONNX, NetworkX, C SQLite, Tantivy, browsers, and vendor applications are pinned laboratory oracles only.
- ATP object graphs. Source media, checkpoints, model packages, derived generations, exports, and releases move by verified manifest/chunk/repair graphs with resume, post-repair digest proof, and root-last publication.
- Certified graph intelligence. Cross-camera association, temporal reachability, blind-spot cuts, active perception, deletion closure, and runtime deadlock analysis use registered snapshot- pinned algorithms with canonical tie-breaks and complexity/output witnesses.
- Digital-twin calibration. A manually piloted drone or handheld camera can serve as a calibration shuttle, linking fixed camera views to a metric reconstruction and uncertainty-aware coverage model.
- Event-level epistemology. Quality is measured under realistic class imbalance with event AUPRC, recall at a false-alert budget, calibration, time-to-detect, abstention, observability, and miss bounds—not frame accuracy or a cherry-picked demo.
- Proof-carrying operations. Publication is child-first/root-last; effects use prepare → revalidate → commit → observe → verify; repair is doctor → sealed plan → apply; claims derive from retained proof roots.
- Local release authority. Doodlestein Self-Releaser executes clean-snapshot qualification on controlled local machines. GitHub workflows are portable specifications, not a required trust root.
What “Franken” means
The first draft named the sibling projects. The second pass audits them mechanism by mechanism: what invariant each idea establishes, which FSS crate owns it, what weaker substitute is forbidden, what reference model defines it, how failure degrades, and what evidence admits it.
| Project | Load-bearing FSS inheritance |
|---|---|
asupersync |
region ownership, Cx authority, multidimensional budgets, request→drain→finalize cancellation, obligations, deterministic LabRuntime, ATP, hard-clamped decisions |
frankensqlite |
multi-version anchors, positive/negative hierarchical witnesses, SSI, deterministic commit combining, semantic merge ladder, crash classification |
frankenfs |
staged/visible/durable/replicated/retrievable custody, root-last publication, unified repair serialization, RaptorQ, retrievability, deletion closure |
frankensearch |
immutable generations, searchable delta versus durable seal, Quill merge=concat, columnar ingest, progressive retrieval, absence certificates, oracle gauntlets |
franken_markdown |
exact bytes/spans, taint, bounded nonrecursive parsing, one semantic document source, deterministic HTML/PDF reports |
frankengraphdb |
one delta universe, temperature tiers, factorized joins, incremental retract/add views, branches, typed claims, operation-cost and decision-card discipline |
franken_networkx |
canonical graph semantics, immutable O(1) snapshot views, deterministic algorithms, complexity witnesses, adversarial conformance, offline specialization |
dwarf_fortress_mcp |
honest control of a delayed, externally changing, partially observed world; durable obligations; token-efficient semantic views |
fastmcp_rust |
request-owned capability-scoped MCP presentation, four-valued outcomes, bounded outputs, application-owned durable tasks |
eidetic_engine_cli |
typed evidence-backed operational memory, decay/trauma guard, immutable curation, deterministic context packs |
frankentorch |
typed tensors, frozen operator IR, static dispatch, scalar reference and safe optimized kernels, canonical model packages, differential conformance |
doodlestein_self_releaser |
clean source/sibling closure, controlled native hosts, resumable-but-never-partial matrices, signed exact assets, local receipts as authority |
Start with FRANKENSTACK_DEEP_DIVE.md and the
deep-dive index. The machine import ledger is
architecture/franken_imports.json.
Pure-Rust and dependency constitution
The production closure is deliberately narrow:
std/core/alloc
+ FSS workspace crates
+ Asupersync
+ exact admitted Franken-suite revisions
+ a tiny DEP-recorded foundational exception set
Every FSS crate forbids unsafe. Asupersync is the sole runtime. No Tokio, async-std, smol, Rayon- owned pool, Python/PyO3, FFmpeg/libav, OpenCV, ONNX Runtime, libtorch, CUDA runtime binding, proprietary SDK, browser engine, Node/Electron/Tauri, generic graph/search/database engine, dynamic plugin, runtime model download, or networked build script enters production.
The current default external exception candidates are only serde and serde_json, and only for bounded control/report data-shape roles. Serde never defines canonical durable bytes.
This is stricter than “a safe Rust core with unsafe helpers out of process.” A required foreign service is still a foreign production runtime. Missing first-party capability remains unsupported or fails closed; it does not silently activate a fallback.
See DEPENDENCY_CONSTITUTION.md and
architecture/dependency_allowlist.toml.
Device posture
FSS starts from replay and standards before proprietary adapters:
| Tier | Surface | Initial examples | Policy |
|---|---|---|---|
| 0 | Deterministic replay | synthetic and consented packet/frame/event fixtures | First implementation and oracle |
| 1 | Open local standards | UVC/UAC, RTSP/RTP, ONVIF Profile T; optional Profile M metadata | Preferred production path |
| 2 | Documented vendor API | products with a supported local/cloud protocol | Exact version, authority, and compatibility tuple |
| 3 | Authorized interoperability lab | Wyze Cam v4, AOSU P1 Max, DJI Flip capture routes | Owner devices/accounts only; no credential bypass; firmware/app/region-specific |
| 4 | Import-only | SD-card or exported clips | Useful evidence, never represented as live coverage |
Insta360 Link is a useful UVC/UAC reference sensor. Wyze Cam v4 and AOSU P1 Max begin as interoperability-lab candidates unless a qualified standards/API surface is established. DJI Flip begins as manually piloted capture/import; FSS has no autonomous flight authority.
See DEVICE_ADAPTER_MATRIX.md and
INTEROPERABILITY_LAB.md.
Site onboarding and capture planning
fss site validate --manifest SITE.json --json validates a bounded camera inventory
and reports its canonical identity. fss site plan combines that manifest with supplied
probe receipts to generate exact native RTSP/NVR AVC/HEVC/JPEG capture plans, including
deterministic sensor/stream identities, per-source destinations and one enclosing site
approval digest. Every source must pass; an invalid source produces no partial plan.
JPEG uses the existing datagram-capture command and its 256-picture limit; AVC/HEVC
retain their existing native planning and approval behavior.
site plan --unifi-bindings BINDINGS.json also compiles UniFi Protect AVC/HEVC
sources through the existing from-unifi recorder. Exact private exports, camera
IDs, selected views and receipt routes must agree. Its native approval binds the
actual private-file identity; generated commands and previews omit stream tokens.
Main and package views receive separate identities and destinations. See the
protected UniFi site workflow.
site plan --onvif-bindings BINDINGS.json adds stable Media1 AVC and Media2
AVC/HEVC handoffs through the existing from-onvif capture command, including in
mixed direct/UniFi sites. Bindings pin the historical onboarding/profile identity
and independent RTSP endpoint while preserving the original ONVIF HTTP manifest.
Actual private-file identity is approval-bound; stream and control paths stay
out of generated commands. This validates supplied historical receipts without
claiming their freshness or authenticated HTTP origin. See
ONVIF site bindings.
fss site probe-file now derives receipts from independently pinned recorded
DESCRIBE responses and RTPdump samples using native AVC/HEVC picture assembly or RFC 2435 JPEG reconstruction.
It measures media configuration, SSRC and constant cadence, and refuses unverified
picture tails, lost packets or inconsistent timing. See the recorded-probe example.
fss site probe previews and, with the exact approval digest, performs one bounded
native AVC/HEVC/JPEG RTSP/NVR observation. It returns a receipt array only after matching
TEARDOWN acknowledgement; failures preserve possible remote-session state. For a
UniFi AVC/HEVC source, add the same --unifi-bindings BINDINGS.json used by planning
and --receipt-file /absolute/new-private-receipt.json. The probe selects the exact
private exported stream, measures its real SDP, SSRC and cadence, and saves a new
0600 receipt array for site plan --probes. Export bytes and file identity,
camera/view/quality, route and output are approval-bound; capability URLs remain
off stdout. Protected ONVIF AVC/HEVC probing now uses --onvif-bindings with the
same private receipt destination: it validates the actual handoff and independently
pinned profile/RTSP scope, measures the selected stream, and preserves the original
HTTP manifest for planning. No ONVIF HTTP contact or HTTP-origin verification is
implied. See approved native site probing.
fss-event qsr now reads an exact retained, historically screened package-zone
report to produce actual sampled model-track counts, queue/register-zone presence,
source-sampled dwell and ordered lane-stage endpoint observations. It cold-rechecks
source custody, model/tracker provenance, current privacy, health evidence and
deletion state. Missing or masked support remains unknown with null counts; gaps
and ambiguous stage transitions remain explicit. It grants no physical absence,
unique-person, service-time or detector-accuracy claim and writes no QSR object or
security event. See the retained QSR workflow and
observation definitions.
fss query --target tracks exposes actual matched detector-track observations
through the same CLI/MCP query envelope, with exact source/model provenance,
per-sample tentative/confirmed state and explicit continuity resets. It verifies
retained source custody under a separate source-read grant and supports exact
pagination while a deployment writer remains active. See
retained detector track queries.
fss query --target sources inventories retained sensors and streams, historical
continuity, capsule gaps and import/deletion boundaries through the same bounded
CLI/MCP query surface. It preserves historical health and protected deployment
context while keeping current health, physical coverage and media availability
unknown. See source inventory.
fss query --target localizations discovers retained recorded-localization
recipes and receipts by sensor, stream, import or twin, with exact continuation
pages and H0 metadata handles while ingest remains active. It preserves current
privacy and custody checks while leaving replay, archive availability, adoption
and physical calibration explicitly unestablished. See
localization discovery.
fss query --target reports discovers the exact detector and zone-report handles
needed by tracks and QSR, with bounded filters and pagination over verified
retained metadata. It reads no original media and grants no source-verification
authority. See report discovery.
Validation, recorded probing and capture planning perform no device contact, credential reads, recording or signed rights verification. Automatic Protect export acquisition, automatic ONVIF discovery, TLS/RTSPS, automatic all-source probing and a site recorder remain open. Unsupported sources and payment regions that require masking before original retention refuse. See the executable two-source example and contracts.
Architecture in one page
Agent operating membrane
The packet, authority, cognition, and effect planes remain semantically distinct. Above them, FSS provides one agent operating membrane that composes their outputs without becoming another source of truth. It owns mission/workspace continuity, situation composition, investigations, context selection, affordances, contingent plans, explanations, handoffs, and advisory learning.
Mission + ObjectiveContract
↓
AgentSession / explicit AgentWorkspace revision
↓
SituationCapsule
├─ SituationFrame: minimum sufficient mission-relative world model
│ └─ WorldEnvelope: certified core + material/adversarial possibilities
├─ MeaningfulDelta: what changed and what that invalidated
├─ ContextPack + SemanticCompressionReceipt
├─ active cases/plans/obligations/resource pressure
├─ categorized control envelope: robust/conditional/probe/wait/blocked
└─ nondominated ActionAffordance frontier
↓
InvestigationCase / HypothesisWorkspace / counterfactual branches
↓
ControlPlan → prepare → commit → wait/cancel → verify/reconcile
↓
ExecutionEpisode → ExperienceCapsule → reviewed learning proposal
↓
root-last HandoffCapsule / resumable AgentSessionCapsule
Every layer retains handles to the evidence and semantic owner below it. No mission-critical fact, assumption, obligation, lease, indeterminate effect, or next step may live only in chat history.
The parts meet through one internal CognitiveFacet narrow waist. Each subsystem contributes the
same anchored coordinates—typed knowledge, coverage/health, contradictions/unknowns, evidence
handles, obligations, complete cost, affordance seeds, invalidators, and recovery—so adding a new
camera, model, graph algorithm, or archive backend does not add a new agent dialect.
Every public operation uses one AgentRequestEnvelope / AgentResponseEnvelope pair. Their
ContractBasis pins fss/1 and the exact schema, ontology, operation, view, capability, error,
cost, release, and nightly identities, so an agent never has to guess whether a familiar field
still means the same thing.
The driver model uses an evidence–possibility–control envelope. WorldEnvelope records what the
current anchor certifies, which materially different or adversarial worlds remain possible, and
which unknown dimensions control the decision. The outer capsule categorizes next actions as robust
across those worlds, conditional on named worlds, information-gathering, wait/watch, blocked, or
unavailable. A rare high-loss possibility cannot disappear merely because a ranking model assigns
it a low score.
See AGENT_COGNITION_AND_CONTROL.md,
AGENT_COGNITIVE_CONTROL_PLANE.md, and
AGENT_OPERATING_MODEL.md.
Four planes
- Packet: exact transport/source bytes, protocol sequence, compressed access units, time and continuity evidence.
- Authority: identities, generations, source custody, policy, calibration/coverage, event revisions, effects, obligations, and receipts.
- Cognition: decoded media, tensors, detections, tracks, associations, graph/search projections, digital twin, operational memory, and explanations.
- Effect: alerts, PTZ/settings, retention/deletion/export, activation, and repair mutation.
One ordered version universe
An immutable EvidenceDeltaBatch is the common source for history, graph/search maintenance,
subscriptions, checkpoints, replicas, and branches. Every response reports:
authority anchor
search high-water
graph high-water
model-result high-water
calibration and coverage generations
staleness or gap
A caller can demand alignment, accept bounded lag, or receive an explicit stale/degraded result.
See docs/ONE_VERSION_UNIVERSE.md.
Target crate families
Foundation: fss-types · fss-error · fss-schema · fss-numeric · fss-identity
Runtime/fabric: fss-runtime · fss-capability · fss-subject · fss-obligation · fss-lab · fss-decision
Device: fss-device-core · fss-device-uvc · fss-device-rtsp · fss-device-onvif
fss-device-vendor · fss-drone-capture
Media: fss-packet · fss-container · fss-codec-* · fss-audio · fss-live
Authority: fss-ledger · fss-witness · fss-object · fss-publication · fss-checkpoint · fss-privacy
Transfer: fss-transfer · fss-archive · fss-provider-s3 · fss-repair · fss-retrievability
Geometry: fss-time · fss-calibration · fss-geometry · fss-twin · fss-coverage
Models: fss-tensor · fss-operator · fss-kernel-cpu · fss-model-ir/import/runtime/registry
Cognition: fss-quality · fss-detect · fss-track · fss-associate · fss-temporal · fss-fusion
fss-event · fss-policy
Knowledge: fss-search · fss-graph/query/algorithms · fss-forge · fss-memory · fss-explain
Agent cognition: fss-agent-core · fss-knowledge · fss-situation · fss-attention · fss-investigation
fss-context-pack · fss-affordance · fss-query-plan · fss-agent-session
fss-agent-plan · fss-episode · fss-learning · fss-handoff
Effects: fss-plan · fss-effect · fss-alert · fss-export
Presentation: fss-api · fss-cli · fss-mcp · fss-report · fss-ops · optional fss-ui
Qualification: fss-reference · fss-fixtures · fss-gauntlet · fss-bench · fss-release
The checked-in workspace is intentionally smaller. Empty crate theater is not implementation.
Pure-Rust media and streaming
For an owner-approved AVC or HEVC camera, fss-capture-rtsp provides
an exact no-I/O approval plan, one bounded literal-IP TCP session, fixed declared media
cadence, journaled original-RTP recording windows, deliberate picture-count stop and
explicit partial-capture accounting. AVC remains the default; --codec hevc requires one
matching H265/90000 offer and its exact VPS/SPS/PPS configuration. HEVC windows preserve
real boundary-witness packets and distinguish unverified EOF tails from selected pictures.
Both codecs protect pending work before window/catalog publication and close input before
the final protected drain. On Linux, optional realm-bound Digest authentication
uses an explicitly approved private credential file, fresh cnonces and continuous lease
revalidation; authentication is disabled by default. Its exact durable window/catalog pins
feed the retained RTSP importer and native decode/analysis,
including cold use after the original capture archive is offline.
For JPEG cameras, fss-capture-rtsp jpeg retains
original selected RTP and RTCP through the same root-last store, validates complete
images with the native luma decoder, and stops under explicit independent bounds.
jpeg replay reopens an exact saved prefix without network or credentials and binds
reconstructed images to their actual original packets, including cached quantizer
definitions. Capture time stays unknown, and prefix exhaustion never invents media EOF.
fss-import-rtsp jpeg then connects that exact prefix
to ordinary retained MJPEG decoding and analysis, preserving every original
datagram and native image source map in destination custody. Physical camera
mapping remains explicit; packet gaps and incomplete tails remain visible.
FSS separates source evidence, live delivery, and analysis:
- source bytes and packet/timing maps are immutable custody objects;
- live derivatives prioritize bounded latency and can reduce quality under pressure;
- analysis decodes only the frames/regions/resolutions demanded by the cascade;
- remux is preferred to transcode;
- H.264/H.265/MJPEG and required audio profiles are admitted incrementally;
- scalar parser/decoder semantics remain the oracle for safe optimized/SIMD kernels;
- frame/tensor views pin immutable or generation-leased backing storage;
- pressure follows a registered degradation ladder and never silently drops canonical evidence or committed obligations.
FFmpeg/ffprobe and browsers compare behavior in the lab. They are absent from the production
closure. See docs/STREAMING_AND_MEDIA_KERNEL.md.
Pure-Rust model runtime
Open-weight models are imported offline into immutable FSS packages containing a frozen first-party operator IR, canonical tensor objects, preprocessing/postprocessing, numeric policy, licenses, quality/conformance receipts, and repair metadata.
The runtime is CPU-first and specialized for frozen inference graphs: packed weights, cache-shaped tiling, liveness-planned scratch arenas, safe SIMD, fused preprocess/layout/early operators, and static shape-specialized dispatch. Every optimized kernel has a scalar reference and exact or tolerance-certified contract. Optional accelerators are first-party and receipt-bearing; CPU fallback remains qualified.
Python, PyTorch/ONNX Runtime, and accelerator incumbents remain lab oracles. Production does not interpret arbitrary framework graphs or download models at runtime.
See PURE_RUST_MODEL_RUNTIME.md and
docs/deep-dives/FRANKENTORCH.md.
fss-infer import-onnx now supports strict recipes for RGB/BGR channel normalization
and static anchor-free DFL raw-head decoding. Both transformations become immutable native
graph operations, preserving original ONNX bytes and source outputs. The decoded boxes feed
the existing privacy, score and NMS pipeline. See
docs/ONNX_PACKAGE_IMPORT.md for the exact supported profiles.
Detection is a cascade, not a monolith
A frontier VLM is too expensive, nondeterministic, and weakly calibrated to inspect every frame or authorize alerts alone. The target cascade is:
- sensor health, blur, darkness, obstruction, glare, replay, and tamper checks;
- cheap activity/change/audio gates with explicit coverage state;
- fast detector and segmenter;
- within-camera tracking and trajectory features;
- geometry/time-gated cross-camera association with k-best alternatives;
- open-vocabulary unusual-object/behavior retrieval;
- bounded temporal multimodal reasoning;
- an independent verifier with a different failure profile;
- conformal/sequential calibration and semantic event transaction;
- alert, abstain, request another view, or retain silently.
Every stage emits a generation-pinned result. Later models can contradict earlier results; they cannot erase source provenance or directly authorize an effect.
Certified graph intelligence
Graphs are operational kernels, not dashboards. Initial registered families cover:
- dynamic connectivity and temporal reachability;
- articulation points, bridges, dominators, max-flow/min-cut, and Gomory-Hu failure summaries;
- shortest/k-shortest trajectories;
- bipartite matching, k-best assignment, and min-cost flow for association;
- SCC/condensation/topological critical path for obligations and plans;
- set cover, facility location, and submodular active perception/coverage;
- PPR attention, d-separation/shared-failure analysis, factorized joins;
- canonical deletion reachability and wait-cycle detection.
Every run pins an authorized immutable projection and emits a GraphAlgorithmWitness with
canonical tie-break, output digest, complexity counters, and decision path. Incremental standing
predicates are checked against full recomputation.
See GRAPH_ANALYTICS_AND_SENSOR_MESH.md,
docs/GRAPH_INTELLIGENCE_ARCHITECTURE.md, and
registries/GRAPH_ALGORITHMS.md.
Digital twin and calibration shuttle
The target setup avoids asking a homeowner to perform a professional survey:
- place optional printable/illuminated calibration markers;
- start fixed-camera capture and a calibration session;
- manually fly or carry a camera through fixed views and overlap zones;
- reconstruct the property and moving-camera trajectory;
- jointly solve intrinsics, extrinsics, time offset/skew, rolling-shutter terms, scale, and trajectory;
- compute covariance, residuals, coverage, occlusion, blind spots, and expected transit intervals;
- publish a generation certificate with validity regions and invalidators.
A moved camera, crop/zoom/firmware change, seasonal occlusion, or residual drift degrades or invalidates the certificate. NeRF/Gaussian-splat renderings are useful views, not metric authority.
See DIGITAL_TWIN_AND_CALIBRATION.md.
fss-scene-fuse retained-fuse now connects retained native detector tracks to the
property scene and declared camera rig for 3D point and constant-velocity reconstruction.
It authenticates original observations, preserves full capture intervals, checks explicit
feature selections against detector bounds, and revalidates custody after solving. Reports
retain camera/clock/correspondence assumptions and every geometric refusal. See
docs/RETAINED_SCENE_FUSION.md for the command and input contract.
fss-scene-fuse match takes two exact JPEGs through native masked feature extraction,
automatic symmetric descriptor/epipolar matching and 3D point reconstruction. It discovers
pixel correspondences and preserves the complete candidate inventory, ambiguous features,
source hashes and geometric refusals. Camera, clock and stationary-feature declarations stay
explicit. See docs/SCENE_FEATURE_MATCHING.md for the query,
mask policy, image-resolution work bounds and report interpretation.
fss-scene-fuse retained-match runs automatic feature matching directly on two retained
JPEG, AVC or HEVC camera frames. It authenticates original custody and source clocks,
uses current deployment privacy masks, and revalidates the source ranges before releasing
3D hypotheses. The existing fss-file decode output supplies the exact selection pins.
See docs/RETAINED_SCENE_MATCHING.md.
fss-scene-fuse retained-multimatch extends that workflow to 3–8 retained cameras.
Every camera pair retains its complete correspondence evidence; supported components
fit joint static points using all participating views. Conflicting cycles, incomplete
chains and geometric refusals remain visible, with explicit source revalidation and
full capture intervals. See
docs/RETAINED_MULTICAMERA_MATCHING.md.
Both retained matching commands also accept v2 image declarations for native
Brown–Conrady/fisheye correction and explicit pinhole crop/resize. The target grid
comes from the camera rig; original source pixels, corrected feature pixels and
privacy footprints retain separate provenance. See
docs/RETAINED_LENS_MATCHING.md.
fss-scene-fuse retained-atlas exports explicitly selected reconstructed static
landmarks and actual reference descriptors as FSATLAS1, which the existing
fss-file localize command can use to register another camera into the same twin.
The export retains complete source/lens/privacy provenance and unresolved scene
alternatives; static eligibility is declared and absolute landmark error remains
unknown. See docs/RECONSTRUCTED_LOCALIZATION_ATLAS.md.
fss-scene-fuse retained-motion-match automatically connects features across
4–16 retained exposures from 2–8 fixed cameras and estimates common-time
3D position and velocity. Repeated-camera observations keep their original
source and timing; complete descriptor alternatives, incomplete groups and
geometric refusals remain visible. The native moving-point fit uses each
observation's own capture time and does not apply stationary epipolar gating
or extrapolate unsupported components. Direct and lens-corrected inputs share
the existing retained source/privacy owners. See
docs/RETAINED_TEMPORAL_MATCHING.md.
fss-scene-fuse retained-calibrated-match uses currently adopted site-calibration
geometry for any of those stereo, multi-camera or moving-feature queries.
The exact calibration, original camera inputs, physical sensors and retained
adoption receipts determine the intrinsics and poses. Current adoption/withdrawal
and source/privacy custody are revalidated before release. Reports preserve
calibration provenance and conditional covariance while keeping absolute camera
error unknown. Rig v1 uses the original calibrated pinhole image domain;
rig v2 supports the adopted radial lens model through native correction,
binding exact source intrinsics, original domain and calibration identity before
decoding. See adopted lens reconstruction and
docs/ADOPTED_CALIBRATION_RECONSTRUCTION.md.
fss-scene-fuse retained-calibrated-atlas exports selected static points from
that current adopted geometry as a portable FSATLAS1 localization atlas.
The existing fss-file localize consumer can register a fresh camera from its
actual reference descriptors. Complete calibration, source/privacy provenance
and scene alternatives remain in the manifest; final adoption/withdrawal checks
stay protected through publication. See
docs/ADOPTED_RECONSTRUCTION_ATLAS.md.
ATP archive, repair, and deletion
Source media, evidence bundles, checkpoints, model packages, graph/search/calibration/twin snapshots, replay corpora, and releases move as immutable ATP object graphs. The receiver stages children, verifies manifests and canonical digests, repairs only against exact generations, verifies closure, and publishes the root last.
“Uploaded” is not “archived.” Completion can require independent replicas and proof-of- retrievability samples. Deletion enumerates repair symbols, replicas, indexes, embeddings, caches, journals, and staging objects before publishing a tombstone root.
ATP never carries mutation authority. See
ATP_AND_DISTRIBUTED_EVIDENCE.md and
docs/ATP_ARCHIVE_AND_REPLICATION.md.
The quality objective
“Never miss a true intruder” is the right motivating aspiration and the wrong unqualified claim. FSS turns it into:
- event-level AUPRC over a declared threat distribution;
- recall lower bounds at a declared false-alerts-per-property-day budget;
- time-to-detect and time-to-deliver distributions;
- probability calibration and selective-risk curves;
- distinct slices for darkness, occlusion, crawling/crouching, dark clothing, weather, foliage, wildlife, residents, delivery/service workers, children, and tampering;
- explicit
not_observableaccounting for failed/occluded/uncalibrated coverage; - property/session-separated held-out evaluation;
- retained misses, near misses, false alarms, contradictions, and broken assumptions;
- claims that name shared model/sensor/clock/network/training-data failure domains.
A missing or degraded sensor is not a negative observation. FSS must say “coverage uncertified” rather than lower the score silently.
Agent and operator surface
The public semantic protocol is intentionally small. Domain detail is expressed through typed queries, targets, intents, views, and evidence handles rather than hundreds of privileged tools:
session.open negotiate mission, authority, privacy, budgets, views, and initial workspace
session.resume restore a handoff/workspace root and enumerate invalidated assumptions
session.orient return the smallest sufficient current SituationCapsule
session.follow stream meaningful decision-impact deltas and qualified silence
query compile/execute a bounded semantic AgentQueryPlan
investigate create or advance a durable competing-hypothesis case
plan compile an immutable witnessed contingent ControlPlan
commit request execution of the exact prepared plan under current domain authority
wait monitor expected evidence and obligations under a bounded wake contract
cancel request drain, compensation/reconciliation, and terminalization
explain answer why, why-not, what-changed, and what-would-change by proof handles
handoff publish a root-last minimum-sufficient continuation graph
feedback append evidence-linked correction/outcome proposals without silent activation
doctor diagnose system, epistemic, plan, obligation, and continuity failures
Every nonterminal response contains either a valid typed affordance or an explicit blocked, waiting, unauthorized, terminal, redacted, indeterminate, or not-observable reason. Recommendations show value, cost, latency, risk, reversibility, prerequisites, invalidators, alternatives, expected proof, and sensitivity. They never confer effect authority.
The standard views are pulse, brief, case, forensic, operation, handoff,
decision_diff, and epistemic_map. A compact response is accompanied by a
SemanticCompressionReceipt naming what was selected, omitted, transformed, protected from
omission, and available for priced hydration. CLI, Rust API, MCP, TUI, reports, and future desktop
or mobile surfaces render the same operation/view registries and may not redefine them.
There is no generic shell, SQL, vendor-method, codec, model-prompt, object-store, or drone-control
escape hatch. Free-form language compiles into an inspectable AgentQueryPlan; it cannot cross an
effect boundary.
Local qualification and release
The release authority is local:
- create a clean immutable source snapshot;
- capture exact clean Asupersync/Franken-suite revisions;
- resolve locked and offline after provisioning;
- run repository policy, Rust, deterministic lab, crash, ATP, graph, media, model, device, agent-cognition, security/privacy, performance, soak, and package lanes as required by claims;
- retain partial target artifacts across resume but never bless them;
- build exact assets with checksums, minisign/Ed25519 signatures, SBOM, provenance, source/ dependency and qualification manifests;
- upload, download, and verify;
- publish the release manifest root last.
The repository pins the latest nightly that has passed a promotion gauntlet. Releases never build
against an ambient moving nightly. GitHub workflow YAML calls repository scripts and can be
executed locally by DSR/compatible tooling; GitHub-hosted runners are not required.
See LOCAL_QUALIFICATION_AND_RELEASE.md.
Repository map
| Path | Purpose |
|---|---|
COMPREHENSIVE_PLAN_FOR_FRANKEN_SURVEILLANCE_SYSTEM.md |
Normative architecture, execution plan, and first 250 issues |
FRANKENSTACK_DEEP_DIVE.md |
Cross-project synthesis and constitutional imports |
AGENT_COGNITION_AND_CONTROL.md |
Canonical agent cognition/control/accretion constitution and public fss/1 semantic protocol |
AGENT_COGNITIVE_CONTROL_PLANE.md |
Internal cognitive membrane, evidence hydration, control-loop, and crate-composition design |
AGENT_OPERATING_MODEL.md |
Driver-facing operating loop, views, semantic zoom, investigations, handoff, and evaluation |
docs/deep-dives/INDEX.md |
One deep mechanism audit per sibling project |
DEPENDENCY_CONSTITUTION.md |
Canonical pure-Rust closed-universe policy; its byte-identical docs/ mirror is policy-checked |
docs/ONE_VERSION_UNIVERSE.md |
EvidenceDeltaBatch, anchors, high-water marks, branches, and recovery |
docs/MVCC_EVIDENCE_LEDGER.md |
Positive/negative witnesses, SSI, commit combining, and reconciliation |
docs/STREAMING_AND_MEDIA_KERNEL.md |
First-party packet, container, codec, live, and analysis design |
PURE_RUST_MODEL_RUNTIME.md |
Canonical frozen model package and first-party execution constitution; its docs/ mirror is policy-checked |
docs/GRAPH_INTELLIGENCE_ARCHITECTURE.md |
Projection and certified algorithm architecture |
docs/GRAPH_ALGORITHM_ATLAS.md |
Operational use, ties, complexity, and admission per algorithm |
GRAPH_ANALYTICS_AND_SENSOR_MESH.md |
Canonical certified graph/sensor-mesh doctrine; its docs/ mirror is policy-checked |
ATP_AND_DISTRIBUTED_EVIDENCE.md |
Canonical ATP object-graph, repair, federation, deletion, and receipt doctrine; its docs/ mirror is policy-checked |
docs/ATP_ARCHIVE_AND_REPLICATION.md |
Object transfer, repair, retrievability, and deletion |
docs/DECISION_CARDS_AND_EXPERIMENTS.md |
Hard-clamped adaptation and same-binary evidence |
docs/PERFORMANCE_AND_MECHANICAL_SYMPATHY.md |
Profile-first safe optimization and resource economics |
LOCAL_QUALIFICATION_AND_RELEASE.md |
Canonical DSR-first qualification and root-last release constitution; its docs/ mirror is policy-checked |
docs/LOCAL_QUALIFICATION_WITH_DSR.md |
Clean-snapshot native-host DSR execution contract |
ARCHITECTURE.md |
Compact architecture reference |
DEVICE_ADAPTER_MATRIX.md |
Exact device/firmware/app/region compatibility states |
MODEL_REGISTRY.md |
Model candidate, package, license, and admission registry |
DIGITAL_TWIN_AND_CALIBRATION.md |
Calibration and coverage doctrine |
DATA_FORMATS.md |
Durable identities, object families, and schemas |
SECURITY.md / PRIVACY.md |
Authority, secrets, taint, retention, identity, and deletion |
architecture/ |
Machine invariants, imports, dependencies, algorithms, publications, decisions, costs, agent contracts/operations/views/tower, and release policy |
registries/ |
Human-readable stable registries |
schemas/ |
Draft 2020-12 interchange/evidence schemas |
scripts/qualify.sh |
Repository-local qualification contract |
docs/NEGATIVE_EVIDENCE.md / docs/PERF_LEDGER.md |
Failed hypotheses and measured wins |
MANIFEST.sha256 |
Snapshot integrity manifest |
Inspect the skeleton
python3 scripts/generate-manifest.py
bash scripts/qualify.sh --lane policy
bash scripts/qualify.sh --lane rust
cargo run -p fss-cli -- capabilities --json
cargo run -p fss-cli -- doctor --json
The current artifact environment may not have the pinned Rust nightly installed; the policy and artifact checks are independently executable with Python. A passing skeleton build does not qualify any camera, codec, model, graph algorithm, archive provider, or alert path.
Non-goals
FSS is not:
- a way to access devices, accounts, or footage without the owner’s authorization;
- a credential-bypass, exploit-distribution, or covert-monitoring toolkit;
- a public face-recognition or cross-property identity network;
- a guarantee that no intrusion can ever be missed;
- an autonomous armed, confrontational, pursuit, or drone-flight system;
- a cloud-required product or generic smart-home platform;
- a Rust supervisor around required foreign production runtimes;
- a generic shell/SQL/vendor/model/codec interface for agents;
- a benchmark leaderboard without retained semantic and statistical evidence;
- a release process dependent on GitHub-hosted Actions.
Current status
Reality-checked on 2026-09-23; runtime/authority core updated 2026-10-20. Everything below is a deterministic reference implementation tested on generated fixtures and lab loopback harnesses; nothing is release-qualified, and no capability has been measured on real camera footage.
Implemented (reference, unqualified):
- file import with SHA-256 source custody for H.264/H.265 Annex-B, H.264/H.265 in MP4 (indexed
or fragmented
avc1,hvc1/hev1, also QuickTime.mov; ordinary camera, phone and drone exports and fMP4 recorders, interleaved audio kept as bytes), H.264/H.265 in Matroska/WebM (.mkv, seekable or live unknown-size; OBS and FFmpeg segment recorders), MJPEG and rtpplay recordings (fss-file import); - RTP depacketization for H.264/H.265, RTSP negotiation with Digest authentication over interleaved
TCP (
fss-capture-rtsp,fss-capture-reconnect), native HTTP MJPEG capture and history watch (fss-import-http,fss-watch-http-history), TUTK P2P / NewProtocol live capture for the Wyze Cam v4 (HL_CAM4) lab tuple (fss-capture-tutk), unified LAN camera discovery across mDNS, SSDP, WS-Discovery, and UDP beacons (fss-discover), local capture archives with verify/export (fss-archive), and fragmented-MP4 remux for AVC/HEVC; - UniFi Protect camera and package-view selection
(
fss-capture-rtsp from-unifi), with private stream-token files, exact quality and transport selection, native AVC/HEVC recording and cold import/decode, and optional once-per-session RTP sender-ID learning (--ssrc auto). Unknown models use reported capabilities; secure RTSPS endpoints require a secure transport that this recorder does not yet implement; - baseline JPEG/MJPEG decode, bit-exact (vs FFmpeg) H.264 decode (Baseline, Main and High
profile, CABAC/CAVLC, I/P/B slices with display-order output, 8x8 transform, scaling matrices),
and bit-exact H.265 Main profile decode (
fss-file decode,fss-video,fss-decode-rtp); - a model-free single-camera pipeline, decode -> foreground -> Kalman tracking -> zone candidates
-> approval-gated publication (
fss-event watch), plus H.264/H.265/MJPEG/RTP pixel-change motion analysis (fss-file motion,fss-decode-rtp motion); - HTTP camera capture into retained native detection
(
fss-capture-reconnect sentinel): one approved acquisition carries its exact ended-history pins into motion-independent model bursts, retained source/model/recipe custody and cold replay. Package validation precedes camera contact; analysis failure supplies exact offline continuation instead of camera reacquisition; - bounded capture from continuous HTTP MJPEG
(
fss-capture-reconnect sentinel-prefix): stop at an approved frame count without peer EOF, retain received read-ahead and partial-tail custody, analyze only the acknowledged first N frames, and resume import/inference or replay offline from exact typed receipts; - exact saved RTSP campaign watch across independent retained
AVC/HEVC archives (
fss-watch-rtsp-campaign), preserving failed, empty and unknown attempts, with separate tracking per attempt and native reruns from destination custody; - historical recorder replay into retained analysis
(
fss-import-rtsp replay), preserving the complete AVC/HEVC replay receipt, every native original, requested/acknowledged ranges and discovery provenance through cold decode, inspection and review, with explicit gaps and partial retrieval status; - two-sensor corroboration of recorded ground-zone entries through owner-supplied or site-calibrated
homographies, optional 3D scene-mesh/pose visibility and covariance guards, and gated global
association (
fss-event corroborate), plus one approval-gated plaintext webhook alert per corroborated event with a durable prepare/commit/observe/reconcile record (fss-event alert); - calibrated evidence fusion (
fss-fusion,fss-fuse) with integer milliban log-likelihood ratios, common-cause failure-domain cluster hulls, Wilson score calibration intervals, and counterfactual attribution; restartable source-once sequences preserve consumed evidence and exact calibration inputs across process restarts (fss-fuse --sequence); - continuing live incidents from native daemon tracks, with immutable revisions, current-evidence fusion, generation-scoped identity, bounded continuation, and exact canonical retry receipts across restart;
- opt-in
--sensor-health conservative-v1for recordedwatchandcorroborate, screening privacy-masked pixels for repetition, persistent dark/bright fields and contrast loss before those runs can support candidates or coverage witnesses; reports retain bounded measurements, and a clear screen explicitly does not establish health (see visual-degradation screening); - a deterministic event-level evaluation harness (
fss-evaluate: AUPRC, recall at a false-alert budget,not_observableaccounting) with no real labelled corpus yet; - a pure-Rust scalar and optimized CPU model executor (with deterministic multi-threaded Conv2d via
ExecThreads) over the frozen FSS IR with Safetensors weights and the verified YOLOX-Nano COCO-80 package (fss-infer,--detector-packagecascade infss-event watch/corroborate); - background-model foreground detection, the OpenCV HOG people SVM, Kalman/Hungarian tracking, cross-camera assignment over caller-supplied ground-plane points, and zone-gated event candidates;
- implementations of all 27 registered graph algorithms in
fss-graph-algorithms. The graph registry records each algorithm's input, complexity and output bounds, and qualification evidence; - durable journal/ledger with torn-tail recovery, root-last local publication, a durable effect
journal with prepare/commit/observe/reconcile, deployment backup and fenced restore (
fss-backup), owner-defined rectangular privacy masking across live/replay decode and raw-export refusal, local deletion closure (fss-file delete) and evidence holds (fss-hold), and a read-only deployment doctor (fss doctor --json --root <dir>); - camera pose (Horn, RANSAC PnP, planar homography, site calibration from correspondences or loose JPEG frames) and image-to-atlas localization;
- the complete
fss/1agent semantic contracts and all 14 registered agent operations (AOP-001throughAOP-014:session.open,session.resume,session.orient,session.followwith durable adjacent-prefix delivery and explicit ACK,query,investigatewith work claims and shared findings,planwith episode closure,commitwith owner-attested reconciliation,wait,cancel,explain,handoff,feedback, anddoctor) across both thefssCLI and the synchronous stdio MCP server (fss-mcp); - the plan, registries, schemas, policy checkers and local qualification wrapper.
- the factory-state camera onboarding substrate (
fss-provision, LAB-PROVISION-001): a sans-IO, deterministic reference for turning a factory-state camera (Yi/Wyze/AOSU/OpenIPC-class-A/ generic-standards) into a tailnet-native FSS node — per-family friction class, software transport, prerequisites, ordered steps, digest-pinned SD-image layout and on-camera software bundle, a typed onboarding plan (or a typed blocked reason), and a heartbeat liveness tracker; the software vs. data split is preserved (Wyze/AOSU are locked for software yet usable for data);
Partial:
- retained graph analysis.
fss-event graph analyzecan run registered algorithms on historical sensor coverage and the active support of current event heads. A named zone with zero qualifying witnesses stays visible as an isolated node. Direct file imports and event claims do not establish coverage. The controlled FrankenNetworkX differential gate (INT-FNX-001) is still open; - alert delivery: plaintext webhook relays only (no TLS, retries or provider adapters).
Not implemented:
- HEVC Main 10/RExt/tiles/dependent slices, interlaced or 4:2:2/4:4:4/10-bit H.264, progressive JPEG, RTP over UDP, UVC, ONVIF;
- any detection-quality or calibration result for the shipped YOLOX-Nano package (it is checked only for conformance to its upstream ONNX graph), and any event-quality evaluation (AUPRC, recall at a false-alert budget) on real data (its cascade and package-report evidence is uncalibrated);
- Asupersync integration beyond the runtime core:
fss-runtimecomposes the AsupersyncCx(cancellation, regions, obligations — landed 2026-10-19), but production I/O remains blockingstdand the deterministic LabRuntime schedule lanes are not yet wired; - cloud archive/ATP remote transport, property reconstruction, graph-complete remote/replica deletion
and cryptographic erasure, search/memory crates (
fss-search,fss-memory), remote authenticated MCP transport, live operator TUI view, and the DSR release matrix.
That gap is tracked in .beads/.
License
MIT License (with OpenAI/Anthropic Rider). Device firmware, vendor applications, model weights, codecs, datasets, and cloud services keep their own licenses and terms. FSS treats license, exact bytes, firmware/app/model generations, and allowed use as runtime correctness inputs rather than paperwork deferred until release.
Ähnliche Projekte entdecken
Wird geladen…