Skip to content

feat(core): slot-diff content-drift detection (split from #75)#83

Merged
Wolfe-Jam merged 1 commit into
mainfrom
feat/slot-diff
Jun 10, 2026
Merged

feat(core): slot-diff content-drift detection (split from #75)#83
Wolfe-Jam merged 1 commit into
mainfrom
feat/slot-diff

Conversation

@Wolfe-Jam

Copy link
Copy Markdown
Owner

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 canonical core/slots.ts (SLOTS + readSlotValue + isPlaceholder) — no regex, no duplicated placeholder list.

Why split

#75 bundled this finished piece with an unwired refresh.ts stub and had drifted 14 commits behind main. This PR lands the part that's done and tested; the refresh consolidation stub stays parked on #75 until v2 actually wires it. No dead scaffolding in main.

Receipts (against current main)

  • tsc -p tsconfig.build.json — clean
  • bun test tests/core/slot-diff.test.ts6/6 pass
  • Additive only: +108 / −0, two files, nothing else imports it yet (zero blast radius)

The slot-diff is the spec behind grok-faf-mcp's WJTTC v1 skipped marker — this is its consolidation home.

🤖 Generated with Claude Code

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>
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
faf-cli Ready Ready Preview, Comment Jun 10, 2026 6:48pm

@Wolfe-Jam Wolfe-Jam merged commit 632c02c into main Jun 10, 2026
11 checks passed
@Wolfe-Jam Wolfe-Jam deleted the feat/slot-diff branch June 10, 2026 18:53
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