Skip to content

Add an optional age window for evolution evidence - #104

Merged
Upper9527 merged 1 commit into
mainfrom
codex/evidence-window
Oct 21, 2026
Merged

Upper9527 merged 1 commit into
mainfrom
codex/evidence-window

Conversation

@Upper9527

Copy link
Copy Markdown
Collaborator

Queued session evidence was consumed regardless of age. Add optional EVOLVE_EVIDENCE_MAX_AGE_SECONDS filtering to the shared drain path used by both evolution engines. With filtering enabled, exclude expired, future, missing and invalid timezone-aware timestamps before returning evidence/consumed keys. Keep excluded objects in storage for operator review and log the excluded count.

Addresses the TTL portion of #16. Default zero preserves existing behavior. The current timestamp is upload time, not per-turn time; this does not implement weighting, expire existing skills, or promise A/B-monotonic improvement. Excluded objects will be scanned again until operators archive/remove them.

Validation: 13 new cases covering boundaries, time zones, retention, invalid timestamps and both configuration paths; full suite 201 passed, 1 skipped. Ruff and format checks passed.

@Upper9527
Upper9527 merged commit c47f3d2 into main Oct 21, 2026
1 check passed
@Upper9527 Upper9527 mentioned this pull request Oct 21, 2026
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