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.
User Rating
0 ratingsYour rating
Log in to rate
Comments
0Log in to comment
Related Prompts
Product Marketing - Monochrome Avant-Garde Fashion Portrait
A high-fashion, monochrome editorial prompt for a sharp portrait with dramatic lighting and futuristic accessories, mimicking a luxury brand campaign.
Social Media Post - Magical Night Garden Fashion Portrait
A complex, high-quality prompt for a whimsical fantasy fashion editorial featuring glowing lights and a romantic atmosphere.
Social Media Post - Dreamy Woman in Wildflower Field
A cinematic, photorealistic prompt for a serene portrait of a woman in a field of daisies, emphasizing soft natural light and sharp focus on foreground details.
Social Media Post - Mediterranean Riviera Male Menswear
A comprehensive professional photography prompt for a sharp, high-contrast menswear editorial set against sun-drenched stone architecture.