Architectural snapshot of the lakehouse codebase at the point where the
full matrix-driven agent loop with Mem0 versioning + deletion was
validated end-to-end.
WHAT THIS REPO IS
A clean single-commit snapshot of the lakehouse code. Heavy test data
(.parquet datasets, vector indexes) excluded — see REPLICATION.md for
regen path. Full lakehouse history at git.agentview.dev/profit/lakehouse.
WHAT WAS PROVEN
- Vector retrieval across multi-corpora matrix (chicago_permits + entity
briefs + sec_tickers + distilled procedural + llm_team runs)
- Observer hand-review (cloud + heuristic fallback) gating each candidate
- Local-model agent loop (qwen3.5:latest) with tool use + scratchpad
- Playbook seal on success → next-iter retrieval surfaces it as preamble
- Mem0 versioning + deletion in pathway_memory:
* UPSERT: ADD on new workflow, UPDATE bumps replay_count on identical
* REVISE: chains versions, parent.superseded_at + superseded_by stamped
* RETIRE: marks specific trace retired with reason, excluded from retrieval
* HISTORY: walks chain root→tip, cycle-safe
KEY DIRECTORIES
- crates/vectord/src/pathway_memory.rs — Mem0 ops live here
- crates/vectord/src/playbook_memory.rs — original Mem0 reference
- tests/agent_test/ — local-model agent harness + PRD + session archives
- scripts/dump_raw_corpus.sh — MinIO bucket dump (raw test corpus)
- scripts/vectorize_raw_corpus.ts — corpus → vector indexes
- scripts/analyze_chicago_contracts.ts — real inference pipeline
- scripts/seal_agent_playbook.ts — Mem0 upsert from agent traces
Replication: see REPLICATION.md for Debian 13 clean install + cloud-only
adaptation (no local Ollama).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
126 lines
3.1 KiB
JSON
126 lines
3.1 KiB
JSON
{
|
|
"count": 20,
|
|
"seed": 42,
|
|
"scenarios": [
|
|
{
|
|
"file": "scen_000_Heritage_Foods_Indianapolis.json",
|
|
"client": "Heritage Foods",
|
|
"city": "Indianapolis",
|
|
"events": 5
|
|
},
|
|
{
|
|
"file": "scen_001_Great_Lakes_Mfg_Madison.json",
|
|
"client": "Great Lakes Mfg",
|
|
"city": "Madison",
|
|
"events": 2
|
|
},
|
|
{
|
|
"file": "scen_002_Vanguard_Components_Lexington.json",
|
|
"client": "Vanguard Components",
|
|
"city": "Lexington",
|
|
"events": 2
|
|
},
|
|
{
|
|
"file": "scen_003_Cornerstone_Fabrication_Fort_Wayne.json",
|
|
"client": "Cornerstone Fabrication",
|
|
"city": "Fort Wayne",
|
|
"events": 4
|
|
},
|
|
{
|
|
"file": "scen_004_Horizon_Supply_Louisville.json",
|
|
"client": "Horizon Supply",
|
|
"city": "Louisville",
|
|
"events": 3
|
|
},
|
|
{
|
|
"file": "scen_005_Summit_Industrial_Akron.json",
|
|
"client": "Summit Industrial",
|
|
"city": "Akron",
|
|
"events": 2
|
|
},
|
|
{
|
|
"file": "scen_006_Centennial_Packaging_Flint.json",
|
|
"client": "Centennial Packaging",
|
|
"city": "Flint",
|
|
"events": 3
|
|
},
|
|
{
|
|
"file": "scen_007_Pioneer_Assembly_Grand_Rapids.json",
|
|
"client": "Pioneer Assembly",
|
|
"city": "Grand Rapids",
|
|
"events": 1
|
|
},
|
|
{
|
|
"file": "scen_008_Cornerstone_Fabrication_Grand_Rapids.json",
|
|
"client": "Cornerstone Fabrication",
|
|
"city": "Grand Rapids",
|
|
"events": 3
|
|
},
|
|
{
|
|
"file": "scen_009_Midway_Distribution_Fort_Wayne.json",
|
|
"client": "Midway Distribution",
|
|
"city": "Fort Wayne",
|
|
"events": 3
|
|
},
|
|
{
|
|
"file": "scen_010_Keystone_Plastics_Lexington.json",
|
|
"client": "Keystone Plastics",
|
|
"city": "Lexington",
|
|
"events": 5
|
|
},
|
|
{
|
|
"file": "scen_011_Cornerstone_Fabrication_Toledo.json",
|
|
"client": "Cornerstone Fabrication",
|
|
"city": "Toledo",
|
|
"events": 3
|
|
},
|
|
{
|
|
"file": "scen_012_Heritage_Foods_Gary.json",
|
|
"client": "Heritage Foods",
|
|
"city": "Gary",
|
|
"events": 3
|
|
},
|
|
{
|
|
"file": "scen_013_Riverfront_Steel_Columbus.json",
|
|
"client": "Riverfront Steel",
|
|
"city": "Columbus",
|
|
"events": 3
|
|
},
|
|
{
|
|
"file": "scen_014_Keystone_Plastics_Cincinnati.json",
|
|
"client": "Keystone Plastics",
|
|
"city": "Cincinnati",
|
|
"events": 2
|
|
},
|
|
{
|
|
"file": "scen_015_Beacon_Freight_Detroit.json",
|
|
"client": "Beacon Freight",
|
|
"city": "Detroit",
|
|
"events": 4
|
|
},
|
|
{
|
|
"file": "scen_016_Parallel_Machining_Grand_Rapids.json",
|
|
"client": "Parallel Machining",
|
|
"city": "Grand Rapids",
|
|
"events": 3
|
|
},
|
|
{
|
|
"file": "scen_017_Parallel_Machining_Gary.json",
|
|
"client": "Parallel Machining",
|
|
"city": "Gary",
|
|
"events": 3
|
|
},
|
|
{
|
|
"file": "scen_018_Cornerstone_Fabrication_Louisville.json",
|
|
"client": "Cornerstone Fabrication",
|
|
"city": "Louisville",
|
|
"events": 5
|
|
},
|
|
{
|
|
"file": "scen_019_Summit_Industrial_Kansas_City.json",
|
|
"client": "Summit Industrial",
|
|
"city": "Kansas City",
|
|
"events": 2
|
|
}
|
|
]
|
|
} |