Major documentation restructure to improve discoverability and reduce duplication. ## Changes **Deleted (Archived/Consolidated)**: - Removed duplicate getting started guides - Archived outdated planning documents - Consolidated corpus and configuration docs - Removed obsolete vision/spec files (superseded by vision.md) - Cleaned up scrapyard and old PDFs **New Structure**: - docs/about/ - Project overview and introduction - docs/guides/ - User guides (moved from root) - docs/specs/ - Technical specifications - docs/sdk/ - SDK documentation (Go) - docs/references/ - API references - docs/archive/ - Archived historical docs - applications/aphoria/docs/advanced/ - Advanced topics - applications/aphoria/docs/reference/ - CLI reference - applications/aphoria/docs/archive/ - Archived aphoria docs **Updated**: - README.md - New root README with clear navigation - CONTRIBUTING.md - Contribution guidelines - CLAUDE.md - Updated paths to new structure - roadmap.md - Added recent completions ## Files Changed - 57 files changed - 1,977 insertions(+) - 961 deletions(-) **Net change**: +1,016 lines (added CONTRIBUTING.md, README.md, reorganized content) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .aphoria | ||
| docs/sources | ||
| eval | ||
| src | ||
| Cargo.toml | ||
| claims-template.toml | ||
| DAY1-SUMMARY.md | ||
| DAY2-SUMMARY.md | ||
| DAY3-IMPLEMENTATION-SUMMARY.md | ||
| DAY3-READY.md | ||
| FIXES-APPLIED.md | ||
| plan.md | ||
| README.md | ||
| RESET-SUMMARY.md | ||
| scan-output-v3.txt | ||
| scan-results-v3-final.json | ||
| scan-results-v3.json | ||
| scan-v1.json | ||
| scan-v2.json | ||
| SETUP-NOTES.md | ||
Dogfood: Message Queue Consumer Library
Hypothesis: Async connection patterns + resource limits from httpclient/dbpool corpora transfer to message queue consumers with 50%+ pattern reuse, demonstrating cross-domain flywheel strength.
Corpus Overlap: httpclient + dbpool → ~50% pattern reuse expected
Target Metrics:
- Time savings: ≥60% vs manual
- Pattern reuse: ≥50% of claims (11+/22)
- Detection rate: ≥90% of violations (8/8)
- Naming errors: <2
Why This Domain?
Message queue consumers test whether patterns learned in HTTP/DB contexts transfer to async messaging:
- ✅ Async patterns from httpclient (timeout, retry, TLS)
- ✅ Resource limits from dbpool (max connections, lifecycle, cleanup)
- ✅ New patterns unique to messaging (backpressure, ack_timeout, prefetch)
This validates cross-domain flywheel adaptability - the core hypothesis of knowledge compounding.
Quick Start
- Read the plan:
plan.md(detailed 5-day workflow) - Start Day 1: Use
/aphoria-suggest --corpus httpclient,dbpoolto discover reusable patterns - Follow the workflow: Track metrics daily, write summaries
- Reference examples: See
dogfood/httpclient/for complete example
Status
- Day 1: Claims extraction (~5 min) - ✅ 22 claims, 50% reused, 0 naming errors
- Day 2: Implementation (~45 min) - ✅ 8 violations embedded, 13/13 tests pass, 680 LOC
- [⚠️] Day 3: Scanning (~70 min) - ⚠️ 7 extractors created but not matching claims (concept path alignment issue)
- Day 4: Remediation (2-4 hrs) - Target: 0 conflicts final scan
- Day 5: Documentation (2-3 hrs) - Target: Comprehensive report
Day 3 Status: Followed proper 6-phase workflow. Created 7 declarative extractors (+7 observations), but 0 conflicts detected due to concept path alignment issues. See DAY3-SUMMARY.md for details and recovery options.
Expected Pattern Reuse
From httpclient Corpus (6 patterns):
timeout→consumer/timeouttls/certificate_validation→tls/certificate_validationmetrics/enabled→metrics/enabledretry/max_attempts→retry/max_attemptsretry/backoff_strategy→retry/backoff_strategyasync/runtime→async/runtime
From dbpool Corpus (5 patterns):
max_connections→connection/max_connectionsconnection_lifecycle→connection/lifecyclecleanup→connection/cleanupidle_timeout→connection/idle_timeoutpool_size→connection/pool_size
New for Message Queue (11 patterns):
consumer/prefetch_countconsumer/ack_modeconsumer/ack_timeoutqueue/max_sizeconsumer/backpressure_strategyconnection/heartbeat_intervalconsumer/requeue_limitqueue/durableconsumer/exclusiveconnection/recovery_strategyconsumer/dead_letter_queue
Total: 22 claims (11 reused = 50% reuse rate)
Violations to Embed (Day 2)
- ❌
timeout = 0→ Indefinite blocking - ❌ Unbounded queue → OOM under load
- ❌
prefetch_count = u16::MAX→ Resource exhaustion - ❌ Auto-ack without processing → Data loss
- ❌ No requeue limit → Infinite retry loops
- ❌
verify_tls = false→ MITM attacks - ❌ No connection pooling → Resource exhaustion
- ❌ Synchronous processing → Throughput collapse
Files
msgqueue/
├── README.md # This file
├── plan.md # Detailed 5-day workflow
├── .aphoria/
│ ├── config.toml # Persistent mode, corpus enabled
│ └── claims.toml # (empty, fill on Day 1)
├── docs/
│ └── sources/ # Authority sources
│ ├── amqp-spec.md # AMQP protocol (Tier 1)
│ ├── rabbitmq-docs.md # RabbitMQ vendor docs (Tier 2)
│ └── lapin-library.md # Rust library (Tier 3)
├── src/ # (create on Day 2)
│ └── .gitkeep
├── claims-template.toml # Batch claim import (22 claims)
└── DAY1-SUMMARY.md # (create after Day 1)
References
- Plan:
plan.md(start here) - Authority sources:
docs/sources/(use for provenance) - Complete example:
dogfood/httpclient/(gold standard) - Alternative:
dogfood/dbpool/(connection management patterns) - Skills:
/aphoria-suggest- Day 1 pattern discovery/aphoria-claims- Day 1 claim authoring/aphoria-custom-extractor-creator- Day 3 extractor generation
Success Criteria
| Metric | Target | Validates |
|---|---|---|
| Pattern reuse | ≥50% | Cross-domain flywheel works |
| Time savings | ≥60% | Automation value proven |
| Detection rate | ≥90% | Scanning pipeline functional |
| Naming errors | <2 | Corpus conventions established |
Ready to start Day 1! Follow plan.md and track metrics daily.