Implement
Implement Solutions¶
Stage 3 of the PRIME Framework¶
"Code is a liability, not an asset. The Implement stage focuses on building just enough automation—maintainable, documented, and built to last."
Stage Outcome
Deliverable: Production-ready Python scripts with line-by-line documentation, comprehensive error handling, and pre/post-flight validation.
Typical Result: Hardened automation that runs reliably in production, with complete audit trails and the ability for your team to modify and extend it independently.
graph LR
A[🛠️ Setup] --> B[📝 Code]
B --> C[✅ Test]
C --> D[📦 Deploy]
style A fill:#50C878
style B fill:#60D388
style C fill:#70DE98
style D fill:#80E9A8
Prime Terminology Used: Prime Agents development, Prime Philosophy principles, Prime Efficiency Stack
🎯 Objective¶
Transform designs from the Re-engineer stage into production-ready automation that aligns with the PRIME Philosophy.
⚙️ What Happens During Implement¶
1. Development Environment Setup¶
Before writing code, we establish consistent tooling:
Local Development Standards¶
Python Environment:
1 2 3 4 5 | |
Essential Libraries:
1 2 3 4 5 6 7 8 9 | |
Code Quality Tools:
1 2 3 4 5 | |
Source Control¶
All automation projects use Git from day one:
1 2 3 4 5 6 7 8 9 10 11 | |
2. Implementation Guided by PRIME Philosophy¶
Every line of code reflects our five core principles. Here are key implementation patterns:
Production Safety is Non-Negotiable
Most scripts fail in production because they were written for happy-path scenarios. We build every script assuming:
- Connection timeouts will happen
- Authentication will fail on some devices
- Config tasks will raise exceptions
- Partially-completed operations must be detected
- Human visibility into failures is essential
These aren't edge cases—they're baseline requirements.
🔍 Principle 1: Transparency Over Obscurity¶
What This Means in Practice:
❌ Avoid: Over-engineering
1 2 3 4 5 6 7 8 9 10 | |
✅ Prefer: Simple, direct solutions
1 2 3 4 5 | |
When to Choose Pragmatic:
- You're solving a single use case (don't abstract prematurely)
- The "perfect" solution adds 40% complexity for 5% benefit
- The simpler approach will work for 12-24 months
When to Add Complexity:
- You're solving the same problem the 3rd time (DRY principle)
- Complexity reduction elsewhere outweighs local increase
- Scalability requirements are certain, not speculative
�️ Principle 2: Safety Over Speed¶
What This Means in Practice:
✅ Verbose Logging:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | |
Output Example:
1 2 3 4 5 6 7 8 9 10 | |
✅ Human-Readable Output:
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
� Principle 3: Empowerment Through Documentation¶
What This Means in Practice:
✅ Validate Before Changing:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | |
✅ Verify After Changing:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
✅ Automatic Rollback:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
3. Code Structure Standards¶
All implemented automation follows a consistent structure:
Main Script Template¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
4. Testing Strategy¶
All automation is tested before production deployment:
Lab Testing¶
Requirements:
Minimum 3 lab devices matching production platforms
Test Cases:
- ✅ Normal operation (happy path)
- ✅ Device unreachable
- ✅ Invalid credentials
- ✅ Config rejected (syntax error)
- ✅ Partial failure (some devices succeed, others fail)
- ✅ Network interruption mid-execution
Staging Environment¶
For high-risk changes:
- Dry-run mode — Validate without applying
- Pilot group — 2-3 production devices, off-hours
- Phased rollout — 25% → 50% → 100% over days
5. Documentation Standards¶
Every script includes:
README.md¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
Usage¶
1 2 3 | |
Configuration¶
Edit inventory.csv with target devices.
Troubleshooting¶
- "Device unreachable" — Verify ICMP/SSH connectivity
- "Authentication failed" — Check credentials in
.env
Inline Comments¶
Focus on why, not what:
1 2 3 4 5 6 7 | |
📊 Deliverable: Production-Ready Automation¶
At the end of the Implement stage, you receive:
1. Tested Python Scripts¶
- Fully functional automation
- Error handling for all failure modes
- Logging throughout execution
- Command-line arguments or config files
2. Supporting Files¶
- requirements.txt — Pinned dependencies
- inventory.csv — Device list template
- config_templates/ — Jinja2 templates
- .env.example — Environment variable template
3. Documentation¶
- README.md — Installation, usage, troubleshooting
- CHANGELOG.md — Version history
- Inline comments — Explaining complex logic
4. Test Results¶
- Lab test report
- Pilot deployment summary (if applicable)
- Known limitations documented
💡 Why Implement with Prime Philosophy Matters¶
Long-Term Maintainability¶
Code written with Pragmatic/Transparent/Reliable principles:
- 6 months later: You (or teammate) can understand and modify
- 12 months later: Still works without updates (stable dependencies)
- 24 months later: Easy to extend for new use cases
Operational Confidence¶
When automation runs in production:
- Transparency: Logs show exactly what happened
- Reliability: Pre/post-flight checks catch issues early
- Pragmatic: Simple code means faster troubleshooting
🚀 What Happens Next¶
After implementation, proceed to Stage 4: Measure to track performance and ROI.
📋 Implement Checklist¶
Before deploying to production:
- Code follows Prime Philosophy principles
- All error conditions handled gracefully
- Logging provides visibility into execution
- Pre-flight and post-flight validation implemented
- Rollback mechanism tested
- Lab testing completed for all scenarios
- Documentation complete (README + inline comments)
- Credentials secured (not hardcoded)
- Pilot deployment successful (if high-risk)
- Handoff training scheduled (if external development)
💼 Engagement Options¶
Implementation as Part of Full PRIME Engagement¶
Included as Stage 3 when you engage for the complete framework. Typically 2-6 weeks per automation (depending on complexity from Re-engineer phase).
Standalone Implementation Service¶
For Organisations with designs but need development help:
Pricing: £120-£150/hour or fixed-fee based on Re-engineer specs
Includes:
- Production-ready Python scripts
- Comprehensive testing
- Full documentation
- Knowledge transfer session
🎓 Learn More¶
- PRIME Framework Overview — See how all five stages work together
- Previous Stage: Re-engineer — Design blueprints implemented here
- Next Stage: Measure — Tracking performance and ROI
- View Tutorials — Learn implementation techniques
- Request Discovery Call — Discuss your automation needs
Mission: To empower network engineers through the PRIME Framework—delivering automation with measurable ROI, production-grade quality, and sustainable team capability built on the PRIME Philosophy of transparency, measurability, ownership, safety, and empowerment.
← Previous: Re-engineer | Back to PRIME Framework | Next: Measure →