feat(core): slot-diff content-drift detection (split from #75)#83
Merged
Conversation
Split from #75 (banked-v2 WIP) — the finished, standalone piece. slot-diff.ts catches the signal score-delta is blind to: a slot's VALUE changes but the score stays stable. Built on canonical slots.ts (SLOTS + readSlotValue + isPlaceholder) — no regex, no duplicated placeholder list. The spec behind grok-faf-mcp's WJTTC v1 skip marker. Verified against current main (#75 was 14 commits stale): - tsc -p tsconfig.build.json: clean - bun test tests/core/slot-diff.test.ts: 6/6 pass The refresh.ts consolidation stub stays parked on #75 until v2 wires it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The finished, standalone half of #75, rebased clean onto today's
main.src/core/slot-diff.ts— content-drift detection: catches the signal score-delta is blind to — a slot's value changes but the score stays stable. Built on the canonicalcore/slots.ts(SLOTS+readSlotValue+isPlaceholder) — no regex, no duplicated placeholder list.Why split
#75 bundled this finished piece with an unwired
refresh.tsstub and had drifted 14 commits behind main. This PR lands the part that's done and tested; therefreshconsolidation stub stays parked on #75 until v2 actually wires it. No dead scaffolding inmain.Receipts (against current main)
tsc -p tsconfig.build.json— cleanbun test tests/core/slot-diff.test.ts— 6/6 passThe slot-diff is the spec behind grok-faf-mcp's WJTTC v1 skipped marker — this is its consolidation home.
🤖 Generated with Claude Code