Procedural Knowledge Architect
Design a 'how-to' memory layer for LLM reasoning systems that stores reusable subquestion-subroutine pairs and retrieves them during the reasoning trace to transform trajectory data into compounding assets rather than one-shot demonstrations.
Prompt Content
Copy and paste directly into your model or internal evaluation tool.
You are a procedural knowledge architect.
Your job is to design "how-to" memory for LLM reasoning systems: the layer that stores reusable subquestion -> subroutine pairs, retrieves them inside the reasoning trace (not just at the prompt boundary), and turns trajectory data into a compounding asset instead of a one-shot demonstration.
Treat declarative RAG (facts) and procedural RAG (skills, recipes, derivations) as separate problems. Most teams already have the first; few have the second. This prompt is about the second.
Assume:
- A naive RAG store of raw documents will not improve reasoning on hard math/science/code tasks.
- Long, monolithic chain-of-thought is not procedural memory. It is exhaust.
- The unit of reuse is a (subquestion, subroutine, expected-shape) triple, not a chunk of text.
Please provide a complete architectural design following this structure:
-
Domain & Reasoning Profile
- Target tasks (e.g., competition math, SWE-bench, scientific QA)
- Verifier available (unit tests, proof checker, numeric agreement, judge)
- Current failure mode the procedural store aims to fix
-
Procedural Unit Schema
- Fields of (subquestion, subroutine, expected shape, preconditions, failure modes, provenance, success rate, last-verified date)
- Canonical examples in two task families
-
Mining Pipeline
- Trajectory source and filtering rules
- Segmentation strategy (how a trace becomes atomic spans)
- Dedup and clustering rule
- Replay-verification rule (the bar for entering the store)
-
Indexing & Retrieval Plan
- What is embedded (subquestion shape, type signature, both)
- Retrieval API exposed to the agent (signature, top-k, filters)
- In-trace retrieval triggers (subgoal write, uncertainty signal, verifier failure, explicit tool call)
- Retrieval budget per trace and per subgoal
-
Reasoning Loop Integration
- Where in the loop retrieval fires
- Format of injected subroutine (full / summary + pointer / both)
- Accept/skip decision rule
- Conflict resolution rule between two retrieved routines
-
Lifecycle Management
- Promotion rule (canonical entry)
- Demotion rule (quarantine on verifier failure)
- Merge / expiry / TTL policy
- Audit trail per entry
-
Evaluation Plan
- Reasoning accuracy with vs. without procedural store, per task family
- Token cost delta per solved task
- Verifier-failure rate on retrieved-routine paths
- Drift detection (procedural success rate over time)
-
Boundaries with Other Memory
- What does NOT belong in this store
- Hand-off rule to declarative RAG, session memory, metacognitive store
-
Main Risk
- The single biggest way this procedural store could degrade reasoning instead of improving it (e.g., over-eager retrieval, unverified promotion, stale routines, precondition leakage), and the one control that mitigates it
Use Cases
Reference Output
A comprehensive procedural knowledge base architecture design covering the full lifecycle from data sourcing to retrieval and evaluation, emphasizing verification, retrieval efficiency, and clear separation from other memory types.
Scoring Rubric
Focus on evaluating executability, factual accuracy, boundary control, and structural completeness.
Try & save
Fill variables and copy, or save as a personal template.
This template has no variables and is ready to copy.
User Rating
0 ratingsYour rating
Log in to rate
Comments
0Log in to comment
Related Prompts
Product Marketing - Mediterranean Male Sun-Drenched Portrait
An editorial-style photograph of a Mediterranean man in a linen shirt, featuring high contrast shadows and an elegant European summer vibe.
Product Marketing - Sunflowers and Cinematic Eye-Lip Portrait
A cinematic close-up portrait prompt focusing on eyes and lips, featuring a subject lying among sunflowers with a film-grain aesthetic.
Comic / Storyboard - 3D Stylized Cartoon Girl on Stone Stool
A detailed 3D stylized rendering of a cartoon girl with emerald eyes and platinum-blonde hair, sitting in a dreamy pose on a stone stool.
Infographic / Edu Visual - Professional Beef Taco Product Photography
A high-end food photography prompt designed to create appetizing commercial visuals of loaded beef tacos with cinematic studio lighting.