navigate

Knowledge Intelligence
for Autonomous SDLC

How the Blaze Platform delivers persistent institutional knowledge across AI sessions, tenants, and solutions — turning every project into a smarter platform.

Three-Tier Architecture Cross-Tenant Learning Tool-Agnostic Neo4j Knowledge Graph

Blaze Platform v1.0.0 · April 2026

The Problem: AI Amnesia

Every AI coding session starts from scratch. Decisions are lost, mistakes are repeated, context evaporates.

🧠
No Institutional Memory
Architecture decisions, failed approaches, and learned patterns vanish when a session ends. New sessions re-explore dead ends.
🔄
Repeated Mistakes
Without a guard against previously-failed approaches, AI agents propose solutions that were already tested and proven wrong.
🔍
Context Fragmentation
Knowledge scattered across chat logs, commit messages, and developer heads. No single source of truth for what happened and why.
Enterprise Impact: In autonomous SDLC operations, memory loss means compliance gaps, duplicated work, and architecture drift. A platform that forgets its own decisions cannot be trusted with enterprise software delivery.

The Solution: Persistent Knowledge Architecture

A multi-layered, tool-agnostic knowledge system that learns, remembers, and gets smarter with every project.

8
Structured knowledge files
3
Knowledge tiers
6
Integration layers
24
Tested search functions
Always Available
Zero-infrastructure flat files in git. Works offline, works locally, works with any AI tool. No database required for core memory.
Deep When Needed
Neo4j knowledge graph for compliance chains, evidence traversals, and cross-entity pattern detection. Available when deployed.
Compounds Over Time
Every session, every tenant, every project contributes knowledge. The platform gets smarter with every deployment.

Architecture: 6 Integration Layers

Knowledge flows through hooks, plugins, libraries, agents, rules, and graph databases.

Storage
memory-bank/ (canonical)
blaze/state/session/
Neo4j Knowledge Graph
Plugin
context-intelligence.ts
blaze-memory-search
blaze-context-status
Library
memory-search.ts (24 tests)
Hooks
session-start (<8KB context load)
session-end (auto-rotation)
Agents
hypothesis-reasoning
critical-thinking
sdlc-orchestrator
compliance-manager
Rules
memory-operations
session-lifecycle
MCP Servers
Neo4j Knowledge Graph
Claude Context (embeddings)
Context7 (library docs)

The Knowledge Bank: 8 Structured Files

Platform-agnostic, version-controlled, team-shareable. Lives at memory-bank/ in the repo root.

FilePurposeInjected Into ContextFrequency
projectContext.mdTech stack, architecture, integrationsFull content, every sessionWhen project changes
decisionLog.mdArchitecture Decision RecordsLast 5 entries, every sessionWhen decisions made
debunkedHypotheses.mdFailed approaches — prevents re-explorationALL entries, every sessionWhen hypotheses falsified
lessonsLearned.mdPost-incident learnings with root causeLast 3 entries, every sessionAfter significant events
patterns.mdReusable code and workflow patternsOn-demand searchWhen patterns emerge
activeContext.mdSession handoffs, work-in-progressLast 3 lines at startEvery session
platformState.mdAgent counts, infrastructure stateOn-demand searchAfter deployments
CHANGELOG.mdKnowledge bank version historyOn-demand searchOn structural changes
Key Design: The highest-value knowledge (debunked hypotheses, recent decisions, recent lessons) is automatically injected into every AI session. No agent action required — it's always in context.

Session Lifecycle: Seamless Handoffs

Session Start

Hook: session-start
Lightweight Context Load (<8KB)
Branch, work item, version, uncommitted count, last active context
Plugin: context-intelligence
Knowledge Injection
Project context + last 5 decisions + ALL debunked hypotheses + last 3 lessons injected into system prompt
Agent: hypothesis-reasoning
Debunked Hypothesis Check
MUST verify proposed approaches against debunked list before proceeding

During + Session End

Plugin: every 30 seconds
Context State Persistence
Debounced writes of tool count, token estimates, session metrics
Plugin: on compaction
Pre-Compaction Snapshot
Full state preserved before context window compression
Hook: session-end
Rotated Session Log
Appends session summary with auto-rotation (max 10, older pruned)
Rules: session-lifecycle
Knowledge Capture
Decisions → decisionLog, Patterns → patterns, Lessons → lessonsLearned

Three-Tier Knowledge Architecture

Knowledge flows across three operational levels — each with its own scope, isolation, and inheritance.

Tier 1 — Platform

Blaze Learning About Itself

Fast Storememory-bank/ in git (8 files)
Deep StoreControl-plane Neo4j
ScopePlatform-wide ADRs, patterns, debunked hypotheses
PersistenceGit-tracked, auditable, permanent
ConsumersAll agents via plugin injection
Cascades toAll tenants (read-only)
knowledge inheritance (read-only projection)
Tier 2 — Tenant

Per-Tenant SDLC Platform

Fast StoreState bucket s3://{org}/{tenant}/memory/
Deep StoreTenant Neo4j instance
IsolationK8s namespace + OPA Gatekeeper + network policy
InheritsPlatform patterns + debunked hypotheses
scoped inheritance
Tier 3 — Solution

Per-Solution Software Delivery

Fast StoreState bucket s3://{org}/{tenant}/{solution}/
Deep StoreSolution Neo4j (domain knowledge + evidence)
ContainsDomain ontology, compliance evidence, solution ADRs
InheritsTenant patterns + platform patterns

Knowledge Inheritance & Promotion

Platform intelligence cascades down. Tenant discoveries promote up. The platform gets smarter with every deployment.

Top-Down Cascade

Debunked hypothesesImmediate, immutable, no opt-out
Platform patternsOn config-sync (15s enterprise, 60s standard)
Platform decisionsOn request (pulled, not pushed)
MutabilityRead-only at tenant level

When the platform discovers that an approach fails (e.g., "Fargate can't run hard anti-affinity"), every tenant benefits within seconds. No tenant re-discovers the same failure.

Bottom-Up Promotion

Confidence threshold> 0.8 required
Tenant thresholdSeen in 3+ tenants independently
AnonymizationRequired — strip all tenant identifiers
ReviewHuman approval required

When 3+ tenants independently discover the same pattern, it's promoted to platform knowledge. Every future tenant starts with that intelligence on day one.

Feature FlagTierDefaultPurpose
knowledge.inherit_platform_patternsOrg-lockabletrueReceive platform patterns
knowledge.contribute_patterns_upstreamOrg-lockablefalseOpt-in to cross-tenant learning
knowledge.debunked_cascadeImmutabletrueSafety mechanism — always on

The Debunked Hypothesis Guard

A safety mechanism no other AI coding platform provides. Prevents agents from re-exploring failed approaches.

How It Works

Agent proposes a solution
hypothesis-reasoning or critical-thinking agent begins analysis
Debunked file loaded in context
ALL debunked hypotheses are injected into every session's system prompt
Agent checks before proposing
Agent MUST grep debunkedHypotheses.md for keywords before recommending
Match found → STOP
Agent alerts the user and provides the correct approach from the debunked entry

Real Examples

DEBUNKED: az boards CLI with Service Principal
Tested and proven incompatible. Correct approach: ADO REST API with Bearer tokens.
DEBUNKED: Fargate with hard pod anti-affinity
Pods enter permanent Pending state. Correct approach: keep on EC2 or use preferredDuringScheduling.
DEBUNKED: MCP server for ADO integration
No production-quality server supports SP auth. Correct approach: direct REST API.
Cascade: Debunked hypotheses cascade to ALL tenants immediately. No opt-out. No tenant wastes time re-discovering a known failure.

Neo4j Knowledge Graph

Flat files for speed. Graph database for depth. Compliance chains, evidence traversals, and pattern detection.

Graph-Native Operations

OperationCapability
Compliance ChainsWorkItem → Evidence → Decision → Requirement (5-hop traversal)
Violation ImpactDownstream analysis across dependency graphs (5-depth)
Pattern DetectionAggregate occurrences across 90-day windows, confidence scoring
Evidence RelationshipsVariable-depth traversal from any evidence node

Knowledge Tier Nodes

Node TypeScope
:PlatformPatternCross-tenant validated patterns
:PlatformDecisionPlatform-level ADRs
:PlatformDebunkedFailed approaches (cascaded)
:TenantPatternPer-tenant discoveries
:SolutionPatternPer-solution domain patterns

Two-Store Architecture

Fast Layer: Flat Files
Git-tracked markdown in memory-bank/. Zero infrastructure. Instant reads. Injected into every session prompt. Works offline.
🕸
Deep Layer: Neo4j
Graph database for multi-hop traversals, compliance chains, and cross-entity pattern detection. Available when infrastructure is deployed.
Graceful Degradation: The platform works fully without Neo4j. Graph capabilities activate when infrastructure is available, unlocking compliance and pattern intelligence.

Blaze vs Native AI Tool Memory

Claude Code, Cursor, and Copilot provide basic memory. Blaze provides institutional intelligence.

CapabilityNative AI ToolsBlaze Knowledge System
Project instructionsCLAUDE.md, .cursorrulesUses native mechanismsNative
Auto-learning from correctionsMEMORY.md (auto-written)ComplementaryNative
Structured Architecture Decision RecordsNonedecisionLog.md with bounded validityBlaze
Lessons learned with root causeNonelessonsLearned.md with prevention stepsBlaze
Debunked hypothesis guardNoneAgents MUST check before proposingBlaze
Reusable pattern catalogNonepatterns.md with trigger/steps/outcomeBlaze
Structured session handoffs--resume onlyHandoff protocol with next stepsBlaze
Team-shareable memoryMachine-local onlyGit-tracked, auditableBlaze
Work-item-linked contextNoneAll entries linked to AB#/AS#/JIRABlaze
Knowledge graph traversalsNoneNeo4j compliance chains, impact analysisBlaze
Cross-tenant learningNonePattern aggregation + promotion pipelineBlaze
Category-based retentionUnbounded growth7d context to permanent decisionsBlaze

Enterprise Differentiators

Capabilities that set Blaze apart from any native AI tool memory.

🛡
Debunked Hypothesis Guard
Agents MUST check debunkedHypotheses.md before proposing solutions. Cascades to all tenants immediately. No other platform has this.
📊
Category-Based Retention
Context: 7 days. Patterns: 30 days. Decisions: permanent. Evidence: 365 days. Different knowledge, different lifespans.
🔗
Knowledge Graph Intelligence
Neo4j compliance chains, evidence traversals, pattern detection with confidence thresholds. Graph-native operations flat files can't replicate.
👥
Team-Shareable Memory
Git-tracked, version-controlled, auditable. Every team member and every AI tool sees the same institutional knowledge.
📝
Work-Item Traceability
Every decision, lesson, and pattern linked to PM work items. Full traceability from memory to deliverable.
Tool-Agnostic Architecture
Canonical memory-bank/ at repo root works with OpenCode, Claude Code, Cursor, or any future AI tool. Zero vendor lock-in.

Continuous Platform Intelligence

The more projects Blaze runs, the smarter it gets. Network effects create a competitive moat.

The Learning Loop

Solution discovers a pattern
e.g., "Redis connection pooling reduces latency 40% for session-heavy workloads"
Pattern reaches confidence > 0.8
Detected 3+ times across sessions with consistent outcomes
Promoted to tenant scope
Tenant admin reviews and approves. Available to all solutions for that tenant.
Seen in 3+ tenants independently
Same pattern discovered by unrelated tenants. Anonymized and promoted to platform.
Cascades to ALL tenants
Every new tenant starts with this validated intelligence on day one.

Network Effects

Tenant 1
Discovers "Fargate can't handle hard anti-affinity." Debunked hypothesis recorded.
Tenant 2, 3, 4...
Never encounter this issue. The debunked hypothesis cascaded before they could try it.
Tenant 50
Starts with 200+ validated patterns, 50+ debunked hypotheses, and dozens of ADRs. The platform is 50x smarter than when Tenant 1 started.
The Moat: Every deployment makes the next one better. Competitors start from zero every time.

Comprehensive Test Coverage: 94%

TDD, BDD, E2E, and CDD — 405 tests across 10 suites plus 16 BDD Gherkin scenarios, all passing.

405
Tests passing
94%
Code path coverage
16
BDD Gherkin scenarios
6/6
Business outcomes verified

Coverage by Source File

Source FilePathsCovered
memory-search.ts292793%
context-intelligence.ts635790%
context-intelligence-logic.ts4040100%
load-memory-bank-light.sh141286%
session-end.sh1515100%
Total16115194%

Coverage by Test Type

TypeTestsCoverage
TDD (unit tests)214~95%
BDD (Gherkin scenarios)1694%
E2E (business outcomes)36100%
Contract (file structure)10100%
CDD (compliance evidence)585%
Zero external dependencies. All tests run locally with no database, no network, and no MCP servers required.

Business Outcome Verification

Every business outcome has concrete, passing tests that verify the system delivers its intended value. Tested against the real codebase — no mocks.

1. Session Continuity

Every AI session receives project context, recent decisions, all debunked hypotheses, and recent lessons — automatically.
6 testsPASS

2. Failure Prevention

Debunked hypotheses are searchable by keyword. "az boards", "Fargate anti-affinity", and "memory-bank-mcp" all return matches with correct approaches.
6 testsPASS

3. Knowledge Accumulation

Decisions contain Context/Decision/Rationale. Lessons have root cause analysis. Patterns have trigger/steps/outcome. Session log rotates at 10 entries.
5 testsPASS

4. Search and Retrieval

Agents search by category or across all files. Results truncate at 300 chars, cap at 10. Missing files handled gracefully. Non-existent terms return empty.
7 testsPASS

5. Platform Architecture

Symlink resolves correctly. Both paths list same files. Knowledge tiers YAML validates. Neo4j schema has PlatformPattern constraints. Works without infrastructure.
7 testsPASS

6. Compliance Evidence

Evidence directories exist. ADR files present. ADR-013 and ADR-014 recorded in decision log and cross-referenced with debunked hypotheses.
5 testsPASS

Trust Through Verification

The platform governs itself with the same rigor it applies to your code. Every claim is backed by evidence, not assertions.

Self-Governance in Action

SDLC on itself4-phase process used to build & package this system
TDD enforced16 tests written before 1 line of implementation
555:1 test ratio1 line of config → 555 lines of test protection
Security audit43 files, 31K lines scanned — 6 blockers found & fixed
Identity scrub25 automated fixes, security 62 → 98/100

Governance That Can't Be Skipped

Pre-commit hooksBlocked commit with detected AWS IDs in presentation content
Merge enforcementPlugin blocked PR merge until review evidence existed
Branch protectionRefused file edits on wrong branch

Three Independent Agents, Same Verdict

94
Code Quality
96
Security
100
Test Coverage

What the Audit Caught

Personal paths10 instances of developer home directory leaked
GitHub usernameEmbedded in schema $id and session logs
Org infrastructureK8s service DNS, Cloudflare worker names, internal domains
Missing dependencies3 TypeScript imports that would break compilation
30 phantom hooksConfig referenced scripts not in the package

~85% Deterministic, ~15% LLM-Dependent

The LLM is the consumer of knowledge, not the infrastructure. Switch providers, lose connectivity — your knowledge persists.

Deterministic (~85%)

StorageFlat markdown files, git-versioned, grep-searchable
Searchgrep -r + find — instant, not embedding-based RAG
Session hooksBash scripts: load, save, rotate — zero LLM calls
RotationLine counting (math), not summarization (judgment)
InheritanceYAML config-driven, not prompt-driven
Neo4j graphCypher queries, Node.js server, deterministic traversals
Schema validationJSON Schema contracts, not LLM interpretation
Tests405 assertions via Jest/Vitest/Playwright
GovernancePre-commit hooks, merge enforcement, branch protection

LLM-Dependent (~15%)

Session summariesLLM generates end-of-session context capture
Decision authoringLLM writes decision log entries with rationale
Agent reasoningHypothesis evaluation, critical thinking frameworks
Prompt injectionPlugin builds system prompt; LLM interprets it
🔒

What This Means

Switch LLMsMemory persists — it's files, not embeddings
LLM goes downAll data still in git, grep still works
Audit trailEvery decision is a git diff, not a vector
CostSearch is free (grep) not per-query (embeddings)
ReproducibleSame input → same output, no temperature variance

System Components: 43 Artifacts, ~100 KB

Everything required to run the Knowledge Intelligence System — portable, self-contained, zero vendor lock-in.

CategoryFilesSize
Memory Bank Files memory-bank/*.md836 KB
Session Hooks blaze/hooks/, blaze/scripts/967 KB
Plugins & Libraries .opencode/plugins/, lib/436 KB
Configuration blaze/config/436 KB
Neo4j Knowledge Graph blaze/scripts/, infrastructure/344 KB
Rules blaze/rules/memory-bank/517 KB
Skills & Agents .opencode/skills/, agents/311 KB
Tests plugins/__tests__/, hooks/__tests__/9106 KB
MCP Configs & Schemas873 KB
Docs & ADRs684 KB
Total59~510 KB

Core Files (47)

memory-bank/ — 8 structured knowledge files
context-intelligence.ts — plugin + prompt injection
memory-search.ts — search library (24 tests)
session-manager.sh — lifecycle orchestration
load-memory-bank-light.sh — <8KB context loader
session-end.sh — auto-rotation + capture
knowledge-tiers.yaml — 3-tier configuration
neo4j-schema-setup.cypher — graph DDL
neo4j-mcp-server.js — MCP runtime (35 KB)
memory-operations.md — governance rules
session-lifecycle.md — lifecycle rules
memory-search/SKILL.md — on-demand skill

Distribution

blaze-knowledge-intelligence.zip — self-contained
./setup.sh — scaffolds into any repo
Zero npm dependencies for core system
Neo4j optional (flat files work standalone)

Knowledge Intelligence at Every Level

Blaze doesn't just remember. It learns, inherits, compounds, and protects.

3
Knowledge tiers
405
Tests passing
94%
Code path coverage
0
Vendor lock-in

What Makes It Different

Debunked guardPrevents re-exploring failed approaches
Three tiersPlatform → Tenant → Solution
InheritanceTop-down cascade, bottom-up promotion
Two storesFlat files (fast) + Neo4j (deep)
Network effectsEach tenant makes the platform smarter

What You Get

Day 1Inherit all platform intelligence immediately
Every sessionContext injected automatically, zero effort
Every incidentRoot cause captured, prevention documented
Every decisionADR with rationale, alternatives, bounded validity
Every failureDebunked, cascaded, never repeated

Blaze Platform · Knowledge Intelligence · blaze.dev