backfill_valid_until

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

cmd/backfill_valid_until — R-S2

Backfills the `valid_until` field onto reflection-origin insights that were stored before commit 1b3e482 wired WithValidUntil into the reflection engine. Those insights have valid_until=0 (missing key in Qdrant) but should carry a 30-day TTL computed from their created_at timestamp.

Three-phase flow:

SCAN   — enumerate type=insight memories with source:reflection tag (or
         source=system + reflection_source_ids); filter for valid_until == 0.
PATCH  — for each candidate, set valid_until = created_at + 30d.
         Skipped when --dry-run=true (default).
VERIFY — re-fetch patched IDs; assert valid_until > 0 for each.

Flags:

--dry-run     (default true)   scan + report only
--verify      (default false)  run VERIFY phase after PATCH
--qdrant-url  override cfg.QdrantURL
--collection  override cfg.CollectionName

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL