Skip to content

ctx v2.5.2

Choose a tag to compare

@github-actions github-actions released this 30 May 18:26
· 1407 commits to root since this release
v2.5.2
d1d29f4

ctx v2.5.2 — Dream back-off recalibration (12h-start exp curve)

Recalibrates the re-dream back-off curve so fresh blocks re-dream sub-day —
quality rises fastest in a block's early dreams, and a new block likely relates
to blocks inserted since its last pass — while mature blocks back off hard to
the cap. The curve is now in hours from a small floor with no grace plateau:

cooldown = clamp(1h, cap, min_hours * factor^max(0, n - grace + inert_off))

New defaults: exp / factor=1.6 / min=12h / grace=0 / cap=45d / inert_offset=7.
n=0 -> 12h, n=1 -> 19h, n=5 -> 5.2d, cap by n~10. Validated on real pull
history: ~48% of dream-eval GPU saved at lower link-loss than the prior log/3d
curve (which left fresh blocks waiting 3 days and never backed mature blocks
past 25d). An inert cycle (no links found) starts further up the same curve.

  • SetBackoffConfig was never wired in v2.5.0, so the documented
    CTX_DREAM_BACKOFF_* env vars were dead (Go defaults only). Now wired through
    cmd/ctxd config -> events.Config -> SetBackoffConfig, with new MIN_HOURS and
    INERT_OFFSET knobs.

  • ctx dream stats reports cooldown_hours (was days) + min_hours / inert_offset;
    the CLI renders hours/days adaptively. The displayed curve is verified
    identical to the SQL applied by the dream loop.

Installation

With Go:

go install github.com/GottZ/ctx/cmd/ctx@v2.5.2

Binary download:
Download the binary for your platform, make it executable, move to PATH:

chmod +x ctx-*
sudo mv ctx-* /usr/local/bin/ctx