Skip to content

test(implicit_feedback): nonlinear age-vs-alpha-drift correlation guard (#555) - #566

Merged
robotrocketscience merged 1 commit into
mainfrom
test/issue-555-nonlinear-correlation-guard
May 10, 2026
Merged

test(implicit_feedback): nonlinear age-vs-alpha-drift correlation guard (#555)#566
robotrocketscience merged 1 commit into
mainfrom
test/issue-555-nonlinear-correlation-guard

Conversation

@robotrocketscience

@robotrocketscience robotrocketscience commented May 10, 2026

Copy link
Copy Markdown
Owner

Closes #555.

Implements the revised acceptance bullet (per operator review of #562, now closed): replace the Pearson-only guard with two non-linear correlation measures so non-monotone "becomes a clock" failure modes don't slip past.

What lands

New file tests/test_implicit_feedback_age_correlation.py — single asserted test plus a calibration helper.

  • Synthetic workload (1-week window, N=200): beliefs created uniformly across the window, retrieval-event counts drawn from Poisson(λ=2) capped at 10, retrievals scheduled at uniform random times within each belief's lifetime. Retrieval frequency is decorrelated from age by construction. ~15% of beliefs receive an explicit positive-feedback event inside the grace window (cancels the implicit row). Sweeper runs at T_end + 2·T_grace.
  • Chatterjee's ξ coefficient (Chatterjee 2021, JASA — DOI 10.1080/01621459.2020.1758115). Implemented from Eq. 1.1 in ~30 lines of numpy rank ops with average-rank tie handling.
  • Distance correlation (Székely-Rizzo-Bakirov 2007, Annals of Statistics — DOI 10.1214/009053607000000505). Implemented via double-centred pairwise-distance matrices, ~20 lines numpy.
  • Both implemented from paper definitions rather than adding dcor/xicor deps — dcor pulls in numba+llvmlite (~37 MB), incompatible with this repo's minimal-footprint posture. numpy is already a runtime dep.

Calibrated thresholds

Calibrated 2026-05-10 via _calibrate_thresholds() at N=200 across 30 seeds (0–29). Each threshold is the empirical 99th-percentile + 0.05 margin.

raw p99 threshold
ξ 0.1313 T_XI = 0.1813
dCor 0.1933 T_DCOR = 0.2433

Asserted-run values (seed 42): ξ = −0.0335, dCor = 0.1012 — both well below threshold, confirming the decorrelated workload produces near-zero correlation.

The calibration helper is an underscore-prefixed function (not picked up by pytest collection); rerun it from a REPL when N or the workload shape changes and update the constants.

Out of scope (unchanged from issue)

  • Tuning epsilon / T_grace.
  • Production telemetry.

Verification

  • uv run pytest tests/test_implicit_feedback_age_correlation.py -x -q → 1 passed.
  • uv run pytest tests/test_implicit_feedback.py -x -q → 29 passed (no regressions).
  • Discretion grep clean.

Summary by Sourcery

Tests:

  • Introduce a synthetic implicit-feedback workload and regression test that enforce low Chatterjee xi and distance correlation between belief age and alpha drift, with calibrated thresholds to detect "becomes a clock" failures.

Summary by CodeRabbit

  • Tests
    • Added regression test for the deferred-feedback sweeper that prevents age-correlated alpha accumulation. The test constructs synthetic workloads spanning multiple days with randomized exposure timing and explicit feedback cases to validate that belief age remains independent of alpha drift during the sweep operation, protecting against regression of this failure mode.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 10, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

A new regression test module guards against age-correlated alpha drift in the deferred-feedback sweeper. It generates a synthetic 1-week workload with varying belief ages and exposure frequencies, runs the sweeper, computes Chatterjee's xi and distance correlation between age and alpha drift, and asserts both remain below calibrated thresholds.

Changes

Deferred feedback age-correlation regression test

Layer / File(s) Summary
Specification and test parameters
tests/test_implicit_feedback_age_correlation.py
Regression spec docstring describes the age-clock failure mode, the two dependence measures (Chatterjee's xi and distance correlation), and the synthetic workload + calibrated thresholds. Module constants define RNG seed, belief/exposure counts, time window, grace period, feedback fraction, and hard-coded xi/distance-correlation thresholds.
Statistical primitives
tests/test_implicit_feedback_age_correlation.py
Pure-Python Poisson sampler generates per-belief exposure counts deterministically. Chatterjee's xi coefficient implementation computes rank-based dependence with explicit tie handling. Distance correlation implementation uses double-centered pairwise-distance covariance with normalization.
Synthetic workload and helpers
tests/test_implicit_feedback_age_correlation.py
Workload builder populates MemoryStore with beliefs spanning 7 days, enqueues retrieval exposures at random timestamps within each belief's lifetime, and inserts explicit-feedback events that cancel implicit sweeper rows for a sampled subset. Belief age computation extracts days from ISO timestamps relative to reference epoch.
Calibration and test assertion
tests/test_implicit_feedback_age_correlation.py
Calibration helper recomputes empirical 99th-percentile thresholds across multiple seeds (not invoked by main test). Main test builds fixed-seed workload, executes sweeper, measures age/alpha-drift dependence via both xi and distance correlation, and asserts both statistics stay below calibrated thresholds.

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 77.78% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed Title clearly and specifically describes the main change: adding a nonlinear correlation guard test for belief age vs alpha drift in implicit feedback.
Description check ✅ Passed Description is comprehensive and follows the template structure with all key sections: summary, linked issues, verification, and detailed test plan with calibration details.
Linked Issues check ✅ Passed Pull request fully implements the requirements from #555: synthetic 1-week workload with N beliefs, end-to-end sweeper run, correlation measures between age and alpha drift, and asserted thresholds to guard against age-tracking clock behavior.
Out of Scope Changes check ✅ Passed All changes are directly scoped to the test file implementation: synthetic workload, correlation metrics (Chatterjee's ξ and distance correlation), and calibrated thresholds. No unrelated modifications detected.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test/issue-555-nonlinear-correlation-guard

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sourcery-ai

sourcery-ai Bot commented May 10, 2026

Copy link
Copy Markdown

Reviewer's Guide

Adds a regression test that builds a synthetic implicit-feedback workload and uses Chatterjee’s xi and distance correlation to guard against nonlinear age-vs-alpha-drift correlations in the deferred-feedback sweeper.

File-Level Changes

Change Details Files
Introduce a synthetic workload and nonlinear correlation-based regression guard for age vs alpha-drift in the deferred-feedback sweeper.
  • Add workload constants and a fixed RNG seed to generate a reproducible 7-day, 200-belief synthetic dataset with Poisson-distributed retrievals, optional explicit feedback, and a sweeper run after all grace windows elapse.
  • Implement a pure-Python Poisson sampler (Knuth method) and helpers for timestamp formatting and belief age computation.
  • Implement Chatterjee’s xi coefficient and distance correlation directly with NumPy, including tie-aware ranking and double-centered distance matrices, to avoid adding heavy external dependencies.
  • Provide a calibration helper that sweeps multiple RNG seeds, runs the sweeper, computes xi and distance correlation, and returns empirical 99th-percentile values plus a margin, used to define hard-coded thresholds.
  • Add the main regression test that builds the workload, runs the sweeper, computes age vs alpha-drift statistics, and asserts that both xi and distance correlation remain below the calibrated thresholds with informative failure messages.
tests/test_implicit_feedback_age_correlation.py

Assessment against linked issues

Issue Objective Addressed Explanation
#555 Add a synthetic 1‑week workload test/audit that runs the deferred-feedback sweeper end-to-end and guards against belief age becoming correlated with alpha drift (i.e., prevents the implicit-feedback mechanism from degenerating into a clock).
#555 Document the synthetic workload shape (creation times, retrieval patterns, explicit feedback behavior, parameters) so that the age–alpha drift correlation audit is reproducible.

Possibly linked issues

  • #[v2.1] follow-up: belief-age vs alpha-drift correlation audit: PR implements the requested synthetic age–alpha-drift correlation regression guard, using updated nonlinear metrics instead of Pearson.

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@robotrocketscience robotrocketscience added attn:review Needs review (PR open, awaiting reviewer) author-Maxwell PR coordination mutex labels May 10, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • In _build_workload, the belief_ids.index(bid) lookup inside the explicit-feedback loop makes that section O(n^2); consider tracking creation offsets in a dict keyed by belief id (or iterating with indices) to keep this O(n).
  • The custom _poisson_sample implementation is correct but adds complexity given numpy is already a dependency; consider using np.random.poisson with an RNG seeded from RNG_SEED for simpler, more idiomatic sampling and easier reproducibility control.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `_build_workload`, the `belief_ids.index(bid)` lookup inside the explicit-feedback loop makes that section O(n^2); consider tracking creation offsets in a dict keyed by belief id (or iterating with indices) to keep this O(n).
- The custom `_poisson_sample` implementation is correct but adds complexity given numpy is already a dependency; consider using `np.random.poisson` with an RNG seeded from `RNG_SEED` for simpler, more idiomatic sampling and easier reproducibility control.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@github-actions github-actions Bot added the attn:merge-conflict PR branch needs rebase label May 10, 2026
@github-actions

Copy link
Copy Markdown

This PR is now behind main. Rebase locally so your commit signatures stay intact:

git fetch origin && git checkout 'test/issue-555-nonlinear-correlation-guard' && git rebase origin/main
# resolve conflicts if any, then
git push --force-with-lease

Auto-rebase was removed because the bot has no signing key; rebasing as the bot strips author signatures and the required_signatures rule on main then blocks the merge. See #341.

@robotrocketscience

Copy link
Copy Markdown
Owner Author

[claim:review:maxwell:2026-05-10T05:45:33Z]

@robotrocketscience

Copy link
Copy Markdown
Owner Author

[release:review:maxwell:2026-05-10T05:45:55Z]

@robotrocketscience

Copy link
Copy Markdown
Owner Author

[claim:review:leibniz:2026-05-10T05:47:44Z]

@robotrocketscience
robotrocketscience force-pushed the test/issue-555-nonlinear-correlation-guard branch from 58d09ae to 6297d2c Compare May 10, 2026 05:51
@robotrocketscience

Copy link
Copy Markdown
Owner Author

[claim:review:einstein:2026-05-10T05:53:03Z]

@robotrocketscience

Copy link
Copy Markdown
Owner Author

[release:review:einstein:2026-05-10T05:53:07Z]

…rd (#555)

Replace Pearson-r bound with two measures that catch non-linear "becomes a
clock" failure modes (U-shape, plateau, threshold) a linear guard misses:

- Chatterjee's xi (JASA 2021) — detects monotone + non-monotone dependence.
- Distance correlation (Szekely-Rizzo 2007) — detects *any* dependence.

Both are implemented directly from the paper definitions using numpy (~10 and
~30 lines respectively) to avoid heavy native deps (numba/llvmlite).

Thresholds calibrated across 30 seeds at N=200 as 99th-percentile + 0.05:
  T_XI = 0.1813 (raw p99 = 0.1313)
  T_DCOR = 0.2433 (raw p99 = 0.1933)

Seed 42 (asserted run): xi = -0.0335, dCor = 0.1012 — both well below threshold.
@robotrocketscience
robotrocketscience force-pushed the test/issue-555-nonlinear-correlation-guard branch from 6297d2c to bfc7d23 Compare May 10, 2026 05:54
@robotrocketscience

Copy link
Copy Markdown
Owner Author

[claim:review:einstein:2026-05-10T05:56:54Z]

@robotrocketscience

Copy link
Copy Markdown
Owner Author

[release:review:einstein:2026-05-10T05:56:59Z]

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tests/test_implicit_feedback_age_correlation.py`:
- Around line 243-275: The explicit-feedback selection and timing must be tied
to actual enqueued retrieval exposures: record each enqueued_dt when calling
enqueue_retrieval_exposures (e.g., store per-bid lists like
enqueued_times[bid].append(enqueued_dt]) and choose explicit_targets from only
those belief_ids with at least one enqueued exposure (i.e., retrieval_counts[i]
> 0 or enqueued_times[bid] non-empty). For each chosen bid, pick one of its
recorded enqueued_dt values and set fb_dt to a time inside that exposure's grace
window (e.g., enqueued_dt + a random offset in [0, T_GRACE) or otherwise ensure
fb_dt ∈ [enqueued_dt, enqueued_dt + T_GRACE)), then call
store.insert_feedback_event with created_at=_fmt(fb_dt) so the explicit feedback
will actually cancel a deferred implicit row (references: retrieval_counts,
enqueue_retrieval_exposures, enqueued_dt variable, explicit_targets,
store.insert_feedback_event).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 97940c1d-9529-4735-845c-9047608d7243

📥 Commits

Reviewing files that changed from the base of the PR and between 7ba9b6f and bfc7d23.

📒 Files selected for processing (1)
  • tests/test_implicit_feedback_age_correlation.py

Comment on lines +243 to +275
# Retrieval counts drawn from Poisson(POISSON_LAMBDA), capped, and
# scheduled at random times within each belief's lifetime (decorrelated
# from age by construction: same lambda regardless of creation order).
retrieval_counts = [
min(RETRIEVAL_CAP, _poisson_sample(rng, POISSON_LAMBDA))
for _ in range(N_BELIEFS)
]

for i, bid in enumerate(belief_ids):
creation_offset_s = creation_offsets_s[i]
lifetime_s = _WINDOW_SECONDS - creation_offset_s
for _ in range(retrieval_counts[i]):
eligible_s = max(0, lifetime_s - T_GRACE)
offset_in_lifetime = rng.randint(0, max(0, eligible_s))
enqueued_dt = _EPOCH + timedelta(
seconds=creation_offset_s + offset_in_lifetime
)
enqueue_retrieval_exposures(store, [bid], now=_fmt(enqueued_dt))

# Explicit feedback on a fraction of beliefs cancels their implicit rows.
n_explicit = int(N_BELIEFS * EXPLICIT_FEEDBACK_FRACTION)
explicit_targets = rng.sample(belief_ids, n_explicit)
for bid in explicit_targets:
idx = belief_ids.index(bid)
creation_offset_s = creation_offsets_s[idx]
fb_offset_s = creation_offset_s + (_WINDOW_SECONDS - creation_offset_s) // 2
fb_dt = _EPOCH + timedelta(seconds=fb_offset_s)
store.insert_feedback_event(
bid,
valence=1.0,
source="user",
created_at=_fmt(fb_dt),
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Bind explicit feedback to an actual grace window.

This workload claims that ~15% of beliefs exercise the explicit-cancellation path, but Line 264 can pick beliefs with zero retrievals, and Lines 266-269 place feedback at the lifetime midpoint instead of relative to an enqueued exposure. Most of those cases therefore won't cancel any deferred row, so the test barely covers the behavior it says it's guarding.

💡 Proposed fix
+    retrieval_times_by_belief: dict[str, list[datetime]] = {}
     for i, bid in enumerate(belief_ids):
         creation_offset_s = creation_offsets_s[i]
         lifetime_s = _WINDOW_SECONDS - creation_offset_s
+        retrieval_times: list[datetime] = []
         for _ in range(retrieval_counts[i]):
             eligible_s = max(0, lifetime_s - T_GRACE)
             offset_in_lifetime = rng.randint(0, max(0, eligible_s))
             enqueued_dt = _EPOCH + timedelta(
                 seconds=creation_offset_s + offset_in_lifetime
             )
             enqueue_retrieval_exposures(store, [bid], now=_fmt(enqueued_dt))
+            retrieval_times.append(enqueued_dt)
+        if retrieval_times:
+            retrieval_times_by_belief[bid] = retrieval_times
 
     # Explicit feedback on a fraction of beliefs cancels their implicit rows.
     n_explicit = int(N_BELIEFS * EXPLICIT_FEEDBACK_FRACTION)
-    explicit_targets = rng.sample(belief_ids, n_explicit)
+    explicit_targets = rng.sample(
+        list(retrieval_times_by_belief),
+        min(n_explicit, len(retrieval_times_by_belief)),
+    )
     for bid in explicit_targets:
-        idx = belief_ids.index(bid)
-        creation_offset_s = creation_offsets_s[idx]
-        fb_offset_s = creation_offset_s + (_WINDOW_SECONDS - creation_offset_s) // 2
-        fb_dt = _EPOCH + timedelta(seconds=fb_offset_s)
+        enqueued_dt = rng.choice(retrieval_times_by_belief[bid])
+        fb_dt = enqueued_dt + timedelta(seconds=rng.randint(1, T_GRACE - 1))
         store.insert_feedback_event(
             bid,
             valence=1.0,
             source="user",
             created_at=_fmt(fb_dt),
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# Retrieval counts drawn from Poisson(POISSON_LAMBDA), capped, and
# scheduled at random times within each belief's lifetime (decorrelated
# from age by construction: same lambda regardless of creation order).
retrieval_counts = [
min(RETRIEVAL_CAP, _poisson_sample(rng, POISSON_LAMBDA))
for _ in range(N_BELIEFS)
]
for i, bid in enumerate(belief_ids):
creation_offset_s = creation_offsets_s[i]
lifetime_s = _WINDOW_SECONDS - creation_offset_s
for _ in range(retrieval_counts[i]):
eligible_s = max(0, lifetime_s - T_GRACE)
offset_in_lifetime = rng.randint(0, max(0, eligible_s))
enqueued_dt = _EPOCH + timedelta(
seconds=creation_offset_s + offset_in_lifetime
)
enqueue_retrieval_exposures(store, [bid], now=_fmt(enqueued_dt))
# Explicit feedback on a fraction of beliefs cancels their implicit rows.
n_explicit = int(N_BELIEFS * EXPLICIT_FEEDBACK_FRACTION)
explicit_targets = rng.sample(belief_ids, n_explicit)
for bid in explicit_targets:
idx = belief_ids.index(bid)
creation_offset_s = creation_offsets_s[idx]
fb_offset_s = creation_offset_s + (_WINDOW_SECONDS - creation_offset_s) // 2
fb_dt = _EPOCH + timedelta(seconds=fb_offset_s)
store.insert_feedback_event(
bid,
valence=1.0,
source="user",
created_at=_fmt(fb_dt),
)
# Retrieval counts drawn from Poisson(POISSON_LAMBDA), capped, and
# scheduled at random times within each belief's lifetime (decorrelated
# from age by construction: same lambda regardless of creation order).
retrieval_counts = [
min(RETRIEVAL_CAP, _poisson_sample(rng, POISSON_LAMBDA))
for _ in range(N_BELIEFS)
]
retrieval_times_by_belief: dict[str, list[datetime]] = {}
for i, bid in enumerate(belief_ids):
creation_offset_s = creation_offsets_s[i]
lifetime_s = _WINDOW_SECONDS - creation_offset_s
retrieval_times: list[datetime] = []
for _ in range(retrieval_counts[i]):
eligible_s = max(0, lifetime_s - T_GRACE)
offset_in_lifetime = rng.randint(0, max(0, eligible_s))
enqueued_dt = _EPOCH + timedelta(
seconds=creation_offset_s + offset_in_lifetime
)
enqueue_retrieval_exposures(store, [bid], now=_fmt(enqueued_dt))
retrieval_times.append(enqueued_dt)
if retrieval_times:
retrieval_times_by_belief[bid] = retrieval_times
# Explicit feedback on a fraction of beliefs cancels their implicit rows.
n_explicit = int(N_BELIEFS * EXPLICIT_FEEDBACK_FRACTION)
explicit_targets = rng.sample(
list(retrieval_times_by_belief),
min(n_explicit, len(retrieval_times_by_belief)),
)
for bid in explicit_targets:
enqueued_dt = rng.choice(retrieval_times_by_belief[bid])
fb_dt = enqueued_dt + timedelta(seconds=rng.randint(1, T_GRACE - 1))
store.insert_feedback_event(
bid,
valence=1.0,
source="user",
created_at=_fmt(fb_dt),
)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/test_implicit_feedback_age_correlation.py` around lines 243 - 275, The
explicit-feedback selection and timing must be tied to actual enqueued retrieval
exposures: record each enqueued_dt when calling enqueue_retrieval_exposures
(e.g., store per-bid lists like enqueued_times[bid].append(enqueued_dt]) and
choose explicit_targets from only those belief_ids with at least one enqueued
exposure (i.e., retrieval_counts[i] > 0 or enqueued_times[bid] non-empty). For
each chosen bid, pick one of its recorded enqueued_dt values and set fb_dt to a
time inside that exposure's grace window (e.g., enqueued_dt + a random offset in
[0, T_GRACE) or otherwise ensure fb_dt ∈ [enqueued_dt, enqueued_dt + T_GRACE)),
then call store.insert_feedback_event with created_at=_fmt(fb_dt) so the
explicit feedback will actually cancel a deferred implicit row (references:
retrieval_counts, enqueue_retrieval_exposures, enqueued_dt variable,
explicit_targets, store.insert_feedback_event).

@robotrocketscience
robotrocketscience merged commit bfc7d23 into main May 10, 2026
27 of 34 checks passed
@robotrocketscience
robotrocketscience deleted the test/issue-555-nonlinear-correlation-guard branch May 10, 2026 06:01
@robotrocketscience

Copy link
Copy Markdown
Owner Author

[release:review:leibniz:2026-05-10T06:02:01Z]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

attn:merge-conflict PR branch needs rebase attn:review Needs review (PR open, awaiting reviewer) author-Maxwell PR coordination mutex

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v2.1] follow-up: belief-age vs alpha-drift correlation audit

1 participant