5 Commits

Author SHA1 Message Date
HAL9000 f808abff86 chore(ci): fix pre-commit hook failures
Fix JSON syntax errors in .devcontainer/devcontainer.json (removed
invalid JS-style // comments) and .devcontainer/opencode.json (removed
90+ trailing commas). Apply auto-fixes for end-of-file and trailing
whitespace issues across 100+ files. Fix SIM105 ruff violations in
benchmarks/core_circuit_breaker_bench.py (use contextlib.suppress).

Note: The security fix from issue #7478 (validate_path startswith bypass)
was already delivered to master in commit e18ac5f2. This PR as currently
structured is non-atomic (35 commits across 10+ issues) and needs
significant restructure before merge. This commit only addresses the
CI/pre-commit failures.

ISSUES CLOSED: #7478
2026-06-14 09:51:14 -04:00
freemo d9e5668cec fix(skills): comprehensive final audit pass for programming-patterns skill
Fixes and improvements from exhaustive audit:

Consistency fixes in SKILL.md:
- 'Pipe & Filter' → 'Pipe and Filter' (one stray '&' found and corrected)
- 'Singleton for factory instance' → clarified to 'register factory as
  singleton-scoped via DI container' (less misleading wording)
- Documentation Format section updated with note that SKILL.md itself is the
  authoritative source for related-pattern combinations

Coverage fix — Related Patterns sections:
- Added '## Related Patterns' to ALL 94 pattern files (was 0/94)
- Each section lists 3–6 related patterns with relationship descriptions
- Covers: why they're related, when to prefer one vs the other,
  and which are often confused

SOLID principles → Creational → Structural → Behavioral → Architectural →
Concurrency → Functional → Resilience → Data Access → Messaging →
Testing → Error Handling → Microservice — all 13 categories covered

Code verification:
- Python: 0 failures (all 85 testable blocks pass)
- Go: 0 failures (all 76 testable blocks pass)
- JavaScript: 0 failures (all 78 testable blocks pass)
- All 239 code blocks verified correct after edits

Final skill state:
- 108 files, 36,524 lines across 13 reference categories
- 94/94 pattern files have Related Patterns sections
- 2,815-line SKILL.md with 67 decision trees, 23 scenarios,
  0 broken references, 0 naming inconsistencies
2026-04-15 13:22:13 -04:00
freemo d33508e8c9 docs(skills): expand programming-patterns SKILL.md — 16 new trees, 5 new scenarios, 2 new sections
Growth: 2,244 → 2,811 lines

New decision trees added (51 → 67):
  GraphQL API, data validation & sanitization, payment processing,
  booking/reservation systems, recommendation engines, distributed locking,
  graceful startup/shutdown lifecycle, schema/data migration, SaaS onboarding
  wizards, social graphs, API SDK design, multi-step form/wizard UI,
  user preferences management, microservice chassis/platform,
  dependency injection containers, import/export systems

New compound scenarios added (18 → 23):
  Scenario 19: Payment processing with provider failover
  Scenario 20: Hotel/resource booking with concurrent hold resolution
  Scenario 21: SaaS onboarding with multi-tenant provisioning
  Scenario 22: Distributed rate limiting across service instances
  Scenario 23: Recommendation engine with A/B testing and fallback

New sections added:
  '🔗 Pattern Synergies' — 20-row table of patterns that are always better together
  ' Code Review Checklist' — 30-item pattern-coverage checklist for PRs
    covering every class, service, external call, conditional, loop, and test
2026-04-15 13:22:08 -04:00
freemo 81b318f07d docs(skills): expand programming-patterns SKILL.md with 17 new decision trees and 6 new scenarios
- 476 → 1,569 → 2,244 lines total growth
- Decision trees: 6 → 34 → 51 situation-specific trees
- Compound scenarios: 12 → 18 full architecture maps
- New trees added in this pass:
    search/discovery, game/simulation, feature flags, subscriptions/billing,
    soft delete/archiving, i18n/localization, database optimization,
    AI agents/LLM systems, file upload/media, CMS, OAuth2/SSO,
    graph traversal, audit/compliance, real-time collaboration,
    API versioning, bulk/batch processing, pagination/filtering,
    webhook delivery (17 new trees)
- New scenarios added:
    user registration with email verification, faceted search,
    feature flag system, shopping cart with session, rate limiting
    infrastructure, AI agent with tool use (6 new scenarios)
- New sections:
    'Pattern Progression' (5-stage evolution for a data service and flag)
    'Minimum Pattern Set per Component Type' (table of 15 component types)
    'When to Skip Patterns — Never' table expanded to 25 rationalizations
- All file references validated (0 broken)
2026-04-15 13:22:01 -04:00
freemo 98680825a7 feat(skills): add exhaustive programming patterns agent skill
Adds a comprehensive opencode skill under .opencode/skills/programming-patterns/
covering 90+ design, architectural, concurrency, and functional patterns.

- 108 files, 33,500+ lines across 13 reference categories
- Every pattern: pseudocode + tested Python + Go + JavaScript implementations
- All 239 code blocks verified passing (85 Python, 76 Go, 78 JS)
- 1,569-line SKILL.md with:
  - Master decision tree (all 14 categories with multi-pattern suggestions)
  - 34 situation-specific decision trees covering every programming scenario
    (new feature, refactoring, REST API, CLI, data pipeline, rule engine,
     external integration, performance, memory, notifications, plugins,
     caching, events, auth, reporting, vendor lock-in, domain model,
     business rules, observability, file I/O, scheduling, testability,
     third-party libs, concurrency, complex domain interactions)
  - 12 compound pattern-combination scenarios with full architecture maps
    (e-commerce checkout, REST endpoint, background jobs, real-time dashboard,
     microservice resilience, ML pipeline, text editor, legacy migration,
     multi-tenant SaaS, document approval, financial transactions, chat)
  - 'When Am I Allowed to Skip Patterns?' mandate table (answer: never)
  - Quick pattern lookup tables for all 90+ patterns
  - Complete reference index
2026-04-15 13:21:51 -04:00