Skip to content
Engineering Practice & Case Notes

Systems Engineering in Production

Internal notes from building PegBit. A number on this page is not a published benchmark unless the research page says the log is public. None of these logs are public.

AI Governance & Cryptography·Internal check, not a published benchmark
5 min read

How Witness Cryptographically Seals AI Agent Actions in Regulated Environments

Oluwadamilola Oladunni · Founder & Systems Architect·Published: October 24, 2026·Reviewed: November 6, 2026

Why database audit logs fail regulatory muster in banking and healthcare, and how SHA-256 chained event ledgers provide tamper-evident mathematical proof of non-repudiation.

The Production Problem

When an autonomous AI agent executes a trade, authorizes a loan, or updates patient medical records, standard database logs (PostgreSQL audit triggers, CloudWatch) can be quietly modified, updated, or purged by a database administrator. Auditors and compliance officers cannot verify whether the log reflects what the AI actually decided or what an admin retroactively edited.

The Engineered Solution

PegBit Witness deploys a zero-blocking sidecar that hashes every prompt, model parameters, retrieved context chunk, and executed tool call into an append-only hash chain. Each block embeds the SHA-256 hash of the preceding block, salt, and timestamp. Modifying a single character anywhere in the history irreversibly breaks the chain root hash, immediately alerting compliance.

Documented Evidence & Methodology Note:One internal check, on a single 4 vCPU machine, put local sealing under 4ms per tool call. It is undated and was not taken on the live deployment. The production deployment is for a Canadian charitable organisation using SHA-256 hash-chain sealing. RFC 3161 anchoring is not running there, and hardware-enclave sealing is not built.
Key Architectural Patterns:
✓Append-only SHA-256 hash chain of prompts, completions and tool calls
✓An offline verifier that recomputes the chain with no network
✓Split-plane export and public timestamp anchoring are built and tested, and are not enabled on the current production deployment
✓Event counts stay internal until a dated log is published
Data Infrastructure & Retrieval·Used inside PegBit, not a client deployment
6 min read

Permission-Aware RAG: Enforcing Row-Level Security on Vector Retrievals

Oluwadamilola Oladunni · Founder & Systems Architect·Published: October 18, 2026·Reviewed: November 4, 2026

How to prevent vector embeddings from leaking sensitive executive documents across departments, and how we enforce multi-tenant ACL filtering before similarity search.

The Production Problem

Naive Retrieval-Augmented Generation (RAG) vectorizes an entire corporate wiki or document pool into a single index. When an employee asks a general question, the semantic search frequently retrieves fragments of executive compensation, pending layoffs, or confidential patent filings because vector similarity algorithms are completely blind to document permissions.

The Engineered Solution

We author metadata-partitioned vector schemas with pre-filtering query boundaries. Before an embedding query executes cosine distance calculations, the retrieval engine applies the user's cryptographically signed JWT claims to filter chunks against document Access Control Lists (ACLs). Unpermitted documents never enter the model's context window.

Documented Evidence & Methodology Note:Permission checks before retrieval are how Core is designed, and Sydence reads studio data. There is no published count of queries, and no independent finding of zero leaks.
Key Architectural Patterns:
✓Row-Level Security (RLS) enforcement at the vector storage layer (pgvector / Qdrant)
✓Pre-filtering vs post-filtering trade-off analysis for zero-latency retrieval
✓Token-bounded context injection with strict citation hashes and source validation
✓Automated document re-indexing on permission changes or employee role updates
Real-Time Streaming & WebRTC·Client system, internal field note
5 min read

Sub-100ms Voice Latency: Architecture of a Cross-Platform Global Voice Altar

PegBit Systems Engineering·Published: October 29, 2026·Reviewed: November 7, 2026

Orchestrating LiveKit, WebRTC mesh topologies, and distributed edge nodes to power simultaneous multi-user real-time audio prayer rooms.

The Production Problem

Voice prayer, corporate worship, and interactive live meetings require ultra-low acoustic latency. Traditional streaming architectures (HLS/RTMP) introduce 4 to 12 seconds of delay, destroying spontaneous vocal synchrony and group participation.

The Engineered Solution

For GlobalPrayerAltar, PegBit built live voice rooms with LiveKit and WebRTC, on mobile, web and desktop. A published latency figure is not on this site.

Documented Evidence & Methodology Note:GlobalPrayerAltar is a live client system that uses live voice. A dated, published latency log is not on this site. Treat any millisecond figure as unpublished.
Key Architectural Patterns:
✓LiveKit and WebRTC for live voice rooms
✓Clients on mobile, web and desktop
✓A study layer is part of the product story. It is not a published benchmark
✓This note is not an audit of uptime or of echo cancellation
Agent Architecture & Safety·Design note, not measured on customers
6 min read

Production Agent Guardrails: Validating Non-Deterministic Tool Calls Before Execution

Oluwadamilola Oladunni · Founder & Systems Architect·Published: November 2, 2026·Reviewed: November 8, 2026

Techniques for bounding LLM autonomous agents with deterministic validation schemas, state reversal hooks, and circuit breakers.

The Production Problem

LLM agent frameworks often demonstrate tool-calling capabilities that work reliably on trivial demos but cause catastrophic mutations in production: hallucinated SQL syntax, runaway infinite retry loops, and unverified parameters that corrupt production databases.

The Engineered Solution

PegBit Core can halt a circular tool-call loop in test harnesses. There is no named client deployment of that inquiry, and there is no published confidence threshold.

Documented Evidence & Methodology Note:Pattern scope: internal harnesses. Not a customer measurement.
Key Architectural Patterns:
✓Strict schema enforcement and type validation prior to tool dispatch
✓Transactional rollbacks: automatic reversal of database operations if subsequent chain steps fail
✓Token and loop circuit breakers that terminate non-convergent reasoning chains
✓Separation of thinking agents from executing agents to prevent jailbreak contamination

Have an architecture problem in your system?

We work with CTOs, platform leads, and technical founders to design and build sovereign AI systems from day one.