Skip to content

About

A web app using TypeSafe Jev to classify AI systems by use case, personal data processing, and human oversight, with prediction comparisons and human evaluation.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Jev Evaluation Lab

An independent research workspace for TypeSafe Jev. Analyze AI-system descriptions, find evidence in synthetic documents, and compare results with human reviews. This project makes no legal compliance decisions and is not an official TypeSafe product.

Regulatory assessment demonstrator

The Assessments / Prüfungen workspace runs configured documentary checks. Choose Claude Code adoption (seven checks) or an internal AI assistant (four reused checks). Both use the same deterministic engine, guided UI and evidence workflow. The workspace asks for missing facts, retrieves exact legal excerpts, records independent reviews and exports an evidence-linked JSON/Markdown report. Each limited check distinguishes documented prerequisites, gaps, unknowns and explicit exclusions. An optional, explicit Jev action judges one synthetic passage.

The inventory covers the eight supplied regulatory PDFs. Eight selected excerpts retain page numbers, exact text offsets and source hashes. Historical editions, unreviewed applicability and missing AI Act/worker-participation coverage are visible limitations. This is not an exhaustive legal assessment or approval.

Original PDFs are local inputs in data/local/regulatory/ and are excluded from Git. The application runs from examples/regulatory/corpus.json; it does not need the PDFs. See input-file instructions and the assessment guide for the walkthrough, sources, rules and replay.

The assessment workspace also supports offline requirement discovery, separate human review of candidate relationships, and content-addressed assessment snapshots. Captures replay their own pinned definitions; research approvals never activate rules. See discovery, review and snapshot reproduction.

Workflows

  • Analyze: enter a description or choose one of 15 examples. Review five governance questions using Choice, Noul and Score. Edit questions, inspect probabilities, and compare saved assessments.
  • Evidence: read exact source passages about Human Oversight. Compare deterministic Text Search with bounded Graph Search, inspect source paths, and record separate relevance and evidence judgments. Asking Jev requires an explicit action.
  • Documents: browse the complete synthetic corpus, including older versions and sources that search did not retrieve. Follow pinned references back to Evidence.
  • Evaluate: compare predictions with reviewer labels. Inspect agreement, errors and sample sizes. Keep retrieval evaluation separate from classification.

History, reviews and runs are stored in this browser. JSON import/export supports offline exchange and backup. The desktop interface has English/German display languages and light/dark themes. Display translations do not change source text, request configurations or recorded responses. Unknown imported text stays as supplied.

Start locally

Use Node.js 24.x and the committed lockfile. In PowerShell:

npm.cmd ci
if (!(Test-Path .env)) { Copy-Item .env.example .env }
npm.cmd run dev

Open the URL printed by Next.js, normally http://127.0.0.1:3000. On other systems, use npm instead of npm.cmd.

No key is needed to browse documents, search, review, import recorded runs or export data. Live inference is disabled by default. Start with the offline evidence walkthrough.

For intentional paid inference, set TYPESAFE_API_KEY only in the ignored .env or server environment. Enable JEV_LIVE_INFERENCE_ENABLED=true for the web UI, then restart. CLI inference separately requires --live. Requests have no automatic retries. Never use NEXT_PUBLIC_* for credentials. Protect hosted access and set provider budgets before enabling requests. See security and manual deployment.

Offline commands

# Preview requests without inference:
npm.cmd run classify -- --profile governance --case hr-recruitment-reviewed
npm.cmd run lab -- evidence --case approval-gate
npm.cmd run experiment:evidence -- preview

# Verify the application; tests block model transport:
npm.cmd test
npm.cmd run typecheck
npm.cmd run build
# Install the browser once if needed: npx.cmd playwright install chromium
npm.cmd run test:browser

The original technical-function CLI remains the default classify profile. See CLI and JSON formats for validated imports, exports and configuration experiments.

Repository structure

Directory Contents
app/, components/ Next.js routes and React workspace, using assistant-ui
src/assessment/, src/regulatory/ Generic rule engine, definition validation and exact legal citations
src/server/ Server-only SDK calls, validation and inference protection
src/ui/ Shared assessment, evidence, graph and persistence logic
scripts/ CLI previews, offline evaluation and explicit live experiments
examples/ Synthetic scenarios, versioned legal excerpts, frozen protocols and recordings
data/ Input-file instructions; original PDFs under ignored data/local/regulatory/
test/, test-support/, e2e/ Offline tests, real response fixtures and browser checks
docs/ Architecture, methodology, limits and deployment instructions
results/ Ignored local exports, reports and review files

Research status and limits

Graph Search follows explicit relationships with bounded traversal and exact provenance. It can discover a cross-document queue-approval passage that Text Search misses. Its links are curated; this does not establish general superiority. There is no graph database, LLM reranker or entity-alignment model.

The frozen retrieval experiment has 18 related configurations and 159 unconfirmed relevance judgments. Separate AI-assisted labels are exploratory, not human ground truth. The recorded Jev study contains 58 actual responses; two additional recordings test integration. These synthetic cases do not establish validated accuracy, calibration or legal compliance.

Old frozen retrieval runs require the matching historical source snapshot. The current search implementation deliberately differs, and its hash check rejects replaying that old manifest. Use the pinned checkout instructions in experiments; do not update frozen hashes to bypass the check. The new pilot review packet has 24 blank judgments for an independent reviewer, with no measured results yet.

Source documents are bundled and read-only. Browser storage is local to an origin and is not a shared database or backup. Export before clearing it. Keep personal data and reviewer comments out of public exports. The interface targets desktop screens, with a minimum workspace width of 1120px.

The source-obligation discovery experiment records eight actual Jev judgments against public regulatory excerpts and a synthetic Claude Code scenario. It preserves exact citations and raw responses, with offline replay and a blind human-review packet. Applicability and role-boundary failures are documented, including editorial input cues; its AI-authored reference labels are not validated legal ground truth. No extracted candidate changes the production requirement catalog.

Further reading

License

Project metadata is UNLICENSED and private: true. No open-source license is granted; private prevents npm publication, not GitHub visibility. Third-party licenses and attribution remain intact.

About

A web app using TypeSafe Jev to classify AI systems by use case, personal data processing, and human oversight, with prediction comparisons and human evaluation.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages