Skip to content

Productionize pairwise digital-twin evaluation - #7

Merged
VamikaSinghal merged 10 commits into
mainfrom
feat/pairwise-twin-eval
Aug 2, 2026
Merged

Productionize pairwise digital-twin evaluation#7
VamikaSinghal merged 10 commits into
mainfrom
feat/pairwise-twin-eval

Conversation

@VamikaSinghal

Copy link
Copy Markdown
Collaborator

What changed

  • adds pairwise digital-twin evaluation with position-swapped judging, ties, confidence, and stability metrics
  • adds zero-call preflight estimates for calls, tokens, cost, duration, concurrency, and budget admission
  • adds execution authority, checkpoints, persistence, retention, migration, owner-study, and benchmark tooling
  • exposes authenticated preflight APIs in FastAPI and the standalone runtime
  • documents integration, limitations, and operational workflows

Why

Pairwise evaluation gives Cortex a more stable and auditable way to compare whether candidate responses match a digital twin than independent scalar scoring.

Verification

  • pairwise/twin focused suite: 273 passed, 79 subtests
  • adversarial, preflight, repository, execution, metrics, owner-study, profile, and production-hardening tests included
  • branch is isolated from main; this draft PR does not merge or deploy anything

VamikaSinghal and others added 10 commits July 24, 2026 13:57
…win-eval branch

Reconciles the two diverged checkouts so the README rewrite has a single base.
No file overlap between the branches; merge is clean.
Corrects the build flow, architecture description, and capability claims
against the code, CI, and shipped Info.plist.

Build/test:
- pip install backend/requirements.txt + pytest (runtime-requirements.txt
  has neither FastAPI nor pytest, so the documented flow could not work)
- Python 3.12, not 3.11+ (3.9 fails collection with 16 errors; 3.12
  collects 2408 cleanly)
- add dev_backend.sh, standalone_server, adaptation_eval; point at ci.yml

Architecture:
- the bundled engine is stdlib http.server (backend/app/standalone_server.py),
  not FastAPI; FastAPI is the hosted plane in backend/app/main.py
- relabel the Engine badge accordingly

Operating model, corrected against source:
- consolidation is never auto-scheduled in the app and is maintenance-gated
  off, so drop "runs while you are away"
- personalized-PageRank and multi-hop are opt-in, not the default Ask path
- the knapsack engages only when a model is named
- the delta channel never re-announces; the pack still carries content
- intent is a fallback retriever, not an always-on fused signal
- packs are sha256-addressed when pinned
- fix the seven layer names to match MEMORY_LAYERS

Removed unverifiable claims: "No account needed" (Info.plist ships
CortexRequireAccount=true), "nothing is remembered until you approve"
(auto_approve defaults true for user imports), "any MCP client",
the LLM condenser, and automatic update installation.

Added: current limitations, the four undocumented shipped surfaces
(extension, Obsidian plugin, OpenClaw plugin, SDKs), and a repo layout
that labels the root-level prototype as legacy.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@VamikaSinghal
VamikaSinghal merged commit 7c69ea5 into main Aug 2, 2026
5 checks passed
VamikaSinghal added a commit that referenced this pull request Aug 2, 2026
Integrate PRs #5, #6, and #7: hardening and pairwise evaluation
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