{"version": "2.1.0", "$schema": "https://json.schemastore.org/sarif-2.1.0.json", "runs": [{"tool": {"driver": {"name": "Repobility", "informationUri": "https://repobility.com", "rules": [{"id": "foundry_unresolved_feedback", "name": "Foundry mined unresolved feedback: RomanBoreyko/R_proj", "shortDescription": {"text": "Foundry mined unresolved feedback: RomanBoreyko/R_proj"}, "fullDescription": {"text": "Graph query export: Human feedback without linked fix evidence\nQuery id: unresolved_feedback\nQuery type: motif_query\nIntent: Negative/unresolved examples that should not be hallucinated into fixes.\nMotif: unlinked_feedback_needs_evidence\nTraining usage: negative_or_unresolved\nGraph gold label: assumption_check\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#2\nEvidence:\nGraph motif: Human feedback exists without a linked fix\nMotif id: unlinked_feedback_needs_evidence\nPolarity: bad\nTraining usage: negative_or_unresolved\nSeverity: medium\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#2\nGraph gold label: assumption_check\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: RomanBoreyko/R_proj#2\nRepo: RomanBoreyko/R_proj\nIssue/PR number: 2\nGraph consistency label: assumption_check\nNodes: 21\nEdges: 37\nNode types: {'pr_file': 6, 'link_quality': 5, 'alignment': 2, 'blueprint_finding': 2, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_o"}, "properties": {"scanner": "foundry_dataset", "category": "practices", "severity": "medium", "confidence": 0.7, "cwe": "", "owasp": ""}}, {"id": "foundry_blueprint_gap", "name": "Foundry mined blueprint gap alignment: RomanBoreyko/R_proj", "shortDescription": {"text": "Foundry mined blueprint gap alignment: RomanBoreyko/R_proj"}, "fullDescription": {"text": "Graph query export: Human feedback aligned with blueprint or architecture gaps\nQuery id: blueprint_gap_alignment\nQuery type: motif_query\nIntent: Curriculum-gap examples connecting issue threads to helicopter-view gaps.\nMotif: blueprint_gap_alignment\nTraining usage: curriculum_gap\nGraph gold label: assumption_check\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#2\nEvidence:\nGraph motif: Human feedback aligns with blueprint or architecture gaps\nMotif id: blueprint_gap_alignment\nPolarity: mixed\nTraining usage: curriculum_gap\nSeverity: medium\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#2\nGraph gold label: assumption_check\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: RomanBoreyko/R_proj#2\nRepo: RomanBoreyko/R_proj\nIssue/PR number: 2\nGraph consistency label: assumption_check\nNodes: 21\nEdges: 37\nNode types: {'pr_file': 6, 'link_quality': 5, 'alignment': 2, 'blueprint_finding': 2, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'f"}, "properties": {"scanner": "foundry_dataset", "category": "tech_debt", "severity": "medium", "confidence": 0.7, "cwe": "", "owasp": ""}}, {"id": "foundry_assumption_check", "name": "Foundry mined assumption checks: RomanBoreyko/R_proj", "shortDescription": {"text": "Foundry mined assumption checks: RomanBoreyko/R_proj"}, "fullDescription": {"text": "Comment chain pattern product: assumption_checks\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#1\nOutcome: claimed_resolved_unverified\nThread label: thread_has_human_issue_and_fix_context\nSource graph label: github_or_motif_graph_without_source_files\nReasons: link_quality_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: RomanBoreyko/R_proj#1\nRepo: RomanBoreyko/R_proj\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 3\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 30\nLabels: {'security_auth_secret': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'source_or_other': 3, 'docs_or_claims': 17, 'ui_or_frontend': 7, 'dependency_or_build': 3}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-05abb9e56bd7ba89\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"security_auth_secret\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/RomanBoreyko/R_p"}, "properties": {"scanner": "foundry_dataset", "category": "practices", "severity": "medium", "confidence": 0.62, "cwe": "", "owasp": ""}}, {"id": "foundry_docs_only_fix", "name": "Foundry mined docs only runtime fix: RomanBoreyko/R_proj", "shortDescription": {"text": "Foundry mined docs only runtime fix: RomanBoreyko/R_proj"}, "fullDescription": {"text": "Graph query export: Docs-only response to runtime or integration issue\nQuery id: docs_only_runtime_fix\nQuery type: motif_query\nIntent: Assumption-check examples where docs or claims are not enough proof.\nMotif: docs_only_runtime_fix\nTraining usage: assumption_check\nGraph gold label: weak_supervision_needs_review\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#1\nEvidence:\nGraph motif: Runtime/integration complaint answered mostly with docs or claims\nMotif id: docs_only_runtime_fix\nPolarity: bad\nTraining usage: assumption_check\nSeverity: high\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#1\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: RomanBoreyko/R_proj#1\nRepo: RomanBoreyko/R_proj\nIssue/PR number: 1\nGraph consistency label: weak_supervision_needs_review\nNodes: 42\nEdges: 68\nNode types: {'pr_file': 30, 'commit': 3, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, "}, "properties": {"scanner": "foundry_dataset", "category": "practices", "severity": "high", "confidence": 0.8, "cwe": "", "owasp": ""}}, {"id": "foundry_bad_chain", "name": "Foundry mined bad chains: RomanBoreyko/R_proj", "shortDescription": {"text": "Foundry mined bad chains: RomanBoreyko/R_proj"}, "fullDescription": {"text": "Comment chain pattern product: bad_chains\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#2\nOutcome: not_resolved_or_not_observed\nThread label: thread_has_human_issue_without_fix_context\nSource graph label: github_or_motif_graph_without_source_files\nReasons: link_quality_unresolved, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: RomanBoreyko/R_proj#2\nRepo: RomanBoreyko/R_proj\nThread label: thread_has_human_issue_without_fix_context\nOutcome: not_resolved_or_not_observed\nComment count: 1\nLinked commit count: 0\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 6\nLabels: {'api_integration_gap': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'ui_or_frontend': 5, 'dependency_or_build': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-ed6bee42b5045945\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"api_integration_gap\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/RomanBoreyko/R_proj/pull/2\",\n    \"text\": \"GitHub feedback: api_int"}, "properties": {"scanner": "foundry_dataset", "category": "practices", "severity": "high", "confidence": 0.84, "cwe": "", "owasp": ""}}, {"id": "foundry_auth_guardrail_gap", "name": "Foundry mined security auth guardrail gaps: RomanBoreyko/R_proj", "shortDescription": {"text": "Foundry mined security auth guardrail gaps: RomanBoreyko/R_proj"}, "fullDescription": {"text": "Graph query export: Security/auth changes without enough guardrails\nQuery id: security_auth_guardrail_gaps\nQuery type: motif_query\nIntent: Assumption-check security/auth examples requiring stronger tests or CI.\nMotif: security_auth_without_guardrails\nTraining usage: assumption_check\nGraph gold label: weak_supervision_needs_review\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#1\nEvidence:\nGraph motif: Security/auth change without enough guardrails\nMotif id: security_auth_without_guardrails\nPolarity: bad\nTraining usage: assumption_check\nSeverity: critical\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#1\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: RomanBoreyko/R_proj#1\nRepo: RomanBoreyko/R_proj\nIssue/PR number: 1\nGraph consistency label: weak_supervision_needs_review\nNodes: 42\nEdges: 68\nNode types: {'pr_file': 30, 'commit': 3, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'iss"}, "properties": {"scanner": "foundry_dataset", "category": "auth", "severity": "critical", "confidence": 0.78, "cwe": "", "owasp": ""}}, {"id": "scanner-a6293108aa7b2f67", "name": "Possibly dead Python function: find_or_add_leg_row", "shortDescription": {"text": "Possibly dead Python function: find_or_add_leg_row"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-9710c8d059e53154", "name": "No frontend routes/components detected", "shortDescription": {"text": "No frontend routes/components detected"}, "fullDescription": {"text": "No React/Vue/Next routes were found. This is fine for backend-only repos."}, "properties": {"scanner": "scanner-primary", "layer": "frontend", "severity": "info", "confidence": 1.0}}, {"id": "scanner-f1877247c922b56e", "name": "Insecure pattern 'direct_innerhtml_assignment' in TRADING-SYSTEM/scripts/webapp/gold-volarb-calculator.html:489", "shortDescription": {"text": "Insecure pattern 'direct_innerhtml_assignment' in TRADING-SYSTEM/scripts/webapp/gold-volarb-calculator.html:489"}, "fullDescription": {"text": "Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-6372cebde0220094", "name": "No auth library detected", "shortDescription": {"text": "No auth library detected"}, "fullDescription": {"text": "The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). The repo has auth/admin/session surface indicators, so auth may live in custom code, in a separate service, or be missing."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-4601e3ad3bb28677", "name": "No CI/CD pipelines detected", "shortDescription": {"text": "No CI/CD pipelines detected"}, "fullDescription": {"text": "No GitHub Actions, GitLab CI, or CircleCI configs found. Without CI you can't gate deploys on tests/lints."}, "properties": {"scanner": "scanner-primary", "layer": "cicd", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-6893a6c8b0861585", "name": "Very low test-to-source ratio", "shortDescription": {"text": "Very low test-to-source ratio"}, "fullDescription": {"text": "0 test file(s) for 14 source file(s) (ratio 0.00). Consider adding integration or unit tests for critical paths."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-141b30a41e03817b", "name": "No license file detected", "shortDescription": {"text": "No license file detected"}, "fullDescription": {"text": "No LICENSE/COPYING/NOTICE file was found. Generated repositories often omit licensing, which blocks reuse and automated intake."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-01f96f71d9907a8c", "name": "README lacks setup or run instructions", "shortDescription": {"text": "README lacks setup or run instructions"}, "fullDescription": {"text": "A README exists, but it does not contain common install/setup/run markers. This matches a frequent generated-code pattern: UI is present, operational handoff is thin."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-3ab5d313dda8e5f9", "name": "Debug logging residue appears in source files", "shortDescription": {"text": "Debug logging residue appears in source files"}, "fullDescription": {"text": "Found 194 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-b9088664ace7f748", "name": "Composite production-readiness gap", "shortDescription": {"text": "Composite production-readiness gap"}, "fullDescription": {"text": "Multiple low-cost hardening controls are missing together: license, ci, tests, operator-readme. Opus verification showed these co-occurring gaps are a better readiness signal than reading each flag in isolation."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-ea8f3013f588db25", "name": "Shallow git history limits provenance confidence", "shortDescription": {"text": "Shallow git history limits provenance confidence"}, "fullDescription": {"text": "The repository is a shallow clone. Origin/evolution analysis cannot distinguish fresh generation, imported legacy code, or long-lived human code with high confidence."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-8424db9c75e04ba4", "name": "Very short observed git history", "shortDescription": {"text": "Very short observed git history"}, "fullDescription": {"text": "The repo has multiple source files but two or fewer visible commits. This is not a failure by itself, but it lowers confidence in evolution-based diagnosis."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-2c04133e54348533", "name": "Near-duplicate function bodies in 2 places", "shortDescription": {"text": "Near-duplicate function bodies in 2 places"}, "fullDescription": {"text": "Functions with the same first-5-line body hash:\nTRADING-SYSTEM/scripts/portfolio/pnl_breakdown.py:get, TRADING-SYSTEM/scripts/portfolio/recent_ops.py:get\n\nThis is *the* AI-coder failure mode (4\u00d7 more duplication in vibe-coded repos \u2014 see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}]}}, "automationDetails": {"id": "repobility/18417"}, "properties": {"repository": "RomanBoreyko/R_proj", "repoUrl": "https://github.com/RomanBoreyko/R_proj", "branch": "main"}, "results": [{"ruleId": "foundry_unresolved_feedback", "level": "warning", "message": {"text": "Foundry mined unresolved feedback: RomanBoreyko/R_proj"}, "properties": {"repobilityId": 360957, "scanner": "foundry_dataset", "fingerprint": "ad293e4171c412b724c06012c74c37c69bbf8b525e2a44d15564b914e913576c", "category": "practices", "severity": "medium", "confidence": 0.7, "triageState": "open", "verdict": "needs_review", "isResolved": false, "reason": "Imported from mined Foundry/Fable5 evidence with real GitHub/source provenance. Review source_id before acting.", "evidence": {"meta": {"kind": "graph_query_record", "title": "Human feedback without linked fix evidence", "intent": "Negative/unresolved examples that should not be hallucinated into fixes.", "labels": {"ui_or_frontend": 5, "weak blueprint fit": 1, "api_integration_gap": 1, "dependency_or_build": 1, "partial blueprint fit": 1, "issue_or_pull_request_thread": 1, "not_resolved_or_not_observed": 3, "blueprint_human_gap_alignment": 2, "human_reported_issue_no_linked_fix": 1, "thread_has_human_issue_without_fix_context": 2}, "source": "graph_query_export", "motif_id": "unlinked_feedback_needs_evidence", "outcomes": {"not_resolved_or_not_observed": 6}, "polarity": "bad", "query_id": "unresolved_feedback", "severity": "medium", "ci_labels": {}, "synthetic": false, "edge_count": 37, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 6, "alignment_uses_comment": 2, "alignment_uses_finding": 2, "chain_has_link_quality": 5, "comment_aligns_finding": 2, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 6, "thread_has_comment_chain": 1, "comment_chain_touches_file": 6, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 21, "node_types": {"repo": 1, "thread": 1, "comment": 1, "pr_file": 6, "alignment": 2, "fix_outcome": 1, "issue_chain": 1, "link_quality": 5, "comment_chain": 1, "blueprint_finding": 2}, "query_type": "motif_query", "thread_key": "RomanBoreyko/R_proj#2", "issue_number": "2", "quality_tiers": {"unresolved": 3, "assumption_check": 2}, "repo_full_name": "RomanBoreyko/R_proj", "training_usage": "negative_or_unresolved", "source_motif_id": "graph-pattern-motif-thread-8cc391e63c5f75b5", "graph_gold_label": "assumption_check", "changed_file_labels": {"ui_or_frontend": 20, "dependency_or_build": 4}}, "text": "Graph query export: Human feedback without linked fix evidence\nQuery id: unresolved_feedback\nQuery type: motif_query\nIntent: Negative/unresolved examples that should not be hallucinated into fixes.\nMotif: unlinked_feedback_needs_evidence\nTraining usage: negative_or_unresolved\nGraph gold label: assumption_check\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#2\nEvidence:\nGraph motif: Human feedback exists without a linked fix\nMotif id: unlinked_feedback_needs_evidence\nPolarity: bad\nTraining usage: negative_or_unresolved\nSeverity: medium\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#2\nGraph gold label: assumption_check\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: RomanBoreyko/R_proj#2\nRepo: RomanBoreyko/R_proj\nIssue/PR number: 2\nGraph consistency label: assumption_check\nNodes: 21\nEdges: 37\nNode types: {'pr_file': 6, 'link_quality': 5, 'alignment': 2, 'blueprint_finding': 2, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 6, 'comment_chain_touches_file': 6, 'issue_chain_touches_file': 6, 'chain_has_link_quality': 5, 'alignment_uses_comment': 2, 'alignment_uses_finding': 2, 'comment_aligns_finding': 2, 'repo_has_thread': 1, 'thread_has_comment': 1, 'thread_has_comment_chain': 1, 'comment_has_chain': 1, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'ui_or_frontend': 5, 'not_resolved_or_not_observed': 3, 'thread_has_human_issue_without_fix_context': 2, 'blueprint_human_gap_alignment': 2, 'issue_or_pull_request_thread': 1, 'api_integration_gap': 1, 'dependency_or_build': 1, 'human_reported_issue_no_linked_fix': 1, 'weak blueprint fit': 1, 'partial blueprint fit': 1}\nOutcomes: {'not_resolved_or_not_observed': 6}\nQuality tiers: {'unresolved': 3, 'assumption_check': 2}\nCI labels: {}\nCurriculum targets:\n- Teach models to preserve unresolved human feedback instead of hallucinating fixes.\n- Build issue-to-regression examples where no accepted fix exists yet.\nAssumption checks:\n- Can a commit be linked by issue number, SHA, changed path, or time window?\n- If no link exists, is this explicitly labelled unresolved?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/RomanBoreyko/R_proj", "source_id": "graph-query-motif_query-12c09c30a4293713", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/unresolved_feedback/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "RomanBoreyko/R_proj", "source_dataset": "graph_queries/unresolved_feedback", "training_usage": "negative_or_unresolved"}}}, {"ruleId": "foundry_blueprint_gap", "level": "warning", "message": {"text": "Foundry mined blueprint gap alignment: RomanBoreyko/R_proj"}, "properties": {"repobilityId": 344521, "scanner": "foundry_dataset", "fingerprint": "0b19654827fb7c3588c70920383bfcc3ee6955ae03767ce346f78a1e18e07ee8", "category": "tech_debt", "severity": "medium", "confidence": 0.7, "triageState": "open", "verdict": "needs_review", "isResolved": false, "reason": "Imported from mined Foundry/Fable5 evidence with real GitHub/source provenance. Review source_id before acting.", "evidence": {"meta": {"kind": "graph_query_record", "title": "Human feedback aligned with blueprint or architecture gaps", "intent": "Curriculum-gap examples connecting issue threads to helicopter-view gaps.", "labels": {"ui_or_frontend": 5, "weak blueprint fit": 1, "api_integration_gap": 1, "dependency_or_build": 1, "partial blueprint fit": 1, "issue_or_pull_request_thread": 1, "not_resolved_or_not_observed": 3, "blueprint_human_gap_alignment": 2, "human_reported_issue_no_linked_fix": 1, "thread_has_human_issue_without_fix_context": 2}, "source": "graph_query_export", "motif_id": "blueprint_gap_alignment", "outcomes": {"not_resolved_or_not_observed": 6}, "polarity": "mixed", "query_id": "blueprint_gap_alignment", "severity": "medium", "ci_labels": {}, "synthetic": false, "edge_count": 37, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 6, "alignment_uses_comment": 2, "alignment_uses_finding": 2, "chain_has_link_quality": 5, "comment_aligns_finding": 2, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 6, "thread_has_comment_chain": 1, "comment_chain_touches_file": 6, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 21, "node_types": {"repo": 1, "thread": 1, "comment": 1, "pr_file": 6, "alignment": 2, "fix_outcome": 1, "issue_chain": 1, "link_quality": 5, "comment_chain": 1, "blueprint_finding": 2}, "query_type": "motif_query", "thread_key": "RomanBoreyko/R_proj#2", "issue_number": "2", "quality_tiers": {"unresolved": 3, "assumption_check": 2}, "repo_full_name": "RomanBoreyko/R_proj", "training_usage": "curriculum_gap", "source_motif_id": "graph-pattern-motif-thread-daf16f0d68c9c4ea", "graph_gold_label": "assumption_check", "changed_file_labels": {"ui_or_frontend": 20, "dependency_or_build": 4}}, "text": "Graph query export: Human feedback aligned with blueprint or architecture gaps\nQuery id: blueprint_gap_alignment\nQuery type: motif_query\nIntent: Curriculum-gap examples connecting issue threads to helicopter-view gaps.\nMotif: blueprint_gap_alignment\nTraining usage: curriculum_gap\nGraph gold label: assumption_check\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#2\nEvidence:\nGraph motif: Human feedback aligns with blueprint or architecture gaps\nMotif id: blueprint_gap_alignment\nPolarity: mixed\nTraining usage: curriculum_gap\nSeverity: medium\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#2\nGraph gold label: assumption_check\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: RomanBoreyko/R_proj#2\nRepo: RomanBoreyko/R_proj\nIssue/PR number: 2\nGraph consistency label: assumption_check\nNodes: 21\nEdges: 37\nNode types: {'pr_file': 6, 'link_quality': 5, 'alignment': 2, 'blueprint_finding': 2, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 6, 'comment_chain_touches_file': 6, 'issue_chain_touches_file': 6, 'chain_has_link_quality': 5, 'alignment_uses_comment': 2, 'alignment_uses_finding': 2, 'comment_aligns_finding': 2, 'repo_has_thread': 1, 'thread_has_comment': 1, 'thread_has_comment_chain': 1, 'comment_has_chain': 1, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'ui_or_frontend': 5, 'not_resolved_or_not_observed': 3, 'thread_has_human_issue_without_fix_context': 2, 'blueprint_human_gap_alignment': 2, 'issue_or_pull_request_thread': 1, 'api_integration_gap': 1, 'dependency_or_build': 1, 'human_reported_issue_no_linked_fix': 1, 'weak blueprint fit': 1, 'partial blueprint fit': 1}\nOutcomes: {'not_resolved_or_not_observed': 6}\nQuality tiers: {'unresolved': 3, 'assumption_check': 2}\nCI labels: {}\nCurriculum targets:\n- Use helicopter-view architecture/schema/design evidence beside issue threads.\n- Teach models to compare requested product class against implementation layers.\nAssumption checks:\n- Which blueprint layer is absent: frontend, API, data, auth, tests, or deployment?\n- Does human feedback confirm the same architectural gap?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/RomanBoreyko/R_proj", "source_id": "graph-query-motif_query-20dde841d653cabb", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/blueprint_gap_alignment/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "RomanBoreyko/R_proj", "source_dataset": "graph_queries/blueprint_gap_alignment", "training_usage": "curriculum_gap"}}}, {"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: RomanBoreyko/R_proj"}, "properties": {"repobilityId": 300284, "scanner": "foundry_dataset", "fingerprint": "a52e6662f88cdaff0722dd82229e8859779bc6be83bf80c1a86b2138375bd112", "category": "practices", "severity": "medium", "confidence": 0.62, "triageState": "open", "verdict": "needs_review", "isResolved": false, "reason": "Imported from mined Foundry/Fable5 evidence with real GitHub/source provenance. Review source_id before acting.", "evidence": {"meta": {"kind": "comment_chain_pattern_product", "source": "comment_chain_pattern_miner", "product": "assumption_checks", "synthetic": false, "thread_key": "RomanBoreyko/R_proj#1", "human_labels": ["dependency_or_build", "docs_or_claims", "security_auth_secret", "source_or_other", "ui_or_frontend"], "issue_number": "1", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": false, "max_confidence": 0.795, "repo_full_name": "RomanBoreyko/R_proj", "training_usage": "weak_supervision", "confidence_tier": "weak_supervision", "source_chain_id": "evidence-chain-issue_chain-209fd1cb5ba458ae", "helicopter_views": {}, "artifact_families": {}, "source_chain_kind": "issue_chain", "changed_file_count": 30, "source_graph_label": "github_or_motif_graph_without_source_files", "changed_file_labels": {"docs_or_claims": 17, "ui_or_frontend": 7, "source_or_other": 3, "dependency_or_build": 3}, "linked_commit_count": 3, "helicopter_view_count": 0, "source_artifact_count": 0, "classification_reasons": ["link_quality_weak_supervision", "high_risk_human_feedback_label"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#1\nOutcome: claimed_resolved_unverified\nThread label: thread_has_human_issue_and_fix_context\nSource graph label: github_or_motif_graph_without_source_files\nReasons: link_quality_weak_supervision, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: RomanBoreyko/R_proj#1\nRepo: RomanBoreyko/R_proj\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 3\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 30\nLabels: {'security_auth_secret': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'source_or_other': 3, 'docs_or_claims': 17, 'ui_or_frontend': 7, 'dependency_or_build': 3}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-05abb9e56bd7ba89\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"security_auth_secret\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/RomanBoreyko/R_proj/pull/1\",\n    \"text\": \"GitHub feedback: security_auth_secret\\nPolarity: bad\\nKind: pull_request_body\\nRepo: RomanBoreyko/R_proj\\nAuthor: RomanBoreyko (User)\\nURL: https://github.com/RomanBoreyko/R_proj/pull/1\\nTitle: Trading infra: synthetic-spread tooling, web calculator, strategy docs\\nBody:\\n## What\\n\\nAdds the gold synthetic-spread / vol-arb / stat-arb toolkit built this session, plus strategy docs and a `.gitignore`.\\n\\n### Web calculator (single file, no build)\\n`TRADING-SYSTEM/scripts/webapp/gold-volarb-calculator.html` \u2014 vanilla JS, canvas charts, Bybit v5 API.\\n- **Live**: tickers, basis, funding (auto-refresh)\\n- **Synth-spread / stat-arb**: Z-score, half-life (AR(1)), correlation, vol percentile, spread chart with collected-level overlay\\n- **Vol-arb** (IV/RV), **Calendars** (futures live + options manual), **Sizing**\\n- **Portfolio** (read-only, HMAC in-browser): meta-spread net greeks, $-delta, spot $-valuation, structure detection, uPnL bar chart, USDT balance & per-pair spread charts\\n- **\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430**: reverse/iron condor payoff + Black-Scholes gamma map with hedge zones (reversion/continuation/cap)\\n\\n### TS modules\\n`trading-calc/src`: `bybit.ts` (v5 client), `spread.ts` (synth-spread analytics + orchestrator\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-173c685486f70d34\",\n    \"filename\": \".gitignore\",\n    \"label\": \"source_or_other\",\n    \"status\": \"added\",\n    \"additions\": 24,\n    \"deletions\": 0,\n    \"changes\": 24,\n    \"blob_url\": \"https://github.com/RomanBoreyko/R_proj/blob/dd7d1c7bae4ba904b8d13713a0c7be9fa24152c3/.gitignore\"\n  },\n  {\n    \"id\": \"github-pr-file-file-694edeb89093e17c\",\n    \"filename\": \"TRADING-SYSTEM/00-INDEX.md\",\n    \"label\": \"docs_or_claims\",\n    \"status\": \"added\",\n    \"additions\": 95,\n    \"deletions\": 0,\n    \"changes\": 95,\n    \"blob_url\": \"https://github.com/RomanBoreyko/R_proj/blob/dd7d1c7bae4ba904b8d13713a0c7be9fa24152c3/TRADING-SYSTEM%2F00-INDEX.md\"\n  },\n  {\n    \"id\": \"github-pr-fi\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/RomanBoreyko/R_proj", "source_id": "comment-chain-pattern-assumption_checks-4620252d4f9e52e0", "synthetic": false, "gold_label": "", "graph_label": "github_or_motif_graph_without_source_files", "source_path": "/data/distillate/foundry_data/comment_chain_patterns/assumption_checks/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "RomanBoreyko/R_proj", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "weak_supervision"}}}, {"ruleId": "foundry_docs_only_fix", "level": "error", "message": {"text": "Foundry mined docs only runtime fix: RomanBoreyko/R_proj"}, "properties": {"repobilityId": 358109, "scanner": "foundry_dataset", "fingerprint": "378dbb0ce36aee8de7962f7fa265088aac7ada095621caf2b0bc3bc8d961dfcb", "category": "practices", "severity": "high", "confidence": 0.8, "triageState": "open", "verdict": "confirmed", "isResolved": false, "reason": "Imported from mined Foundry/Fable5 evidence with real GitHub/source provenance. Review source_id before acting.", "evidence": {"meta": {"kind": "graph_query_record", "title": "Docs-only response to runtime or integration issue", "intent": "Assumption-check examples where docs or claims are not enough proof.", "labels": {"bug_fix": 1, "docs_or_chore": 1, "docs_or_claims": 17, "ui_or_frontend": 7, "source_or_other": 3, "dependency_or_build": 3, "security_or_secrets": 1, "security_auth_secret": 1, "claimed_resolved_unverified": 3, "issue_or_pull_request_thread": 1, "human_reported_issue_then_fix_attempt": 1, "thread_has_human_issue_and_fix_context": 2}, "source": "graph_query_export", "motif_id": "docs_only_runtime_fix", "outcomes": {"claimed_resolved_unverified": 6}, "polarity": "bad", "query_id": "docs_only_runtime_fix", "severity": "high", "ci_labels": {}, "synthetic": false, "edge_count": 68, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 30, "chain_has_link_quality": 3, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 12, "thread_has_comment_chain": 1, "comment_chain_links_commit": 3, "comment_chain_touches_file": 12, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 42, "node_types": {"repo": 1, "commit": 3, "thread": 1, "comment": 1, "pr_file": 30, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "RomanBoreyko/R_proj#1", "issue_number": "1", "quality_tiers": {"weak_supervision": 3}, "repo_full_name": "RomanBoreyko/R_proj", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-87f629b5a5dfd4f4", "graph_gold_label": "weak_supervision_needs_review", "changed_file_labels": {"docs_or_claims": 68, "ui_or_frontend": 28, "source_or_other": 12, "dependency_or_build": 12}}, "text": "Graph query export: Docs-only response to runtime or integration issue\nQuery id: docs_only_runtime_fix\nQuery type: motif_query\nIntent: Assumption-check examples where docs or claims are not enough proof.\nMotif: docs_only_runtime_fix\nTraining usage: assumption_check\nGraph gold label: weak_supervision_needs_review\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#1\nEvidence:\nGraph motif: Runtime/integration complaint answered mostly with docs or claims\nMotif id: docs_only_runtime_fix\nPolarity: bad\nTraining usage: assumption_check\nSeverity: high\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#1\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: RomanBoreyko/R_proj#1\nRepo: RomanBoreyko/R_proj\nIssue/PR number: 1\nGraph consistency label: weak_supervision_needs_review\nNodes: 42\nEdges: 68\nNode types: {'pr_file': 30, 'commit': 3, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 30, 'comment_chain_touches_file': 12, 'issue_chain_touches_file': 12, 'comment_chain_links_commit': 3, 'chain_has_link_quality': 3, 'repo_has_thread': 1, 'thread_has_comment': 1, 'thread_has_comment_chain': 1, 'comment_has_chain': 1, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'docs_or_claims': 17, 'ui_or_frontend': 7, 'source_or_other': 3, 'dependency_or_build': 3, 'claimed_resolved_unverified': 3, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'security_auth_secret': 1, 'human_reported_issue_then_fix_attempt': 1, 'docs_or_chore': 1, 'security_or_secrets': 1, 'bug_fix': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'weak_supervision': 3}\nCI labels: {}\nCurriculum targets:\n- Train models to reject docs-only fixes for runtime, integration, data, or security failures.\n- Add paired examples where the correct fix changes executable paths and adds verification.\nAssumption checks:\n- Do changed files include executable code or only documentation/claims?\n- Does the complaint require runtime behavior that docs cannot prove?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/RomanBoreyko/R_proj", "source_id": "graph-query-motif_query-5ecf2434ca8a7ffc", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/docs_only_runtime_fix/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "RomanBoreyko/R_proj", "source_dataset": "graph_queries/docs_only_runtime_fix", "training_usage": "assumption_check"}}}, {"ruleId": "foundry_bad_chain", "level": "error", "message": {"text": "Foundry mined bad chains: RomanBoreyko/R_proj"}, "properties": {"repobilityId": 315921, "scanner": "foundry_dataset", "fingerprint": "684c72670713861f02b502555e196d4c34983275c4860f9afe5b91041f45b109", "category": "practices", "severity": "high", "confidence": 0.84, "triageState": "open", "verdict": "confirmed", "isResolved": false, "reason": "Imported from mined Foundry/Fable5 evidence with real GitHub/source provenance. Review source_id before acting.", "evidence": {"meta": {"kind": "comment_chain_pattern_product", "source": "comment_chain_pattern_miner", "product": "bad_chains", "synthetic": false, "thread_key": "RomanBoreyko/R_proj#2", "human_labels": ["api_integration_gap", "dependency_or_build", "ui_or_frontend"], "issue_number": "2", "thread_label": "thread_has_human_issue_without_fix_context", "outcome_label": "not_resolved_or_not_observed", "source_backed": false, "max_confidence": 0.0, "repo_full_name": "RomanBoreyko/R_proj", "training_usage": "negative_or_unresolved", "confidence_tier": "unresolved", "source_chain_id": "evidence-chain-issue_chain-ef68205b0936a4cd", "helicopter_views": {}, "artifact_families": {}, "source_chain_kind": "issue_chain", "changed_file_count": 6, "source_graph_label": "github_or_motif_graph_without_source_files", "changed_file_labels": {"ui_or_frontend": 5, "dependency_or_build": 1}, "linked_commit_count": 0, "helicopter_view_count": 0, "source_artifact_count": 0, "classification_reasons": ["link_quality_unresolved", "high_risk_human_feedback_label"], "linked_ci_commit_count": 0, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: bad_chains\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#2\nOutcome: not_resolved_or_not_observed\nThread label: thread_has_human_issue_without_fix_context\nSource graph label: github_or_motif_graph_without_source_files\nReasons: link_quality_unresolved, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: RomanBoreyko/R_proj#2\nRepo: RomanBoreyko/R_proj\nThread label: thread_has_human_issue_without_fix_context\nOutcome: not_resolved_or_not_observed\nComment count: 1\nLinked commit count: 0\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 6\nLabels: {'api_integration_gap': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'ui_or_frontend': 5, 'dependency_or_build': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-ed6bee42b5045945\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"api_integration_gap\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/RomanBoreyko/R_proj/pull/2\",\n    \"text\": \"GitHub feedback: api_integration_gap\\nPolarity: bad\\nKind: pull_request_body\\nRepo: RomanBoreyko/R_proj\\nAuthor: RomanBoreyko (User)\\nURL: https://github.com/RomanBoreyko/R_proj/pull/2\\nTitle: feat: Bybit calendar + options BSM screener for XAUTUSDT\\nBody:\\n- Add getTickers(category, {baseCoin}) to BybitClient for bulk option/futures fetch\\n- Add src/bsm.ts: Black-Scholes (ncdf, npdf, bsm) ported from HTML calculator\\n- Add src/screener.ts: screenCalendars() compares dated futures vs spot (contango/backw);\\n  screenOptions() finds options where mid < markPrice (cheaper than BSM)\\n- Add src/screener-cli.ts: ASCII table output, CLI args --baseCoin --minDiscount\\n- package.json: add 'screener' script (npm run screener)\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-e9badddee44aa969\",\n    \"filename\": \"TRADING-SYSTEM/scripts/webapp/gold-volarb-calculator.html\",\n    \"label\": \"ui_or_frontend\",\n    \"status\": \"modified\",\n    \"additions\": 384,\n    \"deletions\": 0,\n    \"changes\": 384,\n    \"blob_url\": \"https://github.com/RomanBoreyko/R_proj/blob/e8a5711596afc0f1502a3ea9a77df9cad710feba/TRADING-SYSTEM%2Fscripts%2Fwebapp%2Fgold-volarb-calculator.html\"\n  },\n  {\n    \"id\": \"github-pr-file-file-822d5c0db5ff5254\",\n    \"filename\": \"trading-calc/package.json\",\n    \"label\": \"dependency_or_build\",\n    \"status\": \"modified\",\n    \"additions\": 1,\n    \"deletions\": 0,\n    \"changes\": 1,\n    \"blob_url\": \"https://github.com/RomanBoreyko/R_proj/blob/e8a5711596afc0f1502a3ea9a77df9cad710feba/trading-calc%2Fpackage.json\"\n  },\n  {\n    \"id\": \"github-pr-file-file-78de4378950b4624\",\n    \"filename\": \"trading-calc/src/bsm.ts\",\n    \"label\": \"ui_or_frontend\",\n    \"status\": \"added\",\n    \"additions\": 42,\n    \"deletions\": 0,\n    \"changes\": 42,\n    \"blob_url\": \"https://github.com/RomanBoreyko/R_proj/blob/e8a5711596afc0f1502a3ea9a77df9cad710feba/trading-calc%2Fsrc%2Fbsm.ts\"\n  },\n  {\n    \"id\": \"github-pr-file-file-120e9b12f351f083\",\n    \"filename\": \"trading-calc/src/bybit.ts\",\n    \"label\": \"ui_or\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/RomanBoreyko/R_proj", "source_id": "comment-chain-pattern-bad_chains-2e354fd541978fdb", "synthetic": false, "gold_label": "", "graph_label": "github_or_motif_graph_without_source_files", "source_path": "/data/distillate/foundry_data/comment_chain_patterns/bad_chains/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "RomanBoreyko/R_proj", "source_dataset": "comment_chain_patterns/bad_chains", "training_usage": "negative_or_unresolved"}}}, {"ruleId": "foundry_auth_guardrail_gap", "level": "error", "message": {"text": "Foundry mined security auth guardrail gaps: RomanBoreyko/R_proj"}, "properties": {"repobilityId": 331957, "scanner": "foundry_dataset", "fingerprint": "a186370fb6b290a460ca090351e8beb75839d2890c2d222c7fc2ccd69ed87c94", "category": "auth", "severity": "critical", "confidence": 0.78, "triageState": "open", "verdict": "needs_review", "isResolved": false, "reason": "Imported from mined Foundry/Fable5 evidence with real GitHub/source provenance. Review source_id before acting.", "evidence": {"meta": {"kind": "graph_query_record", "title": "Security/auth changes without enough guardrails", "intent": "Assumption-check security/auth examples requiring stronger tests or CI.", "labels": {"bug_fix": 1, "docs_or_chore": 1, "docs_or_claims": 17, "ui_or_frontend": 7, "source_or_other": 3, "dependency_or_build": 3, "security_or_secrets": 1, "security_auth_secret": 1, "claimed_resolved_unverified": 3, "issue_or_pull_request_thread": 1, "human_reported_issue_then_fix_attempt": 1, "thread_has_human_issue_and_fix_context": 2}, "source": "graph_query_export", "motif_id": "security_auth_without_guardrails", "outcomes": {"claimed_resolved_unverified": 6}, "polarity": "bad", "query_id": "security_auth_guardrail_gaps", "severity": "critical", "ci_labels": {}, "synthetic": false, "edge_count": 68, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 30, "chain_has_link_quality": 3, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 12, "thread_has_comment_chain": 1, "comment_chain_links_commit": 3, "comment_chain_touches_file": 12, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 42, "node_types": {"repo": 1, "commit": 3, "thread": 1, "comment": 1, "pr_file": 30, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "RomanBoreyko/R_proj#1", "issue_number": "1", "quality_tiers": {"weak_supervision": 3}, "repo_full_name": "RomanBoreyko/R_proj", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-24f9ef6ed95c6745", "graph_gold_label": "weak_supervision_needs_review", "changed_file_labels": {"docs_or_claims": 68, "ui_or_frontend": 28, "source_or_other": 12, "dependency_or_build": 12}}, "text": "Graph query export: Security/auth changes without enough guardrails\nQuery id: security_auth_guardrail_gaps\nQuery type: motif_query\nIntent: Assumption-check security/auth examples requiring stronger tests or CI.\nMotif: security_auth_without_guardrails\nTraining usage: assumption_check\nGraph gold label: weak_supervision_needs_review\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#1\nEvidence:\nGraph motif: Security/auth change without enough guardrails\nMotif id: security_auth_without_guardrails\nPolarity: bad\nTraining usage: assumption_check\nSeverity: critical\nRepo: RomanBoreyko/R_proj\nThread: RomanBoreyko/R_proj#1\nGraph gold label: weak_supervision_needs_review\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: RomanBoreyko/R_proj#1\nRepo: RomanBoreyko/R_proj\nIssue/PR number: 1\nGraph consistency label: weak_supervision_needs_review\nNodes: 42\nEdges: 68\nNode types: {'pr_file': 30, 'commit': 3, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 30, 'comment_chain_touches_file': 12, 'issue_chain_touches_file': 12, 'comment_chain_links_commit': 3, 'chain_has_link_quality': 3, 'repo_has_thread': 1, 'thread_has_comment': 1, 'thread_has_comment_chain': 1, 'comment_has_chain': 1, 'thread_has_issue_chain': 1, 'issue_chain_has_comment_chain': 1, 'thread_has_fix_outcome': 1, 'issue_chain_has_fix_outcome': 1}\nLabels: {'docs_or_claims': 17, 'ui_or_frontend': 7, 'source_or_other': 3, 'dependency_or_build': 3, 'claimed_resolved_unverified': 3, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'security_auth_secret': 1, 'human_reported_issue_then_fix_attempt': 1, 'docs_or_chore': 1, 'security_or_secrets': 1, 'bug_fix': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'weak_supervision': 3}\nCI labels: {}\nCurriculum targets:\n- Train auth boundary repair with tests, permission matrices, and secret-handling checks.\n- Keep risky auth changes separate from ordinary bug-fix examples.\nAssumption checks:\n- Are auth/permission paths covered by tests?\n- Are secrets, CORS, or access rules verified rather than summarized?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/RomanBoreyko/R_proj", "source_id": "graph-query-motif_query-faaaa64e44348d1d", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/security_auth_guardrail_gaps/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "RomanBoreyko/R_proj", "source_dataset": "graph_queries/security_auth_guardrail_gaps", "training_usage": "assumption_check"}}}, {"ruleId": "scanner-a6293108aa7b2f67", "level": "note", "message": {"text": "Possibly dead Python function: find_or_add_leg_row"}, "properties": {"repobilityId": "c3affc8fd57dc64d", "scanner": "scanner-primary", "fingerprint": "a6293108aa7b2f67", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "TRADING-SYSTEM/scripts/fill_book.py:134"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-9710c8d059e53154", "level": "none", "message": {"text": "No frontend routes/components detected"}, "properties": {"repobilityId": "44ca61485762e494", "scanner": "scanner-primary", "fingerprint": "9710c8d059e53154", "layer": "frontend", "severity": "info", "confidence": 1.0, "tags": ["coverage"]}}, {"ruleId": "scanner-f1877247c922b56e", "level": "warning", "message": {"text": "Insecure pattern 'direct_innerhtml_assignment' in TRADING-SYSTEM/scripts/webapp/gold-volarb-calculator.html:489"}, "properties": {"repobilityId": "fa4984e6f710657a", "scanner": "scanner-primary", "fingerprint": "f1877247c922b56e", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "direct_innerhtml_assignment"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "TRADING-SYSTEM/scripts/webapp/gold-volarb-calculator.html"}, "region": {"startLine": 489}}}]}, {"ruleId": "scanner-6372cebde0220094", "level": "warning", "message": {"text": "No auth library detected"}, "properties": {"repobilityId": "a5b6035a5bbf8054", "scanner": "scanner-primary", "fingerprint": "6372cebde0220094", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["coverage", "auth"]}}, {"ruleId": "scanner-4601e3ad3bb28677", "level": "warning", "message": {"text": "No CI/CD pipelines detected"}, "properties": {"repobilityId": "c3ee439bce2bc51e", "scanner": "scanner-primary", "fingerprint": "4601e3ad3bb28677", "layer": "cicd", "severity": "medium", "confidence": 1.0, "tags": ["coverage"]}}, {"ruleId": "scanner-6893a6c8b0861585", "level": "warning", "message": {"text": "Very low test-to-source ratio"}, "properties": {"repobilityId": "54a7de3f06314bf0", "scanner": "scanner-primary", "fingerprint": "6893a6c8b0861585", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["tests", "coverage"]}}, {"ruleId": "scanner-141b30a41e03817b", "level": "note", "message": {"text": "No license file detected"}, "properties": {"repobilityId": "362a1b31506de933", "scanner": "scanner-primary", "fingerprint": "141b30a41e03817b", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["license", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-01f96f71d9907a8c", "level": "note", "message": {"text": "README lacks setup or run instructions"}, "properties": {"repobilityId": "2839d3f396db7dff", "scanner": "scanner-primary", "fingerprint": "01f96f71d9907a8c", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["docs", "readme", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-3ab5d313dda8e5f9", "level": "note", "message": {"text": "Debug logging residue appears in source files"}, "properties": {"repobilityId": "828a87911a7786b3", "scanner": "scanner-primary", "fingerprint": "3ab5d313dda8e5f9", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["debug", "cleanup", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-b9088664ace7f748", "level": "warning", "message": {"text": "Composite production-readiness gap"}, "properties": {"repobilityId": "b76297cb7db1c784", "scanner": "scanner-primary", "fingerprint": "b9088664ace7f748", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["production-readiness", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-ea8f3013f588db25", "level": "note", "message": {"text": "Shallow git history limits provenance confidence"}, "properties": {"repobilityId": "1c029a6ea8796699", "scanner": "scanner-primary", "fingerprint": "ea8f3013f588db25", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["provenance", "git-history", "generated-repo-pattern"]}}, {"ruleId": "scanner-8424db9c75e04ba4", "level": "none", "message": {"text": "Very short observed git history"}, "properties": {"repobilityId": "f75b6bbd46ff6021", "scanner": "scanner-primary", "fingerprint": "8424db9c75e04ba4", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["provenance", "git-history", "generated-repo-pattern"]}}, {"ruleId": "scanner-2c04133e54348533", "level": "note", "message": {"text": "Near-duplicate function bodies in 2 places"}, "properties": {"repobilityId": "c68b38e9b09ec85e", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "duplicate", "dry"]}}, {"ruleId": "scanner-2c04133e54348533", "level": "note", "message": {"text": "Near-duplicate function bodies in 2 places"}, "properties": {"repobilityId": "a9d353640267f10e", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "duplicate", "dry"]}}]}]}