Skip to content

feat(eval): track Supersede supersession gap and add offline scaffold - #106

Closed
autohub-claude[bot] wants to merge 4 commits into
mainfrom
agent/kernel-worker/a10c9c7c
Closed

autohub-claude[bot] wants to merge 4 commits into
mainfrom
agent/kernel-worker/a10c9c7c

Conversation

@autohub-claude

Copy link
Copy Markdown
Contributor

Summary

Refs #105 (tracking issue; it keeps open checklist items, so this is deliberately not a closing reference).

  • docs/eval/supersede.md tracks arXiv:2606.27472 "Supersede": license check (code Apache-2.0, dataset MIT), pins by commit/revision/sha256, the mapping to AutoMem (supersedes_memory_id, t_invalid, INVALIDATED_BY, current_only recall), the plain vs supersede_oracle variants, current/stale/other scoring, and cold/matured reporting per docs/eval/maturation.md. Paper numbers are listed as baselines on a different construct. They are never AutoMem scores.
  • runners/supersede_gap/ is an offline scaffold: stdlib only, no network, no model calls, no AutoMem calls, no upstream code or data vendored. It fails closed on the pinned longmemeval_oracle.json (sha256 + shape), builds deterministic write plans, defines the retrieval- and answer-level classifiers, and can only emit a not_scored report (paper_comparable: false, matured: not_run).
  • runners/test_supersede_adapter.py: 28 unit tests (SUPERSEDE_ORACLE_JSON=<file> adds a pinned-file shape test).

Review Contract

  • No run, no spend: nothing here talks to AutoMem or a model. A live adapter and any paid run are separate, approved steps (see the doc's Gates).
  • The oracle arm uses the dataset's has_answer labels, so it is an upper bound for the read path, not a measure of AutoMem detecting revisions. has_answer never reaches a write payload (tested).
  • Rates stay null unless every scorable question has a verdict.
  • Only questions whose gold really is "the latest value" are scored. Everything else is a named stratum, reported with its n and excluded from the three rates and from oracle links.

Two local review findings, fixed before opening this PR

Both were verified against the sha256-pinned file before fixing.

  1. Session order is not a currency label (P2). 9 knowledge-update questions ask for the earlier value and 5 need both, so the original oracle links would have invalidated the evidence holding the gold (e.g. 07741c44 "initially keep my old sneakers", 9bbe84a2 "previous goal", 031748ae). They are now annotated (HISTORICAL / MIXED; one reviewer's audit of all 72 non-abstention questions, cross-checked by searching the gold in the flagged turns) and form their own strata.
  2. Probe cutoff hides current evidence (P2). For 2133c1b5, 7a87bd0c and e61a7584 the whole later session starts hours after question_date (same day), so end = question_date excludes it and no write path could answer them. They form a derived clock_conflict stratum. end keeps its documented meaning; reconciling it is left as an owner decision for the live adapter.

Pinned shape: both_labeled 53, late_only 2, historical 9, mixed 5, clock_conflict 3, abstention 6, so 55 scored questions and 55 oracle links. The 70 / 72 figures in #105's body predate these corrections; the doc is current. The local review gate is capped at two iterations, so the second fix has focused tests but no third local pass.

Verification

  • python3.12 -m unittest discover -s runners -p 'test_*.py': 265 tests OK (14 skipped)
  • python3.12 -m unittest discover -s scripts -p 'test_*.py': 63 tests OK
  • With the pinned file (sha256 821a2034...620c, re-hashed after download): SUPERSEDE_ORACLE_JSON=... python3.12 -m unittest runners.test_supersede_adapter OK, 28 tests, 0 skipped. A CLI run on the pinned file wrote a not_scored report with 55 oracle links, none on an excluded stratum.

Risk notes

Implementation harness: Claude Code (claude-sonnet-5-5) via the AutoHub kernel worker. GitHub identity: AutoHub GitHub App.

🤖 Generated with Claude Code

autohub-claude Bot and others added 3 commits November 14, 2026 09:41
Track arXiv:2606.27472 (bounded self-maintained memory vs full context on
LongMemEval knowledge-update). Apache-2.0 code and MIT dataset pinned by
commit/revision/sha256 in docs/eval/supersede.md.

runners/supersede_gap is stdlib-only and offline: it fails closed on the
pinned oracle file, builds deterministic plain / supersede_oracle write
plans (has_answer labels never reach a payload), defines the
current/stale/other classifiers, and emits a not_scored report with cold
and matured slots. Paper numbers are baselines, never AutoMem scores.

Refs #105

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Local pre-PR review (P2): session order does not establish stale vs current
on the pinned oracle file. 9 knowledge-update questions ask for the earlier
value (initially / previous / before X) and 5 need both, so marking the
earlier evidence stale, and invalidating it in supersede_oracle, would hit
the evidence that holds the gold (e.g. 07741c44, 9bbe84a2, 031748ae).

Annotate them (HISTORICAL / MIXED, hand-audited over all 72 non-abstention
questions with a gold-in-flagged-turn cross-check) and report them as their
own strata, excluded from the three rates and from oracle links like
abstention. Pinned shape is now both_labeled 56, late_only 2, historical 9,
mixed 5, abstention 6: 58 scored questions and 58 oracle links (was 72).

Refs #105

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Local review round 2 (P2): on the pinned file, 3 scorable questions
(2133c1b5, 7a87bd0c, e61a7584) start their later session hours after
question_date (same day). The probe's end = question_date cutoff would hide
every turn of that session, so no write path could ever yield a current
verdict, even in the oracle arm.

Derive a clock_conflict stratum (any evidence turn at or after
question_date; equality counts because end inclusivity is unverified) and
exclude it from the three rates and from oracle links. end keeps its
documented meaning: reconciling it is left as an owner decision for the live
adapter. Pinned shape: both_labeled 53, late_only 2, historical 9, mixed 5,
clock_conflict 3, abstention 6 -> 55 scored questions, 55 oracle links.

Refs #105

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@autohub-claude autohub-claude Bot added babysit:active Babysit agent is actively working this PR babysit:waiting-codex 👀 Codex reviewing current head and removed babysit:active Babysit agent is actively working this PR labels Nov 14, 2026
@jack-arturo

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T09:09:18.694458Z 4287407 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f12cde8c77

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread runners/supersede_gap/adapter.py Resolved
@autohub-claude autohub-claude Bot added babysit:active Babysit agent is actively working this PR and removed babysit:waiting-codex 👀 Codex reviewing current head labels Nov 14, 2026
Codex review (P2, adapter.py classify_text): with no stale-value sidecar the
only way to call classify_text was an empty collection, which made every
answer look stale-free. aggregate then accepted those verdicts as fully
scored: stale rate 0.0 even when every answer held the obsolete value, and an
answer holding both values read as current. That contradicts the documented
contract that answer-level stale stays null without annotations.

stale_values=None now means "annotation unavailable": classify_text returns
class null with detail stale_values_unlabeled, and aggregate reports
not_scored for that reason instead of producing rates. An explicit empty
collection still means "annotated: no stale value". The test that pinned the
old empty-list behaviour is replaced.

Refs #105

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@autohub-claude autohub-claude Bot added babysit:waiting-codex 👀 Codex reviewing current head and removed babysit:active Babysit agent is actively working this PR labels Nov 14, 2026
@autohub-claude

Copy link
Copy Markdown
Contributor Author

Babysit: verified green at 4287407f84cfc597afb8378d7f5fa6088b589879.

  • Codex: 👍 clean on this head (settled by reaction; Codex's own review state names this commit as completed with no findings). The first head f12cde8c77 drew one P2, fixed in this head and resolved.
  • Threads: 1 total, 1 resolved, 0 open.
  • CI: not configured. No required checks exist; the only reported checks are the skipped auto-merge helper jobs, which are not a pass. Local verification: runners 266 OK (14 skipped), scripts 63 OK, pinned-file test OK.
  • Size: start=669, 4287407=707 (38 added in one remediation push).
  • Mergeable. Auto-merge is not armed and will not arm: this PR's author is autohub-claude[bot], while the arming workflow matches only autojack-bot[bot].

Agent did not merge. Tracks #105.

@autohub-claude autohub-claude Bot added babysit:ready 👍 Codex all clear + gates pass; human may merge and removed babysit:waiting-codex 👀 Codex reviewing current head labels Nov 14, 2026
@jack-arturo

Copy link
Copy Markdown
Member

Closed in the pre-launch backlog sweep. This item has no AutoMem score and no product decision waiting on it. The branch is kept, and the lead is carried in the benchmark watchlist (docs/experiments/WATCHLIST.md, added in #110).

Comes back when: a no-reader retrieval smoke on local embeddings is approved and the live adapter is written.

Reopening is fine at any time.

@jack-arturo jack-arturo removed the babysit:ready 👍 Codex all clear + gates pass; human may merge label Nov 19, 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