Files
KaranocaVe 5db645541a fingerprint 0.2.3: History expands saved runs in place, an About tab, and a launcher fallback address (#858)
KaranocaVe (#858): History expands a saved run in place (results, cancel and
export for that run, by id) instead of replacing the current run; a new About
tab links the project and lm-detector (anchors standalone, copy buttons in
magpie's frame); the desktop launcher shows the local service address after
4s if navigation stalls; integration.md documents Windows' excluded port
ranges. Version 0.2.3.

Reviewed at d272d0c14fed1c1b654f970f358fabea4b2fe210, run on mote (macOS) in
a copy of the PR tree with a temp HOME in the run folder:
- packages/fingerprint: bun install --frozen-lockfile, typecheck ok, bun test
  37 pass 0 fail, bun run build. diff -r of the PR's dist against the rebuild:
  identical (dist/ui, plugin.js, cli.js).
- bun scripts/check.mjs fingerprint: registry.json ok, fingerprint ok.
- Bundle: the only new URL strings are the two About links
  (github.com/KaranocaVe/magpie-fingerprint, github.com/Ikaleio/lm-detector);
  no new fetch/eval/Function/WebSocket/sendBeacon; CSS has only the existing
  data: SVG.
- Playwright 1.62.0, Chromium and WebKit, en and zh-CN, 1100px and 380px,
  standalone and inside a parent frame, with the API stubbed from the demo
  server's /api/bootstrap (a running, a completed and a failed run): History
  expands a row (aria-expanded true), cancel from an expanded running row sends
  one cancel and the row shows Cancelled, About shows 2 anchors standalone and
  2 copy buttons framed (copy shows Copied in both engines), ArrowRight/Left
  wrap across the three tabs, no horizontal overflow, no request off the stub
  origin. 48 screenshots checked.
- The one page error, standalone only ("Cannot destructure property 'context'"
  from the vendored bridge's hello), is the same on main 03ab6d66f (same load
  harness on main's dist).

Not tried: the launcher fallback in a real Windows magpie window (covered by
the new boot test only). src/service-identity.ts VERSION still says 0.2.2
(health/bootstrap report it; nothing compares it), filed separately.
2026-11-08 14:29:18 +08:00
..

Magpie Fingerprint

简体中文 · Magpie · lm-detector

Investigate suspected model substitution directly in Magpie. Compare numeric response fingerprints across providers or repeat a run after a service changes. The page reuses Magpie’s configured models and gateway; the pinned lmfpd-sdk detector ranks nearby reference-bank models. Rankings are evidence for investigation, not proof of model identity.

Fingerprint workspace (explicit demo data)

  • Select up to 24 models across providers, with the same three challenges per batch.
  • Reuse Magpie authentication and native endpoint metadata; optionally pin an account.
  • Follow live sample counts, cancel work, and inspect the actual response route.
  • Compare ranked candidates, including partial and unscorable outcomes.
  • Keep raw replies and data versions in local history; export or copy JSON.
  • Magpie's native page bridge, controls and design tokens; follows the host's theme and language.
  • Compact model lists, keyboard-accessible view tabs, and narrow-screen layouts.

Install

Install Fingerprint from Plugins → Discover, or use the CLI. Requires a current Magpie release with page.service support and Bun 1.4.2+:

magpie plugin add @magpie-community/page-fingerprint

Open Fingerprint in the sidebar, or choose Fingerprint from a provider's menu. Starting a detection sends three requests per selected model and uses that provider's quota.

Development

Run these commands from packages/fingerprint/. Source, tests and the built dist/ assets are checked in. Installation and the offline tests do not need package downloads: vendor/lmfpd-sdk pins the MIT SDK at 0.2.0. Only rebuilding the UI and running the type checker require the development dependencies. Direct build-tool versions are exact in package.json; bun.lock fixes the complete dependency graph using registry.npmjs.org. Builds use Bun 1.4.4. There are no install/pack lifecycle scripts. After a source change, rebuild and commit the resulting dist/ files.

The standalone project and release history are at KaranocaVe/magpie-fingerprint.

bun run rebuild
bun start

rebuild installs with --frozen-lockfile --ignore-scripts in an isolated copy, runs typecheck/tests/build, and copies dist/ back. This avoids Bun resolving the parent monorepo's workspaces; its temporary directory is removed on completion. In a standalone copy of this package, bun install --frozen-lockfile --registry https://registry.npmjs.org and bun run check produce the same build.

The plugin page service listens on 3488 by default and uses Magpie's gateway at http://127.0.0.1:3425. Opening or refreshing the page never downloads reference data. Download reference data explicitly fetches a fresh snapshot; starting a run downloads one only when no usable snapshot is cached. There is no background refresh. The default primary source is https://lm.ikale.io/data/; its fallback is https://cdn.jsdmirror.com/npm/lmfpd-data@latest/. These hosts see the client's IP address. Reference downloads carry no provider credentials, model ids, prompts or replies. Only an explicitly started job sends sampling prompts through the configured gateway. See integration.md for gateway authentication, magpie web, environment variables, local reference sources, and the explicit --demo fixture.

Scope and limits

The first release supports numeric fingerprinting. Each run retains its loaded reference snapshot and records its builtAt value. The remote reference data is not version-pinned or authenticated by a locally pinned hash; the fallback uses @latest. Runs use three shared challenges per batch, bounded work, and cancellation. It records proposed, observed, and failed evidence separately; it does not prove provider identity, authenticate a model, or infer hidden tokenizers. --demo runs an isolated illustrative workflow without model calls.

Magpie middleware and protocol adapters still apply. A changed actual provider/model invalidates that target's aggregate score. Account pinning is optional; it does not turn a routed channel into an upstream identity guarantee. Tokenizer probing is deferred.

MIT licensed. Third-party notices are in THIRD_PARTY_NOTICES.md.