Skip to main content
BeeMad
TechArticle · Verification Architecture & Scientific Disclosure

BeeMad Verification Methodology & Engine Architecture

Scientific Disclosure: This page documents BeeMad's neuro-symbolic verification, memory, retrieval, and episodic-slicing subsystems alongside a controlled deterministic engineering ablation using scripted repair fixtures ( repair_builder closures) on Axis 1 ( N=8) and deterministic synthetic test suites on Axes 2–4 ( N=12, N=6, and 120 episodes) to verify solver and memory invariants—it is not a stochastic live-LLM leaderboard.

Six Core Engineering Subsystems

How BeeMad Enforces Math, Memory & Idea Rigor

Each subsystem below maps directly to concrete modules in the BeeMad codebase, replacing unbounded single-pass prose generation with explicit verification, temporal lineage, and bounded-context retrieval.

01 · core_engine/inference/adaptive_router.py

AdaptiveInferenceEngine (Fast / Slow) & GenPRMScorer

AdaptiveInferenceEngine inspects incoming queries for numeric caps and allocation trade-off cues (allocate, constraint, blueprint) to route lightweight exploratory turns through a Fast path and resource-bounded strategy turns through a Slow verified refinement loop (max_refinements=2, threshold=0.85).

On every candidate step, GenPRMScorer combines structural step-rubric checks with the formal verifier's verdict so prose quality can never override an unsatisfied budget, bandwidth, or exclusion constraint.

02 · z3_modulo.py + marketing_constraints.py

Z3 ModuloVerifier & Constraint Compiler

agent/marketing_constraints.py extracts discrete PlannedAction items (effort hours, direct spend, category, and tactic tags) from draft strategy prose and compiles founder profile limits into ResourceBounds and MutualExclusionRule sets.

core_engine/verifier/z3_modulo.py evaluates each candidate plan inside Z3 SMT with tracked assertions. When a draft is infeasible, ModuloVerifier returns the minimal Marketing Unsat Core (unsat_core_ids), exact slack overages, and actionable numeric counterexample feedback.

03 · core_engine/memory/bitemporal.py

BiTemporalFactStore & DualScopeMemoryManager

BiTemporalFactStore stores relational dossier facts in bitemporal_facts with dual timelines: real-world business validity ( valid_from, valid_to) and ingestion/retirement audit timestamps (ingested_at, retired_at, supersedes_id).

Paired with DualScopeMemoryManager and memory_provenance span records, pivoting ICP, pricing, or budget cleanly retires superseded edges so stale facts stop surfacing in active sessions while remaining queryable via point-in-time as_of inspection.

04 · core_engine/memory/hipporag.py

HippoRAGRetriever Personalized PageRank (PPR)

Dense vector cosine search often misses indirect 2-hop marketing facts when a query names an outcome rather than an intermediate campaign artifact. HippoRAGRetriever builds an entity-passage hypergraph over 768-dim BAAI/bge-base-en-v1.5 ONNX vectors.

Running Personalized PageRank (damping=0.5, synonymy_threshold=0.84, ppr_blend_weight=0.80) traverses shared entity bridges across passages to surface linked campaign lessons without lexical distractors drowning out the answer.

05 · core_engine/rlm/controller.py & vault.py

RLMEngine & EpisodicVault Bounded Slicing

As a startup accumulates months of transcripts, experiments, and customer interviews, naive sliding windows truncate early constraints and historical learnings. RLMEngine extracts symbolic anchors from queries and maps parallel bounded slices across EpisodicVault ( max_parallel_slices=6, 8,000-char root cap).

Every extracted finding is verified against verbatim source offsets ( char_start:char_end), keeping root context compact while preserving auditable citations back to exact episode spans.

06 · skills/idea_validation.md + Match Mode

Match Mode & 4-Dimension Idea Validation

Guided Match Mode captures business category, buyer pain, monthly budget, and weekly bandwidth before running 4-Dimension Idea Validation—scoring every concept 0–10 across (1) Defensibility / Moat, (2) Market Demand & Competition Landscape, (3) Effort vs. Reward, and (4) Storytelling / Positioning Potential rather than binary cheerleading.

Each assessment classifies the score profile (Lopsided, Flat Middle, or Broadly High), names the single riskiest assumption, and prescribes one 7-day falsification experiment. Live workspaces combine 19 marketing playbooks, 15 seeded 768-dim campaign teardowns, browser-local q8 Xenova/bge-base-en-v1.5 embeddings, and physical DB-per-tenant storage (control.db + tenants/<user_id>.db).

Reproducible Subsystem Harness · scripts/run_ablation_benchmark.py

4-Axis Deterministic Engineering Ablation

Executed locally via scripts/run_ablation_benchmark.py --json --markdown (exit 0, 43.26s wall-clock, non-mocked Z3 SMT solver and local BAAI/bge-base-en-v1.5 768-dim ONNX backbone). All four axes verify deterministic architectural invariants rather than open-ended LLM model rankings.

Verified 4-axis deterministic engineering ablation table across Neuro-Symbolic Constraint Safety (N=8), Post-Pivot Longitudinal Accuracy (N=12), Multi-Hop Associative Recall (N=6), and Long-Horizon Episodic Slicing (120 episodes, 307,122 chars)
Ablation Axis Codebase Subsystems Test Suite Scale Unguarded Baseline BeeMad SOTA Subsystem Verified Delta
1. Neuro-Symbolic Constraint Safety ModuloVerifier (z3_modulo.py) + AdaptiveInferenceEngine & GenPRMScorer (adaptive_router.py) + marketing_constraints.py N=8 scenarios (7 adversarial traps + 1 feasible control s8; force_mode="slow", threshold=0.85, max_refinements=2) 87.5% violation (12.5% pass, 1/8) 0.0% violation (100.0% pass, 8/8) -87.5 pp violations (mean 1.88 attempts, reward 1.0 on all 8)
2. Post-Pivot Longitudinal Accuracy BiTemporalFactStore (bitemporal.py) + DualScopeMemoryManager (dual_scope.py) N=12 post-pivot queries (4 ventures × 3 predicates × 3 epochs = 36 facts + 24 point-in-time as_of checks) 66.7% stale recall / 33.3% active precision 0.0% stale recall / 100.0% active precision +66.7 pp active precision; 100.0% (24/24) point-in-time as_of accuracy
3. Multi-Hop Associative Recall HippoRAGRetriever Personalized PageRank (hipporag.py: damping=0.5, synonymy_threshold=0.84, ppr_blend_weight=0.80) N=6 2-hop bridge chains across 24 passages (12 hop passages + 12 lexical distractors; rerank=False) 0.0% (0/6) Recall@3 (dense cosine) 100.0% (6/6) Recall@3 (PPR) +100.0 pp 2-hop bridge Recall@3
4. Long-Horizon Episodic Slicing RLMEngine (controller.py) + EpisodicVault (vault.py) 120 episodes, 307,122 vault chars, 6 planted marketing needles across 3 dual-needle queries (8,000-char root cap, max_parallel_slices=6) 16.7% (1/6) needle recall (recency sliding window) 100.0% (6/6) needle recall +83.3 pp recall; mean root 1,779.7 chars; 0.0058 compression (99.4% reduction); exact char_start:char_end provenance

Axis 1 Z3 Unsat-Core Classes Exercised Across s1–s8

Every adversarial scenario (s1– s7) verifies that ModuloVerifier isolates the exact violated assertion IDs before permitting a repaired draft, while control scenario s8 verifies single-pass acceptance without false positives.

Exact Z3 unsat-core assertion classes exercised across Axis 1 scenarios s1 through s8
Tracked Z3 Constraint ID Scenarios Formal Invariant Enforced
max_effort_units s1, s2, s5, s7 Sum of weekly action effort_units must be less than or equal to declared founder weekly hour cap.
max_cost_units s1, s4, s5, s7 Sum of extracted direct monetary cost_units must stay within declared monthly marketing budget.
mutual_exclusion:zero_budget_vs_paid_ads s1, s5, s7 Forbids paid search, PPC, or sponsored ad tactics whenever budget is $0 or bootstrapped.
mutual_exclusion:enterprise_vs_consumer_giveaway s3, s5 Blocks mass consumer sweepstakes and viral giveaway stunts on enterprise B2B buyer profiles.
min_category_threshold:direct_outreach s6 Enforces a minimum weekly hour floor on direct buyer outreach when configured in profile bounds.
unsat_core=[] (feasible control) s8 Confirms valid plans pass on attempt 1 with zero false-positive rejections or unnecessary repairs.
Methodological Boundaries & Deployment Honesty

Limitations, What This Ablation Does Not Claim & Live Scope

Disclosure 01

Scripted Axis 1 Repairs

Axis 1 uses deterministic repair_builder closures keyed strictly on returned Z3 unsat-core IDs. It proves that the solver gate catches violations and blocks acceptance until constraints clear—not how often an arbitrary live LLM obeys repair feedback on attempt two.

Disclosure 02

Live Production vs. Branch Modules

Live app.beemad.in and api.beemad.in run the hot-path AdaptiveInferenceEngine, local q8 ONNX playbooks, and per-tenant SQLite isolation. Experimental branch modules (such as quant_marketing.py and the Competitive Graph) are not yet deployed to production.

Disclosure 03

Separate Frontier-LLM Benchmark Track

Evaluating stochastic frontier LLMs across hundreds of real founder profiles with human-audited extractor precision, recall, and inter-annotator agreement is tracked as a separate open benchmark initiative rather than conflated with this internal ablation.

Verify Your Own Marketing Plan Right Now

Paste Any GTM Plan Into Our Deterministic Checker

Don't take constraint verification on faith. Paste a draft GTM plan from ChatGPT, Claude, or your own spreadsheet into the free checker at /tools/gtm-plan-checker to see which budget, weekly hour, or channel-exclusion rules it violates.