WIP: OIE mapping pipeline + OWASP eval harness (not merge-ready) - #1088
Draft
northdpole wants to merge 10 commits into
Draft
northdpole wants to merge 10 commits into
northdpole wants to merge 10 commits into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Sep 13, 2026
Draft snapshot so mentors and GSoC contributors can see the live mapping pipeline, B2 gold/sources, and current accuracy reports. Not merge-ready; layout and leftovers will be cleaned up before a real review.
Shortlist, edition remap, metadata enrich, Module B, and the B2 judge all go through litellm_router instead of importing litellm directly.
northdpole
force-pushed
the
wip/oie-pipeline-eval-harness
branch
from
September 13, 2026 17:50
f16272c to
c6bf04b
Compare
…ults; keep the prior cage. Clone B2 nofocus+hybrid is 35.8% vs 32.8% baseline. Hop, CRE text enrich, and dropping the cage stay off.
…rome as embeddings. generate_embeddings now stores usable_embedding_text (salvaged ASVS prose or node fields) instead of nav/frame-busters, and hidden CRE blurbs live in the librarian cache for C.1/C.2 only.
Prefer GitHub raw content over SPA chrome, skip __repr__/junk/repr blobs, and keep Standard-hop from indexing non-prose hub text.
…ine the CRE. Cap each linked leaf and treat the CRE name as the topic in the system prompt. Flag stays default off.
…mmaries. Split queries on metadata lines (not length). Wire behind CRE_LIBRARIAN_DUAL_INDEX (default off) when CRE summaries are also enabled.
…ated parents. Rank near name matches by token overlap then shorter umbrella names, materialize preferred hubs missing from cosine top-K, and promote single-leaf parents when the Section title overlaps. Runs on caged and uncaged paths.
Cross-cutting umbrellas (Configuration, Cryptography, …) have no Contains children; Related edges already point at tree hubs. Eval-only local_gold copies keep mapping_fixtures canonical.
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.
Status
Draft. Not ready for merging. Visibility snapshot of the living OIE librarian/harvester pipeline and the eval data the harnesses actually run on. Do not treat CI green/red as a merge signal. Do not write these decisions into the live OpenCRE graph.
B2 gold for AISVS/API/LLM/Top10/K8s loads from
application.utils.mapping_fixtures(merged in #1098) on the PR branch. Local dual-index worktree eval usesCRE_B2_GOLD_DIR=scripts/oie_owasp_eval/fixtures/b2_gold/overrides (Related / AI-taxonomy / Agentic graph-hint remaps) — eval-only, canonical mapping fixtures unchanged until mentors agree.Summary
scripts/oie_owasp_eval/CRE_LIBRARIAN_CRE_SUMMARY,CRE_LIBRARIAN_DUAL_INDEXscripts/oie_owasp_eval/fixtures/:b2_gold/— agentic stub on PR branch; worktree also holds local remaps for classical/LLM/Agentic scoring experimentsb2_sources/— section text the B2 harness scores againstreports/— latest B1 / B2 / Module C accuracy JSONapplication/tests/librarian/fixtures/golden_dataset.jsonHow it is tested today
evaluate_librarian.py)score_b1_opencre_api.py)run_b2_pr_mappings.py)cre_idsB2 denominators (honest)
Full gate ≥54/67 met on local remapped gold (58/67). Classical near-misses remain (API5, AISVS3/8/9, K8s); deferred. Do not read 58/67 as production accuracy on canonical fixtures.
Cold-start (hub-link gold,
HUB_LINK_SEED=0): 7/21 — hub Links sparse on prodclone; not a substitute for Related-remap.Reproduce
Test plan
mapping_fixtures; agentic stub remains localmain, drop WIP leftovers, re-run B1/B2