LeadGate
A self-hosted lead-intake service on n8n: validate, de-duplicate, score, classify with an optional local AI model, store, notify, and recover from component failures.
Independent AI systems and automation developer
CEDR1C is my independent engineering practice, built around a commitment to solving complex technical problems through resourcefulness, continuous learning and measurable results. My work combines human-directed architecture with AI-assisted implementation, structured verification and practical systems engineering.
Pick a part of a system to see what was measured for it. The optional 3D view is a schematic of the architecture, not live telemetry, and everything it shows is also in the list below it.
Keyboard, with the 3D view focused: left and right arrows rotate it, up and down arrows step through the parts.
A self-hosted lead-intake service. Select a part of the system to see the measured evidence for it, with the conditions and caveats.
The entry point: TLS, per-client API keys and a body-size limit. Every lead is acknowledged here.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
Decouples intake from processing so a slow downstream step does not block senders. No figure is attached to this part on its own; its effect shows in the throughput and recovery figures.
No figure is attached to this part on its own.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
Validate, de-duplicate and score each lead.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
An optional local model classifies each lead. Every fallback to the rule engine is flagged for human review; none is silent.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
Stores leads and status, with automatic verified backups.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
Sent with a stable idempotency key and re-sent until recorded. Delivery is at-least-once, so the receiving system must deduplicate. No figure is attached to this part.
No figure is attached to this part on its own.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
Finds leads left stuck after a crash and re-queues them. A deliberate stuck-lead threshold plus its sweep interval dominate recovery time.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
A local video-generation benchmark. Select a stage to see what was measured, and what was not.
Three shots, prompts and reference images. The first shot was reused from an earlier run.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
Three shots on one timeline. No figure is attached to this stage.
No figure is attached to this part on its own.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
A local third-party video model on the main GPU.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
Upsampling and decoding on a second GPU. True peak memory headroom was not measured.
No figure is attached to this part on its own.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
One 60 fps cut with a voice track.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
Automatic checks for black and frozen frames, silences, loudness and the audio level at each join. They are what found the audio jumps listed here.
Schematic: the 3D layout shows structure, not measurements or live telemetry.
I specialize in AI-assisted software engineering, local model deployment, intelligent workflow automation and performance optimization. I turn complex technical concepts into functioning, measurable systems through structured engineering, reproducible testing and evidence-driven development.
My projects show practical experience with Linux-based infrastructure, containerized services, REST API integrations, local LLM inference, multimodal AI pipelines, database-backed automation, hardware optimization and failure recovery. Rather than relying on claims alone, I document system behavior, benchmarks, architectural decisions and verified results.
A short documentary built from real project records: the obstacles, the dual-GPU pipeline, genuine before and after cases, and one measured benchmark. It starts only when you press play. Captions are included.
The video could not be played here. Download the MP4 or read the captions (SRT).
Keyboard, with the player focused: Space or K play and pause, left and right arrows seek 5 seconds, M mutes, C toggles captions, F full screen.
All footage is AI-generated. Results come from documented single runs of independent research and development projects.
Figures from recorded runs of independently developed systems that demonstrate practical engineering, infrastructure integration, performance optimization and reproducible verification. LeadGate used synthetic data on one machine; Dragon Forge is a single research run. Each tile links to its conditions and caveats.
Acknowledgement latency p99 at 10 leads/s
122 ms
10 leads/s for 5 minutes, synthetic leads, one host. Acknowledgement only, not AI completion.
Conditions and caveats for Acknowledgement latency p99 at 10 leads/sSustained throughput, completed leads
39.63 leads/s
10,000 synthetic leads in one run. Saturation testing identified the system's latency trade-offs: see the next tile.
Conditions and caveats for Sustained throughput, completed leadsAcknowledgement latency p99 at saturation
3,760 ms
Same run as the tile before: observed acknowledgement latency under saturation conditions. Not comparable with the 10 leads/s figure.
Conditions and caveats for Acknowledgement latency p99 at saturationWorst recovery after a worker, webhook or Redis fault
107.2 s
Worst of the worker, webhook and Redis faults under load. Recovery remained within the 120 s acceptance threshold, with approximately 13 s of remaining margin.
Conditions and caveats for Worst recovery after a worker, webhook or Redis faultFull database loss, restore to a processed lead
192.7 s
Whole database deleted, then restored from backup. Leads acknowledged after the last backup are lost.
Conditions and caveats for Full database loss, restore to a processed leadAI category accuracy, held-out half
97.5%
97.5% category accuracy across 80 held-out synthetic evaluation items; the 2.5% error rate is listed under technical operating boundaries.
Conditions and caveats for AI category accuracy, held-out halfEnd-to-end wall time
870.8 s
One run on two local GPUs. The first shot was reused: two fresh generations, not three.
Conditions and caveats for End-to-end wall timeAssembled clip duration
30.05 s
Three shots at 60 fps and 704×384. Known audio and cut artifacts are listed below.
Conditions and caveats for Assembled clip durationA self-hosted lead-intake service on n8n: validate, de-duplicate, score, classify with an optional local AI model, store, notify, and recover from component failures.
A local video-generation benchmark: a 30-second, 60 fps, three-shot clip on a consumer AMD GPU with a second GPU for helper roles.
A browser tool that writes a project scope and a payment schedule that adds up to the cent. Runs entirely in your browser.
In a frozen qualification suite LeadGate passed 10 technical gates and 165 individual checks, inside a declared envelope. Criteria were fixed before any repair, and qualification gates include negative controls demonstrated to detect deliberately introduced faults. That is a statement about the envelope, not about any other deployment.
Bar lengths use a log scale. The three runs differ in offered load, so read each bar with its own conditions (see the ledger below).
At the declared burst rate of 10 leads/s the 99th-percentile acknowledgement took 122 ms. Under saturation conditions, the system completed 39.63 leads/s, but acknowledgements then took 3,760 ms at p99. Both are real; they answer different questions.
| Injected fault | Time to a processed lead | Bound |
|---|---|---|
| Worker process kill | 105.8 s | 120 s |
| Webhook process kill | 107.2 s | 120 s |
| Redis restart | 101.2 s | 120 s |
| Postgres restart | 104.7 s | 180 s |
Each fault was injected under load. No acknowledged lead was lost, duplicated or left stranded, and recovery remained within the defined 120 s acceptance threshold, with approximately 13 seconds of remaining margin; the recovery time is set by the sweeper that picks up a lead caught mid-crash.
| Figure | Result | Measured under | Caveats |
|---|---|---|---|
| LG-01 Frozen technical gates passed | 10 | criteria frozen before any remediation verdict computed by a deterministic aggregator single Docker host (reference workstation), n8n 2.50.3 in queue mode synthetic data | the first full pass had 5 of 10 gates failing; they were remediated and re-run (see the case study) applies only inside the declared envelope; not a certification |
| LG-02 Individual checks passed | 165 | same run as the gate verdict qualification gates include negative controls demonstrated to detect deliberately introduced faults; each gate carries at least one | a count of checks is a measure of coverage effort, not of quality on its own |
| LG-03 Sustained throughput, completed leads | 39.63 leads/s | 10,000 unique synthetic leads, one run single Docker host (reference workstation), n8n 2.50.3 in queue mode enrichment and notification were stand-in services, AI classification not in this run | saturation testing identified the system's latency trade-offs (see the saturation p99 from the same run) single run, not a soak test |
| LG-04 Acknowledgement latency p99 at saturation | 3,760 ms | same 10,000-lead saturation run as the throughput figure time until the sender receives the acknowledgement | this is the observed acknowledgement latency under saturation conditions; it is not comparable to the 10 leads/s figure |
| LG-05 Acknowledgement latency p99 at 10 leads/s | 122 ms | 10 leads/s for 300 seconds (3,000 unique synthetic leads) single Docker host (reference workstation), n8n 2.50.3 in queue mode the declared burst ceiling of the envelope | acknowledgement latency only, not time to finish AI classification stand-in enrichment and notification services |
| LG-06 Leads failed in the 10 leads/s run | 0 of 3,000 | same 300-second run every lead reconciled by the load generator against the database | none recorded |
| LG-07 Acknowledgement latency p99 at 2x the burst rate | 296 ms | 20 leads/s offered (2,400 synthetic leads) single Docker host (reference workstation), n8n 2.50.3 in queue mode | lasted minutes, not hours no leads were lost, but the run does not prove behaviour at higher or longer overload |
| LG-08 AI category accuracy, held-out half | 97.5% | 80 held-out items of a 160-item synthetic set labels agreed by two independent labelers (Cohen's kappa 0.99 on category) a 27B-class quantized model served locally on one GPU slot | about 2.5 in 100 category decisions were wrong on the held-out half small test set; validate on your own data a rule-only baseline scored far lower on the same items |
| LG-09 AI urgency accuracy (exact), held-out half | 88.75% | same 80 held-out items urgency labeler agreement was lower (kappa 0.81) | about 1 in 9 urgency decisions were wrong low-confidence results are flagged for human review, never silent |
| LG-10 Rule-only baseline category accuracy (same items) | 41.25% | same 80 held-out items, no model | shown so the model result has a reference point |
| LG-11 Postgres restart, time to a processed lead | 104.7 s | fault injected under load bound for this fault: 180 s single Docker host (reference workstation), n8n 2.50.3 in queue mode | recovery time is dominated by a deliberate stuck-lead threshold plus a sweep interval |
| LG-12 Worst recovery after a worker, webhook or Redis fault | 107.2 s | process kill or restart under load bound for these faults: 120 s single Docker host (reference workstation), n8n 2.50.3 in queue mode no acknowledged lead lost, duplicated or stranded in any of the four fault runs | recovery remained within the 120 s acceptance threshold, with approximately 13 s of remaining margin |
| LG-13 Worker process kill, time to a processed lead | 105.8 s | kill of the worker processes under load bound 120 s | none recorded |
| LG-18 Webhook process kill, time to a processed lead | 107.2 s | kill of the webhook processes under load bound 120 s | none recorded |
| LG-19 Redis restart, time to a processed lead | 101.2 s | restart of the queue service under load bound 120 s | none recorded |
| LG-14 Full database loss, restore to a processed lead | 192.7 s | database volume deleted and replaced by an empty cluster, then restored from the automatic backup restored table identical to the pre-backup snapshot (row count and checksum) bound: 600 s | leads acknowledged after the newest backup are lost on total storage loss (backup interval 15 minutes); in this test 50 such leads were lost and counted the sender must re-send with the same idempotency key |
| LG-15 Leads acknowledged after the last backup and lost on total storage loss | 50 leads | total loss of the database volume backup interval 15 minutes (default) | this exposure is by design and disclosed, not a defect |
| LG-16 Clean install from the delivery archive | 153 s | fresh virtual machine: 4 vCPU, 8 GB RAM, Ubuntu 24.04 minimal cloud image, Docker 29.1.3 second install after uninstall took less time | anonymous registry pulls are rate-limited; installation needs registry access |
| LG-17 High-severity image advisories documented as not reachable | 8 advisories | each documented with evidence that it is not reachable in this configuration point-in-time scan of the public vulnerability database | cannot be patched in place; must be rescanned before every upgrade no penetration test; no compliance certification is claimed |
Evaluated under a controlled, single-run benchmark protocol: 30.05 s of 1,803 frames at 60 fps, 704×384, in 870.8 s of wall time. The first of the three shots was reused from an earlier run, so two were freshly generated.
Approved promotional footage and comparison media are public on this page: the documentary and the before-and-after media evidence. Private original production assets, proprietary workflows and source material are not published.
| Figure | Result | Measured under | Caveats |
|---|---|---|---|
| DF-01 End-to-end wall time | 870.8 s | one complete run: reused first shot intake, two freshly generated shots, voice, assembly AMD RX 7900 XTX 24 GB generating, RTX 4060 laptop 8 GB for helper roles, Ubuntu 24.04 an LTX-2.5-family video model run locally | the first shot was reused from an earlier run, so this is not three fresh generations an earlier matched run took 1,403 s; a substantial improvement was measured and its contributing factors remain under investigation |
| DF-02 Assembled clip duration | 30.05 s | three shots of 601 frames (10.0 s) each at 60 fps | none recorded |
| DF-03 Assembled clip frame count | 1,803 frames | 60 fps | none recorded |
| DF-04 Output resolution (width × height) | 704×384 | 704x384 H.264 with AAC stereo audio | modest resolution; this is a pipeline benchmark, not a delivery format |
| DF-05 Earlier matched run, wall time | 1,403 s | same graph and settings on the previous day | the final run was about 38% faster; contributing factors remain under investigation and candidate causes have not yet been tested |
| DF-06 Freshly generated shots | 2 of 3 | two shots generated once each (no retries); the first shot was reused | reuse of the first shot is stated explicitly |
| DF-07 Out-of-memory events | 0 events | during the final run | true sampling-peak VRAM headroom was not measured device memory use of 24.5 GiB includes allocator cache and is not a headroom figure |
| DF-08 Audio level jump at the first join (raw cut) | 43.3 dB | 100 ms RMS either side of the join a known artifact of the generated audio | reduced to about +25 dB in the review mix; not fixed a ghost/cross-fade of two frames follows each cut cinematic quality verdict was left to the Founder |
| DF-09 Reproducible render (byte-identical to an earlier probe) | Yes | same graph and seed | shows determinism for this graph, not quality |
Concrete frames from the Dragon Forge work. Every output is inspected visually, frame by frame, and defects are logged with written notes. Corrections began by hand, and an automatic version has run on one real film. Four examples follow: three improvements, and one flaw that is still open.
All frames are unretouched stills from AI-generated footage. Each comparison is a single run. None of this shows prompts, workflow graphs or internal automation.
With only the character sheet and the environment as references, the character drifted between shots. In this frame the hairstyle and head details no longer match the character.
Frames from earlier shots were ingested as extra references. The face and hairstyle now match the character across the handoff.
A glowing temple detail that is not in the character reference also appears, and the footage is softer than the first shot. Both are logged as open artifacts.
The first shot had been accepted but looked soft: facial detail and the glowing collar were smeared compared with the other shots. Sharpness metrics did not show it, so it was caught by eye.
A detail-refinement pass sharpened the face and the collar. Review judged the refined frame clearly better, and the whole film was re-inspected end to end after the fix.
At the join between two shots, the picture changes abruptly from one frame to the next: the step is roughly eight times (measured on this clip at quarter scale) the clip's typical frame-to-frame change. It is subtle in a still and reads as a visible pop in playback. Automated analysis flagged the join.
Frames across the join were interpolated so the change is spread out. In the repaired clip the step at the join is substantially reduced. A longer variant froze the motion, so the shorter one was kept.
A still pair cannot show a pop, so the clip below plays the same moment.
The first frame of the next shot matches the end of the previous one, so the handoff itself holds.
Two frames later a faint double exposure of the previous pose appears. It was found by inspecting the frames around every join, and it was logged with notes. It is not fixed in this run.
The sample code is a standalone, tested Python example (a model server and an evaluator), published in the portfolio repository. The same figures are available as data.
Tell me the problem. I scope it in writing, quote a fixed price, and build it. You approve the scope before any work starts.
Founders, small teams and individuals who need something built and do not want to manage a developer. CEDR1C is run by an independent developer, so you deal with the person doing the work.
If this published work is useful to you, you can voluntarily support the AI engineering content, technical demonstrations and educational resources on this site.
Payment is taken on a secure page hosted by Stripe. CEDR1C never sees or stores your card details. Need work done instead? Describe your project.
Sponsor CEDR1C (opens Stripe's secure payment page)Opens Stripe's hosted checkout
contact@cedr1c.app
Site: cedr1c.app
Privacy: this site does not use cookies, analytics or trackers.