{"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_assumption_check", "name": "Foundry mined assumption checks: Shiningingy/Restruant-System", "shortDescription": {"text": "Foundry mined assumption checks: Shiningingy/Restruant-System"}, "fullDescription": {"text": "Comment chain pattern product: assumption_checks\nRepo: Shiningingy/Restruant-System\nThread: Shiningingy/Restruant-System#4\nOutcome: ambiguous_needs_more_evidence\nThread label: thread_needs_classification\nSource graph label: source_artifact_without_verification_graph\nReasons: source_graph_has_real_artifacts, link_quality_high_confidence\nChain evidence:\nIssue/PR evidence chain: Shiningingy/Restruant-System#4\nRepo: Shiningingy/Restruant-System\nThread label: thread_needs_classification\nOutcome: ambiguous_needs_more_evidence\nComment count: 1\nLinked commit count: 1\nLinked CI commit count: 1\nLinked CI labels: {'ci_pending_or_incomplete': 1}\nChanged file count: 56\nLabels: {'human_feedback_general': 1}\nPolarities: {'neutral': 1}\nChanged file labels: {'schema_or_data': 2, 'source_or_other': 48, 'test_or_ci': 5, 'ui_or_frontend': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-f4aa543088dcc002\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"human_feedback_general\",\n    \"polarity\": \"neutral"}, "properties": {"scanner": "foundry_dataset", "category": "practices", "severity": "medium", "confidence": 0.62, "cwe": "", "owasp": ""}}, {"id": "foundry_bad_chain", "name": "Foundry mined bad chains: Shiningingy/Restruant-System", "shortDescription": {"text": "Foundry mined bad chains: Shiningingy/Restruant-System"}, "fullDescription": {"text": "Comment chain pattern product: bad_chains\nRepo: Shiningingy/Restruant-System\nThread: Shiningingy/Restruant-System#3\nOutcome: claimed_resolved_unverified\nThread label: thread_has_human_issue_and_fix_context\nSource graph label: source_artifact_without_verification_graph\nReasons: source_graph_has_real_artifacts, link_quality_high_confidence, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: Shiningingy/Restruant-System#3\nRepo: Shiningingy/Restruant-System\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 2\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 21\nLabels: {'mock_placeholder': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'source_or_other': 16, 'schema_or_data': 2, 'test_or_ci': 3}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-21674903c07402e2\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"mock_placeholder\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://gith"}, "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: Shiningingy/Restruant-System", "shortDescription": {"text": "Foundry mined security auth guardrail gaps: Shiningingy/Restruant-System"}, "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: supported_by_verification_signal\nRepo: Shiningingy/Restruant-System\nThread: Shiningingy/Restruant-System#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: Shiningingy/Restruant-System\nThread: Shiningingy/Restruant-System#1\nGraph gold label: supported_by_verification_signal\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: Shiningingy/Restruant-System#1\nRepo: Shiningingy/Restruant-System\nIssue/PR number: 1\nGraph consistency label: supported_by_verification_signal\nNodes: 16\nEdges: 24\nNode types: {'commit': 4, 'pr_file': 3, 'link_quality': 3, "}, "properties": {"scanner": "foundry_dataset", "category": "auth", "severity": "critical", "confidence": 0.78, "cwe": "", "owasp": ""}}, {"id": "foundry_fake_real_gap", "name": "Foundry mined mock as real or placeholder: Shiningingy/Restruant-System", "shortDescription": {"text": "Foundry mined mock as real or placeholder: Shiningingy/Restruant-System"}, "fullDescription": {"text": "Graph query export: Mock, sample, placeholder, or self-attested behavior treated as real\nQuery id: mock_as_real_or_placeholder\nQuery type: motif_query\nIntent: Hard negatives for fake completeness and missing real data paths.\nMotif: mock_as_real_or_placeholder\nTraining usage: hard_negative\nGraph gold label: supported_by_high_confidence_link\nRepo: Shiningingy/Restruant-System\nThread: Shiningingy/Restruant-System#3\nEvidence:\nGraph motif: Mock, sample, placeholder, or self-attested behavior treated as real\nMotif id: mock_as_real_or_placeholder\nPolarity: bad\nTraining usage: hard_negative\nSeverity: critical\nRepo: Shiningingy/Restruant-System\nThread: Shiningingy/Restruant-System#3\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: Shiningingy/Restruant-System#3\nRepo: Shiningingy/Restruant-System\nIssue/PR number: 3\nGraph consistency label: supported_by_high_confidence_link\nNodes: 32\nEdges: 58\nNode types: {'pr_file': 21, 'link_qu"}, "properties": {"scanner": "foundry_dataset", "category": "practices", "severity": "critical", "confidence": 0.82, "cwe": "", "owasp": ""}}, {"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-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-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-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}}]}}, "automationDetails": {"id": "repobility/19486"}, "properties": {"repository": "Shiningingy/Restruant-System", "repoUrl": "https://github.com/Shiningingy/Restruant-System", "branch": "main"}, "results": [{"ruleId": "foundry_assumption_check", "level": "warning", "message": {"text": "Foundry mined assumption checks: Shiningingy/Restruant-System"}, "properties": {"repobilityId": 300659, "scanner": "foundry_dataset", "fingerprint": "af3f8e1d6b612b440cf969c6732c2367ea76dda7343eedc21de3d318c7ae8e94", "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": "Shiningingy/Restruant-System#4", "human_labels": ["human_feedback_general", "schema_or_data", "source_or_other", "test_or_ci", "ui_or_frontend"], "issue_number": "4", "thread_label": "thread_needs_classification", "outcome_label": "ambiguous_needs_more_evidence", "source_backed": true, "max_confidence": 0.879, "repo_full_name": "Shiningingy/Restruant-System", "training_usage": "gold_candidate", "confidence_tier": "high_confidence", "source_chain_id": "evidence-chain-issue_chain-cf135572ac84ec21", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 56, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"test_or_ci": 5, "schema_or_data": 2, "ui_or_frontend": 1, "source_or_other": 48}, "linked_commit_count": 1, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_high_confidence"], "linked_ci_commit_count": 1, "verification_artifact_count": 0, "design_schema_api_artifact_count": 0}, "text": "Comment chain pattern product: assumption_checks\nRepo: Shiningingy/Restruant-System\nThread: Shiningingy/Restruant-System#4\nOutcome: ambiguous_needs_more_evidence\nThread label: thread_needs_classification\nSource graph label: source_artifact_without_verification_graph\nReasons: source_graph_has_real_artifacts, link_quality_high_confidence\nChain evidence:\nIssue/PR evidence chain: Shiningingy/Restruant-System#4\nRepo: Shiningingy/Restruant-System\nThread label: thread_needs_classification\nOutcome: ambiguous_needs_more_evidence\nComment count: 1\nLinked commit count: 1\nLinked CI commit count: 1\nLinked CI labels: {'ci_pending_or_incomplete': 1}\nChanged file count: 56\nLabels: {'human_feedback_general': 1}\nPolarities: {'neutral': 1}\nChanged file labels: {'schema_or_data': 2, 'source_or_other': 48, 'test_or_ci': 5, 'ui_or_frontend': 1}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-f4aa543088dcc002\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"human_feedback_general\",\n    \"polarity\": \"neutral\",\n    \"url\": \"https://github.com/Shiningingy/Restruant-System/pull/4\",\n    \"text\": \"GitHub feedback: human_feedback_general\\nPolarity: neutral\\nKind: pull_request_body\\nRepo: Shiningingy/Restruant-System\\nAuthor: Shiningingy (User)\\nURL: https://github.com/Shiningingy/Restruant-System/pull/4\\nTitle: Feature/menu custom fields\\nBody:\\n\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-8fb49c05e10a6fd7\",\n    \"filename\": \"apps/merchant/lib/core/db/database.dart\",\n    \"label\": \"schema_or_data\",\n    \"status\": \"modified\",\n    \"additions\": 12,\n    \"deletions\": 1,\n    \"changes\": 13,\n    \"blob_url\": \"https://github.com/Shiningingy/Restruant-System/blob/3ba3df4791b2d995881cdd9a460ef0c0b42543a7/apps%2Fmerchant%2Flib%2Fcore%2Fdb%2Fdatabase.dart\"\n  },\n  {\n    \"id\": \"github-pr-file-file-303ab420eb7e307b\",\n    \"filename\": \"apps/merchant/lib/core/db/database.g.dart\",\n    \"label\": \"schema_or_data\",\n    \"status\": \"modified\",\n    \"additions\": 4927,\n    \"deletions\": 3042,\n    \"changes\": 7969,\n    \"blob_url\": \"https://github.com/Shiningingy/Restruant-System/blob/3ba3df4791b2d995881cdd9a460ef0c0b42543a7/apps%2Fmerchant%2Flib%2Fcore%2Fdb%2Fdatabase.g.dart\"\n  },\n  {\n    \"id\": \"github-pr-file-file-8d34ca1f40de2dd5\",\n    \"filename\": \"apps/merchant/lib/core/db/tables.dart\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 38,\n    \"deletions\": 0,\n    \"changes\": 38,\n    \"blob_url\": \"https://github.com/Shiningingy/Restruant-System/blob/3ba3df4791b2d995881cdd9a460ef0c0b42543a7/apps%2Fmerchant%2Flib%2Fcore%2Fdb%2Ftables.dart\"\n  },\n  {\n    \"id\": \"github-pr-file-file-a32386173d5a8ab9\",\n    \"filename\": \"apps/merchant/lib/core/widgets/item_name_lines.dart\",\n    \"label\": \"source_or_other\",\n    \"status\": \"added\",\n    \"additions\": 40,\n    \"deletions\": 0,\n    \"changes\": 40,\n    \"blob_url\": \"https://github.com/Shiningingy/Restruant-System/blob/3ba3df4791b2d995881cdd9a460ef0c0b42543a7/apps%2Fmerchant%2Flib%2Fcore%2Fwidgets%2Fitem_name_lines\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/Shiningingy/Restruant-System", "source_id": "comment-chain-pattern-assumption_checks-ef5a9f522220babb", "synthetic": false, "gold_label": "", "graph_label": "source_artifact_without_verification_graph", "source_path": "/data/distillate/foundry_data/comment_chain_patterns/assumption_checks/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "Shiningingy/Restruant-System", "source_dataset": "comment_chain_patterns/assumption_checks", "training_usage": "gold_candidate"}}}, {"ruleId": "foundry_bad_chain", "level": "error", "message": {"text": "Foundry mined bad chains: Shiningingy/Restruant-System"}, "properties": {"repobilityId": 316106, "scanner": "foundry_dataset", "fingerprint": "d8d6532e859538492d0c043d5ba0972d7ef732300449e3a0ffa40397052d6ab3", "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": "Shiningingy/Restruant-System#3", "human_labels": ["mock_placeholder", "schema_or_data", "source_or_other", "test_or_ci"], "issue_number": "3", "thread_label": "thread_has_human_issue_and_fix_context", "outcome_label": "claimed_resolved_unverified", "source_backed": true, "max_confidence": 0.86, "repo_full_name": "Shiningingy/Restruant-System", "training_usage": "gold_candidate", "confidence_tier": "high_confidence", "source_chain_id": "evidence-chain-issue_chain-d261bb9879590fea", "helicopter_views": {}, "artifact_families": {"docs": 1}, "source_chain_kind": "issue_chain", "changed_file_count": 21, "source_graph_label": "source_artifact_without_verification_graph", "changed_file_labels": {"test_or_ci": 3, "schema_or_data": 2, "source_or_other": 16}, "linked_commit_count": 2, "helicopter_view_count": 0, "source_artifact_count": 1, "classification_reasons": ["source_graph_has_real_artifacts", "link_quality_high_confidence", "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: Shiningingy/Restruant-System\nThread: Shiningingy/Restruant-System#3\nOutcome: claimed_resolved_unverified\nThread label: thread_has_human_issue_and_fix_context\nSource graph label: source_artifact_without_verification_graph\nReasons: source_graph_has_real_artifacts, link_quality_high_confidence, high_risk_human_feedback_label\nChain evidence:\nIssue/PR evidence chain: Shiningingy/Restruant-System#3\nRepo: Shiningingy/Restruant-System\nThread label: thread_has_human_issue_and_fix_context\nOutcome: claimed_resolved_unverified\nComment count: 1\nLinked commit count: 2\nLinked CI commit count: 0\nLinked CI labels: {}\nChanged file count: 21\nLabels: {'mock_placeholder': 1}\nPolarities: {'bad': 1}\nChanged file labels: {'source_or_other': 16, 'schema_or_data': 2, 'test_or_ci': 3}\nExamples:\n[\n  {\n    \"id\": \"github-feedback-comment-21674903c07402e2\",\n    \"kind\": \"pull_request_body\",\n    \"label\": \"mock_placeholder\",\n    \"polarity\": \"bad\",\n    \"url\": \"https://github.com/Shiningingy/Restruant-System/pull/3\",\n    \"text\": \"GitHub feedback: mock_placeholder\\nPolarity: bad\\nKind: pull_request_body\\nRepo: Shiningingy/Restruant-System\\nAuthor: Shiningingy (User)\\nURL: https://github.com/Shiningingy/Restruant-System/pull/3\\nTitle: feat(admin): role-based access control (owner/manager/server) with PIN\\nBody:\\nAdd a local, offline-first staff/role system to the merchant POS.\\n\\nRoles: owner > manager > server. A single `currentRole` is the one thing the UI checks (fed today by a local PIN session; the source is kept swappable so a future online build can derive it from backend auth). Gating is opt-in: an empty roster behaves exactly as before (full access), so nothing is bricked; once an owner sets up the roster, the everyday baseline drops to server.\\n\\n- Staff roster in a new Drift `staff` table (schema v4 migration); PINs stored as sha256(\\\"$id:$pin\\\"), never plaintext (+crypto dep).\\n- `AppPermission` + `allows(role, permission)` min-role table. editMenu / viewReports / accessAdmin / refundPaidOrder \u2192 manager+; manageStaff \u2192 owner. (`refundPaidOrder` is reserved \u2014 voiding an *unpaid* order stays open to servers as mis-entry correction; the real refund-of-a-paid-order flow that will use it doesn't exist yet.)\\n- Nav rai\"\n  }\n]\nChanged files:\n[\n  {\n    \"id\": \"github-pr-file-file-adb1cce00a70ce68\",\n    \"filename\": \"apps/merchant/lib/app.dart\",\n    \"label\": \"source_or_other\",\n    \"status\": \"modified\",\n    \"additions\": 96,\n    \"deletions\": 30,\n    \"changes\": 126,\n    \"blob_url\": \"https://github.com/Shiningingy/Restruant-System/blob/9e2926868fa303dc348692e676ce52c509384f9e/apps%2Fmerchant%2Flib%2Fapp.dart\"\n  },\n  {\n    \"id\": \"github-pr-file-file-8a74164366031e6a\",\n    \"filename\": \"apps/merchant/lib/core/db/database.dart\",\n    \"label\": \"schema_or_data\",\n    \"status\": \"modified\",\n    \"additions\": 3,\n    \"deletions\": 1,\n    \"changes\": 4,\n    \"blob_url\": \"https://github.com/Shiningingy/Restruant-System/blob/9\n[truncated by importer]", "source": "foundry_mined_dataset", "repo_url": "https://github.com/Shiningingy/Restruant-System", "source_id": "comment-chain-pattern-bad_chains-ada0fb6c2bf21821", "synthetic": false, "gold_label": "", "graph_label": "source_artifact_without_verification_graph", "source_path": "/data/distillate/foundry_data/comment_chain_patterns/bad_chains/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "Shiningingy/Restruant-System", "source_dataset": "comment_chain_patterns/bad_chains", "training_usage": "gold_candidate"}}}, {"ruleId": "foundry_auth_guardrail_gap", "level": "error", "message": {"text": "Foundry mined security auth guardrail gaps: Shiningingy/Restruant-System"}, "properties": {"repobilityId": 332099, "scanner": "foundry_dataset", "fingerprint": "ac4d72775d282126c7aa1e83df5d64beaa0d1df0924a85ea3dbb10084c33cc7a", "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": {"docs_or_claims": 2, "source_or_other": 1, "security_or_secrets": 3, "security_auth_secret": 1, "verification_or_tests": 1, "issue_or_pull_request_thread": 1, "thread_has_human_issue_and_fix_context": 2, "claimed_resolved_with_verification_signal": 3, "human_reported_issue_then_verified_fix_attempt": 1}, "source": "graph_query_export", "motif_id": "security_auth_without_guardrails", "outcomes": {"claimed_resolved_with_verification_signal": 6}, "polarity": "bad", "query_id": "security_auth_guardrail_gaps", "severity": "critical", "ci_labels": {}, "synthetic": false, "edge_count": 24, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 3, "chain_has_link_quality": 3, "thread_has_fix_outcome": 1, "thread_has_issue_chain": 1, "issue_chain_touches_file": 3, "thread_has_comment_chain": 1, "comment_chain_links_commit": 4, "comment_chain_touches_file": 3, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 16, "node_types": {"repo": 1, "commit": 4, "thread": 1, "comment": 1, "pr_file": 3, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "Shiningingy/Restruant-System#1", "issue_number": "1", "quality_tiers": {"high_confidence": 3}, "repo_full_name": "Shiningingy/Restruant-System", "training_usage": "assumption_check", "source_motif_id": "graph-pattern-motif-thread-248ceb327788b08a", "graph_gold_label": "supported_by_verification_signal", "changed_file_labels": {"docs_or_claims": 8, "source_or_other": 4}}, "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: supported_by_verification_signal\nRepo: Shiningingy/Restruant-System\nThread: Shiningingy/Restruant-System#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: Shiningingy/Restruant-System\nThread: Shiningingy/Restruant-System#1\nGraph gold label: supported_by_verification_signal\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: Shiningingy/Restruant-System#1\nRepo: Shiningingy/Restruant-System\nIssue/PR number: 1\nGraph consistency label: supported_by_verification_signal\nNodes: 16\nEdges: 24\nNode types: {'commit': 4, 'pr_file': 3, 'link_quality': 3, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'comment_chain_links_commit': 4, 'thread_touches_file': 3, 'comment_chain_touches_file': 3, 'chain_has_link_quality': 3, 'issue_chain_touches_file': 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: {'security_or_secrets': 3, 'claimed_resolved_with_verification_signal': 3, 'docs_or_claims': 2, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'security_auth_secret': 1, 'source_or_other': 1, 'human_reported_issue_then_verified_fix_attempt': 1, 'verification_or_tests': 1}\nOutcomes: {'claimed_resolved_with_verification_signal': 6}\nQuality tiers: {'high_confidence': 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/Shiningingy/Restruant-System", "source_id": "graph-query-motif_query-5f0b454e126c7f98", "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": "Shiningingy/Restruant-System", "source_dataset": "graph_queries/security_auth_guardrail_gaps", "training_usage": "assumption_check"}}}, {"ruleId": "foundry_fake_real_gap", "level": "error", "message": {"text": "Foundry mined mock as real or placeholder: Shiningingy/Restruant-System"}, "properties": {"repobilityId": 324781, "scanner": "foundry_dataset", "fingerprint": "7742f543043dfe14af232757adc255526f68c437d573cba8e06414e3a3868996", "category": "practices", "severity": "critical", "confidence": 0.82, "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": "Mock, sample, placeholder, or self-attested behavior treated as real", "intent": "Hard negatives for fake completeness and missing real data paths.", "labels": {"feature": 1, "test_or_ci": 3, "data_schema": 1, "schema_or_data": 2, "source_or_other": 16, "mock_placeholder": 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": "mock_as_real_or_placeholder", "outcomes": {"claimed_resolved_unverified": 6}, "polarity": "bad", "query_id": "mock_as_real_or_placeholder", "severity": "critical", "ci_labels": {}, "synthetic": false, "edge_count": 58, "edge_types": {"repo_has_thread": 1, "comment_has_chain": 1, "thread_has_comment": 1, "thread_touches_file": 21, "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": 2, "comment_chain_touches_file": 12, "issue_chain_has_fix_outcome": 1, "issue_chain_has_comment_chain": 1}, "node_count": 32, "node_types": {"repo": 1, "commit": 2, "thread": 1, "comment": 1, "pr_file": 21, "fix_outcome": 1, "issue_chain": 1, "link_quality": 3, "comment_chain": 1}, "query_type": "motif_query", "thread_key": "Shiningingy/Restruant-System#3", "issue_number": "3", "quality_tiers": {"high_confidence": 3}, "repo_full_name": "Shiningingy/Restruant-System", "training_usage": "hard_negative", "source_motif_id": "graph-pattern-motif-thread-db1a54517f9970e0", "graph_gold_label": "supported_by_high_confidence_link", "changed_file_labels": {"test_or_ci": 12, "schema_or_data": 8, "source_or_other": 64}}, "text": "Graph query export: Mock, sample, placeholder, or self-attested behavior treated as real\nQuery id: mock_as_real_or_placeholder\nQuery type: motif_query\nIntent: Hard negatives for fake completeness and missing real data paths.\nMotif: mock_as_real_or_placeholder\nTraining usage: hard_negative\nGraph gold label: supported_by_high_confidence_link\nRepo: Shiningingy/Restruant-System\nThread: Shiningingy/Restruant-System#3\nEvidence:\nGraph motif: Mock, sample, placeholder, or self-attested behavior treated as real\nMotif id: mock_as_real_or_placeholder\nPolarity: bad\nTraining usage: hard_negative\nSeverity: critical\nRepo: Shiningingy/Restruant-System\nThread: Shiningingy/Restruant-System#3\nGraph gold label: supported_by_high_confidence_link\nThread graph evidence:\nGitHub issue/PR evidence subgraph\nThread: Shiningingy/Restruant-System#3\nRepo: Shiningingy/Restruant-System\nIssue/PR number: 3\nGraph consistency label: supported_by_high_confidence_link\nNodes: 32\nEdges: 58\nNode types: {'pr_file': 21, 'link_quality': 3, 'commit': 2, 'thread': 1, 'repo': 1, 'comment': 1, 'comment_chain': 1, 'issue_chain': 1, 'fix_outcome': 1}\nEdge types: {'thread_touches_file': 21, 'comment_chain_touches_file': 12, 'issue_chain_touches_file': 12, 'chain_has_link_quality': 3, 'comment_chain_links_commit': 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: {'source_or_other': 16, 'test_or_ci': 3, 'claimed_resolved_unverified': 3, 'schema_or_data': 2, 'thread_has_human_issue_and_fix_context': 2, 'issue_or_pull_request_thread': 1, 'mock_placeholder': 1, 'human_reported_issue_then_fix_attempt': 1, 'feature': 1, 'data_schema': 1}\nOutcomes: {'claimed_resolved_unverified': 6}\nQuality tiers: {'high_confidence': 3}\nCI labels: {}\nCurriculum targets:\n- Train real-data plumbing and mock-removal tasks from source to UI.\n- Use as hard negatives for dashboards or apps claiming real runs without provenance.\nAssumption checks:\n- Is user-visible behavior backed by real storage/API/CI artifacts?\n- Are placeholders, sample data, or generated claims still in a production path?", "source": "foundry_mined_dataset", "repo_url": "https://github.com/Shiningingy/Restruant-System", "source_id": "graph-query-motif_query-ce9b2fabe0035917", "synthetic": false, "gold_label": "", "graph_label": "", "source_path": "/data/distillate/foundry_data/graph_queries/mock_as_real_or_placeholder/shard-0.jsonl", "bundle_label": "", "priority_band": "", "priority_score": 0, "repo_full_name": "Shiningingy/Restruant-System", "source_dataset": "graph_queries/mock_as_real_or_placeholder", "training_usage": "hard_negative"}}}, {"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-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-141b30a41e03817b", "level": "note", "message": {"text": "No license file detected"}, "properties": {"repobilityId": "5cfbf906257eda96", "scanner": "scanner-primary", "fingerprint": "141b30a41e03817b", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["license", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-ea8f3013f588db25", "level": "note", "message": {"text": "Shallow git history limits provenance confidence"}, "properties": {"repobilityId": "9298ddcf09512194", "scanner": "scanner-primary", "fingerprint": "ea8f3013f588db25", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["provenance", "git-history", "generated-repo-pattern"]}}]}]}