Buckets:

download
raw
487 kB
[ { "slug": "authentication_pwd__Open-Core-Finance_corefinance", "id": "pwd-based-java/Open-Core-Finance_corefinance/ClaudeCodeOpus5.0", "pattern": "authentication_pwd", "repo": "Open-Core-Finance_corefinance", "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": "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": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Comparator", "groundTruth": "external", "recoveryResult": "present", "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.8286, "drift": 0.1714, "detail": { "aggregate": 0.8286, "scoredRoles": 5, "skippedRoles": 1, "treeHeight": 7 }, "perRole": [ { "patternRole": "Comparator", "score": 0.7857, "distance": 3, "groundTruth": { "entity": "matches", "loc": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/service/impl/UserPasswordAuthenAddOn.java:38" }, "recoveryResult": { "entity": "authenticate", "loc": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/service/impl/UserPasswordAuthenAddOn.java:25" }, "note": "path-length (d=3)" }, { "patternRole": "Enforcer", "score": 0.9286, "distance": 1, "groundTruth": { "entity": "login", "loc": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/controller/AuthenticationController.java:31" }, "recoveryResult": { "entity": "AuthenticationController", "loc": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/controller/AuthenticationController.java:25" }, "note": "path-length (d=1)" }, { "patternRole": "Hasher", "score": 0.8571, "distance": 2, "groundTruth": { "entity": "BCryptPasswordEncoder", "loc": "microservice-common/src/main/java/tech/corefinance/common/config/CommonAutoConfiguration.java:51" }, "recoveryResult": { "entity": "PasswordEncoder", "loc": "microservice-common/src/main/java/tech/corefinance/common/config/CommonAutoConfiguration.java:44" }, "note": "path-length (d=2)" }, { "patternRole": "Password store", "score": 0.9286, "distance": 1, "groundTruth": { "entity": "findFirstByEmailIgnoreCaseOrUsernameIgnoreCase", "loc": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/repository/CommonUserProfileRepository.java:12" }, "recoveryResult": { "entity": "CommonUserProfileRepository", "loc": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/repository/CommonUserProfileRepository.java:13" }, "note": "path-length (d=1)" }, { "patternRole": "Verification manager", "score": 0.6429, "distance": 5, "groundTruth": { "entity": "authenticate", "loc": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/service/impl/UserPasswordAuthenAddOn.java:33" }, "recoveryResult": { "entity": "AbstractAuthenService", "loc": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/service/impl/AbstractAuthenService.java:44" }, "note": "path-length (d=5)" } ], "notes": [ "Encrypter: 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": [ "Comparator", "Enforcer", "Hasher", "Password store", "Verification manager" ], "excludedRoles": [ "Encrypter", "Pepper store" ], "interactionsGroundTruth": 4, "interactionsRecoveryResult": 4, "sharedInteractions": 4, "unionSize": 4, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 4, "totalPairs": 6, "concordantPairs": 6, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 6, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/service/impl/AbstractAuthenService.java", "line": 113, "via": [ "tech.corefinance.userprofile.common.service.impl.AbstractAuthenService.login:tech.corefinance.common.dto.LoginDto(java.lang.String,java.lang.String,java.lang.String,java.lang.String,tech.corefinance.common.enums.AppPlatform,tech.corefinance.common.model.AppVersion,jakarta.servlet.http.HttpServletRequest)" ] }, "recoveryResult": { "file": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/controller/AuthenticationController.java", "line": 40, "via": [] } } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/service/impl/UserPasswordAuthenAddOn.java", "line": 34, "via": [] }, "recoveryResult": { "file": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/service/impl/UserPasswordAuthenAddOn.java", "line": 27, "via": [] } } }, { "interaction": "Verification manager \u2192 Hasher", "from": "Verification manager", "to": "Hasher", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/service/impl/UserPasswordAuthenAddOn.java", "line": 38, "via": [] }, "recoveryResult": { "file": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/service/impl/UserPasswordAuthenAddOn.java", "line": 34, "via": [] } } }, { "interaction": "Verification manager \u2192 Comparator", "from": "Verification manager", "to": "Comparator", "groundTruthRank": 4, "recoveryResultRank": 4, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/service/impl/UserPasswordAuthenAddOn.java", "line": 38, "via": [] }, "recoveryResult": { "file": "common-userprofile/src/main/java/tech/corefinance/userprofile/common/service/impl/UserPasswordAuthenAddOn.java", "line": 34, "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 5 roles both sides detected (Comparator, Enforcer, Hasher, 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, Pepper store. 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: Comparator, Hasher cite entities that are not symbols in this repository (a library or framework call). They can receive an interaction, but the walk cannot continue through them." ] } ], "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": 6, "rr_roles": 7, "struct_files": 520, "annotated_at": "2026-09-05 09:41:17.054000", "recovery_order": "stored" }, { "slug": "authentication_pwd__cdkjframework_wiki-framework", "id": "pwd-based-java/cdkjframework_wiki-framework/ClaudeCodeOpus5.0", "pattern": "authentication_pwd", "repo": "cdkjframework_wiki-framework", "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": "present", "recoveryResult": "present", "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": "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.975, "drift": 0.025, "detail": { "aggregate": 0.975, "scoredRoles": 5, "skippedRoles": 1, "treeHeight": 8 }, "perRole": [ { "patternRole": "Comparator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "matches", "loc": "security/wiki-security/src/main/java/com/cdkjframework/security/encrypt/Md5PasswordEncoder.java:34" }, "recoveryResult": { "entity": "matches", "loc": "security/wiki-security/src/main/java/com/cdkjframework/security/encrypt/Md5PasswordEncoder.java:34" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 0.9375, "distance": 1, "groundTruth": { "entity": "attemptAuthentication", "loc": "security/wiki-security/src/main/java/com/cdkjframework/security/authorization/AuthenticationFilter.java:40" }, "recoveryResult": { "entity": "AuthenticationFilter", "loc": "security/wiki-security/src/main/java/com/cdkjframework/security/authorization/AuthenticationFilter.java:24" }, "note": "path-length (d=1)" }, { "patternRole": "Hasher", "score": 1.0, "distance": 0, "groundTruth": { "entity": "encode", "loc": "security/wiki-security/src/main/java/com/cdkjframework/security/encrypt/Md5PasswordEncoder.java:22" }, "recoveryResult": { "entity": "encode", "loc": "security/wiki-security/src/main/java/com/cdkjframework/security/encrypt/Md5PasswordEncoder.java:22" }, "note": "path-length (d=0)" }, { "patternRole": "Password store", "score": 1.0, "distance": 0, "groundTruth": { "entity": "IUserDetailsService", "loc": "security/wiki-security/src/main/java/com/cdkjframework/security/service/impl/IUserDetailsService.java:16" }, "recoveryResult": { "entity": "IUserDetailsService", "loc": "security/wiki-security/src/main/java/com/cdkjframework/security/service/impl/IUserDetailsService.java:16" }, "note": "path-length (d=0)" }, { "patternRole": "Verification manager", "score": 0.9375, "distance": 1, "groundTruth": { "entity": "authenticate", "loc": "security/wiki-security/src/main/java/com/cdkjframework/security/authorization/UserAuthenticationProvider.java:74" }, "recoveryResult": { "entity": "UserAuthenticationProvider", "loc": "security/wiki-security/src/main/java/com/cdkjframework/security/authorization/UserAuthenticationProvider.java:38" }, "note": "path-length (d=1)" } ], "notes": [ "Encrypter: 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.75, "drift": 0.25, "detail": { "agreedRoles": [ "Comparator", "Enforcer", "Hasher", "Password store", "Verification manager" ], "excludedRoles": [ "Encrypter", "Pepper store" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 4, "sharedInteractions": 3, "unionSize": 4, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 0, "onlyRecoveryResult": 1, "interactionOverlap": 0.75, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "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": "security/wiki-security/src/main/java/com/cdkjframework/security/authorization/AuthenticationFilter.java", "line": 47, "via": [ "[spring] ProviderManager.authenticate" ] }, "recoveryResult": { "file": "security/wiki-security/src/main/java/com/cdkjframework/security/authorization/AuthenticationFilter.java", "line": 45, "via": [] } } }, { "interaction": "Verification manager \u2192 Comparator", "from": "Verification manager", "to": "Comparator", "groundTruthRank": 2, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "security/wiki-security/src/main/java/com/cdkjframework/security/authorization/UserAuthenticationProvider.java", "line": 102, "via": [] }, "recoveryResult": { "file": "security/wiki-security/src/main/java/com/cdkjframework/security/authorization/UserAuthenticationProvider.java", "line": 91, "via": [] } } }, { "interaction": "Comparator \u2192 Hasher", "from": "Comparator", "to": "Hasher", "groundTruthRank": 3, "recoveryResultRank": 4, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "security/wiki-security/src/main/java/com/cdkjframework/security/encrypt/Md5PasswordEncoder.java", "line": 41, "via": [] }, "recoveryResult": { "file": "security/wiki-security/src/main/java/com/cdkjframework/security/encrypt/Md5PasswordEncoder.java", "line": 41, "via": [] } } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "security/wiki-security/src/main/java/com/cdkjframework/security/authorization/UserAuthenticationProvider.java", "line": 84, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.75 \u00d7 1. Overlap: 3 of 4 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 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 5 roles both sides detected (Comparator, Enforcer, Hasher, 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, Pepper store. 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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": [ "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": 6, "rr_roles": 7, "struct_files": 773, "annotated_at": "2026-09-05 09:41:19.621000", "recovery_order": "stored" }, { "slug": "authentication_pwd__etiya-pair2_microservices", "id": "pwd-based-java/etiya-pair2_microservices/ClaudeCodeOpus5.5", "pattern": "authentication_pwd", "repo": "etiya-pair2_microservices", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.8571, "drift": 0.1429, "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": "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": "present", "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.9572, "drift": 0.0428, "detail": { "aggregate": 0.9572, "scoredRoles": 5, "skippedRoles": 2, "treeHeight": 7 }, "perRole": [ { "patternRole": "Comparator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "matches", "loc": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/AuthServiceImpl.java:26" }, "recoveryResult": { "entity": "matches", "loc": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/AuthServiceImpl.java:34" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 0.9286, "distance": 1, "groundTruth": { "entity": "login", "loc": "identityservice/src/main/java/com/etiya/identityservice/controller/AuthController.java:23" }, "recoveryResult": { "entity": "AuthController", "loc": "identityservice/src/main/java/com/etiya/identityservice/controller/AuthController.java:19" }, "note": "path-length (d=1)" }, { "patternRole": "Hasher", "score": 1.0, "distance": 0, "groundTruth": { "entity": "BCryptPasswordEncoder", "loc": "identityservice/src/main/java/com/etiya/identityservice/core/configuration/SecurityConfiguration.java:24" }, "recoveryResult": { "entity": "BCryptPasswordEncoder", "loc": "identityservice/src/main/java/com/etiya/identityservice/core/configuration/SecurityConfiguration.java:27" }, "note": "path-length (d=0)" }, { "patternRole": "Password store", "score": 0.9286, "distance": 1, "groundTruth": { "entity": "findByEmailIgnoreCase", "loc": "identityservice/src/main/java/com/etiya/identityservice/repository/UserRepository.java:12" }, "recoveryResult": { "entity": "UserRepository", "loc": "identityservice/src/main/java/com/etiya/identityservice/repository/UserRepository.java:13" }, "note": "path-length (d=1)" }, { "patternRole": "Verification manager", "score": 0.9286, "distance": 1, "groundTruth": { "entity": "login", "loc": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/AuthServiceImpl.java:24" }, "recoveryResult": { "entity": "AuthServiceImpl", "loc": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/AuthServiceImpl.java:24" }, "note": "path-length (d=1)" } ], "notes": [ "Encrypter: absent from the ground truth (Level 1 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)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": [ "Comparator", "Enforcer", "Hasher", "Password store", "Verification manager" ], "excludedRoles": [ "Encrypter", "Pepper store" ], "interactionsGroundTruth": 4, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 4, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 0, "interactionOverlap": 0.75, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 6, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "identityservice/src/main/java/com/etiya/identityservice/controller/AuthController.java", "line": 24, "via": [] }, "recoveryResult": { "file": "identityservice/src/main/java/com/etiya/identityservice/controller/AuthController.java", "line": 26, "via": [] } } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/UserServiceImpl.java", "line": 61, "via": [ "com.etiya.identityservice.service.concretes.UserServiceImpl.loadUserByUsername:org.springframework.security.core.userdetails.UserDetails(java.lang.String)" ] }, "recoveryResult": { "file": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/UserServiceImpl.java", "line": 60, "via": [] } } }, { "interaction": "Verification manager \u2192 Hasher", "from": "Verification manager", "to": "Hasher", "groundTruthRank": 3, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/AuthServiceImpl.java", "line": 26, "via": [] }, "recoveryResult": null } }, { "interaction": "Verification manager \u2192 Comparator", "from": "Verification manager", "to": "Comparator", "groundTruthRank": 4, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/AuthServiceImpl.java", "line": 26, "via": [] }, "recoveryResult": { "file": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/AuthServiceImpl.java", "line": 34, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.75 \u00d7 1. Overlap: 3 of 4 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 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 5 roles both sides detected (Comparator, Enforcer, Hasher, 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, Pepper store. 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: Comparator, Hasher cite entities that are not symbols in this repository (a library or framework call). They can receive an interaction, but the walk cannot continue through them." ] } ], "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": 348, "annotated_at": "2026-09-28 07:48:28.389000", "recovery_order": "stored" }, { "slug": "authentication_pwd__catch-money_java-impetus", "id": "pwd-based-java/catch-money_java-impetus/ClaudeCodeOpus5.0", "pattern": "authentication_pwd", "repo": "catch-money_java-impetus", "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": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Encrypter", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Comparator", "groundTruth": "external", "recoveryResult": "present", "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.7708, "drift": 0.2292, "detail": { "aggregate": 0.7708, "scoredRoles": 6, "skippedRoles": 6, "treeHeight": 8 }, "perRole": [ { "patternRole": "Comparator", "score": 0.8125, "distance": 3, "groundTruth": { "entity": "equals", "loc": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java:62" }, "recoveryResult": { "entity": "login", "loc": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java:63" }, "note": "path-length (d=3)" }, { "patternRole": "Encrypter", "score": 0.4375, "distance": 9, "groundTruth": { "entity": "decrypt", "loc": "java-impetus-common/src/main/java/io/github/jockerCN/secret/CryptoUtils.java:70" }, "recoveryResult": { "entity": "Cryption", "loc": "java-impetus-auth/src/main/java/io/github/jockerCN/secret/Cryption.java:10" }, "note": "path-length (d=9)" }, { "patternRole": "Enforcer", "score": 0.9375, "distance": 1, "groundTruth": { "entity": "login", "loc": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java:40\u2013124" }, "recoveryResult": { "entity": "LoginApi", "loc": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java:36" }, "note": "path-length (d=1)" }, { "patternRole": "Hasher", "score": 0.9375, "distance": 1, "groundTruth": { "entity": "md5", "loc": "java-impetus-common/src/main/java/io/github/jockerCN/secret/CryptoUtils.java:105" }, "recoveryResult": { "entity": "CryptoUtils", "loc": "java-impetus-common/src/main/java/io/github/jockerCN/secret/CryptoUtils.java:15" }, "note": "path-length (d=1)" }, { "patternRole": "Password store", "score": 0.5, "distance": 8, "groundTruth": { "entity": "getByUsername", "loc": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java:56" }, "recoveryResult": { "entity": "UserAccount", "loc": "java-impetus-auth/src/main/java/io/github/jockerCN/dao/UserAccount.java:18" }, "note": "path-length (d=8)" }, { "patternRole": "Verification manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "login", "loc": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java:42" }, "recoveryResult": { "entity": "login", "loc": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java:41" }, "note": "path-length (d=0)" } ], "notes": [ "Hash manager: 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)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.4286, "drift": 0.5714, "detail": { "agreedRoles": [ "Comparator", "Encrypter", "Enforcer", "Hasher", "Password store", "Verification manager" ], "excludedRoles": [ "Hash manager", "Password policy", "Pepper store", "Registrar", "Resetter", "SRNG" ], "interactionsGroundTruth": 7, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 7, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Verification manager", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 4, "onlyRecoveryResult": 0, "interactionOverlap": 0.4286, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 6, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java", "line": 40, "via": [] }, "recoveryResult": null } }, { "interaction": "Enforcer \u2192 Encrypter", "from": "Enforcer", "to": "Encrypter", "groundTruthRank": 2, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "java-impetus-common/src/main/java/io/github/jockerCN/secret/CryptoUtils.java", "line": 46, "via": [ "io.github.jockerCN.secret.Cryption.decryptAsString:java.lang.String(java.lang.Object)", "io.github.jockerCN.secret.Cryption.defaultCryption.Cryption$0.decrypt:byte[](java.lang.Object)", "io.github.jockerCN.secret.CryptoUtils.simpleDecrypt:byte[](java.lang.String)" ] }, "recoveryResult": null } }, { "interaction": "Verification manager \u2192 Encrypter", "from": "Verification manager", "to": "Encrypter", "groundTruthRank": 3, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "java-impetus-common/src/main/java/io/github/jockerCN/secret/CryptoUtils.java", "line": 46, "via": [ "io.github.jockerCN.secret.Cryption.decryptAsString:java.lang.String(java.lang.Object)", "io.github.jockerCN.secret.Cryption.defaultCryption.Cryption$0.decrypt:byte[](java.lang.Object)", "io.github.jockerCN.secret.CryptoUtils.simpleDecrypt:byte[](java.lang.String)" ] }, "recoveryResult": { "file": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java", "line": 43, "via": [] } } }, { "interaction": "Enforcer \u2192 Password store", "from": "Enforcer", "to": "Password store", "groundTruthRank": 4, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java", "line": 56, "via": [] }, "recoveryResult": null } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": 5, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java", "line": 56, "via": [] }, "recoveryResult": { "file": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java", "line": 57, "via": [] } } }, { "interaction": "Enforcer \u2192 Comparator", "from": "Enforcer", "to": "Comparator", "groundTruthRank": 6, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java", "line": 62, "via": [] }, "recoveryResult": null } }, { "interaction": "Verification manager \u2192 Comparator", "from": "Verification manager", "to": "Comparator", "groundTruthRank": 7, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java", "line": 62, "via": [] }, "recoveryResult": { "file": "java-impetus-auth-impl/src/main/java/io/github/jockerCN/api/LoginApi.java", "line": 63, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.4286 \u00d7 1. Overlap: 3 of 7 interactions were found by both sides (4 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 6 roles both sides detected (Comparator, Encrypter, Enforcer, Hasher, 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: Hash manager, Password policy, Pepper store, Registrar, Resetter, SRNG. 6 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Verification manager \u2014 stored.", "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: 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": 282, "annotated_at": "2026-09-26 17:24:33.414000", "recovery_order": "stored" }, { "slug": "authentication_pwd__edsonmartins_archbase-app-framework", "id": "pwd-based-java/edsonmartins_archbase-app-framework/ClaudeCodeOpus5.0", "pattern": "authentication_pwd", "repo": "edsonmartins_archbase-app-framework", "error": null, "over_input_limit": true, "prompt_tokens": 950581, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 950,581 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 950,581 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 950,581 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] } ] }, { "slug": "authentication_pwd__songqingwei_icloud", "id": "pwd-based-java/songqingwei_icloud/ClaudeCodeOpus5.5", "pattern": "authentication_pwd", "repo": "songqingwei_icloud", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.8571, "drift": 0.1429, "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": "missing", "recoveryResult": "external", "groundTruthDetected": false, "recoveryResultDetected": true, "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": 0.7639, "drift": 0.2361, "detail": { "aggregate": 0.7639, "scoredRoles": 4, "skippedRoles": 3, "treeHeight": 9 }, "perRole": [ { "patternRole": "Comparator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "matches", "loc": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/service/userService/impl/UserServiceImpl.java:44" }, "recoveryResult": { "entity": "matches", "loc": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/service/userService/impl/UserServiceImpl.java:46" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 0.6111, "distance": 7, "groundTruth": { "entity": "login", "loc": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/api/impl/AdminInterfaceImpl.java:34\u201337" }, "recoveryResult": { "entity": "SecurityConfig", "loc": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/config/SecurityConfig.java:25" }, "note": "path-length (d=7)" }, { "patternRole": "Password store", "score": 0.5, "distance": 9, "groundTruth": { "entity": "selectByUsername", "loc": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/service/userService/impl/UserServiceImpl.java:39" }, "recoveryResult": { "entity": "UserMapper", "loc": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/dao/mapper/UserMapper.java:10" }, "note": "path-length (d=9)" }, { "patternRole": "Verification manager", "score": 0.9444, "distance": 1, "groundTruth": { "entity": "login", "loc": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/service/userService/impl/UserServiceImpl.java:37\u201360" }, "recoveryResult": { "entity": "UserServiceImpl", "loc": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/service/userService/impl/UserServiceImpl.java:28" }, "note": "path-length (d=1)" } ], "notes": [ "Encrypter: absent from the ground truth (Level 1 negative)", "Hasher: absent from the ground truth (Level 1 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)", "available": true, "headlineLabel": "Interaction agreement", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Comparator", "Enforcer", "Password store", "Verification manager" ], "excludedRoles": [ "Encrypter", "Hasher", "Pepper store" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "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": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/api/impl/AdminInterfaceImpl.java", "line": 36, "via": [] }, "recoveryResult": { "file": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/service/userService/impl/UserServiceImpl.java", "line": 39, "via": [] } } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/service/userService/impl/UserServiceImpl.java", "line": 39, "via": [] }, "recoveryResult": { "file": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/dao/mapper/UserMapper.java", "line": 19, "via": [] } } }, { "interaction": "Verification manager \u2192 Comparator", "from": "Verification manager", "to": "Comparator", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/service/userService/impl/UserServiceImpl.java", "line": 44, "via": [] }, "recoveryResult": { "file": "icloud-starters/icloud-starter-admin/src/main/java/cn/isqing/icloud/starter/admin/service/userService/impl/UserServiceImpl.java", "line": 46, "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 (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, Hasher, Pepper store. 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 7, "rr_roles": 7, "struct_files": 373, "annotated_at": "2026-10-05 21:39:46.243000", "recovery_order": "stored" }, { "slug": "authentication_pwd__scality_osis", "id": "pwd-based-java/scality_osis/ClaudeCodeOpus5.5", "pattern": "authentication_pwd", "repo": "scality_osis", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate (present/external/missing)", "available": true, "headlineLabel": "Roles agreed", "score": 0.8571, "drift": 0.1429, "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": "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": "present", "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.8889, "drift": 0.1111, "detail": { "aggregate": 0.8889, "scoredRoles": 5, "skippedRoles": 2, "treeHeight": 9 }, "perRole": [ { "patternRole": "Comparator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "matches", "loc": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginAuthenticationProvider.java:49" }, "recoveryResult": { "entity": "matches", "loc": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginAuthenticationProvider.java:57" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 0.6111, "distance": 7, "groundTruth": { "entity": "LoginProcessingFilter", "loc": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginProcessingFilter.java:32" }, "recoveryResult": { "entity": "OsisJwtWebSecurityConfigurerAdapter", "loc": "osis-core/src/main/java/com/scality/osis/security/config/OsisJwtWebSecurityConfigurerAdapter.java:39" }, "note": "path-length (d=7)" }, { "patternRole": "Hasher", "score": 1.0, "distance": 0, "groundTruth": { "entity": "BCryptPasswordEncoder", "loc": "osis-core/src/main/java/com/scality/osis/security/config/OsisJwtBeans.java:28" }, "recoveryResult": { "entity": "BCryptPasswordEncoder", "loc": "osis-core/src/main/java/com/scality/osis/security/config/OsisJwtBeans.java:44" }, "note": "path-length (d=0)" }, { "patternRole": "Password store", "score": 0.9444, "distance": 1, "groundTruth": { "entity": "loadUserByUsername", "loc": "osis-core/src/main/java/com/scality/osis/security/platform/PlatformUserDetailsService.java:23" }, "recoveryResult": { "entity": "PlatformUserDetailsService", "loc": "osis-core/src/main/java/com/scality/osis/security/platform/PlatformUserDetailsService.java:22" }, "note": "path-length (d=1)" }, { "patternRole": "Verification manager", "score": 0.8889, "distance": 2, "groundTruth": { "entity": "authenticate", "loc": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginAuthenticationProvider.java:39" }, "recoveryResult": { "entity": "LoginAuthenticationProvider", "loc": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginAuthenticationProvider.java:35" }, "note": "path-length (d=2)" } ], "notes": [ "Encrypter: absent from the ground truth (Level 1 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)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.6, "drift": 0.4, "detail": { "agreedRoles": [ "Comparator", "Enforcer", "Hasher", "Password store", "Verification manager" ], "excludedRoles": [ "Encrypter", "Pepper store" ], "interactionsGroundTruth": 5, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 5, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 2, "onlyRecoveryResult": 0, "interactionOverlap": 0.6, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 6, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginProcessingFilter.java", "line": 58, "via": [ "[spring] ProviderManager.authenticate" ] }, "recoveryResult": { "file": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginProcessingFilter.java", "line": 67, "via": [] } } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginAuthenticationProvider.java", "line": 44, "via": [] }, "recoveryResult": { "file": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginAuthenticationProvider.java", "line": 51, "via": [] } } }, { "interaction": "Password store \u2192 Hasher", "from": "Password store", "to": "Hasher", "groundTruthRank": 3, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "osis-core/src/main/java/com/scality/osis/security/platform/PlatformUserDetails.java", "line": 25, "via": [ "com.scality.osis.security.platform.PlatformUserDetails.<init>:void(java.lang.String,java.lang.String)" ] }, "recoveryResult": null } }, { "interaction": "Verification manager \u2192 Hasher", "from": "Verification manager", "to": "Hasher", "groundTruthRank": 4, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginAuthenticationProvider.java", "line": 49, "via": [] }, "recoveryResult": null } }, { "interaction": "Verification manager \u2192 Comparator", "from": "Verification manager", "to": "Comparator", "groundTruthRank": 5, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginAuthenticationProvider.java", "line": 49, "via": [] }, "recoveryResult": { "file": "osis-core/src/main/java/com/scality/osis/security/jwt/login/LoginAuthenticationProvider.java", "line": 57, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.6 \u00d7 1. Overlap: 3 of 5 interactions were found by both sides (2 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 5 roles both sides detected (Comparator, Enforcer, Hasher, 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, Pepper store. 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: Comparator, Hasher cite entities that are not symbols in this repository (a library or framework call). They can receive an interaction, but the walk cannot continue through them." ] } ], "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": 147, "annotated_at": "2026-09-28 07:48:28.389000", "recovery_order": "stored" }, { "slug": "authentication_pwd__ncats_gsrs-spring-starter", "id": "pwd-based-java/ncats_gsrs-spring-starter/ClaudeCodeOpus5.5", "pattern": "authentication_pwd", "repo": "ncats_gsrs-spring-starter", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate", "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": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "missing", "groundTruthDetected": false, "recoveryResultDetected": false, "outcome": "agreed" }, { "patternRole": "Encrypter", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "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": 0.8727, "drift": 0.1273, "detail": { "aggregate": 0.8727, "scoredRoles": 5, "skippedRoles": 2, "treeHeight": 11 }, "perRole": [ { "patternRole": "Comparator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "acceptPassword", "loc": "gsrs-core-entities/src/main/java/ix/core/models/UserProfile.java:206" }, "recoveryResult": { "entity": "acceptPassword", "loc": "gsrs-core-entities/src/main/java/ix/core/models/UserProfile.java:218" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 0.9545, "distance": 1, "groundTruth": { "entity": "doFilterInternal", "loc": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java:74" }, "recoveryResult": { "entity": "LegacyAuthenticationFilter", "loc": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java:47" }, "note": "path-length (d=1)" }, { "patternRole": "Hasher", "score": 0.9091, "distance": 2, "groundTruth": { "entity": "generateSecret", "loc": "gsrs-core/src/main/java/gsrs/util/GsrsPasswordHasher.java:59" }, "recoveryResult": { "entity": "GsrsPasswordHasher", "loc": "gsrs-core/src/main/java/gsrs/util/GsrsPasswordHasher.java:16" }, "note": "path-length (d=2)" }, { "patternRole": "Password store", "score": 0.5455, "distance": 10, "groundTruth": { "entity": "findByUser_UsernameIgnoreCase", "loc": "gsrs-core-entities/src/main/java/gsrs/repository/UserProfileRepository.java:24" }, "recoveryResult": { "entity": "hashp", "loc": "gsrs-core-entities/src/main/java/ix/core/models/UserProfile.java:61" }, "note": "path-length (d=10)" }, { "patternRole": "Verification manager", "score": 0.9545, "distance": 1, "groundTruth": { "entity": "acceptPassword", "loc": "gsrs-core-entities/src/main/java/ix/core/models/UserProfile.java:206" }, "recoveryResult": { "entity": "UserProfile", "loc": "gsrs-core-entities/src/main/java/ix/core/models/UserProfile.java:33" }, "note": "path-length (d=1)" } ], "notes": [ "Encrypter: absent from the ground truth (Level 1 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)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.25, "drift": 0.75, "detail": { "agreedRoles": [ "Comparator", "Enforcer", "Hasher", "Password store", "Verification manager" ], "excludedRoles": [ "Encrypter", "Pepper store" ], "interactionsGroundTruth": 7, "interactionsRecoveryResult": 4, "sharedInteractions": 3, "unionSize": 8, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 4, "onlyRecoveryResult": 1, "interactionOverlap": 0.375, "orderAgreement": 0.6667, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 2, "discordantPairs": 1, "kendallTau": 0.3333, "prescribedActionSteps": 6, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 Password store", "from": "Enforcer", "to": "Password store", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java", "line": 148, "via": [] }, "recoveryResult": null } }, { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 2, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java", "line": 173, "via": [] }, "recoveryResult": { "file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyGsrsAuthenticationProvider.java", "line": 78, "via": [] } } }, { "interaction": "Enforcer \u2192 Comparator", "from": "Enforcer", "to": "Comparator", "groundTruthRank": 3, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java", "line": 173, "via": [] }, "recoveryResult": null } }, { "interaction": "Verification manager \u2192 Comparator", "from": "Verification manager", "to": "Comparator", "groundTruthRank": 4, "recoveryResultRank": 4, "outcome": "reordered", "discordantWith": 1, "evidence": { "groundTruth": { "file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java", "line": 173, "via": [] }, "recoveryResult": { "file": "gsrs-core-entities/src/main/java/ix/core/models/UserProfile.java", "line": 224, "via": [] } } }, { "interaction": "Verification manager \u2192 Hasher", "from": "Verification manager", "to": "Hasher", "groundTruthRank": 5, "recoveryResultRank": 3, "outcome": "reordered", "discordantWith": 1, "evidence": { "groundTruth": { "file": "gsrs-core/src/main/java/gsrs/util/GsrsPasswordHasher.java", "line": 59, "via": [ "gsrs.util.GsrsPasswordHasher.hash:java.lang.String(java.lang.String[])", "gsrs.util.GsrsPasswordHasher.hash:java.lang.String(java.lang.String,java.lang.String,int)" ] }, "recoveryResult": { "file": "gsrs-core-entities/src/main/java/ix/core/models/UserProfile.java", "line": 224, "via": [] } } }, { "interaction": "Comparator \u2192 Hasher", "from": "Comparator", "to": "Hasher", "groundTruthRank": 6, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "gsrs-core/src/main/java/gsrs/util/GsrsPasswordHasher.java", "line": 59, "via": [ "gsrs.util.GsrsPasswordHasher.hash:java.lang.String(java.lang.String[])", "gsrs.util.GsrsPasswordHasher.hash:java.lang.String(java.lang.String,java.lang.String,int)" ] }, "recoveryResult": null } }, { "interaction": "Enforcer \u2192 Hasher", "from": "Enforcer", "to": "Hasher", "groundTruthRank": 7, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "gsrs-core/src/main/java/gsrs/util/GsrsPasswordHasher.java", "line": 59, "via": [ "gsrs.security.LegacyAuthenticationFilter.<lambda>11:<unresolvedSignature>(1)", "ix.core.models.UserProfile.setPassword:void(java.lang.String)", "gsrs.util.LegacyTypeSalter.generateSalt:java.lang.String()", "gsrs.util.GsrsPasswordHasher.hash:java.lang.String(java.lang.String[])", "gsrs.util.GsrsPasswordHasher.hash:java.lang.String(java.lang.String,java.lang.String,int)" ] }, "recoveryResult": null } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "gsrs-core-entities/src/main/java/ix/core/models/UserProfile.java", "line": 223, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.375 \u00d7 0.6667. Overlap: 3 of 8 interactions were found by both sides (4 only in the ground truth, 1 only in the recovery result), |shared| / |union|.", "Order: Kendall's Tau over the 3 shared interactions, in each side's own relative order \u2014 1 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 5 roles both sides detected (Comparator, Enforcer, Hasher, 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, Pepper store. 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": 812, "annotated_at": "2026-10-06 09:53:50.669000", "recovery_order": "stored" }, { "slug": "authentication_pwd__contentmunch_contentmunch-parent", "id": "pwd-based-java/contentmunch_contentmunch-parent/ClaudeCodeOpus5.5", "pattern": "authentication_pwd", "repo": "contentmunch_contentmunch-parent", "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": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Password store", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "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": "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.8, "drift": 0.2, "detail": { "aggregate": 0.8, "scoredRoles": 5, "skippedRoles": 2, "treeHeight": 8 }, "perRole": [ { "patternRole": "Comparator", "score": 0.625, "distance": 6, "groundTruth": { "entity": "matches", "loc": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/config/SecurityConfig.java:55" }, "recoveryResult": { "entity": "DaoAuthenticationProvider", "loc": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java:64" }, "note": "path-length (d=6)" }, { "patternRole": "Enforcer", "score": 0.9375, "distance": 1, "groundTruth": { "entity": "login", "loc": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java:36" }, "recoveryResult": { "entity": "AuthController", "loc": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java:38" }, "note": "path-length (d=1)" }, { "patternRole": "Hasher", "score": 0.625, "distance": 6, "groundTruth": { "entity": "matches", "loc": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/config/SecurityConfig.java:55" }, "recoveryResult": { "entity": "PasswordEncoder", "loc": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java:64" }, "note": "path-length (d=6)" }, { "patternRole": "Password store", "score": 0.9375, "distance": 1, "groundTruth": { "entity": "loadContentmunchUser", "loc": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/service/PropertyUserDetailsService.java:14" }, "recoveryResult": { "entity": "PropertyUserDetailsService", "loc": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/service/PropertyUserDetailsService.java:12" }, "note": "path-length (d=1)" }, { "patternRole": "Verification manager", "score": 0.875, "distance": 2, "groundTruth": { "entity": "authenticate", "loc": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java:38" }, "recoveryResult": { "entity": "AuthenticationManager", "loc": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java:27" }, "note": "path-length (d=2)" } ], "notes": [ "Encrypter: absent from the ground truth (Level 1 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)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.5, "drift": 0.5, "detail": { "agreedRoles": [ "Comparator", "Enforcer", "Hasher", "Password store", "Verification manager" ], "excludedRoles": [ "Encrypter", "Pepper store" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 4, "sharedInteractions": 2, "unionSize": 4, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 0, "onlyRecoveryResult": 2, "interactionOverlap": 0.5, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 6, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 Verification manager", "from": "Enforcer", "to": "Verification manager", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java", "line": 38, "via": [] }, "recoveryResult": { "file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java", "line": 64, "via": [] } } }, { "interaction": "Verification manager \u2192 Password store", "from": "Verification manager", "to": "Password store", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/service/ContentmunchUserDetailsService.java", "line": 12, "via": [] }, "recoveryResult": { "file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/service/PropertyUserDetailsService.java", "line": 14, "via": [] } } }, { "interaction": "Verification manager \u2192 Hasher", "from": "Verification manager", "to": "Hasher", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java", "line": 0, "via": [] } } }, { "interaction": "Verification manager \u2192 Comparator", "from": "Verification manager", "to": "Comparator", "groundTruthRank": null, "recoveryResultRank": 4, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java", "line": 0, "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 5 roles both sides detected (Comparator, Enforcer, Hasher, 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, Pepper store. 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: Comparator, Hasher, Verification manager cite entities that are not symbols in this repository (a library or framework call). They can receive an interaction, but the walk cannot continue through them." ] } ], "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": 50, "annotated_at": "2026-10-06 09:53:50.166000", "recovery_order": "stored" }, { "slug": "authentication_pwd__m4rc310RCP_core-api", "id": "pwd-based-java/m4rc310RCP_core-api/ClaudeCodeOpus5.5", "pattern": "authentication_pwd", "repo": "m4rc310RCP_core-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.2857, "drift": 0.7143, "detail": { "agreedRoles": 2, "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": "missing", "recoveryResult": "external", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Hasher", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Pepper store", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Encrypter", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Comparator", "groundTruth": "missing", "recoveryResult": "external", "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": 0.75, "drift": 0.25, "detail": { "aggregate": 0.75, "scoredRoles": 2, "skippedRoles": 5, "treeHeight": 7 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.5714, "distance": 6, "groundTruth": { "entity": "doFilterInternal", "loc": "br-com-m4rc310-core-graphql/src/main/java/br/com/m4rc310/core/graphql/configurations/security/filters/MGraphQLOncePerRequestFilter.java:51" }, "recoveryResult": { "entity": "MAuthInterceptor", "loc": "br-com-m4rc310-core-graphql/src/main/java/br/com/m4rc310/core/graphql/configurations/security/MAuthInterceptor.java:27" }, "note": "path-length (d=6)" }, { "patternRole": "Verification manager", "score": 0.9286, "distance": 1, "groundTruth": { "entity": "getMUser", "loc": "br-com-m4rc310-core-graphql/src/main/java/br/com/m4rc310/core/graphql/configurations/security/impls/MGraphQLJwtService.java:137" }, "recoveryResult": { "entity": "MGraphQLJwtService", "loc": "br-com-m4rc310-core-graphql/src/main/java/br/com/m4rc310/core/graphql/configurations/security/impls/MGraphQLJwtService.java:38" }, "note": "path-length (d=1)" } ], "notes": [ "Comparator: absent from the ground truth (Level 1 negative)", "Encrypter: absent from the ground truth (Level 1 negative)", "Hasher: absent from the ground truth (Level 1 negative)", "Password store: absent from the ground truth (Level 1 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)", "available": true, "headlineLabel": "Interaction agreement", "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": "stored", "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": "br-com-m4rc310-core-graphql/src/main/java/br/com/m4rc310/core/graphql/configurations/security/impls/MGraphQLJwtService.java", "line": 81, "via": [ "br.com.m4rc310.core.graphql.configurations.security.impls.MGraphQLJwtService.getDTOUser:br.com.m4rc310.core.graphql.configurations.security.dtos.MUser(jakarta.servlet.http.HttpServletRequest)" ] }, "recoveryResult": { "file": "br-com-m4rc310-core-graphql/src/main/java/br/com/m4rc310/core/graphql/configurations/security/filters/MGraphQLOncePerRequestFilter.java", "line": 46, "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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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": [ "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": 63, "annotated_at": "2026-10-06 09:53:50.585000", "recovery_order": "stored" }, { "slug": "obscure_token_based_access_control__ctlabs-dev_auth-spring-boot-starter", "id": "obscure-token-ac-java/ctlabs-dev_auth-spring-boot-starter/ClaudeCodeOpus5.5", "pattern": "obscure_token_based_access_control", "repo": "ctlabs-dev_auth-spring-boot-starter", "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": "external", "recoveryResult": "external", "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.9375, "drift": 0.0625, "detail": { "aggregate": 0.9375, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 8 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.875, "distance": 2, "groundTruth": { "entity": "refreshToken", "loc": "src/main/java/dev/ctlabs/starter/auth/infrastructure/controller/AuthController.java:100" }, "recoveryResult": { "entity": "AuthController", "loc": "src/main/java/dev/ctlabs/starter/auth/infrastructure/controller/AuthController.java:115" }, "note": "path-length (d=2)" }, { "patternRole": "Hasher", "score": 0.875, "distance": 2, "groundTruth": { "entity": "BCryptPasswordEncoder", "loc": "src/main/java/dev/ctlabs/starter/auth/autoconfigure/AuthAutoConfiguration.java:86" }, "recoveryResult": { "entity": "PasswordEncoder", "loc": "src/main/java/dev/ctlabs/starter/auth/autoconfigure/AuthAutoConfiguration.java:90" }, "note": "path-length (d=2)" }, { "patternRole": "Token manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "RefreshTokenRepository", "loc": "src/main/java/dev/ctlabs/starter/auth/domain/repository/RefreshTokenRepository.java:14" }, "recoveryResult": { "entity": "RefreshTokenRepository", "loc": "src/main/java/dev/ctlabs/starter/auth/domain/repository/RefreshTokenRepository.java:14" }, "note": "path-length (d=0)" }, { "patternRole": "Validator", "score": 1.0, "distance": 0, "groundTruth": { "entity": "refreshToken", "loc": "src/main/java/dev/ctlabs/starter/auth/application/service/AuthService.java:574" }, "recoveryResult": { "entity": "refreshToken", "loc": "src/main/java/dev/ctlabs/starter/auth/application/service/AuthService.java:562" }, "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": [ "Enforcer", "Hasher", "Token manager", "Validator" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "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": "src/main/java/dev/ctlabs/starter/auth/infrastructure/controller/AuthController.java", "line": 101, "via": [] }, "recoveryResult": { "file": "src/main/java/dev/ctlabs/starter/auth/infrastructure/controller/AuthController.java", "line": 120, "via": [] } } }, { "interaction": "Validator \u2192 Token manager", "from": "Validator", "to": "Token manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/dev/ctlabs/starter/auth/application/service/AuthService.java", "line": 587, "via": [] }, "recoveryResult": { "file": "src/main/java/dev/ctlabs/starter/auth/application/service/AuthService.java", "line": 585, "via": [] } } }, { "interaction": "Validator \u2192 Hasher", "from": "Validator", "to": "Hasher", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/dev/ctlabs/starter/auth/application/service/AuthService.java", "line": 599, "via": [] }, "recoveryResult": { "file": "src/main/java/dev/ctlabs/starter/auth/application/service/AuthService.java", "line": 596, "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 (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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 82, "annotated_at": "2026-10-01 20:43:54.511000", "recovery_order": "stored" }, { "slug": "obscure_token_based_access_control__HesandaLiyanage_theVaultOfficial", "id": "obscure-token-ac-java/HesandaLiyanage_theVaultOfficial/ClaudeCodeOpus5.5", "pattern": "obscure_token_based_access_control", "repo": "HesandaLiyanage_theVaultOfficial", "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": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Validator", "groundTruth": "present", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "Hasher", "groundTruth": "external", "recoveryResult": "present", "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.5952, "drift": 0.4048, "detail": { "aggregate": 0.5952, "scoredRoles": 3, "skippedRoles": 1, "treeHeight": 7 }, "perRole": [ { "patternRole": "Hasher", "score": 0.7857, "distance": 3, "groundTruth": { "entity": "BCryptPasswordEncoder", "loc": "vault-server/src/main/java/com/hess/thevault/config/PasswordConfig.java:13" }, "recoveryResult": { "entity": "passwordEncoder", "loc": "vault-server/src/main/java/com/hess/thevault/config/PasswordConfig.java:12" }, "note": "path-length (d=3)" }, { "patternRole": "Token manager", "score": 0.5714, "distance": 6, "groundTruth": { "entity": "findByKeyPrefix", "loc": "vault-server/src/main/java/com/hess/thevault/apikey/ApiKeyRepository.java:10" }, "recoveryResult": { "entity": "ApiKeyService", "loc": "vault-server/src/main/java/com/hess/thevault/apikey/ApiKeyService.java:35" }, "note": "path-length (d=6)" }, { "patternRole": "Validator", "score": 0.4286, "distance": 8, "groundTruth": { "entity": "validateRawKey", "loc": "vault-server/src/main/java/com/hess/thevault/apikey/ApiKeyService.java:117" }, "recoveryResult": { "entity": "InternalController", "loc": "vault-server/src/main/java/com/hess/thevault/internal/InternalController.java:38" }, "note": "path-length (d=8)" } ], "notes": [ "Enforcer: 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": [ "Hasher", "Token manager", "Validator" ], "excludedRoles": [ "Enforcer" ], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 2, "entryRoleGroundTruth": "Validator", "entryRoleRecoveryResult": "Validator", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "orderAgreement": 0.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 0, "discordantPairs": 1, "kendallTau": -1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Validator \u2192 Token manager", "from": "Validator", "to": "Token manager", "groundTruthRank": 1, "recoveryResultRank": 2, "outcome": "reordered", "discordantWith": 1, "evidence": { "groundTruth": { "file": "vault-server/src/main/java/com/hess/thevault/apikey/ApiKeyService.java", "line": 122, "via": [] }, "recoveryResult": { "file": "vault-server/src/main/java/com/hess/thevault/apikey/ApiKeyService.java", "line": 143, "via": [] } } }, { "interaction": "Validator \u2192 Hasher", "from": "Validator", "to": "Hasher", "groundTruthRank": 2, "recoveryResultRank": 1, "outcome": "reordered", "discordantWith": 1, "evidence": { "groundTruth": { "file": "vault-server/src/main/java/com/hess/thevault/apikey/ApiKeyService.java", "line": 124, "via": [ "com.hess.thevault.apikey.ApiKeyService.<lambda>1:boolean(java.lang.Object)" ] }, "recoveryResult": { "file": "vault-server/src/main/java/com/hess/thevault/apikey/ApiKeyService.java", "line": 145, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 1 \u00d7 0. 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 1 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 (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 it: Enforcer. 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.", "Ground truth: the walk started at Validator \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Validator \u2014 stored.", "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: 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": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 116, "annotated_at": "2026-10-02 15:08:26.327000", "recovery_order": "stored" }, { "slug": "obscure_token_based_access_control__codebarista-de_shopware-app-server", "id": "obscure-token-ac-java/codebarista-de_shopware-app-server/ClaudeCodeOpus5.5", "pattern": "obscure_token_based_access_control", "repo": "codebarista-de_shopware-app-server", "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": "external", "recoveryResult": "present", "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.6719, "drift": 0.3281, "detail": { "aggregate": 0.6719, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 8 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.6875, "distance": 5, "groundTruth": { "entity": "ShopwareController", "loc": "src/main/java/de/codebarista/shopware/appserver/controller/ShopwareController.java:22\u201376" }, "recoveryResult": { "entity": "TokenService", "loc": "src/main/java/de/codebarista/shopware/appserver/TokenService.java:16" }, "note": "path-length (d=5)" }, { "patternRole": "Hasher", "score": 0.8125, "distance": 3, "groundTruth": { "entity": "MessageDigest", "loc": "src/main/java/de/codebarista/shopware/appserver/service/SignatureService.java:33" }, "recoveryResult": { "entity": "hash", "loc": "src/main/java/de/codebarista/shopware/appserver/service/SignatureService.java:100" }, "note": "path-length (d=3)" }, { "patternRole": "Token manager", "score": 0.6875, "distance": 5, "groundTruth": { "entity": "ShopwareAccessTokenClientService", "loc": "src/main/java/de/codebarista/shopware/appserver/service/ShopwareAccessTokenClientService.java:29\u2013140" }, "recoveryResult": { "entity": "ShopManagementService", "loc": "src/main/java/de/codebarista/shopware/appserver/service/ShopManagementService.java:31" }, "note": "path-length (d=5)" }, { "patternRole": "Validator", "score": 0.5, "distance": 8, "groundTruth": { "entity": "findByAppKeyAndShopId", "loc": "src/main/java/de/codebarista/shopware/appserver/model/ShopwareShopEntityRepository.java:9" }, "recoveryResult": { "entity": "isAppTokenValid", "loc": "src/main/java/de/codebarista/shopware/appserver/service/TokenServiceImpl.java:64" }, "note": "path-length (d=8)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.2, "drift": 0.8, "detail": { "agreedRoles": [ "Enforcer", "Hasher", "Token manager", "Validator" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 1, "unionSize": 5, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 2, "onlyRecoveryResult": 2, "interactionOverlap": 0.2, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "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/main/java/de/codebarista/shopware/appserver/controller/ShopwareController.java", "line": 44, "via": [] }, "recoveryResult": { "file": "src/main/java/de/codebarista/shopware/appserver/service/TokenServiceImpl.java", "line": 65, "via": [] } } }, { "interaction": "Enforcer \u2192 Token manager", "from": "Enforcer", "to": "Token manager", "groundTruthRank": 2, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/main/java/de/codebarista/shopware/appserver/service/AdminApiService.java", "line": 179, "via": [ "com.example.shopwareapp.MyShopwareApp.onEvent:void(de.codebarista.shopware.appserver.api.dto.event.ShopwareEventDto,long,java.util.Locale,java.lang.String)", "com.example.shopwareapp.MyShopwareApp.handleOrderWritten:void(de.codebarista.shopware.appserver.api.dto.event.ShopwareEventDto,java.lang.String)", "de.codebarista.shopware.appserver.service.AdminApiService.pushSuccessMessage:void(de.codebarista.shopware.appserver.ShopwareApp,java.lang.String,java.lang.String)", "de.codebarista.shopware.appserver.service.AdminApiService.pushMessage:void(de.codebarista.shopware.appserver.ShopwareApp,java.lang.String,de.codebarista.shopware.appserver.service.dto.CreateShopwareNotificationDto)", "de.codebarista.shopware.appserver.service.AdminApiService.postEntity:void(de.codebarista.shopware.appserver.ShopwareApp,java.lang.String,java.lang.String,java.lang.Object)", "de.codebarista.shopware.appserver.service.AdminApiService.getTokenAndSetAuthorizationHeader:org.springframework.http.HttpHeaders(de.codebarista.shopware.appserver.ShopwareApp,java.lang.String)" ] }, "recoveryResult": null } }, { "interaction": "Token manager \u2192 Validator", "from": "Token manager", "to": "Validator", "groundTruthRank": 3, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/main/java/de/codebarista/shopware/appserver/service/ShopManagementService.java", "line": 145, "via": [ "de.codebarista.shopware.appserver.service.ShopManagementService.getShopByIdOrThrow:de.codebarista.shopware.appserver.model.ShopwareShopEntity(de.codebarista.shopware.appserver.ShopwareApp,java.lang.String)" ] }, "recoveryResult": null } }, { "interaction": "Validator \u2192 Token manager", "from": "Validator", "to": "Token manager", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "src/main/java/de/codebarista/shopware/appserver/service/TokenServiceImpl.java", "line": 70, "via": [] } } }, { "interaction": "Validator \u2192 Hasher", "from": "Validator", "to": "Hasher", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "src/main/java/de/codebarista/shopware/appserver/service/TokenServiceImpl.java", "line": 81, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.2 \u00d7 1. Overlap: 1 of 5 interactions were found by both sides (2 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 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 105, "annotated_at": "2026-10-01 20:39:10.390000", "recovery_order": "stored" }, { "slug": "obscure_token_based_access_control__jwcarman_who", "id": "obscure-token-ac-java/jwcarman_who/ClaudeCodeOpus5.5", "pattern": "obscure_token_based_access_control", "repo": "jwcarman_who", "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": "external", "recoveryResult": "present", "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.5417, "drift": 0.4583, "detail": { "aggregate": 0.5417, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 6 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.9167, "distance": 1, "groundTruth": { "entity": "doFilterInternal", "loc": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyAuthenticationFilter.java:65\u201384" }, "recoveryResult": { "entity": "ApiKeyAuthenticationFilter", "loc": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyAuthenticationFilter.java:38" }, "note": "path-length (d=1)" }, { "patternRole": "Hasher", "score": 0.1667, "distance": 10, "groundTruth": { "entity": "sha256Hex", "loc": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyService.java:84\u201386" }, "recoveryResult": { "entity": "MessageDigests", "loc": "who-core/src/main/java/org/jwcarman/who/core/crypto/MessageDigests.java:20" }, "note": "path-length (d=10)" }, { "patternRole": "Token manager", "score": 0.9167, "distance": 1, "groundTruth": { "entity": "findByKeyHash", "loc": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyCredentialRepository.java:30" }, "recoveryResult": { "entity": "ApiKeyCredentialRepository", "loc": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyCredentialRepository.java:18" }, "note": "path-length (d=1)" }, { "patternRole": "Validator", "score": 0.1667, "distance": 10, "groundTruth": { "entity": "doFilterInternal", "loc": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyAuthenticationFilter.java:65\u201384" }, "recoveryResult": { "entity": "WhoService", "loc": "who-core/src/main/java/org/jwcarman/who/core/service/WhoService.java:48" }, "note": "path-length (d=10)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.5333, "drift": 0.4667, "detail": { "agreedRoles": [ "Enforcer", "Hasher", "Token manager", "Validator" ], "excludedRoles": [], "interactionsGroundTruth": 5, "interactionsRecoveryResult": 4, "sharedInteractions": 4, "unionSize": 5, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 0, "interactionOverlap": 0.8, "orderAgreement": 0.6667, "rankedInteractions": 4, "totalPairs": 6, "concordantPairs": 4, "discordantPairs": 2, "kendallTau": 0.3333, "prescribedActionSteps": 3, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Validator", "from": "Enforcer", "to": "Validator", "groundTruthRank": 1, "recoveryResultRank": 3, "outcome": "reordered", "discordantWith": 2, "evidence": { "groundTruth": { "file": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyAuthenticationFilter.java", "line": 65, "via": [] }, "recoveryResult": { "file": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyAuthenticationFilter.java", "line": 75, "via": [] } } }, { "interaction": "Enforcer \u2192 Hasher", "from": "Enforcer", "to": "Hasher", "groundTruthRank": 2, "recoveryResultRank": 1, "outcome": "reordered", "discordantWith": 1, "evidence": { "groundTruth": { "file": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyAuthenticationFilter.java", "line": 72, "via": [] }, "recoveryResult": { "file": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyAuthenticationFilter.java", "line": 73, "via": [] } } }, { "interaction": "Validator \u2192 Hasher", "from": "Validator", "to": "Hasher", "groundTruthRank": 3, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyAuthenticationFilter.java", "line": 72, "via": [] }, "recoveryResult": null } }, { "interaction": "Enforcer \u2192 Token manager", "from": "Enforcer", "to": "Token manager", "groundTruthRank": 4, "recoveryResultRank": 2, "outcome": "reordered", "discordantWith": 1, "evidence": { "groundTruth": { "file": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyAuthenticationFilter.java", "line": 73, "via": [] }, "recoveryResult": { "file": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyAuthenticationFilter.java", "line": 74, "via": [] } } }, { "interaction": "Validator \u2192 Token manager", "from": "Validator", "to": "Token manager", "groundTruthRank": 5, "recoveryResultRank": 4, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "who-apikey/src/main/java/org/jwcarman/who/apikey/ApiKeyAuthenticationFilter.java", "line": 73, "via": [] }, "recoveryResult": { "file": "who-core/src/main/java/org/jwcarman/who/core/service/WhoService.java", "line": 92, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.8 \u00d7 0.6667. Overlap: 4 of 5 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 4 shared interactions, in each side's own relative order \u2014 2 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, 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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": "annotation", "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": 92, "annotated_at": "2026-10-02 15:50:45.553000", "recovery_order": "stored" }, { "slug": "obscure_token_based_access_control__liuhailove_gscheduler-core", "id": "obscure-token-ac-java/liuhailove_gscheduler-core/ClaudeCodeOpus5.5", "pattern": "obscure_token_based_access_control", "repo": "liuhailove_gscheduler-core", "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": "present", "groundTruthDetected": false, "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.9259, "drift": 0.0741, "detail": { "aggregate": 0.9259, "scoredRoles": 3, "skippedRoles": 1, "treeHeight": 9 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.9444, "distance": 1, "groundTruth": { "entity": "update", "loc": "src/main/java/com/tc/gschedulercore/controller/JobInfoOpenApiController.java:99" }, "recoveryResult": { "entity": "JobInfoOpenApiController", "loc": "src/main/java/com/tc/gschedulercore/controller/JobInfoOpenApiController.java:40" }, "note": "path-length (d=1)" }, { "patternRole": "Token manager", "score": 0.9444, "distance": 1, "groundTruth": { "entity": "loadByAccessToken", "loc": "src/main/java/com/tc/gschedulercore/dao/OpenApiDao.java:54" }, "recoveryResult": { "entity": "OpenApiDao", "loc": "src/main/java/com/tc/gschedulercore/dao/OpenApiDao.java:20" }, "note": "path-length (d=1)" }, { "patternRole": "Validator", "score": 0.8889, "distance": 2, "groundTruth": { "entity": "canHandleJobBy", "loc": "src/main/java/com/tc/gschedulercore/service/impl/JobServiceImpl.java:1125" }, "recoveryResult": { "entity": "canHandleJob", "loc": "src/main/java/com/tc/gschedulercore/service/impl/JobServiceImpl.java:878" }, "note": "path-length (d=2)" } ], "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)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.6667, "drift": 0.3333, "detail": { "agreedRoles": [ "Enforcer", "Token manager", "Validator" ], "excludedRoles": [ "Hasher" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 0, "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 Token manager", "from": "Enforcer", "to": "Token manager", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/main/java/com/tc/gschedulercore/service/impl/JobServiceImpl.java", "line": 1094, "via": [ "com.tc.gschedulercore.service.impl.JobServiceImpl.canHandleJob:boolean(java.lang.String,int,java.lang.String)" ] }, "recoveryResult": null } }, { "interaction": "Enforcer \u2192 Validator", "from": "Enforcer", "to": "Validator", "groundTruthRank": 2, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/com/tc/gschedulercore/service/impl/JobServiceImpl.java", "line": 1111, "via": [ "com.tc.gschedulercore.service.impl.JobServiceImpl.canHandleJob:boolean(java.lang.String,int,java.lang.String)" ] }, "recoveryResult": { "file": "src/main/java/com/tc/gschedulercore/controller/JobInfoOpenApiController.java", "line": 95, "via": [] } } }, { "interaction": "Validator \u2192 Token manager", "from": "Validator", "to": "Token manager", "groundTruthRank": 3, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/com/tc/gschedulercore/service/impl/JobServiceImpl.java", "line": 1126, "via": [] }, "recoveryResult": { "file": "src/main/java/com/tc/gschedulercore/service/impl/JobServiceImpl.java", "line": 886, "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, 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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": "annotation", "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": 209, "annotated_at": "2026-10-02 16:23:44.019000", "recovery_order": "stored" }, { "slug": "obscure_token_based_access_control__cloudfoundry_uaa", "id": "obscure-token-ac-java/cloudfoundry_uaa/ClaudeCodeOpus5.0", "pattern": "obscure_token_based_access_control", "repo": "cloudfoundry_uaa", "error": null, "over_input_limit": true, "prompt_tokens": 3120532, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 3,120,532 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 3,120,532 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 3,120,532 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] } ] }, { "slug": "obscure_token_based_access_control__edsonmartins_archbase-app-framework", "id": "obscure-token-ac-java/edsonmartins_archbase-app-framework/ClaudeCodeOpus5.0", "pattern": "obscure_token_based_access_control", "repo": "edsonmartins_archbase-app-framework", "error": null, "over_input_limit": true, "prompt_tokens": 950197, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 950,197 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 950,197 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 950,197 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] } ] }, { "slug": "obscure_token_based_access_control__SolarNetwork_solarnetwork-central", "id": "obscure-token-ac-java/SolarNetwork_solarnetwork-central/ClaudeCodeOpus5.5", "pattern": "obscure_token_based_access_control", "repo": "SolarNetwork_solarnetwork-central", "error": null, "over_input_limit": true, "prompt_tokens": 5178230, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 5,178,230 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 5,178,230 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 5,178,230 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] } ] }, { "slug": "obscure_token_based_access_control__shuigedeng_taotao-cloud-project", "id": "obscure-token-ac-java/shuigedeng_taotao-cloud-project/ClaudeCodeOpus5.0", "pattern": "obscure_token_based_access_control", "repo": "shuigedeng_taotao-cloud-project", "error": null, "over_input_limit": true, "prompt_tokens": 7073119, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 7,073,119 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 7,073,119 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 7,073,119 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] } ] }, { "slug": "obscure_token_based_access_control__alexk-dev_golemcore-bot", "id": "obscure-token-ac-java/alexk-dev_golemcore-bot/ClaudeCodeOpus5.5", "pattern": "obscure_token_based_access_control", "repo": "alexk-dev_golemcore-bot", "error": null, "over_input_limit": true, "prompt_tokens": 2390474, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 2,390,474 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 2,390,474 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 2,390,474 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] } ] }, { "slug": "verifiable_token_based_authentication__modulepub_tg-boot", "id": "token-based-java/modulepub_tg-boot/ClaudeCodeOpus5.0", "pattern": "verifiable_token_based_authentication", "repo": "modulepub_tg-boot", "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.9305, "drift": 0.0695, "detail": { "aggregate": 0.9305, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 9 }, "perRole": [ { "patternRole": "Cryptographer", "score": 0.8889, "distance": 2, "groundTruth": { "entity": "HMAC256", "loc": "spring-boot-starter-module/spring-boot-starter-common/src/main/java/pub/module/common/security/jwt/JwtSupport.java:18" }, "recoveryResult": { "entity": "JWT", "loc": "spring-boot-starter-module/spring-boot-starter-common/src/main/java/pub/module/common/security/jwt/JwtSupport.java:5" }, "note": "path-length (d=2)" }, { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "TgJwtAuthenticationFilter", "loc": "spring-boot-starter-module/spring-boot-starter-common/src/main/java/pub/module/common/security/filter/TgJwtAuthenticationFilter.java:31" }, "recoveryResult": { "entity": "TgJwtAuthenticationFilter", "loc": "spring-boot-starter-module/spring-boot-starter-common/src/main/java/pub/module/common/security/filter/TgJwtAuthenticationFilter.java:28" }, "note": "path-length (d=0)" }, { "patternRole": "Key manager", "score": 0.8889, "distance": 2, "groundTruth": { "entity": "secret", "loc": "spring-boot-starter-module/spring-boot-starter-common/src/main/java/pub/module/common/security/jwt/TgJwtProperties.java:13" }, "recoveryResult": { "entity": "TgJwtProperties", "loc": "spring-boot-starter-module/spring-boot-starter-common/src/main/java/pub/module/common/security/jwt/TgJwtProperties.java:9" }, "note": "path-length (d=2)" }, { "patternRole": "Verifier", "score": 0.9444, "distance": 1, "groundTruth": { "entity": "verify", "loc": "spring-boot-starter-module/spring-boot-starter-common/src/main/java/pub/module/common/security/jwt/JwtSupport.java:49" }, "recoveryResult": { "entity": "JwtSupport", "loc": "spring-boot-starter-module/spring-boot-starter-common/src/main/java/pub/module/common/security/jwt/JwtSupport.java:11" }, "note": "path-length (d=1)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.3333, "drift": 0.6667, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 3, "sharedInteractions": 1, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 0, "onlyRecoveryResult": 2, "interactionOverlap": 0.3333, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 3, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "spring-boot-starter-module/spring-boot-starter-common/src/main/java/pub/module/common/security/filter/TgJwtAuthenticationFilter.java", "line": 56, "via": [] }, "recoveryResult": { "file": "spring-boot-starter-module/spring-boot-starter-common/src/main/java/pub/module/common/security/filter/TgJwtAuthenticationFilter.java", "line": 55, "via": [] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "spring-boot-starter-module/spring-boot-starter-common/src/main/java/pub/module/common/security/jwt/JwtSupport.java", "line": 16, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "spring-boot-starter-module/spring-boot-starter-common/src/main/java/pub/module/common/security/jwt/JwtSupport.java", "line": 55, "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 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": 947, "annotated_at": "2026-09-05 09:41:38.086000", "recovery_order": "stored" }, { "slug": "verifiable_token_based_authentication__indiana-university_lms-embedded-services", "id": "token-based-java/indiana-university_lms-embedded-services/ClaudeCodeOpus5.0", "pattern": "verifiable_token_based_authentication", "repo": "indiana-university_lms-embedded-services", "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": "external", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "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.775, "drift": 0.225, "detail": { "aggregate": 0.775, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 10 }, "perRole": [ { "patternRole": "Cryptographer", "score": 0.5, "distance": 10, "groundTruth": { "entity": "NimbusJwtDecoder", "loc": "lti-framework/src/main/java/uk/ac/ox/ctl/lti13/security/oauth2/client/lti/authentication/OidcLaunchFlowAuthenticationProvider.java:213" }, "recoveryResult": { "entity": "KeyServiceUtil", "loc": "lti-framework/src/main/java/edu/iu/uits/lms/lti/service/KeyServiceUtil.java:47" }, "note": "path-length (d=10)" }, { "patternRole": "Enforcer", "score": 0.95, "distance": 1, "groundTruth": { "entity": "OAuth2LoginAuthenticationFilter", "loc": "lti-framework/src/main/java/uk/ac/ox/ctl/lti13/security/oauth2/client/lti/web/OAuth2LoginAuthenticationFilter.java:130" }, "recoveryResult": { "entity": "OAuth2LoginAuthenticationFilter", "loc": "lti-framework/src/main/java/uk/ac/ox/ctl/lti13/security/oauth2/client/lti/web/OAuth2LoginAuthenticationFilter.java:139" }, "note": "path-length (d=1)" }, { "patternRole": "Key manager", "score": 0.7, "distance": 6, "groundTruth": { "entity": "jwkSetUri", "loc": "lti-framework/src/main/java/edu/iu/uits/lms/lti/config/LtiClientRegistrationProperties.java:63" }, "recoveryResult": { "entity": "Lti13Service", "loc": "lti-framework/src/main/java/edu/iu/uits/lms/lti/service/Lti13Service.java:44" }, "note": "path-length (d=6)" }, { "patternRole": "Verifier", "score": 0.95, "distance": 1, "groundTruth": { "entity": "createOidcToken", "loc": "lti-framework/src/main/java/uk/ac/ox/ctl/lti13/security/oauth2/client/lti/authentication/OidcLaunchFlowAuthenticationProvider.java:190" }, "recoveryResult": { "entity": "OidcLaunchFlowAuthenticationProvider", "loc": "lti-framework/src/main/java/uk/ac/ox/ctl/lti13/security/oauth2/client/lti/authentication/OidcLaunchFlowAuthenticationProvider.java:92" }, "note": "path-length (d=1)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.25, "drift": 0.75, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 3, "sharedInteractions": 1, "unionSize": 4, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 2, "interactionOverlap": 0.25, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 3, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Key manager", "from": "Enforcer", "to": "Key manager", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "lti-framework/src/main/java/edu/iu/uits/lms/lti/config/LmsClientRegistrationRepository.java", "line": 89, "via": [ "edu.iu.uits.lms.lti.config.LmsClientRegistrationRepository.findByRegistrationId:org.springframework.security.oauth2.client.registration.ClientRegistration(java.lang.String)", "edu.iu.uits.lms.lti.config.LmsClientRegistrationRepository.buildRegistrations:java.util.Map()" ] }, "recoveryResult": null } }, { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 2, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "lti-framework/src/main/java/uk/ac/ox/ctl/lti13/security/oauth2/client/lti/authentication/OidcLaunchFlowAuthenticationProvider.java", "line": 144, "via": [ "[spring] ProviderManager.authenticate", "uk.ac.ox.ctl.lti13.security.oauth2.client.lti.authentication.OidcLaunchFlowAuthenticationProvider.authenticate:org.springframework.security.core.Authentication(org.springframework.security.core.Authentication)" ] }, "recoveryResult": { "file": "lti-framework/src/main/java/uk/ac/ox/ctl/lti13/security/oauth2/client/lti/authentication/OidcLaunchFlowAuthenticationProvider.java", "line": 148, "via": [] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "lti-framework/src/main/java/uk/ac/ox/ctl/lti13/security/oauth2/client/lti/authentication/OidcLaunchFlowAuthenticationProvider.java", "line": 170, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "lti-framework/src/main/java/uk/ac/ox/ctl/lti13/security/oauth2/client/lti/authentication/OidcLaunchFlowAuthenticationProvider.java", "line": 174, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.25 \u00d7 1. Overlap: 1 of 4 interactions were found by both sides (1 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 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": 417, "annotated_at": "2026-09-05 09:41:36.168000", "recovery_order": "stored" }, { "slug": "verifiable_token_based_authentication__srinivasboini_leha-commons", "id": "token-based-java/srinivasboini_leha-commons/ClaudeCodeOpus5.0", "pattern": "verifiable_token_based_authentication", "repo": "srinivasboini_leha-commons", "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": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Key manager", "groundTruth": "external", "recoveryResult": "external", "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.8125, "drift": 0.1875, "detail": { "aggregate": 0.8125, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 4 }, "perRole": [ { "patternRole": "Cryptographer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "NimbusJwtDecoder", "loc": "src/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java:72" }, "recoveryResult": { "entity": "NimbusJwtDecoder", "loc": "src/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java:65" }, "note": "path-length (d=0)" }, { "patternRole": "Enforcer", "score": 0.875, "distance": 1, "groundTruth": { "entity": "securityFilterChain", "loc": "src/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java:37" }, "recoveryResult": { "entity": "AccessControlConfiguration", "loc": "src/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java:32" }, "note": "path-length (d=1)" }, { "patternRole": "Key manager", "score": 0.75, "distance": 2, "groundTruth": { "entity": "withJwkSetUri", "loc": "src/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java:63" }, "recoveryResult": { "entity": "OAuth2ResourceServerProperties", "loc": "src/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java:66" }, "note": "path-length (d=2)" }, { "patternRole": "Verifier", "score": 0.625, "distance": 3, "groundTruth": { "entity": "jwtDecoder", "loc": "src/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java:59" }, "recoveryResult": { "entity": "NimbusJwtDecoder", "loc": "src/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java:65" }, "note": "path-length (d=3)" } ], "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": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 3, "sharedInteractions": 2, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "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/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java", "line": 53, "via": [ "io.github.srinivasboini.common.security.AccessControlConfiguration.<lambda>0:<unresolvedSignature>(1)", "io.github.srinivasboini.common.security.AccessControlConfiguration.<lambda>1:<unresolvedSignature>(1)" ] }, "recoveryResult": { "file": "src/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java", "line": 52, "via": [] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java", "line": 62, "via": [] }, "recoveryResult": { "file": "src/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java", "line": 68, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "src/main/java/io/github/srinivasboini/common/security/AccessControlConfiguration.java", "line": 70, "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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: Cryptographer, Key manager cite entities that are not symbols in this repository (a library or framework call). They can receive an interaction, but the walk cannot continue through them." ] } ], "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-09-05 09:41:40.183000", "recovery_order": "stored" }, { "slug": "verifiable_token_based_authentication__liuhailove_gscheduler-core", "id": "token-based-java/liuhailove_gscheduler-core/ClaudeCodeOpus5.0", "pattern": "verifiable_token_based_authentication", "repo": "liuhailove_gscheduler-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": "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.9583, "drift": 0.0417, "detail": { "aggregate": 0.9583, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 9 }, "perRole": [ { "patternRole": "Cryptographer", "score": 0.8333, "distance": 3, "groundTruth": { "entity": "HMAC256", "loc": "src/main/java/com/tc/gschedulercore/util/JwtUtils.java:58" }, "recoveryResult": { "entity": "verifyToken", "loc": "src/main/java/com/tc/gschedulercore/util/JwtUtils.java:52" }, "note": "path-length (d=3)" }, { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "AuthorizationInterceptor", "loc": "src/main/java/com/tc/gschedulercore/controller/auth/AuthorizationInterceptor.java:23" }, "recoveryResult": { "entity": "AuthorizationInterceptor", "loc": "src/main/java/com/tc/gschedulercore/controller/auth/AuthorizationInterceptor.java:24" }, "note": "path-length (d=0)" }, { "patternRole": "Key manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "SECRET", "loc": "src/main/java/com/tc/gschedulercore/util/JwtUtils.java:29" }, "recoveryResult": { "entity": "SECRET", "loc": "src/main/java/com/tc/gschedulercore/util/JwtUtils.java:33" }, "note": "path-length (d=0)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "verifyToken", "loc": "src/main/java/com/tc/gschedulercore/util/JwtUtils.java:52" }, "recoveryResult": { "entity": "verifyToken", "loc": "src/main/java/com/tc/gschedulercore/util/JwtUtils.java:52" }, "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": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "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/main/java/com/tc/gschedulercore/controller/auth/AuthorizationInterceptor.java", "line": 34, "via": [] }, "recoveryResult": { "file": "src/main/java/com/tc/gschedulercore/controller/auth/AuthorizationInterceptor.java", "line": 37, "via": [] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/com/tc/gschedulercore/util/JwtUtils.java", "line": 58, "via": [] }, "recoveryResult": { "file": "src/main/java/com/tc/gschedulercore/util/JwtUtils.java", "line": 58, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/com/tc/gschedulercore/util/JwtUtils.java", "line": 58, "via": [] }, "recoveryResult": { "file": "src/main/java/com/tc/gschedulercore/util/JwtUtils.java", "line": 59, "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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": 209, "annotated_at": "2026-09-05 09:41:37.282000", "recovery_order": "stored" }, { "slug": "verifiable_token_based_authentication__gvfbossa_bws-base-api", "id": "token-based-java/gvfbossa_bws-base-api/ClaudeCodeOpus5.5", "pattern": "verifiable_token_based_authentication", "repo": "gvfbossa_bws-base-api", "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.9375, "drift": 0.0625, "detail": { "aggregate": 0.9375, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 6 }, "perRole": [ { "patternRole": "Cryptographer", "score": 0.8333, "distance": 2, "groundTruth": { "entity": "parseSignedClaims", "loc": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java:77" }, "recoveryResult": { "entity": "Jwts", "loc": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java:83" }, "note": "path-length (d=2)" }, { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "JWTAuthorizationFilter", "loc": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java:23" }, "recoveryResult": { "entity": "JWTAuthorizationFilter", "loc": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java:20" }, "note": "path-length (d=0)" }, { "patternRole": "Key manager", "score": 0.9167, "distance": 1, "groundTruth": { "entity": "getSecretKey", "loc": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/SecurityConstants.java:55" }, "recoveryResult": { "entity": "SecurityConstants", "loc": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/SecurityConstants.java:20" }, "note": "path-length (d=1)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "getAuthentication", "loc": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java:72" }, "recoveryResult": { "entity": "getAuthentication", "loc": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java:80" }, "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": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "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/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java", "line": 53, "via": [] }, "recoveryResult": { "file": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java", "line": 61, "via": [] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java", "line": 75, "via": [] }, "recoveryResult": { "file": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java", "line": 84, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java", "line": 74, "via": [] }, "recoveryResult": { "file": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java", "line": 86, "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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": 17, "annotated_at": "2026-09-28 07:48:28.389000", "recovery_order": "stored" }, { "slug": "verifiable_token_based_authentication__melih-vardar_e-commerce-microservices", "id": "token-based-java/melih-vardar_e-commerce-microservices/ClaudeCodeOpus5.5", "pattern": "verifiable_token_based_authentication", "repo": "melih-vardar_e-commerce-microservices", "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.8542, "drift": 0.1458, "detail": { "aggregate": 0.8542, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 6 }, "perRole": [ { "patternRole": "Cryptographer", "score": 0.8333, "distance": 2, "groundTruth": { "entity": "parseClaimsJws", "loc": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtService.java:80" }, "recoveryResult": { "entity": "Jwts", "loc": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtService.java:88" }, "note": "path-length (d=2)" }, { "patternRole": "Enforcer", "score": 0.9167, "distance": 1, "groundTruth": { "entity": "BaseJwtAuthFilter", "loc": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtAuthFilter.java:20" }, "recoveryResult": { "entity": "BaseJwtAuthFilter", "loc": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtAuthFilter.java:24" }, "note": "path-length (d=1)" }, { "patternRole": "Key manager", "score": 0.75, "distance": 3, "groundTruth": { "entity": "secretKey", "loc": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtService.java:23" }, "recoveryResult": { "entity": "init", "loc": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtService.java:32" }, "note": "path-length (d=3)" }, { "patternRole": "Verifier", "score": 0.9167, "distance": 1, "groundTruth": { "entity": "validateToken", "loc": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtService.java:84" }, "recoveryResult": { "entity": "BaseJwtService", "loc": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtService.java:24" }, "note": "path-length (d=1)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.5, "drift": 0.5, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 2, "unionSize": 4, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 1, "interactionOverlap": 0.5, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Cryptographer", "from": "Enforcer", "to": "Cryptographer", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtService.java", "line": 77, "via": [ "io.github.melihvardar.security.jwt.BaseJwtService.extractEmail:java.lang.String(java.lang.String)", "io.github.melihvardar.security.jwt.BaseJwtService.extractAllClaims:io.jsonwebtoken.Claims(java.lang.String)" ] }, "recoveryResult": null } }, { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 2, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtAuthFilter.java", "line": 54, "via": [] }, "recoveryResult": { "file": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtAuthFilter.java", "line": 61, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtService.java", "line": 77, "via": [ "io.github.melihvardar.security.jwt.BaseJwtService.extractAllClaims:io.jsonwebtoken.Claims(java.lang.String)" ] }, "recoveryResult": { "file": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtService.java", "line": 89, "via": [] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "common/src/main/java/io/github/melihvardar/security/jwt/BaseJwtService.java", "line": 86, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.5 \u00d7 1. Overlap: 2 of 4 interactions were found by both sides (1 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": 57, "annotated_at": "2026-09-28 07:48:28.389000", "recovery_order": "stored" }, { "slug": "verifiable_token_based_authentication__ddphin_ddphin-security", "id": "token-based-java/ddphin_ddphin-security/ClaudeCodeOpus5.5", "pattern": "verifiable_token_based_authentication", "repo": "ddphin_ddphin-security", "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.875, "drift": 0.125, "detail": { "aggregate": 0.875, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 5 }, "perRole": [ { "patternRole": "Cryptographer", "score": 0.8, "distance": 2, "groundTruth": { "entity": "verify", "loc": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java:87" }, "recoveryResult": { "entity": "JWT", "loc": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java:3" }, "note": "path-length (d=2)" }, { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "AJwtAuthenticationFilter", "loc": "src/main/java/com/ddphin/security/filter/AJwtAuthenticationFilter.java:30" }, "recoveryResult": { "entity": "AJwtAuthenticationFilter", "loc": "src/main/java/com/ddphin/security/filter/AJwtAuthenticationFilter.java:32" }, "note": "path-length (d=0)" }, { "patternRole": "Key manager", "score": 0.8, "distance": 2, "groundTruth": { "entity": "JWT_HMAC256", "loc": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java:28" }, "recoveryResult": { "entity": "AJWTAbstractService", "loc": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java:38" }, "note": "path-length (d=2)" }, { "patternRole": "Verifier", "score": 0.9, "distance": 1, "groundTruth": { "entity": "validate", "loc": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java:82" }, "recoveryResult": { "entity": "AJWTAbstractService", "loc": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java:33" }, "note": "path-length (d=1)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 4, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 4, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 0, "interactionOverlap": 0.75, "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/main/java/com/ddphin/security/provider/AJwtAuthenticationProvider.java", "line": 28, "via": [ "[spring] ProviderManager.authenticate", "com.ddphin.security.provider.AJwtAuthenticationProvider.authenticate:org.springframework.security.core.Authentication(org.springframework.security.core.Authentication)" ] }, "recoveryResult": { "file": "src/main/java/com/ddphin/security/filter/AJwtAuthenticationFilter.java", "line": 72, "via": [] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java", "line": 83, "via": [] }, "recoveryResult": { "file": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java", "line": 91, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java", "line": 83, "via": [] }, "recoveryResult": { "file": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java", "line": 94, "via": [] } } }, { "interaction": "Enforcer \u2192 Key manager", "from": "Enforcer", "to": "Key manager", "groundTruthRank": 4, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java", "line": 121, "via": [ "com.ddphin.security.handler.AIdentityAuthenticationSuccessHandler.onAuthenticationSuccess:void(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,org.springframework.security.core.Authentication)", "com.ddphin.security.endpoint.service.AJWTAbstractService.create:java.lang.String()", "com.ddphin.security.endpoint.service.AJWTAbstractService.create:java.lang.String(com.ddphin.security.entity.AIdentity,java.lang.String[])" ] }, "recoveryResult": null } } ], "notes": [ "Score = overlap \u00d7 order = 0.75 \u00d7 1. Overlap: 3 of 4 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 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": 43, "annotated_at": "2026-09-28 07:48:28.389000", "recovery_order": "stored" }, { "slug": "verifiable_token_based_authentication__valtimo-platform_valtimo-backend-libraries", "id": "token-based-java/valtimo-platform_valtimo-backend-libraries/ClaudeCodeOpus5.5", "pattern": "verifiable_token_based_authentication", "repo": "valtimo-platform_valtimo-backend-libraries", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate", "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.7625, "drift": 0.2375, "detail": { "aggregate": 0.7625, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 10 }, "perRole": [ { "patternRole": "Cryptographer", "score": 0.9, "distance": 2, "groundTruth": { "entity": "parseClaimsJws", "loc": "core/src/main/java/com/ritense/valtimo/security/jwt/authentication/TokenAuthenticationService.java:57" }, "recoveryResult": { "entity": "Jwts", "loc": "core/src/main/java/com/ritense/valtimo/security/jwt/authentication/TokenAuthenticationService.java:72" }, "note": "path-length (d=2)" }, { "patternRole": "Enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "JwtFilter", "loc": "core/src/main/java/com/ritense/valtimo/security/jwt/JwtFilter.java:43" }, "recoveryResult": { "entity": "JwtFilter", "loc": "core/src/main/java/com/ritense/valtimo/security/jwt/JwtFilter.java:43" }, "note": "path-length (d=0)" }, { "patternRole": "Key manager", "score": 0.25, "distance": 15, "groundTruth": { "entity": "getKey", "loc": "keycloak-iam/src/main/java/com/valtimo/keycloak/security/jwt/provider/KeycloakSecretKeyProvider.java:49" }, "recoveryResult": { "entity": "SecretKeyResolver", "loc": "core/src/main/java/com/ritense/valtimo/security/jwt/provider/SecretKeyResolver.java:30" }, "note": "path-length (d=15)" }, { "patternRole": "Verifier", "score": 0.9, "distance": 2, "groundTruth": { "entity": "validateToken", "loc": "core/src/main/java/com/ritense/valtimo/security/jwt/authentication/TokenAuthenticationService.java:55" }, "recoveryResult": { "entity": "TokenAuthenticationService", "loc": "core/src/main/java/com/ritense/valtimo/security/jwt/authentication/TokenAuthenticationService.java:34" }, "note": "path-length (d=2)" } ], "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": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 3, "sharedInteractions": 2, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "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": "core/src/main/java/com/ritense/valtimo/security/jwt/JwtFilter.java", "line": 61, "via": [] }, "recoveryResult": { "file": "core/src/main/java/com/ritense/valtimo/security/jwt/JwtFilter.java", "line": 63, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "core/src/main/java/com/ritense/valtimo/security/jwt/authentication/TokenAuthenticationService.java", "line": 57, "via": [] }, "recoveryResult": { "file": "core/src/main/java/com/ritense/valtimo/security/jwt/authentication/TokenAuthenticationService.java", "line": 76, "via": [] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "core/src/main/java/com/ritense/valtimo/security/jwt/authentication/TokenAuthenticationService.java", "line": 77, "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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": 808, "annotated_at": "2026-09-28 07:48:28.389000", "recovery_order": "stored" }, { "slug": "verifiable_token_based_authentication__RicardoMorim_Auth-Provider", "id": "token-based-java/RicardoMorim_Auth-Provider/ClaudeCodeOpus5.5", "pattern": "verifiable_token_based_authentication", "repo": "RicardoMorim_Auth-Provider", "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": 0.8571, "distance": 2, "groundTruth": { "entity": "verifyWith", "loc": "src/main/java/com/ricardo/auth/service/JwtServiceImpl.java:139" }, "recoveryResult": { "entity": "Jwts", "loc": "src/main/java/com/ricardo/auth/service/JwtServiceImpl.java:66" }, "note": "path-length (d=2)" }, { "patternRole": "Enforcer", "score": 0.9286, "distance": 1, "groundTruth": { "entity": "JwtAuthFilter", "loc": "src/main/java/com/ricardo/auth/security/JwtAuthFilter.java:29" }, "recoveryResult": { "entity": "JwtAuthFilter", "loc": "src/main/java/com/ricardo/auth/security/JwtAuthFilter.java:41" }, "note": "path-length (d=1)" }, { "patternRole": "Key manager", "score": 0.9286, "distance": 1, "groundTruth": { "entity": "getPublicKey", "loc": "src/main/java/com/ricardo/auth/service/InMemoryRsaKeyProvider.java:44" }, "recoveryResult": { "entity": "InMemoryRsaKeyProvider", "loc": "src/main/java/com/ricardo/auth/service/InMemoryRsaKeyProvider.java:14" }, "note": "path-length (d=1)" }, { "patternRole": "Verifier", "score": 0.9286, "distance": 1, "groundTruth": { "entity": "isTokenValid", "loc": "src/main/java/com/ricardo/auth/service/JwtServiceImpl.java:91" }, "recoveryResult": { "entity": "JwtServiceImpl", "loc": "src/main/java/com/ricardo/auth/service/JwtServiceImpl.java:15" }, "note": "path-length (d=1)" } ], "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": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "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/main/java/com/ricardo/auth/security/JwtAuthFilter.java", "line": 96, "via": [] }, "recoveryResult": { "file": "src/main/java/com/ricardo/auth/security/JwtAuthFilter.java", "line": 122, "via": [] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/com/ricardo/auth/service/JwtServiceImpl.java", "line": 139, "via": [ "com.ricardo.auth.service.JwtServiceImpl.extractAllClaims:io.jsonwebtoken.Claims(java.lang.String)" ] }, "recoveryResult": { "file": "src/main/java/com/ricardo/auth/service/JwtServiceImpl.java", "line": 140, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/com/ricardo/auth/service/JwtServiceImpl.java", "line": 138, "via": [ "com.ricardo.auth.service.JwtServiceImpl.extractAllClaims:io.jsonwebtoken.Claims(java.lang.String)" ] }, "recoveryResult": { "file": "src/main/java/com/ricardo/auth/service/JwtServiceImpl.java", "line": 139, "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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": 179, "annotated_at": "2026-09-28 07:48:28.389000", "recovery_order": "stored" }, { "slug": "verifiable_token_based_authentication__ErtanSidar_turkcell-common", "id": "token-based-java/ErtanSidar_turkcell-common/ClaudeCodeOpus5.5", "pattern": "verifiable_token_based_authentication", "repo": "ErtanSidar_turkcell-common", "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.9, "drift": 0.1, "detail": { "aggregate": 0.9, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 5 }, "perRole": [ { "patternRole": "Cryptographer", "score": 0.8, "distance": 2, "groundTruth": { "entity": "parseSignedClaims", "loc": "src/main/java/io/github/ertansidar/security/jwt/BaseJwtService.java:46" }, "recoveryResult": { "entity": "Jwts", "loc": "src/main/java/io/github/ertansidar/security/jwt/BaseJwtService.java:3" }, "note": "path-length (d=2)" }, { "patternRole": "Enforcer", "score": 0.9, "distance": 1, "groundTruth": { "entity": "doFilterInternal", "loc": "src/main/java/io/github/ertansidar/security/filter/BaseJwtAuthFilter.java:27" }, "recoveryResult": { "entity": "BaseJwtAuthFilter", "loc": "src/main/java/io/github/ertansidar/security/filter/BaseJwtAuthFilter.java:30" }, "note": "path-length (d=1)" }, { "patternRole": "Key manager", "score": 1.0, "distance": 0, "groundTruth": { "entity": "getSignKey", "loc": "src/main/java/io/github/ertansidar/security/jwt/BaseJwtService.java:71" }, "recoveryResult": { "entity": "getSignKey", "loc": "src/main/java/io/github/ertansidar/security/jwt/BaseJwtService.java:70" }, "note": "path-length (d=0)" }, { "patternRole": "Verifier", "score": 0.9, "distance": 1, "groundTruth": { "entity": "validateToken", "loc": "src/main/java/io/github/ertansidar/security/jwt/BaseJwtService.java:41" }, "recoveryResult": { "entity": "BaseJwtService", "loc": "src/main/java/io/github/ertansidar/security/jwt/BaseJwtService.java:24" }, "note": "path-length (d=1)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.75, "drift": 0.25, "detail": { "agreedRoles": [ "Cryptographer", "Enforcer", "Key manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 4, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 4, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 0, "interactionOverlap": 0.75, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 3, "prescribedStepsCovered": 3 }, "perRole": [ { "interaction": "Enforcer \u2192 Key manager", "from": "Enforcer", "to": "Key manager", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/main/java/io/github/ertansidar/security/jwt/BaseJwtService.java", "line": 54, "via": [ "io.github.ertansidar.security.jwt.BaseJwtService.extractUsername:java.lang.String(java.lang.String)" ] }, "recoveryResult": null } }, { "interaction": "Enforcer \u2192 Verifier", "from": "Enforcer", "to": "Verifier", "groundTruthRank": 2, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/io/github/ertansidar/security/filter/BaseJwtAuthFilter.java", "line": 45, "via": [] }, "recoveryResult": { "file": "src/main/java/io/github/ertansidar/security/filter/BaseJwtAuthFilter.java", "line": 39, "via": [] } } }, { "interaction": "Verifier \u2192 Key manager", "from": "Verifier", "to": "Key manager", "groundTruthRank": 3, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/io/github/ertansidar/security/jwt/BaseJwtService.java", "line": 44, "via": [] }, "recoveryResult": { "file": "src/main/java/io/github/ertansidar/security/jwt/BaseJwtService.java", "line": 56, "via": [] } } }, { "interaction": "Verifier \u2192 Cryptographer", "from": "Verifier", "to": "Cryptographer", "groundTruthRank": 4, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/io/github/ertansidar/security/jwt/BaseJwtService.java", "line": 42, "via": [] }, "recoveryResult": { "file": "src/main/java/io/github/ertansidar/security/jwt/BaseJwtService.java", "line": 53, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.75 \u00d7 1. Overlap: 3 of 4 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 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: 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": [ "Subject", "System" ], "dropped_recovery_rows": [ "Subject", "System" ], "gt_roles": 4, "rr_roles": 4, "struct_files": 37, "annotated_at": "2026-10-08 11:12:18.489000", "recovery_order": "stored" }, { "slug": "limit_request_rate__LUICIT_luis-projects-core", "id": "rate-limit-java/LUICIT_luis-projects-core/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "LUICIT_luis-projects-core", "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": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "HistoryProvider", "groundTruth": "present", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "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.975, "drift": 0.025, "detail": { "aggregate": 0.975, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 5 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.9, "distance": 1, "groundTruth": { "entity": "doFilterInternal", "loc": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java:35" }, "recoveryResult": { "entity": "LoginRateLimitFilter", "loc": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java:27" }, "note": "path-length (d=1)" }, { "patternRole": "HistoryProvider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "buckets", "loc": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java:23" }, "recoveryResult": { "entity": "buckets", "loc": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java:35" }, "note": "path-length (d=0)" }, { "patternRole": "Limiter", "score": 1.0, "distance": 0, "groundTruth": { "entity": "tryConsume", "loc": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java:46" }, "recoveryResult": { "entity": "tryConsume", "loc": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java:51" }, "note": "path-length (d=0)" }, { "patternRole": "PolicyProvider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "newIpBucket", "loc": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java:56" }, "recoveryResult": { "entity": "newIpBucket", "loc": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java:60" }, "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.5, "drift": 0.5, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter", "PolicyProvider" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 2, "unionSize": 4, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 1, "interactionOverlap": 0.5, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 4, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Enforcer \u2192 HistoryProvider", "from": "Enforcer", "to": "HistoryProvider", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java", "line": 44, "via": [] }, "recoveryResult": { "file": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java", "line": 47, "via": [] } } }, { "interaction": "Enforcer \u2192 PolicyProvider", "from": "Enforcer", "to": "PolicyProvider", "groundTruthRank": 2, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java", "line": 44, "via": [ "io.github.luicit.luisprojectscore.security.LoginRateLimitFilter.<lambda>0:<unresolvedSignature>(1)" ] }, "recoveryResult": null } }, { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java", "line": 46, "via": [] }, "recoveryResult": { "file": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java", "line": 51, "via": [] } } }, { "interaction": "Limiter \u2192 PolicyProvider", "from": "Limiter", "to": "PolicyProvider", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "src/main/java/io/github/luicit/luisprojectscore/security/LoginRateLimitFilter.java", "line": 60, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.5 \u00d7 1. Overlap: 2 of 4 interactions were found by both sides (1 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, 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: Limiter 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", "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": 26, "annotated_at": "2026-10-03 11:30:43.241000", "recovery_order": "stored" }, { "slug": "limit_request_rate__dir-IQ_ldapportal-core", "id": "rate-limit-java/dir-IQ_ldapportal-core/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "dir-IQ_ldapportal-core", "error": null, "over_input_limit": true, "prompt_tokens": 901579, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 901,579 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 901,579 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 901,579 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] } ] }, { "slug": "limit_request_rate__spring-cloud_spring-cloud-gateway", "id": "rate-limit-java/spring-cloud_spring-cloud-gateway/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "spring-cloud_spring-cloud-gateway", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate", "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": "external", "recoveryResult": "external", "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.8375, "drift": 0.1625, "detail": { "aggregate": 0.8375, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 10 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.95, "distance": 1, "groundTruth": { "entity": "apply", "loc": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/factory/RequestRateLimiterGatewayFilterFactory.java:111" }, "recoveryResult": { "entity": "RequestRateLimiterGatewayFilterFactory", "loc": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/factory/RequestRateLimiterGatewayFilterFactory.java:48" }, "note": "path-length (d=1)" }, { "patternRole": "HistoryProvider", "score": 0.9, "distance": 2, "groundTruth": { "entity": "execute", "loc": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/ratelimit/RedisRateLimiter.java:269" }, "recoveryResult": { "entity": "ReactiveStringRedisTemplate", "loc": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/ratelimit/RedisRateLimiter.java:270" }, "note": "path-length (d=2)" }, { "patternRole": "Limiter", "score": 0.75, "distance": 5, "groundTruth": { "entity": "isAllowed", "loc": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/ratelimit/RedisRateLimiter.java:245" }, "recoveryResult": { "entity": "RateLimiter", "loc": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/ratelimit/RateLimiter.java:32" }, "note": "path-length (d=5)" }, { "patternRole": "PolicyProvider", "score": 0.75, "distance": 5, "groundTruth": { "entity": "loadConfiguration", "loc": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/ratelimit/RedisRateLimiter.java:301" }, "recoveryResult": { "entity": "AbstractRateLimiter", "loc": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/ratelimit/AbstractRateLimiter.java:30" }, "note": "path-length (d=5)" } ], "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": [ "Enforcer", "HistoryProvider", "Limiter", "PolicyProvider" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 0, "onlyRecoveryResult": 0, "interactionOverlap": 1.0, "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": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/factory/RequestRateLimiterGatewayFilterFactory.java", "line": 132, "via": [ "org.springframework.cloud.gateway.filter.factory.RequestRateLimiterGatewayFilterFactory.<lambda>0:org.springframework.cloud.gateway.filter.GatewayFilter(ANY,org.springframework.cloud.gateway.filter.GatewayFilterChain)", "org.springframework.cloud.gateway.filter.factory.RequestRateLimiterGatewayFilterFactory.<lambda>1:<unresolvedSignature>(1)" ] }, "recoveryResult": { "file": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/factory/RequestRateLimiterGatewayFilterFactory.java", "line": 156, "via": [] } } }, { "interaction": "Limiter \u2192 PolicyProvider", "from": "Limiter", "to": "PolicyProvider", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/ratelimit/RedisRateLimiter.java", "line": 250, "via": [] }, "recoveryResult": { "file": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/ratelimit/RedisRateLimiter.java", "line": 306, "via": [] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/ratelimit/RedisRateLimiter.java", "line": 269, "via": [] }, "recoveryResult": { "file": "spring-cloud-gateway-server-webflux/src/main/java/org/springframework/cloud/gateway/filter/ratelimit/RedisRateLimiter.java", "line": 318, "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 (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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: HistoryProvider 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", "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": 678, "annotated_at": "2026-10-03 11:30:44.131000", "recovery_order": "stored" }, { "slug": "limit_request_rate__admin4j_admin4j-framework", "id": "rate-limit-java/admin4j_admin4j-framework/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "admin4j_admin4j-framework", "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": "external", "recoveryResult": "external", "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.8594, "drift": 0.1406, "detail": { "aggregate": 0.8594, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 8 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.875, "distance": 2, "groundTruth": { "entity": "preHandle", "loc": "admin4j-limiter/limiter-core/src/main/java/com/admin4j/limiter/core/interceptor/RateLimitInterceptor.java:38" }, "recoveryResult": { "entity": "RateLimitInterceptor", "loc": "admin4j-limiter/limiter-core/src/main/java/com/admin4j/limiter/core/interceptor/RateLimitInterceptor.java:29" }, "note": "path-length (d=2)" }, { "patternRole": "HistoryProvider", "score": 0.875, "distance": 2, "groundTruth": { "entity": "execute", "loc": "admin4j-limiter/limiter-redis/src/main/java/com/admin4j/limiter/redis/AbstractRedisRateLimiter.java:60" }, "recoveryResult": { "entity": "StringRedisTemplate", "loc": "admin4j-limiter/limiter-redis/src/main/java/com/admin4j/limiter/redis/AbstractRedisRateLimiter.java:25" }, "note": "path-length (d=2)" }, { "patternRole": "Limiter", "score": 1.0, "distance": 0, "groundTruth": { "entity": "tryAcquire", "loc": "admin4j-limiter/limiter-redis/src/main/java/com/admin4j/limiter/redis/AbstractRedisRateLimiter.java:58" }, "recoveryResult": { "entity": "tryAcquire", "loc": "admin4j-limiter/limiter-redis/src/main/java/com/admin4j/limiter/redis/AbstractRedisRateLimiter.java:57" }, "note": "path-length (d=0)" }, { "patternRole": "PolicyProvider", "score": 0.6875, "distance": 5, "groundTruth": { "entity": "RateLimiter", "loc": "admin4j-limiter/limiter-core/src/main/java/com/admin4j/limiter/core/anno/RateLimiter.java:18" }, "recoveryResult": { "entity": "RateLimiterContext", "loc": "admin4j-limiter/limiter-core/src/main/java/com/admin4j/limiter/core/RateLimiterContext.java:9" }, "note": "path-length (d=5)" } ], "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": [ "Enforcer", "HistoryProvider", "Limiter", "PolicyProvider" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 3, "unionSize": 3, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "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 PolicyProvider", "from": "Enforcer", "to": "PolicyProvider", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "admin4j-limiter/limiter-core/src/main/java/com/admin4j/limiter/core/interceptor/RateLimitInterceptor.java", "line": 56, "via": [] }, "recoveryResult": { "file": "admin4j-limiter/limiter-core/src/main/java/com/admin4j/limiter/core/interceptor/RateLimitInterceptor.java", "line": 79, "via": [] } } }, { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 2, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "admin4j-limiter/limiter-core/src/main/java/com/admin4j/limiter/core/interceptor/RateLimitInterceptor.java", "line": 70, "via": [] }, "recoveryResult": { "file": "admin4j-limiter/limiter-core/src/main/java/com/admin4j/limiter/core/interceptor/RateLimitInterceptor.java", "line": 76, "via": [] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "admin4j-limiter/limiter-redis/src/main/java/com/admin4j/limiter/redis/AbstractRedisRateLimiter.java", "line": 60, "via": [] }, "recoveryResult": { "file": "admin4j-limiter/limiter-redis/src/main/java/com/admin4j/limiter/redis/AbstractRedisRateLimiter.java", "line": 61, "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 (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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: HistoryProvider 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", "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": 372, "annotated_at": "2026-10-03 11:30:43.684000", "recovery_order": "stored" }, { "slug": "limit_request_rate__loadcoder_loadcoder", "id": "rate-limit-java/loadcoder_loadcoder/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "loadcoder_loadcoder", "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": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "HistoryProvider", "groundTruth": "present", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "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.3875, "drift": 0.6125, "detail": { "aggregate": 0.3875, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 10 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.35, "distance": 13, "groundTruth": { "entity": "getData", "loc": "loadship/src/main/java/com/loadcoder/loadship/controller/LoadshipController.java:80" }, "recoveryResult": { "entity": "ResultHandlerLoadBuilder", "loc": "loadcoder-core/src/main/java/com/loadcoder/load/scenario/ResultHandlerLoadBuilder.java:28" }, "note": "path-length (d=13)" }, { "patternRole": "HistoryProvider", "score": 0.45, "distance": 11, "groundTruth": { "entity": "lastExecution", "loc": "loadship/src/main/java/com/loadcoder/loadship/controller/LoadshipController.java:49" }, "recoveryResult": { "entity": "RateLimiter", "loc": "loadcoder-core/src/main/java/com/loadcoder/load/intensity/Throttler.java:39" }, "note": "path-length (d=11)" }, { "patternRole": "Limiter", "score": 0.4, "distance": 12, "groundTruth": { "entity": "throttle", "loc": "loadship/src/main/java/com/loadcoder/loadship/controller/LoadshipController.java:93" }, "recoveryResult": { "entity": "RateLimiter", "loc": "loadcoder-core/src/main/java/com/loadcoder/load/scenario/ResultHandlerLoadBuilder.java:88" }, "note": "path-length (d=12)" }, { "patternRole": "PolicyProvider", "score": 0.35, "distance": 13, "groundTruth": { "entity": "throttle", "loc": "loadship/src/main/java/com/loadcoder/loadship/controller/LoadshipController.java:93" }, "recoveryResult": { "entity": "Throttler", "loc": "loadcoder-core/src/main/java/com/loadcoder/load/intensity/Throttler.java:39" }, "note": "path-length (d=13)" } ], "notes": [] }, { "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": [ "Enforcer", "HistoryProvider", "Limiter", "PolicyProvider" ], "excludedRoles": [], "interactionsGroundTruth": 5, "interactionsRecoveryResult": 3, "sharedInteractions": 2, "unionSize": 6, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 3, "onlyRecoveryResult": 1, "interactionOverlap": 0.3333, "orderAgreement": 0.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 0, "discordantPairs": 1, "kendallTau": -1.0, "prescribedActionSteps": 4, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 1, "recoveryResultRank": 3, "outcome": "reordered", "discordantWith": 1, "evidence": { "groundTruth": { "file": "loadship/src/main/java/com/loadcoder/loadship/controller/LoadshipController.java", "line": 82, "via": [] }, "recoveryResult": { "file": "loadcoder-core/src/main/java/com/loadcoder/load/scenario/ResultHandlerLoadBuilder.java", "line": 88, "via": [] } } }, { "interaction": "Enforcer \u2192 PolicyProvider", "from": "Enforcer", "to": "PolicyProvider", "groundTruthRank": 2, "recoveryResultRank": 1, "outcome": "reordered", "discordantWith": 1, "evidence": { "groundTruth": { "file": "loadship/src/main/java/com/loadcoder/loadship/controller/LoadshipController.java", "line": 82, "via": [] }, "recoveryResult": { "file": "loadcoder-core/src/main/java/com/loadcoder/load/scenario/LoadScenario.java", "line": 78, "via": [] } } }, { "interaction": "Limiter \u2192 PolicyProvider", "from": "Limiter", "to": "PolicyProvider", "groundTruthRank": 3, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "loadship/src/main/java/com/loadcoder/loadship/controller/LoadshipController.java", "line": 82, "via": [] }, "recoveryResult": null } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": 4, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "loadship/src/main/java/com/loadcoder/loadship/controller/LoadshipController.java", "line": 96, "via": [] }, "recoveryResult": null } }, { "interaction": "PolicyProvider \u2192 HistoryProvider", "from": "PolicyProvider", "to": "HistoryProvider", "groundTruthRank": 5, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "loadship/src/main/java/com/loadcoder/loadship/controller/LoadshipController.java", "line": 96, "via": [] }, "recoveryResult": null } }, { "interaction": "PolicyProvider \u2192 Limiter", "from": "PolicyProvider", "to": "Limiter", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "loadcoder-core/src/main/java/com/loadcoder/load/intensity/Throttler.java", "line": 62, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.3333 \u00d7 0. Overlap: 2 of 6 interactions were found by both sides (3 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 1 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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": [ "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": 246, "annotated_at": "2026-10-03 11:30:43.898000", "recovery_order": "stored" }, { "slug": "limit_request_rate__eozoo_zoo", "id": "rate-limit-java/eozoo_zoo/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "eozoo_zoo", "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.7916, "drift": 0.2084, "detail": { "aggregate": 0.7916, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 9 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.9444, "distance": 1, "groundTruth": { "entity": "limitRequest", "loc": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/AccessLimitAcpect.java:71" }, "recoveryResult": { "entity": "AccessLimitAcpect", "loc": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/AccessLimitAcpect.java:54" }, "note": "path-length (d=1)" }, { "patternRole": "HistoryProvider", "score": 0.5, "distance": 9, "groundTruth": { "entity": "luaExec", "loc": "zoo-framework/src/main/java/com/cowave/zoo/framework/helper/redis/StringRedisHelper.java:187" }, "recoveryResult": { "entity": "RedisAccessLimiter", "loc": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/RedisAccessLimiter.java:30" }, "note": "path-length (d=9)" }, { "patternRole": "Limiter", "score": 0.7222, "distance": 5, "groundTruth": { "entity": "throughLimit", "loc": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/RedisAccessLimiter.java:50" }, "recoveryResult": { "entity": "AccessLimiter", "loc": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/AccessLimiter.java:24" }, "note": "path-length (d=5)" }, { "patternRole": "PolicyProvider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "AccessLimit", "loc": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/AccessLimit.java:31" }, "recoveryResult": { "entity": "AccessLimit", "loc": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/AccessLimit.java:29" }, "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.5, "drift": 0.5, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter", "PolicyProvider" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 2, "unionSize": 4, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 1, "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 PolicyProvider", "from": "Enforcer", "to": "PolicyProvider", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/AccessLimitAcpect.java", "line": 81, "via": [] }, "recoveryResult": null } }, { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 2, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/AccessLimitAcpect.java", "line": 107, "via": [] }, "recoveryResult": { "file": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/AccessLimitAcpect.java", "line": 104, "via": [] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": 3, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/RedisAccessLimiter.java", "line": 51, "via": [] }, "recoveryResult": { "file": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/RedisAccessLimiter.java", "line": 48, "via": [] } } }, { "interaction": "Limiter \u2192 PolicyProvider", "from": "Limiter", "to": "PolicyProvider", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/AccessLimitAcpect.java", "line": 102, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.5 \u00d7 1. Overlap: 2 of 4 interactions were found by both sides (1 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, 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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": [ "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": 233, "annotated_at": "2026-10-03 11:30:43.795000", "recovery_order": "stored" }, { "slug": "limit_request_rate__pesitwizard_pesitwizard", "id": "rate-limit-java/pesitwizard_pesitwizard/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "pesitwizard_pesitwizard", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate", "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": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "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.7857, "drift": 0.2143, "detail": { "aggregate": 0.7857, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 7 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.9286, "distance": 1, "groundTruth": { "entity": "doFilterInternal", "loc": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java:61" }, "recoveryResult": { "entity": "RateLimitingFilter", "loc": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java:46" }, "note": "path-length (d=1)" }, { "patternRole": "HistoryProvider", "score": 0.7857, "distance": 3, "groundTruth": { "entity": "checkIpRateLimit", "loc": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java:124" }, "recoveryResult": { "entity": "ipBuckets", "loc": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java:54" }, "note": "path-length (d=3)" }, { "patternRole": "Limiter", "score": 0.7857, "distance": 3, "groundTruth": { "entity": "tryConsume", "loc": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java:179" }, "recoveryResult": { "entity": "Bucket", "loc": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java:6" }, "note": "path-length (d=3)" }, { "patternRole": "PolicyProvider", "score": 0.6429, "distance": 5, "groundTruth": { "entity": "createIpBucket", "loc": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java:210" }, "recoveryResult": { "entity": "RateLimitingProperties", "loc": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingProperties.java:11" }, "note": "path-length (d=5)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.1667, "drift": 0.8333, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter", "PolicyProvider" ], "excludedRoles": [], "interactionsGroundTruth": 4, "interactionsRecoveryResult": 3, "sharedInteractions": 1, "unionSize": 6, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 3, "onlyRecoveryResult": 2, "interactionOverlap": 0.1667, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 4, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java", "line": 152, "via": [ "com.pesitwizard.server.security.RateLimitingFilter.checkApiKeyRateLimit:boolean(com.pesitwizard.server.entity.ApiKey,jakarta.servlet.http.HttpServletResponse)" ] }, "recoveryResult": { "file": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java", "line": 168, "via": [] } } }, { "interaction": "Enforcer \u2192 HistoryProvider", "from": "Enforcer", "to": "HistoryProvider", "groundTruthRank": 2, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java", "line": 87, "via": [] }, "recoveryResult": null } }, { "interaction": "HistoryProvider \u2192 PolicyProvider", "from": "HistoryProvider", "to": "PolicyProvider", "groundTruthRank": 3, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java", "line": 134, "via": [ "com.pesitwizard.server.security.RateLimitingFilter.<lambda>1:java.lang.Object(java.lang.Object,java.lang.Object)" ] }, "recoveryResult": null } }, { "interaction": "HistoryProvider \u2192 Limiter", "from": "HistoryProvider", "to": "Limiter", "groundTruthRank": 4, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java", "line": 136, "via": [] }, "recoveryResult": null } }, { "interaction": "Limiter \u2192 PolicyProvider", "from": "Limiter", "to": "PolicyProvider", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java", "line": 227, "via": [] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "pesitwizard-server/src/main/java/com/pesitwizard/server/security/RateLimitingFilter.java", "line": 116, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.1667 \u00d7 1. Overlap: 1 of 6 interactions were found by both sides (3 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 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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": [ "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": 423, "annotated_at": "2026-10-03 11:30:44.006000", "recovery_order": "stored" }, { "slug": "limit_request_rate__stubborn-sh_stubborn", "id": "rate-limit-java/stubborn-sh_stubborn/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "stubborn-sh_stubborn", "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": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "HistoryProvider", "groundTruth": "external", "recoveryResult": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "agreed" }, { "patternRole": "PolicyProvider", "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.8438, "drift": 0.1562, "detail": { "aggregate": 0.8438, "scoredRoles": 4, "skippedRoles": 0, "treeHeight": 8 }, "perRole": [ { "patternRole": "Enforcer", "score": 0.875, "distance": 2, "groundTruth": { "entity": "doFilterInternal", "loc": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java:48" }, "recoveryResult": { "entity": "RateLimitFilter", "loc": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java:44" }, "note": "path-length (d=2)" }, { "patternRole": "HistoryProvider", "score": 0.875, "distance": 2, "groundTruth": { "entity": "waitForPermission", "loc": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java:51" }, "recoveryResult": { "entity": "RateLimiter", "loc": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java:45" }, "note": "path-length (d=2)" }, { "patternRole": "Limiter", "score": 0.875, "distance": 2, "groundTruth": { "entity": "waitForPermission", "loc": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java:51" }, "recoveryResult": { "entity": "RateLimiter", "loc": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java:37" }, "note": "path-length (d=2)" }, { "patternRole": "PolicyProvider", "score": 0.75, "distance": 4, "groundTruth": { "entity": "rateLimiter", "loc": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java:44" }, "recoveryResult": { "entity": "RateLimiterRegistry", "loc": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilterConfig.java:31" }, "note": "path-length (d=4)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.2, "drift": 0.8, "detail": { "agreedRoles": [ "Enforcer", "HistoryProvider", "Limiter", "PolicyProvider" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 3, "sharedInteractions": 1, "unionSize": 5, "entryRoleGroundTruth": "Enforcer", "entryRoleRecoveryResult": "Enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 2, "onlyRecoveryResult": 2, "interactionOverlap": 0.2, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 4, "prescribedStepsCovered": 4 }, "perRole": [ { "interaction": "Enforcer \u2192 PolicyProvider", "from": "Enforcer", "to": "PolicyProvider", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java", "line": 51, "via": [] }, "recoveryResult": null } }, { "interaction": "Enforcer \u2192 Limiter", "from": "Enforcer", "to": "Limiter", "groundTruthRank": 2, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java", "line": 51, "via": [] }, "recoveryResult": { "file": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java", "line": 51, "via": [] } } }, { "interaction": "Enforcer \u2192 HistoryProvider", "from": "Enforcer", "to": "HistoryProvider", "groundTruthRank": 3, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java", "line": 51, "via": [] }, "recoveryResult": null } }, { "interaction": "Limiter \u2192 PolicyProvider", "from": "Limiter", "to": "PolicyProvider", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java", "line": 45, "via": [] } } }, { "interaction": "Limiter \u2192 HistoryProvider", "from": "Limiter", "to": "HistoryProvider", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "broker/src/main/java/sh/stubborn/oss/security/RateLimitFilter.java", "line": 51, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.2 \u00d7 1. Overlap: 1 of 5 interactions were found by both sides (2 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 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.", "Ground truth: the walk started at Enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Enforcer \u2014 stored.", "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: HistoryProvider, Limiter cite entities that are not symbols in this repository (a library or framework call). They can receive an interaction, but the walk cannot continue through them." ] } ], "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": 429, "annotated_at": "2026-10-03 11:30:44.204000", "recovery_order": "stored" }, { "slug": "limit_request_rate__cloudfoundry_uaa", "id": "rate-limit-java/cloudfoundry_uaa/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "cloudfoundry_uaa", "error": null, "over_input_limit": true, "prompt_tokens": 3120618, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 3,120,618 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 3,120,618 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 3,120,618 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] } ] }, { "slug": "limit_request_rate__XSailboat_XSailboat", "id": "rate-limit-java/XSailboat_XSailboat/ClaudeCodeOpus5.5", "pattern": "limit_request_rate", "repo": "XSailboat_XSailboat", "error": null, "over_input_limit": true, "prompt_tokens": 2782987, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 2,782,987 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 2,782,987 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 2,782,987 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] } ] }, { "slug": "session_based_access_control__sameerchereddy_boomerang", "id": "session-based-ac-java/sameerchereddy_boomerang/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "sameerchereddy_boomerang", "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": "external", "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": "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.7778, "drift": 0.2222, "detail": { "aggregate": 0.7778, "scoredRoles": 3, "skippedRoles": 3, "treeHeight": 6 }, "perRole": [ { "patternRole": "Authorisation enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "getStatus", "loc": "boomerang-starter/src/main/java/io/github/boomerang/starter/controller/BoomerangController.java:136" }, "recoveryResult": { "entity": "getStatus", "loc": "boomerang-starter/src/main/java/io/github/boomerang/starter/controller/BoomerangController.java:145" }, "note": "path-length (d=0)" }, { "patternRole": "Decider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "getStatus", "loc": "boomerang-starter/src/main/java/io/github/boomerang/starter/controller/BoomerangController.java:136" }, "recoveryResult": { "entity": "getStatus", "loc": "boomerang-starter/src/main/java/io/github/boomerang/starter/controller/BoomerangController.java:149" }, "note": "path-length (d=0)" }, { "patternRole": "Policy provider", "score": 0.3333, "distance": 8, "groundTruth": { "entity": "findById", "loc": "boomerang-redis/src/main/java/io/github/boomerang/redis/RedisBoomerangJobStore.java:76" }, "recoveryResult": { "entity": "BoomerangJobRecord", "loc": "boomerang-core/src/main/java/io/github/boomerang/model/BoomerangJobRecord.java:20" }, "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)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.6667, "drift": 0.3333, "detail": { "agreedRoles": [ "Authorisation enforcer", "Decider", "Policy provider" ], "excludedRoles": [ "Authentication enforcer", "Session manager", "Verifier" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 2, "sharedInteractions": 2, "unionSize": 3, "entryRoleGroundTruth": "Authorisation enforcer", "entryRoleRecoveryResult": "Authorisation enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 0, "interactionOverlap": 0.6667, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "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": "boomerang-starter/src/main/java/io/github/boomerang/starter/controller/BoomerangController.java", "line": 135, "via": [] }, "recoveryResult": { "file": "boomerang-starter/src/main/java/io/github/boomerang/starter/controller/BoomerangController.java", "line": 149, "via": [] } } }, { "interaction": "Authorisation enforcer \u2192 Policy provider", "from": "Authorisation enforcer", "to": "Policy provider", "groundTruthRank": 2, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "boomerang-starter/src/main/java/io/github/boomerang/starter/controller/BoomerangController.java", "line": 138, "via": [] }, "recoveryResult": null } }, { "interaction": "Decider \u2192 Policy provider", "from": "Decider", "to": "Policy provider", "groundTruthRank": 3, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "boomerang-starter/src/main/java/io/github/boomerang/starter/controller/BoomerangController.java", "line": 138, "via": [] }, "recoveryResult": { "file": "boomerang-starter/src/main/java/io/github/boomerang/starter/controller/BoomerangController.java", "line": 149, "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 (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.", "Ground truth: the walk started at Authorisation enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Authorisation enforcer \u2014 stored.", "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": 37, "annotated_at": "2026-10-03 11:30:44.993000", "recovery_order": "stored" }, { "slug": "session_based_access_control__hygieia_api", "id": "session-based-ac-java/hygieia_api/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "hygieia_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.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": "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": "external", "recoveryResult": "present", "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.5952, "drift": 0.4048, "detail": { "aggregate": 0.5952, "scoredRoles": 3, "skippedRoles": 3, "treeHeight": 7 }, "perRole": [ { "patternRole": "Authorisation enforcer", "score": 0.5, "distance": 7, "groundTruth": { "entity": "DashboardOwnerOrAdmin", "loc": "src/main/java/com/capitalone/dashboard/auth/access/DashboardOwnerOrAdmin.java:17" }, "recoveryResult": { "entity": "WebSecurityConfig", "loc": "src/main/java/com/capitalone/dashboard/config/WebSecurityConfig.java:69" }, "note": "path-length (d=7)" }, { "patternRole": "Decider", "score": 0.8571, "distance": 2, "groundTruth": { "entity": "isOwnerOfDashboard", "loc": "src/main/java/com/capitalone/dashboard/auth/access/MethodLevelSecurityHandler.java:25" }, "recoveryResult": { "entity": "MethodLevelSecurityHandler", "loc": "src/main/java/com/capitalone/dashboard/auth/access/MethodLevelSecurityHandler.java:23" }, "note": "path-length (d=2)" }, { "patternRole": "Policy provider", "score": 0.4286, "distance": 8, "groundTruth": { "entity": "findById", "loc": "src/main/java/com/capitalone/dashboard/auth/access/MethodLevelSecurityHandler.java:26" }, "recoveryResult": { "entity": "UserInfoServiceImpl", "loc": "src/main/java/com/capitalone/dashboard/service/UserInfoServiceImpl.java:43" }, "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)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.5, "drift": 0.5, "detail": { "agreedRoles": [ "Authorisation enforcer", "Decider", "Policy provider" ], "excludedRoles": [ "Authentication enforcer", "Session manager", "Verifier" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 2, "sharedInteractions": 1, "unionSize": 2, "entryRoleGroundTruth": "Decider", "entryRoleRecoveryResult": "Authorisation enforcer", "entryRuleGroundTruth": "code-root", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 0, "onlyRecoveryResult": 1, "interactionOverlap": 0.5, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 5, "prescribedStepsCovered": 2 }, "perRole": [ { "interaction": "Decider \u2192 Policy provider", "from": "Decider", "to": "Policy provider", "groundTruthRank": 1, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "src/main/java/com/capitalone/dashboard/auth/access/MethodLevelSecurityHandler.java", "line": 26, "via": [] }, "recoveryResult": { "file": "src/main/java/com/capitalone/dashboard/auth/access/MethodLevelSecurityHandler.java", "line": 33, "via": [] } } }, { "interaction": "Authorisation enforcer \u2192 Decider", "from": "Authorisation enforcer", "to": "Decider", "groundTruthRank": null, "recoveryResultRank": 1, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "src/main/java/com/capitalone/dashboard/auth/access/DashboardOwnerOrAdmin.java", "line": 21, "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 (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.", "Ground truth: the walk started at Decider \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.", "Recovery result: the walk started at Authorisation enforcer \u2014 stored.", "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: Policy provider 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": [ "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": 364, "annotated_at": "2026-10-03 11:30:44.744000", "recovery_order": "stored" }, { "slug": "session_based_access_control__HesandaLiyanage_theVaultOfficial", "id": "session-based-ac-java/HesandaLiyanage_theVaultOfficial/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "HesandaLiyanage_theVaultOfficial", "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": "external", "recoveryResult": "external", "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.6666, "drift": 0.3334, "detail": { "aggregate": 0.6666, "scoredRoles": 3, "skippedRoles": 3, "treeHeight": 7 }, "perRole": [ { "patternRole": "Authorisation enforcer", "score": 0.8571, "distance": 2, "groundTruth": { "entity": "securityFilterChain", "loc": "vault-server/src/main/java/com/hess/thevault/config/SecurityConfig.java:27" }, "recoveryResult": { "entity": "SecurityConfig", "loc": "vault-server/src/main/java/com/hess/thevault/config/SecurityConfig.java:20" }, "note": "path-length (d=2)" }, { "patternRole": "Decider", "score": 0.8571, "distance": 2, "groundTruth": { "entity": "hasRole", "loc": "vault-server/src/main/java/com/hess/thevault/config/SecurityConfig.java:40" }, "recoveryResult": { "entity": "AuthorizationFilter", "loc": "vault-server/src/main/java/com/hess/thevault/config/SecurityConfig.java:31" }, "note": "path-length (d=2)" }, { "patternRole": "Policy provider", "score": 0.2857, "distance": 10, "groundTruth": { "entity": "findById", "loc": "vault-server/src/main/java/com/hess/thevault/auth/StubVaultUserRepository.java:47" }, "recoveryResult": { "entity": "VaultAuthenticationToken", "loc": "vault-sdk/src/main/java/io/github/hesandaliyanage/vault/sdk/VaultAuthenticationToken.java:17" }, "note": "path-length (d=10)" } ], "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)", "available": true, "headlineLabel": "Interaction agreement", "score": 1.0, "drift": 0.0, "detail": { "agreedRoles": [ "Authorisation enforcer", "Decider", "Policy provider" ], "excludedRoles": [ "Authentication enforcer", "Session manager", "Verifier" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 1, "sharedInteractions": 1, "unionSize": 1, "entryRoleGroundTruth": "Authorisation enforcer", "entryRoleRecoveryResult": "Authorisation enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "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": "vault-server/src/main/java/com/hess/thevault/config/SecurityConfig.java", "line": 34, "via": [ "com.hess.thevault.config.SecurityConfig.<lambda>0:<unresolvedSignature>(1)" ] }, "recoveryResult": { "file": "vault-server/src/main/java/com/hess/thevault/config/SecurityConfig.java", "line": 31, "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 (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.", "Ground truth: the walk started at Authorisation enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Authorisation enforcer \u2014 stored.", "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: Decider 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": [ "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": 116, "annotated_at": "2026-10-03 11:30:44.429000", "recovery_order": "stored" }, { "slug": "session_based_access_control__bratkartoffel_security-jwt", "id": "session-based-ac-java/bratkartoffel_security-jwt/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "bratkartoffel_security-jwt", "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": "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": "external", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Policy provider", "groundTruth": "external", "recoveryResult": "present", "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.4405, "drift": 0.5595, "detail": { "aggregate": 0.4405, "scoredRoles": 6, "skippedRoles": 0, "treeHeight": 7 }, "perRole": [ { "patternRole": "Authentication enforcer", "score": 0.5714, "distance": 6, "groundTruth": { "entity": "refresh", "loc": "base/src/main/java/eu/fraho/spring/securityJwt/base/controller/RefreshRestController.java:57" }, "recoveryResult": { "entity": "JwtAuthenticationTokenFilter", "loc": "base/src/main/java/eu/fraho/spring/securityJwt/base/JwtAuthenticationTokenFilter.java:36" }, "note": "path-length (d=6)" }, { "patternRole": "Authorisation enforcer", "score": 0.5, "distance": 7, "groundTruth": { "entity": "checkRefresh", "loc": "base/src/main/java/eu/fraho/spring/securityJwt/base/service/RefreshServiceImpl.java:32" }, "recoveryResult": { "entity": "JwtSecurityConfig", "loc": "base/src/main/java/eu/fraho/spring/securityJwt/base/config/JwtSecurityConfig.java:46" }, "note": "path-length (d=7)" }, { "patternRole": "Decider", "score": 0.2857, "distance": 10, "groundTruth": { "entity": "checkRefresh", "loc": "base/src/main/java/eu/fraho/spring/securityJwt/base/service/RefreshServiceImpl.java:32" }, "recoveryResult": { "entity": "Secured", "loc": "base/src/testFixtures/java/eu/fraho/spring/securityJwt/base/it/spring/SecuredController.java:19" }, "note": "path-length (d=10)" }, { "patternRole": "Policy provider", "score": 0.3571, "distance": 9, "groundTruth": { "entity": "loadUserByUsername", "loc": "internal/src/main/java/eu/fraho/spring/securityJwt/internal/service/InternalTokenStore.java:50" }, "recoveryResult": { "entity": "JwtUser", "loc": "base/src/main/java/eu/fraho/spring/securityJwt/base/dto/JwtUser.java:46" }, "note": "path-length (d=9)" }, { "patternRole": "Session manager", "score": 0.2857, "distance": 10, "groundTruth": { "entity": "useToken", "loc": "internal/src/main/java/eu/fraho/spring/securityJwt/internal/service/InternalTokenStore.java:47" }, "recoveryResult": { "entity": "RefreshTokenStore", "loc": "base/src/main/java/eu/fraho/spring/securityJwt/base/service/RefreshTokenStore.java:15" }, "note": "path-length (d=10)" }, { "patternRole": "Verifier", "score": 0.6429, "distance": 5, "groundTruth": { "entity": "checkRefresh", "loc": "base/src/main/java/eu/fraho/spring/securityJwt/base/service/RefreshServiceImpl.java:32" }, "recoveryResult": { "entity": "JwtTokenServiceImpl", "loc": "base/src/main/java/eu/fraho/spring/securityJwt/base/service/JwtTokenServiceImpl.java:56" }, "note": "path-length (d=5)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.3333, "drift": 0.6667, "detail": { "agreedRoles": [ "Authentication enforcer", "Authorisation enforcer", "Decider", "Policy provider", "Session manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 7, "interactionsRecoveryResult": 5, "sharedInteractions": 3, "unionSize": 9, "entryRoleGroundTruth": "Authentication enforcer", "entryRoleRecoveryResult": "Authentication enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 4, "onlyRecoveryResult": 2, "interactionOverlap": 0.3333, "orderAgreement": 1.0, "rankedInteractions": 3, "totalPairs": 3, "concordantPairs": 3, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 5, "prescribedStepsCovered": 5 }, "perRole": [ { "interaction": "Authentication enforcer \u2192 Verifier", "from": "Authentication enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "base/src/main/java/eu/fraho/spring/securityJwt/base/controller/RefreshRestController.java", "line": 70, "via": [] }, "recoveryResult": { "file": "base/src/main/java/eu/fraho/spring/securityJwt/base/JwtAuthenticationTokenFilter.java", "line": 47, "via": [] } } }, { "interaction": "Authentication enforcer \u2192 Authorisation enforcer", "from": "Authentication enforcer", "to": "Authorisation enforcer", "groundTruthRank": 2, "recoveryResultRank": 3, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "base/src/main/java/eu/fraho/spring/securityJwt/base/controller/RefreshRestController.java", "line": 70, "via": [] }, "recoveryResult": { "file": "base/src/main/java/eu/fraho/spring/securityJwt/base/JwtAuthenticationTokenFilter.java", "line": 51, "via": [] } } }, { "interaction": "Authentication enforcer \u2192 Decider", "from": "Authentication enforcer", "to": "Decider", "groundTruthRank": 3, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "base/src/main/java/eu/fraho/spring/securityJwt/base/controller/RefreshRestController.java", "line": 70, "via": [] }, "recoveryResult": null } }, { "interaction": "Authorisation enforcer \u2192 Decider", "from": "Authorisation enforcer", "to": "Decider", "groundTruthRank": 4, "recoveryResultRank": 4, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "base/src/main/java/eu/fraho/spring/securityJwt/base/controller/RefreshRestController.java", "line": 70, "via": [] }, "recoveryResult": { "file": "base/src/testFixtures/java/eu/fraho/spring/securityJwt/base/it/spring/SecuredController.java", "line": 19, "via": [] } } }, { "interaction": "Verifier \u2192 Session manager", "from": "Verifier", "to": "Session manager", "groundTruthRank": 5, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "base/src/main/java/eu/fraho/spring/securityJwt/base/service/JwtTokenServiceImpl.java", "line": 242, "via": [ "eu.fraho.spring.securityJwt.base.service.JwtTokenServiceImpl.useRefreshToken:java.util.Optional(java.lang.String)" ] }, "recoveryResult": null } }, { "interaction": "Authorisation enforcer \u2192 Session manager", "from": "Authorisation enforcer", "to": "Session manager", "groundTruthRank": 6, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "base/src/main/java/eu/fraho/spring/securityJwt/base/service/JwtTokenServiceImpl.java", "line": 242, "via": [ "eu.fraho.spring.securityJwt.base.service.JwtTokenServiceImpl.useRefreshToken:java.util.Optional(java.lang.String)" ] }, "recoveryResult": null } }, { "interaction": "Decider \u2192 Session manager", "from": "Decider", "to": "Session manager", "groundTruthRank": 7, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "base/src/main/java/eu/fraho/spring/securityJwt/base/service/JwtTokenServiceImpl.java", "line": 242, "via": [ "eu.fraho.spring.securityJwt.base.service.JwtTokenServiceImpl.useRefreshToken:java.util.Optional(java.lang.String)" ] }, "recoveryResult": null } }, { "interaction": "Verifier \u2192 Policy provider", "from": "Verifier", "to": "Policy provider", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "base/src/main/java/eu/fraho/spring/securityJwt/base/service/JwtTokenServiceImpl.java", "line": 74, "via": [] } } }, { "interaction": "Decider \u2192 Policy provider", "from": "Decider", "to": "Policy provider", "groundTruthRank": null, "recoveryResultRank": 5, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "base/src/main/java/eu/fraho/spring/securityJwt/base/dto/JwtUser.java", "line": 88, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.3333 \u00d7 1. Overlap: 3 of 9 interactions were found by both sides (4 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 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.", "Ground truth: the walk started at Authentication enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Authentication enforcer \u2014 stored.", "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: Policy provider 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": [ "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": 121, "annotated_at": "2026-10-03 11:30:44.593000", "recovery_order": "stored" }, { "slug": "session_based_access_control__ncats_gsrs-spring-starter", "id": "session-based-ac-java/ncats_gsrs-spring-starter/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "ncats_gsrs-spring-starter", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate", "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": "external", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "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.6969, "drift": 0.3031, "detail": { "aggregate": 0.6969, "scoredRoles": 6, "skippedRoles": 0, "treeHeight": 11 }, "perRole": [ { "patternRole": "Authentication enforcer", "score": 0.9545, "distance": 1, "groundTruth": { "entity": "doFilterInternal", "loc": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java:74" }, "recoveryResult": { "entity": "LegacyAuthenticationFilter", "loc": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java:52" }, "note": "path-length (d=1)" }, { "patternRole": "Authorisation enforcer", "score": 0.7273, "distance": 6, "groundTruth": { "entity": "PreAuthorize", "loc": "gsrs-core-entities/src/main/java/gsrs/security/canManageUsers.java:11" }, "recoveryResult": { "entity": "PrivilegeService", "loc": "gsrs-core-entities/src/main/java/gsrs/services/PrivilegeService.java:25" }, "note": "path-length (d=6)" }, { "patternRole": "Decider", "score": 0.9545, "distance": 1, "groundTruth": { "entity": "canUserPerform", "loc": "gsrs-core-entities/src/main/java/gsrs/services/PrivilegeService.java:114" }, "recoveryResult": { "entity": "PrivilegeService", "loc": "gsrs-core-entities/src/main/java/gsrs/services/PrivilegeService.java:25" }, "note": "path-length (d=1)" }, { "patternRole": "Policy provider", "score": 0.6818, "distance": 7, "groundTruth": { "entity": "canRolePerform", "loc": "gsrs-core-entities/src/main/java/gsrs/services/PrivilegeService.java:144" }, "recoveryResult": { "entity": "UserRoleConfiguration", "loc": "gsrs-core-entities/src/main/java/gsrs/security/UserRoleConfiguration.java:17" }, "note": "path-length (d=7)" }, { "patternRole": "Session manager", "score": 0.4545, "distance": 12, "groundTruth": { "entity": "findById", "loc": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java:99" }, "recoveryResult": { "entity": "SessionRepository", "loc": "gsrs-core-entities/src/main/java/gsrs/repository/SessionRepository.java:11" }, "note": "path-length (d=12)" }, { "patternRole": "Verifier", "score": 0.4091, "distance": 13, "groundTruth": { "entity": "isExpired", "loc": "gsrs-core-entities/src/main/java/gsrs/security/SessionConfiguration.java:45" }, "recoveryResult": { "entity": "LegacyGsrsAuthenticationProvider", "loc": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyGsrsAuthenticationProvider.java:29" }, "note": "path-length (d=13)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.1667, "drift": 0.8333, "detail": { "agreedRoles": [ "Authentication enforcer", "Authorisation enforcer", "Decider", "Policy provider", "Session manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 5, "sharedInteractions": 1, "unionSize": 6, "entryRoleGroundTruth": "Authentication enforcer", "entryRoleRecoveryResult": "Authentication enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 4, "interactionOverlap": 0.1667, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 5, "prescribedStepsCovered": 5 }, "perRole": [ { "interaction": "Authentication enforcer \u2192 Session manager", "from": "Authentication enforcer", "to": "Session manager", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java", "line": 99, "via": [ "gsrs.security.LegacyAuthenticationFilter.<lambda>2:<unresolvedSignature>(1)" ] }, "recoveryResult": null } }, { "interaction": "Authentication enforcer \u2192 Verifier", "from": "Authentication enforcer", "to": "Verifier", "groundTruthRank": 2, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java", "line": 100, "via": [ "gsrs.security.LegacyAuthenticationFilter.<lambda>2:<unresolvedSignature>(1)" ] }, "recoveryResult": { "file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyGsrsSecurityConfiguration.java", "line": 74, "via": [] } } }, { "interaction": "Verifier \u2192 Session manager", "from": "Verifier", "to": "Session manager", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyGsrsAuthenticationProvider.java", "line": 44, "via": [] } } }, { "interaction": "Authentication enforcer \u2192 Authorisation enforcer", "from": "Authentication enforcer", "to": "Authorisation enforcer", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "gsrs-spring-boot-autoconfigure/src/main/java/gsrs/security/LegacyAuthenticationFilter.java", "line": 249, "via": [] } } }, { "interaction": "Authorisation enforcer \u2192 Decider", "from": "Authorisation enforcer", "to": "Decider", "groundTruthRank": null, "recoveryResultRank": 4, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "gsrs-core-entities/src/main/java/gsrs/services/PrivilegeService.java", "line": 95, "via": [] } } }, { "interaction": "Decider \u2192 Policy provider", "from": "Decider", "to": "Policy provider", "groundTruthRank": null, "recoveryResultRank": 5, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "gsrs-core-entities/src/main/java/gsrs/services/PrivilegeService.java", "line": 127, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.1667 \u00d7 1. Overlap: 1 of 6 interactions were found by both sides (1 only in the ground truth, 4 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 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.", "Ground truth: the walk started at Authentication enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Authentication enforcer \u2014 stored.", "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: Authorisation enforcer, Session manager cite entities that are not symbols in this repository (a library or framework call). They can receive an interaction, but the walk cannot continue through them." ] } ], "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": 812, "annotated_at": "2026-10-03 11:30:44.878000", "recovery_order": "stored" }, { "slug": "session_based_access_control__mosip_registration", "id": "session-based-ac-java/mosip_registration/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "mosip_registration", "error": null, "over_input_limit": true, "prompt_tokens": 1190508, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 1,190,508 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level2", "level": "Level 2 \u2014 Role Grounding", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 1,190,508 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "available": true, "score": 0.0, "drift": 1.0, "notes": [ "Not run: the one-shot prompt is 1,190,508 tokens (o200k_base), over the baseline's 900,000 input limit (scripts/baseline_recover.py). Scored 0 by rule, not measured." ] } ] }, { "slug": "session_based_access_control__flowerfine_carp", "id": "session-based-ac-java/flowerfine_carp/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "flowerfine_carp", "error": null, "metrics": [ { "key": "level1", "level": "Level 1 \u2014 Role Detection", "formula": "agreement-rate", "available": true, "headlineLabel": "Roles agreed", "score": 0.5, "drift": 0.5, "detail": { "agreedRoles": 3, "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": "external", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Authorisation enforcer", "groundTruth": "external", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Decider", "groundTruth": "external", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "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.8264, "drift": 0.1736, "detail": { "aggregate": 0.8264, "scoredRoles": 6, "skippedRoles": 0, "treeHeight": 12 }, "perRole": [ { "patternRole": "Authentication enforcer", "score": 0.9583, "distance": 1, "groundTruth": { "entity": "doFilterInternal", "loc": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/web/CarpTokenFilter.java:53" }, "recoveryResult": { "entity": "CarpTokenFilter", "loc": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/web/CarpTokenFilter.java:42" }, "note": "path-length (d=1)" }, { "patternRole": "Authorisation enforcer", "score": 0.9167, "distance": 2, "groundTruth": { "entity": "doFilter", "loc": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/config/CarpSecurityConfig.java:72" }, "recoveryResult": { "entity": "CarpSecurityConfig", "loc": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/config/CarpSecurityConfig.java:40" }, "note": "path-length (d=2)" }, { "patternRole": "Decider", "score": 0.75, "distance": 6, "groundTruth": { "entity": "check", "loc": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/config/CarpSecurityConfig.java:126" }, "recoveryResult": { "entity": "CarpSecurityValidateService", "loc": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/authorization/CarpSecurityValidateService.java:25" }, "note": "path-length (d=6)" }, { "patternRole": "Policy provider", "score": 0.625, "distance": 9, "groundTruth": { "entity": "authorizeRequests", "loc": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/config/CarpSecurityConfig.java:95" }, "recoveryResult": { "entity": "SecAuthorizationService", "loc": "carp-modules/carp-module-security/carp-module-security-core/src/main/java/cn/sliew/carp/module/security/core/service/SecAuthorizationService.java:30" }, "note": "path-length (d=9)" }, { "patternRole": "Session manager", "score": 0.75, "distance": 6, "groundTruth": { "entity": "get", "loc": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/web/CarpTokenFilter.java:56" }, "recoveryResult": { "entity": "SecAuthenticationServiceImpl", "loc": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/service/impl/SecAuthenticationServiceImpl.java:45" }, "note": "path-length (d=6)" }, { "patternRole": "Verifier", "score": 0.9583, "distance": 1, "groundTruth": { "entity": "doFilterInternal", "loc": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/web/CarpTokenFilter.java:53" }, "recoveryResult": { "entity": "CarpTokenFilter", "loc": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/web/CarpTokenFilter.java:45" }, "note": "path-length (d=1)" } ], "notes": [] }, { "key": "level3", "level": "Level 3 \u2014 Interaction Order", "formula": "jaccard \u00d7 kendall-tau (shared interactions)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.3333, "drift": 0.6667, "detail": { "agreedRoles": [ "Authentication enforcer", "Authorisation enforcer", "Decider", "Policy provider", "Session manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 5, "sharedInteractions": 2, "unionSize": 6, "entryRoleGroundTruth": "Authentication enforcer", "entryRoleRecoveryResult": "Authentication enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 3, "interactionOverlap": 0.3333, "orderAgreement": 1.0, "rankedInteractions": 2, "totalPairs": 1, "concordantPairs": 1, "discordantPairs": 0, "kendallTau": 1.0, "prescribedActionSteps": 5, "prescribedStepsCovered": 5 }, "perRole": [ { "interaction": "Authentication enforcer \u2192 Verifier", "from": "Authentication enforcer", "to": "Verifier", "groundTruthRank": 1, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/web/CarpTokenFilter.java", "line": 52, "via": [] }, "recoveryResult": { "file": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/web/CarpTokenFilter.java", "line": 47, "via": [] } } }, { "interaction": "Authentication enforcer \u2192 Session manager", "from": "Authentication enforcer", "to": "Session manager", "groundTruthRank": 2, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/web/CarpTokenFilter.java", "line": 56, "via": [] }, "recoveryResult": null } }, { "interaction": "Verifier \u2192 Session manager", "from": "Verifier", "to": "Session manager", "groundTruthRank": 3, "recoveryResultRank": 2, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/web/CarpTokenFilter.java", "line": 56, "via": [] }, "recoveryResult": { "file": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/util/SecurityUtil.java", "line": 60, "via": [] } } }, { "interaction": "Authentication enforcer \u2192 Authorisation enforcer", "from": "Authentication enforcer", "to": "Authorisation enforcer", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/web/CarpTokenFilter.java", "line": 56, "via": [] } } }, { "interaction": "Authorisation enforcer \u2192 Decider", "from": "Authorisation enforcer", "to": "Decider", "groundTruthRank": null, "recoveryResultRank": 4, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/config/CarpSecurityConfig.java", "line": 135, "via": [] } } }, { "interaction": "Decider \u2192 Policy provider", "from": "Decider", "to": "Policy provider", "groundTruthRank": null, "recoveryResultRank": 5, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "carp-modules/carp-module-security/carp-module-security-spring/src/main/java/cn/sliew/carp/module/security/spring/authorization/CarpSecurityValidateService.java", "line": 60, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.3333 \u00d7 1. Overlap: 2 of 6 interactions were found by both sides (1 only in the ground truth, 3 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.", "Ground truth: the walk started at Authentication enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Authentication enforcer \u2014 stored.", "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: Authorisation enforcer, Decider, Session manager cite entities that are not symbols in this repository (a library or framework call). They can receive an interaction, but the walk cannot continue through them." ] } ], "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": 1150, "annotated_at": "2026-10-03 11:30:44.670000", "recovery_order": "stored" }, { "slug": "session_based_access_control__promregator_promregator", "id": "session-based-ac-java/promregator_promregator/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "promregator_promregator", "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": "external", "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": "external", "recoveryResult": "external", "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.9444, "drift": 0.0556, "detail": { "aggregate": 0.9444, "scoredRoles": 3, "skippedRoles": 3, "treeHeight": 6 }, "perRole": [ { "patternRole": "Authorisation enforcer", "score": 1.0, "distance": 0, "groundTruth": { "entity": "filterChain", "loc": "src/main/java/org/cloudfoundry/promregator/websecurity/SecurityConfig.java:124" }, "recoveryResult": { "entity": "filterChain", "loc": "src/main/java/org/cloudfoundry/promregator/websecurity/SecurityConfig.java:129" }, "note": "path-length (d=0)" }, { "patternRole": "Decider", "score": 0.8333, "distance": 2, "groundTruth": { "entity": "check", "loc": "src/main/java/org/cloudfoundry/promregator/websecurity/SecurityConfig.java:116" }, "recoveryResult": { "entity": "authorizeHttpRequests", "loc": "src/main/java/org/cloudfoundry/promregator/websecurity/SecurityConfig.java:105" }, "note": "path-length (d=2)" }, { "patternRole": "Policy provider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "determineHttpSecurityForEndpoint", "loc": "src/main/java/org/cloudfoundry/promregator/websecurity/SecurityConfig.java:110" }, "recoveryResult": { "entity": "determineHttpSecurityForEndpoint", "loc": "src/main/java/org/cloudfoundry/promregator/websecurity/SecurityConfig.java:99" }, "note": "path-length (d=0)" } ], "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)", "available": true, "headlineLabel": "Interaction agreement", "score": 0.0, "drift": 1.0, "detail": { "agreedRoles": [ "Authorisation enforcer", "Decider", "Policy provider" ], "excludedRoles": [ "Authentication enforcer", "Session manager", "Verifier" ], "interactionsGroundTruth": 1, "interactionsRecoveryResult": 0, "sharedInteractions": 0, "unionSize": 1, "entryRoleGroundTruth": "Authorisation enforcer", "entryRoleRecoveryResult": "", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 0, "interactionOverlap": 0.0, "orderAgreement": 0.0, "rankedInteractions": 0, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 5, "prescribedStepsCovered": 0 }, "perRole": [ { "interaction": "Authorisation enforcer \u2192 Policy provider", "from": "Authorisation enforcer", "to": "Policy provider", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/main/java/org/cloudfoundry/promregator/websecurity/SecurityConfig.java", "line": 131, "via": [] }, "recoveryResult": null } } ], "notes": [ "Score = overlap \u00d7 order = 0 \u00d7 0. Overlap: 0 of 1 interactions were found by both sides (1 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 (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.", "Ground truth: the walk started at Authorisation enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: no role anchored to a walkable body, so no walk ran.", "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: Decider 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": [ "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": 152, "annotated_at": "2026-10-06 09:53:54.632000", "recovery_order": "stored" }, { "slug": "session_based_access_control__liuhailove_gscheduler-core", "id": "session-based-ac-java/liuhailove_gscheduler-core/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "liuhailove_gscheduler-core", "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": "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": "external", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Authorisation enforcer", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Decider", "groundTruth": "missing", "recoveryResult": "present", "groundTruthDetected": false, "recoveryResultDetected": true, "outcome": "mismatched" }, { "patternRole": "Policy provider", "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": 0.6111, "drift": 0.3889, "detail": { "aggregate": 0.6111, "scoredRoles": 3, "skippedRoles": 3, "treeHeight": 9 }, "perRole": [ { "patternRole": "Authentication enforcer", "score": 0.6667, "distance": 6, "groundTruth": { "entity": "check", "loc": "src/main/java/com/tc/gschedulercore/controller/LoginController.java:87" }, "recoveryResult": { "entity": "AuthorizationInterceptor", "loc": "src/main/java/com/tc/gschedulercore/controller/auth/AuthorizationInterceptor.java:27" }, "note": "path-length (d=6)" }, { "patternRole": "Session manager", "score": 0.6111, "distance": 7, "groundTruth": { "entity": "getAttribute", "loc": "src/main/java/com/tc/gschedulercore/controller/LoginController.java:89" }, "recoveryResult": { "entity": "JdbcIndexedSessionRepository", "loc": "src/main/java/org/springframework/session/jdbc/JdbcIndexedSessionRepository.java:78" }, "note": "path-length (d=7)" }, { "patternRole": "Verifier", "score": 0.5556, "distance": 8, "groundTruth": { "entity": "check", "loc": "src/main/java/com/tc/gschedulercore/controller/LoginController.java:87" }, "recoveryResult": { "entity": "verifyToken", "loc": "src/main/java/com/tc/gschedulercore/util/JwtUtils.java:54" }, "note": "path-length (d=8)" } ], "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": 0.3333, "drift": 0.6667, "detail": { "agreedRoles": [ "Authentication enforcer", "Session manager", "Verifier" ], "excludedRoles": [ "Authorisation enforcer", "Decider", "Policy provider" ], "interactionsGroundTruth": 3, "interactionsRecoveryResult": 1, "sharedInteractions": 1, "unionSize": 3, "entryRoleGroundTruth": "Authentication enforcer", "entryRoleRecoveryResult": "Authentication enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 2, "onlyRecoveryResult": 0, "interactionOverlap": 0.3333, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "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": "src/main/java/com/tc/gschedulercore/controller/LoginController.java", "line": 85, "via": [] }, "recoveryResult": { "file": "src/main/java/com/tc/gschedulercore/controller/auth/AuthorizationInterceptor.java", "line": 38, "via": [] } } }, { "interaction": "Authentication enforcer \u2192 Session manager", "from": "Authentication enforcer", "to": "Session manager", "groundTruthRank": 2, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/main/java/com/tc/gschedulercore/controller/LoginController.java", "line": 89, "via": [] }, "recoveryResult": null } }, { "interaction": "Verifier \u2192 Session manager", "from": "Verifier", "to": "Session manager", "groundTruthRank": 3, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "src/main/java/com/tc/gschedulercore/controller/LoginController.java", "line": 89, "via": [] }, "recoveryResult": null } } ], "notes": [ "Score = overlap \u00d7 order = 0.3333 \u00d7 1. Overlap: 1 of 3 interactions were found by both sides (2 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 (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.", "Ground truth: the walk started at Authentication enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Authentication enforcer \u2014 stored.", "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: 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": "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": 209, "annotated_at": "2026-10-06 09:53:54.302000", "recovery_order": "stored" }, { "slug": "session_based_access_control__yizzuide_Milkomeda", "id": "session-based-ac-java/yizzuide_Milkomeda/ClaudeCodeOpus5.5", "pattern": "session_based_access_control", "repo": "yizzuide_Milkomeda", "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": "external", "recoveryResult": "present", "groundTruthDetected": true, "recoveryResultDetected": true, "outcome": "mismatched" }, { "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.6875, "drift": 0.3125, "detail": { "aggregate": 0.6875, "scoredRoles": 6, "skippedRoles": 0, "treeHeight": 8 }, "perRole": [ { "patternRole": "Authentication enforcer", "score": 0.875, "distance": 2, "groundTruth": { "entity": "doFilterInternal", "loc": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/CrustAuthenticationFilter.java:85" }, "recoveryResult": { "entity": "CrustAuthenticationFilter", "loc": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/CrustAuthenticationFilter.java:81" }, "note": "path-length (d=2)" }, { "patternRole": "Authorisation enforcer", "score": 0.375, "distance": 10, "groundTruth": { "entity": "invoke", "loc": "MilkomedaDemo/src/main/java/com/github/yizzuide/milkomeda/demo/crust/controller/CaseController.java:39" }, "recoveryResult": { "entity": "CrustConfigurerAdapter", "loc": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/CrustConfigurerAdapter.java:83" }, "note": "path-length (d=10)" }, { "patternRole": "Decider", "score": 1.0, "distance": 0, "groundTruth": { "entity": "permitAny", "loc": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/Crust.java:371" }, "recoveryResult": { "entity": "permitAny", "loc": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/Crust.java:352" }, "note": "path-length (d=0)" }, { "patternRole": "Policy provider", "score": 0.3125, "distance": 11, "groundTruth": { "entity": "findPermissions", "loc": "MilkomedaDemo/src/main/java/com/github/yizzuide/milkomeda/demo/crust/provider/UserDetailsService.java:31" }, "recoveryResult": { "entity": "CrustUserDetailsService", "loc": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/CrustUserDetailsService.java:46" }, "note": "path-length (d=11)" }, { "patternRole": "Session manager", "score": 0.5625, "distance": 7, "groundTruth": { "entity": "isCacheL1Exists", "loc": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/light/LightCache.java:380" }, "recoveryResult": { "entity": "CrustTokenResolver", "loc": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/CrustTokenResolver.java:69" }, "note": "path-length (d=7)" }, { "patternRole": "Verifier", "score": 1.0, "distance": 0, "groundTruth": { "entity": "getAuthInfoFromToken", "loc": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/Crust.java:234" }, "recoveryResult": { "entity": "getAuthInfoFromToken", "loc": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/Crust.java:279" }, "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.1667, "drift": 0.8333, "detail": { "agreedRoles": [ "Authentication enforcer", "Authorisation enforcer", "Decider", "Policy provider", "Session manager", "Verifier" ], "excludedRoles": [], "interactionsGroundTruth": 2, "interactionsRecoveryResult": 5, "sharedInteractions": 1, "unionSize": 6, "entryRoleGroundTruth": "Authentication enforcer", "entryRoleRecoveryResult": "Authentication enforcer", "entryRuleGroundTruth": "behaviour", "entryRuleRecoveryResult": "stored", "onlyGroundTruth": 1, "onlyRecoveryResult": 4, "interactionOverlap": 0.1667, "orderAgreement": 1.0, "rankedInteractions": 1, "totalPairs": 0, "concordantPairs": 0, "discordantPairs": 0, "kendallTau": null, "prescribedActionSteps": 5, "prescribedStepsCovered": 5 }, "perRole": [ { "interaction": "Authentication enforcer \u2192 Session manager", "from": "Authentication enforcer", "to": "Session manager", "groundTruthRank": 1, "recoveryResultRank": null, "outcome": "onlyGroundTruth", "discordantWith": null, "evidence": { "groundTruth": { "file": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/Crust.java", "line": 363, "via": [ "com.github.yizzuide.milkomeda.crust.CrustAuthenticationFilter.successfulAuthentication:void(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,javax.servlet.FilterChain,org.springframework.security.core.Authentication)", "com.github.yizzuide.milkomeda.crust.RefreshSuccessHandler.onAuthenticationSuccess:void(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,org.springframework.security.core.Authentication)", "com.github.yizzuide.milkomeda.crust.Crust.refreshToken:com.github.yizzuide.milkomeda.crust.CrustUserInfo()", "com.github.yizzuide.milkomeda.crust.Crust.getToken:java.lang.String(boolean)" ] }, "recoveryResult": null } }, { "interaction": "Authentication enforcer \u2192 Verifier", "from": "Authentication enforcer", "to": "Verifier", "groundTruthRank": 2, "recoveryResultRank": 1, "outcome": "agreed", "discordantWith": 0, "evidence": { "groundTruth": { "file": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/CrustAuthenticationFilter.java", "line": 102, "via": [] }, "recoveryResult": { "file": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/CrustAuthenticationFilter.java", "line": 131, "via": [] } } }, { "interaction": "Verifier \u2192 Session manager", "from": "Verifier", "to": "Session manager", "groundTruthRank": null, "recoveryResultRank": 2, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/Crust.java", "line": 290, "via": [] } } }, { "interaction": "Authentication enforcer \u2192 Authorisation enforcer", "from": "Authentication enforcer", "to": "Authorisation enforcer", "groundTruthRank": null, "recoveryResultRank": 3, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/CrustAuthenticationFilter.java", "line": 157, "via": [] } } }, { "interaction": "Authorisation enforcer \u2192 Decider", "from": "Authorisation enforcer", "to": "Decider", "groundTruthRank": null, "recoveryResultRank": 4, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "MilkomedaDemo/src/main/java/com/github/yizzuide/milkomeda/demo/crust/controller/CaseController.java", "line": 42, "via": [] } } }, { "interaction": "Decider \u2192 Policy provider", "from": "Decider", "to": "Policy provider", "groundTruthRank": null, "recoveryResultRank": 5, "outcome": "onlyRecoveryResult", "discordantWith": null, "evidence": { "groundTruth": null, "recoveryResult": { "file": "Milkomeda/src/main/java/com/github/yizzuide/milkomeda/crust/CrustUserDetailsService.java", "line": 78, "via": [] } } } ], "notes": [ "Score = overlap \u00d7 order = 0.1667 \u00d7 1. Overlap: 1 of 6 interactions were found by both sides (1 only in the ground truth, 4 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 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.", "Ground truth: the walk started at Authentication enforcer \u2014 the earliest role the reference pattern has speaking that this side grounded in walkable code.", "Recovery result: the walk started at Authentication enforcer \u2014 stored.", "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: Authorisation enforcer 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": [ "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": 673, "annotated_at": "2026-10-06 09:53:54.935000", "recovery_order": "stored" } ]
[
{
"slug": "authentication_pwd__Open-Core-Finance_corefinance",
"id": "pwd-based-java/Open-Core-Finance_corefinance/ClaudeCodeOpus5.0",
"pattern": "authentication_pwd",
"repo": "Open-Core-Finance_corefinance",
"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": "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": "present",
"groundTruthDetected": false,
"recoveryResultDetected": true,
"outcome": "mismatched"
},
{
"patternRole": "Comparator",
"groundTruth": "external",
"recoveryResult": "present",
"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.8286,
"drift": 0.1714,
"detail": {
"aggregate": 0.8286,
"scoredRoles": 5,
"skippedRoles": 1,
"treeHeight": 7
},
"perRole": [
{
"patternRole": "Comparator",
"score": 0.7857,
"distance": 3,
"groundTruth": {

Xet Storage Details

Size:
487 kB
·
Xet hash:
8bae967c169370e455b0c571fdc620ea495449dcb2c9b64e387fbef4e4dd622a

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