Skip to content

feat: implement BL-037 event TTL/archival with retention config#61

Merged
tryweb merged 2 commits intomainfrom
feat/bl-037-event-ttl-archival
Apr 3, 2026
Merged

feat: implement BL-037 event TTL/archival with retention config#61
tryweb merged 2 commits intomainfrom
feat/bl-037-event-ttl-archival

Conversation

@tryweb
Copy link
Copy Markdown
Owner

@tryweb tryweb commented Apr 3, 2026

Summary

  • Implement BL-037: Event table TTL/archival
  • Add configurable retention period for effectiveness_events (default: 90 days)
  • Add LANCEDB_OPENCODE_PRO_RETENTION_EVENTS_DAYS env var support
  • Add memory_event_cleanup tool with dryRun and archivePath support
  • Update memory_stats to include eventTtl status
  • Add unit tests for config validation
  • Update documentation

Verification

  • openspec validate: passed
  • Unit tests: 12/12 passed
  • Build: passed

Changes

  • src/types.ts: Add retention to MemoryRuntimeConfig
  • src/config.ts: Add resolveRetentionConfig()
  • src/store.ts: Add cleanupExpiredEvents(), getEventTtlStatus()
  • src/index.ts: Call setRetentionConfig()
  • src/tools/memory.ts: Add memory_event_cleanup tool
  • test/config.test.ts: Add 6 tests for retention config
  • docs/ADVANCED_CONFIG.md: Add retention settings section
  • CHANGELOG.md: Add v0.6.1 entry
  • docs/backlog.md: Update BL-037 status to done
  • docs/roadmap.md: Mark TTL/archival as done

Developer added 2 commits April 3, 2026 23:10
- Add retention.effectivenessEventsDays config (default: 90 days)
- Add LANCEDB_OPENCODE_PRO_RETENTION_EVENTS_DAYS env var support
- Add cleanupExpiredEvents() method in store.ts
- Add memory_event_cleanup tool with dryRun and archivePath support
- Update memory_stats to include eventTtl status
- Add unit tests for config validation
- Update docs/ADVANCED_CONFIG.md with retention settings
- Update changelog for v0.6.1
- Update backlog.md status to done
- Archive change: 2026-04-03-bl-037-event-ttl-archival
…ommands

- Fix openspec path to /home/devuser/.bun/bin/openspec
- Update Phase 1: use openspec validate instead of verify-change
- Update Phase 2: use bun run build for TypeScript check
- Update Phase 4: use openspec archive <id> -y
- Add gh PATH fix for PR creation
- Update Quick Reference with all fixes
@tryweb tryweb merged commit 7d2c595 into main Apr 3, 2026
9 checks passed
@tryweb tryweb deleted the feat/bl-037-event-ttl-archival branch April 3, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant