Buckets:

download
raw
459 kB
[ { "slug": "authentication_pwd__Clinical-Genomics_statina", "id": "pwd-based/statina/ClaudeCodeopus4.7", "pattern": "authentication_pwd", "repo": "Clinical-Genomics_statina", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.5714285714285714, "drift": 0.4285714285714286, "detail": { "agreedRoles": 4, "totalRoles": 7 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verification manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Password store", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Encrypter", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Comparator", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 2, "skippedRoles": 10, "treeHeight": 8 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "login_for_access_token", "loc": "statina/API/v2/endpoints/user.py:85\u2013104" }, "recoveryResult": { "entity": "login_for_access_token", "loc": "statina/API/v2/endpoints/user.py:86" }, "note": "path-length (d=0)" }, { "patternRole": "Verification manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "authenticate_user", "loc": "statina/API/external/api/deps.py:26" }, "recoveryResult": { "entity": "authenticate_user", "loc": "statina/API/external/api/deps.py:26" }, "note": "path-length (d=0)" } ], "notes": [ "Comparator: absent from the recovery result (Level 1 false negative)", "Encrypter: absent from the recovery result (Level 1 false negative)", "Hash manager: absent from the ground truth (Level 1 negative)", "Hasher: absent from the recovery result (Level 1 false negative)", "Password policy: absent from the ground truth (Level 1 negative)", "Password store: ground truth cites no entity", "Pepper store: absent from the ground truth (Level 1 negative)", "Registrar: absent from the ground truth (Level 1 negative)", "Resetter: absent from the ground truth (Level 1 negative)", "SRNG: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Verification manager" ], "excludedRoles": [ "Comparator", "Encrypter", "Hash manager", "Hasher", "Password policy", "Password store", "Pepper store", "Registrar", "Resetter", "SRNG" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 1, "sharedInteractions": 1, "unionSize": 1, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 6, "prescribedStepsCovered": 1 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "statina/API/v2/endpoints/user.py", "line": 89, "via": [] }, "recoveryResult": { "file": "statina/API/v2/endpoints/user.py", "line": 89, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 1 of 1 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 2 roles both sides detected (Enforcer, Verification manager). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Comparator, Encrypter, Hash manager, Hasher, Password policy, Password store, Pepper store, Registrar, Resetter, SRNG. 10 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Verification manager", "Password store", "Hasher", "Pepper store", "Encrypter", "Comparator" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Hash manager", "Password policy", "Registrar", "Resetter", "SRNG", "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 7, "rr_roles": 7, "struct_files": 76, "annotated_at": "2026-08-05 17:07:39.992000" }, { "slug": "authentication_pwd__aspuru-guzik-group_molar", "id": "pwd-based/molar/ClaudeCodeopus4.7", "pattern": "authentication_pwd", "repo": "aspuru-guzik-group_molar", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.7142857142857143, "drift": 0.2857142857142857, "detail": { "agreedRoles": 5, "totalRoles": 7 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verification manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Password store", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Encrypter", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Comparator", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 3, "skippedRoles": 9, "treeHeight": 7 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "login_access_token", "loc": "molar/backend/api/api_v1/endpoints/login.py:27" }, "recoveryResult": { "entity": "login_access_token", "loc": "molar/backend/api/api_v1/endpoints/login.py:27" }, "note": "path-length (d=0)" }, { "patternRole": "Password store", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_by_email", "loc": "molar/backend/crud/crud_user.py:15\u201316" }, "recoveryResult": { "entity": "get_by_email", "loc": "molar/backend/crud/crud_user.py:15" }, "note": "path-length (d=0)" }, { "patternRole": "Verification manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "authenticate", "loc": "molar/backend/crud/crud_user.py:55" }, "recoveryResult": { "entity": "authenticate", "loc": "molar/backend/crud/crud_user.py:55" }, "note": "path-length (d=0)" } ], "notes": [ "Comparator: absent from the recovery result (Level 1 false negative)", "Encrypter: absent from the ground truth (Level 1 negative)", "Hash manager: absent from the ground truth (Level 1 negative)", "Hasher: absent from the recovery result (Level 1 false negative)", "Password policy: absent from the ground truth (Level 1 negative)", "Pepper store: absent from the ground truth (Level 1 negative)", "Registrar: absent from the ground truth (Level 1 negative)", "Resetter: absent from the ground truth (Level 1 negative)", "SRNG: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Password store", "Verification manager" ], "excludedRoles": [ "Comparator", "Encrypter", "Hash manager", "Hasher", "Password policy", "Pepper store", "Registrar", "Resetter", "SRNG" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 6, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "molar/backend/api/api_v1/endpoints/login.py", "line": 41, "via": [] }, "recoveryResult": { "file": "molar/backend/api/api_v1/endpoints/login.py", "line": 41, "via": [] } } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "molar/backend/crud/crud_user.py", "line": 58, "via": [] }, "recoveryResult": { "file": "molar/backend/crud/crud_user.py", "line": 58, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 2 of 2 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 3 roles both sides detected (Enforcer, Password store, Verification manager). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Comparator, Encrypter, Hash manager, Hasher, Password policy, Pepper store, Registrar, Resetter, SRNG. 9 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Verification manager", "Password store", "Hasher", "Pepper store", "Encrypter", "Comparator" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Hash manager", "Password policy", "Registrar", "Resetter", "SRNG", "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 7, "rr_roles": 7, "struct_files": 77, "annotated_at": "2026-08-12 16:14:39.955000" }, { "slug": "authentication_pwd__cxmjg_yaml-to-backend", "id": "pwd-based/yaml-to-backend/ClaudeCodeopus4.7", "pattern": "authentication_pwd", "repo": "cxmjg_yaml-to-backend", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.7142857142857143, "drift": 0.2857142857142857, "detail": { "agreedRoles": 5, "totalRoles": 7 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verification manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Password store", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Encrypter", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Comparator", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 3, "skippedRoles": 9, "treeHeight": 4 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "login", "loc": "yaml_to_backend/api/auth_routes.py:34" }, "recoveryResult": { "entity": "login", "loc": "yaml_to_backend/api/auth_routes.py:35" }, "note": "path-length (d=0)" }, { "patternRole": "Password store", "score": 1.0, "distance": 0, "groundTruth": { "entity": "session", "loc": "yaml_to_backend/security/auth.py:73" }, "recoveryResult": { "entity": "session", "loc": "yaml_to_backend/security/auth.py:57" }, "note": "path-length (d=0)" }, { "patternRole": "Verification manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "authenticate_user", "loc": "yaml_to_backend/security/auth.py:57" }, "recoveryResult": { "entity": "authenticate_user", "loc": "yaml_to_backend/security/auth.py:57" }, "note": "path-length (d=0)" } ], "notes": [ "Comparator: absent from the recovery result (Level 1 false negative)", "Encrypter: absent from the ground truth (Level 1 negative)", "Hash manager: absent from the ground truth (Level 1 negative)", "Hasher: absent from the recovery result (Level 1 false negative)", "Password policy: absent from the ground truth (Level 1 negative)", "Pepper store: absent from the ground truth (Level 1 negative)", "Registrar: absent from the ground truth (Level 1 negative)", "Resetter: absent from the ground truth (Level 1 negative)", "SRNG: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Password store", "Verification manager" ], "excludedRoles": [ "Comparator", "Encrypter", "Hash manager", "Hasher", "Password policy", "Pepper store", "Registrar", "Resetter", "SRNG" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 6, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "yaml_to_backend/api/auth_routes.py", "line": 45, "via": [] }, "recoveryResult": { "file": "yaml_to_backend/api/auth_routes.py", "line": 45, "via": [] } } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "yaml_to_backend/security/auth.py", "line": 73, "via": [] }, "recoveryResult": { "file": "yaml_to_backend/security/auth.py", "line": 73, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 2 of 2 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 3 roles both sides detected (Enforcer, Password store, Verification manager). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Comparator, Encrypter, Hash manager, Hasher, Password policy, Pepper store, Registrar, Resetter, SRNG. 9 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Verification manager", "Password store", "Hasher", "Pepper store", "Encrypter", "Comparator" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Hash manager", "Password policy", "Registrar", "Resetter", "SRNG", "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 7, "rr_roles": 7, "struct_files": 16, "annotated_at": "2026-08-12 16:55:50.859000" }, { "slug": "authentication_pwd__Aquiles-ai_Aquiles-RAG", "id": "pwd-based/aquiles-rag/ClaudeCodeopus4.7", "pattern": "authentication_pwd", "repo": "Aquiles-ai_Aquiles-RAG", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 7, "totalRoles": 7 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verification manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Password store", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Encrypter", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Comparator", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 3, "skippedRoles": 9, "treeHeight": 5 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "login_for_access_token", "loc": "aquiles/main.py:309" }, "recoveryResult": { "entity": "login_for_access_token", "loc": "aquiles/main.py:309" }, "note": "path-length (d=0)" }, { "patternRole": "Password store", "score": 1.0, "distance": 0, "groundTruth": { "entity": "users_db", "loc": "aquiles/auth/jwt_aq.py:29" }, "recoveryResult": { "entity": "users_db", "loc": "aquiles/auth/jwt_aq.py:29" }, "note": "path-length (d=0)" }, { "patternRole": "Verification manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "authenticate_user", "loc": "aquiles/auth/jwt_aq.py:27" }, "recoveryResult": { "entity": "authenticate_user", "loc": "aquiles/auth/jwt_aq.py:27" }, "note": "path-length (d=0)" } ], "notes": [ "Comparator: ground truth cites no entity", "Encrypter: absent from the ground truth (Level 1 negative)", "Hash manager: absent from the ground truth (Level 1 negative)", "Hasher: absent from the ground truth (Level 1 negative)", "Password policy: absent from the ground truth (Level 1 negative)", "Pepper store: absent from the ground truth (Level 1 negative)", "Registrar: absent from the ground truth (Level 1 negative)", "Resetter: absent from the ground truth (Level 1 negative)", "SRNG: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Password store", "Verification manager" ], "excludedRoles": [ "Comparator", "Encrypter", "Hash manager", "Hasher", "Password policy", "Pepper store", "Registrar", "Resetter", "SRNG" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 6, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "aquiles/main.py", "line": 310, "via": [] }, "recoveryResult": { "file": "aquiles/main.py", "line": 310, "via": [] } } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "aquiles/auth/jwt_aq.py", "line": 29, "via": [] }, "recoveryResult": { "file": "aquiles/auth/jwt_aq.py", "line": 29, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 2 of 2 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 3 roles both sides detected (Enforcer, Password store, Verification manager). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Comparator, Encrypter, Hash manager, Hasher, Password policy, Pepper store, Registrar, Resetter, SRNG. 9 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Verification manager", "Password store", "Hasher", "Pepper store", "Encrypter", "Comparator" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Hash manager", "Password policy", "Registrar", "Resetter", "SRNG", "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 7, "rr_roles": 7, "struct_files": 46, "annotated_at": "2026-08-05 09:22:18.029000" }, { "slug": "authentication_pwd__AmberLee2427_nancy-brain", "id": "pwd-based/nancy-brain/ClaudeCodeopus4.7", "pattern": "authentication_pwd", "repo": "AmberLee2427_nancy-brain", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.8571428571428571, "drift": 0.1428571428571429, "detail": { "agreedRoles": 6, "totalRoles": 7 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verification manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Password store", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Encrypter", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Comparator", "groundTruth": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 4, "skippedRoles": 8, "treeHeight": 5 }, "perRole": [ { "patternRole": "Comparator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "verify", "loc": "connectors/http_api/auth.py:221" }, "recoveryResult": { "entity": "verify", "loc": "connectors/http_api/auth.py:310" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "login", "loc": "connectors/http_api/app.py:323" }, "recoveryResult": { "entity": "login", "loc": "connectors/http_api/app.py:323" }, "note": "path-length (d=0)" }, { "patternRole": "Password store", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_user", "loc": "connectors/http_api/auth.py:210" }, "recoveryResult": { "entity": "get_user", "loc": "connectors/http_api/auth.py:299" }, "note": "path-length (d=0)" }, { "patternRole": "Verification manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "authenticate_user", "loc": "connectors/http_api/auth.py:226" }, "recoveryResult": { "entity": "authenticate_user", "loc": "connectors/http_api/auth.py:315" }, "note": "path-length (d=0)" } ], "notes": [ "Encrypter: absent from the ground truth (Level 1 negative)", "Hash manager: absent from the ground truth (Level 1 negative)", "Hasher: absent from the recovery result (Level 1 false negative)", "Password policy: absent from the ground truth (Level 1 negative)", "Pepper store: absent from the ground truth (Level 1 negative)", "Registrar: absent from the ground truth (Level 1 negative)", "Resetter: absent from the ground truth (Level 1 negative)", "SRNG: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.6666666666666666, "drift": 0.33333333333333337, "detail": { "agreedRoles": [ "Comparator", "Enforcer", "Password store", "Verification manager" ], "excludedRoles": [ "Encrypter", "Hash manager", "Hasher", "Password policy", "Pepper store", "Registrar", "Resetter", "SRNG" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 3, "sharedInteractions": 2, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 1, "interactionOverlap": 0.6667, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 6, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "connectors/http_api/app.py", "line": 324, "via": [] }, "recoveryResult": { "file": "connectors/http_api/app.py", "line": 324, "via": [] } } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "connectors/http_api/auth.py", "line": 316, "via": [] }, "recoveryResult": { "file": "connectors/http_api/auth.py", "line": 316, "via": [] } } }, { "interaction": "Verification manager \u2192 Comparator", "from": "Verification manager", "to": "Comparator", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "connectors/http_api/auth.py", "line": 310, "via": [ "connectors/http_api/auth.py:<module>.verify_password" ] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.6667 \u00d7 1. Overlap: 2 of 3 interactions were found by both sides (0 only in the ground truth, 1 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 4 roles both sides detected (Comparator, Enforcer, Password store, Verification manager). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Encrypter, Hash manager, Hasher, Password policy, Pepper store, Registrar, Resetter, SRNG. 8 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Comparator cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Verification manager", "Password store", "Hasher", "Pepper store", "Encrypter", "Comparator" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Hash manager", "Password policy", "Registrar", "Resetter", "SRNG", "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 7, "rr_roles": 7, "struct_files": 86, "annotated_at": "2026-08-12 16:16:03.607000" }, { "slug": "authentication_pwd__JBEI_dnada", "id": "pwd-based/dnada/ClaudeCodeopus4.7", "pattern": "authentication_pwd", "repo": "JBEI_dnada", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.7142857142857143, "drift": 0.2857142857142857, "detail": { "agreedRoles": 5, "totalRoles": 7 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verification manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Password store", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Encrypter", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Comparator", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 3, "skippedRoles": 9, "treeHeight": 7 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "login_access_token", "loc": "backend/app/app/api/api_v1/endpoints/login.py:22\u201343" }, "recoveryResult": { "entity": "login_access_token", "loc": "backend/app/app/api/api_v1/endpoints/login.py:23" }, "note": "path-length (d=0)" }, { "patternRole": "Password store", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_by_email", "loc": "backend/app/app/crud/crud_user.py:15\u201316" }, "recoveryResult": { "entity": "get_by_email", "loc": "backend/app/app/crud/crud_user.py:15" }, "note": "path-length (d=0)" }, { "patternRole": "Verification manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "authenticate", "loc": "backend/app/app/crud/crud_user.py:30" }, "recoveryResult": { "entity": "authenticate", "loc": "backend/app/app/crud/crud_user.py:30" }, "note": "path-length (d=0)" } ], "notes": [ "Comparator: absent from the recovery result (Level 1 false negative)", "Encrypter: absent from the ground truth (Level 1 negative)", "Hash manager: absent from the ground truth (Level 1 negative)", "Hasher: absent from the recovery result (Level 1 false negative)", "Password policy: absent from the ground truth (Level 1 negative)", "Pepper store: absent from the ground truth (Level 1 negative)", "Registrar: absent from the ground truth (Level 1 negative)", "Resetter: absent from the ground truth (Level 1 negative)", "SRNG: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Password store", "Verification manager" ], "excludedRoles": [ "Comparator", "Encrypter", "Hash manager", "Hasher", "Password policy", "Pepper store", "Registrar", "Resetter", "SRNG" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 6, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "backend/app/app/api/api_v1/endpoints/login.py", "line": 30, "via": [] }, "recoveryResult": { "file": "backend/app/app/api/api_v1/endpoints/login.py", "line": 30, "via": [] } } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "backend/app/app/crud/crud_user.py", "line": 31, "via": [] }, "recoveryResult": { "file": "backend/app/app/crud/crud_user.py", "line": 31, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 2 of 2 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 3 roles both sides detected (Enforcer, Password store, Verification manager). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Comparator, Encrypter, Hash manager, Hasher, Password policy, Pepper store, Registrar, Resetter, SRNG. 9 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Verification manager", "Password store", "Hasher", "Pepper store", "Encrypter", "Comparator" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Hash manager", "Password policy", "Registrar", "Resetter", "SRNG", "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 7, "rr_roles": 7, "struct_files": 208, "annotated_at": "2026-08-13 09:17:51.425000" }, { "slug": "authentication_pwd__vnpy_vnpy_webtrader", "id": "pwd-based/vnpy_webtrader/ClaudeCodeOpus5.5", "pattern": "authentication_pwd", "repo": "vnpy_vnpy_webtrader", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.7143, "drift": 0.2857, "detail": { "agreedRoles": 5, "totalRoles": 7 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verification manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Password store", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Hasher", "groundTruth": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Encrypter", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Comparator", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.9333, "drift": 0.0667, "detail": { "aggregate": 0.9333, "scoredRoles": 3, "skippedRoles": 4, "treeHeight": 5 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "login", "loc": "vnpy_webtrader/web.py:146" }, "recoveryResult": { "entity": "login", "loc": "vnpy_webtrader/web.py:146" }, "note": "path-length (d=0)" }, { "patternRole": "Hasher", "score": 0.8, "distance": 2, "groundTruth": { "entity": "verify", "loc": "vnpy_webtrader/web.py:89" }, "recoveryResult": { "entity": "hash", "loc": "vnpy_webtrader/web.py:84" }, "note": "path-length (d=2)" }, { "patternRole": "Verification manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "authenticate_user", "loc": "vnpy_webtrader/web.py:82" }, "recoveryResult": { "entity": "authenticate_user", "loc": "vnpy_webtrader/web.py:82" }, "note": "path-length (d=0)" } ], "notes": [ "Comparator: absent from the recovery result (Level 1 false negative)", "Encrypter: absent from the ground truth (Level 1 negative)", "Password store: absent from the recovery result (Level 1 false negative)", "Pepper store: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Hasher", "Verification manager" ], "excludedRoles": [ "Comparator", "Encrypter", "Password store", "Pepper store" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 6, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "vnpy_webtrader/web.py", "line": 148, "via": [] }, "recoveryResult": { "file": "vnpy_webtrader/web.py", "line": 148, "via": [] } } }, { "interaction": "Verification manager \u2192 Hasher", "from": "Verification manager", "to": "Hasher", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "vnpy_webtrader/web.py", "line": 89, "via": [] }, "recoveryResult": { "file": "vnpy_webtrader/web.py", "line": 84, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 2 of 2 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 3 roles both sides detected (Enforcer, Hasher, Verification manager). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Comparator, Encrypter, Password store, Pepper store. 4 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Hasher cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Verification manager", "Password store", "Hasher", "Pepper store", "Encrypter", "Comparator" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 7, "rr_roles": 7, "struct_files": 7, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "authentication_pwd__Nostalgia-Season-Train_DesksetBack", "id": "pwd-based/DesksetBack/ClaudeCodeOpus5.5", "pattern": "authentication_pwd", "repo": "Nostalgia-Season-Train_DesksetBack", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.7143, "drift": 0.2857, "detail": { "agreedRoles": 5, "totalRoles": 7 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verification manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Password store", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Hasher", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Encrypter", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Comparator", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 2, "skippedRoles": 5, "treeHeight": 8 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "login", "loc": "src/deskset/router/unify/access.py:119" }, "recoveryResult": { "entity": "login", "loc": "src/deskset/router/unify/access.py:119" }, "note": "path-length (d=0)" }, { "patternRole": "Verification manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "login", "loc": "src/deskset/router/unify/access.py:119" }, "recoveryResult": { "entity": "login", "loc": "src/deskset/router/unify/access.py:119" }, "note": "path-length (d=0)" } ], "notes": [ "Comparator: absent from the recovery result (Level 1 false negative)", "Encrypter: absent from the ground truth (Level 1 negative)", "Hasher: absent from the ground truth (Level 1 negative)", "Password store: absent from the recovery result (Level 1 false negative)", "Pepper store: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Verification manager" ], "excludedRoles": [ "Comparator", "Encrypter", "Hasher", "Password store", "Pepper store" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 1, "sharedInteractions": 1, "unionSize": 1, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 6, "prescribedStepsCovered": 1 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/deskset/router/unify/access.py", "line": 119, "via": [] }, "recoveryResult": { "file": "src/deskset/router/unify/access.py", "line": 119, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 1 of 1 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 2 roles both sides detected (Enforcer, Verification manager). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Comparator, Encrypter, Hasher, Password store, Pepper store. 5 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Verification manager", "Password store", "Hasher", "Pepper store", "Encrypter", "Comparator" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 7, "rr_roles": 7, "struct_files": 65, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "authentication_pwd__olaflaitinen_Promethium", "id": "pwd-based/Promethium/ClaudeCodeOpus5.5", "pattern": "authentication_pwd", "repo": "olaflaitinen_Promethium", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.7143, "drift": 0.2857, "detail": { "agreedRoles": 5, "totalRoles": 7 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verification manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Password store", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Encrypter", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Comparator", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.8056, "drift": 0.1944, "detail": { "aggregate": 0.8056, "scoredRoles": 3, "skippedRoles": 4, "treeHeight": 6 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "login_access_token", "loc": "src/promethium/api/routers/auth.py:22" }, "recoveryResult": { "entity": "login_access_token", "loc": "src/promethium/api/routers/auth.py:22" }, "note": "path-length (d=0)" }, { "patternRole": "Password store", "score": 0.4167, "distance": 7, "groundTruth": { "entity": "User", "loc": "src/promethium/api/models/user.py:12" }, "recoveryResult": { "entity": "get_db", "loc": "src/promethium/core/database.py:15" }, "note": "path-length (d=7)" }, { "patternRole": "Verification manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "authenticate_user", "loc": "src/promethium/api/services/auth_service.py:18" }, "recoveryResult": { "entity": "authenticate_user", "loc": "src/promethium/api/services/auth_service.py:18" }, "note": "path-length (d=0)" } ], "notes": [ "Comparator: absent from the recovery result (Level 1 false negative)", "Encrypter: absent from the ground truth (Level 1 negative)", "Hasher: absent from the recovery result (Level 1 false negative)", "Pepper store: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.5, "drift": 0.5, "detail": { "agreedRoles": [ "Enforcer", "Password store", "Verification manager" ], "excludedRoles": [ "Comparator", "Encrypter", "Hasher", "Pepper store" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 2, "sharedInteractions": 1, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 1, "interactionOverlap": 0.5, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 6, "prescribedStepsCovered": 1 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/promethium/api/routers/auth.py", "line": 29, "via": [] }, "recoveryResult": { "file": "src/promethium/api/routers/auth.py", "line": 29, "via": [] } } }, { "interaction": "Enforcer \u2192 Password store", "from": "Enforcer", "to": "Password store", "groundTruthRank": null, "recoveryResultRank": 1, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "src/promethium/api/routers/auth.py", "line": 22, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.5 \u00d7 1. Overlap: 1 of 2 interactions were found by both sides (0 only in the ground truth, 1 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 3 roles both sides detected (Enforcer, Password store, Verification manager). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Comparator, Encrypter, Hasher, Pepper store. 4 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Verification manager", "Password store", "Hasher", "Pepper store", "Encrypter", "Comparator" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 7, "rr_roles": 7, "struct_files": 104, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "authentication_pwd__tumma72_mlx-manager", "id": "pwd-based/tumma72_mlx-manager/ClaudeCodeOpus5.5", "pattern": "authentication_pwd", "repo": "tumma72_mlx-manager", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.7143, "drift": 0.2857, "detail": { "agreedRoles": 5, "totalRoles": 7 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verification manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Password store", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Encrypter", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Comparator", "groundTruth": "external", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.75, "drift": 0.25, "detail": { "aggregate": 0.75, "scoredRoles": 3, "skippedRoles": 4, "treeHeight": 8 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "login", "loc": "backend/mlx_manager/routers/auth.py:69" }, "recoveryResult": { "entity": "login", "loc": "backend/mlx_manager/routers/auth.py:69" }, "note": "path-length (d=0)" }, { "patternRole": "Password store", "score": 0.625, "distance": 6, "groundTruth": { "entity": "User", "loc": "backend/mlx_manager/models/entities.py:30" }, "recoveryResult": { "entity": "session", "loc": "backend/mlx_manager/routers/auth.py:71" }, "note": "path-length (d=6)" }, { "patternRole": "Verification manager", "score": 0.625, "distance": 6, "groundTruth": { "entity": "verify_password", "loc": "backend/mlx_manager/services/auth_service.py:25" }, "recoveryResult": { "entity": "login", "loc": "backend/mlx_manager/routers/auth.py:69" }, "note": "path-length (d=6)" } ], "notes": [ "Comparator: absent from the recovery result (Level 1 false negative)", "Encrypter: absent from the ground truth (Level 1 negative)", "Hasher: absent from the recovery result (Level 1 false negative)", "Pepper store: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.3333333333333333, "drift": 0.6666666666666667, "detail": { "agreedRoles": [ "Enforcer", "Password store", "Verification manager" ], "excludedRoles": [ "Comparator", "Encrypter", "Hasher", "Pepper store" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 3, "sharedInteractions": 1, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 2, "interactionOverlap": 0.3333, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 6, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "backend/mlx_manager/routers/auth.py", "line": 82, "via": [] }, "recoveryResult": { "file": "backend/mlx_manager/routers/auth.py", "line": 69, "via": [] } } }, { "interaction": "Enforcer \u2192 Password store", "from": "Enforcer", "to": "Password store", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "backend/mlx_manager/routers/auth.py", "line": 78, "via": [] } } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "backend/mlx_manager/routers/auth.py", "line": 78, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.3333 \u00d7 1. Overlap: 1 of 3 interactions were found by both sides (0 only in the ground truth, 2 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 3 roles both sides detected (Enforcer, Password store, Verification manager). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Comparator, Encrypter, Hasher, Pepper store. 4 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Verification manager", "Password store", "Hasher", "Pepper store", "Encrypter", "Comparator" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 7, "rr_roles": 7, "struct_files": 282, "annotated_at": "2026-10-06 09:53:49.581000" }, { "slug": "obscure_token_based_access_control__Athroniaeth_keyshield", "id": "obscure-token-ac/keyshield/ClaudeCodeopus4.7", "pattern": "obscure_token_based_access_control", "repo": "Athroniaeth_keyshield", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Validator", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Token manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.7667, "drift": 0.2333, "detail": { "aggregate": 0.7667, "scoredRoles": 3, "skippedRoles": 3, "treeHeight": 5 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.6, "distance": 4, "groundTruth": { "entity": "_handle_verify_key", "loc": "src/keyshield/api.py:374\u2013415" }, "recoveryResult": { "entity": "guard", "loc": "src/keyshield/litestar_api.py:360" }, "note": "path-length (d=4)" }, { "patternRole": "Token manager", "score": 0.7, "distance": 3, "groundTruth": { "entity": "get_by_key_id", "loc": "src/keyshield/services/base.py:349\u2013355" }, "recoveryResult": { "entity": "_repo", "loc": "src/keyshield/services/base.py:86" }, "note": "path-length (d=3)" }, { "patternRole": "Validator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "_verify_key", "loc": "src/keyshield/services/base.py:437\u2013443" }, "recoveryResult": { "entity": "_verify_key", "loc": "src/keyshield/services/base.py:437" }, "note": "path-length (d=0)" } ], "notes": [ "Hasher: absent from the ground truth (Level 1 negative)", "Registrar: absent from the ground truth (Level 1 negative)", "Token generator: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.5, "drift": 0.5, "detail": { "agreedRoles": [ "Enforcer", "Token manager", "Validator" ], "excludedRoles": [ "Hasher", "Registrar", "Token generator" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 1, "sharedInteractions": 1, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 1, "onlyRecoveryResult": 0, "interactionOverlap": 0.5, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 3, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Validator", "from": "Enforcer", "to": "Validator", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/keyshield/services/base.py", "line": 242, "via": [ "src/keyshield/services/base.py:<module>.AbstractApiKeyService.verify_key" ] }, "recoveryResult": { "file": "src/keyshield/services/base.py", "line": 242, "via": [ "src/keyshield/litestar_api.py:<module>._handle_verify_key", "src/keyshield/services/base.py:<module>.AbstractApiKeyService.verify_key" ] } } }, { "interaction": "Validator \u2192 Token manager", "from": "Validator", "to": "Token manager", "groundTruthRank": 2, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/keyshield/services/base.py", "line": 441, "via": [] }, "recoveryResult": null } } ], "notes": [ "Score = overlap \u00d7 order = 0.5 \u00d7 1. Overlap: 1 of 2 interactions were found by both sides (1 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 3 roles both sides detected (Enforcer, Token manager, Validator). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Hasher, Registrar, Token generator. 3 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Validator", "Hasher", "Token manager" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 58, "annotated_at": "2026-09-26 22:01:38.718000" }, { "slug": "obscure_token_based_access_control__contextfs_contextfs", "id": "obscure-token-ac/contextfs/ClaudeCodeopus4.7", "pattern": "obscure_token_based_access_control", "repo": "contextfs_contextfs", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Validator", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Token manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.4791, "drift": 0.5209, "detail": { "aggregate": 0.4791, "scoredRoles": 4, "skippedRoles": 2, "treeHeight": 6 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.3333, "distance": 8, "groundTruth": { "entity": "require_auth", "loc": "src/contextfs/auth/middleware.py:93" }, "recoveryResult": { "entity": "require_auth", "loc": "service/api/auth_middleware.py:105" }, "note": "path-length (d=8)" }, { "patternRole": "Hasher", "score": 1.0, "distance": 0, "groundTruth": { "entity": "hash_api_key", "loc": "src/contextfs/auth/api_keys.py:74\u201392" }, "recoveryResult": { "entity": "hash_api_key", "loc": "src/contextfs/auth/api_keys.py:74" }, "note": "path-length (d=0)" }, { "patternRole": "Token manager", "score": 0.3333, "distance": 8, "groundTruth": { "entity": "db", "loc": "src/contextfs/auth/api_keys.py:170" }, "recoveryResult": { "entity": "get_session_dependency", "loc": "service/db/session.py:136" }, "note": "path-length (d=8)" }, { "patternRole": "Validator", "score": 0.25, "distance": 9, "groundTruth": { "entity": "validate_key", "loc": "src/contextfs/auth/api_keys.py:152" }, "recoveryResult": { "entity": "validate_api_key", "loc": "service/api/auth_middleware.py:22" }, "note": "path-length (d=9)" } ], "notes": [ "Registrar: absent from the ground truth (Level 1 negative)", "Token generator: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.6666666666666666, "drift": 0.33333333333333337, "detail": { "agreedRoles": [ "Enforcer", "Hasher", "Token manager", "Validator" ], "excludedRoles": [ "Registrar", "Token generator" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 3, "sharedInteractions": 2, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 1, "interactionOverlap": 0.6667, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Validator", "from": "Enforcer", "to": "Validator", "groundTruthRank": 1, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/contextfs/auth/middleware.py", "line": 41, "via": [ "src/contextfs/auth/middleware.py:<module>.get_current_user", "src/contextfs/auth/middleware.py:<module>.AuthMiddleware.authenticate" ] }, "recoveryResult": { "file": "service/api/auth_middleware.py", "line": 102, "via": [ "service/api/auth_middleware.py:<module>.get_current_user" ] } } }, { "interaction": "Validator \u2192 Hasher", "from": "Validator", "to": "Hasher", "groundTruthRank": 2, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/contextfs/auth/api_keys.py", "line": 164, "via": [] }, "recoveryResult": { "file": "service/api/auth_middleware.py", "line": 38, "via": [] } } }, { "interaction": "Enforcer \u2192 Token manager", "from": "Enforcer", "to": "Token manager", "groundTruthRank": null, "recoveryResultRank": 1, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "service/api/auth_middleware.py", "line": 91, "via": [ "service/api/auth_middleware.py:<module>.get_current_user" ] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.6667 \u00d7 1. Overlap: 2 of 3 interactions were found by both sides (0 only in the ground truth, 1 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 4 roles both sides detected (Enforcer, Hasher, Token manager, Validator). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Registrar, Token generator. 2 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Validator", "Hasher", "Token manager" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 177, "annotated_at": "2026-08-10 16:32:35.439000" }, { "slug": "obscure_token_based_access_control__datastax_ragstack-ai-langflow", "id": "obscure-token-ac/ragstack-ai-langflow/ClaudeCodeopus4.7", "pattern": "obscure_token_based_access_control", "repo": "datastax_ragstack-ai-langflow", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": 3, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Validator", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Token manager", "groundTruth": "present", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.9259, "drift": 0.0741, "detail": { "aggregate": 0.9259, "scoredRoles": 3, "skippedRoles": 3, "treeHeight": 9 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.8889, "distance": 2, "groundTruth": { "entity": "get_current_user", "loc": "src/backend/base/langflow/services/auth/utils.py:71" }, "recoveryResult": { "entity": "api_key_security", "loc": "src/backend/base/langflow/services/auth/utils.py:31" }, "note": "path-length (d=2)" }, { "patternRole": "Token manager", "score": 0.8889, "distance": 2, "groundTruth": { "entity": "session", "loc": "src/backend/base/langflow/services/database/models/api_key/crud.py:49" }, "recoveryResult": { "entity": "exec", "loc": "src/backend/base/langflow/services/database/models/api_key/crud.py:49" }, "note": "path-length (d=2)" }, { "patternRole": "Validator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "check_key", "loc": "src/backend/base/langflow/services/database/models/api_key/crud.py:46" }, "recoveryResult": { "entity": "check_key", "loc": "src/backend/base/langflow/services/database/models/api_key/crud.py:46" }, "note": "path-length (d=0)" } ], "notes": [ "Hasher: absent from the ground truth (Level 1 negative)", "Registrar: absent from the ground truth (Level 1 negative)", "Token generator: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Token manager", "Validator" ], "excludedRoles": [ "Hasher", "Registrar", "Token generator" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Validator", "from": "Enforcer", "to": "Validator", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/backend/base/langflow/services/auth/utils.py", "line": 55, "via": [ "src/backend/base/langflow/services/auth/utils.py:<module>.api_key_security" ] }, "recoveryResult": { "file": "src/backend/base/langflow/services/auth/utils.py", "line": 55, "via": [] } } }, { "interaction": "Validator \u2192 Token manager", "from": "Validator", "to": "Token manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/backend/base/langflow/services/database/models/api_key/crud.py", "line": 49, "via": [] }, "recoveryResult": { "file": "src/backend/base/langflow/services/database/models/api_key/crud.py", "line": 49, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 2 of 2 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 3 roles both sides detected (Enforcer, Token manager, Validator). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Hasher, Registrar, Token generator. 3 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: Token manager cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Validator", "Hasher", "Token manager" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 543, "annotated_at": "2026-08-11 07:55:18.185000" }, { "slug": "obscure_token_based_access_control__elisiariocouto_leggen", "id": "obscure-token-ac/leggen/ClaudeCodeopus4.7", "pattern": "obscure_token_based_access_control", "repo": "elisiariocouto_leggen", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": 3, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Validator", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Token manager", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 2, "skippedRoles": 4, "treeHeight": 6 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_current_user", "loc": "leggen/api/dependencies/auth.py:13" }, "recoveryResult": { "entity": "get_current_user", "loc": "leggen/api/dependencies/auth.py:12" }, "note": "path-length (d=0)" }, { "patternRole": "Validator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "verify_api_key", "loc": "leggen/utils/auth.py:47\u201349" }, "recoveryResult": { "entity": "verify_api_key", "loc": "leggen/utils/auth.py:67" }, "note": "path-length (d=0)" } ], "notes": [ "Hasher: absent from the ground truth (Level 1 negative)", "Registrar: absent from the ground truth (Level 1 negative)", "Token generator: absent from the ground truth (Level 1 negative)", "Token manager: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Validator" ], "excludedRoles": [ "Hasher", "Registrar", "Token generator", "Token manager" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 1, "sharedInteractions": 1, "unionSize": 1, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 3, "prescribedStepsCovered": 1 }, "perRole": [ { "interaction": "Enforcer \u2192 Validator", "from": "Enforcer", "to": "Validator", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "leggen/api/dependencies/auth.py", "line": 30, "via": [] }, "recoveryResult": { "file": "leggen/api/dependencies/auth.py", "line": 30, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 1 of 1 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 2 roles both sides detected (Enforcer, Validator). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Hasher, Registrar, Token generator, Token manager. 4 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Validator", "Hasher", "Token manager" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 89, "annotated_at": "2026-08-11 08:04:34.777000" }, { "slug": "obscure_token_based_access_control__bluesky_tiled", "id": "obscure-token-ac/tiled/ClaudeCodeopus4.7", "pattern": "obscure_token_based_access_control", "repo": "bluesky_tiled", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": 3, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Validator", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "present", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Token manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.875, "drift": 0.125, "detail": { "aggregate": 0.875, "scoredRoles": 4, "skippedRoles": 2, "treeHeight": 6 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.8333, "distance": 2, "groundTruth": { "entity": "get_current_principal", "loc": "tiled/server/authentication.py:679\u2013754" }, "recoveryResult": { "entity": "check_scopes", "loc": "tiled/server/authentication.py:542" }, "note": "path-length (d=2)" }, { "patternRole": "Hasher", "score": 0.8333, "distance": 2, "groundTruth": { "entity": "digest", "loc": "tiled/authn_database/core.py:259" }, "recoveryResult": { "entity": "sha256", "loc": "tiled/authn_database/core.py:259" }, "note": "path-length (d=2)" }, { "patternRole": "Token manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "db", "loc": "tiled/authn_database/core.py:261" }, "recoveryResult": { "entity": "db", "loc": "tiled/authn_database/core.py:253" }, "note": "path-length (d=0)" }, { "patternRole": "Validator", "score": 0.8333, "distance": 2, "groundTruth": { "entity": "get_current_principal_from_api_key", "loc": "tiled/server/authentication.py:573\u2013617" }, "recoveryResult": { "entity": "get_scopes_from_api_key", "loc": "tiled/server/authentication.py:347" }, "note": "path-length (d=2)" } ], "notes": [ "Registrar: absent from the ground truth (Level 1 negative)", "Token generator: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Hasher", "Token manager", "Validator" ], "excludedRoles": [ "Registrar", "Token generator" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Validator", "from": "Enforcer", "to": "Validator", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "tiled/server/authentication.py", "line": 694, "via": [] }, "recoveryResult": { "file": "tiled/server/authentication.py", "line": 413, "via": [ "tiled/server/authentication.py:<module>.get_current_scopes" ] } } }, { "interaction": "Validator \u2192 Hasher", "from": "Validator", "to": "Hasher", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "tiled/authn_database/core.py", "line": 259, "via": [ "tiled/authn_database/core.py:<module>.lookup_valid_api_key" ] }, "recoveryResult": { "file": "tiled/authn_database/core.py", "line": 259, "via": [ "tiled/authn_database/core.py:<module>.lookup_valid_api_key" ] } } }, { "interaction": "Validator \u2192 Token manager", "from": "Validator", "to": "Token manager", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "tiled/authn_database/core.py", "line": 261, "via": [ "tiled/authn_database/core.py:<module>.lookup_valid_api_key" ] }, "recoveryResult": { "file": "tiled/authn_database/core.py", "line": 261, "via": [ "tiled/authn_database/core.py:<module>.lookup_valid_api_key" ] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 3 of 3 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 3 shared interactions, in each side's own relative order \u2014 0 of 3 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Scored over the 4 roles both sides detected (Enforcer, Hasher, Token manager, Validator). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Registrar, Token generator. 2 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Hasher cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Validator", "Hasher", "Token manager" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 308, "annotated_at": "2026-08-10 10:25:10.336000" }, { "slug": "obscure_token_based_access_control__Extralit_extralit", "id": "obscure-token-ac/extralit/ClaudeCodeopus4.7", "pattern": "obscure_token_based_access_control", "repo": "Extralit_extralit", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Validator", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Token manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.7273, "drift": 0.2727, "detail": { "aggregate": 0.7273, "scoredRoles": 3, "skippedRoles": 3, "treeHeight": 11 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.6818, "distance": 7, "groundTruth": { "entity": "authenticate", "loc": "extralit-server/src/extralit_server/security/authentication/db/api_key_backend.py:15" }, "recoveryResult": { "entity": "get_current_user", "loc": "extralit-server/src/extralit_server/security/authentication/provider.py:55" }, "note": "path-length (d=7)" }, { "patternRole": "Token manager", "score": 0.9091, "distance": 2, "groundTruth": { "entity": "db", "loc": "extralit-server/src/extralit_server/contexts/accounts.py:91" }, "recoveryResult": { "entity": "get_user_by_api_key", "loc": "extralit-server/src/extralit_server/contexts/accounts.py:90" }, "note": "path-length (d=2)" }, { "patternRole": "Validator", "score": 0.5909, "distance": 9, "groundTruth": { "entity": "get_user_by_api_key", "loc": "extralit-server/src/extralit_server/contexts/accounts.py:90" }, "recoveryResult": { "entity": "authenticate", "loc": "extralit-server/src/extralit_server/security/authentication/db/api_key_backend.py:15" }, "note": "path-length (d=9)" } ], "notes": [ "Hasher: absent from the ground truth (Level 1 negative)", "Registrar: absent from the ground truth (Level 1 negative)", "Token generator: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.0, "drift": 1.0, "detail": { "agreedRoles": [ "Enforcer", "Token manager", "Validator" ], "excludedRoles": [ "Hasher", "Registrar", "Token generator" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 0, "sharedInteractions": 0, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 2, "onlyRecoveryResult": 0, "interactionOverlap": 0.0, "orderAgreement": 0.0, "rankedInteractions": 0, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 3, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Validator", "from": "Enforcer", "to": "Validator", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "extralit-server/src/extralit_server/security/authentication/db/api_key_backend.py", "line": 22, "via": [] }, "recoveryResult": null } }, { "interaction": "Validator \u2192 Token manager", "from": "Validator", "to": "Token manager", "groundTruthRank": 2, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "extralit-server/src/extralit_server/contexts/accounts.py", "line": 91, "via": [] }, "recoveryResult": null } } ], "notes": [ "Score = overlap \u00d7 order = 0 \u00d7 0. Overlap: 0 of 2 interactions were found by both sides (2 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: 0 \u2014 the two sides share no interaction, so there is no common order to agree on.", "Scored over the 3 roles both sides detected (Enforcer, Token manager, Validator). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Hasher, Registrar, Token generator. 3 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Validator", "Hasher", "Token manager" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 732, "annotated_at": "2026-10-06 17:23:51.570000" }, { "slug": "obscure_token_based_access_control__adrian-lorenz_privacy-guard", "id": "obscure-token-ac/privacy-guard/ClaudeCodeopus4.7", "pattern": "obscure_token_based_access_control", "repo": "adrian-lorenz_privacy-guard", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": 3, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Validator", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "present", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Token manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.95, "drift": 0.05, "detail": { "aggregate": 0.95, "scoredRoles": 4, "skippedRoles": 2, "treeHeight": 5 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "verify_api_key", "loc": "api/main.py:36" }, "recoveryResult": { "entity": "verify_api_key", "loc": "api/main.py:36" }, "note": "path-length (d=0)" }, { "patternRole": "Hasher", "score": 1.0, "distance": 0, "groundTruth": { "entity": "hashlib.sha256", "loc": "api/db.py:197" }, "recoveryResult": { "entity": "sha256", "loc": "api/db.py:197" }, "note": "path-length (d=0)" }, { "patternRole": "Token manager", "score": 0.8, "distance": 2, "groundTruth": { "entity": "con", "loc": "api/db.py:198" }, "recoveryResult": { "entity": "_conn", "loc": "api/db.py:18" }, "note": "path-length (d=2)" }, { "patternRole": "Validator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "check_api_key", "loc": "api/db.py:195\u2013209" }, "recoveryResult": { "entity": "check_api_key", "loc": "api/db.py:195" }, "note": "path-length (d=0)" } ], "notes": [ "Registrar: absent from the ground truth (Level 1 negative)", "Token generator: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.6666666666666666, "drift": 0.33333333333333337, "detail": { "agreedRoles": [ "Enforcer", "Hasher", "Token manager", "Validator" ], "excludedRoles": [ "Registrar", "Token generator" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 3, "sharedInteractions": 2, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 1, "interactionOverlap": 0.6667, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Validator", "from": "Enforcer", "to": "Validator", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "api/main.py", "line": 44, "via": [] }, "recoveryResult": { "file": "api/main.py", "line": 44, "via": [] } } }, { "interaction": "Validator \u2192 Hasher", "from": "Validator", "to": "Hasher", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "api/db.py", "line": 197, "via": [] }, "recoveryResult": { "file": "api/db.py", "line": 197, "via": [] } } }, { "interaction": "Validator \u2192 Token manager", "from": "Validator", "to": "Token manager", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "api/db.py", "line": 198, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.6667 \u00d7 1. Overlap: 2 of 3 interactions were found by both sides (0 only in the ground truth, 1 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 4 roles both sides detected (Enforcer, Hasher, Token manager, Validator). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Registrar, Token generator. 2 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Hasher cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Validator", "Hasher", "Token manager" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 45, "annotated_at": "2026-08-10 09:04:47.082000" }, { "slug": "obscure_token_based_access_control__pavanad_beegen", "id": "obscure-token-ac/beegen/ClaudeCodeOpus5.5", "pattern": "obscure_token_based_access_control", "repo": "pavanad_beegen", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": 3, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Validator", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Token manager", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 2, "skippedRoles": 2, "treeHeight": 6 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "route", "loc": "beegen/services/mock.py:44" }, "recoveryResult": { "entity": "route", "loc": "beegen/services/mock.py:44" }, "note": "path-length (d=0)" }, { "patternRole": "Validator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "route", "loc": "beegen/services/mock.py:44" }, "recoveryResult": { "entity": "route", "loc": "beegen/services/mock.py:44" }, "note": "path-length (d=0)" } ], "notes": [ "Hasher: absent from the ground truth (Level 1 negative)", "Token manager: absent from the recovery result (Level 1 false negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Validator" ], "excludedRoles": [ "Hasher", "Token manager" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 1, "sharedInteractions": 1, "unionSize": 1, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 3, "prescribedStepsCovered": 1 }, "perRole": [ { "interaction": "Enforcer \u2192 Validator", "from": "Enforcer", "to": "Validator", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "beegen/services/mock.py", "line": 44, "via": [] }, "recoveryResult": { "file": "beegen/services/mock.py", "line": 44, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 1 of 1 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 2 roles both sides detected (Enforcer, Validator). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Hasher, Token manager. 2 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Validator", "Hasher", "Token manager" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 42, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "obscure_token_based_access_control__JeanExtreme002_Dokku-API", "id": "obscure-token-ac/dokku-api/ClaudeCodeopus4.7", "pattern": "obscure_token_based_access_control", "repo": "JeanExtreme002_Dokku-API", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": 3, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Validator", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Token manager", "groundTruth": "present", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.875, "drift": 0.125, "detail": { "aggregate": 0.875, "scoredRoles": 4, "skippedRoles": 2, "treeHeight": 6 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "dispatch", "loc": "src/api/middlewares/session.py:15" }, "recoveryResult": { "entity": "dispatch", "loc": "src/api/middlewares/session.py:15" }, "note": "path-length (d=0)" }, { "patternRole": "Hasher", "score": 1.0, "distance": 0, "groundTruth": { "entity": "hash_access_token", "loc": "src/api/tools/token.py:4" }, "recoveryResult": { "entity": "hash_access_token", "loc": "src/api/tools/token.py:4" }, "note": "path-length (d=0)" }, { "patternRole": "Token manager", "score": 0.5, "distance": 6, "groundTruth": { "entity": "db_session", "loc": "src/api/models/tools.py:97" }, "recoveryResult": { "entity": "db_session", "loc": "src/api/middlewares/session.py:27" }, "note": "path-length (d=6)" }, { "patternRole": "Validator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_user_by_access_token", "loc": "src/api/models/tools.py:89" }, "recoveryResult": { "entity": "get_user_by_access_token", "loc": "src/api/models/tools.py:89" }, "note": "path-length (d=0)" } ], "notes": [ "Registrar: absent from the recovery result (Level 1 false negative)", "Token generator: absent from the recovery result (Level 1 false negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.6666666666666666, "drift": 0.33333333333333337, "detail": { "agreedRoles": [ "Enforcer", "Hasher", "Token manager", "Validator" ], "excludedRoles": [ "Registrar", "Token generator" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 1, "onlyRecoveryResult": 0, "interactionOverlap": 0.6667, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Validator", "from": "Enforcer", "to": "Validator", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/api/middlewares/session.py", "line": 28, "via": [] }, "recoveryResult": { "file": "src/api/middlewares/session.py", "line": 28, "via": [] } } }, { "interaction": "Validator \u2192 Hasher", "from": "Validator", "to": "Hasher", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/api/models/tools.py", "line": 95, "via": [] }, "recoveryResult": { "file": "src/api/models/tools.py", "line": 95, "via": [] } } }, { "interaction": "Validator \u2192 Token manager", "from": "Validator", "to": "Token manager", "groundTruthRank": 3, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/api/models/tools.py", "line": 97, "via": [] }, "recoveryResult": null } } ], "notes": [ "Score = overlap \u00d7 order = 0.6667 \u00d7 1. Overlap: 2 of 3 interactions were found by both sides (1 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 4 roles both sides detected (Enforcer, Hasher, Token manager, Validator). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Registrar, Token generator. 2 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Validator", "Hasher", "Token manager" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 85, "annotated_at": "2026-10-06 21:48:07.146000" }, { "slug": "obscure_token_based_access_control__autonomi-ai_nos", "id": "obscure-token-ac/nos/ClaudeCodeOpus5.5", "pattern": "obscure_token_based_access_control", "repo": "autonomi-ai_nos", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Validator", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Token manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 3, "skippedRoles": 1, "treeHeight": 7 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "validate_m2m_key", "loc": "nos/server/http/_security.py:33" }, "recoveryResult": { "entity": "validate_m2m_key", "loc": "nos/server/http/_security.py:33" }, "note": "path-length (d=0)" }, { "patternRole": "Token manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "valid_m2m_keys", "loc": "nos/server/http/_security.py:9" }, "recoveryResult": { "entity": "valid_m2m_keys", "loc": "nos/server/http/_security.py:9" }, "note": "path-length (d=0)" }, { "patternRole": "Validator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "validate_m2m_key", "loc": "nos/server/http/_security.py:33" }, "recoveryResult": { "entity": "validate_m2m_key", "loc": "nos/server/http/_security.py:33" }, "note": "path-length (d=0)" } ], "notes": [ "Hasher: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Token manager", "Validator" ], "excludedRoles": [ "Hasher" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 1, "sharedInteractions": 1, "unionSize": 1, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 3, "prescribedStepsCovered": 1 }, "perRole": [ { "interaction": "Enforcer \u2192 Validator", "from": "Enforcer", "to": "Validator", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "nos/server/http/_security.py", "line": 33, "via": [] }, "recoveryResult": { "file": "nos/server/http/_security.py", "line": 33, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 1 of 1 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 3 roles both sides detected (Enforcer, Token manager, Validator). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected it: Hasher. 1 role was excluded from both walks, so neither side's ordering mentions it. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Validator", "Hasher", "Token manager" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 149, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "verifiable_token_based_authentication__Chainlit_chainlit", "id": "token-based/chainlit/ClaudeCodeopus4.7", "pattern": "verifiable_token_based_authentication", "repo": "Chainlit_chainlit", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Key manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Cryptographer", "groundTruth": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.8393, "drift": 0.1607, "detail": { "aggregate": 0.8393, "scoredRoles": 4, "skippedRoles": 2, "treeHeight": 7 }, "perRole": [ { "patternRole": "Cryptographer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "decode", "loc": "backend/chainlit/auth/jwt.py:35" }, "recoveryResult": { "entity": "decode", "loc": "backend/chainlit/auth/jwt.py:35" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 0.6429, "distance": 5, "groundTruth": { "entity": "_authenticate_connection", "loc": "backend/chainlit/socket.py:133\u2013141" }, "recoveryResult": { "entity": "get_current_user", "loc": "backend/chainlit/auth/__init__.py:86" }, "note": "path-length (d=5)" }, { "patternRole": "Key manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_jwt_secret", "loc": "backend/chainlit/auth/jwt.py:11\u201312" }, "recoveryResult": { "entity": "get_jwt_secret", "loc": "backend/chainlit/auth/jwt.py:11" }, "note": "path-length (d=0)" }, { "patternRole": "Verifier", "score": 0.7143, "distance": 4, "groundTruth": { "entity": "authenticate_user", "loc": "backend/chainlit/auth/__init__.py:58" }, "recoveryResult": { "entity": "decode_jwt", "loc": "backend/chainlit/auth/jwt.py:31" }, "note": "path-length (d=4)" } ], "notes": [ "Registrar: absent from the recovery result (Level 1 false negative)", "Token generator: absent from the recovery result (Level 1 false negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [ "Registrar", "Token generator" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "backend/chainlit/auth/__init__.py", "line": 90, "via": [ "backend/chainlit/auth/__init__.py:<module>.get_current_user" ] }, "recoveryResult": { "file": "backend/chainlit/auth/__init__.py", "line": 60, "via": [ "backend/chainlit/auth/__init__.py:<module>.authenticate_user" ] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "backend/chainlit/auth/jwt.py", "line": 32, "via": [ "backend/chainlit/auth/jwt.py:<module>.decode_jwt" ] }, "recoveryResult": { "file": "backend/chainlit/auth/jwt.py", "line": 32, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "backend/chainlit/auth/jwt.py", "line": 35, "via": [ "backend/chainlit/auth/jwt.py:<module>.decode_jwt" ] }, "recoveryResult": { "file": "backend/chainlit/auth/jwt.py", "line": 35, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 3 of 3 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 3 shared interactions, in each side's own relative order \u2014 0 of 3 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Scored over the 4 roles both sides detected (Cryptographer, Enforcer, Key manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Registrar, Token generator. 2 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Cryptographer cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Verifier", "Key manager", "Cryptographer" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 169, "annotated_at": "2026-08-06 09:00:07.327000" }, { "slug": "verifiable_token_based_authentication__ddeutils_ddeutil-observe", "id": "token-based/ddeutil-observe/ClaudeCodeopus4.7", "pattern": "verifiable_token_based_authentication", "repo": "ddeutils_ddeutil-observe", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": 3, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Key manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Cryptographer", "groundTruth": "present", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.875, "drift": 0.125, "detail": { "aggregate": 0.875, "scoredRoles": 4, "skippedRoles": 2, "treeHeight": 6 }, "perRole": [ { "patternRole": "Cryptographer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "decode", "loc": "src/ddeutil/observe/auth/securities.py:137" }, "recoveryResult": { "entity": "decode", "loc": "src/ddeutil/observe/auth/securities.py:137" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_current_user", "loc": "src/ddeutil/observe/auth/deps.py:39\u201372" }, "recoveryResult": { "entity": "get_current_user", "loc": "src/ddeutil/observe/auth/deps.py:39" }, "note": "path-length (d=0)" }, { "patternRole": "Key manager", "score": 0.5, "distance": 6, "groundTruth": { "entity": "config", "loc": "src/ddeutil/observe/auth/securities.py:17" }, "recoveryResult": { "entity": "secret_key", "loc": "src/ddeutil/observe/conf.py:81" }, "note": "path-length (d=6)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "verify_access_token", "loc": "src/ddeutil/observe/auth/crud.py:187" }, "recoveryResult": { "entity": "verify_access_token", "loc": "src/ddeutil/observe/auth/crud.py:187" }, "note": "path-length (d=0)" } ], "notes": [ "Registrar: absent from the recovery result (Level 1 false negative)", "Token generator: absent from the recovery result (Level 1 false negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [ "Registrar", "Token generator" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/ddeutil/observe/auth/deps.py", "line": 55, "via": [] }, "recoveryResult": { "file": "src/ddeutil/observe/auth/deps.py", "line": 55, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/ddeutil/observe/auth/securities.py", "line": 137, "via": [ "src/ddeutil/observe/auth/securities.py:<module>.decode_access_token" ] }, "recoveryResult": { "file": "src/ddeutil/observe/auth/securities.py", "line": 137, "via": [ "src/ddeutil/observe/auth/securities.py:<module>.decode_access_token" ] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 2 of 2 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 4 roles both sides detected (Cryptographer, Enforcer, Key manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Registrar, Token generator. 2 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Cryptographer cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Verifier", "Key manager", "Cryptographer" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 60, "annotated_at": "2026-08-11 09:34:44.397000" }, { "slug": "verifiable_token_based_authentication__freqtrade_freqtrade", "id": "token-based/freqtrade/ClaudeCodeopus4.7", "pattern": "verifiable_token_based_authentication", "repo": "freqtrade_freqtrade", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Key manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Cryptographer", "groundTruth": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 4, "skippedRoles": 2, "treeHeight": 7 }, "perRole": [ { "patternRole": "Cryptographer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "decode", "loc": "freqtrade/rpc/api_server/api_auth.py:42" }, "recoveryResult": { "entity": "decode", "loc": "freqtrade/rpc/api_server/api_auth.py:41" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "http_basic_or_jwt_token", "loc": "freqtrade/rpc/api_server/api_auth.py:109" }, "recoveryResult": { "entity": "http_basic_or_jwt_token", "loc": "freqtrade/rpc/api_server/api_auth.py:108" }, "note": "path-length (d=0)" }, { "patternRole": "Key manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_api_config", "loc": "freqtrade/rpc/api_server/deps.py:43\u201344" }, "recoveryResult": { "entity": "get_api_config", "loc": "freqtrade/rpc/api_server/deps.py:43" }, "note": "path-length (d=0)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_user_from_token", "loc": "freqtrade/rpc/api_server/api_auth.py:35" }, "recoveryResult": { "entity": "get_user_from_token", "loc": "freqtrade/rpc/api_server/api_auth.py:34" }, "note": "path-length (d=0)" } ], "notes": [ "Registrar: absent from the ground truth (Level 1 negative)", "Token generator: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [ "Registrar", "Token generator" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Key manager", "from": "Enforcer", "to": "Key manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "freqtrade/rpc/api_server/api_auth.py", "line": 108, "via": [] }, "recoveryResult": { "file": "freqtrade/rpc/api_server/api_auth.py", "line": 108, "via": [] } } }, { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "freqtrade/rpc/api_server/api_auth.py", "line": 114, "via": [] }, "recoveryResult": { "file": "freqtrade/rpc/api_server/api_auth.py", "line": 114, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "freqtrade/rpc/api_server/api_auth.py", "line": 41, "via": [] }, "recoveryResult": { "file": "freqtrade/rpc/api_server/api_auth.py", "line": 41, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 3 of 3 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 3 shared interactions, in each side's own relative order \u2014 0 of 3 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Scored over the 4 roles both sides detected (Cryptographer, Enforcer, Key manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Registrar, Token generator. 2 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Cryptographer cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Verifier", "Key manager", "Cryptographer" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 483, "annotated_at": "2026-08-13 14:29:58.104000" }, { "slug": "verifiable_token_based_authentication__Echo298327_auth-gateway-serverkit", "id": "token-based/auth-gateway-serverkit/ClaudeCodeopus4.7", "pattern": "verifiable_token_based_authentication", "repo": "Echo298327_auth-gateway-serverkit", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Key manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Cryptographer", "groundTruth": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.95, "drift": 0.05, "detail": { "aggregate": 0.95, "scoredRoles": 4, "skippedRoles": 2, "treeHeight": 5 }, "perRole": [ { "patternRole": "Cryptographer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "decode", "loc": "src/auth_gateway_serverkit/middleware/auth.py:49" }, "recoveryResult": { "entity": "decode", "loc": "src/auth_gateway_serverkit/middleware/auth.py:49" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 0.8, "distance": 2, "groundTruth": { "entity": "auth", "loc": "src/auth_gateway_serverkit/middleware/auth.py:147\u2013181" }, "recoveryResult": { "entity": "wrapper", "loc": "src/auth_gateway_serverkit/middleware/auth.py:150" }, "note": "path-length (d=2)" }, { "patternRole": "Key manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_idp_public_key", "loc": "src/auth_gateway_serverkit/middleware/auth.py:29" }, "recoveryResult": { "entity": "get_idp_public_key", "loc": "src/auth_gateway_serverkit/middleware/auth.py:29" }, "note": "path-length (d=0)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_payload", "loc": "src/auth_gateway_serverkit/middleware/auth.py:38" }, "recoveryResult": { "entity": "get_payload", "loc": "src/auth_gateway_serverkit/middleware/auth.py:38" }, "note": "path-length (d=0)" } ], "notes": [ "Registrar: absent from the ground truth (Level 1 negative)", "Token generator: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [ "Registrar", "Token generator" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/auth_gateway_serverkit/middleware/auth.py", "line": 92, "via": [ "src/auth_gateway_serverkit/middleware/auth.py:<module>.auth.decorator", "src/auth_gateway_serverkit/middleware/auth.py:<module>.auth.decorator.wrapper", "src/auth_gateway_serverkit/middleware/auth.py:<module>.get_user_info" ] }, "recoveryResult": { "file": "src/auth_gateway_serverkit/middleware/auth.py", "line": 92, "via": [ "src/auth_gateway_serverkit/middleware/auth.py:<module>.get_user_info" ] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/auth_gateway_serverkit/middleware/auth.py", "line": 46, "via": [] }, "recoveryResult": { "file": "src/auth_gateway_serverkit/middleware/auth.py", "line": 46, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/auth_gateway_serverkit/middleware/auth.py", "line": 49, "via": [] }, "recoveryResult": { "file": "src/auth_gateway_serverkit/middleware/auth.py", "line": 49, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 3 of 3 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 3 shared interactions, in each side's own relative order \u2014 0 of 3 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Scored over the 4 roles both sides detected (Cryptographer, Enforcer, Key manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Registrar, Token generator. 2 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Cryptographer cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Verifier", "Key manager", "Cryptographer" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 28, "annotated_at": "2026-08-13 13:21:53.091000" }, { "slug": "verifiable_token_based_authentication__inteliver_inteliver", "id": "token-based/inteliver/ClaudeCodeopus4.7", "pattern": "verifiable_token_based_authentication", "repo": "inteliver_inteliver", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Key manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Cryptographer", "groundTruth": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.825, "drift": 0.175, "detail": { "aggregate": 0.825, "scoredRoles": 4, "skippedRoles": 2, "treeHeight": 5 }, "perRole": [ { "patternRole": "Cryptographer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "decode", "loc": "src/inteliver/auth/service.py:323" }, "recoveryResult": { "entity": "decode", "loc": "src/inteliver/auth/service.py:346" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 0.7, "distance": 3, "groundTruth": { "entity": "get_current_user", "loc": "src/inteliver/auth/service.py:364\u2013366" }, "recoveryResult": { "entity": "role_checker", "loc": "src/inteliver/auth/service.py:383" }, "note": "path-length (d=3)" }, { "patternRole": "Key manager", "score": 0.6, "distance": 4, "groundTruth": { "entity": "SECRET_KEY", "loc": "src/inteliver/auth/service.py:346" }, "recoveryResult": { "entity": "SECRET_KEY", "loc": "src/inteliver/auth/constants.py:3" }, "note": "path-length (d=4)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "decode_access_token", "loc": "src/inteliver/auth/service.py:331\u2013362" }, "recoveryResult": { "entity": "decode_access_token", "loc": "src/inteliver/auth/service.py:332" }, "note": "path-length (d=0)" } ], "notes": [ "Registrar: absent from the ground truth (Level 1 negative)", "Token generator: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.5, "drift": 0.5, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [ "Registrar", "Token generator" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 2, "sharedInteractions": 1, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 1, "interactionOverlap": 0.5, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 3, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/inteliver/auth/service.py", "line": 366, "via": [] }, "recoveryResult": { "file": "src/inteliver/auth/service.py", "line": 366, "via": [ "src/inteliver/auth/service.py:<module>.AuthService.get_current_user" ] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "src/inteliver/auth/service.py", "line": 346, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.5 \u00d7 1. Overlap: 1 of 2 interactions were found by both sides (0 only in the ground truth, 1 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 4 roles both sides detected (Cryptographer, Enforcer, Key manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Registrar, Token generator. 2 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Cryptographer cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Verifier", "Key manager", "Cryptographer" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Registrar", "Subject", "System", "Token generator" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 71, "annotated_at": "2026-08-13 14:33:41.426000" }, { "slug": "verifiable_token_based_authentication__amphetamarina_litellm", "id": "token-based/amphetamarina_litellm/ClaudeCodeOpus5.5", "pattern": "verifiable_token_based_authentication", "repo": "amphetamarina_litellm", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Key manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Cryptographer", "groundTruth": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 8 }, "perRole": [ { "patternRole": "Cryptographer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "decode", "loc": "litellm/proxy/auth/handle_jwt.py:453" }, "recoveryResult": { "entity": "decode", "loc": "litellm/proxy/auth/handle_jwt.py:453" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "user_api_key_auth", "loc": "litellm/proxy/auth/user_api_key_auth.py:1085" }, "recoveryResult": { "entity": "user_api_key_auth", "loc": "litellm/proxy/auth/user_api_key_auth.py:1085" }, "note": "path-length (d=0)" }, { "patternRole": "Key manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_public_key", "loc": "litellm/proxy/auth/handle_jwt.py:343" }, "recoveryResult": { "entity": "get_public_key", "loc": "litellm/proxy/auth/handle_jwt.py:343" }, "note": "path-length (d=0)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "auth_jwt", "loc": "litellm/proxy/auth/handle_jwt.py:416" }, "recoveryResult": { "entity": "auth_jwt", "loc": "litellm/proxy/auth/handle_jwt.py:416" }, "note": "path-length (d=0)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "litellm/proxy/auth/handle_jwt.py", "line": 913, "via": [ "litellm/proxy/auth/user_api_key_auth.py:<module>._user_api_key_auth_builder", "litellm/proxy/auth/handle_jwt.py:<module>.JWTAuthManager.auth_builder" ] }, "recoveryResult": { "file": "litellm/proxy/auth/handle_jwt.py", "line": 913, "via": [ "litellm/proxy/auth/user_api_key_auth.py:<module>._user_api_key_auth_builder", "litellm/proxy/auth/handle_jwt.py:<module>.JWTAuthManager.auth_builder" ] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "litellm/proxy/auth/handle_jwt.py", "line": 436, "via": [] }, "recoveryResult": { "file": "litellm/proxy/auth/handle_jwt.py", "line": 436, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "litellm/proxy/auth/handle_jwt.py", "line": 453, "via": [] }, "recoveryResult": { "file": "litellm/proxy/auth/handle_jwt.py", "line": 453, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 3 of 3 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 3 shared interactions, in each side's own relative order \u2014 0 of 3 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Scored over the 4 roles both sides detected (Cryptographer, Enforcer, Key manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Cryptographer cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Verifier", "Key manager", "Cryptographer" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 1467, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "verifiable_token_based_authentication__SINTEF-9012_SINDIT20", "id": "token-based/SINDIT20/ClaudeCodeOpus5.5", "pattern": "verifiable_token_based_authentication", "repo": "SINTEF-9012_SINDIT20", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Key manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Cryptographer", "groundTruth": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.9107, "drift": 0.0893, "detail": { "aggregate": 0.9107, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 7 }, "perRole": [ { "patternRole": "Cryptographer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "decode", "loc": "src/sindit/authentication/in_memory.py:125" }, "recoveryResult": { "entity": "decode", "loc": "src/sindit/authentication/in_memory.py:125" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 0.8571, "distance": 2, "groundTruth": { "entity": "get_current_user", "loc": "src/sindit/api/authentication_endpoints.py:21" }, "recoveryResult": { "entity": "get_current_active_user", "loc": "src/sindit/api/authentication_endpoints.py:25" }, "note": "path-length (d=2)" }, { "patternRole": "Key manager", "score": 0.7857, "distance": 3, "groundTruth": { "entity": "__init__", "loc": "src/sindit/authentication/in_memory.py:19" }, "recoveryResult": { "entity": "SECRET_KEY", "loc": "src/sindit/authentication/in_memory.py:20" }, "note": "path-length (d=3)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "verify_token", "loc": "src/sindit/authentication/in_memory.py:118" }, "recoveryResult": { "entity": "verify_token", "loc": "src/sindit/authentication/in_memory.py:118" }, "note": "path-length (d=0)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.0, "drift": 1.0, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 0, "sharedInteractions": 0, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 2, "onlyRecoveryResult": 0, "interactionOverlap": 0.0, "orderAgreement": 0.0, "rankedInteractions": 0, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 3, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/sindit/api/authentication_endpoints.py", "line": 22, "via": [] }, "recoveryResult": null } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 2, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/sindit/authentication/in_memory.py", "line": 125, "via": [] }, "recoveryResult": null } } ], "notes": [ "Score = overlap \u00d7 order = 0 \u00d7 0. Overlap: 0 of 2 interactions were found by both sides (2 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: 0 \u2014 the two sides share no interaction, so there is no common order to agree on.", "Scored over the 4 roles both sides detected (Cryptographer, Enforcer, Key manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Cryptographer cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Verifier", "Key manager", "Cryptographer" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 65, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "verifiable_token_based_authentication__sargsyanhayko_rsha_auth", "id": "token-based/rsha_auth/ClaudeCodeOpus5.5", "pattern": "verifiable_token_based_authentication", "repo": "sargsyanhayko_rsha_auth", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Key manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Cryptographer", "groundTruth": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.8333, "drift": 0.1667, "detail": { "aggregate": 0.8333, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 3 }, "perRole": [ { "patternRole": "Cryptographer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "decode", "loc": "src/auth_rsha/jwt.py:23" }, "recoveryResult": { "entity": "decode", "loc": "src/auth_rsha/jwt.py:23" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "current_user", "loc": "src/auth_rsha/deps.py:16" }, "recoveryResult": { "entity": "current_user", "loc": "src/auth_rsha/deps.py:16" }, "note": "path-length (d=0)" }, { "patternRole": "Key manager", "score": 0.3333, "distance": 4, "groundTruth": { "entity": "jwt_secret", "loc": "src/auth_rsha/config.py:6" }, "recoveryResult": { "entity": "settings", "loc": "src/auth_rsha/jwt.py:21" }, "note": "path-length (d=4)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "decode_token", "loc": "src/auth_rsha/jwt.py:21" }, "recoveryResult": { "entity": "decode_token", "loc": "src/auth_rsha/jwt.py:21" }, "note": "path-length (d=0)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.6666666666666666, "drift": 0.33333333333333337, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 3, "sharedInteractions": 2, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 1, "interactionOverlap": 0.6667, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/auth_rsha/deps.py", "line": 18, "via": [] }, "recoveryResult": { "file": "src/auth_rsha/deps.py", "line": 18, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 2, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/auth_rsha/jwt.py", "line": 23, "via": [] }, "recoveryResult": { "file": "src/auth_rsha/jwt.py", "line": 23, "via": [] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "src/auth_rsha/jwt.py", "line": 25, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.6667 \u00d7 1. Overlap: 2 of 3 interactions were found by both sides (0 only in the ground truth, 1 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 4 roles both sides detected (Cryptographer, Enforcer, Key manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Cryptographer cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Verifier", "Key manager", "Cryptographer" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 9, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "verifiable_token_based_authentication__beanone_apikey", "id": "token-based/apikey/ClaudeCodeOpus5.5", "pattern": "verifiable_token_based_authentication", "repo": "beanone_apikey", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Key manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Cryptographer", "groundTruth": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 5 }, "perRole": [ { "patternRole": "Cryptographer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "decode", "loc": "src/apikey/dependencies.py:74" }, "recoveryResult": { "entity": "decode", "loc": "src/apikey/dependencies.py:74" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_current_user", "loc": "src/apikey/dependencies.py:153" }, "recoveryResult": { "entity": "get_current_user", "loc": "src/apikey/dependencies.py:153" }, "note": "path-length (d=0)" }, { "patternRole": "Key manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "JWT_SECRET", "loc": "src/apikey/dependencies.py:55" }, "recoveryResult": { "entity": "JWT_SECRET", "loc": "src/apikey/dependencies.py:55" }, "note": "path-length (d=0)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "validate_jwt", "loc": "src/apikey/dependencies.py:70" }, "recoveryResult": { "entity": "validate_jwt", "loc": "src/apikey/dependencies.py:70" }, "note": "path-length (d=0)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/apikey/dependencies.py", "line": 170, "via": [] }, "recoveryResult": { "file": "src/apikey/dependencies.py", "line": 170, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/apikey/dependencies.py", "line": 74, "via": [] }, "recoveryResult": { "file": "src/apikey/dependencies.py", "line": 74, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 2 of 2 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 4 roles both sides detected (Cryptographer, Enforcer, Key manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Cryptographer cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Verifier", "Key manager", "Cryptographer" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 19, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "verifiable_token_based_authentication__Lampx83_LakeFlow", "id": "token-based/Lampx83_LakeFlow/ClaudeCodeOpus5.5", "pattern": "verifiable_token_based_authentication", "repo": "Lampx83_LakeFlow", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Key manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Cryptographer", "groundTruth": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 8 }, "perRole": [ { "patternRole": "Cryptographer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "decode", "loc": "backend/src/lakeflow/core/auth.py:24" }, "recoveryResult": { "entity": "decode", "loc": "backend/src/lakeflow/core/auth.py:24" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "verify_token", "loc": "backend/src/lakeflow/core/auth.py:15" }, "recoveryResult": { "entity": "verify_token", "loc": "backend/src/lakeflow/core/auth.py:15" }, "note": "path-length (d=0)" }, { "patternRole": "Key manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "JWT_SECRET_KEY", "loc": "backend/src/lakeflow/core/config.py:26" }, "recoveryResult": { "entity": "JWT_SECRET_KEY", "loc": "backend/src/lakeflow/core/config.py:26" }, "note": "path-length (d=0)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "verify_token", "loc": "backend/src/lakeflow/core/auth.py:15" }, "recoveryResult": { "entity": "verify_token", "loc": "backend/src/lakeflow/core/auth.py:15" }, "note": "path-length (d=0)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "backend/src/lakeflow/core/auth.py", "line": 15, "via": [] }, "recoveryResult": { "file": "backend/src/lakeflow/core/auth.py", "line": 15, "via": [] } } }, { "interaction": "Enforcer \u2192 Cryptographer", "from": "Enforcer", "to": "Cryptographer", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "backend/src/lakeflow/core/auth.py", "line": 24, "via": [] }, "recoveryResult": { "file": "backend/src/lakeflow/core/auth.py", "line": 24, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "backend/src/lakeflow/core/auth.py", "line": 24, "via": [] }, "recoveryResult": { "file": "backend/src/lakeflow/core/auth.py", "line": 24, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 3 of 3 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 3 shared interactions, in each side's own relative order \u2014 0 of 3 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Scored over the 4 roles both sides detected (Cryptographer, Enforcer, Key manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Cryptographer cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Verifier", "Key manager", "Cryptographer" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 113, "annotated_at": "2026-10-06 09:53:55.047000" }, { "slug": "limit_request_rate__tumma72_mlx-manager", "id": "rate-limit/tumma72_mlx-manager/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "tumma72_mlx-manager", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.5, "drift": 0.5, "detail": { "agreedRoles": 2, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Limiter", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "HistoryProvider", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "PolicyProvider", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 2, "skippedRoles": 2, "treeHeight": 8 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "dispatch", "loc": "backend/mlx_manager/mlx_server/middleware/rate_limit.py:110" }, "recoveryResult": { "entity": "dispatch", "loc": "backend/mlx_manager/mlx_server/middleware/rate_limit.py:110" }, "note": "path-length (d=0)" }, { "patternRole": "Limiter", "score": 1.0, "distance": 0, "groundTruth": { "entity": "consume", "loc": "backend/mlx_manager/mlx_server/middleware/rate_limit.py:39" }, "recoveryResult": { "entity": "consume", "loc": "backend/mlx_manager/mlx_server/middleware/rate_limit.py:39" }, "note": "path-length (d=0)" } ], "notes": [ "HistoryProvider: absent from the recovery result (Level 1 false negative)", "PolicyProvider: absent from the recovery result (Level 1 false negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "Limiter" ], "excludedRoles": [ "HistoryProvider", "PolicyProvider" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 1, "sharedInteractions": 1, "unionSize": 1, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 4, "prescribedStepsCovered": 1 }, "perRole": [ { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "backend/mlx_manager/mlx_server/middleware/rate_limit.py", "line": 121, "via": [] }, "recoveryResult": { "file": "backend/mlx_manager/mlx_server/middleware/rate_limit.py", "line": 121, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 1 of 1 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 2 roles both sides detected (Enforcer, Limiter). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: HistoryProvider, PolicyProvider. 2 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Limiter", "HistoryProvider", "PolicyProvider" ], "role_scope": "required", "excluded_roles": [ "Entity", "System" ], "dropped_ground_truth_rows": [ "Entity", "System" ], "dropped_recovery_rows": [ "Entity", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 282, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "limit_request_rate__luxman89_TradeArena", "id": "rate-limit/luxman89_TradeArena/ClaudeCodeOpus5.0", "pattern": "limit_request_rate", "repo": "luxman89_TradeArena", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": 3, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Limiter", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "HistoryProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "PolicyProvider", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.9444, "drift": 0.0556, "detail": { "aggregate": 0.9444, "scoredRoles": 3, "skippedRoles": 1, "treeHeight": 6 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "dispatch", "loc": "src/tradearena/api/rate_limit.py:150" }, "recoveryResult": { "entity": "dispatch", "loc": "src/tradearena/api/rate_limit.py:150" }, "note": "path-length (d=0)" }, { "patternRole": "HistoryProvider", "score": 0.8333, "distance": 2, "groundTruth": { "entity": "_redis_check", "loc": "src/tradearena/api/rate_limit.py:65" }, "recoveryResult": { "entity": "_hits", "loc": "src/tradearena/api/rate_limit.py:123" }, "note": "path-length (d=2)" }, { "patternRole": "Limiter", "score": 1.0, "distance": 0, "groundTruth": { "entity": "_check", "loc": "src/tradearena/api/rate_limit.py:127" }, "recoveryResult": { "entity": "_check", "loc": "src/tradearena/api/rate_limit.py:127" }, "note": "path-length (d=0)" } ], "notes": [ "PolicyProvider: absent from the recovery result (Level 1 false negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.3333333333333333, "drift": 0.6666666666666667, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter" ], "excludedRoles": [ "PolicyProvider" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 1, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 1, "onlyRecoveryResult": 1, "interactionOverlap": 0.3333, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 4, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/tradearena/api/rate_limit.py", "line": 159, "via": [] }, "recoveryResult": { "file": "src/tradearena/api/rate_limit.py", "line": 159, "via": [] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": 2, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/tradearena/api/rate_limit.py", "line": 139, "via": [] }, "recoveryResult": null } }, { "interaction": "Enforcer \u2192 HistoryProvider", "from": "Enforcer", "to": "HistoryProvider", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "src/tradearena/api/rate_limit.py", "line": 189, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.3333 \u00d7 1. Overlap: 1 of 3 interactions were found by both sides (1 only in the ground truth, 1 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 3 roles both sides detected (Enforcer, HistoryProvider, Limiter). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected it: PolicyProvider. 1 role was excluded from both walks, so neither side's ordering mentions it. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Limiter", "HistoryProvider", "PolicyProvider" ], "role_scope": "required", "excluded_roles": [ "Entity", "System" ], "dropped_ground_truth_rows": [ "Entity", "System" ], "dropped_recovery_rows": [ "Entity", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 149, "annotated_at": "2026-08-22 09:09:45.666000" }, { "slug": "limit_request_rate__stateset_stateset-agents", "id": "rate-limit/stateset_stateset-agents/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "stateset_stateset-agents", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Limiter", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "HistoryProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "PolicyProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.9375, "drift": 0.0625, "detail": { "aggregate": 0.9375, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 6 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "dispatch", "loc": "stateset_agents/api/middleware.py:494" }, "recoveryResult": { "entity": "dispatch", "loc": "stateset_agents/api/middleware.py:494" }, "note": "path-length (d=0)" }, { "patternRole": "HistoryProvider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "_windows", "loc": "stateset_agents/api/rate_limiter.py:49" }, "recoveryResult": { "entity": "_windows", "loc": "stateset_agents/api/rate_limiter.py:49" }, "note": "path-length (d=0)" }, { "patternRole": "Limiter", "score": 1.0, "distance": 0, "groundTruth": { "entity": "check", "loc": "stateset_agents/api/rate_limiter.py:56" }, "recoveryResult": { "entity": "check", "loc": "stateset_agents/api/rate_limiter.py:56" }, "note": "path-length (d=0)" }, { "patternRole": "PolicyProvider", "score": 0.75, "distance": 3, "groundTruth": { "entity": "from_env", "loc": "stateset_agents/api/config.py:204" }, "recoveryResult": { "entity": "get_config", "loc": "stateset_agents/api/config.py:406" }, "note": "path-length (d=3)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter", "PolicyProvider" ], "excludedRoles": [], "interactionsGroundTruth": 4, "interactionsRecoveryResult": 4, "sharedInteractions": 4, "unionSize": 4, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 4, "totalPairs": 6, "concordantPairs": 6, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 4, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 PolicyProvider", "from": "Enforcer", "to": "PolicyProvider", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "stateset_agents/api/config.py", "line": 361, "via": [ "stateset_agents/api/config.py:<module>.get_config", "stateset_agents/api/config.py:<module>.APIConfig.from_env" ] }, "recoveryResult": { "file": "stateset_agents/api/middleware.py", "line": 495, "via": [] } } }, { "interaction": "Enforcer \u2192 HistoryProvider", "from": "Enforcer", "to": "HistoryProvider", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "stateset_agents/api/rate_limiter.py", "line": 166, "via": [ "stateset_agents/api/rate_limiter.py:<module>.UnifiedRateLimiter.cleanup" ] }, "recoveryResult": { "file": "stateset_agents/api/rate_limiter.py", "line": 166, "via": [ "stateset_agents/api/rate_limiter.py:<module>.UnifiedRateLimiter.cleanup" ] } } }, { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "stateset_agents/api/rate_limiter.py", "line": 125, "via": [ "stateset_agents/api/middleware.py:<module>.RateLimitMiddleware._check_rate_limit", "stateset_agents/api/rate_limiter.py:<module>.UnifiedRateLimiter.is_allowed" ] }, "recoveryResult": { "file": "stateset_agents/api/rate_limiter.py", "line": 125, "via": [ "stateset_agents/api/middleware.py:<module>.RateLimitMiddleware._check_rate_limit", "stateset_agents/api/rate_limiter.py:<module>.UnifiedRateLimiter.is_allowed" ] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": 4, "recoveryResultRank": 4, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "stateset_agents/api/rate_limiter.py", "line": 68, "via": [] }, "recoveryResult": { "file": "stateset_agents/api/rate_limiter.py", "line": 68, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 4 of 4 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 4 shared interactions, in each side's own relative order \u2014 0 of 6 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Scored over the 4 roles both sides detected (Enforcer, HistoryProvider, Limiter, PolicyProvider). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Limiter", "HistoryProvider", "PolicyProvider" ], "role_scope": "required", "excluded_roles": [ "Entity", "System" ], "dropped_ground_truth_rows": [ "Entity", "System" ], "dropped_recovery_rows": [ "Entity", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 805, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "limit_request_rate__dchrnv_neurograph", "id": "rate-limit/dchrnv_neurograph/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "dchrnv_neurograph", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Limiter", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "HistoryProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "PolicyProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.875, "drift": 0.125, "detail": { "aggregate": 0.875, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 6 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "dispatch", "loc": "src/api/middlewares/rate_limit.py:178" }, "recoveryResult": { "entity": "dispatch", "loc": "src/api/middlewares/rate_limit.py:178" }, "note": "path-length (d=0)" }, { "patternRole": "HistoryProvider", "score": 0.75, "distance": 3, "groundTruth": { "entity": "get_bucket", "loc": "src/api/middlewares/rate_limit.py:133" }, "recoveryResult": { "entity": "tokens", "loc": "src/api/middlewares/rate_limit.py:33" }, "note": "path-length (d=3)" }, { "patternRole": "Limiter", "score": 1.0, "distance": 0, "groundTruth": { "entity": "consume", "loc": "src/api/middlewares/rate_limit.py:37" }, "recoveryResult": { "entity": "consume", "loc": "src/api/middlewares/rate_limit.py:37" }, "note": "path-length (d=0)" }, { "patternRole": "PolicyProvider", "score": 0.75, "distance": 3, "groundTruth": { "entity": "get_bucket", "loc": "src/api/middlewares/rate_limit.py:133" }, "recoveryResult": { "entity": "capacity", "loc": "src/api/middlewares/rate_limit.py:32" }, "note": "path-length (d=3)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.6, "drift": 0.4, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter", "PolicyProvider" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 5, "sharedInteractions": 3, "unionSize": 5, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 2, "interactionOverlap": 0.6, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 4, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 PolicyProvider", "from": "Enforcer", "to": "PolicyProvider", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/api/middlewares/rate_limit.py", "line": 188, "via": [] }, "recoveryResult": { "file": "src/api/middlewares/rate_limit.py", "line": 32, "via": [ "src/api/middlewares/rate_limit.py:<module>.RateLimitMiddleware.get_bucket", "src/api/middlewares/rate_limit.py:<module>.TokenBucket.__init__" ] } } }, { "interaction": "Enforcer \u2192 HistoryProvider", "from": "Enforcer", "to": "HistoryProvider", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/api/middlewares/rate_limit.py", "line": 188, "via": [] }, "recoveryResult": { "file": "src/api/middlewares/rate_limit.py", "line": 33, "via": [ "src/api/middlewares/rate_limit.py:<module>.RateLimitMiddleware.get_bucket", "src/api/middlewares/rate_limit.py:<module>.TokenBucket.__init__" ] } } }, { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/api/middlewares/rate_limit.py", "line": 191, "via": [] }, "recoveryResult": { "file": "src/api/middlewares/rate_limit.py", "line": 191, "via": [] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": null, "recoveryResultRank": 4, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "src/api/middlewares/rate_limit.py", "line": 49, "via": [] } } }, { "interaction": "Limiter \u2192 PolicyProvider", "from": "Limiter", "to": "PolicyProvider", "groundTruthRank": null, "recoveryResultRank": 5, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "src/api/middlewares/rate_limit.py", "line": 49, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.6 \u00d7 1. Overlap: 3 of 5 interactions were found by both sides (0 only in the ground truth, 2 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 3 shared interactions, in each side's own relative order \u2014 0 of 3 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Scored over the 4 roles both sides detected (Enforcer, HistoryProvider, Limiter, PolicyProvider). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Limiter", "HistoryProvider", "PolicyProvider" ], "role_scope": "required", "excluded_roles": [ "Entity", "System" ], "dropped_ground_truth_rows": [ "Entity", "System" ], "dropped_recovery_rows": [ "Entity", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 202, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "limit_request_rate__Daylily-Informatics_bloom", "id": "rate-limit/Daylily-Informatics_bloom/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "Daylily-Informatics_bloom", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": 3, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Limiter", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "HistoryProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "PolicyProvider", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 3, "skippedRoles": 1, "treeHeight": 7 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "__call__", "loc": "bloom_lims/api/rate_limiting.py:322" }, "recoveryResult": { "entity": "__call__", "loc": "bloom_lims/api/rate_limiting.py:322" }, "note": "path-length (d=0)" }, { "patternRole": "HistoryProvider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "_buckets", "loc": "bloom_lims/api/rate_limiting.py:104" }, "recoveryResult": { "entity": "_buckets", "loc": "bloom_lims/api/rate_limiting.py:104" }, "note": "path-length (d=0)" }, { "patternRole": "Limiter", "score": 1.0, "distance": 0, "groundTruth": { "entity": "is_allowed", "loc": "bloom_lims/api/rate_limiting.py:119" }, "recoveryResult": { "entity": "is_allowed", "loc": "bloom_lims/api/rate_limiting.py:119" }, "note": "path-length (d=0)" } ], "notes": [ "PolicyProvider: absent from the recovery result (Level 1 false negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter" ], "excludedRoles": [ "PolicyProvider" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 4, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "bloom_lims/api/rate_limiting.py", "line": 343, "via": [] }, "recoveryResult": { "file": "bloom_lims/api/rate_limiting.py", "line": 343, "via": [] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "bloom_lims/api/rate_limiting.py", "line": 134, "via": [] }, "recoveryResult": { "file": "bloom_lims/api/rate_limiting.py", "line": 134, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 2 of 2 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 3 roles both sides detected (Enforcer, HistoryProvider, Limiter). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected it: PolicyProvider. 1 role was excluded from both walks, so neither side's ordering mentions it. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Enforcer", "Limiter", "HistoryProvider", "PolicyProvider" ], "role_scope": "required", "excluded_roles": [ "Entity", "System" ], "dropped_ground_truth_rows": [ "Entity", "System" ], "dropped_recovery_rows": [ "Entity", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 244, "annotated_at": "2026-10-16 11:32:26.011000", "recovery_order": "derived" }, { "slug": "limit_request_rate__ctrl-gaurav_effGen", "id": "rate-limit/ctrl-gaurav_effGen/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "ctrl-gaurav_effGen", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Limiter", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "HistoryProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "PolicyProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.9688, "drift": 0.0312, "detail": { "aggregate": 0.9688, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 8 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "__call__", "loc": "effgen/api/middleware.py:293" }, "recoveryResult": { "entity": "__call__", "loc": "effgen/api/middleware.py:293" }, "note": "path-length (d=0)" }, { "patternRole": "HistoryProvider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "_buckets", "loc": "effgen/api/middleware.py:254" }, "recoveryResult": { "entity": "_buckets", "loc": "effgen/api/middleware.py:254" }, "note": "path-length (d=0)" }, { "patternRole": "Limiter", "score": 1.0, "distance": 0, "groundTruth": { "entity": "_check", "loc": "effgen/api/middleware.py:269" }, "recoveryResult": { "entity": "_check", "loc": "effgen/api/middleware.py:269" }, "note": "path-length (d=0)" }, { "patternRole": "PolicyProvider", "score": 0.875, "distance": 2, "groundTruth": { "entity": "_resolve_rate_limit", "loc": "effgen/api/middleware.py:26" }, "recoveryResult": { "entity": "limit", "loc": "effgen/api/middleware.py:250" }, "note": "path-length (d=2)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.5, "drift": 0.5, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter", "PolicyProvider" ], "excludedRoles": [], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 4, "sharedInteractions": 2, "unionSize": 4, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 2, "interactionOverlap": 0.5, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 4, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "effgen/api/middleware.py", "line": 302, "via": [] }, "recoveryResult": { "file": "effgen/api/middleware.py", "line": 302, "via": [] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "effgen/api/middleware.py", "line": 277, "via": [] }, "recoveryResult": { "file": "effgen/api/middleware.py", "line": 277, "via": [] } } }, { "interaction": "Limiter \u2192 PolicyProvider", "from": "Limiter", "to": "PolicyProvider", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "effgen/api/middleware.py", "line": 286, "via": [] } } }, { "interaction": "Enforcer \u2192 PolicyProvider", "from": "Enforcer", "to": "PolicyProvider", "groundTruthRank": null, "recoveryResultRank": 4, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "effgen/api/middleware.py", "line": 307, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.5 \u00d7 1. Overlap: 2 of 4 interactions were found by both sides (0 only in the ground truth, 2 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 4 roles both sides detected (Enforcer, HistoryProvider, Limiter, PolicyProvider). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Limiter", "HistoryProvider", "PolicyProvider" ], "role_scope": "required", "excluded_roles": [ "Entity", "System" ], "dropped_ground_truth_rows": [ "Entity", "System" ], "dropped_recovery_rows": [ "Entity", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 1024, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "limit_request_rate__shangyankeji_super-dev", "id": "rate-limit/shangyankeji_super-dev/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "shangyankeji_super-dev", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": 3, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Limiter", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "HistoryProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "PolicyProvider", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 3, "skippedRoles": 1, "treeHeight": 5 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "__call__", "loc": "super_dev/web/rate_limit.py:51" }, "recoveryResult": { "entity": "__call__", "loc": "super_dev/web/rate_limit.py:51" }, "note": "path-length (d=0)" }, { "patternRole": "HistoryProvider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "_hits", "loc": "super_dev/web/rate_limit.py:26" }, "recoveryResult": { "entity": "_hits", "loc": "super_dev/web/rate_limit.py:26" }, "note": "path-length (d=0)" }, { "patternRole": "Limiter", "score": 1.0, "distance": 0, "groundTruth": { "entity": "__call__", "loc": "super_dev/web/rate_limit.py:51" }, "recoveryResult": { "entity": "__call__", "loc": "super_dev/web/rate_limit.py:51" }, "note": "path-length (d=0)" } ], "notes": [ "PolicyProvider: absent from the recovery result (Level 1 false negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter" ], "excludedRoles": [ "PolicyProvider" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 4, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "super_dev/web/rate_limit.py", "line": 51, "via": [] }, "recoveryResult": { "file": "super_dev/web/rate_limit.py", "line": 51, "via": [] } } }, { "interaction": "Enforcer \u2192 HistoryProvider", "from": "Enforcer", "to": "HistoryProvider", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "super_dev/web/rate_limit.py", "line": 43, "via": [ "super_dev/web/rate_limit.py:<module>.RateLimitMiddleware._cleanup" ] }, "recoveryResult": { "file": "super_dev/web/rate_limit.py", "line": 43, "via": [ "super_dev/web/rate_limit.py:<module>.RateLimitMiddleware._cleanup" ] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "super_dev/web/rate_limit.py", "line": 43, "via": [ "super_dev/web/rate_limit.py:<module>.RateLimitMiddleware._cleanup" ] }, "recoveryResult": { "file": "super_dev/web/rate_limit.py", "line": 43, "via": [ "super_dev/web/rate_limit.py:<module>.RateLimitMiddleware._cleanup" ] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 3 of 3 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 3 shared interactions, in each side's own relative order \u2014 0 of 3 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Scored over the 3 roles both sides detected (Enforcer, HistoryProvider, Limiter). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected it: PolicyProvider. 1 role was excluded from both walks, so neither side's ordering mentions it. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Limiter", "HistoryProvider", "PolicyProvider" ], "role_scope": "required", "excluded_roles": [ "Entity", "System" ], "dropped_ground_truth_rows": [ "Entity", "System" ], "dropped_recovery_rows": [ "Entity", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 288, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "limit_request_rate__cemde_WhatsNext", "id": "rate-limit/cemde_WhatsNext/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "cemde_WhatsNext", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Limiter", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "HistoryProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "PolicyProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.875, "drift": 0.125, "detail": { "aggregate": 0.875, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 7 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "dispatch", "loc": "whatsnext/api/server/middleware.py:85" }, "recoveryResult": { "entity": "dispatch", "loc": "whatsnext/api/server/middleware.py:85" }, "note": "path-length (d=0)" }, { "patternRole": "HistoryProvider", "score": 0.7857, "distance": 3, "groundTruth": { "entity": "_clean_old_requests", "loc": "whatsnext/api/server/middleware.py:80" }, "recoveryResult": { "entity": "request_times", "loc": "whatsnext/api/server/middleware.py:69" }, "note": "path-length (d=3)" }, { "patternRole": "Limiter", "score": 1.0, "distance": 0, "groundTruth": { "entity": "dispatch", "loc": "whatsnext/api/server/middleware.py:85" }, "recoveryResult": { "entity": "dispatch", "loc": "whatsnext/api/server/middleware.py:85" }, "note": "path-length (d=0)" }, { "patternRole": "PolicyProvider", "score": 0.7143, "distance": 4, "groundTruth": { "entity": "rate_limit_per_minute", "loc": "whatsnext/api/server/config.py:26" }, "recoveryResult": { "entity": "requests_per_minute", "loc": "whatsnext/api/server/middleware.py:66" }, "note": "path-length (d=4)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.6, "drift": 0.4, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter", "PolicyProvider" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 5, "sharedInteractions": 3, "unionSize": 5, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 2, "interactionOverlap": 0.6, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 4, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "whatsnext/api/server/middleware.py", "line": 85, "via": [] }, "recoveryResult": { "file": "whatsnext/api/server/middleware.py", "line": 85, "via": [] } } }, { "interaction": "Enforcer \u2192 HistoryProvider", "from": "Enforcer", "to": "HistoryProvider", "groundTruthRank": 2, "recoveryResultRank": 4, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "whatsnext/api/server/middleware.py", "line": 94, "via": [] }, "recoveryResult": { "file": "whatsnext/api/server/middleware.py", "line": 83, "via": [ "whatsnext/api/server/middleware.py:<module>.RateLimitMiddleware._clean_old_requests" ] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": 3, "recoveryResultRank": 5, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "whatsnext/api/server/middleware.py", "line": 94, "via": [] }, "recoveryResult": { "file": "whatsnext/api/server/middleware.py", "line": 83, "via": [ "whatsnext/api/server/middleware.py:<module>.RateLimitMiddleware._clean_old_requests" ] } } }, { "interaction": "Enforcer \u2192 PolicyProvider", "from": "Enforcer", "to": "PolicyProvider", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "whatsnext/api/server/middleware.py", "line": 87, "via": [] } } }, { "interaction": "Limiter \u2192 PolicyProvider", "from": "Limiter", "to": "PolicyProvider", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "whatsnext/api/server/middleware.py", "line": 87, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.6 \u00d7 1. Overlap: 3 of 5 interactions were found by both sides (0 only in the ground truth, 2 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 3 shared interactions, in each side's own relative order \u2014 0 of 3 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Scored over the 4 roles both sides detected (Enforcer, HistoryProvider, Limiter, PolicyProvider). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Limiter", "HistoryProvider", "PolicyProvider" ], "role_scope": "required", "excluded_roles": [ "Entity", "System" ], "dropped_ground_truth_rows": [ "Entity", "System" ], "dropped_recovery_rows": [ "Entity", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 65, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "limit_request_rate__Helevon-Technologies-LTD_fabiplus", "id": "rate-limit/Helevon-Technologies-LTD_fabiplus/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "Helevon-Technologies-LTD_fabiplus", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": 3, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Limiter", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "HistoryProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "PolicyProvider", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.2667, "drift": 0.7333, "detail": { "aggregate": 0.2667, "scoredRoles": 3, "skippedRoles": 1, "treeHeight": 5 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.2, "distance": 8, "groundTruth": { "entity": "dispatch", "loc": "fabiplus/middleware/security.py:272" }, "recoveryResult": { "entity": "__call__", "loc": "fabiplus/core/custom_auth.py:104" }, "note": "path-length (d=8)" }, { "patternRole": "HistoryProvider", "score": 0.4, "distance": 6, "groundTruth": { "entity": "requests", "loc": "fabiplus/middleware/security.py:270" }, "recoveryResult": { "entity": "rate_limit_store", "loc": "fabiplus/core/custom_auth.py:102" }, "note": "path-length (d=6)" }, { "patternRole": "Limiter", "score": 0.2, "distance": 8, "groundTruth": { "entity": "dispatch", "loc": "fabiplus/middleware/security.py:272" }, "recoveryResult": { "entity": "_is_rate_limited", "loc": "fabiplus/core/custom_auth.py:131" }, "note": "path-length (d=8)" } ], "notes": [ "PolicyProvider: absent from the recovery result (Level 1 false negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.6666666666666666, "drift": 0.33333333333333337, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter" ], "excludedRoles": [ "PolicyProvider" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 1, "onlyRecoveryResult": 0, "interactionOverlap": 0.6667, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 4, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "fabiplus/middleware/security.py", "line": 272, "via": [] }, "recoveryResult": { "file": "fabiplus/core/custom_auth.py", "line": 108, "via": [] } } }, { "interaction": "Enforcer \u2192 HistoryProvider", "from": "Enforcer", "to": "HistoryProvider", "groundTruthRank": 2, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "fabiplus/middleware/security.py", "line": 316, "via": [ "fabiplus/middleware/security.py:<module>.RateLimitMiddleware._cleanup_old_requests" ] }, "recoveryResult": null } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": 3, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "fabiplus/middleware/security.py", "line": 316, "via": [ "fabiplus/middleware/security.py:<module>.RateLimitMiddleware._cleanup_old_requests" ] }, "recoveryResult": { "file": "fabiplus/core/custom_auth.py", "line": 136, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.6667 \u00d7 1. Overlap: 2 of 3 interactions were found by both sides (1 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 3 roles both sides detected (Enforcer, HistoryProvider, Limiter). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected it: PolicyProvider. 1 role was excluded from both walks, so neither side's ordering mentions it. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Limiter", "HistoryProvider", "PolicyProvider" ], "role_scope": "required", "excluded_roles": [ "Entity", "System" ], "dropped_ground_truth_rows": [ "Entity", "System" ], "dropped_recovery_rows": [ "Entity", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 71, "annotated_at": "2026-10-06 10:57:21.305000" }, { "slug": "limit_request_rate__engine-agi_engine-core", "id": "rate-limit/engine-agi_engine-core/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "engine-agi_engine-core", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 4, "totalRoles": 4 }, "perRole": [ { "patternRole": "Enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Limiter", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "HistoryProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "PolicyProvider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 7 }, "perRole": [ { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "dispatch", "loc": "src/engine_core/api/main.py:206" }, "recoveryResult": { "entity": "dispatch", "loc": "src/engine_core/api/main.py:206" }, "note": "path-length (d=0)" }, { "patternRole": "HistoryProvider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "clients", "loc": "src/engine_core/api/main.py:204" }, "recoveryResult": { "entity": "clients", "loc": "src/engine_core/api/main.py:204" }, "note": "path-length (d=0)" }, { "patternRole": "Limiter", "score": 1.0, "distance": 0, "groundTruth": { "entity": "dispatch", "loc": "src/engine_core/api/main.py:206" }, "recoveryResult": { "entity": "dispatch", "loc": "src/engine_core/api/main.py:206" }, "note": "path-length (d=0)" }, { "patternRole": "PolicyProvider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "calls", "loc": "src/engine_core/api/main.py:202" }, "recoveryResult": { "entity": "calls", "loc": "src/engine_core/api/main.py:202" }, "note": "path-length (d=0)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter", "PolicyProvider" ], "excludedRoles": [], "interactionsGroundTruth": 5, "interactionsRecoveryResult": 5, "sharedInteractions": 5, "unionSize": 5, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 5, "totalPairs": 10, "concordantPairs": 10, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 4, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/engine_core/api/main.py", "line": 206, "via": [] }, "recoveryResult": { "file": "src/engine_core/api/main.py", "line": 206, "via": [] } } }, { "interaction": "Enforcer \u2192 HistoryProvider", "from": "Enforcer", "to": "HistoryProvider", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/engine_core/api/main.py", "line": 216, "via": [] }, "recoveryResult": { "file": "src/engine_core/api/main.py", "line": 216, "via": [] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/engine_core/api/main.py", "line": 216, "via": [] }, "recoveryResult": { "file": "src/engine_core/api/main.py", "line": 216, "via": [] } } }, { "interaction": "Enforcer \u2192 PolicyProvider", "from": "Enforcer", "to": "PolicyProvider", "groundTruthRank": 4, "recoveryResultRank": 4, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/engine_core/api/main.py", "line": 225, "via": [] }, "recoveryResult": { "file": "src/engine_core/api/main.py", "line": 225, "via": [] } } }, { "interaction": "Limiter \u2192 PolicyProvider", "from": "Limiter", "to": "PolicyProvider", "groundTruthRank": 5, "recoveryResultRank": 5, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/engine_core/api/main.py", "line": 225, "via": [] }, "recoveryResult": { "file": "src/engine_core/api/main.py", "line": 225, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 5 of 5 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 5 shared interactions, in each side's own relative order \u2014 0 of 10 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Scored over the 4 roles both sides detected (Enforcer, HistoryProvider, Limiter, PolicyProvider). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Both sides: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Enforcer", "Limiter", "HistoryProvider", "PolicyProvider" ], "role_scope": "required", "excluded_roles": [ "Entity", "System" ], "dropped_ground_truth_rows": [ "Entity", "System" ], "dropped_recovery_rows": [ "Entity", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 67, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "session_based_access_control__ParisNeo_lollms", "id": "session-based-ac/ParisNeo_lollms/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "ParisNeo_lollms", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.6667, "drift": 0.3333, "detail": { "agreedRoles": 4, "totalRoles": 6 }, "perRole": [ { "patternRole": "Authentication enforcer", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Verifier", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Session manager", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Authorisation enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Decider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Policy provider", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 2, "skippedRoles": 4, "treeHeight": 6 }, "perRole": [ { "patternRole": "Authorisation enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_current_admin_user", "loc": "backend/session.py:402" }, "recoveryResult": { "entity": "get_current_admin_user", "loc": "backend/session.py:402" }, "note": "path-length (d=0)" }, { "patternRole": "Decider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_current_admin_user", "loc": "backend/session.py:402" }, "recoveryResult": { "entity": "get_current_admin_user", "loc": "backend/session.py:402" }, "note": "path-length (d=0)" } ], "notes": [ "Authentication enforcer: absent from the ground truth (Level 1 negative)", "Policy provider: absent from the recovery result (Level 1 false negative)", "Session manager: absent from the ground truth (Level 1 negative)", "Verifier: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Authorisation enforcer", "Decider" ], "excludedRoles": [ "Authentication enforcer", "Policy provider", "Session manager", "Verifier" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 1, "sharedInteractions": 1, "unionSize": 1, "entryRoleGroundTruth": "Authorisation enforcer", "entryRoleRecoveryResult": "Authorisation enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 5, "prescribedStepsCovered": 1 }, "perRole": [ { "interaction": "Authorisation enforcer \u2192 Decider", "from": "Authorisation enforcer", "to": "Decider", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "backend/session.py", "line": 402, "via": [] }, "recoveryResult": { "file": "backend/session.py", "line": 402, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 1 of 1 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 2 roles both sides detected (Authorisation enforcer, Decider). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Authentication enforcer, Policy provider, Session manager, Verifier. 4 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Authorisation enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Authentication enforcer", "Verifier", "Session manager", "Authorisation enforcer", "Decider", "Policy provider" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 6, "rr_roles": 6, "struct_files": 200, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "session_based_access_control__namastexlabs_automagik-tools", "id": "session-based-ac/namastexlabs_automagik-tools/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "namastexlabs_automagik-tools", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.3333, "drift": 0.6667, "detail": { "agreedRoles": 2, "totalRoles": 6 }, "perRole": [ { "patternRole": "Authentication enforcer", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Verifier", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Session manager", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Authorisation enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Decider", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Policy provider", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 1, "skippedRoles": 5, "treeHeight": 8 }, "perRole": [ { "patternRole": "Authorisation enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "list_all_workspaces_api", "loc": "automagik_tools/hub/api_routes.py:462" }, "recoveryResult": { "entity": "list_all_workspaces_api", "loc": "automagik_tools/hub/api_routes.py:462" }, "note": "path-length (d=0)" } ], "notes": [ "Authentication enforcer: absent from the ground truth (Level 1 negative)", "Decider: absent from the recovery result (Level 1 false negative)", "Policy provider: absent from the recovery result (Level 1 false negative)", "Session manager: absent from the ground truth (Level 1 negative)", "Verifier: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.0, "drift": 1.0, "detail": { "agreedRoles": [ "Authorisation enforcer" ], "excludedRoles": [ "Authentication enforcer", "Decider", "Policy provider", "Session manager", "Verifier" ], "groundTruthRoles": 3, "sharedInteractions": 0, "interactionOverlap": 0.0, "orderAgreement": 0.0 }, "perRole": [], "notes": [ "Score = 0. Only 1 role was detected by both sides (Authorisation enforcer), against 3 in the ground truth. An interaction needs two endpoint roles both sides detected, so the recovery shares no interaction with the ground truth \u2014 scored like any other recovery with nothing in common: overlap 0, order 0.", "The same missed roles are also charged in Level 1." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Authentication enforcer", "Verifier", "Session manager", "Authorisation enforcer", "Decider", "Policy provider" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 6, "rr_roles": 6, "struct_files": 268, "annotated_at": "2026-10-02 10:00:38.838000", "recovery_order": "derived" }, { "slug": "session_based_access_control__nijaru_zenith", "id": "session-based-ac/nijaru_zenith/ClaudeCodeOpus5.0", "pattern": "session_based_access_control", "repo": "nijaru_zenith", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.0, "drift": 1.0, "detail": { "agreedRoles": 0, "totalRoles": 6 }, "perRole": [ { "patternRole": "Authentication enforcer", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Session manager", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Authorisation enforcer", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Decider", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" }, { "patternRole": "Policy provider", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.0, "drift": 1.0, "detail": { "aggregate": 0.0, "scoredRoles": 0, "skippedRoles": 6, "groundTruthRoles": 6, "treeHeight": 7 }, "perRole": [], "notes": [ "Score = 0. No role is a Level 1 true positive: the recovery detected none of the 6 role(s) the ground truth grounds, so it grounded nothing correctly. The same miss is also charged in Level 1.", "Authentication enforcer: absent from the recovery result (Level 1 false negative)", "Authorisation enforcer: absent from the recovery result (Level 1 false negative)", "Decider: absent from the recovery result (Level 1 false negative)", "Policy provider: absent from the recovery result (Level 1 false negative)", "Session manager: absent from the recovery result (Level 1 false negative)", "Verifier: absent from the recovery result (Level 1 false negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.0, "drift": 1.0, "detail": { "agreedRoles": [], "excludedRoles": [ "Authentication enforcer", "Authorisation enforcer", "Decider", "Policy provider", "Session manager", "Verifier" ], "groundTruthRoles": 6, "sharedInteractions": 0, "interactionOverlap": 0.0, "orderAgreement": 0.0 }, "perRole": [], "notes": [ "Score = 0. Only 0 role were detected by both sides, against 6 in the ground truth. An interaction needs two endpoint roles both sides detected, so the recovery shares no interaction with the ground truth \u2014 scored like any other recovery with nothing in common: overlap 0, order 0.", "The same missed roles are also charged in Level 1." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Authentication enforcer", "Verifier", "Session manager", "Authorisation enforcer", "Decider", "Policy provider" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 6, "rr_roles": 6, "struct_files": 253, "annotated_at": "2026-08-22 09:09:19.498000", "recovery_order": "derived" }, { "slug": "session_based_access_control__DeepselSystems_deepsel", "id": "session-based-ac/DeepselSystems_deepsel/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "DeepselSystems_deepsel", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 6, "totalRoles": 6 }, "perRole": [ { "patternRole": "Authentication enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Session manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Authorisation enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Decider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Policy provider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.9524, "drift": 0.0476, "detail": { "aggregate": 0.9524, "scoredRoles": 6, "skippedRoles": 0, "treeHeight": 7 }, "perRole": [ { "patternRole": "Authentication enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_current_user", "loc": "deepsel/auth/get_current_user.py:56" }, "recoveryResult": { "entity": "get_current_user", "loc": "deepsel/auth/get_current_user.py:56" }, "note": "path-length (d=0)" }, { "patternRole": "Authorisation enforcer", "score": 0.8571, "distance": 2, "groundTruth": { "entity": "get_one", "loc": "deepsel/orm/mixin.py:835" }, "recoveryResult": { "entity": "create", "loc": "deepsel/orm/mixin.py:358" }, "note": "path-length (d=2)" }, { "patternRole": "Decider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "_check_has_permission", "loc": "deepsel/orm/mixin.py:1115" }, "recoveryResult": { "entity": "_check_has_permission", "loc": "deepsel/orm/mixin.py:1115" }, "note": "path-length (d=0)" }, { "patternRole": "Policy provider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_user_permissions", "loc": "deepsel/orm/user_mixin.py:244" }, "recoveryResult": { "entity": "get_user_permissions", "loc": "deepsel/orm/user_mixin.py:244" }, "note": "path-length (d=0)" }, { "patternRole": "Session manager", "score": 0.8571, "distance": 2, "groundTruth": { "entity": "get", "loc": "deepsel/auth/get_current_user.py:40" }, "recoveryResult": { "entity": "_get_session_store", "loc": "deepsel/auth/get_current_user.py:25" }, "note": "path-length (d=2)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "_resolve_user_from_session", "loc": "deepsel/auth/get_current_user.py:30" }, "recoveryResult": { "entity": "_resolve_user_from_session", "loc": "deepsel/auth/get_current_user.py:30" }, "note": "path-length (d=0)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Authentication enforcer", "Authorisation enforcer", "Decider", "Policy provider", "Session manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Authentication enforcer", "entryRoleRecoveryResult": "Authentication enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 5, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Authentication enforcer \u2192 Verifier", "from": "Authentication enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "deepsel/auth/get_current_user.py", "line": 85, "via": [] }, "recoveryResult": { "file": "deepsel/auth/get_current_user.py", "line": 85, "via": [] } } }, { "interaction": "Verifier \u2192 Session manager", "from": "Verifier", "to": "Session manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "deepsel/auth/get_current_user.py", "line": 40, "via": [] }, "recoveryResult": { "file": "deepsel/auth/get_current_user.py", "line": 36, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 2 of 2 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 6 roles both sides detected (Authentication enforcer, Authorisation enforcer, Decider, Policy provider, Session manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Both sides: the walk started at Authentication enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Ground truth: Session manager cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Authentication enforcer", "Verifier", "Session manager", "Authorisation enforcer", "Decider", "Policy provider" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 6, "rr_roles": 6, "struct_files": 262, "annotated_at": "2026-10-16 11:26:40.238000", "recovery_order": "derived" }, { "slug": "session_based_access_control__Quansight_ragna", "id": "session-based-ac/Quansight_ragna/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "Quansight_ragna", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 6, "totalRoles": 6 }, "perRole": [ { "patternRole": "Authentication enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Session manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Authorisation enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Decider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Policy provider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.8571, "drift": 0.1429, "detail": { "aggregate": 0.8571, "scoredRoles": 6, "skippedRoles": 0, "treeHeight": 7 }, "perRole": [ { "patternRole": "Authentication enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "dispatch", "loc": "ragna/deploy/_auth.py:63" }, "recoveryResult": { "entity": "dispatch", "loc": "ragna/deploy/_auth.py:63" }, "note": "path-length (d=0)" }, { "patternRole": "Authorisation enforcer", "score": 0.5714, "distance": 6, "groundTruth": { "entity": "_get_orm_chat", "loc": "ragna/deploy/_database.py:231" }, "recoveryResult": { "entity": "answer_stream", "loc": "ragna/deploy/_engine.py:257" }, "note": "path-length (d=6)" }, { "patternRole": "Decider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "_get_orm_chat", "loc": "ragna/deploy/_database.py:231" }, "recoveryResult": { "entity": "_get_orm_chat", "loc": "ragna/deploy/_database.py:231" }, "note": "path-length (d=0)" }, { "patternRole": "Policy provider", "score": 0.7143, "distance": 4, "groundTruth": { "entity": "user_id", "loc": "ragna/deploy/_orm.py:134" }, "recoveryResult": { "entity": "get_session", "loc": "ragna/deploy/_database.py:33" }, "note": "path-length (d=4)" }, { "patternRole": "Session manager", "score": 0.8571, "distance": 2, "groundTruth": { "entity": "get", "loc": "ragna/deploy/_auth.py:113" }, "recoveryResult": { "entity": "_sessions", "loc": "ragna/deploy/_auth.py:56" }, "note": "path-length (d=2)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "_cookie_dispatch", "loc": "ragna/deploy/_auth.py:110" }, "recoveryResult": { "entity": "_cookie_dispatch", "loc": "ragna/deploy/_auth.py:110" }, "note": "path-length (d=0)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.6667, "drift": 0.3333, "detail": { "agreedRoles": [ "Authentication enforcer", "Authorisation enforcer", "Decider", "Policy provider", "Session manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 3, "sharedInteractions": 2, "unionSize": 3, "entryRoleGroundTruth": "Authentication enforcer", "entryRoleRecoveryResult": "Authentication enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 1, "interactionOverlap": 0.6667, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 5, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Authentication enforcer \u2192 Verifier", "from": "Authentication enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "ragna/deploy/_auth.py", "line": 69, "via": [] }, "recoveryResult": { "file": "ragna/deploy/_auth.py", "line": 69, "via": [] } } }, { "interaction": "Verifier \u2192 Session manager", "from": "Verifier", "to": "Session manager", "groundTruthRank": 2, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "ragna/deploy/_auth.py", "line": 113, "via": [] }, "recoveryResult": { "file": "ragna/deploy/_auth.py", "line": 113, "via": [] } } }, { "interaction": "Authentication enforcer \u2192 Session manager", "from": "Authentication enforcer", "to": "Session manager", "groundTruthRank": null, "recoveryResultRank": 1, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "ragna/deploy/_auth.py", "line": 91, "via": [ "ragna/deploy/_auth.py:<module>.SessionMiddleware._api_token_dispatch" ] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.6667 \u00d7 1. Overlap: 2 of 3 interactions were found by both sides (0 only in the ground truth, 1 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 6 roles both sides detected (Authentication enforcer, Authorisation enforcer, Decider, Policy provider, Session manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Both sides: the walk started at Authentication enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Ground truth: Session manager cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Authentication enforcer", "Verifier", "Session manager", "Authorisation enforcer", "Decider", "Policy provider" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 6, "rr_roles": 6, "struct_files": 89, "annotated_at": "2026-10-15 21:08:20.758000", "recovery_order": "derived" }, { "slug": "session_based_access_control__Percolation-Labs_percolate", "id": "session-based-ac/Percolation-Labs_percolate/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "Percolation-Labs_percolate", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.5, "drift": 0.5, "detail": { "agreedRoles": 3, "totalRoles": 6 }, "perRole": [ { "patternRole": "Authentication enforcer", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Verifier", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Session manager", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Authorisation enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Decider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Policy provider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.6297, "drift": 0.3703, "detail": { "aggregate": 0.6297, "scoredRoles": 3, "skippedRoles": 3, "treeHeight": 9 }, "perRole": [ { "patternRole": "Authorisation enforcer", "score": 0.6667, "distance": 6, "groundTruth": { "entity": "prepare_agent_for_save", "loc": "clients/python/percolate/percolate/api/routes/entities/router.py:57" }, "recoveryResult": { "entity": "update_upload_tags", "loc": "clients/python/percolate/percolate/api/routes/tus/router.py:608" }, "note": "path-length (d=6)" }, { "patternRole": "Decider", "score": 0.6667, "distance": 6, "groundTruth": { "entity": "prepare_agent_for_save", "loc": "clients/python/percolate/percolate/api/routes/entities/router.py:57" }, "recoveryResult": { "entity": "update_upload_tags", "loc": "clients/python/percolate/percolate/api/routes/tus/router.py:608" }, "note": "path-length (d=6)" }, { "patternRole": "Policy provider", "score": 0.5556, "distance": 8, "groundTruth": { "entity": "role_level", "loc": "clients/python/percolate/percolate/models/p8/types.py:953" }, "recoveryResult": { "entity": "get_upload_info", "loc": "clients/python/percolate/percolate/api/controllers/tus_filesystem.py:182" }, "note": "path-length (d=8)" } ], "notes": [ "Authentication enforcer: absent from the ground truth (Level 1 negative)", "Session manager: absent from the ground truth (Level 1 negative)", "Verifier: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 0.3333333333333333, "drift": 0.6666666666666667, "detail": { "agreedRoles": [ "Authorisation enforcer", "Decider", "Policy provider" ], "excludedRoles": [ "Authentication enforcer", "Session manager", "Verifier" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 3, "sharedInteractions": 1, "unionSize": 3, "entryRoleGroundTruth": "Authorisation enforcer", "entryRoleRecoveryResult": "Authorisation enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 2, "interactionOverlap": 0.3333, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 5, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Authorisation enforcer \u2192 Decider", "from": "Authorisation enforcer", "to": "Decider", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "clients/python/percolate/percolate/api/routes/entities/router.py", "line": 57, "via": [] }, "recoveryResult": { "file": "clients/python/percolate/percolate/api/routes/tus/router.py", "line": 608, "via": [] } } }, { "interaction": "Authorisation enforcer \u2192 Policy provider", "from": "Authorisation enforcer", "to": "Policy provider", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "clients/python/percolate/percolate/api/routes/tus/router.py", "line": 631, "via": [] } } }, { "interaction": "Decider \u2192 Policy provider", "from": "Decider", "to": "Policy provider", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "clients/python/percolate/percolate/api/routes/tus/router.py", "line": 631, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.3333 \u00d7 1. Overlap: 1 of 3 interactions were found by both sides (0 only in the ground truth, 2 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 3 roles both sides detected (Authorisation enforcer, Decider, Policy provider). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Authentication enforcer, Session manager, Verifier. 3 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Authorisation enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Authentication enforcer", "Verifier", "Session manager", "Authorisation enforcer", "Decider", "Policy provider" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 6, "rr_roles": 6, "struct_files": 289, "annotated_at": "2026-10-02 10:00:38.838000" }, { "slug": "session_based_access_control__allen0099_FastAPI-CacheX", "id": "session-based-ac/allen0099_FastAPI-CacheX/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "allen0099_FastAPI-CacheX", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 6, "totalRoles": 6 }, "perRole": [ { "patternRole": "Authentication enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Session manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Authorisation enforcer", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Decider", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Policy provider", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.9333, "drift": 0.0667, "detail": { "aggregate": 0.9333, "scoredRoles": 3, "skippedRoles": 3, "treeHeight": 5 }, "perRole": [ { "patternRole": "Authentication enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "__call__", "loc": "fastapi_cachex/session/middleware.py:295" }, "recoveryResult": { "entity": "__call__", "loc": "fastapi_cachex/session/middleware.py:295" }, "note": "path-length (d=0)" }, { "patternRole": "Session manager", "score": 0.8, "distance": 2, "groundTruth": { "entity": "_load_session_by_key", "loc": "fastapi_cachex/session/manager.py:469" }, "recoveryResult": { "entity": "_load_session", "loc": "fastapi_cachex/session/manager.py:458" }, "note": "path-length (d=2)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_session", "loc": "fastapi_cachex/session/manager.py:168" }, "recoveryResult": { "entity": "get_session", "loc": "fastapi_cachex/session/manager.py:168" }, "note": "path-length (d=0)" } ], "notes": [ "Authorisation enforcer: absent from the ground truth (Level 1 negative)", "Decider: absent from the ground truth (Level 1 negative)", "Policy provider: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Authentication enforcer", "Session manager", "Verifier" ], "excludedRoles": [ "Authorisation enforcer", "Decider", "Policy provider" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Authentication enforcer", "entryRoleRecoveryResult": "Authentication enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 5, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Authentication enforcer \u2192 Verifier", "from": "Authentication enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "fastapi_cachex/session/middleware.py", "line": 328, "via": [] }, "recoveryResult": { "file": "fastapi_cachex/session/middleware.py", "line": 328, "via": [] } } }, { "interaction": "Verifier \u2192 Session manager", "from": "Verifier", "to": "Session manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "fastapi_cachex/session/manager.py", "line": 467, "via": [ "fastapi_cachex/session/manager.py:<module>.SessionManager._load_session" ] }, "recoveryResult": { "file": "fastapi_cachex/session/manager.py", "line": 211, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 2 of 2 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 3 roles both sides detected (Authentication enforcer, Session manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Authorisation enforcer, Decider, Policy provider. 3 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Authentication enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Authentication enforcer", "Verifier", "Session manager", "Authorisation enforcer", "Decider", "Policy provider" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 6, "rr_roles": 6, "struct_files": 64, "annotated_at": "2026-10-08 20:48:35.715000" }, { "slug": "session_based_access_control__anelendata_zix", "id": "session-based-ac/anelendata_zix/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "anelendata_zix", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.8333, "drift": 0.1667, "detail": { "agreedRoles": 5, "totalRoles": 6 }, "perRole": [ { "patternRole": "Authentication enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Session manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Authorisation enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Decider", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Policy provider", "groundTruth": "present", "recoveryResult": "missing", "groundTruthDetected": true, "recoveryResultDetected": false, "outcome": "mismatched" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 5, "skippedRoles": 1, "treeHeight": 8 }, "perRole": [ { "patternRole": "Authentication enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_current_user", "loc": "zix/default_project/app/plugins/users/crud.py:24" }, "recoveryResult": { "entity": "get_current_user", "loc": "zix/default_project/app/plugins/users/crud.py:24" }, "note": "path-length (d=0)" }, { "patternRole": "Authorisation enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_current_active_admin_user", "loc": "zix/default_project/app/plugins/users/crud.py:76" }, "recoveryResult": { "entity": "get_current_active_admin_user", "loc": "zix/default_project/app/plugins/users/crud.py:76" }, "note": "path-length (d=0)" }, { "patternRole": "Decider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_current_active_admin_user", "loc": "zix/default_project/app/plugins/users/crud.py:76" }, "recoveryResult": { "entity": "get_current_active_admin_user", "loc": "zix/default_project/app/plugins/users/crud.py:76" }, "note": "path-length (d=0)" }, { "patternRole": "Session manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_token", "loc": "zix/default_project/app/plugins/auth/crud.py:62" }, "recoveryResult": { "entity": "get_token", "loc": "zix/default_project/app/plugins/auth/crud.py:62" }, "note": "path-length (d=0)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_user_from_token", "loc": "zix/default_project/app/plugins/auth/crud.py:101" }, "recoveryResult": { "entity": "get_user_from_token", "loc": "zix/default_project/app/plugins/auth/crud.py:101" }, "note": "path-length (d=0)" } ], "notes": [ "Policy provider: absent from the recovery result (Level 1 false negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "headlineLabel": "Interaction agreement", "available": true, "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Authentication enforcer", "Authorisation enforcer", "Decider", "Session manager", "Verifier" ], "excludedRoles": [ "Policy provider" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 1, "sharedInteractions": 1, "unionSize": 1, "entryRoleGroundTruth": "Verifier", "entryRoleRecoveryResult": "Verifier", "entryRuleGroundTruth": "code-root", "entryRuleRecoveryResult": "code-root", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 5, "prescribedStepsCovered": 1 }, "perRole": [ { "interaction": "Verifier \u2192 Session manager", "from": "Verifier", "to": "Session manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "zix/default_project/app/plugins/auth/crud.py", "line": 103, "via": [] }, "recoveryResult": { "file": "zix/default_project/app/plugins/auth/crud.py", "line": 103, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 1 of 1 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: 1 \u2014 a single shared interaction has no pair whose relative order could differ.", "Scored over the 5 roles both sides detected (Authentication enforcer, Authorisation enforcer, Decider, Session manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected it: Policy provider. 1 role was excluded from both walks, so neither side's ordering mentions it. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Verifier \u2014 the pattern's first speaker is not where this code begins \u2014 something else reaches it \u2014 so the code chose: no other role reaches this one, and it reaches more of the pattern than any other such role.", "An entry point the pattern did not name means its prescribed speakers were either ungrounded on that side or not where this code begins \u2014 a role something else reaches cannot open the flow \u2014 so the call graph had to stand in. Treat the ordering below as weaker evidence: it starts wherever the code happens to start." ] } ], "ground_truth_source": "recovery result", "vocabulary": [ "Authentication enforcer", "Verifier", "Session manager", "Authorisation enforcer", "Decider", "Policy provider" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 6, "rr_roles": 6, "struct_files": 49, "annotated_at": "2026-10-06 10:57:21.644000" }, { "slug": "session_based_access_control__VForWaTer_metacatalog-api", "id": "session-based-ac/VForWaTer_metacatalog-api/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "VForWaTer_metacatalog-api", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.8333, "drift": 0.1667, "detail": { "agreedRoles": 5, "totalRoles": 6 }, "perRole": [ { "patternRole": "Authentication enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Session manager", "groundTruth": "present", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Authorisation enforcer", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Decider", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Policy provider", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 1.0, "drift": 0.0, "detail": { "aggregate": 1.0, "scoredRoles": 3, "skippedRoles": 3, "treeHeight": 6 }, "perRole": [ { "patternRole": "Authentication enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "validate_api_key", "loc": "metacatalog_api/router/api/security.py:9" }, "recoveryResult": { "entity": "validate_api_key", "loc": "metacatalog_api/router/api/security.py:9" }, "note": "path-length (d=0)" }, { "patternRole": "Session manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "exec", "loc": "metacatalog_api/access_control.py:50" }, "recoveryResult": { "entity": "exec", "loc": "metacatalog_api/access_control.py:50" }, "note": "path-length (d=0)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "validate_token", "loc": "metacatalog_api/access_control.py:46" }, "recoveryResult": { "entity": "validate_token", "loc": "metacatalog_api/access_control.py:46" }, "note": "path-length (d=0)" } ], "notes": [ "Authorisation enforcer: absent from the ground truth (Level 1 negative)", "Decider: absent from the ground truth (Level 1 negative)", "Policy provider: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Authentication enforcer", "Session manager", "Verifier" ], "excludedRoles": [ "Authorisation enforcer", "Decider", "Policy provider" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Authentication enforcer", "entryRoleRecoveryResult": "Authentication enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 5, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Authentication enforcer \u2192 Verifier", "from": "Authentication enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "metacatalog_api/router/api/security.py", "line": 11, "via": [] }, "recoveryResult": { "file": "metacatalog_api/router/api/security.py", "line": 11, "via": [] } } }, { "interaction": "Verifier \u2192 Session manager", "from": "Verifier", "to": "Session manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "metacatalog_api/access_control.py", "line": 50, "via": [] }, "recoveryResult": { "file": "metacatalog_api/access_control.py", "line": 50, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 2 of 2 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 2 shared interactions, in each side's own relative order \u2014 0 of 1 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Only 1 ranked pair \u2014 the order factor can land on just a few values here and one disagreement swings it fully.", "Scored over the 3 roles both sides detected (Authentication enforcer, Session manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Authorisation enforcer, Decider, Policy provider. 3 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Authentication enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Both sides: Session manager cites an entity that is not a symbol in this repository (a library or framework call). It can receive an interaction, but the walk cannot continue through it." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Authentication enforcer", "Verifier", "Session manager", "Authorisation enforcer", "Decider", "Policy provider" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 6, "rr_roles": 6, "struct_files": 35, "annotated_at": "2026-10-15 20:59:40.361000", "recovery_order": "derived" }, { "slug": "session_based_access_control__kinde-oss_kinde-python-sdk", "id": "session-based-ac/kinde-oss_kinde-python-sdk/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "kinde-oss_kinde-python-sdk", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": 6, "totalRoles": 6 }, "perRole": [ { "patternRole": "Authentication enforcer", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Verifier", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Session manager", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Authorisation enforcer", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Decider", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Policy provider", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" } ], "notes": [] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "formula": "path-length", "available": true, "headlineLabel": "Mean grounding score", "score": 0.5278, "drift": 0.4722, "detail": { "aggregate": 0.5278, "scoredRoles": 3, "skippedRoles": 3, "treeHeight": 6 }, "perRole": [ { "patternRole": "Authentication enforcer", "score": 0.3333, "distance": 8, "groundTruth": { "entity": "get_user", "loc": "kinde_flask/framework/flask_framework.py:282" }, "recoveryResult": { "entity": "protected_route", "loc": "kinde_fastapi/examples/example_app.py:122" }, "note": "path-length (d=8)" }, { "patternRole": "Session manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "get_token_manager", "loc": "kinde_sdk/auth/user_session.py:119" }, "recoveryResult": { "entity": "get_token_manager", "loc": "kinde_sdk/auth/user_session.py:119" }, "note": "path-length (d=0)" }, { "patternRole": "Verifier", "score": 0.25, "distance": 9, "groundTruth": { "entity": "is_authenticated", "loc": "kinde_flask/framework/flask_framework.py:285" }, "recoveryResult": { "entity": "is_authenticated", "loc": "kinde_sdk/auth/user_session.py:130" }, "note": "path-length (d=9)" } ], "notes": [ "Authorisation enforcer: absent from the ground truth (Level 1 negative)", "Decider: absent from the ground truth (Level 1 negative)", "Policy provider: absent from the ground truth (Level 1 negative)" ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Authentication enforcer", "Session manager", "Verifier" ], "excludedRoles": [ "Authorisation enforcer", "Decider", "Policy provider" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Authentication enforcer", "entryRoleRecoveryResult": "Authentication enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "behaviour", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 5, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Authentication enforcer \u2192 Verifier", "from": "Authentication enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "kinde_flask/framework/flask_framework.py", "line": 285, "via": [] }, "recoveryResult": { "file": "kinde_sdk/auth/oauth.py", "line": 169, "via": [ "kinde_sdk/auth/oauth.py:<module>.OAuth.is_authenticated" ] } } }, { "interaction": "Verifier \u2192 Session manager", "from": "Verifier", "to": "Session manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "kinde_sdk/auth/user_session.py", "line": 132, "via": [ "kinde_sdk/auth/user_session.py:<module>.UserSession.is_authenticated" ] }, "recoveryResult": { "file": "kinde_sdk/auth/user_session.py", "line": 132, "via": [] } } }, { "interaction": "Authentication enforcer \u2192 Session manager", "from": "Authentication enforcer", "to": "Session manager", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "kinde_sdk/auth/oauth.py", "line": 189, "via": [ "kinde_sdk/auth/oauth.py:<module>.OAuth.get_user_info" ] }, "recoveryResult": { "file": "kinde_sdk/auth/oauth.py", "line": 189, "via": [ "kinde_sdk/auth/oauth.py:<module>.OAuth.get_user_info" ] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 1. Overlap: 3 of 3 interactions were found by both sides (0 only in the ground truth, 0 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 3 shared interactions, in each side's own relative order \u2014 0 of 3 pairs run in opposite orders. Interactions only one side found take part in no pair (Fagin, Kumar & Sivakumar's p = 0, the induced sub-order); the overlap factor is what charges for them.", "Scored over the 3 roles both sides detected (Authentication enforcer, Session manager, Verifier). An interaction counts only when both of its endpoint roles were detected on both sides \u2014 whether a role was found at all is Level 1's measurement, and charging for it again here would say the same thing twice.", "The interaction order is derived statically from the code \u2014 no one annotated it. Each role's cited entity is located in the AST index and control flow is followed from it, through as many non-role helper functions as it takes to reach the next role. See secpat_scoring/sequence/JOERN.md.", "Left out \u2014 only one side detected them: Authorisation enforcer, Decider, Policy provider. 3 roles were excluded from both walks, so neither side's ordering mentions them. The walk still passes through the code behind such a role, attributing what it finds there to the nearest agreed role.", "Both sides: the walk started at Authentication enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code." ] } ], "ground_truth_source": "annotation", "vocabulary": [ "Authentication enforcer", "Verifier", "Session manager", "Authorisation enforcer", "Decider", "Policy provider" ], "role_scope": "required", "excluded_roles": [ "Subject", "System" ], "dropped_ground_truth_rows": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 6, "rr_roles": 6, "struct_files": 519, "annotated_at": "2026-10-16 13:04:55.764000", "recovery_order": "derived" } ]
[
{
"slug": "authentication_pwd__Clinical-Genomics_statina",
"id": "pwd-based/statina/ClaudeCodeopus4.7",
"pattern": "authentication_pwd",
"repo": "Clinical-Genomics_statina",
"error": null,
"metrics": [
{
"key": "level1",
"level": "Level 1 \u2014 Role Detection",
"formula": "agreement-rate (present/external/missing)",
"available": true,
"headlineLabel": "Roles agreed",
"score": 0.5714285714285714,
"drift": 0.4285714285714286,
"detail": {
"agreedRoles": 4,
"totalRoles": 7
},
"perRole": [
{
"patternRole": "Enforcer",
"groundTruth": "present",
"recoveryResult": "present",
"groundTruthDetected": true,
"recoveryResultDetected": true,
"outcome": "agreed"
},
{
"patternRole": "Verification manager",
"groundTruth": "present",
"recoveryResult": "present",
"groundTruthDetected": true,
"recoveryResultDetected": true,
"outcome": "agreed"
},
{
"patternRole": "Password store",
"groundTruth": "present",
"recoveryResult": "present",
"groundTruthDetected": true,
"recoveryResultDetected": true,
"outcome": "agreed"
},
{
"patternRole": "Hasher",
"groundTruth": "external",
"recoveryResult": "missing",
"groundTruthDetected": true,
"recoveryResultDetected": false,
"outcome": "mismatched"
},
{
"patternRole": "Pepper store",
"groundTruth": "missing",
"recoveryResult": "missing",
"groundTruthDetected": false,
"recoveryResultDetected": false,
"outcome": "agreed"
},
{
"patternRole": "Encrypter",
"groundTruth": "external",
"recoveryResult": "missing",
"groundTruthDetected": true,
"recoveryResultDetected": false,
"outcome": "mismatched"
},
{
"patternRole": "Comparator",
"groundTruth": "external",
"recoveryResult": "missing",
"groundTruthDetected": true,
"recoveryResultDetected": false,
"outcome": "mismatched"
}
],
"notes": []
},
{
"key": "level2",
"level": "Level 2 \u2014 Role Grounding",
"formula": "path-length",
"available": true,
"headlineLabel": "Mean grounding score",
"score": 1.0,
"drift": 0.0,
"detail": {
"aggregate": 1.0,
"scoredRoles": 2,
"skippedRoles": 10,
"treeHeight": 8
},
"perRole": [
{
"patternRole": "Enforcer",
"score": 1.0,
"distance": 0,
"groundTruth": {

Xet Storage Details

Size:
459 kB
·
Xet hash:
dce6d147be9288dba78d8ab968ef3cbbb50dac3671db70df5dcf653d7d4bfaf4

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.