Major changes: - Add internal/logging package with field constants, context propagation, sensitive data auto-redaction, and per-component log levels - Add worker timeout constants (TimeoutQuickOp, TimeoutHealthCheck, etc.) - Extend SDLC with callback handlers, generate endpoints, and executor - Add new cookbook trees for aeries and slackpath progression - Add skeleton templates for queue, realtime, and microservices - Add worker component template with async job processing - Refactor services and handlers to use new logging infrastructure - Split component.go into component_infra.go and component_listing.go Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
5.3 KiB
Simple Prototype - Priority Implementation Index
Overview
This directory contains implementation plans for fixing issues identified in the agent generation prototype. Each document provides root cause analysis, implementation details, and acceptance criteria.
Priority Breakdown
P0 - Critical (Blocks Cleanup Work)
| Doc | Title | Effort | Status |
|---|---|---|---|
| p-0-bulk-deletion-ui.md | Bulk Deletion UI | Small | Pending |
Why P0: Cannot efficiently clean up the 270+ flagged videos without bulk operations. Currently must delete one at a time.
P1 - High Priority (Systemic Issues)
| Doc | Title | Effort | Agents Affected |
|---|---|---|---|
| p-1-british-accent-fix.md | British Accent Fix | Medium | 100+ |
| p-1-video-image-consistency.md | Video/Image Consistency | Medium-Large | 70+ |
| p-1-weight-consistency.md | Weight Consistency | Medium | 4+ identified |
Why P1: These issues affect many agents systemically. Fixing the root cause prevents future occurrences and enables batch remediation.
P2 - Medium Priority (Quality Improvements)
| Doc | Title | Effort | Notes |
|---|---|---|---|
| p-2-anatomical-fixes.md | Anatomical Fixes | Medium | Knees, limbs, fingers |
| p-2-clothing-consistency.md | Clothing Consistency | Medium | Outfit variety, gender |
| p-2-gender-appropriate-poses.md | Gender-Appropriate Poses | Small | Male poses |
| p-2-ethnicity-defaults.md | Ethnicity Defaults | Small | Distribution balance |
| p-2-props-objects.md | Props & Objects | Small | Phones, text, boundaries |
| p-2-prompt-interpretation.md | Prompt Interpretation | Medium | Goblincore, anime, etc. |
| p-2-duplicate-detection.md | Duplicate Detection | Small | Handle uniqueness |
Why P2: These are quality polish items. Important for production but not blocking immediate cleanup work.
P3 - Lower Priority (Individual Fixes)
| Doc | Title | Effort | Notes |
|---|---|---|---|
| p-3-agent-specific-fixes.md | Agent-Specific Fixes | Variable | 15+ individual agents |
Why P3: One-off fixes that can be addressed after systemic issues are resolved.
Implementation Order
Phase 1: Enable Cleanup
- p-0-bulk-deletion-ui - Unblocks all manual cleanup
Phase 2: Fix Generation Pipeline
- p-1-british-accent-fix - Most widespread video issue
- p-1-video-image-consistency - Eye color, ethnicity, weight in videos
- p-1-weight-consistency - Body consistency in images
Phase 3: Quality Polish
- p-2-anatomical-fixes - Prevent future artifacts
- p-2-clothing-consistency - Better outfit variety
- p-2-gender-appropriate-poses - Male persona quality
- p-2-prompt-interpretation - Keyword handling
- p-2-ethnicity-defaults - Balanced demographics
- p-2-props-objects - Phone/text issues
- p-2-duplicate-detection - Prevent future duplicates
Phase 4: Remediation
- p-3-agent-specific-fixes - Address individual agent issues
- Manual video deletion (using bulk delete from Phase 1)
- Regenerate videos for accent-affected agents
Files Changed Summary
Core Package Changes
| Package | Files | Changes |
|---|---|---|
pkg/persona/ |
voice_dna.go, body_types.go, clothing.go, image_matrix.go | Add constraints, gender filtering |
pkg/personagen/ |
image_generator.go, video_generator.go, demographics.go | Prompt improvements, accent fix |
pkg/personagen/ |
keyword_classifier.go (new) | Prompt interpretation |
Prototype Changes
| File | Changes |
|---|---|
tmp/simple-prototype/main.go |
Bulk delete, video delete, regeneration handlers |
tmp/simple-prototype/index.html |
Selection mode, fix panel, warnings |
Testing Strategy
After each phase:
- Generate 5 new test personas with varied descriptions
- Verify fix addresses the specific issue
- Check for regressions in other areas
- Document any new issues discovered
Video Deletion Backlog
After P0 (bulk delete) is complete, these videos need deletion:
- Male videos: 98 agents
- Female videos (various issues): 70 agents
- Female videos (British accent): 100+ agents (may regenerate instead)
- Age discrepancy videos: 14 agents
Total: ~280 video deletions, potentially followed by regeneration for salvageable agents.
Quick Reference: Issue → Document
| If you see... | Check... |
|---|---|
| British accent in video | p-1-british-accent-fix |
| Wrong eye color in video | p-1-video-image-consistency |
| Weight varies across photos | p-1-weight-consistency |
| Malformed knee/limb | p-2-anatomical-fixes |
| Same outfit in all photos | p-2-clothing-consistency |
| Feminine pose on male | p-2-gender-appropriate-poses |
| "Goblincore" literal interpretation | p-2-prompt-interpretation |
| Duplicate agent names | p-2-duplicate-detection |
| Celebrity lookalike | p-2-ethnicity-defaults |
| Phone facing wrong way | p-2-props-objects |
| Individual agent issue | p-3-agent-specific-fixes |