Procedure Discovery
Overview
Find or create the procedures needed to execute a plan
Steps
Step 1: Catalog required operations
Analyze each operation from the plan to understand what’s needed:
For each operation:
- What is the operation’s purpose?
- What are the inputs and expected outputs?
- What level of reliability is required?
- How frequently will this be performed?
- Are there variations or edge cases?
Categorize operations:
- Core: Essential for plan success
- Supporting: Helps but not critical
- Contingency: Only needed if something goes wrong
Step 2: Search for direct matches
Search procedure library for exact matches:
-
For each operation, search by:
- Operation name/type
- Input/output signature
- Domain tags
- Use case descriptions
-
Evaluate match quality:
- Perfect match: Procedure does exactly what’s needed
- Close match: Minor adaptation required
- Partial match: Covers part of the operation
-
Document matches:
- Which procedure
- Match quality
- Any gaps or adaptations needed
Step 3: Explore procedure compositions
For unmatched operations, explore if combinations of procedures work:
- Can the operation be decomposed into smaller steps?
- Do procedures exist for each smaller step?
- Can procedures be chained or composed?
Composition patterns:
- Sequential: A then B then C
- Parallel: A and B simultaneously
- Conditional: If X then A else B
- Loop: Repeat A until condition
Evaluate compositions:
- Does composition achieve the operation’s goal?
- Are there interface mismatches between procedures?
- Is the composition efficient (not overly complex)?
Step 4: Cross-domain transfer analysis
For remaining gaps, search for transferable procedures:
-
What would this operation look like in other domains?
- Software engineering
- Project management
- Manufacturing
- Science
- Military
- Nature/biology
-
Are there procedures in those domains?
- Search library by analogy
- Search external sources
-
How would we adapt them?
- What’s domain-specific vs universal?
- What translation is needed?
- What assumptions change?
Step 5: Specify new procedures needed
For operations that need new procedures, create specifications:
For each new procedure:
- Name and description
- Inputs and outputs (detailed)
- Success criteria
- Key steps (high-level)
- Verification approach
- Estimated complexity (simple/moderate/complex)
- Dependencies on other procedures
- Reuse potential (one-time vs widely useful)
Step 6: Prioritize procedure creation
Rank new procedures by creation priority:
Priority factors:
- Criticality: Is it blocking a core operation?
- Reuse: Will it be used beyond this plan?
- Complexity: How hard is it to create?
- Dependencies: Does it block other procedures?
- Risk: What’s the cost of not having it?
Scoring:
- High priority: Critical, blocks execution, relatively simple
- Medium priority: Important but has workarounds
- Low priority: Nice to have, complex, limited reuse
Create prioritized backlog with effort estimates
Step 7: Compile coverage report
Create comprehensive coverage analysis:
-
Coverage summary:
- Total operations
- Directly matched
- Covered by composition
- Covered by adaptation
- Require new procedures
-
Coverage metrics:
- Overall coverage percentage
- Critical operation coverage
- Supporting operation coverage
-
Gap analysis:
- Which domains have gaps?
- Are gaps clustered (same type of operation)?
- What’s the pattern?
-
Recommendations:
- Proceed with plan (if coverage sufficient)
- Create procedures first (if critical gaps)
- Reconsider strategy (if coverage too low)
When to Use
- Plan requires procedures not currently in the library
- Verifying procedure availability before execution begins
- Creating new procedures to fill identified gaps
- Assessing feasibility of a strategy based on procedure coverage
- Periodic library audit to identify coverage gaps
- After strategy selection to ensure execution is possible
- When an execution step fails due to missing procedure
- Onboarding a new domain and building initial procedure set
Verification
- All required operations have been analyzed for coverage
- Matches are accurate (procedure actually does what’s claimed)
- Compositions are valid (interfaces align, no logical gaps)
- New procedure specifications are complete and actionable
- Priority ordering considers all relevant factors
- Coverage summary accurately reflects the analysis